common.opt (N, [...]): New options.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
2
3         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
4         * gcc.c (cc1_options): Add %{Qy:}.
5
6 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
7
8         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
9         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
11
12 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
13
14         PR rtl-optimization/45354
15         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
16         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
17         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
18         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
19
20 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21
22         * basic-block.h (struct edge_prediction): Remove forward
23         declaration.
24         * tree-flow.h (struct edge_prediction): Move from here...
25         * predict.c (struct edge_prediction): ...to here.
26         * cselib.h (struct elt_list): Move from here...
27         * cselib.c (struct elt_list): ...to here.
28
29 2010-12-02  Ian Lance Taylor  <iant@google.com>
30
31         * gcc.c (default_compilers): Add entry for ".go".
32         * common.opt: Add -static-libgo as a driver option.
33         * doc/install.texi (Configuration): Mention libgo as an option for
34         --enable-shared.  Mention go as an option for --enable-languages.
35         * doc/invoke.texi (Overall Options): Mention .go as a file name
36         suffix.  Mention go as a -x option.
37         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
38         language.
39         * doc/sourcebuild.texi (Top Level): Mention libgo.
40         * doc/standards.texi (Standards): Add section on Go language.
41         Move references for other languages into their own section.
42         * doc/contrib.texi (Contributors): Mention that I contributed the
43         Go frontend.
44
45 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
46
47         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
48         (const_call_expr_arg_iterator_d): Likewise.
49         (expanded_location): Likewise.
50         * c-tree.h (struct c_arg_tag_d): Likewise.
51         * dwarf2out.c (struct cfa_loc): Likewise.
52         (struct skeleton_chain_struct): Likewise.
53         * except.c (struct ttypes_filter): Likewise.
54         * cselib.h (struct cselib_val_struct): Likewise.
55         (elt_loc_list): Likewise.
56         (elt_list): Likewise.
57         * varasm.c (struct addr_const): Likewise.
58         * tree-flow.h (struct edge_prediction): Likewise.
59         (struct int_tree_map): Likewise.
60         (struct _edge_var_map): Likewise.
61
62 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
63
64         PR target/46768
65         * config/i386/i386.c (initial_ix86_tune_features): Turn on
66         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
67
68 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
69
70         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
71
72 2010-12-02  Ian Lance Taylor  <iant@google.com>
73
74         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
75         header files unordered_map, tr1/unordered_map, and ext/hash_map.
76         * configure, config.in: Rebuild.
77
78 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
79
80         PR target/46685
81         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
82         (sparc_expand_move): Call it to decide whether to emit the special
83         mov{si,di}_pic_label_ref patterns.
84         (sparc_legitimize_pic_address): Call it to decide whether to emit
85         the regular PIC sequence for labels.  Fix long line.
86         (sparc_file_end): Set is_thunk for the PIC helper.
87
88 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
89
90         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
91         for a non-shared type.
92
93 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
94
95         PR middle-end/45297
96         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
97         with MEM_REFs as POINTER_PLUS_EXPR.
98
99 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
100
101         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
102         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
103         mentioning /lib/elf.
104
105 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
106
107         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
108         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
109         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
110         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
111         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
112         * config/sol2.h (LINK_SPEC): Remove %{b}.
113         * config/svr4.h (LINK_SPEC): Remove %{b}.
114
115 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
116
117         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
118         * config/i386/linux.h (LINK_SPEC): Cut long comment.
119         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
120         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
121         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
122         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
123         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
124         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
125         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
126         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
127         %{v:%{!V:-V}}.
128
129 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
130
131         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
132         -ftraditional.
133
134 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
135
136         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
137         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
138         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
139         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
140         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
141         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
142         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
143         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
144         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
145         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
146         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
147         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
148         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
149         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
150         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
151         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
152         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
153         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
154
155 2010-12-02  Paul Koning  <ni1d@arrl.net>
156
157         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
158         opcodes if CC_NO_OVERFLOW is set.
159         (notice_update_cc_on_set): Correct setting of CC0 as a side
160         effect; set CC_NO_OVERFLOW for cases where C flag is not
161         meaningful.
162
163 2010-12-02  Ian Lance Taylor  <iant@google.com>
164
165         * doc/install.texi (Configuration): Update default for
166         --with-boot-ldflags.
167
168 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
169
170         PR c/45062
171         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
172         !funcdef_flag.
173
174 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
175
176         PR tree-optimization/45199
177         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
178         (stores_zero_from_loop): Call
179         mem_write_stride_of_same_size_as_unit_type_p.
180         * tree-data-ref.h (stride_of_unit_type_p): New.
181         * tree-loop-distribution.c (generate_memset_zero): Simplified.
182         Call stride_of_unit_type_p.
183         (build_rdg_partition_for_component): Do not call
184         rdg_flag_similar_memory_accesses when
185         flag_tree_loop_distribute_patterns is set.
186
187 2010-12-02  Richard Guenther  <rguenther@suse.de>
188
189         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
190         sign-changing conversions for induction detection.
191
192 2010-12-02  Richard Guenther  <rguenther@suse.de>
193
194         PR tree-optimization/46723
195         * tree-vect-loop.c (get_initial_def_for_induction): Strip
196         conversions from the induction evolution and apply it to
197         the result instead.
198         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
199         assigns for induction defs.
200
201 2010-12-02  Richard Guenther  <rguenther@suse.de>
202
203         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
204         the case we need to split the edge and not the block.
205
206 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
207
208         DFA model for Core 2 and Core i7 scheduling.
209
210         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
211         * config/i386/i386.c (ix86_option_override_internal): Update entries
212         for Core 2 and Core i7.
213         (ix86_issue_rate): Set issue rate to 3 [be realistic].
214         * config/i386/i386.md: Include "core2.md".
215         (define_attr cpu): Add "corei7".
216
217 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
218
219         Define tuning for Core 2 and Core i7.
220
221         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
222         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
223         (m_CORE2): Replace with m_CORE2_{32,64}.
224         (m_CORE2I7{,_32,_64}): New macros.
225         (m_GENERIC32, m_GENERIC64): Update.
226         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
227         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
228         set m_CORE2I7_64 iff m_GENERIC64.
229         (processor_target_table): Use generic costs for Core 2 and Core i7.
230         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
231         (ix86_issue_rate): Remove entry for Core 2.
232         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
233         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
234         (TARGET_CORE2): Update.
235         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
236         (PROCESSOR_CORE2): Remove.
237
238 2010-12-02  Richard Guenther  <rguenther@suse.de>
239
240         * lto-streamer.h (LTO_major_version): Bump to 2.
241
242 2010-12-02  Richard Guenther  <rguenther@suse.de>
243
244         PR lto/44871
245         * gimple.c (canonical_type_hash_cache): New hashtable.
246         (gimple_type_hash): Make a wrapper around ...
247         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
248         (gimple_canonical_type_hash): Likewise.
249         (gtc_visit): Take a gtc_mode argument.
250         (gimple_types_compatible_p_1): Likewise. Do not compare struct
251         tag names or field names when computing canonical types.
252         (gimple_types_compatible_p): Adjust.
253         (visit): Take a gtc_mode argument.
254         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
255         names or field names when computing hashes of canonical types.
256         (gimple_register_canonical_type): Use gimple_canonical_type_hash
257         for the hash.
258         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
259         (free_gimple_type_tables): Free canonical_type_hash_cache.
260
261 2010-12-02  Richard Guenther  <rguenther@suse.de>
262             Ira Rosen  <irar@il.ibm.com>
263
264         PR tree-optimization/46663
265         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
266         FUNCTION_DECL exists and that it's a builtin.
267
268 2010-12-02  Jie Zhang  <jie@codesourcery.com>
269
270         PR middle-end/46674
271         * varasm.c (compute_visible_aliases): Handle user set
272         assembler name.
273
274 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
275
276         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
277         thinko regarding setting -mno-<xxx> debug switches.
278         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
279
280 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
281
282         * intl.c: Don't include tm.h.
283         * Makefile.in (intl.o): Don't depend on $(TM_H).
284
285 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
286
287         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
288         unused warning.
289         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
290
291 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
292
293         * graphite-sese-to-poly.c (analyze_drs): Removed.
294         (build_scop_drs): Do not call analyze_drs.
295         (analyze_drs_in_stmts): New.
296         (insert_stmts): New.
297         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
298         (insert_out_of_ssa_copy_on_edge): Same.
299         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
300         (rewrite_phi_out_of_ssa): Same.
301         (rewrite_cross_bb_scalar_dependence): Same.
302         (split_reduction_stmt): Move data references in the new basic blocks.
303         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
304
305 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
306
307         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
308
309 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
310
311         PR middle-end/45297
312         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
313         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
314         * graphite-poly.h (new_poly_bb): Update declaration.
315         (gbb_from_bb): Moved here...
316         (pbb_from_bb): New.
317         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
318         Removed.
319         (graphite_stmt_p): Removed.
320         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
321         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
322         new_poly_bb.
323         (build_scop_bbs_1): Do not pass in sbitmap reductions.
324         (build_scop_bbs): Same.
325         (gbb_from_bb): ... from here.
326         (add_conditions_to_constraints): Moved up.
327         (analyze_drs): New.
328         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
329         not contain data references.
330         (new_pbb_from_pbb): New.
331         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
332         block is split.
333         (rewrite_close_phi_out_of_ssa): Update call to
334         insert_out_of_ssa_copy_on_edge.
335         (rewrite_reductions_out_of_ssa): Now static.
336         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
337         (split_pbb): New.
338         (split_reduction_stmt): Call split_pbb.
339         (translate_scalar_reduction_to_array): Pass in the scop, do not
340         pass in the sbitmap reductions.
341         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
342         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
343         (rewrite_commutative_reductions_out_of_ssa): Same.
344         (build_poly_scop): Call build_scop_bbs,
345         rewrite_commutative_reductions_out_of_ssa,
346         rewrite_reductions_out_of_ssa, and
347         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
348         before scop_to_lst.
349         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
350         Removed declaration.
351         (rewrite_reductions_out_of_ssa): Same.
352         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
353         (build_scop_bbs): Same.
354         * graphite.c (graphite_transform_loops): Do not initialize reductions.
355         Do not call build_scop_bbs,
356         rewrite_commutative_reductions_out_of_ssa,
357         rewrite_reductions_out_of_ssa, and
358         rewrite_cross_bb_scalar_deps_out_of_ssa.
359         * sese.h (struct gimple_bb): Add field pbb.
360         (GBB_PBB): New.
361
362 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
363
364         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
365         New.
366         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
367         handle_scalar_deps_crossing_scop_limits.
368         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
369         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
370
371 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
372
373         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
374         when replacing a constant in an ADDR_EXPR.
375
376 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
377
378         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
379         for the stride.
380         (lst_do_strip_mine): Same.
381         (scop_do_strip_mine): Same.
382         * graphite-poly.c (apply_poly_transforms): Update call to
383         scop_do_strip_mine.
384         * graphite-poly.h (scop_do_strip_mine): Update declaration.
385
386 2010-12-01  Jan Hubicka  <jh@suse.cz>
387
388         * tree.c (build_common_builtin_nodes): Do not initialize
389         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
390         * builtins.c (expand_builtin_profile_func): Remove.
391         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
392         BUILT_IN_PROFILE_FUNC_EXIT.
393         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
394         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
395         * gimplify.c (gimplify_function_tree): Reorganize code calling
396         profiling functions.
397
398 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
399
400         * opts.c: Expand comment on tm.h include.
401
402 2010-12-01  Yao Qi  <yao@codesourcery.com>
403
404         * config/arm/predicates.md ("vfp_register_operand"): Return true for
405         VFP_D0_D7_REGS classes.
406
407 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
408
409         * common.opt (flag_stack_check): New Variable entry.
410         (fcompare-debug-second): Use Var.
411         * flags.h (flag_compare_debug, flag_stack_check): Remove.
412         * opts.c (flag_compare_debug): Remove.
413         (common_handle_option): Don't handle OPT_fcompare_debug_second.
414         Set opts->x_flag_stack_check for OPT_fstack_check_.
415         * toplev.c (flag_stack_check): Remove.
416
417 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
418
419         * common.opt (main_input_filename, main_input_basename,
420         main_input_baselength): New Variable entries.  From toplev.c.
421         * final.c (output_quoted_string): Move from toplev.c.
422         * output.h (output_quoted_string): Move from toplev.h.
423         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
424         access main_input_filename, main_input_baselength and
425         main_input_basename.
426         * targhooks.c: Include intl.h and opts.h.
427         (option_affects_pch_p, default_get_pch_validity): Move from
428         toplev.c.
429         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
430         Move from toplev.h.
431         * toplev.c (main_input_filename, main_input_basename,
432         main_input_baselength): Move to common.opt.
433         (output_quoted_string): Move to final.c.
434         (warn_deprecated_use): Move to tree.c.
435         (option_affects_pch_p, default_get_pch_validity,
436         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
437         * toplev.h (skip_leading_substring): Move to tree-dump.c.
438         (warn_deprecated_use): Move to tree.h.
439         (output_quoted_string): Move to output.h.
440         (main_input_filename, main_input_basename, main_input_baselength):
441         Move to common.opt.
442         (default_get_pch_validity, default_pch_valid_p): Move to
443         targhooks.c.
444         * tree-dump.c (skip_leading_substring): Move from toplev.h.
445         * tree.c (warn_deprecated_use): Move from toplev.c.
446         * tree.h (warn_deprecated_use): Move from toplev.h.
447         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
448         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
449         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
450         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
451         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
452         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
453         config/mcore/mcore.c, config/mep/mep.c,
454         config/microblaze/microblaze.c, config/mips/mips.c,
455         config/mmix/mmix.c, config/mn10300/mn10300.c,
456         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
457         config/picochip/picochip.c, config/s390/s390.c,
458         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
459         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
460         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
461         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
462         varasm.c, xcoffout.c: Don't include toplev.h.
463         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
464         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
465         varasm.o, xcoffout.o): Update dependencies.
466         * config/arm/t-arm (arm.o): Update dependencies.
467         * config/spu/t-spu-elf (spu.o): Update dependencies.
468
469 2010-12-01  Richard Guenther  <rguenther@suse.de>
470
471         PR tree-optimization/46730
472         * value-prof.c (gimple_ic): Always generate a separate merge BB.
473
474 2010-11-30  Ian Lance Taylor  <iant@google.com>
475
476         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
477         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
478         * config/i386/linux64.h (ASM_SPEC): Likewise.
479         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
480         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
481         * config/i386/vxworks.h (ASM_SPEC): Likewise.
482         * config/i386/x86-64.h (ASM_SPEC): Likewise.
483         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
484         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
485
486 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
487
488         * c-decl.c (finish_function): Call objc_finish_function in
489         Objective-C.
490         * c-typeck.c (convert_for_assignment): Do not call
491         objc_type_quals_match().
492
493 2010-11-30  Richard Guenther  <rguenther@suse.de>
494
495         PR tree-optimization/46722
496         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
497         operands as arguments.
498         (execute_optimize_widening_mul): Also handle power of two as
499         multiplication.
500
501 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
502
503         PR middle-end/46709
504         * cgraphunit.c (process_function_and_variable_attributes): Fix
505         cut'n'pasteo.
506
507 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
508
509         * hwint.c:  New.  Extracted from toplev.c.
510         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
511         Move from toplev.h.
512         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
513         Move to hwint.c.
514         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
515         Move to hwint.h.
516         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
517         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
518         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
519         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
520         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
521         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
522         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
523         tree-vrp.c: Don't include toplev.h.
524         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
525         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
526         toplev.h in generated output.
527         * Makefile.in (OBJS-common): Add hwint.o.
528         Dependencies for above files changed to remove toplev.h.
529         (hwint.o): New.
530         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
531         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
532         toplev.h.
533         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
534         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
535
536 2010-11-30  Richard Guenther  <rguenther@suse.de>
537
538         PR tree-optimization/46717
539         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
540         call.  Manually create EH edges for the direct call and update
541         target PHI nodes.
542
543 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
544
545         * diagnostic-core.h: Include bversion.h.
546         * toplev.h: Don't include input.h or bversion.h.
547         (parse_optimize_options): Don't declare here.
548         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
549         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
550         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
551         config/host-darwin.c, config/i386/host-cygwin.c,
552         config/i386/host-mingw32.c, config/i386/msformat-c.c,
553         config/i386/netware.c, config/i386/nwld.c,
554         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
555         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
556         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
557         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
558         config/score/score3.c, config/score/score7.c,
559         config/sh/symbian-base.c, config/sh/symbian-c.c,
560         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
561         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
562         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
563         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
564         graphite-blocking.c, graphite-clast-to-gimple.c,
565         graphite-dependences.c, graphite-flattening.c,
566         graphite-interchange.c, graphite-poly.c,
567         graphite-scop-detection.c, graphite.c, haifa-sched.c,
568         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
569         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
570         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
571         lto-opts.c, lto-section-in.c, lto-section-out.c,
572         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
573         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
574         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
575         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
576         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
577         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
578         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
579         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
580         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
581         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
582         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
583         include toplev.h.
584         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
585         toplev.h.  Dependencies for above files and c-family files changed
586         to remove $(TOPLEV_H) or toplev.h.
587         (C_TREE_H): Don't include $(TOPLEV_H).
588         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
589         bversion.h.
590         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
591         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
592         config/t-darwin, config/t-sol2,
593         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
594         Dependencies for above files changed to remove $(TOPLEV_H) or
595         toplev.h.
596
597 2010-11-30  Richard Guenther  <rguenther@suse.de>
598
599         PR lto/44986
600         * gcc.c (main): Use the first input with a compiler as infile
601         for link spec processing.
602
603 2010-11-30  Richard Guenther  <rguenther@suse.de>
604
605         PR lto/45949
606         * cgraphunit.c (ipa_passes): Stop after errors from
607         small IPA passes.
608
609 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
610
611         * gcc-plugin.h: Include coretypes.h.
612         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
613
614 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
615
616         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
617         * ggc-none.c (ggc_internal_alloc_zone_stat)
618         (ggc_internal_cleared_alloc_zone_stat): New.
619
620 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
621
622         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
623         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
624         (rs6000_emit_prologue): Don't set PIC register if
625         TARGET_SINGLE_PIC_BASE.
626         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
627         * doc/invoke.texi (msingle-pic-base): Document.
628
629 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
630
631         PR driver/46712
632         * exec-tool.in (id): New.
633         Check and export LT_RCU_$id instead of LT_RCU.
634
635 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
636
637         PR tree-optimization/46675
638         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
639         in offset calculation.
640
641 2010-11-29  Jan Hubicka  <jh@suse.cz>
642
643         * collect2.c (main): Do not imply verbose output with
644         LTO and linker plugin.
645
646 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
647
648         * dwarf2out.c (print_die): Print the address of the current DIE or
649         of any DIE referenced by the current one.
650
651 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
652
653         PR debug/46101
654         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
655         function.
656         (scope_die_for, gen_type_die_for_member): Replace uses of
657         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
658
659 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
660
661         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
662         (darwin_asm_declare_object_name): Correct spelling.
663         (darwin_output_aligned_bss): Likewise.
664
665 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
666             Mike Stump  <mrs@gcc.gnu.org>
667
668         PR target/26427
669         PR target/33120
670         PR testsuite/35710
671         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
672         (ASM_OUTPUT_LOCAL): Likewise.
673         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
674         (darwin_output_aligned_bss): Likewise.
675         (darwin_asm_output_aligned_decl_local): Likewise.
676         (darwin_asm_output_aligned_decl_common): Likewise.
677         (darwin_use_anchors_for_symbol_p): Likewise.
678         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
679         (TARGET_ASM_OUTPUT_ANCHOR): Define.
680         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
681         (DARWIN_SECTION_ANCHORS): Set to 1.
682         * config/darwin.c (emit_aligned_common): New var.
683         (darwin_init_sections): Check that the Darwin private zero-size section
684         marker is in range.
685         (darwin_text_section): Check for zero-sized objects.
686         (darwin_mergeable_string_section): Likewise.
687         (darwin_mergeable_constant_section): Likewise.
688         (machopic_select_section): Adjust to check for zero-sized objects.
689         Assert that OBJC meta data are non-zero sized.
690         (darwin_asm_declare_object_name): New.
691         (darwin_asm_declare_constant_name): Adjust for zero-sized
692         object sections.
693         (BYTES_ZFILL): Define.
694         (darwin_emit_weak_or_comdat): New.
695         (darwin_emit_local_bss): New.
696         (darwin_emit_common): New.
697         (darwin_output_aligned_bss): New.
698         (darwin_asm_output_aligned_decl_common): New.
699         (darwin_asm_output_aligned_decl_local): New.
700         (darwin_file_end): Disable subsections_via_symbols when section
701         anchoring is active.
702         (darwin_asm_output_anchor): Re-enable.
703         (darwin_use_anchors_for_symbol_p): New.
704         (darwin_override_options): Check for versions that can emit
705         aligned common.  Update usage of flags to current.
706         * config/darwin-sections.def: Update comments and flags for
707         non-anchor sections.  zobj_const_section, zobj_data_section,
708         zobj_bss_section, zobj_const_data_section: New.
709         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
710         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
711         (L2_MAX_OFILE_ALIGNMENT): Define.
712         (ASM_OUTPUT_ALIGNED_BSS): Define.
713         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
714         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
715         (SECTION_NO_ANCHOR): Define.
716         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
717         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
718
719 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
720
721         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
722         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
723         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
724         Conditionally define.
725         (GET_ENVIRONMENT): Poison.
726         * configure.ac: Don't test for mincore.
727         * configure: Regenerate.
728         * config.in: Regenerate.
729         * collect2-aix.c: Don't include <sys/mman.h>.
730         * collect2.c: Don't include <signal.h>.
731         (SIGCHLD): Don't define.
732         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
733         * config/alpha/alpha.c: Include "splay-tree.h" instead of
734         <splay-tree.h>.
735         * config/arm/arm.c (arm_target_help): Use getenv instead of
736         GET_ENVIRONMENT.
737         * config/avr/driver-avr.c: Don't include <stdlib.h>.
738         * config/frv/frv.c: Don't include <ctype.h>.
739         * config/host-darwin.c: Don't include <sys/mman.h>.
740         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
741         (MAP_FAILED): Don't define.
742         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
743         * config/host-solaris.c: Don't include <sys/mman.h>.
744         * config/i386/cygming.h: Don't include <stdio.h>.
745         * config/i386/driver-i386.c: Don't include <stdlib.h>.
746         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
747         * config/iq2000/iq2000.c: Don't include <signal.h>.
748         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
749         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
750         * config/mep/mep-pragma.c: Don't include <stdio.h>.
751         * config/microblaze/microblaze.c: Don't include <signal.h>.
752         * config/mips/mips.c: Don't include <signal.h>.
753         * config/rs6000/host-darwin.c: Don't include <signal.h>.
754         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
755         * defaults.h (GET_ENVIRONMENT): Don't define.
756         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
757         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
758         (SIGCHLD, MAP_FAILED, kill): Don't define.
759         (process_command): Use getenv instead of GET_ENVIRONMENT.
760         * genhooks.c: Don't include <string.h>.
761         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
762         <sys/types.h>.
763         (MAP_FAILED): Don't define.
764         * ggc-page.c Don't include <sys/mman.h>.
765         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
766         * ggc-zone.c: Don't include <sys/mman.h>.
767         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
768         * graph.c: Include "config.h" instead of <config.h>.
769         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
770         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
771         (SIGCHLD, kill): Don't define.
772         * mips-tfile.c: Don't include <signal.h>.
773         * opts.c: Don't include <signal.h> or <sys/resource.h>.
774         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
775         * passes.c: Don't include <signal.h>, <sys/resource.h> or
776         <sys/times.h>.
777         * sparseset.h: Don't include <assert.h>.
778         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
779         * tlink.c: Don't include "libiberty.h".
780         * toplev.c: Don't include <signal.h> or <sys/times.h>.
781         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
782         * tree-switch-conversion.c: Don't include <signal.h>.
783         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
784
785 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
786
787         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
788         c_parser_objc_try_catch_finally_statement for consistency with the
789         C++ parser.  Parse @catch(...) and pass NULL_TREE to
790         objc_begin_catch_clause() in that case.  Improved error recovery.
791         Reorganized code to be almost identical to
792         cp_parser_objc_try_catch_finally_statement.
793
794 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
795
796         PR tree-optimization/46621
797         * gimple.h: Don't include tm.h or hard-reg-set.h .
798         * Makefile.in (GIMPLE_H): Remove $(TM_H).
799
800         PR bootstrap/44756
801         * cppbuiltin.c: Include target.h .
802         (define_builtin_macros_for_type_sizes):
803         Use targetm.float_words_big_endian.
804
805 2010-11-27  Jan Hubicka  <jh@suse.cz>
806
807         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
808         and output cold_text_section_label.
809         (dwarf2out_init): Don't do that there.
810         (dwarf2out_finish): Handle cold section end label only if cold
811         section was used.
812
813 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
814
815         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
816         VLA variables.
817
818 2010-11-27  Richard Guenther  <rguenther@suse.de>
819
820         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
821         (gimple_assign_ssa_name_copy_p): Likewise.
822         (gimple_assign_unary_nop_p): Use is_gimple_assign.
823         (is_gimple_cast): Remove.
824         (gimple_assign_single_p): Move ...
825         * gimple.h (gimple_assign_single_p): ... here.
826         (is_gimple_cast): Remove.
827         (gimple_assign_rhs_code): Simplify.
828         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
829         instead of is_gimple_cast.
830         * ipa-type-escape.c (look_for_casts): Likewise.
831
832 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
833
834         * doc/options.texi (Enum, EnumValue): Document new record types.
835         (Enum): Document new option flag.
836         * opt-functions.awk
837         * optc-gen.awk: Handle enumerated option arguments.
838         * opth-gen.awk: Handle enumerated option arguments.
839         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
840         enum_value_to_arg): New.
841         (decode_cmdline_option): Handle enumerated arguments.
842         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
843         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
844         * opts.c (print_filtered_help, print_specific_help): Take
845         lang_mask arguments.
846         (print_filtered_help): Handle printing values of enumerated
847         options.  Print possible arguments for enumerated options.
848         (print_specific_help): Update call to print_filtered_help.
849         (common_handle_option): Update calls to print_specific_help.  Use
850         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
851         handle OPT_ffp_contract_, OPT_fexcess_precision_,
852         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
853         OPT_fira_region_ here.
854         * opts.h (enum cl_var_type): Add CLVC_ENUM.
855         (struct cl_option): Add var_enum.
856         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
857         struct cl_enum, cl_enums, cl_enums_count): New.
858         (CL_ERR_ENUM_ARG): Define.
859         (CL_ERR_NEGATIVE): Update value.
860         (enum_value_to_arg): Declare.
861         * common.opt (flag_ira_algorithm, flag_ira_region,
862         flag_fp_contract_mode, flag_excess_precision_cmdline,
863         default_visibility, flag_tls_default): Remove Variable entries.
864         (help_enum_printed): New Variable.
865         (fdiagnostics-show-location=): Use Enum.  Add associated
866         SourceInclude, Enum and EnumValue entries.
867         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
868         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
869         associated Enum and EnumValue entries.
870
871 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
872
873         PR target/46623
874         * config/microblaze/microblaze.c (microblaze_block_move_straight):
875         Use XALLOCAVEC.
876         (microblaze_option_override): Don't use C++ style comments.
877         (save_restore_insns): Remove unused variable base_offset.
878         (microblaze_expand_prologue): Remove unused variable insn.
879         (microblaze_secondary_reload): Adjust type to match target.h .
880         (microblaze_elf_in_small_data_p): Move declarations to start of block.
881         (microblaze_expand_move): Likewise.
882         * config/microblaze/microblaze.h (LARGE_INT):
883         Avoid signed / unsigned comparisons.
884         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
885         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
886         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
887
888 2010-11-26  Michael Matz  <matz@suse.de>
889
890         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
891
892         * passes.c (init_optimization_passes): Remove superfluous
893         copy-prop pass.
894
895 2010-11-26  Richard Guenther  <rguenther@suse.de>
896
897         PR lto/46648
898         * gimple.c (gtc_visit): Do not return true for members of an
899         SCC still being processed but the current lattice value of
900         the member.  Treat SCC members comparison state as lattice,
901         starting at equal, eventually dropping to unequal.
902         (gimple_types_compatible_p_1): Likewise.
903
904 2010-11-26  Richard Guenther  <rguenther@suse.de>
905
906         PR middle-end/46559
907         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
908         for location list processing.
909
910 2010-11-26  Richard Guenther  <rguenther@suse.de>
911
912         PR lto/46560
913         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
914         flags manually.
915
916 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
917
918         * config/s390/s390.c (print_operand_address): Replace assert with
919         error message.
920         (print_operand): Replace assertions, gcc_unreachable and
921         fatal_insn with error messages.
922
923 2010-11-26  Richard Guenther  <rguenther@suse.de>
924
925         PR tree-optimization/46665
926         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
927
928 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
929
930         * config/arm/arm.c (arm_option_override): enable loop array
931         prefetching at -O3 for suitable targets, and configure params.
932         * config/arm/arm-protos.h (struct tune_params): Add fields for
933         configuring loop array prefetching.
934
935 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
936
937         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
938
939 2010-11-26  Richard Guenther  <rguenther@suse.de>
940
941         PR tree-optimization/46664
942         * tree-affine.c (aff_combination_to_tree): Add rest last.
943
944 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
945
946         PR target/33637
947         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
948         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
949         * configure: Regenerated.
950         * exec-tool.in: Not quoting command, may have extra arguments.
951
952 2010-11-26  Richard Guenther  <rguenther@suse.de>
953
954         PR tree-optimization/46528
955         PR debug/46338
956         * profile.c (branch_prob): Do not split blocks based on locations
957         from debug statements.
958
959 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
960
961         PR middle-end/46647
962         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
963         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
964
965         PR bootstrap/45700
966         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
967         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
968         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
969         build6_loc): Define.
970         * fold-const.c (protected_set_expr_location_unshare): New inline.
971         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
972         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
973         pedantic_omit_one_operand_loc, omit_two_operands_loc,
974         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
975         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
976         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
977         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
978         instead of buildN followed by SET_EXPR_LOCATION or
979         protected_set_expr_location.
980         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
981         Use buildN_stat_loc instead of buildN_stat followed by
982         SET_EXPR_LOCATION.
983
984 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
985
986         * Makefile.in (s-tm-texi): Remove spurous tab.
987
988 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
989
990         PR debug/46258
991         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
992         debug stmts.
993
994 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
995
996         * toplev.c (finalize): Add no_backend parameter.  Don't finish
997         passes when preprocessing only.  Adjust...
998         (do_compile): ... caller.
999
1000 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1001
1002         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1003         flag_unsafe_math_optimizations.
1004         (negsf2): Likewise.
1005         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1006         to negate a multiply if !flag_signed_zeros is true.
1007
1008 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1009
1010         * gengtype-state.c (read_state_structures): Initialize "previous".
1011
1012 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1013             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1014
1015         * gengtype-state.c: Add new file.
1016
1017         * gengtype.c (type count): New variable.
1018         (new_structure, find_param_structure, create_pointer)
1019         (create_array): Use it to set state_number in types.
1020         (dump_everything): Improve comment.
1021         (main): Call read_state and write_state. Print type_count.
1022
1023         * gengtype.h (type_lineloc): New function.
1024         (read_state, write_state): New declarations.
1025
1026         * Makefile.in (GENGTYPE_FLAGS): New variable.
1027         (s-gtype): Run gengtype twice and generate gtype.state.
1028         (build/gengtype-state.o): New rule.
1029         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1030         (mostlyclean): Update comment.  Remove gtype.state.
1031
1032 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1033
1034         PR middle-end/46637
1035         * combine.c (try_combine): When substing i2dest for i2src, pass
1036         1 as last argument even if
1037         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1038
1039 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1040
1041         PR middle-end/46647
1042         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1043         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1044
1045 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * target.def (supports_split_stack, except_unwind_info): Take
1048         gcc_options parameters.
1049         * targhooks.c (default_except_unwind_info,
1050         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1051         gcc_options parameters.
1052         * targhooks.h (default_except_unwind_info,
1053         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1054         prototypes.
1055         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1056         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1057         Document that hooks must not be modified.
1058         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1059         * doc/tm.texi: Regenerate.
1060         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1061         &global_options to targetm.except_unwind_info.
1062         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1063         dwarf2out_begin_prologue, dwarf2out_frame_init,
1064         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1065         &global_options to targetm.except_unwind_info.
1066         * except.c (init_eh, finish_eh_generation,
1067         gate_convert_to_eh_region_ranges,
1068         output_one_function_exception_table): Pass &global_options to
1069         targetm.except_unwind_info.
1070         * expr.c (build_personality_function): Pass &global_options to
1071         targetm.except_unwind_info.
1072         * function.c (expand_function_end): Pass &global_options to
1073         targetm.except_unwind_info.
1074         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1075         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1076         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1077         and targetm.supports_split_stack.  Remove assertions about opts
1078         and opts_set.
1079         (common_handle_option): Remove assertions about opts, opts_set and dc.
1080         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1081         &global_options to targetm.except_unwind_info.
1082         * tree.c (build_common_builtin_nodes: Pass &global_options to
1083         targetm.except_unwind_info.
1084         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1085         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1086         thumb1_expand_prologue, thumb1_output_function_prologue,
1087         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1088         arm_except_unwind_info.
1089         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1090         parameter.
1091         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1092         parameter.
1093         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1094         ia64_reorg, ia64_asm_unwind_emit): Update calls to
1095         ia64_except_unwind_info.
1096         * config/pa/pa.c (pa_option_override): Pass &global_options to
1097         targetm.except_unwind_info.
1098         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1099         Remove prototype.
1100
1101 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
1102
1103         * cgraphunit.c (process_function_and_variable_attributes):
1104         Mark dllexport-ed function/variables as needed.
1105         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1106         as externally visible.
1107
1108 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1109
1110         PR rtl-optimization/46585
1111         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1112         (vinsn_init): Skip computation of dependencies for local NOPs.
1113         (vinsn_delete): Don't try to free regsets for local NOPs.
1114         (setup_nop_and_exit_insns): Change definition of nop_pattern.
1115
1116 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1117
1118         PR rtl-optimization/46602
1119         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1120         (tidy_control_flow): Here.
1121
1122 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
1123             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1124
1125         PR bootstrap/45888
1126         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1127         Fix target.def pathname in timestamp comparison.
1128
1129 2010-11-24  Richard Henderson  <rth@redhat.com>
1130
1131         * config/ia64/predicates.md (pmpyshr_operand): New.
1132         * config/ia64/ia64.c (ia64_expand_unpack): New.
1133         (ia64_expand_widen_mul_v4hi): New.
1134         (ia64_expand_widen_sum): Update for pattern renames.
1135         (ia64_expand_dot_prod_v8qi): Likewise.
1136         * config/ia64/ia64-protos.h: Update.
1137         * config/ia64/vect.md (vecwider): New mode attribute.
1138         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1139         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1140         (pmpyshr2, pmpyshr2_u): New.
1141         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1142         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1143         (mulv2si3): New.
1144         (vec_pack_ssat_v4hi): Rename from pack2_sss.
1145         (vec_pack_usat_v4hi): Rename from *pack2_uss.
1146         (vec_pack_ssat_v2si): Rename from pack4_sss.
1147         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1148         vec_select operation.
1149         (vec_interleave_highv8qi): Similarly.
1150         (mux1_alt): Rename from *mux1_alt.
1151         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1152         (vec_interleave_lowv4hi): Rename from unpack2_l.
1153         (vec_interleave_highv4hi): Rename from unpack2_h.
1154         (mix2_r): Rename from *mix2_r.
1155         (mix2_l): Similarly.
1156         (vec_extract_evenodd_helper): New.
1157         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1158         (vec_interleave_lowv2si): Rename from *unpack4_l.
1159         (vec_interleave_highv2si): Rename from *unpack4_h.
1160         (vec_extract_evenv2si, vec_extract_oddv2si): New.
1161         (vec_interleave_lowv2sf): Rename from fmix_r.
1162         (vec_interleave_highv2sf): Rename from *fmix_l.
1163         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1164         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1165         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1166         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1167
1168 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1169
1170         * targhooks.c (default_except_unwind_info): Remove
1171         MUST_USE_SJLJ_EXCEPTIONS case.
1172         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1173         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1174         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1175         * doc/tm.texi: Regenerate.
1176         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1177
1178 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1179
1180         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1181         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1182         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1183         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1184         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1185
1186 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         PR target/46519
1189         * config/i386/i386.c (ix86_expand_call): Don't check
1190         TREE_THIS_VOLATILE.
1191
1192 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194         PR target/46519
1195         * config/i386/i386.c (upper_128bits_state): New.
1196         (block_info_def): Remove upper_128bits_set and done.  Add state,
1197         referenced, count, processed and rescanned.
1198         (check_avx256_stores): Updated.
1199         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1200         Call note_stores only if needed.  Set referenced and count.
1201         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1202         (rescan_move_or_delete_vzeroupper): New.
1203         (move_or_delete_vzeroupper):  Process and rescan all all basic
1204         blocks instead of predecessor blocks of all exit points.
1205         (ix86_option_override_internal): Enable vzeroupper optimization
1206         only for -fexpensive-optimizations and not optimizing for size.
1207         (use_avx256_p): Removed.
1208         (init_cumulative_args): Don't set use_avx256_p.
1209         (ix86_function_arg): Likewise.
1210         (ix86_expand_move): Likewise.
1211         (ix86_expand_vector_move_misalign): Likewise.
1212         (ix86_local_alignment): Likewise.
1213         (ix86_minimum_alignment): Likewise.
1214         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1215         vzeroupper.
1216         (ix86_expand_call): Likewise.
1217
1218         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1219         and use_avx256_p.  Add rescan_vzeroupper_p.
1220
1221 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1222
1223         * toplev.c: Include <signal.h>.
1224
1225 2010-11-24  Richard Guenther  <rguenther@suse.de>
1226
1227         PR lto/43218
1228         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1229         conflicting function signatures as non-inlineable.
1230
1231 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1232
1233         PR rtl-optimization/46614
1234         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1235          (deps_analyze_insn): Mark JUMP_INSNs in
1236         last_pending_memory_flush that weren't added through
1237         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1238         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1239         on INSN_LIST instead of JUMP_P check on its operand.
1240         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1241
1242 2010-11-24  Richard Guenther  <rguenther@suse.de>
1243
1244         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1245
1246 2010-11-24  Richard Guenther  <rguenther@suse.de>
1247
1248         PR lto/46606
1249         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1250         a FIELD_DECL that is type correct issue a warning and fixup
1251         with a VIEW_CONVERT_EXPR.
1252
1253 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1254
1255         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1256         Explain static numbering of dump files.
1257
1258 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1259
1260         * common.opt (user_vect_verbosity_level): New Variable entry.
1261         (ftree-vectorizer-verbose=): Mark as UInteger.
1262         * flag-types.h (enum vect_verbosity_levels): Move from enum
1263         verbosity_levels in tree-vectorizer.h.
1264         * opts.c: Don't include tree.h.
1265         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1266         gcc_options parameter; take integer option argument.
1267         (common_handle_option): Update call to vect_set_verbosity_level.
1268         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1269         (vect_set_verbosity_level): Move to opts.c.
1270         (vect_verbosity_level, vect_print_dump_info): Update for change of
1271         enum name.
1272         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1273         (vect_print_dump_info): Update for change of enum name.
1274         * tree.h (vect_set_verbosity_level): Remove.
1275         * Makefile.in (opts.o): Update dependencies.
1276
1277 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1278
1279         PR middle-end/46629
1280         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1281         instead of insn with any_condjump_p.
1282
1283 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1284
1285         * config/mips/loongson.md: Change the description comment of the file
1286         and update the copyright years.
1287         (define_insn "<u>div<mode>3): Add loongson3a support.
1288         (define_insn "<u>mod<mode>3"): Likewise.
1289         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1290         mul<mode>3_mul3_loongson.
1291         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1292         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1293
1294 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1295
1296         * common.opt (initial_max_fld_align, flag_debug_asm,
1297         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1298         flag_print_asm_name, graph_dump_format, help_printed,
1299         help_columns, flag_opts_finished): New Variable entries.
1300         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1301         frandom-seed=): Mark deferred.
1302         (fsched-verbose=): Use UInteger and Var.
1303         * flags.h (set_struct_debug_option, flag_print_asm_name,
1304         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1305         graph_dump_format): Don't declare here.
1306         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1307         * opts-global.c: Include dbgcnt.h and debug.h.
1308         (decode_options): Pass location to finish_options.
1309         (handle_common_deferred_options): Check flag_dump_all_passed.
1310         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1311         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1312         OPT_fstack_limit.
1313         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1314         (set_struct_debug_option): Add location_t parameter.  Update
1315         recursive call.  Use error_at.
1316         (default_options_optimization): Use error_at.
1317         (finish_options): Add location_t parameter.  Use
1318         opts->x_flag_opts_finished instead of first_time_p.  Use
1319         opts->x_optimize instead of optimize.  Use error_at.  Pass
1320         location to inform.
1321         (print_filtered_help): Use opts->x_help_printed to track what
1322         options have been printed.
1323         (print_specific_help): Use opts->x_help_columns to track number of
1324         columns.
1325         (common_handle_option): Pass locations and gcc_options pointers to
1326         more functions.  Use warning_at instead of fnotice and warning.
1327         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1328         OPT_fdebug_prefix_map_.  Use error_at.  Set
1329         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1330         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1331         OPT_fsched_verbose_.
1332         (handle_param): Add location_r parameter.  Use error_at.
1333         (set_debug_level): Add location_r parameter.  Use error_at and
1334         warning_at.
1335         (setup_core_dumping): Add diagnostic_context parameter.
1336         (decode_d_option): Add gcc_options, location_t and
1337         diagnostic_context parameters and use them instead of global
1338         state.  Use warning_at.
1339         (enable_warning_as_error): Use error_at.
1340         * opts.h (finish_options): Update prototype.
1341         (set_struct_debug_option): Declare here.
1342         * rtl.h (fix_sched_param): Remove.
1343         * stor-layout.c (initial_max_fld_align): Remove.
1344         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1345         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1346         (process_options): Set maximum_field_alignment.
1347         * tree.h (initial_max_fld_align) Don't declare here.
1348         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1349
1350 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1351
1352         * flag-types.h (struct visibility_flags): Don't declare here.
1353         * flags.h (strip_off_ending, fast_math_flags_set_p,
1354         fast_math_flags_struct_set_p): Declare here.
1355         (visibility_options): Don't declare here.
1356         * opts-common.c (option_enabled, get_option_state): Move from
1357         opts.c.
1358         * opts-global.c: Include diagnostic.h instead of
1359         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
1360         and toplev.h.
1361         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1362         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1363         print_ignored_options, unknown_option_callback,
1364         post_handling_callback, lang_handle_option, add_input_filename,
1365         read_cmdline_options, initial_lang_mask, init_options_once,
1366         decode_cmdline_options_to_array_default_mask,
1367         set_default_handlers, decode_options): Move from opts.c.
1368         (print_ignored_options): Use warning_at instead of saving and
1369         restoring input_location.
1370         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
1371         instead of expr.h.  Don't include langhooks.h, except.h or
1372         lto-streamer.h.  Add more comments on includes.
1373         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
1374         toplev.c.
1375         (visibility_options): Move to c-family/c-common.c.
1376         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1377         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1378         print_ignored_options, unknown_option_callback,
1379         post_handling_callback, lang_handle_option, add_input_filename,
1380         read_cmdline_options, initial_lang_mask, init_options_once,
1381         decode_cmdline_options_to_array_default_mask,
1382         set_default_handlers, decode_options): Move to opts-global.c.
1383         (target_handle_option, default_options_optimization,
1384         finish_options, common_handle_option): Remove static.
1385         (option_enabled, get_option_state): Move to opts-common.c.
1386         * opts.h (common_handle_option, target_handle_option,
1387         finish_options, default_options_optimization): Declare.
1388         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1389         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1390         opts.c.
1391         * toplev.h (strip_off_ending, decode_d_option,
1392         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1393         declare here.
1394         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1395
1396 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1397
1398         PR driver/42690
1399         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1400         options, replace by call of pass-through-libs spec function to process
1401         link_gcc_c_sequence spec.
1402         (lto_libgcc_spec): Delete variable.
1403         (static_specs[]): Remove related entry.
1404         (static_spec_functions[]): Add new entry for pass-through-libs.
1405         (main): Don't generate deleted lto_libgcc_spec.
1406         (pass_through_libs_spec_func): New function to implement the new
1407         pass-through-libs spec function.
1408         * doc/invoke.texi (pass-through-libs): Document new spec function.
1409
1410 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1411
1412         * doc/options.texi (Warning, Optimization): Document.
1413
1414 2010-11-23  Jan Hubicka  <jh@suse.cz>
1415
1416         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1417         (tree_decl_with_vis): Add implicit_section_name_p.
1418         * targhooks.h (default_function_section): Declare.
1419         * target.def (function_section): New hook.
1420         * defaults.h (HOT_TEXT_SECTION_NAME,
1421         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1422         * predict.c (choose_function_section): Remove.
1423         (estimate_bb_frequencies): Do not use choose_function_section.
1424         * coretypes.h (enum node_frequency): Move here from cgraph.h
1425         * cgraph.h (enum node_frequency): Remove.
1426         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1427         unlikely_text_section_p): Remove.
1428         (named_subsection_entry): New structure.
1429         (get_text_section): New function.
1430         (default_function_section): New function.
1431         (function_section_1): Break out from ...; handle profile info.
1432         (function_section): ... here.
1433         (unlikely_text_section): Remove.
1434         (unlikely_text_section_p): Use function_section_1.
1435         (assemble_start_function): Do not initialize cold section.
1436         (default_section_type_flags): Do not special case cold subsection.
1437         (switch_to_section): Likewise.
1438         * output.h (get_text_section): Define.
1439         * config/i386/winnt.c: Do not special case cold section.
1440         * config/darwin-protos.h (darwin_function_section): Declare.
1441         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1442         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1443         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1444         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1445         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1446         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1447         * config/darwin.c (machopic_select_section): Use
1448         darwin_function_section.
1449         (darwin_function_section): New function.
1450         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1451         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1452         (TARGET_ASM_FUNCTION_SECTION): Define.
1453         * system.h (HOT_TEXT_SECTION_NAME,
1454         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1455
1456 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1457
1458         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1459         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1460
1461 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1462
1463         PR middle-end/46499
1464         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1465         following unconditional jumps.
1466
1467 2010-11-23  Richard Guenther  <rguenther@suse.de>
1468
1469         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1470
1471 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1472             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1473
1474         * gengtype.c (enum typekind, struct options)
1475         (struct nested_ptr_data, struct pair, NUM_PARAM)
1476         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1477         Move to gengtype.h.
1478         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1479         Remove static, add zero state_number.
1480         (typedefs, structures, param_structs, variables): Remove static.
1481         (create_option): Remove.
1482         (create_string_option, create_type_option, create_nested_option):
1483         New functions.
1484         (create_nested_ptr_option): Use create_nested_option.
1485         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1486         new create*option functions.
1487         (process_gc_options): Adjust for discriminated option.
1488         (output_mangled_typename): Handle TYPE_NONE.
1489         (walk_type): Test option kinds.
1490         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1491         (write_func_for_structure, write_type, write_local, write_root)
1492         (write_roots, note_def_vec, dump_options): Adjust for
1493         discriminated option.
1494
1495         * gengtype.h (typedefs, structures, param_structs, variables
1496         enum typekind): Move from gengtype.c
1497         (enum option_kind): New discriminating enumeration.
1498         (struct options): Becomes discriminated.
1499         (struct nested_ptr_data): Nove from gengtype.c
1500         (create_string_option, create_type_option, create_nested_option)
1501         (create_nested_ptr_option): New functions
1502         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1503         (UNION_OR_STRUCT_P): Move from gengtype.c
1504
1505         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1506         discriminated options.
1507
1508 2010-11-23  Richard Guenther  <rguenther@suse.de>
1509
1510         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1511         twice.  Avoid re-allocating the ops vector all the time.
1512
1513 2010-11-23  Richard Guenther  <rguenther@suse.de>
1514
1515         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1516         is_gimple_min_invariant, group tree code checks to allow
1517         combining them.
1518         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1519         of is_gimple_reg.
1520
1521 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1522
1523         * config.gcc (sparc*-*-*): Reorder.
1524
1525 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1526
1527         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1528         Remove ENABLE_CHECKING around DBGPRINTF.
1529
1530 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1531
1532         * common.opt (exit_after_options, write_symbols, debug_info_level,
1533         use_gnu_debug_info_extensions): New Variable entries.
1534         (fprofile-dir=): Use Var.
1535         * flag-types.h (enum debug_info_level): Rename to enum
1536         debug_info_levels.
1537         * flags.h (write_symbols, debug_info_level,
1538         use_gnu_debug_info_extensions): Remove declarations.
1539         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1540         (set_struct_debug_option): Make static variables const.
1541         (use_gnu_debug_info_extensions): Remove.
1542         (set_debug_level, print_filtered_help, print_specific_help,
1543         fast_math_flags_set_p): Take gcc_options parameters and use them
1544         in place of global variables.
1545         (print_filtered_help): Make new_help non-static.
1546         (print_specific_help): Update call to print_filtered_help.
1547         (common_handle_option): Update calls to print_specific_help.  Use
1548         gcc_options structure for more settings.  Make --help table
1549         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1550         set_debug_level.
1551         * toplev.c (profile_data_prefix): Remove.
1552         * toplev.h (profile_data_prefix, exit_after_options): Remove
1553         declarations.
1554         (fast_math_flags_set_p): Update prototype.
1555         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1556         Update call to fast_math_flags_set_p.
1557
1558 2010-11-22  Richard Henderson  <rth@redhat.com>
1559
1560         PR target/46434
1561         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1562         return the address register extracted.
1563         (crx_decompose_address): Update the extracted address register.
1564
1565 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1566
1567         PR driver/43335
1568         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1569
1570 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1571
1572         PR target/46608
1573         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1574         * config/picochip/picochip-protos.h: Don't include "target.h" .
1575         (picochip_secondary_reload): Don't declare.
1576
1577         PR target/46613
1578         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1579         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1580         static.
1581
1582 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1583
1584         PR bootstrap/46609
1585         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1586         (source_dot_c_frul): Likewise.
1587
1588 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1589
1590         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1591
1592 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1593
1594         PR bootstrap/44970
1595         * Makefile.in (fwprop.o) Add sparseset.h.
1596         * fwprop.c: Include sparseset.h
1597         (struct find_occurrence_data, find_occurrence_callback,
1598         find_occurrence): Remove.
1599         (active_defs, active_defs_check, register_active_defs,
1600         update_df_init, update_uses): New.
1601         (update_df): Rewrite.
1602         (try_fwprop_subst, forward_propagate_asm): Add calls to
1603         update_df_init and update_df.
1604         (fwprop_init): Allocate active_defs and active_defs_check.
1605         (fwprop_done): Free them.
1606         (fwprop, fwprop_addr): Adjust comments.
1607         * df.h (df_uses_create): Declare.
1608         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1609         (df_ref_create): Return result of df_ref_create_structure directly.
1610         (df_ref_create_structure): Call df_install_ref_incremental when
1611         no collection_rec is passed.
1612         (df_ref_record): Do not create multiword hard reg info when no
1613         collection_rec is passed.
1614         (df_uses_create): New.
1615
1616 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1617
1618         PR middle-end/43057
1619         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1620         setting location.
1621
1622 2010-11-22  Richard Guenther  <rguenther@suse.de>
1623
1624         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1625         MEM_REFs, preserve volatileness.
1626         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1627         addresses.
1628
1629 2010-11-22  Richard Guenther  <rguenther@suse.de>
1630
1631         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1632
1633 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1634
1635         PR rtl-optimization/45652
1636         * alias.c (get_reg_base_value): New.
1637         * rtl.h (get_reg_base_value): Add prototype.
1638         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1639         non-null REG_BASE_VALUE for renaming.
1640
1641 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1642             Basile Starynkevitch  <basile@starynkevitch.net>
1643
1644         * gengtype.c: Include xregex.h and obstack.h
1645         Added comments about role of get_output_file_with_visibility and
1646         our regexpr machinery.
1647         (frul_actionrout_t, struct file_rule_st): New.
1648         (hader_dot_h_frul, source_dot_c_frul): New functions.
1649         (NULL_REGEX,  NULL_FRULACT): New.
1650         (files_rules): New.
1651         (matching_file_name_substitute): New function.
1652         (get_output_file_with_visibility): Updated comments and rewritten
1653         to use the new files_rules machinery.
1654
1655         * Makefile.in (XREGEX_H): Added variable.
1656         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1657
1658 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1659
1660         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1661
1662 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1663
1664         * target.def (conditional_register_usage): Define.
1665         * reginfo.c (init_reg_sets_1): Call
1666         targetm.conditional_register_usage.
1667         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1668         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1669         for making it a hook.
1670         * doc/tm.texi: Regenerate.
1671         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1672         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1673         New function.
1674         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1675         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1676         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1677         New function.
1678         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1679         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1680         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1681         New function.
1682         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1683         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1684         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1685         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1686         (bfin_conditional_register_usage): ...here.  New function.
1687         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1688         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1689         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1690         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1691         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1692         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1693         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1694         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1695         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1696         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1697         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1698         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1699         New function.
1700         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1701         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1702         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1703         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1704         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1705         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1706         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1707         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1708         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1709         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1710         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1711         New function.
1712         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1713         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1714         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1715         Delete.
1716         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1717         static.
1718         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1719         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1720         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1721         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1722         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1723         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1724         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1725         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1726         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1727         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1728         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1729         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1730         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1731         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1732         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1733         ...here.  New function.
1734         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1735         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1736         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1737         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1738         New function.
1739         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1740         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1741         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1742         New function.
1743         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1744         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1745         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1746         Delete.
1747         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1748         static.
1749         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1750         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1751         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1752         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1753         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1754         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1755         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1756         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1757         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1758         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1759         * config/score/score.c (score_conditional_register_usage): ...here.
1760         New function.
1761         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1762         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1763         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1764         New function.
1765         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1766         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1767         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1768         New function.
1769         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1770         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1771         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1772         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1773         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1774         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1775         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1776         New function.
1777         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1778
1779 2010-11-21  Jan Hubicka  <jh@suse.cz>
1780             Dominique d'Humieres <dominiq@lps.ens.ft>
1781
1782         PR target/46510
1783         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
1784         finalize external decls.
1785
1786 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
1787
1788         * system.h (strerror): Poison.
1789
1790 2010-11-21  Richard Henderson  <rth@redhat.com>
1791
1792         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
1793         for infq/huge_valq.
1794
1795 2010-11-21  Richard Henderson  <rth@redhat.com>
1796
1797         PR rtl-optimization/46571
1798         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
1799         (compute_hash_table_work): Use NONDEBUG_INSN_P.
1800
1801 2010-11-21  Paul Koning  <ni1d@arrl.net>
1802
1803         * config/mips/pdp11.md (negsi2): Fix wrong code.
1804
1805 2010-11-21  Paul Koning  <ni1d@arrl.net>
1806
1807         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
1808         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1809
1810 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1811
1812         * config/mips/mips.c (machine_function): Rename load_label_length to
1813         load_label_num_insns.
1814         (mips_load_label_length): Rename to...
1815         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
1816         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
1817
1818 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1819
1820         PR target/46533
1821         * config/alpha/predicates.md (direct_call_operand): Return false
1822         for !TARGET_SMALL_TEXT targets.
1823
1824 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1825
1826         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
1827         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
1828         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
1829         * doc/tm.texi: Regenerate.
1830         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
1831         HANDLE_PRAGMA_WEAK): Poison.
1832         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1833         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1834         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
1835         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
1836         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1837         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1838         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1839         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
1840         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1841         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
1842         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1843         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
1844         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1845         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1846         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1847         (HANDLE_PRAGMA_WEAK): Don't undefine.
1848         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1849         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
1850         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1851         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
1852         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1853         (HANDLE_PRAGMA_WEAK): Don't undefine.
1854         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1855         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
1856         (HANDLE_PRAGMA_PACK): Don't undefine.
1857         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
1858         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1859         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1860         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1861         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
1862         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1863         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1864         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1865         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
1866         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1867         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
1868         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1869         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1870         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1871         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1872         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
1873         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1874
1875 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1876
1877         PR target/31100
1878         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
1879         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
1880         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
1881
1882 2010-11-20  Jan Hubicka  <jh@suse.cz>
1883
1884         * cgraph.c (ld_plugin_symbol_resolution_names): New.
1885         (dump_cgraph_node): Dump resolution.
1886         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
1887         (cgraph_comdat_can_be_unshared_p): Dclare.
1888         * lto-streamer-out.c (produce_symtab): Use
1889         cgraph_comdat_can_be_unshared_p.
1890         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
1891         (cgraph_comdat_can_be_unshared_p): New function based on logic
1892         in cgraph_externally_visible_p.
1893         (cgraph_externally_visible_p): Use it.
1894         (varpool_externally_visible_p): Virtual tables can be unshared.
1895         * varpool.c (dump_varpool_node): Dump resolution.
1896
1897 2010-11-20  Jan Hubicka  <jh@suse.cz>
1898
1899         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
1900
1901 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1902
1903         PR other/46202
1904         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
1905         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
1906         shell quoting.
1907         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
1908         (install-strip): New target.
1909         (STRIPPROG): New variable, exported if STRIP is set.
1910         * doc/install.texi (Final install): Minor markup and code style
1911         fixes.  Document install-strip target.
1912
1913 2010-11-20  Paul Koning  <ni1d@arrl.net>
1914
1915         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
1916         pdp11_regno_reg_class): New functions.
1917         * config/pdp11/pdp11.md (define_constants): Add register numbers.
1918         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
1919         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
1920         functions.
1921         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
1922         frame pointer and argument pointer pseudo-registers.
1923         (ARG_POINTER_REGNUM): Define.
1924         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
1925         argument pointer.
1926         (FIRST_PARM_OFFSET): Update for argument pointer.
1927         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1928         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
1929         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
1930         frame pointer and argument pointer.
1931
1932 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
1933
1934         PR debug/46561
1935         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
1936         when looking for immediate uses.
1937
1938         PR tree-optimization/45830
1939         * stmt.c (expand_switch_using_bit_tests_p): New function.
1940         (expand_case): Use it.
1941         * tree.h (expand_switch_using_bit_tests_p): New prototype.
1942         * tree-switch-conversion.c (struct switch_conv_info): Add
1943         bit_test_uniq, bit_test_count and bit_test_bb fields.
1944         (check_range): Fix a comment.
1945         (check_process_case): Compute bit_test_uniq and bit_test_count.
1946         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
1947         allocation.
1948         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
1949         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
1950         (array_value_type): New function.
1951         (build_one_array): Use it, if it returned different type,
1952         fold_convert all constructor fields and convert back to the
1953         wider type in the generated code.
1954         (process_switch): Initialize bit_test_uniq, bit_test_count and
1955         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
1956         returned true.
1957
1958 2010-11-19  Michael Matz  <matz@suse.de>
1959
1960         PR tree-optimization/46077
1961         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
1962
1963 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
1964
1965         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1966         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
1967         function.
1968         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1969
1970 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1971
1972         * mode-switching.c (optimize_mode_switching): Use
1973         FOR_BB_INSNS instead of open-coded loop.
1974         * cfgrtl.c (redirect_branch_edge): Ditto.
1975
1976 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
1977
1978         PR target/46436
1979         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
1980         to accomodate 32 bit HOST_WIDE_INT.
1981         (m68hc11_emit_logical): Remove unused variable insn.
1982         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
1983         this_insn_uses_iy before use.
1984
1985         PR target/46434
1986         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
1987
1988 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1989
1990         PR c/46547
1991         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
1992         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
1993
1994 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1995
1996         * doc/extend.texi (Function attributes): Document PowerPC target
1997         attributes that are supported.
1998         (Pragmas): Document that PowerPC now supports target pragmas.
1999
2000         * doc/options.texi (TargetVariable): Document TargetVariable,
2001         HeaderInclude, and SourceInclude.
2002
2003         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2004         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2005         -ffp-contract=off.
2006
2007         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2008         SourceInclude directives.  Fix a cut+paste error with target save
2009         enum variables.  Sort enums in the structures after ints and
2010         before shorts.
2011         * opth-gen.awk: Ditto.
2012
2013         * configure.ac: Add support for HeaderInclude and SourceInclude option
2014         directives to add the appropriate files to the dependency lists.
2015         * configure: Regenerate.
2016         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2017         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2018         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2019         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2020         (gcc-options.o): Ditto.
2021         * opt-include.awk: New awk script to handle HeaderInclude and
2022         TargetInclude.
2023
2024         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2025         gets saved in the target options.
2026         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2027         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2028         (-mprototype): Ditto.
2029         (-mbit-word): ditto.
2030         (-mregnames): Ditto.
2031         (-msecure-plt): Ditto.
2032         (-mbss-plt): Ditto.
2033         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2034         (-mpowerpc-gfxopt): Ditto.
2035         (-mmfcrf): Ditto.
2036         (-mpopcntb): Ditto.
2037         (-mfprnd): Ditto.
2038         (-mcmpb): Ditto.
2039         (-mmmfpgpr): Ditto.
2040         (-maltivec): Ditto.
2041         (-mhard-dfp): Ditto.
2042         (-mmulhw): Ditto.
2043         (-mdlmzb): Ditto.
2044         (-mmultiple): Ditto.
2045         (-mstring): Ditto.
2046         (-mpopcntd): Ditto.
2047         (-mfriz): Ditto.
2048         (-mvsx): Ditto.
2049         (-mno-update): Ditto.
2050         (-mavoid-indexed-addresses): Ditto.
2051         (-mtls-markers): Ditto.
2052         (-msched-epilog): Ditto.
2053         (-msched-prolog): Ditto.
2054         (-maix-struct-return): Ditto.
2055         (-msvr4-struct-return): Ditto.
2056         (-mxl-compat): Ditto.
2057         (-mrecip-precision): Ditto.
2058         (-mfp-in-toc): Ditto.
2059         (-msum-in-toc): Ditto.
2060         (-mvrsave): Ditto.
2061         (-mblock-move-inline-limit=): Ditto.
2062         (-misel): Ditto.
2063         (-mpaired): Ditto.
2064         (-mlongcall): Ditto.
2065         (-mgen-cell-microcode): Ditto.
2066         (-mwarn-cell-microcode): Ditto.
2067         (-mwarn-altivec-long): Ditto.
2068         (-mprioritize-restricted-insns=): Ditto.
2069         (-msingle-float): Ditto.
2070         (-mdouble-float): Ditto.
2071         (-msimple-fpu): Ditto.
2072         (-mxilinx-fpu): Ditto.
2073         * config/rs6000/aix64.opt (-mpe): Ditto.
2074
2075         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2076         (rs6000_cpu): Move variable to be a target variable.  Rename
2077         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2078         -mdebug=<xxx> variables into a single int.
2079         (rs6000_always_hint): Ditto.
2080         (rs6000_sched_groups): Ditto.
2081         (rs6000_align_branch_targets): Ditto.
2082         (rs6000_sched_costly_dep): Ditto.
2083         (rs6000_sched_insert_nops): Ditto.
2084         (rs6000_long_double_type_size): Ditto.
2085         (rs6000_ieeequad): Ditto.
2086         (rs6000_altivec_abi): Ditto.
2087         (rs6000_spe): Ditto.
2088         (rs6000_spe_abi): Ditto.
2089         (rs6000_float_gprs): Ditto.
2090         (rs6000_darwin64_abi): Ditto.
2091         (can_override_loop_align): Ditto.
2092         (rs6000_sdata): Ditto.
2093         (rs6000_tls_size): Ditto.
2094         (rs6000_current_abi): Ditto.
2095         (rs6000_traceback): Ditto.
2096         (rs6000_alignment_flags): Ditto.
2097         (rs6000_current_cmodel): Ditto.
2098         (rs6000_recip_control): Ditto.
2099         (rs6000_cpu_index): Ditto.
2100         (rs6000_tune_index): Ditto.
2101         (rs6000_debug): Ditto.
2102         (rs6000_target_flags_explict): Ditto.
2103
2104         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2105         declaration.
2106
2107         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2108         cmodel.  Change all uses.
2109
2110         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2111         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
2112         Rename cmodel to rs6000_current_cmodel.
2113         (rs6000_sched_groups): Ditto.
2114         (rs6000_align_branch_targets): Ditto.
2115         (rs6000_sched_costly_dep): Ditto.
2116         (rs6000_sched_insert_nops): Ditto.
2117         (rs6000_long_double_type_size): Ditto.
2118         (rs6000_ieeequad): Ditto.
2119         (rs6000_altivec_abi): Ditto.
2120         (rs6000_spe): Ditto.
2121         (rs6000_spe_abi): Ditto.
2122         (rs6000_float_gprs): Ditto.
2123         (rs6000_darwin64_abi): Ditto.
2124         (can_override_loop_align): Ditto.
2125         (rs6000_sdata): Ditto.
2126         (rs6000_tls_size): Ditto.
2127         (rs6000_current_abi): Ditto.
2128         (rs6000_traceback): Ditto.
2129         (rs6000_alignment_flags): Ditto.
2130         (rs6000_current_cmodel): Ditto.
2131         (rs6000_recip_control): Ditto.
2132         (rs6000_cpu_index): Ditto.
2133         (rs6000_tune_index): Ditto.
2134         (rs6000_debug): Ditto.
2135         (rs6000_target_flags_explict): Ditto.
2136         (rs6000_sched_insert_nops_str): Make static.
2137         (rs6000_sched_costly_dep_str): Ditto.
2138         (rs6000_recip_name): Ditto.
2139         (rs6000_abi_name): Ditto.
2140         (rs6000_sdata_name): Ditto.
2141         (enum rs6000_traceback_name): Move to rs6000-opts.h.
2142         (rs6000_parse_tls_size_option): Delete.
2143         (rs6000_valid_attribute_p): New function for target attributes and
2144         pragmas.
2145         (rs6000_function_specific_save): Ditto.
2146         (rs6000_function_specific_restore): Ditto.
2147         (rs6000_function_specific_print): Ditto.
2148         (rs6000_can_inline_p): Ditto.
2149         (rs6000_set_current_function): Ditto.
2150         (rs6000_inner_target_options): Ditto.
2151         (rs6000_debug_target_options): Ditto.
2152         (rs6000_pragma_target_parse): Ditto.
2153         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2154         attributes and pragmas.
2155         (TARGET_OPTION_SAVE): Ditto.
2156         (TARGET_OPTION_RESTORE): Ditto.
2157         (TARGET_OPTION_PRINT): Ditto.
2158         (TARGET_CAN_INLINE_P): Ditto.
2159         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2160         (POWER_MASKS): Move to file level scope from the
2161         rs6000_option_override_internal function.
2162         (POWERPC_MASKS): Ditto.
2163         (ISA_*_MASKS): Ditto.
2164         (struct rs6000_ptt): Ditto.
2165         (processor_target_table): Ditto.
2166         (rs6000_cpu_name_lookup): Map cpu name to an index in
2167         processor_target_table.
2168         (rs6000_debug_reg_global): Print more information on processor
2169         options for -mdebug=reg.
2170         (rs6000_init_hard_regno_mode_ok): Add support for target
2171         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
2172         Allow -mdebug=val1,val2.  Rename cmodel variable.
2173         (rs6000_option_override_internal): Ditto.
2174         (rs6000_option_override): Ditto.
2175         (rs6000_handle_option): Ditto.
2176         (rs6000_conditional_register_usage): Add debug trace message.
2177         (struct rs6000_opt_mask): New for target attribute/pragma support.
2178         (rs6000_opt_masks): Ditto.
2179         (struct rs6000_opt_var): Ditto.
2180         (rs6000_opt_vars): Ditto.
2181         (rs6000_previous_function): Ditto.
2182
2183         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2184         wasn't already included.
2185         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2186         (enum processor_type): Ditto.
2187         (rs6000_cpu): Ditto.
2188         (enum fpu_type_t): Ditto.
2189         (fpu_type): Ditto.
2190         (enum rs6000_dependence_cost): Ditto.
2191         (enum rs6000_nop_insertion): Ditto.
2192         (enum group_termination): Ditto.
2193         (rs6000_long_double_type_size): Ditto.
2194         (rs6000_ieeequad): Ditto.
2195         (rs6000_altivec_abi): Ditto.
2196         (rs6000_spe_abi): Ditto.
2197         (rs6000_spe): Ditto.
2198         (rs6000_float_gprs): Ditto.
2199         (rs6000_alignment_flags): Ditto.
2200         (rs6000_sched_insert_nops): Ditto.
2201         (enum rs6000_vector): Ditto.
2202         (enum rs6000_abi): Ditto.
2203         (rs6000_current_opt): Ditto.
2204         (rs6000_debug_*): Delete.
2205         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2206         (TARGET_DEBUG*): Ditto.
2207
2208         * config/rs6000/rs6000-opts.h: New header file to define the enums
2209         that are used in target variables that are now defined in rs6000.opt.
2210
2211         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2212         rs6000-opts.h.
2213         (rs6000_sdata): Ditto.
2214         (rs6000_abi_name): Delete.
2215         (rs6000_sdata_name): Ditto.
2216         (rs6000_tls_size_string): Ditto.
2217
2218 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2219
2220         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2221         Variable entries.
2222         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2223         should_emit_struct_debug): Move from opts.c.
2224         * flag-types.h (enum debug_struct_file): Move from opts.c.
2225         * flags.h (should_emit_struct_debug): Remove.
2226         (base_of_path): Declare.
2227         (set_struct_debug_option): Add gcc_options parameter.
2228         * optc-gen.awk, opth-gen.awk: Handle array variables.
2229         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2230         debug_struct_generic): Remove.
2231         (set_struct_debug_option): Add gcc_options parameter.
2232         (base_of_path): Remove static.
2233         (main_input_basename, main_input_baselength, matches_main_base,
2234         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2235         Remove.
2236         * toplev.c (main_input_basename, main_input_baselength): Define
2237         here.
2238         * toplev.h (main_input_basename, main_input_baselength): Declare
2239         here.
2240
2241 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2242
2243         * common.opt (flag_instrument_functions_exclude_functions,
2244         flag_instrument_functions_exclude_files): New Variable definitions.
2245         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2246         * gimplify.c (char_p): Declare type and vectors.
2247         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2248         * opts.c (flag_instrument_functions_exclude_functions,
2249         flag_instrument_functions_exclude_files): Remove.
2250         (add_comma_separated_to_vector): Take void **.
2251         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2252         (common_handle_option): Use options structure for
2253         -finstrument-functions-exclude- options.
2254
2255 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2256
2257         * doc/options.texi (Var): Document effects of Defer.
2258         (Defer): Document.
2259         * opt-functions.awk (var_type, var_set): Handle deferred options.
2260         * opts-common.c (set_option): Handle CLVC_DEFER.
2261         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2262         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2263         fstack-limit-symbol=): Mark as deferred.
2264         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2265         plugin.h.
2266         (print_filtered_help): Don't report state of CLVC_DEFER options.
2267         (common_handle_option): Move code for OPT_fcall_used_,
2268         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2269         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2270         OPT_fstack_limit_symbol_ to opts-global.c.
2271         (option_enabled, get_option_state): Handle CLVC_DEFER.
2272         * opts.h: Include vec.h.
2273         (enum cl_var_type): Add CLVC_DEFER.
2274         (cl_deferred_option): Define type and vectors.
2275         (handle_common_deferred_options): Declare.
2276         * opts-global.c: New.
2277         * toplev.c (toplev_main): Call handle_common_deferred_options
2278         * Makefile.in (OPTS_H): Include $(VEC_H).
2279         (OBJS-common): Include opts-global.o.
2280         (opts.o): Update dependencies.
2281         (opts-global.o): Add dependencies.
2282
2283 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2284
2285         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2286         to objc_declare_protocols.
2287
2288 2010-11-19  Richard Guenther  <rguenther@suse.de>
2289
2290         PR lto/45789
2291         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2292         IDENTIFIERs do not stream TREE_TYPE.
2293         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2294
2295 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2296
2297         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2298
2299 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2300
2301         PR target/45870
2302         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2303         non-delegitimized TLS UNSPECs.
2304
2305 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2306             Ian Lance Taylor  <iant@google.com>
2307
2308         * config/darwin-c.c (darwin_additional_format_types): Export.
2309
2310 2010-11-18  Paul Koning  <ni1d@arrl.net>
2311
2312         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2313         pointer.
2314
2315 2010-11-18  Paul Koning  <ni1d@arrl.net>
2316
2317         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2318         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2319         * config/pdp11/pdp11.opt (-mabshi): Delete.
2320
2321 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2322
2323         * resource.h (struct resources): Fix typo in the comment.
2324
2325 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2326
2327         PR target/46546
2328         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2329
2330 2010-11-18  Richard Henderson  <rth@redhat.com>
2331
2332         PR middle-end/46515
2333         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2334         maybe_copy_epilogue_insn; handle prologue insns as well.
2335         * rtl.h, cfglayout.c: Update for rename.
2336         * recog.c (peep2_attempt): Copy prologue/epilogue data for
2337         RTX_FRAME_RELATED_P insns.
2338
2339 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
2340
2341         PR middle-end/46534
2342         * builtins.c (fold_builtin_printf): Don't copy and modify string
2343         before build_string_literal, instead modify what
2344         build_string_literal returned.
2345
2346 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2347
2348         PR c/33193
2349         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2350         REALPART_EXPR and IMAGPART_EXPR.
2351
2352 2010-11-18  Richard Guenther  <rguenther@suse.de>
2353
2354         PR tree-optimization/46172
2355         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2356         function.
2357         (slpeel_tree_peel_loop_to_edge): Call it.
2358
2359 2010-11-18  Jeff Law  <law@redhat.com>
2360
2361         PR middle-end-optimization/46297
2362         * postreload.c (reload_combine_note_store): Deal with embedded
2363         side effects in MEM expressions.
2364
2365 2010-11-18  Richard Guenther  <rguenther@suse.de>
2366
2367         PR lto/45089
2368         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2369         when checking is not enabled.
2370
2371 2010-11-18  Richard Guenther  <rguenther@suse.de>
2372
2373         PR lto/46525
2374         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2375         type leaders.
2376         (gimple_register_canonical_type): Also cache the canoncial type
2377         for non type leaders.
2378
2379 2010-11-18  Richard Guenther  <rguenther@suse.de>
2380
2381         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2382
2383 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2384
2385         PR middle-end/46518
2386         * sel-sched-ir.c (init_expr): Use the correct type for
2387         target_available.
2388         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2389
2390 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2391
2392         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2393         as well as -mrelocatable at the same time.
2394
2395 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2396
2397         PR target/46422
2398         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2399         Call the clz builtin.
2400
2401 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2402             Steve Ellcey  <sje@cup.hp.com>
2403
2404         PR middle-end/31490
2405         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2406         if section attribute used.
2407
2408 2010-11-17  Jan Hubicka  <jh@suse.cz>
2409
2410         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2411         expand errno setting variant when optimizing for size.
2412
2413 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2414
2415         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2416         Reverse backward loop.  Fix formatting issues.
2417
2418 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2419
2420         * c-parser.c (c_token_is_qualifier,
2421         c_parser_next_token_is_qualifier): New.
2422         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2423         Improve error message on specs->tagdef_seen_p.
2424         (c_parser_struct_or_union_specifier): Improve error recovery.
2425         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2426         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2427         using c_parser_next_token_is_qualifier; extend it to cover
2428         a ctsk_tagdef typespec and !typespec_ok in general.
2429
2430 2010-11-17  Richard Guenther  <rguenther@suse.de>
2431
2432         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2433         (gimple_mod_pow2_value_transform): Likewise.
2434         (gimple_mod_subtract_transform): Likewise.
2435
2436 2010-11-17  Richard Guenther  <rguenther@suse.de>
2437
2438         PR lto/46504
2439         * gimple.c (gimple_register_canonical_type): Make sure to only
2440         make type leaders canonical types.
2441
2442 2010-11-17  Michael Matz  <matz@suse.de>
2443
2444         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2445         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2446         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2447         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2448         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2449         (pass_build_ssa): ... but here.
2450         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2451         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2452         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2453         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2454         * predict.c (rebuild_frequencies): Ditto.
2455         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2456         * emit-rtl.c (verify_rtl_sharing): Ditto.
2457         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2458         * tree-ssa-live.c (remove_unused_locals): Ditto.
2459         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2460         * tree-ssa.c (pass_early_warn_uninitialized,
2461         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2462         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2463         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2464         * passes.c (pass_postreload, execute_todo): Ditto.
2465         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2466
2467 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2468
2469         * doc/invoke.texi (-dy): Remove.
2470         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2471         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2472         * langhooks.c (lhd_do_nothing_i): Remove.
2473         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2474         * toplev.c (set_yydebug): Remove.
2475         (compile_file): Update call to lang_hooks.parse_file.
2476         (decode_d_option): Don't handle -dy.
2477
2478 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2479
2480         PR rtl-optimization/46440
2481         * combine.c (update_cfg_for_uncondjump): When changing
2482         an indirect jump into unconditional jump, remove BARRIERs
2483         from bb's footer.
2484
2485 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2486
2487         * opts.c (target_handle_option): Do not assert that loc ==
2488         UNKNOWN_LOCATION.
2489
2490 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2491             Richard Guenther  <rguenther@suse.de>
2492
2493         PR middle-end/45838
2494         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2495         call_may_clobber_ref_p_1): Return true for __sync_* and some
2496         OpenMP builtins that act as threading barriers.
2497
2498 2010-11-17  Richard Guenther  <rguenther@suse.de>
2499
2500         PR tree-optimization/46498
2501         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2502
2503 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2504
2505         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2506         (xtensa_function_arg_boundary): ...this.
2507         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2508         thinko in declaration.
2509         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2510         number of parameters to picochip_function_arg_boundary.
2511         (picochip_arg_advance): Likewise.
2512
2513 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2514
2515         PR target/46512
2516         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2517         under check for type.
2518
2519 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2520
2521         * ifcvt.c (dead_or_predicable): Fix typo.
2522
2523 2010-11-16  Richard Henderson  <rth@redhat.com>
2524
2525         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2526         * config/s390/s390.opt (mfused-madd): Remove.
2527         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2528         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2529         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2530         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2531
2532 2010-11-16  Richard Henderson  <rth@redhat.com>
2533
2534         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2535         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2536         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2537         (*altivec_vmaddfp_1): Remove.
2538         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2539         (altivec_mulv4sf3): Expand to FMA directly.
2540         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2541         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2542         * config/rs6000/paired.md (paired_madds0): Use FMA.
2543         (paired_madds1): Likewise.
2544         (*paired_madd): Rename from paired_madd; use FMA.
2545         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2546         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2547         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2548         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2549         (rs6000_emit_madd): Use fma_optab.
2550         (rs6000_emit_msub): Use fms_optab.
2551         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2552         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2553         (*fmasf4_fpr): Rename from fmasf4_fpr.
2554         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2555         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2556         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2557         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2558         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2559         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2560         (*fmadf4_fpr): Rename from fmadf4_fpr.
2561         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2562         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2563         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2564         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2565         (fmasf4, fmadf4): Macroize into...
2566         (fma<FMA_F>4): ... here.
2567         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2568         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2569         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2570         TARGET_FUSED_MADD.
2571         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2572         (*vsx_fmadd<mode>4_1): Remove.
2573         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2574         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2575         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2576         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2577         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2578         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2579         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2580
2581 2010-11-16  Richard Henderson  <rth@redhat.com>
2582
2583         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2584         (fmasf4, fnmadf4, fnmasf4): Likewise.
2585         (unnamed plus+mult insns and splitters): Delete.
2586
2587 2010-11-16  Richard Henderson  <rth@redhat.com>
2588
2589         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2590         (fnma<VSF>4): Rename from fnms_<VSF>.
2591         (fms<VSF>4): Rename from fms_<VSF>.
2592         (fma<VDF>4): Rename from fma_<VDF>.
2593         (fms<VDF>4): Rename from fms_<VDF>.
2594         (nfma<VDF>4): Rename from fnma_<VDF>.
2595         (nfms<VDF>4): Rename from fnms_<VDF>.
2596         (fnma<VDF>4, fnms<VDF>4): New expanders.
2597         (floatunsdisf2): Update for the renames.
2598         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2599         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2600
2601 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2602
2603         PR rtl-optimization/46490
2604         * combine.c (expand_compound_operation): Fix thinko.
2605
2606 2010-11-16  Richard Henderson  <rth@redhat.com>
2607
2608         PR target/46470
2609         * recog.c (peep2_attempt): Convert frame-related info when possible.
2610         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2611         (peephole2_optimize): Allow peep2_attempt to fail.
2612
2613 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2614
2615         PR rtl-optimization/46315
2616         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2617         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2618         extracted from...
2619         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2620         (remove_reg_equal_equiv_notes_for_defs): ...this.
2621         (delete_unmarked_insns): Adjust to above renaming.
2622         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2623         referring to registers set in the insns being moved, if any.
2624
2625         * df-core.c (df_ref_dump): New function extracted from...
2626         (df_refs_chain_dump): ...here.  Call it.
2627         (df_regs_chain_dump): Likewise.
2628         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2629         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2630
2631 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2632
2633         PR rtl-optimization/46395
2634         * postreload.c (reload_combine): Invalidate register use
2635         information on all control flow insns.
2636
2637         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2638         LABEL_REF in UNSPEC operand.
2639
2640 2010-11-16  Jan Hubicka  <jh@suse.cz>
2641
2642         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2643         when !flag_toplevel_reorder do not remove unless variable is
2644         COMDAT or ARTIFICIAL.
2645         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2646         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2647         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2648         * varpool.c (decide_is_variable_needed): Do not handle visibility
2649         issues.
2650         (varpool_finalize_decl): Likewise.
2651         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2652         update outdated comment on DECL_RTL_SET_P check.
2653
2654 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2655
2656         * config/sol2.h (NM_FLAGS): Define.
2657         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2658         * doc/tm.texi: Update.
2659
2660 2010-11-16  Nick Clifton  <nickc@redhat.com>
2661
2662         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2663         (msubsf4): Rename to fmssf4, and use fma.
2664         (nmaddsf4): Rename to fnmasf4 and use fma.
2665         (nmsubsf4): Rename to fnmssf4 and use fma.
2666
2667 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2668
2669         PR target/44762
2670         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2671         (score3_in_small_data_p, score3_function_value): Likewise.
2672         (score3_trampoline_init): Use LCT_NORMAL.
2673         (score3_print_operand): Initialize code as UNKNOWN.
2674         * config/score/predicates.md (score_load_multiple_operation):
2675         Remove unused variable.
2676         (score_store_multiple_operation): Likewise.
2677         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2678         (score7_in_small_data_p, score7_function_value): Likewise.
2679         (score7_trampoline_init): Use LCT_NORMAL.
2680         (score7_print_operand): Initialize code as UNKNOWN.
2681         * config/score/score3.h (score3_return_in_memory): Update prototype.
2682         (score3_in_small_data_p, score3_function_value): Likewise.
2683         * config/score/score-protos.h (score_function_value): Likewise.
2684         * config/score/score7.h (score7_return_in_memory): Update prototype.
2685         (score7_in_small_data_p, score7_function_value): Likewise.
2686         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2687         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2688         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2689         (score_function_epilogue, score_in_small_data_p): Likewise.
2690         (score_option_override, score_asm_trampoline_template): Likewise.
2691         (score_trampoline_init, score_print_operand): Likewise.
2692         (score_print_operand_address, score_prologue): Likewise.
2693         (score_epilogue, score_call, score_call_value): Likewise.
2694         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2695         (score_function_arg_advance): Likewise. Make static.
2696         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2697         (score_function_arg, score_legitimate_address_p): Make static.
2698         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2699         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2700         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2701         Allow (W) == HOST_BITS_PER_WIDE_INT.
2702
2703         PR java/46386
2704         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2705         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2706
2707 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2708
2709         * config/arc/arc.c: Delete pasto.
2710         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2711
2712 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2713
2714         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2715         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2716         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2717         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2718         (mn10300_preferred_reload_class,
2719         mn10300_preferred_output_reload_class): New functions.
2720
2721 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2722
2723         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2724         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2725         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2726         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2727
2728 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2729
2730         * builtins.c (std_gimplify_va_arg_expr): Use
2731         targetm.calls.function_arg_boundary.
2732         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2733         * calls.c (struct arg_data): Update comment.
2734         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2735         * target.def (function_arg_boundary): Define.
2736         * targhooks.h (default_function_arg_boundary): Declare.
2737         * targhooks.c (default_function_arg_boundary): Define.
2738         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2739         TARGET_FUNCTION_ARG_BOUNDARY.
2740         (FUNCTION_ARG_BOUNDARY): Delete.
2741         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2742         * doc/tm.texi: Regenerate.
2743         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2744         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2745         * config/arc/arc.c (arc_function_arg_boundary): Define.
2746         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2747         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2748         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2749         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2750         (arm_function_arg_boundary): Define.
2751         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2752         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2753         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2754         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2755         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2756         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2757         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2758         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2759         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2760         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2761         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2762         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2763         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2764         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2765         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2766         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2767         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2768         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2769         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2770         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2771         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2772         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2773         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2774         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2775         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2776         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2777         * config/pa/pa.c (pa_function_arg_boundary): Define.
2778         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2779         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
2780         * config/picochip/picochip-protos.h
2781         (picochip_get_function_arg_boundary): Delete.
2782         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
2783         Rename to...
2784         (picochip_function_arg_boundary): ...this.  Make static.
2785         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
2786         (picochip_arg_advance): Adjust.
2787         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2788         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
2789         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
2790         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
2791         (rs6000_function_arg_boundary): ...this.  Make static.
2792         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
2793         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2794         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
2795         * config/rx/rx.c (rx_function_arg_boundary): Define.
2796         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2797         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
2798         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
2799         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2800         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
2801         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
2802         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
2803         (xtensa_function_arg_boundary): ...this.  Make static.
2804         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2805
2806 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2807
2808         * expr.c (alignment_for_piecewise_move): New function.
2809         (widest_int_mode_for_size): New function.
2810         (move_by_pieces, move_by_pieces_ninsns): Call them.
2811         (can_store_by_pieces, store_by_pieces_1): Likewise.
2812
2813 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2814
2815         * gcc.c (char_p): Define.  Define a VEC of it.
2816         (n_linker_options, n_assembler_options, n_preprocessor_options):
2817         Delete.
2818         (linker_options, assembler_options, preprocessor_options): Convert
2819         to a VEC.
2820         (add_preprocessor_option): Adjust.
2821         (add_assembler_option): Adjust.
2822         (add_linker_option): Adjust.
2823         (do_specs_vec): New function.
2824         (do_spec_1): Call it.  Adjust for new types.
2825
2826 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2827
2828         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
2829         (sreal.o, statistics.o, stringpool.o): Likewise.
2830
2831 2010-11-16  Richard Guenther  <rguenther@suse.de>
2832
2833         PR tree-optimization/44545
2834         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
2835         statements are not reassociatable.
2836         (reassociate_bb): Likewise.
2837
2838 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2839
2840         * bitmap.c: Delete unnecessary includes.
2841         * ebitmap.c: Likewise.
2842         * et-forest.c: Likewise.
2843         * sreal.c: Likewise.
2844         * statistics.c: Likewise.
2845         * stringpool.c: Likewise.
2846         * double-int.c: Add comment for inclusion of tm.h.
2847
2848 2010-11-16  Richard Guenther  <rguenther@suse.de>
2849
2850         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
2851         (visit_nary_op): ... this.
2852         (visit_binary_op): Remove.
2853         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
2854
2855 2010-11-16  Richard Guenther  <rguenther@suse.de>
2856
2857         PR middle-end/45172
2858         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
2859
2860 2010-11-16  Nick Clifton  <nickc@redhat.com>
2861
2862         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
2863         record is packed.
2864
2865 2010-11-15  Richard Henderson  <rth@redhat.com>
2866
2867         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
2868         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
2869         DOT_PROD_EXPR.
2870
2871 2010-11-15  Richard Henderson  <rth@redhat.com>
2872
2873         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
2874         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
2875         fma rtx_code.
2876
2877 2010-11-15  Richard Henderson  <rth@redhat.com>
2878
2879         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
2880         and *mulsubsf4 respectively.  Use fma rtx_code.
2881
2882 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
2883
2884         * gcc.c: Include "vec.h".
2885         (argbuf): Make into a VEC.
2886         (argbuf_length, argbuf_index): Remove.
2887         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
2888         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
2889         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
2890         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
2891         (gcc.o): Depend on $(VEC_H).
2892
2893 2010-11-15  Richard Henderson  <rth@redhat.com>
2894
2895         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
2896         via FMA if unsafe math.
2897         (insert_var_expansion_initialization): Handle FMA.
2898         (combine_var_copies_in_loop_exit): Likewise.
2899
2900 2010-11-15  Richard Henderson  <rth@redhat.com>
2901
2902         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
2903         * config/ia64/ia64.opt: Remove mfused-madd.
2904         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
2905         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
2906         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
2907         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
2908         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
2909         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
2910         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
2911         (fmav2sf4): Rename from fpma; use FMA code.
2912         (fmsv2sf4): Rename from fpms; use FMA code.
2913         (fnmav2sf4): Rename from *fpnma; use FMA code.
2914         * config/ia64/ia64.md (MODE_SDF): New iterator.
2915         (suffix): New mode attribute.
2916         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
2917         (fmssf4): Rename from *fmssf4.
2918         (fnmasf4): Rename from *nfmasf4.
2919         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
2920         (*nmadddf4, *nmadddf4_truncsf): Remove.
2921         (fmsdf4): Rename from *fmsdf4.
2922         (fnmadf4): Rename from *nfmadf4.
2923         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
2924         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
2925         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
2926         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
2927         (fmsxf4): Rename from *fmsxf4.
2928         (fnmaxf4): Rename from *nfmaxf4.
2929         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
2930         (*fnmaxf_trunc_<MODE_SDF>): New.
2931
2932 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2933
2934         PR tree-optimization/46461
2935         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
2936         a gimple val.
2937
2938 2010-11-15  Ian Lance Taylor  <iant@google.com>
2939
2940         * godump.c: New file.
2941         * common.opt (fdump-go-spec=): New option.
2942         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
2943         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
2944         (TYPE_SYMTAB_IS_DIE): Define.
2945         (struct tree_type): Change GTY for symtab field to use
2946         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
2947         to pick the union field.
2948         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
2949         (dump_go_spec_init): Declare.
2950         * toplev.c (process_options): Handle flag_dump_go_spec.
2951         * debug.c: Include "tree.h".
2952         (do_nothing_debug_hooks): Set tree_type_symtab_field.
2953         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2954         * dbxout.c (dbx_debug_hooks): Likewise.
2955         (xcoff_debug_hooks): Likewise.
2956         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2957         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
2958         SDB_DEBUGGING_INFO is not defined.
2959         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
2960         (Overall Options): Document -fdump-go-spec.
2961         * Makefile.in (OBJS-common): Add godump.o.
2962         (debug.o): Add dependency on $(TREE_H).
2963         (godump.o): New target.
2964         (GTFILES): Add $(srcdir)/godump.c.
2965
2966 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2967
2968         PR debug/46095
2969         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
2970         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
2971         style < 0, add REG_FRAME_RELATED_EXPR.
2972
2973         PR debug/46387
2974         * rtl.h (vt_equate_reg_base_value): New prototype.
2975         * alias.c (vt_equate_reg_base_value): New function.
2976         * var-tracking.c (vt_init_cfa_base): Use it.
2977
2978 2010-11-15  Jan Hubicka  <jh@suse.cz>
2979             Diego Novillo  <dnovillo@google.com>
2980
2981         PR lto/41528
2982         * doc/lto.texi: Add.
2983         * doc/gccint.texi: Add reference to lto.texi.
2984         * doc/invoke.texi: Update user documentation for LTO.
2985         Move internal flags to lto.texi
2986
2987 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2988
2989         * c-typeck.c (build_unary_op): Use
2990         objc_build_incr_expr_for_property_ref to build the pre/post
2991         increment/decrement of an Objective-C property ref, and skip the
2992         lvalue_or_else check in that case.
2993
2994 2010-11-15  Martin Jambor  <mjambor@suse.cz>
2995
2996         PR tree-optimization/46349
2997         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
2998         (contains_vce_or_bfcref_p): Likewise.
2999         (sra_modify_assign): Use them.
3000
3001 2010-11-15  Richard Guenther  <rguenther@suse.de>
3002
3003         PR tree-optimization/46467
3004         * tree-ssa-structalias.c (do_structure_copy): Properly treat
3005         variables without subvars.
3006
3007 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
3008
3009         * config/picochip/picochip.c (file header): Picochip name change.
3010         * config/picochip/picochip.md (file header): Likewise.
3011         * config/picochip/predicates.md (file header): Likewise.
3012         * config/picochip/dfa_space.md (file header): Likewise.
3013         * config/picochip/dfa_speed.md (file header): Likewise.
3014         * config/picochip/picochip.h(file header): Likewise.
3015         * config/picochip/constraints.md (file header): Likewise.
3016         * config/picochip/picochip-protos.h (file header): Likewise.
3017         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3018         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3019         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3020         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3021         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3022         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3023         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3024         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3025         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3026         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3027         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3028         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3029         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3030         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3031
3032 2010-11-15  Richard Guenther  <rguenther@suse.de>
3033
3034         PR bootstrap/46474
3035         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3036
3037 2010-11-15  Nick Clifton  <nickc@redhat.com>
3038
3039         * config/stormy16/stormy16.c (direct_return): Do not generate a
3040         direct return for interrupt handlers.
3041
3042 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3043
3044         * Makefile.in (tm.texi): Replace with rule for:
3045         ($(srcdir)/doc/tm.texi).
3046         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3047         $(srcdir)/doc/tm.texi .
3048         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3049         tm.texi .
3050
3051         PR target/46427
3052         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3053
3054         PR bootstrap/45444
3055         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3056         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3057
3058         PR target/46432
3059         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3060
3061 2010-11-15  Richard Guenther  <rguenther@suse.de>
3062
3063         PR lto/44150
3064         * lto-opts.c (lto_write_options): Write -fexceptions even if
3065         not set by the user.
3066
3067 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3068
3069         PR c/46462
3070         * c-decl.c (declspecs_add_type): Make variables with error types
3071         integers.
3072         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3073         do not start a declaration before an Objective-C foreach.
3074         (c_parser_declaration_or_fndef): Improve recovery after unknown
3075         type name.
3076         (c_parser_for_statement): Hoist entrance of "foreach context"
3077         before ifs, add corresponding reset where it was missing.  Do
3078         not set objc_could_be_foreach_context for C.
3079
3080 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3081
3082         PR tree-optimization/45722
3083         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3084         this is a reference to a component.
3085         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3086         (ipa_note_param_call): Adjust comment.
3087
3088 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
3089
3090         * config/mips/mips.c (machine_function): Remove
3091         initialized_mips16_gp_pseudo_p.
3092         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3093         detect whether a pseudo has already been created.  Unconditionally
3094         create a new one if not.
3095         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3096         expanding to rtl.  Create a new pseudo otherwise, if allowed.
3097
3098 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
3099
3100         PR target/43440
3101         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3102         * tm.texi: Regenerated.
3103         * output.h (decode_reg_name_and_count): Declare.
3104         * varasm.c (decode_reg_name_and_count): New function.
3105         (decode_reg_name): Reimplement using decode_reg_name_and_count.
3106         * reginfo.c (fix_register): Use decode_reg_name_and_count and
3107         iterate over all regs used.
3108         * stmt.c (expand_asm_operands): Likewise.
3109         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3110         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3111         multiple machine registers.
3112
3113 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3114
3115         * stor-layout.c (place_union_field): Do not put location information
3116         on offset expressions.
3117         (place_field): Likewise.
3118         (finalize_record_size): Likewise on size expressions.
3119         (finalize_type_size): Likewise.
3120         (layout_type): Likewise.
3121
3122 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
3123
3124         PR debug/42889
3125         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3126         * df-core.c (df_set_bb_dirty_nonrl): Remove.
3127         * df.h (df_set_bb_dirty_nonlr): Likewise.
3128
3129 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
3130
3131         * config/mips/mips.md (call_internal): Pass curr_insn to
3132         mips_split_call.
3133         (call_internal_direct): Ditto.
3134         (call_value_internal): Ditto.
3135         (call_value_internal_direct): Ditto.
3136         (call_value_multiple_internal): Ditto.
3137         * config/mips/mips.c (mips_split_call): Do not copy
3138         CALL_INSN_FUNCTION_USAGE here.
3139
3140 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
3141
3142         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3143         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3144         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3145         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3146         (TUNE_LOONGSON_3A): Define.
3147         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3148         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3149         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3150         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3151         (mips_rtx_cost_data): Add Loongson-3A.
3152
3153 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3154
3155         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3156         switches.
3157
3158 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3159
3160         * dwarf2out.c (macinfo_entry): New struct.
3161         (output_comp_unit): Emit the section start label here and flag that we
3162         will emit an info section.
3163         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3164         emitting directly.
3165         (dwarf2out_end_source_file): Likewise.
3166         (dwarf2out_define): Likewise.
3167         (dwarf2out_undef): Likewise.
3168         (output_macinfo): New.
3169         (dwarf2out_init): Do not emit debug section switches here, allocate a
3170         vec for macinfo, when required.
3171         (dwarf2out_finish): First switch to debug_abbrev_section here.
3172         debug_line_section,  debug_macinfo_section, Likewise.
3173         Check that the pubtypes table has at least one unpruned entry before
3174         trying to emit it.
3175
3176 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3177
3178         PR c/20385
3179         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3180         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
3181         token lookahead.
3182         (c_parser_compound_statement_nostart, c_parser_label,
3183         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3184         (c_parser_declaration_or_fndef): Detect the case now matched by
3185         c_parser_next_tokens_start_declaration, give error and correct it.
3186
3187 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3188
3189         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3190         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3191         with typespec_kind.
3192         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3193         (shadow_tag_warned, check_compound_literal_type): Adjust
3194         uses of tag_defined_p.
3195         (declspecs_add_type): Set typespec_kind.
3196         * c-parser.c (c_parser_declaration_or_fndef,
3197         c_parser_declspecs, c_parser_struct_declaration,
3198         c_parser_parameter_declaration, c_parser_type_name,
3199         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3200         of type_seen_p.
3201         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3202         tag_defined_p, pass ctsk_firstref through.
3203
3204 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3205
3206         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3207         (struct format_wanted_type): Replace field "name" with "kind", add
3208         "format_start" and "format_length".
3209         (check_format_info_main): Fill in new fields.  Fill in
3210         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
3211         after the final NUL outside the while loop.  Do not include
3212         width and precision modifiers in the format_start/format_length
3213         of the main format.
3214         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3215         arguments.  Compute WANTED_TYPE first so that format_type_warning
3216         can be called for missing arguments.  Adjust calls to
3217         format_type_warning.
3218         (format_type_warning): Fetch as much information as possible
3219         from format_wanted_type.  Adjust printing now that every
3220         warning has a "descr", as well as for missing argument warnings
3221         and to include % sign for format specifiers.
3222
3223 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
3224
3225         PR rtl-optimization/46204
3226         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3227         Update all callers.  Do not recompute topological order.  Adjust
3228         fallthrough edges following a degenerate conditional jump.
3229
3230 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3231
3232         * opts-common.c (control_warning_option): New.
3233         * opts.c (set_default_handlers): New.
3234         (decode_options): Use set_default_handlers and
3235         control_warning_option.
3236         (common_handle_option): Update call to enable_warning_as_error.
3237         (enable_warning_as_error): Take gcc_options parameters.  Use
3238         control_warning_option.
3239         * opts.h (set_default_handlers, control_warning_option): Declare.
3240
3241 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3242
3243         * Makefile.in (OPTS_H): Define.
3244         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
3245         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
3246         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
3247         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
3248         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
3249         * gcc.c (driver_handle_option): Take location_t parameter.
3250         (process_command, do_self_spec): Update calls to
3251         read_cmdline_option.
3252         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
3253         * langhooks.c (lhd_handle_option): Take location_t parameter.
3254         * langhooks.h (handle_option): Take location_t parameter.
3255         * lto-opts.c (lto_reissue_options): Update call to set_option.
3256         * opts-common.c (handle_option): Make static.  Take location_t
3257         parameter and pass it to other functions.
3258         (handle_generated_option): Take location_t parameter and pass it
3259         to other functions.
3260         (read_cmdline_option): Take location_t parameter and pass it to
3261         other functions.  Use warning_at and error_at.
3262         (set_option): Take location_t parameter and pass it to other
3263         functions.
3264         * opts.c (common_handle_option): Take location_t parameter and
3265         pass it to other functions.
3266         (enable_warning_as_error): Make static.  Take location_t parameter
3267         and pass it to other functions.
3268         (lang_handle_option): Take location_t parameter and pass it to
3269         other functions.
3270         (target_handle_option): Take location_t parameter.
3271         (read_cmdline_options, maybe_default_option,
3272         maybe_default_options, default_options_optimization,
3273         decode_options): Take location_t parameter and pass it to other
3274         functions.
3275         * opts.h: Include input.h.
3276         (struct cl_option_handler_func, decode_options, set_option,
3277         handle_generated_option, read_cmdline_option): Take location_t
3278         parameters.
3279         (handle_option, enable_warning_as_error): Remove.
3280         * toplev.c (toplev_main): Update call to decode_options.
3281
3282 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
3283
3284         * graphite-cloog-util.c (oppose_constraint,
3285         cloog_matrix_to_ppl_constraint,
3286         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
3287         CLooG isl uses unsigned integers.  This triggered a warning.
3288
3289 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3290
3291         PR target/46438
3292         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
3293         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
3294         (xtensa_function_arg_1): De-constify cum.
3295         (xtensa_expand_prologue): Use add_reg_note.
3296
3297         PR target/46435
3298         * config/cris/cris.c (saved_regs_mentioned): Delete.
3299         (cris_reload_address_legitimized): Cast itype to enum reload_type.
3300         Remove unused variable op0p.
3301         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
3302         (cris_emit_movem_store): Use add_reg_note.
3303
3304         PR bootstrap/46456
3305         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
3306
3307 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3308
3309         * function.c (expand_function_end): Set the locator of the prologue on
3310         the stack checking insns.
3311
3312 2010-11-12  Richard Henderson  <rth@redhat.com>
3313
3314         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
3315         * config/xtensa/xtensa.opt (mfused-madd): Remove.
3316         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3317         MASK_FUSED_MADD.
3318         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
3319         (fnmasf4): Rename from mulsubsf3; use fma.
3320
3321 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3322             Richard Henderson  <rth@redhat.com>
3323
3324         PR target/46428
3325         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
3326         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
3327         comparison.
3328
3329 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
3330
3331         * opts-common.c (decode_cmdline_option): Initialize separate_args.
3332
3333 2010-11-12  Jan Hubicka  <jh@suse.cz>
3334
3335         * doc/invoke.texi (early-inlining-insns): Update default.
3336         * params.def (early-inlining-insns): Default to 10.
3337
3338 2010-11-12  Olivier Hainque  <hainque@adacore.com>
3339
3340         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
3341
3342 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3343
3344         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
3345         (SUPPORTS_INIT_PRIORITY): Define.
3346
3347 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3348
3349         PR target/46430
3350         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
3351         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
3352         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3353         (avr_device_to_devicelib): Likewise.
3354         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
3355         into block.
3356         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
3357         (zero_extendhidi2, zero_extendsidi2): Likewise.
3358         * config/avr/avr.c (avr_num_arg_regs): Constify type.
3359         (avr_return_addr_rtx): De-constify tem.
3360         (avr_rotate_bytes): Move declarations to start of block.
3361         Don't use variable length array.  Put nested if/else into block.
3362
3363         PR rtl-optimization/46433
3364         * var-tracking.c: Include tm_p.h .
3365
3366         PR bootstrap/44756
3367         PR build/44767
3368         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
3369         should be unsigned.
3370         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
3371         * doc/tm.texi: Regenerate.
3372
3373         PR target/46412
3374         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
3375         * config/bfin/bfin.c: Include sel-sched.h .
3376         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
3377         (expand_interrupt_handler_prologue): Remove unused variable insn.
3378         (bfin_load_pic_reg): Likewise.
3379         (bfin_rtx_costs): Make code / outer_code variables of type
3380         enum rtx_code, copied from re-named parameters.
3381         (bfin_local_alignment): Change align argument and return type
3382         to unsigned.
3383         (bfin_adjust_cost): Remove unused variable insn_type.
3384         Declare variables at start of block.
3385         (struct loop_info): Rename to...
3386         (struct loop_info_d).
3387         (workaround_rts_anomaly): Change type of icode to int.
3388         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
3389         with int-typed variable.
3390         (note_np_check_stores): Likewise.
3391         (trapping_loads_p): Remove unused variable pat.
3392         (bfin_expand_binop_builtin): Use expand_normal.
3393         (bfin_expand_unop_builtin): Likewise.
3394         (bfin_expand_builtin): Likewise.  Set tmode before use.
3395
3396         PR middle-end/44769
3397         * final.c (split_double): Don't use BITS_PER_WORD directly in
3398         shift count.
3399
3400         PR target/46431
3401         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
3402         assignment.
3403
3404         PR target/46450
3405         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
3406         Use add_reg_note.
3407         (xstormy16_function_arg): Dereference cum.
3408         (xstormy16_expand_builtin): Use expand_normal.
3409         Change type of omode to enum machine_mode.
3410         (combine_bnp): Rename and to and_insn.
3411
3412         PR target/46437
3413         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
3414         localreg.
3415
3416 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3417
3418         PR debug/46375
3419         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
3420
3421 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3422
3423         PR lto/46376
3424         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
3425
3426 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
3427
3428         PR c/44782
3429         * common.opt (fmax-errors=): New option.
3430         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
3431         * diagnostic.h (struct diagnostic_context): Add max_errors field.
3432         * diagnostic.c (diagnostic_initialize): Initialize it.
3433         (diagnostic_action_after_output): Exit if more than max_errors
3434         have been output.
3435         * doc/invoke.texi (Warning Options): Add -fmax-errors.
3436         (-fmax-errors): Document.
3437
3438 2010-11-11  Richard Henderson  <rth@redhat.com>
3439
3440         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
3441
3442 2010-11-11  Richard Henderson  <rth@redhat.com>
3443
3444         * config/fused-madd.opt: New file.
3445         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
3446         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
3447         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3448         * config/i386/i386.opt (mfused-madd): Remove.
3449         * config/i386/sse.md (split_fma): Remove.
3450         (split_fms, split_fnma, split_fnms): Remove.
3451
3452 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
3453
3454         PR target/46088
3455         * config/i386/i386.md (*ashl<mode>3_cconly,
3456         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
3457         change nonimmediate_operand predicate to register_operand.
3458
3459 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
3460
3461         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
3462
3463 2010-11-11  Jan Hubicka  <jh@suse.cz>
3464
3465         * opts.c (finish_options): Do not error on -flto-partition alone.
3466
3467         * doc/invoke.texi (-fwhopr): Merge into -flto section.
3468         (-flto-partition): Document none.
3469         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
3470         * lto-wrapper.c: Update comment.
3471         (run_gcc): Update LTO option parsing.
3472         * opts.c (finish_options): add support -flto-partition=none
3473         (common_handle_option): Remove fwhopr.
3474         * common.opt: Turn fwhopr into flto.
3475         * collect2.c (main): Update option handling.
3476         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
3477         * ipa-split.c (execute_split_functions): Remove flag_whopr.
3478         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
3479         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
3480         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
3481
3482 2010-11-11  Jan Hubicka  <jh@suse.cz>
3483
3484         PR tree-optimize/40436
3485         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
3486         (eliminated_by_inlining_prob): ... this one; return 50% probability
3487         for SRA.
3488         (estimate_function_body_sizes): Update use of
3489         eliminated_by_inlining_prob; estimate static function size
3490         for 2 instructions.
3491
3492 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
3493
3494         PR target/44749
3495         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
3496         declare.  Change type of argument four to type int.
3497         (mep_secondary_input_reload_class): Returns enum reg_class.
3498         (mep_secondary_output_reload_class): Likewise.
3499         (mep_function_value): Change types of arguments to cont_tree.
3500         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3501         argument four to type int.
3502         (mep_secondary_input_reload_class): Returns enum reg_class.
3503         (mep_secondary_output_reload_class): Likewise.
3504         (mep_function_value): Change types of arguments to cont_tree.
3505         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3506         mep_regno_reg_class to enum reg_class.
3507
3508 2010-11-11  Richard Henderson  <rth@redhat.com>
3509
3510         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3511         that the target has the exact fma operation that we matched.
3512
3513 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3514
3515         * reginfo.c (fix_register): Avoid inserting English word in
3516         diagnostic sentence.  Use %qs for quoting and %'.
3517
3518 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3519
3520         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3521         Intel processor family 6, model 0x2c.
3522
3523 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3524
3525         * opts.c (warning_as_error_callback,
3526         register_warning_as_error_callback): Remove.
3527         (enable_warning_as_error): Don't use warning_as_error_callback.
3528         * opts.h (register_warning_as_error_callback): Remove.
3529
3530 2010-11-11  Richard Henderson  <rth@redhat.com>
3531
3532         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3533         in between the MULT and the PLUS/MINUS.
3534
3535 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3536
3537         PR middle-end/46388
3538         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3539         BLKmode mode for it.
3540         (expand_expr_real_1): Similarly for op0.
3541
3542 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3543
3544         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3545         Document optional target selector.
3546
3547 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3548
3549         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3550         assembling high and low parts of size if not using 32-bit HWINT; else
3551         use DECL_SIZE_UNITS, not DECL_SIZE.
3552
3553 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3554
3555         PR tree-optimization/46383
3556         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3557         offsets.
3558         (compute_complex_ancestor_jump_func): Likewise.
3559         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3560
3561 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3562
3563         PR debug/46150
3564         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3565         true if expr1->hash != expr2->hash.
3566
3567 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3568
3569         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3570         diagnostics with lowercase letters.
3571         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3572         lowercase letters.
3573         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3574         diagnostic.
3575         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3576         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3577         lowercase letters.
3578         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3579         Remove trailing ' ' from diagnostic.
3580         * config/avr/avr.c (print_operand_address): Start diagnostic with
3581         a lowercase letter and remove trailing '.'.
3582         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3583         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3584         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3585         '.' from diagnostics.
3586         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3587         * config/cris/cris.c (cris_split_movdx,
3588         cris_expand_pic_call_address): Start diagnostics with lowercase
3589         letters.
3590         (cris_asm_output_label_ref): Use %' in diagnostic.
3591         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
3592         letter.
3593         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
3594         lowercase letter.
3595         * config/darwin-c.c (version_as_macro): Start diagnostic with a
3596         lowercase letter.
3597         * config/darwin-driver.c (darwin_default_min_version): Use %' in
3598         diagnostic.
3599         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
3600         diagnostic.
3601         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3602         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
3603         diagnostics.
3604         * config/i386/i386.c (ix86_option_override_internal): Write
3605         diagnostic as a single sentence without trailing '.'.  Use %' in
3606         diagnostics.
3607         (ix86_function_sseregparm, classify_argument): Start diagnostics
3608         with lowercase letters.
3609         (ix86_expand_prologue): Use %' in diagnostic.
3610         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
3611         diagnostic.
3612         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
3613         lowercase letter.
3614         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
3615         diagnostic.
3616         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3617         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
3618         '`' in help text.
3619         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
3620         lowercase letter.
3621         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
3622         lowercase letters.
3623         * config/microblaze/microblaze.c (microblaze_handle_option):
3624         Remove trailing '.' from diagnostic.
3625         (print_operand): Start diagnostic with a lowercase letter.
3626         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
3627         lowercase letters.  Avoid '`' in diagnostics.
3628         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
3629         lowercase letters.  Avoid '`' in diagnostics.
3630         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
3631         lowercase letters.  Avoid '`' in diagnostics.
3632         * config/picochip/picochip.c (picochip_option_override,
3633         picochip_emit_save_register, picochip_function_arg,
3634         picochip_output_label, picochip_output_internal_label,
3635         picochip_asm_output_opcode, picochip_output_cbranch,
3636         picochip_output_compare, picochip_output_branch,
3637         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
3638         diagnostics. Start diagnostics with lowercase letters.  Use %' in
3639         diagnostics.
3640         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3641         "SPE" capitalization.  Start diagnostic with a lowercase letter.
3642         (rs6000_handle_option): Start diagnostics with lowercase letters.
3643         (def_builtin): Remove trailing '.' from diagnostic.
3644         (rs6000_savres_routine_name): Start diagnostic with a lowercase
3645         letter.
3646         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
3647         diagnostic.
3648         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
3649         lowercase letter.
3650         * config/s390/s390.c (s390_option_override) Start diagnostics with
3651         lowercase letters.  Use %' in diagnostic.
3652         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
3653         lowercase letters.
3654         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
3655         diagnostic.
3656         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
3657         diagnostic.
3658         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
3659         diagnostic.
3660         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3661         * config/spu/spu.c (spu_option_override): Start diagnostics with
3662         lowercase letters.  Use %qs for quoting in diagnostics.
3663         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
3664         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
3665         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
3666         from diagnostic.
3667         * convert.c (convert_to_integer, convert_to_vector): Use %' in
3668         diagnostics.
3669         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
3670         letter and use "cannot" spelling.
3671         * expmed.c (extract_fixed_bit_field): Start diagnostic with
3672         lowercase letter and format as a single sentence without '.'.
3673         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
3674         Use %' in diagnostics.
3675         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3676         Use %' in diagnostics.
3677         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3678         Use %' in diagnostics.
3679         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
3680         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
3681         with lowercase letters and remove tailing '.' and '\n'.
3682         * lto-cgraph.c (input_profile_summary): Start diagnostic with
3683         lowercase letter and remove trailing '.'.
3684         (input_cgraph): Start diagnostics with lowercase letters and
3685         remove trailing '\n'.
3686         * opts.c (finish_options, common_handle_option): Start diagnostics
3687         with lowercase letters and remove trailing '.'.  Fix typo in
3688         diagnostic.
3689         * passes.c (position_pass): Start diagnostic with lowercase letter.
3690         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
3691         register_callback, try_init_one_plugin): Start diagnostics with
3692         lowercase letters.
3693         * reload1.c (spill_failure): Use %' in diagnostic.
3694         (gen_reload): Start diagnostic with a lowercase letter.
3695         * stor-layout.c (place_field): Start diagnostic with a lowercase
3696         letter.
3697         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
3698         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
3699         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
3700         Start diagnostics with lowercase letters, remove trailing '.' and
3701         use %' in diagnostics.
3702         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
3703         (verify_ssa): Don't split diagnostic across two error calls.
3704         Spell out "number" and use %' in diagnostic.
3705         * value-prof.c (visit_hist, check_counter): Start diagnostics with
3706         lowercase letters.
3707
3708 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
3709
3710         PR middle-end/46419
3711         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
3712         (_mm_cvtpu16_ps): Ditto.
3713
3714 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3715
3716         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3717         warn_larger_than, larger_than_size, warn_frame_larger_than,
3718         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3719         default_visibility, flag_tls_default): New Variable declarations.
3720         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3721         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3722         (v): Declare as Common and document here.
3723         * flags.h (default_visibility, flag_generate_lto,
3724         warn_larger_than, larger_than_size, warn_frame_larger_than,
3725         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3726         flag_shlib, flag_excess_precision_cmdline): Remove.
3727         (set_Wstrict_aliasing): Update prototype.
3728         * gcc.c (verbose_flag): Remove.
3729         (driver_handle_option): Add diagnostic_context parameter.  Don't
3730         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3731         incrementing it.
3732         * opts-common.c (handle_option): Pass dc to handler.
3733         * opts.c (warn_larger_than, larger_than_size,
3734         warn_frame_larger_than, frame_larger_than_size,
3735         default_visibility): Remove.
3736         (common_handle_option): Add diagnostic_context parameter.
3737         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3738         gcc_options parameters.
3739         (lang_handle_option, target_handle_option, read_cmdline_options,
3740         decode_options): Add diagnostic_context parameters.
3741         (finish_options): Access option state through opts pointer where
3742         possible.
3743         (common_handle_option): Access option state through opts pointer
3744         where possible.  Do not set local static variable verbose.  Do not
3745         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3746         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3747         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3748         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3749         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3750         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3751         (set_Wstrict_aliasing): Add gcc_options parameter.
3752         * opts.h (struct cl_option_handler_func): Add diagnostic_context
3753         parameter to handler.
3754         (decode_options): Add diagnostic_context parameter.
3755         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
3756         asm_file_name, flag_generate_lto, flag_gen_aux_info,
3757         aux_info_file_name, flag_shlib, flag_tls_default,
3758         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
3759         (toplev_main): Pass global_dc to decode_options.
3760         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
3761         aux_info_file_name, asm_file_name): Remove.
3762         * tree.h (flag_tls_default): Remove.
3763
3764 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3765
3766         PR target/45986
3767         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
3768         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
3769
3770 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3771
3772         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
3773         (x86_64-*-*): Likewise.
3774         * config/i386/cpuid.h: Define TBM bit.
3775         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3776         and set has_tbm.
3777         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3778         isa_flag for TBM.
3779         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
3780         (OPTION_MASK_ISA_TBM_UNSET): New.
3781         (ix86_handle_option): Handle -mtbm.
3782         (isa_opts): Add -mtbm.
3783         (enum pta_flags): Add PTA_TBM.
3784         (ix86_option_override_internal): Add TBM support.
3785         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
3786         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
3787         (IX86_BUILTIN_BEXTRI64): Likewise.
3788         (bdesc_args): Add TBM intrinsics.
3789         (ix86_expand_builtin): Add TBM specific case.
3790         * config/i386/i386.h (TARGET_TBM): New for TBM.
3791         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
3792         (tbm_bextri_<mode>): Likewise.
3793         (*tbm_blcfill_<mode>): Likewise.
3794         (*tbm_blci_<mode>): Likewise.
3795         (*tbm_blcic_<mode>): Likewise.
3796         (*tbm_blcmsk_<mode>): Likewise.
3797         (*tbm_blcs_<mode>): Likewise.
3798         (*tbm_blsfill_<mode>): Likewise.
3799         (*tbm_blsic_<mode>): Likewise.
3800         (*tbm_t1mskc_<mode>): Likewise.
3801         (*tbm_tzmsk_<mode>): Likewise.
3802         * config/i386/i386.opt: Add -mtbm.
3803         * config/i386/tbmintrin.h (__bextri_u32): New.
3804         (__blcfill_u32): Likewise.
3805         (__blci_u32): Likewise.
3806         (__blcic_u32): Likewise.
3807         (__blcmsk_u32): Likewise.
3808         (__blcs_u32): Likewise.
3809         (__blsfill_u32): Likewise.
3810         (__blsic_u32): Likewise.
3811         (__t1mskc_u32): Likewise.
3812         (__tzmsk_u32): Likewise.
3813         (__bextri_u64): Likewise.
3814         (__blcfill_u64): Likewise.
3815         (__blci_u64): Likewise.
3816         (__blcic_u64): Likewise.
3817         (__blcmsk_u64): Likewise.
3818         (__blcs_u64): Likewise.
3819         (__blsfill_u64): Likewise.
3820         (__blsic_u64): Likewise.
3821         (__t1mskc_u64): Likewise.
3822         (__tzmsk_u64): Likewise.
3823         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
3824         * doc/invoke.texi: Document -mtbm.
3825         * doc/extend.texi: Document TBM built-in functions.
3826
3827 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3828
3829         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
3830         (x86_64-*-*): Likewise.
3831         * config/i386/cpuid.h: Define BMI bit.
3832         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3833         and set has_bmi.
3834         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3835         isa_flag for BMI.
3836         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
3837         (OPTION_MASK_ISA_BMI_UNSET): New.
3838         (ix86_handle_option): Handle -mbmi.
3839         (isa_opts): Add -mbmi.
3840         (enum pta_flags): Add PTA_BMI.
3841         (ix86_option_override_internal): Add BMI support.
3842         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
3843         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
3844         (IX86_BUILTIN_BEXTR64): Likewise.
3845         (IX86_BUILTIN_CTZS): Likewise.
3846         (bdesc_args): Add BMI intrinsics.
3847         (ix86_expand_args_builtin): Add BMI specific cases.
3848         * config/i386/i386.h (TARGET_BMI): New for BMI.
3849         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
3850         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
3851         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
3852         (UNSPEC_TZCNT): Likewise.
3853         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
3854         (bmi_andn_<mode>): New for BMI.
3855         (bmi_bextr_<mode>): Likewise.
3856         (bmi_blsi_<mode>): Likewise.
3857         (bmi_blsmsk_<mode>): Likewise.
3858         (bmi_blsr_<mode>): Likewise.
3859         * config/i386/i386.opt: Add -mbmi.
3860         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
3861         * config/i386/bmiintrin.h (__lzcnt_u16): New.
3862         (__tzcnt_u16): Likewise.
3863         (__andn_u32): Likewise.
3864         (__bextr_u32): Likewise.
3865         (__blsi_u32): Likewise.
3866         (__blsmsk_u32): Likewise.
3867         (__blsr_u32): Likewise.
3868         (__lzcnt_u32): Likewise.
3869         (__tzcnt_u32): Likewise.
3870         (__andn_u64): Likewise.
3871         (__bextr_u64): Likewise.
3872         (__blsi_u64): Likewise.
3873         (__blsmsk_u64): Likewise.
3874         (__blsr_u64): Likewise.
3875         (__lzcnt_u64): Likewise.
3876         (__tzcnt_u64): Likewise.
3877         * doc/invoke.texi: Document -mbmi and -mno-bmi.
3878         * doc/extend.texi: Document BMI built-in functions.
3879
3880 2010-11-10  Jan Hubicka  <jh@suse.cz>
3881
3882         PR tree-optimize/46228
3883         * doc/invoke.texi (comdat-sharing-probability): Document.
3884         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
3885         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
3886
3887 2010-11-10  Jan Hubicka  <jh@suse.cz>
3888
3889         PR tree-optimize/46228
3890         * cgraph.c (cgraph_propagate_frequency): Fix typo.
3891
3892 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
3893
3894         PR tree-optimization/46414
3895         * tree-inline.c (estimate_move_cost): Check preferred vector
3896         mode for vector type.
3897
3898 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3899
3900         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
3901
3902 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
3903
3904         PR tree-optimization/45971
3905         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
3906         for phi nodes analyzable by scev.
3907
3908 2010-11-10  Richard Guenther  <rguenther@suse.de>
3909
3910         PR tree-optimization/44964
3911         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
3912
3913 2010-11-10  Martin Jambor  <mjambor@suse.cz>
3914
3915         PR tree-optimization/46351
3916         PR tree-optimization/46377
3917         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
3918         aggregate bit-fields.
3919
3920 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3921
3922         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3923         * doc/tm.texi: Regenerate.
3924         * opts-common.c (tm.h): Don't include.
3925         (target_option_translations): Remove.
3926         (decode_cmdline_options_to_array): Don't handle translating options.
3927         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
3928         * config/darwin-driver.c: Don't condition includes on
3929         CROSS_DIRECTORY_STRUCTURE.
3930         (darwin_default_min_version): Make static.
3931         (darwin_driver_init): New.  Call darwin_default_min_version if not
3932         CROSS_DIRECTORY_STRUCTURE.
3933         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3934         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
3935         (ASM_SPEC): Add %{static}.
3936         (darwin_default_min_version): Don't declare.
3937         (darwin_driver_init): Declare.
3938         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
3939         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
3940         * config/darwin.opt (all_load, allowable_client,
3941         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
3942         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
3943         exported_symbols_list, filelist, findirect-virtual-calls,
3944         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
3945         framework, fterminated-vtables, gfull, gused, image_base, init,
3946         install_name, multi_module, multiply_defined,
3947         multiply_defined_unused, no_dead_strip_inits_and_terms,
3948         seg_addr_table, seg_addr_table_filename, segaddr,
3949         segs_read_only_addr, segs_read_write_addr, single_module,
3950         umbrella, unexported_symbols_list, weak_reference_mismatches,
3951         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
3952         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
3953         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
3954         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
3955         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
3956         (ASM_SPEC): Add %{static}.
3957         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3958         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3959         (DRIVER_SELF_SPECS): Handle options formerly in
3960         TARGET_OPTION_TRANSLATE_TABLE.
3961         * config/mep/mep.opt (mfar): New.
3962         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3963         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
3964         TARGET_OPTION_TRANSLATE_TABLE.
3965         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
3966         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3967         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
3968         ffix-and-continue, findirect-data): New.
3969         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3970         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
3971         (mnofpu): Define mask and use Report here.
3972
3973 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3974
3975         * config/s390/s390.c (s390_emit_prologue): Report the stack
3976         size if -fstack-usage is used.
3977
3978 2010-11-10  Richard Guenther  <rguenther@suse.de>
3979
3980         PR tree-optimization/46398
3981         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
3982
3983 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
3984
3985         PR target/44760
3986         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
3987         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
3988         GP_REG_OR_PSEUDO_STRICT_P.
3989         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
3990         unexpected alternative.
3991         (*movsf_internal): Likewise.
3992         (indirect_jump): Replace call to non-existant function with call to
3993         internal_error.
3994         (tablejump): Likewise.
3995         * config/iq2000/iq2000.c: Include df.h .
3996         (iq2000_function_arg_advance): Use CONST_CAST2.
3997         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
3998         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
3999         a non-zero function address.
4000         (iq2000_initial_elimination_offset): Add gcc_unreachable for
4001         unexpected value of FROM.
4002         (symbolic_expression_p): Delete.
4003         (iq2000_function_value): Constify func.
4004         (expand_one_builtin): Use expand_normal.
4005         (iq2000_print_operand): Don't print VALUE if calculating it failed.
4006
4007         PR rtl-optimization/44764
4008         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4009
4010         PR target/46407
4011         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4012         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4013         with ATTRIBUTE_UNUSED.
4014         (valid_psw_flag): Constify parameter which.
4015         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4016
4017         PR target/46415
4018         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4019         (mmix_dbx_register_number): Likewise.
4020         * config/mmix/mmix.c: Include df.h .
4021         (mmix_local_alignment): Change argument basic_align and return type
4022         to unsigned.
4023         (mmix_dbx_register_number): Change argument and return type to
4024         unsigned.
4025         (mmix_expand_prologue): Use add_reg_note.
4026
4027         PR target/46417
4028         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4029         (spu_split_store): Use aform.
4030         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4031
4032 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4033
4034         PR/46268
4035         * doc/gty.texi (GTY Options): Clarify that variable_size produces
4036         allocators taking size in bytes, compare with length option.  Add
4037         size calculation example.
4038         (Invoking the garbage collector): Ensure that sentences are
4039         followed by two spaces.  Describe that pointer fields must be
4040         initialized at ggc_collect call.
4041         (Troubleshooting): New section.
4042
4043 2010-11-09  Jan Hubicka  <jh@suse.cz>
4044
4045         PR tree-optimization/40436
4046         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4047         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4048         normal instructions; be sure bultin is not implemented in this file;
4049         compute non-zero return cost.
4050         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4051         * tree-inline.h (eni_weights_d): Add return cost.
4052
4053 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * c-parser.c (c_parser_struct_declaration): Handle declaration
4056         specifiers followed by CPP_CLOSE_BRACE.
4057
4058 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4059
4060         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4061         split occurs before reload, and we allocate memory at the time of
4062         the split, not during expansion.  Add attributes.
4063         (floatsi<mode>2_lfiwax_mem): Ditto.
4064         (floatunssi<mode>2_lfiwzx): Ditto.
4065         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4066         (floatsidf2): Ditto.
4067         (floatunssisf2): Ditto.
4068         (floatunssidf2): Ditto.
4069         (fix_trunc<mode>si2): Ditto.
4070         (fix_trunc<mode>si2_stfiwx): Ditto.
4071         (fix_trunc<mode>si2_internal): Ditto.
4072         (fix_trunc<mode>si2): Ditto.
4073         (fix_trunc<mode>di2): Ditto.
4074         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4075         (floatsisf2): Ditto.
4076         (floatdidf2_mem): Ditto.
4077         (floatunsdidf2_mem): Ditto.
4078         (floatunsdidf2): Ditto.
4079         (floatdisf2_internal1): Ditto.
4080         (floatdisf2_mem): Ditto.
4081         (floatunsdisf2_mem): Ditto.
4082         (floatsi<mode>2_lfiwax_mem2): Delete.
4083         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4084         (fix_trunc<mode>si2_mem): Ditto.
4085         (fixuns_trunc<mode>si2_mem): Ditto.
4086         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4087         type operations to reduce copying the values to multiple memory slots.
4088         (roundu32<mode>2_fprs): Ditto.
4089
4090         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
4091         PRE_INC, PRE_DEC, PRE_MODIFY.
4092         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
4093
4094         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
4095         Delete prototype.
4096
4097 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4098
4099         PR target/43808
4100         * cfgexpand.c (partition_stack_vars): Call
4101         update_alias_info_with_stack_vars unconditionally.
4102         (update_alias_info_with_stack_vars): Allow unused
4103         unreferenced vars when not optimizing.
4104
4105 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
4106
4107         PR tree-optimization/46036
4108         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
4109         add_to_dst_predicate_list.
4110
4111 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4112
4113         PR debug/46171
4114         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
4115         earlier.
4116         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
4117         argument, call dead_debug_reset when adding REG_UNUSED note.
4118         (dead_debug_reset): New function.
4119         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
4120         df_create_unused_note callers.
4121
4122 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
4123
4124         * config/fr30/fr30.c: Include "df.h".
4125
4126 2010-11-09  Richard Guenther  <rguenther@suse.de>
4127
4128         PR tree-optimization/46355
4129         * tree-loop-distribution.c (tree_loop_distribution): Do not
4130         distribute loops without a single exit.
4131
4132 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4133
4134         PR rtl-optimization/46237
4135         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
4136         saved hard regs if they might get partially clobbered.
4137
4138 2010-11-09  Paul Koning  <ni1d@arrl.net>
4139
4140         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
4141
4142 2010-11-09  Richard Guenther  <rguenther@suse.de>
4143
4144         PR tree-optimization/46177
4145         * tree-loop-distribution.c (prop_phis): Remove.
4146         (generate_builtin): Re-use the old loop exit edge to avoid
4147         needing to update PHI nodes.
4148
4149 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
4150
4151         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
4152         type of args_size to unsigned HOST_WIDE_INT.
4153
4154         PR target/44755
4155         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
4156         * config/t-pnt16-warn: New file.
4157         * config/picochip/picochip.c (picochip_emit_stack_allocate):
4158         Use add_reg_note.
4159         (picochip_emit_save_register): Likewise.
4160         (picochip_emit_restore_register): Remove variable insn.
4161         (picochip_legitimize_address): Don't use C++ style comments.
4162         (picochip_legitimize_reload_address): Likewise.
4163         (reorder_var_tracking_notes): Remove variable vliw_start.
4164         (picochip_reorg): Cast first arguemnt to emit_note_after to
4165         enum insn_note.
4166         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
4167         (picochip_expand_builtin_3op): Likewise.
4168         (picochip_expand_builtin_2opvoid): Likewise.
4169         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
4170         (picochip_expand_array_testport): Likewise.
4171         (picochip_init_builtins): Remove unused variables.
4172         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
4173         to unsigned long, and output it as such.
4174         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4175         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
4176         (schedType): Cast result of picochip_schedule_type to
4177         enum attr_schedType.
4178
4179         PR target/44759
4180         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
4181         conditional to type of S.
4182         (mn10300_function_arg): Remove unused variable align.
4183         (mn10300_arg_partial_bytes): Likewise.
4184         * config/mn10300/mn10300.md (attribute cpu): Cast value to
4185         enum attr_cpu.
4186
4187 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4188
4189         PR bootstrap/46392
4190         * gengtype-parse.c (type): Call get_input_file_name to get file name.
4191
4192 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4193
4194         * tree.h (contains_placeholder_p): Fix comment.
4195         (type_contains_placeholder_p): Adjust comment.
4196         * tree.c (contains_placeholder_p): Fix comment.
4197         (type_contains_placeholder_1): Do not recurse on pointed-to types and
4198         adjust comment.
4199         (type_contains_placeholder_p): Add comment.
4200
4201 2010-11-09  Paul Koning  <ni1d@arrl.net>
4202
4203         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
4204         output of byte values.
4205
4206 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4207
4208         PR middle-end/46360
4209         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
4210         not in SSA mode.
4211
4212 2010-11-09  Richard Guenther  <rguenther@suse.de>
4213
4214         PR middle-end/46221
4215         * varasm.c (compute_visible_aliases): New function.
4216         (remove_unreachable_alias_pairs): Aliases make a target available
4217         even though we reclaimed the cgraph node.
4218         (finish_aliases_1): Likewise.
4219         * Makefile.in (varasm.o): Add pointer-set.h dependency.
4220
4221 2010-11-09  Nick Clifton  <nickc@redhat.com>
4222
4223         * config/mn10300/mn10300-modes.def: New file.
4224
4225 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
4226             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4227
4228         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
4229         (plugin_files, get_file_basename, get_file_realbasename)
4230         (get_file_langdir, error_at_line, gt_files, this_file)
4231         (system_h_file, read_input_list, create_field_all)
4232         (get_file_srcdir_relative_path, get_file_basename)
4233         (get_file_langdir, get_file_gtfilename)
4234         (get_output_file_with_visibility, get_output_file_name)
4235         (struct flist, put_mangled_filename, walk_type)
4236         (put_mangled_filename, finish_root_table, write_roots): Use
4237         input_file-s.
4238         (lang_dir_names, num_lang_dirs): Remove static.
4239         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
4240         (main): Use input_file-s.
4241
4242         * gengtype.h: (struct input_file_st, input_file): New type.
4243         (struct fileloc): Use it.
4244         (gt_files, num_gt_files, this_file, system_h_file)
4245         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
4246         (get_input_file_name): New function.
4247         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
4248         use input_file.
4249         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
4250         (get_output_file_name): Ditto.
4251
4252         * gengtype-lex.l (yybegin): Use input_file.
4253
4254         * gengtype-parse.c (parse_error): Use input_file.
4255
4256 2010-11-08  Xinliang David Li  <davidxl@google.com>
4257
4258         PR tree-optimization/46316
4259         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
4260         * double-int.h (double_int_mul_with_sign): New function.
4261         * double-int.c (double_int_mul_with_sign): New function.
4262
4263 2010-11-08  Paul Koning  <ni1d@arrl.net>
4264
4265         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
4266
4267 2010-11-08  Paul Koning  <ni1d@arrl.net>
4268
4269         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
4270
4271 2010-11-08  Paul Koning  <ni1d@arrl.net>
4272
4273         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
4274         to 8 bits.
4275
4276 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4277
4278         PR target/46378
4279         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4280         turn on ISA 2.04 rounding instructions for power5.
4281
4282         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
4283         not ISA 2.02.
4284
4285         PR target/45585
4286         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
4287         in FPR registers.
4288         (movdi_low_st): Ditto.
4289
4290 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4291             Richard Henderson  <rth@redhat.com>
4292
4293         PR target/44758
4294         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
4295         (attribute acc_group): Cast value to enum attr_acc_group.
4296         (*movdi_nodouble+6): Use gen_int_mode.
4297         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
4298         if RTX_CODE is defined or not.
4299         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
4300         struct frv_io.
4301         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
4302         (frv_frame_access, frv_expand_prologue): Remove unused variables.
4303         (frv_expand_block_clear): Likewise.
4304         (frv_trampoline_init): Use LCT_NORMAL.
4305         (struct frv_packet_group): New struct, broken out of type of
4306         frv_packet.
4307         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
4308         use cast in loop counter increment.
4309         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
4310         assigning to io->type.
4311         (bdesc_set): Use rtx_code UNKNOWN in initializer.
4312         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
4313         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
4314         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
4315         (frv_read_argument): Use expand_normal.
4316
4317         PR target/44757
4318         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
4319         lm32_legitimate_constant_p.
4320         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4321         * config/lm32/lm32.c (gen_int_relational): Make new block for
4322         LE / LT / LEU / LTU case.  Declare variables at start of block.
4323         (lm32_block_move_inline): Use XALLOCAVEC.
4324
4325 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4326
4327         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
4328
4329 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4330
4331         * gengtype (get_output_file_for_structure): Ensure type is union
4332         or struct.
4333         (write_splay_tree_allocator_def): Use
4334         get_output_file_with_visibility.
4335
4336 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4337
4338         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
4339         to defined values in case of an error.
4340         (s390_option_override): Skip further processing if the -march
4341         parameter wasn't recognized.
4342
4343 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4344
4345         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
4346         assert that REG is a hard register number before using it as an index.
4347
4348         PR bootstrap/46358
4349         * config/i386/i386.c (ix86_expand_split_stack_prologue):
4350         Avoid warnings when HOST_WIDE_INT is 32 bit.
4351
4352 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4353
4354         PR target/46208
4355         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
4356         (sparc_promote_prototypes): Likewise.
4357         (sparc_promote_function_mode): Promote in 32-bit mode as well.
4358         (sparc_return_in_memory): Remove superfluous parentheses.
4359         (sparc_struct_value_rtx): Fix long lines.
4360         (sparc_function_value_1): Promote in 32-bit mode as well.
4361
4362 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
4363
4364         PR rtl-optimization/45352
4365         * sel-sched.c (find_best_expr): Do not set pneed_stall when
4366         the variable_issue hook is not implemented.
4367         (fill_insns): Remove dead variable stall_iterations.
4368         (init_seqno_1): Force EBB start for resetting sched cycles on any
4369         successor blocks of the rescheduled region.
4370         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
4371         (reset_sched_cycles_in_current_ebb): Add debug printing.
4372         New variable issued_insns.  Advance state when we have issued
4373         issue_rate insns.
4374
4375 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4376
4377         * gengtype (main): Get here's position using POS_HERE macro for
4378         do*typedef calls.
4379
4380 2010-11-07  Ian Lance Taylor  <iant@google.com>
4381
4382         PR target/46089
4383         * config/i386/i386.c (split_stack_fn_large): New static variable.
4384         (ix86_expand_split_stack_prologue): Handle large model.
4385
4386 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
4387
4388         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
4389         all possible addressing modes.
4390
4391 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
4392
4393         PR tree-optimization/46346
4394         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
4395
4396 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4397
4398         * config/mips/mips.c: Revert previous patch.
4399         * config/mips/mips.md: Likewise.
4400
4401 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4402
4403         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
4404         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
4405         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
4406         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
4407         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
4408         to use FMA.
4409         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
4410         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
4411         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
4412         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
4413
4414 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
4415
4416         PR c/43384
4417         * c-decl.c (lookup_label): Labels can only be referenced in a
4418         function's scope.
4419         (store_parm_decls_oldstyle): Skip erroneous parameters.
4420
4421 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
4422
4423         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4424         LIBCALL_VALUE): Remove macros.
4425         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4426         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4427         (fr30_function_value_regno_p, fr30_function_value,
4428         fr30_libcall_value): New functions.
4429
4430 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
4431
4432         PR middle-end/46314
4433         * target.def (generate_internal_label): New asm_out hook.
4434         * output.h (default_generate_internal_label): Declare.
4435         * varasm.c (default_generate_internal_label): Define.
4436
4437 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4438
4439         PR target/44981
4440         * doc/extend.tex (format): Document NSString extension.
4441         (format_arg): Likewise.
4442         (Darwin Format Checks): New section.
4443         * doc/tm.texi: Document string object hooks (generated).
4444         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
4445         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4446         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4447         * target.def (objc_construct_string_object): Rename, amend
4448         documentation.
4449         (string_object_ref_type_p): New hook.
4450         (check_string_object_format_arg): New hook.
4451         * c-parser.c (c_parser_attributes): Allow objective-c class names as
4452         attribute identifiers.
4453         * config/darwin-c.c (darwin_cfstring_ref_p): New.
4454         (darwin_check_cfstring_format_arg): New.
4455         (darwin_additional_format_types): New.
4456         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
4457         (darwin_check_cfstring_format_arg): New.
4458         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
4459         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4460         (TARGET_N_FORMAT_TYPES): New.
4461         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4462
4463 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4464             Pascal Obry  <obry@adacore.com>
4465
4466         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
4467         in 64-bit mode and 17 otherwise.
4468
4469 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4470
4471         PR debug/45939
4472         * var-tracking.c (emit_note_insn_var_location): Make sure that
4473         call related var location notes come before the normal ones.
4474
4475 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4476
4477         PR target/46326
4478         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
4479         in the last change.
4480
4481 2010-11-05  Ian Lance Taylor  <iant@google.com>
4482
4483         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
4484
4485 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4486
4487         PR c/44772
4488         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
4489         pointer_set_contains if DECL_NAME is NULL.
4490
4491 2010-11-05  Ian Lance Taylor  <iant@google.com>
4492
4493         PR target/46084
4494         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
4495         request enough additional space for alignment, and force alignment.
4496
4497 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
4498
4499         * config/i386/i386.c (legitimate_pic_address_disp_p):
4500         Handle UNSPEC_PCREL.
4501         (ix86_legitimate_address_p): Likewise.
4502         (legitimize_pic_address): Likewise.
4503         (output_pic_addr_const): Likewise.
4504         (ix86_delegitimize_address): Likewise.
4505         (ix86_find_base_term): Likewise.
4506         (memory_address_length): Likewise.
4507         (x86_output_mi_thunk): Handle special case x64
4508         for non local binding.
4509         * config/i386/i386.md (UNSPEC_PCREL): New.
4510         * config/i386/winnt.c (i386_pe_binds_local_p):
4511         Allow weak symbol for x64 windows with non-local binding.
4512
4513 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4514
4515         PR target/45670
4516         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
4517         instead of EXPAND_NORMAL for base expansion.
4518
4519 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
4520
4521         * config.gcc: Support --with-fpmath=avx for x86.
4522         * config/i386/avxmath.h: New.
4523         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
4524
4525 2010-11-05  Ian Lance Taylor  <iant@google.com>
4526
4527         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
4528         * gengtype.c (walk_type): Don't recognize descbits option.
4529
4530 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
4531
4532         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
4533         WORD_SWITCH_TAKES_ARG): Remove.
4534         * doc/options.texi (Args): Document.
4535         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
4536         * doc/tm.texi: Regenerate.
4537         * opt-functions.awk (switch_flags): Handle Args.
4538         * opts-common.c: Update comment on tm.h include.
4539         (decode_cmdline_option): Handle options with multiple arguments.
4540         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
4541         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
4542         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4543         CL_COMMON): Update values.
4544         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
4545         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
4546         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
4547         sectobjectsymbols, sectorder, segcreate, segprot): New.
4548
4549 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4550             Uros Bizjak  <ubizjak@gmail.com>
4551
4552         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
4553         256bit AVX register is used.
4554         (ix86_expand_vector_move_misalign): Likewise.
4555         (ix86_expand_vector_move): Replace use_avx256_p with
4556         VALID_AVX256_REG_MODE.
4557
4558 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
4559
4560          PR target/44750
4561         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
4562         change.  Set $@-warn.o to -Wno-error.
4563
4564         PR bootstrap/44756
4565         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
4566         comparing it to a signed value.
4567
4568         PR middle-end/44766
4569         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
4570         PR bootstrap/44770
4571         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
4572         to i.
4573
4574         PR target/44754
4575         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
4576         (m32c_function_arg).  Add comma between arguments two and three.
4577         (m32c_promote_prototypes): Remove declaration.
4578         (current_function_special_page_vector): Likewise.
4579         (m32c_regno_reg_class): Change return type to enum reg_class.
4580         (m32c_pushm_popm): Use add_reg_note.
4581         (m32c_push_rounding): Change return type to unsigned int.
4582         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
4583         enum reload_type.
4584         (m32c_insert_attributes): Constify variable name.
4585         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
4586         (m32c_prepare_shift): Remove variable lref.
4587         (m32c_expand_movcc): Remove variable cmp.
4588         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
4589         (m32c_compare_redundant): Remove variable op2.
4590         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
4591         (m32c_pragma_memregs): Assign the number to target_memregs.
4592         (m32c_pragma_address): Remove variable var_str.
4593         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
4594         enum reg_class.
4595         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
4596         * config/m32c/bitops.md (andsi3): Add default case to switch.
4597         (iorsi3, xorsi3): Likewise.
4598         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
4599         * config/m32c/jump.md (call, call_value): Likewise.
4600         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
4601         (m32c_regno_reg_class): Likewise.
4602         (current_function_special_page_vector): Declare.
4603
4604 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4605
4606         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
4607
4608         PR tree-optimization/46099
4609         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
4610         if it is NULL and uid wasn't found in the hash table.  Just fold the
4611         result if it is NULL otherwise.  Insert other potentially needed
4612         stmts right before current stmt instead of on the entry edge.
4613         (struct elv_data): Add gsi and reset fields.
4614         (eliminate_local_variables_1): Adjust caller.  If take_address_of
4615         failed for debug stmt, set dta->reset and return.
4616         (eliminate_local_variables_stmt): Change STMT argument for GSI,
4617         pass GSI through to the callback, handle resetting of debug stmts.
4618         (eliminate_local_variables): Adjust caller.  Process debug stmts
4619         in second phase.
4620
4621         PR middle-end/43690
4622         * gimplify.c (gimplify_asm_expr): If a "m" input is a
4623         {pre,post}{in,de}crement, fail.
4624
4625         PR debug/46307
4626         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
4627         * tree-pretty-print.c (dump_generic_node): Likewise.
4628         (op_code_prio): Likewise.
4629         * cfgexpand.c (expand_debug_expr): Likewise.
4630
4631 2010-11-04  Paul Koning  <ni1d@arrl.net>
4632
4633         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
4634         constraints.
4635
4636 2010-11-04  Chao-ying Fu  <fu@mips.com>
4637
4638         * configure.ac: Test assembler support for DSP Rev1 mult.
4639         * configure: Regenerate.
4640         * config.in: Regenerate.
4641         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
4642         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
4643         (CODE_FOR_mips_multu): New define.
4644         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
4645         dspr2_32 to dsp_32.
4646         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
4647         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
4648         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
4649         New define_expand patterns.
4650         * config/mips/constraints.md (ka): Update the constraint to test
4651         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
4652         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
4653         mips_multu): Delete.
4654         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
4655         Change target constraint to "ka".
4656         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
4657         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
4658         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4659         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
4660         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4661         (<u>maddsidi4): Likewise.
4662         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
4663         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
4664
4665 2010-11-04  Paul Koning  <ni1d@arrl.net>
4666
4667         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
4668
4669 2010-11-04  Paul Koning  <ni1d@arrl.net>
4670
4671         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
4672
4673 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4674
4675         Fixed using the Objective-C 2.0 dot-syntax with class names.
4676         * c-parser.c (c_parser_next_token_starts_declspecs): In
4677         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
4678         (c_parser_next_token_starts_declaration): Same.
4679         (c_parser_postfix_expression): Parse the Objective-C 2.0
4680         dot-syntax with a class name.
4681
4682 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
4683
4684         * final.c (compute_alignments): Compute/free loop info all the time.
4685         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
4686         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
4687         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
4688         * config/rs6000/rs6000.c (cfgloop.h): Include.
4689         (can_override_loop_align): New.
4690         (rs6000_option_override_internal): Set it.
4691         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
4692         (rs6000_loop_align): New function.
4693         (rs6000_loop_align_max_skip): Likewise.
4694
4695 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4696
4697         PR driver/45703
4698         * collect2.c (main): Print --help output to stdout.  Do not
4699         exit right away, so ld --help is appended.  Add empty lines
4700         to separate output suitably.
4701
4702 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
4703
4704         PR tree-optimization/46233
4705         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
4706         after calling analyze_function, not before.
4707
4708         PR target/46234
4709         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
4710         instead of build_va_arg_indirect_ref.
4711         * config/spu/spu.c (spu_va_start): Likewise.
4712         * config/s390/s390.c (s390_va_start): Likewise.
4713
4714 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
4715
4716         PR middle-end/46292
4717         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
4718         if the innermode is not vector mode, determine the mode of a subreg
4719         by using mode_for_size of inner_size.
4720
4721 2010-11-04  Richard Guenther  <rguenther@suse.de>
4722
4723         PR rtl-optimization/46183
4724         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
4725         (execute_rtl_pre): Likewise.
4726         (execute_rtl_hoist): Likewise.
4727
4728 2010-11-04  Richard Guenther  <rguenther@suse.de>
4729
4730         PR tree-optimization/46068
4731         * ipa-split.c (consider_split): Remove gcc_unreachable.
4732
4733 2010-11-04  Richard Guenther  <rguenther@suse.de>
4734
4735         * tree-nested.c (build_addr): Use build_fold_addr_expr.
4736
4737 2010-11-04  Richard Guenther  <rguenther@suse.de>
4738
4739         PR tree-optimization/45991
4740         * gimplify.c (force_gimple_operand_1): Use the provded test
4741         function in the initial test.
4742
4743 2010-11-04  Jeff Law  <law@redhat.com>
4744
4745         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
4746         of readonly memory equivalances for const/pure calls.
4747
4748 2010-11-04  Richard Guenther  <rguenther@suse.de>
4749
4750         PR tree-optimization/45733
4751         * tree-vect-stmts.c (reverse_vec_elements): Honor the
4752         permute builtins function return type.
4753
4754 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
4755
4756         PR middle-end/44765
4757         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
4758         as an index, check it is not INVALID_REGNUM.
4759
4760         PR bootstrap/44756
4761         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
4762         unsignedp.
4763         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
4764
4765         PR bootstrap/44756
4766         * function.c (thread_prologue_and_epilogue_insns): Add
4767         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
4768
4769         PR bootstrap/44756
4770         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
4771
4772         PR target/44750
4773         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
4774         (pdp11_preferred_reload_class): Rename class to rclass.
4775         (pdp11_preferred_output_reload_class): Likewise.
4776         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
4777         ALL_COMPILERFLAGS .
4778         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
4779
4780         PR bootstrap/44756
4781         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
4782         iteration variables to enum machine_mode.
4783
4784         PR target/44751
4785         * config/h8300/h8300.c: Include df.h.
4786         (push, pop): Use add_reg_note.
4787         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
4788         (compute_a_shift_cc): Likewise.
4789         (expand_a_shift): Argument code has type enum rtx_code.
4790         (struct shift_insn): Member cc_valid has type enum attr_cc.
4791         (struct shift_info) <cc_inline, cc_special>: Likewise.
4792         enum attr_cc.
4793         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
4794         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
4795
4796 2010-11-04  Ira Rosen  <irar@il.ibm.com>
4797
4798         PR tree-optimization/46213
4799         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
4800         MINUS_EXPR only if the first operand is reduction operand.
4801
4802 2010-11-04  Richard Guenther  <rguenther@suse.de>
4803             Richard Henderson  <rth@redhat.com>
4804
4805         * tree.def (FMA_EXPR): New tree code.
4806         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
4807         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
4808         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
4809         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
4810         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4811         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
4812         (execute_optimize_widening_mul): Call it.  Reorganize to allow
4813         dead stmt removal.  Move TODO flags ...
4814         (pass_optimize_widening_mul): ... here.
4815         * flag-types.h (enum fp_contract_mode): New enum.
4816         * common.opt (flag_fp_contract_mode): New variable.
4817         (-ffp-contract): New option.
4818         * opts.c (common_handle_option): Handle it.
4819         * doc/invoke.texi (-ffp-contract): Document.
4820         * tree.h (fold_fma): Declare.
4821         * builtins.c (fold_fma): New function.
4822         (fold_builtin_fma): Likewise.
4823         (fold_builtin_3): Call it for fma.
4824         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
4825         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
4826         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
4827         New expanders.
4828         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
4829         named patterns.
4830         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
4831         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
4832         (fms_optab, fnma_optab, fnms_optab): New defines.
4833         * gimplify.c (gimplify_expr): Handle binary truth expressions
4834         explicitly.  Handle FMA_EXPR.
4835         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
4836         operations.
4837
4838 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4839             Richard Guenther  <rguenther@suse.de>
4840
4841         * passes.c (init_optimization_passes): Move veclower after SSA.
4842         * tree-vect-generic.c (uniform_vector_p): New function.
4843         (expand_vector_operations_1): Handle conversion.
4844         (pass_lower_vector): Update SSA form.
4845
4846 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
4847
4848         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
4849         plugin capabilities.
4850         * configure: Regenerate.
4851
4852 2010-11-03  Xinliang David Li  <davidxl@google.com>
4853
4854         PR target/46200
4855         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
4856         Adjust cbase if the use stmt is after iv update.
4857
4858 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4859
4860         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
4861
4862 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4863
4864         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
4865         comment.  Pass true to the last argument of output_stack_adjust.
4866
4867 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4868
4869         PR target/46295
4870         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
4871         if 256bit AVX register is used.
4872
4873 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4874
4875         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
4876         xsmindp/xsmaxdp on VSX for single precision min/max.
4877         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
4878         (vsx_sminsf3): Ditto.
4879
4880 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4881
4882         * combine.c (try_combine): Fix formatting issues, improve comments and
4883         fix a pasto.
4884
4885 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4886
4887         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
4888         of the result before building binary expressions.
4889
4890 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4891
4892         PR rtl-optimization/45865
4893         * Makefile.in (df-problems.o): Revert revision 164552.
4894         * basic-block.h (enum bb_flags): Likewise.
4895         * cfgcleanup.c (block_was_dirty): Likewise.
4896         (try_forward_edges): Likewise.
4897         (try_crossjump_bb): Likewise.
4898         (try_head_merge_bb): Likewise.
4899         (try_optimize_cfg): Likewise.
4900         (cleanup_cfg): Likewise.
4901         * df-core.c (df_set_bb_dirty): Likewise.
4902         * df-problems.c: Likewise.
4903         (df_simulate_find_uses): Likewise.
4904         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
4905         (find_memory, find_memory_store): Likewise.
4906         (can_move_insns_across): Likewise.
4907         * df.h (can_move_insns_across): Likewise.
4908         * ifcvt.c (find_memory): Likewise.
4909         (dead_or_predicable): Likewise.
4910
4911 2010-11-03  Richard Guenther  <rguenther@suse.de>
4912
4913         PR middle-end/46288
4914         * predict.c (strip_predict_hints): Simply DCE builtin expect if
4915         the result is unused.
4916
4917 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4918
4919         PR tree-optimization/46009
4920         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
4921         cond_if_else_store_replacement if bb1 and bb2 have the same
4922         single successor.
4923         (cond_store_replacement): Use gimple_assign_single_p, don't
4924         check if rhs is SSA_NAME or invariant.  Call release_defs for
4925         assign.
4926         (cond_if_else_store_replacement): New function.
4927
4928 2010-11-03  Richard Guenther  <rguenther@suse.de>
4929
4930         * opts.c (finish_options): Properly check for all WHOPR
4931         flags before complaining about -flto-partition.
4932
4933 2010-11-04  Alan Modra  <amodra@gmail.com>
4934
4935         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
4936         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
4937         TARGET_SECURE_PLT.
4938         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
4939         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
4940         on input, "r" on output.
4941
4942 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4943
4944         Implemented -fobjc-std=objc1 flag.
4945         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
4946         option.
4947         * doc/standards.texi (Standards): Updated the section on
4948         Objective-C; mention support for Objective-C 2.0 features and the
4949         new -fstd-objc=objc1 flag to disable them.
4950
4951 2010-11-03  Richard Guenther  <rguenther@suse.de>
4952
4953         PR middle-end/46241
4954         * dwarf2out.c (scope_die_for): Properly detect global scope.
4955
4956 2010-11-03  Richard Guenther  <rguenther@suse.de>
4957
4958         PR tree-optimization/46190
4959         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4960         Properly compute peel iterations.
4961
4962 2010-11-03  Richard Guenther  <rguenther@suse.de>
4963
4964         PR tree-optimization/46286
4965         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
4966         re-allocated vector data.
4967
4968 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4969
4970         PR target/46285
4971         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
4972         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
4973         is completed.
4974
4975 2010-11-03  Richard Guenther  <rguenther@suse.de>
4976
4977         PR tree-optimization/46217
4978         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
4979         flag matches.
4980         (execute_update_addresses_taken): Likewise.
4981
4982 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4983
4984         PR bootstrap/44335
4985         * targhooks.c (targhook_words_big_endian): New function.
4986         (targhook_float_words_big_endian): Likewise.
4987         * targhooks.h (targhook_words_big_endian): Declare.
4988         (targhook_float_words_big_endian): Likewise.
4989         * target.def (words_big_endian, float_words_big_endian): New hooks.
4990
4991 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4992
4993         PR tree-optimization/46165
4994         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
4995         a normal call into noreturn call.
4996
4997 2010-11-03  Richard Guenther  <rguenther@suse.de>
4998
4999         PR middle-end/46251
5000         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5001         not INDIRECT_REFs.
5002
5003 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5004
5005         PR tree-optimization/46107
5006         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5007         if cfg_hook_duplicate_loop_to_header_edge failed.
5008
5009 2010-11-03  Ian Lance Taylor  <iant@google.com>
5010
5011         PR lto/46273
5012         * config.gcc: Don't set lto_binary_reader.
5013         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5014         (Configuration): Mention --disable-lto.  Remove --with-libelf
5015         paragraph.
5016
5017 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5018
5019         PR debug/46252
5020         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5021         prev_real_insn.
5022         * gcse.c (insert_insn_end_basic_block): Likewise.
5023
5024         PR rtl-optimization/46034
5025         PR rtl-optimization/46212
5026         PR rtl-optimization/46248
5027         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5028         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5029         before i0dest -> i0src substitution and pass 1 instead of 0 as last
5030         argument to subst on i2pat.
5031
5032 2010-11-02  Ian Lance Taylor  <iant@google.com>
5033
5034         * configure.ac: Use AC_SYS_LARGEFILE.
5035         * configure: Rebuild.
5036         * config.in: Rebuild.
5037
5038 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5039
5040         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5041         fold_convert.
5042         * c-typeck.c (build_function_call_vec): Likewise.
5043         * cfgexpand.c (expand_debug_expr): Likewise.
5044         * cgraphunit.c (assemble_thunk): Likewise.
5045         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5046         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5047         (fold_binary_loc, fold_ternary_loc): Likewise.
5048         * gimple-fold.c (get_symbol_constant_value): Likewise.
5049         * gimple-low.c (lower_builtin_setjmp): Likewise.
5050         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5051         * gimplify.c (gimplify_init_constructor): Likewise.
5052         * lambda.h (build_linear_expr): Likewise.
5053         * omp-low.c (omp_reduction_init): Likewise.
5054         * tree-inline.c (remap_ssa_name): Likewise.
5055         * tree-object-size.c (compute_object_sizes): Likewise.
5056         * tree-sra.c (init_subtree_with_zero): Likewise.
5057         (sra_ipa_modify_assign): Likewise.
5058         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5059         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5060         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5061         (undistribute_ops_list): Likewise.
5062         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5063         * tree-vect-stmts.c (vectorizable_call): Likewise.
5064         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5065         (build_zero_cst): Handle more cases directly.  Update comment.
5066
5067 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5068
5069         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5070         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5071
5072         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5073         and call ix86_split_call_vzeroupper instead of
5074         ix86_split_call_pop_vzeroupper.
5075         (*call_pop_1_vzeroupper): Likewise.
5076         (*sibcall_pop_1_vzeroupper): Likewise.
5077         (*call_value_pop_0_vzeroupper): Likewise.
5078         (*call_value_pop_1_vzeroupper): Likewise.
5079         (*sibcall_value_pop_1_vzeroupper): Likewise.
5080
5081 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5082
5083         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5084
5085 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
5086
5087         * basic-block.h (insert_insn_end_bb_new): Delete.
5088         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
5089
5090 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
5091             H.J. Lu  <hongjiu.lu@intel.com>
5092
5093         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
5094         (ix86_split_call_pop_vzeroupper): Likewise.
5095
5096         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
5097         (ix86_expand_call): Conditionally decorate calls with
5098         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
5099         (ix86_split_call_vzeroupper): New.
5100         (ix86_split_call_pop_vzeroupper): Likewise.
5101
5102         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
5103         (*call_pop_0_vzeroupper): New insn_and_split pattern.
5104         (*call_pop_1_vzeroupper): Likewise.
5105         (*sibcall_pop_1_vzeroupper): Likewise.
5106         (*call_0_vzeroupper): Likewise.
5107         (*call_1_vzeroupper): Likewise.
5108         (*sibcall_1_vzeroupper): Likewise.
5109         (*call_1_rex64_vzeroupper): Likewise.
5110         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
5111         (*call_1_rex64_large_vzeroupper): Likewise.
5112         (*sibcall_1_rex64_vzeroupper): Likewise.
5113         (*call_value_pop_0_vzeroupper): Likewise.
5114         (*call_value_pop_1_vzeroupper): Likewise.
5115         (*sibcall_value_pop_1_vzeroupper): Likewise.
5116         (*call_value_0_vzeroupper): Likewise.
5117         (*call_value_0_rex64_vzeroupper): Likewise.
5118         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
5119         (*call_value_1_vzeroupper): Likewise.
5120         (*sibcall_value_1_vzeroupper): Likewise.
5121         (*call_value_1_rex64_vzeroupper): Likewise.
5122         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
5123         (*call_value_1_rex64_large_vzeroupper): Likewise.
5124         (*sibcall_value_1_rex64_vzeroupper): Likewise.
5125
5126 2010-11-02  Ian Lance Taylor  <iant@google.com>
5127
5128         PR lto/46273
5129         * config.gcc: Revert last patch: set lto_binary_reader.
5130
5131 2010-11-02  Richard Guenther  <rguenther@suse.de>
5132
5133         PR tree-optimization/46149
5134         * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
5135         non-indirect MEM_REF variants.
5136
5137 2010-11-02  Richard Guenther  <rguenther@suse.de>
5138
5139         PR tree-optimization/46216
5140         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5141         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
5142
5143 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5144
5145         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
5146         (*-*-osf*): Likewise.
5147         * configure: Regenerate.
5148
5149 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5150
5151         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
5152         for Intel Core 2 and Core i7.
5153
5154 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
5155
5156         Model decoder of Core 2/i7 for multipass scheduling.
5157
5158         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
5159         New type to hold target-specific data for multipass scheduling.
5160         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5161         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
5162         Core 2/i7.
5163         (core2i7_secondary_decoder_max_insn_size,)
5164         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
5165         New static variables.
5166         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
5167         ([_]ix86_first_cycle_multipass_data): New static variable.
5168         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
5169         Implement targetm.sched hooks.
5170         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
5171         of ...
5172         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
5173         Implement new targetm.sched hooks.
5174         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
5175         targetm.sched hook to install multipass scheduling hooks on demand.
5176
5177         * doc/tm.texi.in: Document new targetm.sched hooks.
5178         * doc/tm.texi: Regenerate.
5179
5180         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5181         (first_cycle_multipass_data_t): New typedef.
5182         (struct choice_entry: target_data): New field.
5183         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
5184         to allow target model restrictions not represented in DFA.
5185         (choose_ready, schedule_block): Update.
5186         (sched_extend_ready_list, sched_finish_ready_list): Call new target
5187         hooks to initialize target-specific data for multipass scheduling.
5188         * sched-int.h (max_issue): Update declaration.
5189         * sel-sched.c (choose_best_insn): Update.
5190         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
5191         (first_cycle_multipass_{init, fini}): Define and document new
5192         targetm.sched hooks.
5193
5194 2010-11-02  Richard Guenther  <rguenther@suse.de>
5195
5196         PR tree-optimization/46184
5197         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
5198         input vector type from the reduction operand as well.
5199
5200 2010-11-02  Richard Guenther  <rguenther@suse.de>
5201
5202         PR tree-optimization/46177
5203         * tree-loop-distribution.c (prop_phis): Use
5204         mark_virtual_phi_result_for_renaming.
5205
5206 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5207
5208         PR middle-end/46120
5209         * tree.c (get_binfo_at_offset): Bail out on artificial
5210         fields.  Identify primary bases according to their offsets.
5211
5212 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5213
5214         PR tree-optimization/45875
5215         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
5216         (gimple_get_relevant_ref_binfo): Detect primary bases according to
5217         their field offset.
5218
5219 2010-11-02  Ian Lance Taylor  <iant@google.com>
5220
5221         * doc/install.texi (Configuration): Note in two places that Java
5222         is not enabled by default.
5223
5224 2010-11-02  Ian Lance Taylor  <iant@google.com>
5225
5226         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5227         (Configuration): Mention --disable-lto.  Remove --with-libelf
5228         paragraph.
5229
5230 2010-11-02  Ian Lance Taylor  <iant@google.com>
5231
5232         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
5233         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
5234         LIBELFINC.  Remove HAVE_libelf.
5235         * config.gcc: Don't set lto_binary_reader.
5236         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
5237         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
5238         (LIBS): Remove $(LIBELFLIBS).
5239         (INCLUDES): Remove $(LIBELFINC).
5240         * configure: Rebuild.
5241         * config.in: Rebuild.
5242
5243 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5244
5245         * config/microblaze/microblaze-protos.h (function_arg): Delete.
5246         (function_arg_advance): Delete.
5247         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
5248         (FUNCTION_ARG): Delete.
5249         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
5250         (microblaze_function_arg_advance): ...this.  Make static.  Take a
5251         const_tree and a bool.
5252         (function-arg): Rename to...
5253         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
5254         and a bool.
5255         (microblaze_expand_prologue): Call targetm.calls.function_arg and
5256         targetm.calls.function_arg_advance.
5257         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5258
5259 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5260
5261         Merge from FSF "apple/trunk" branch.
5262
5263         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
5264         * config/darwin.opt: .. to here.
5265         (matt-stubs): New option.
5266         * config/i386/darwin.opt: Delete.
5267         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
5268         (MACHO_DYNAMIC_NO_PIC_P): New.
5269         (MACHOPIC_INDIRECT): New.
5270         (MACHOPIC_PURE): New.
5271         * config/i386/darwin.h (DARWIN_X86) Define to 1.
5272         (MACHOPIC_ATT_STUB): New.
5273         (CC1_SPEC): Do not remove mdynamic-no-pic.
5274         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5275         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5276         (FUNCTION_PROFILER): Correct over-length line.
5277         (SUBTARGET_OVERRIDE_OPTIONS): New.
5278         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5279         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
5280         (legitimate_constant_p): Handle mdynamic-no-pic.
5281         (ix86_legitimate_address_p): Likewise.
5282         (ix86_legitimize_address): Likewise.
5283         (ix86_expand_move): Likewise.
5284         (machopic_output_stub): Update for ATT-style stubs and
5285         mdynamic-no-pic.
5286         * config/darwin-protos.h (machopic_symbol_defined_p): New.
5287         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
5288         TARGET_DYNAMIC_NO_PIC: Remove.
5289         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5290         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5291         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
5292         Remove handling of mdynamic-no-pic.
5293         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
5294         Define if required.
5295         (machopic_symbol_defined_p): Do not try to use current_function_decl
5296         when generating _get_pc thunks within stubs.
5297         (machopic_indirect_data_reference): Rework for direct conditionals
5298         rather than #ifdefs, add x86 mdynamic-no-pic
5299         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
5300         defined value.
5301         (darwin_override_options): Handle mdynamic-no-pic here.
5302         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
5303         (machopic_lazy_symbol_ptr3_section): New.
5304         (machopic_picsymbol_stub2_section): New.
5305         (machopic_picsymbol_stub3_section): New.
5306         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
5307         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5308         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5309         Moved common definition from x86 and rs6000.
5310         (MACHO_DYNAMIC_NO_PIC_P): Override value.
5311         (MACHOPIC_INDIRECT): Likewise.
5312         (MACHOPIC_PURE): Likewise.
5313         * config.gcc (x86-darwin-*): Remove darwin.opt.
5314
5315 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
5316
5317         PR debug/46255
5318         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
5319         instead of gsi_last_bb.
5320
5321 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5322             Maxim Kuvyrkov  <maxim@codesourcery.com>
5323
5324         * config/i386/i386.c (cpu_names): Add "corei7".
5325         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
5326
5327 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5328             Maxim Kuvyrkov  <maxim@codesourcery.com>
5329
5330         Tune alignment for Intel Core i7
5331
5332         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
5333         (enum processor_type): Update comment.  Add entries for Core i7.
5334         * config/i386-c.c (ix86_target_macros_internal): Update.
5335         * config/i386.c (m_COREI7{_32,_64}): New macros.
5336         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
5337         (processor_target_table): Tune alignment for Core i7.
5338         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
5339
5340         * doc/invoke.texi: Document "corei7" option value.
5341
5342 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5343             Maxim Kuvyrkov  <maxim@codesourcery.com>
5344             H.J. Lu  <hjl.tools@gmail.com>
5345
5346         Basic support for Intel Core i7
5347
5348         * i386.c (ix86_option_override_internal): Add entry for corei7, use
5349         generic tuning.  Use generic32 when compiling for 32-bit ABI.
5350
5351 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5352
5353         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
5354         sections and call darwin_asm_dwarf_section() to handle them.
5355         (darwin_asm_dwarf_section): New.
5356         (darwin_file_start): Remove code emitting dwarf section symbols.
5357
5358 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
5359
5360         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
5361         explicitly disable stack protection when building libgcc.
5362         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
5363
5364 2010-11-01  Jason Merrill  <jason@redhat.com>
5365
5366         * fold-const.c (fold_indirect_ref_1): Handle folding
5367         POINTER_PLUS_EXPR to ARRAY_REF.
5368
5369 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
5370
5371         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
5372         (sh_delegitimize_address): New function.
5373
5374 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5375
5376         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
5377         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
5378         (CC1_SPEC): Don't handle -target.
5379         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
5380         options.
5381         * config/darwin.opt (Zallowable_client, Zbundle_loader,
5382         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
5383         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
5384         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
5385         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
5386         Zweak_reference_mismatches, client_name, compatibility_version,
5387         current_version, dylinker_install_name, pagezero_size,
5388         read_only_relocs, seg1addr, segs_read_only_addr,
5389         segs_read_write_addr, sub_library, sub_umbrella): New.
5390         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
5391         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
5392         * config/freebsd.opt: New.
5393         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
5394         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
5395         * config/rpath.opt: New.
5396         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
5397         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
5398         Use rpath.opt.
5399
5400 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5401
5402         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
5403         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
5404         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
5405         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
5406         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
5407         Document that options in .opt files do not need to be included.
5408         * doc/tm.texi: Regenerate.
5409         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
5410         * opts-common.c: Update comment on tm.h include.
5411         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
5412         * system.h (SWITCH_TAKES_ARG): Poison.
5413         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
5414         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
5415         in darwin.opt.
5416         (LINK_COMMAND_SPEC_A): Don't include %{x}.
5417         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5418         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
5419         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
5420         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5421         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
5422         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
5423         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
5424         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
5425         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5426         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
5427         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
5428         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
5429         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
5430         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
5431         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
5432         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
5433         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
5434         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
5435         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
5436         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
5437         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
5438         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
5439         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5440
5441 2010-11-01  Paul Koning  <ni1d@arrl.net>
5442
5443         * config/pdp11/pdp11.md: Use iterators.
5444         (addqi3, subqi3, iorsi3, xorsi3): Delete.
5445
5446 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
5447
5448         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
5449         GCC_INSN_FLAGS_H.
5450         * libgcov.c (__gcov_indirect_call_profiler): Set
5451         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
5452         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
5453
5454 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5455
5456         PR tree-optimization/46259
5457
5458         Revert:
5459         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5460         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5461         build_vector_from_val.
5462
5463 2010-11-01  DJ Delorie  <dj@redhat.com>
5464
5465         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
5466         as well as an assertion.
5467
5468 2010-11-01  Paul Koning  <ni1d@arrl.net>
5469
5470         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
5471         complex modes in memory.
5472
5473 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5474
5475         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
5476
5477 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
5478
5479         PR target/45250
5480         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
5481         (cfa_base_offset): New variable.
5482         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
5483         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
5484         is NULL.
5485         (vt_init_cfa_base): Initialize cfa_base_offset.
5486
5487 2010-11-01  Alan Modra  <amodra@gmail.com>
5488
5489         PR target/46030
5490         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
5491         and savres_strategy.
5492         (stack_info): New file scope var.
5493         (rs6000_init_machine_status): Init stack_info.
5494         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
5495         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5496         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
5497         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
5498         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
5499         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
5500         (rs6000_savres_strategy): Rewrite.
5501         (rs6000_stack_info): Use "stack_info" in place of local "info".
5502         Return cached stack info when reload_completed unless ENABLE_CHECKING
5503         in which case confirm newly calculated stack info matches old info.
5504         Delay calculation of lr_save_p, set it for out of line gp save/restore
5505         as well as fp.  Call rs6000_savres_strategy from here..
5506         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
5507         (rs6000_output_function_prologue): Use info->savres_strategy to
5508         determine whether fp save/restore externs need to be emitted.
5509
5510 2010-10-31  Jason Merrill  <jason@redhat.com>
5511
5512         * tree.h (EXPR_LOC_OR_HERE): New macro.
5513         * builtins.c (c_strlen): Use it.
5514         * c-decl.c (build_enumerator): Likewise.
5515         * gimplify.c (internal_get_tmp_var): Likewise.
5516         (shortcut_cond_expr): Likewise.
5517         (gimplify_one_sizepos): Likewise.
5518
5519 2010-10-31  Richard Henderson  <rth@redhat.com>
5520
5521         * config/i386/cygming.h (TARGET_SEH): New.
5522         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
5523         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
5524         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
5525         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
5526         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
5527         (ASM_DECLARE_FUNCTION_SIZE): New.
5528         * config/i386/i386-protos.h: Update.
5529         * config/i386/i386.c (ix86_option_override_internal): Enable
5530         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
5531         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
5532         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
5533         (ix86_compute_frame_layout): For SEH, disable
5534         use_fast_prologue_epilogue, move frame pointer to the end of
5535         the frame.  Initialize hfp_save_offset.
5536         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
5537         at end of prologue for SEH.
5538         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
5539         emit blockage at beginning of epilogue.
5540         (ix86_expand_binary_operator): After reload, emit LEA if needed.
5541         (ix86_output_call_insn): New.
5542         * config/i386/i386.h (TARGET_SEH): New.
5543         (struct machine_function): Add member seh.
5544         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
5545         * config/i386/winnt.c (struct seh_frame_state): New.
5546         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
5547         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
5548         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
5549         i386_pe_start_function, i386_pe_end_function): New.
5550
5551         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
5552         as CFA_STORE in rules 12 and 13.
5553
5554 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
5555
5556         PR tree-optimization/46142
5557         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
5558         accommodate third function argument.
5559
5560 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5561
5562         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
5563
5564 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5565
5566         * fold-const.c (build_zero_vector): Use build_vector_from_val.
5567         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
5568         (get_initial_def_for_reduction): Likewise.
5569         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5570         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
5571         * tree.c (build_one_cst): Likewise.
5572         (build_vector_from_val): Use types_compatible_p for assert.
5573
5574 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5575
5576         * emit-rtl.c (mark_used_flags): New function.
5577         (set_used_flags, reset_used_flags): Call it.
5578
5579 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
5580
5581         PR middle-end/44569
5582         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
5583         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
5584
5585 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5586
5587         PR target/46195
5588         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
5589         (ix86_compat_aligned_value_p): This.
5590         (ix86_old_function_arg_boundary): Renamed to ...
5591         (ix86_compat_function_arg_boundary): This.  Updated.
5592         (ix86_contains_aligned_value_p): New.
5593         (ix86_function_arg_boundary): Align long double parameters on
5594         stack to 4byte in 32bit.
5595
5596 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5597
5598         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5599         * c-parser.c (c_parser_objc_at_property_declaration): Removed
5600         parsing of RID_COPIES and RID_IVAR.  Updated call to
5601         objc_add_property_declaration.
5602         * c-typecheck.c (build_component_ref): Call
5603         objc_maybe_build_component_ref instead of objc_build_setter_call.
5604         Use objc_is_property_ref to improve Objective-C checks.
5605         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
5606         of objc_build_getter_call.
5607
5608 2010-10-29  Paul Koning  <ni1d@arrl.net>
5609
5610         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
5611         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
5612         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
5613         (REG_OK_STRICT): Move description.
5614
5615 2010-10-29  Paul Koning  <ni1d@arrl.net>
5616
5617         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
5618
5619 2010-10-29  Paul Koning  <ni1d@arrl.net>
5620
5621         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
5622
5623 2010-10-29  Paul Koning  <ni1d@arrl.net>
5624
5625         PR/41822
5626         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
5627
5628 2010-10-29  Richard Henderson  <rth@redhat.com>
5629
5630         PR rtl-opt/46226
5631         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
5632         for asm goto.
5633
5634 2010-10-29  Paul Koning  <ni1d@arrl.net>
5635
5636         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
5637         register to register move.
5638
5639 2010-10-29  Paul Koning  <ni1d@arrl.net>
5640
5641         * config/pdp11/pdp11.c (print_operand_address): Correct handling
5642         of integer constant addresses, delete vax-only logic.
5643
5644 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5645
5646         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
5647         a conditional expression.
5648
5649 2010-10-29  Paul Koning  <ni1d@arrl.net>
5650
5651         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
5652         instruction encoding.
5653
5654 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5655             Andrew Pinski  <pinskia@gmail.com>
5656
5657         * tree.h (build_vector_from_val): Declare.
5658         * tree.c (build_vector_from_val): New function.
5659         * c-typeck.c (build_binary_op): Handle vector shifting.
5660         * doc/extend.texi: Description of the vector shifting operation.
5661
5662 2010-10-29  Paul Koning  <pkoning@equallogic.com>
5663
5664         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
5665         pdp11_secondary_memory_needed): Declare.
5666         * config/pdp11/predicates.md (float_operand): New predicate.
5667         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
5668         (cbranchdf4, movdf): Change predicate.
5669         (movsf): Handle FPU register case.
5670         (truncdfsf2, extendsfdf2): Add FPU register case.
5671         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
5672         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
5673         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5674         (pdp11_register_move_cost): Update cost matrix.
5675         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
5676         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
5677         pdp11_secondary_memory_needed): New function.
5678         (pdp11_return_in_memory): Add other float types.
5679         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
5680         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
5681         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
5682         REGISTER_MOVE_COST): Delete.
5683         (BASE_RETURN_VALUE_REG): Add other float types.
5684
5685 2010-10-29  Nick Clifton  <nickc@redhat.com>
5686
5687         * doc/invoke.texi: Document -mam34 and -mtune options.
5688         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
5689         (mn10300_tune_cpu): New variable.
5690         (mn10300_handle_option): Handle -mam34 and -mtune options.
5691         (mn10300_option_override): Convert tune string into tune cpu variable.
5692         (mn10300_legitimate_constant_p): Delete unused local variable.
5693         (is_load_insn): New function.
5694         (is_store_insn): New function.
5695         (mn10300_adjust_schedule_cost): New function.
5696         (TARGET_SCHED_ADJUST_COST): Define.
5697         * config/mn10300/mn10300.opt (mam34): New option.
5698         (mtune): New option.
5699         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
5700         (enum processor_type): Add AM34.
5701         (TARGET_AM34): Define.
5702         * config/mn10300/mn10300.md (attr cpu): Add am34.
5703         Add pipeline description.
5704         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
5705         Remove unneeded alternatives.  Add timing attribute.
5706         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
5707         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
5708         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
5709         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
5710         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
5711         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
5712         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
5713         float_conditional_branch, jump, indirect_jump, tablejump,
5714         call_internal, call_value_internal, zero_extendqisi2_am33,
5715         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
5716         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
5717         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
5718         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
5719         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
5720         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
5721         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
5722         return_internal_regs, store_movm, return, call_next_insn):
5723         Add timing attribute.
5724         (am33_subsi3): Add missing clobber of CC_REG.
5725         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
5726         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
5727         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
5728         extendqisi2): Fix predicates.
5729         (call_internal, call_internal_value): Separate alternatives.
5730         * config/mn10300/t-mn10300: Add AM34 multilib.
5731
5732 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
5733
5734         * config/sh/sh.c (sh_promote_function_mode): Use
5735         default_promote_function_mode if !sh_promote_prototypes.
5736
5737 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
5738
5739         * recog.c (split_all_insns): Remove dead code.
5740
5741 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5742
5743         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5744
5745 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5746
5747         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5748         (FUNCTION_ARG_ADVANCE): Delete.
5749         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
5750         functions.
5751         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
5752         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5753         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5754
5755 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5756
5757         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
5758         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5759         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5760         Take a const_tree and a bool.
5761         (mcore_function_arg_advance): New function.
5762         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5763
5764 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5765
5766         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
5767         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5768         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5769         Take a const_tree and a bool.
5770         (mcore_function_arg_advance): New function.
5771         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5772
5773 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5774
5775         * config/h8300/h8300-protos.h (function_arg): Delete.
5776         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5777         * config/h8300/h8300.c (function_arg): Rename to...
5778         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
5779         a bool.
5780         (h8300_function_arg_advance): New function.
5781         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5782
5783 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5784
5785         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
5786         to...
5787         * config/arc/arc.c (arc_function_arg): ...here and...
5788         (arc_function_arg_advance): ...here.  New functions.
5789         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5790
5791 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5792
5793         * config/crx/crx-protos.h (crx_function_arg): Delete.
5794         (crx_function_arg_advance): Delete.
5795         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5796         * config/crx/crx.c (crx_function_arg): Make static.  Take a
5797         const_tree and a bool.
5798         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
5799         (enough_regs_for_param): Take a const_tree.
5800         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5801
5802 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5803
5804         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
5805         (m68hc11_function_arg_advance): Delete.
5806         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
5807         (FUNCTION_ARG_ADVANCE): Delete.
5808         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
5809         Take a const_tree and a bool.
5810         (m68hc11_function_arg_advance): Likewise.
5811         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5812
5813 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5814
5815         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
5816         (xstormy16_function_arg_advance): Delete.
5817         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
5818         (FUNCTION_ARG_ADVANCE): Delete.
5819         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
5820         Take a const_tree and a bool.
5821         (xstormy16_function_arg_advance): Likewise.  Return void, updating
5822         the CUM parameter instead.
5823         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5824
5825 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5826
5827         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
5828         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5829         (MOXIE_FUNCTION_ARG_SIZE): Move to...
5830         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
5831         (moxie_function_arg): Make static.  Take a const_tree and a bool.
5832         (moxie_function_arg_advance): New function.
5833         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5834
5835 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5836
5837         * config/mn10300/mn10300-protos.h (function_arg): Delete.
5838         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
5839         (FUNCTION_ARG_ADVANCE): Delete.
5840         * config/mn10300/mn10300.c (function_arg): Rename to...
5841         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
5842         and a bool.
5843         (mn10300_function_arg_advance): New function.
5844         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5845
5846 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5847
5848         * config/iq2000/iq2000-protos.h (function_arg): Delete.
5849         (function_arg_advance): Delete.
5850         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5851         * config/iq2000/iq2000.c (function_arg): Rename to...
5852         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
5853         a bool.
5854         (function_arg_advance): Rename to...
5855         (iq2000_function_arg_advance): ...this.  Make static.  Take a
5856         const_tree and a bool.
5857         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
5858         iq2000_function_arg.
5859         (iq2000_pass_by_reference): Call iq2000_function_arg).
5860         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5861
5862 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5863
5864         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
5865         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5866         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
5867         const_tree.
5868         (fr30_function_arg): New function.
5869         (fr30_function_arg_advance): New function.
5870         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5871
5872 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5873
5874         * config/frv/frv-protos.h (frv_function_arg): Delete.
5875         (frv_function_arg_advance): Delete.
5876         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5877         * config/frv/frv.c (frv_function_arg): Rename to...
5878         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
5879         (frv_function_arg, frv_function_incoming_arg): New functions.
5880         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
5881         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5882         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5883
5884 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
5885
5886         PR target/46153
5887         * config/i386/sse.md (sse_movhlps_exp): Use destination
5888         returned from ix86_fixup_binary_operands to expand insn.
5889         (sse_movlhps_exp): Ditto.
5890         (sse_loadhps_exp): Ditto.
5891         (sse_loadlps_exp): Ditto.
5892         (sse2_loadhpd_exp): Ditto.
5893         (sse2_loadlpd_exp): Ditto.
5894
5895 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
5896
5897         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
5898         constants in thumb2.
5899
5900 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5901
5902         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
5903         arithmetics in masking operations.
5904         (contains_muldiv): Likewise.
5905         (try_combine): Likewise.
5906         (find_split_point): Likewise.
5907         (combine_simplify_rtx): Likewise.
5908         (simplify_if_then_else): Likewise.
5909         (simplify_set): Likewise.
5910         (expand_compound_operation): Likewise.
5911         (expand_field_assignment): Likewise.
5912         (make_extraction): Likewise.
5913         (extract_left_shift): Likewise.
5914         (make_compound_operation): Likewise.
5915         (force_to_mode): Likewise.
5916         (make_field_assignment): Likewise.
5917         (reg_nonzero_bits_for_combine): Likewise.
5918         (simplify_shift_const_1): Likewise.
5919         (simplify_comparison): Likewise.
5920
5921 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
5922
5923         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
5924         (ia64_function_arg_advance): Delete.
5925         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5926         (FUNCTION_ARG_ADVANCE): Delete.
5927         * config/ia64/ia64.c (ia64_function_arg): Rename to...
5928         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
5929         bool arguments.
5930         (ia64_function_arg, ia64_function_incoming_arg): New functions.
5931         (ia64_function_arg_advance): Make static.  Take a const_tree and
5932         a bool.
5933         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5934         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5935
5936 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
5937
5938         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
5939         (TARGET_GET_RAW_ARG_MODE): New.
5940         * doc/tm.texi: Regenerate.
5941         * target.def (get_raw_result_mode): New.
5942         (get_raw_arg_mode): New.
5943         * targhooks.c (default_get_reg_raw_mode): New.
5944         * targhooks.h (default_get_reg_raw_mode): New.
5945         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
5946         (apply_result_size): Ditto.
5947         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
5948         (TARGET_GET_RAW_RESULT_MODE): Define.
5949         (TARGET_GET_RAW_ARG_MODE): Ditto.
5950
5951 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5952
5953         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
5954         for newer Solaris 10 release.
5955         (sparc_fallback_frame_state): Likewise.
5956
5957 2010-10-27  Jason Merrill  <jason@redhat.com>
5958
5959         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
5960         variables sooner.
5961
5962 2010-10-27  Jie Zhang  <jie@codesourcery.com>
5963             Maxim Kuvyrkov  <maxim@codesourcery.com>
5964
5965         * haifa-sched.c (ISSUE_POINTS): Remove.
5966         (max_issue): Don't issue more than issue_rate instructions.
5967
5968 2010-10-27  Ian Lance Taylor  <iant@google.com>
5969
5970         PR target/46197
5971         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
5972         (split_stack_return): Replace UNSPEC_STACK_CHECK with
5973         UNSPECV_SPLIT_STACK_RETURN.
5974
5975 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5976
5977         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
5978
5979         * config/i386/i386.c (block_info): New.
5980         (BLOCK_INFO): Likewise.
5981         (call_avx256_state): Likewise.
5982         (check_avx256_stores): Likewise.
5983         (move_or_delete_vzeroupper_2): Likewise.
5984         (move_or_delete_vzeroupper_1): Likewise.
5985         (move_or_delete_vzeroupper): Likewise.
5986         (use_avx256_p): Likewise.
5987         (function_pass_avx256_p): Likewise.
5988         (flag_opts): Add -mvzeroupper.
5989         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
5990         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
5991         is disabled.
5992         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
5993         generate vzeroupper.
5994         (init_cumulative_args): Add an int to indicate caller.  Set
5995         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
5996         based on return type.
5997         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
5998         caller_pass_avx256_p based on argument type.
5999         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6000         is used, but not returned by caller.
6001         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6002         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6003         is used.
6004         (ix86_minimum_alignment): Likewise.
6005         (ix86_expand_special_args_builtin): Set target to
6006         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6007         (ix86_reorg): Run the vzeroupper optimization if needed.
6008
6009         * config/i386/i386.h (ix86_args): Add caller.
6010         (INIT_CUMULATIVE_ARGS): Updated.
6011         (machine_function): Add use_vzeroupper_p, use_avx256_p,
6012         caller_pass_avx256_p, caller_return_avx256_p,
6013         callee_pass_avx256_p and callee_return_avx256_p.
6014
6015         * config/i386/i386.opt (-mvzeroupper): New.
6016
6017         * config/i386/predicates.md (vzeroupper_operation): Removed.
6018
6019         * config/i386/sse.md (avx_vzeroupper): Removed.
6020         (*avx_vzeroupper): Removed.
6021         (avx_vzeroupper): New.
6022
6023         * doc/invoke.texi: Document -mvzeroupper.
6024
6025 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6026
6027         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6028         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6029         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6030
6031 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6032             Olivier Hainque  <hainque@adacore.com>
6033
6034         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6035         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
6036         fs->signal_frame instead.
6037
6038 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6039
6040         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6041         parsing of RID_COPIES and RID_IVAR.
6042
6043 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6044
6045         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6046         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6047         Do not use objc_set_property_attr, but use local variables
6048         instead.  Detect repeated usage of setter, getter and ivar
6049         attributes.  Improved error processing when a setter name does not
6050         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
6051         that the token is a keyword.  Updated call to
6052         objc_add_property_declaration.
6053
6054 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6055
6056         * c-parser.c (c_parser_objc_at_property): Renamed to
6057         c_parser_objc_at_property_declaration.  Updated calls to
6058         objc_add_property_variable, now objc_add_property_declaration.
6059         Code rewritten to be much more robust in recovering from syntax
6060         errors.  Added comments.
6061         (c_parser_objc_property_attrlist): Removed.
6062         (c_parser_external_declaration): Updated calls to
6063         c_parser_objc_at_property, now
6064         c_parser_objc_at_property_declaration.
6065         (c_parser_objc_methodprotolist): Same change.
6066
6067 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6070
6071 2010-10-26  Jan Hubicka  <jh@suse.cz>
6072
6073         * ipa.c (process_references): Enqueue all referenced nodes;
6074         mark as reachable only non-external nodes.
6075         (cgraph_remove_unreachable_nodes): All referenced nodes should
6076         be enqueued; remove bogues node->needed check.
6077
6078 2010-10-26  Jan Hubicka  <jh@suse.cz>
6079
6080         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6081         to represent OMP.
6082
6083 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6084
6085         * config/i386/i386.md (split_stack_return): Replace
6086         unspec_volatile with unspec.
6087
6088 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
6089
6090         * doc/install.texi: Fix typo in --with-sysroot description.
6091
6092 2010-10-26  Jan Hubicka  <jh@suse.cz>
6093
6094         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6095         Use info provided by linker plugin.
6096
6097 2010-10-26  Jason Merrill  <jason@redhat.com>
6098
6099         * varasm.c (constructor_static_from_elts_p): Don't require a
6100         CONSTRUCTOR to have elements to be suitable for static
6101         initialization.  Allow ARRAY_TYPE as well.
6102
6103 2010-10-26  Jan Hubicka  <jh@suse.cz>
6104
6105         PR middle-end/45736
6106         * cgraph.c (cgraph_set_readonly_flag): Rename to...
6107         (cgraph_set_const_flags) ... this one; get also looping argument;
6108         clear constructor/destructor flags.
6109         (cgraph_set_pure_flag): Likewise.
6110         (cgraph_set_looping_const_or_pure_flag): Remove.
6111         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
6112         to optimize away static ctors/dtors; it does not work on inline clones;
6113         external functions can always be rmeoved.
6114         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
6115         inline clones; in LTO external functions always can go.
6116         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
6117         (cgraph_mark_address_taken_node): Assert that we are not taking
6118         address of inline clone.
6119         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
6120         external functions.
6121         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
6122         address taken.
6123         (ipcp_initialize_node_lattices): Only local functions can be
6124         handled without cloning.
6125         * cgraph.h (cgraph_set_readonly_flag,
6126         cgraph_set_looping_const_or_pure_flag): Remove.
6127         (cgraph_set_const_flag): Declare.
6128         (cgraph_set_pure_flag): Update.
6129         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
6130         flags setting code.
6131         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
6132         look at inline clones; fix handling of external definitions.
6133         (cgraph_postorder): Do not look at inline clones in the first pass.
6134         (function_and_variable_visibility): Drop constructors/destructor
6135         flags at pure and const functions.
6136         * tree-profile.c (tree_profiling): Update.
6137         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
6138         address taken; external functions do not account to whole program size.
6139         (cgraph_decide_inlining): Likewise; do not try to inline
6140         functions already inlined.
6141
6142 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6143
6144         * doc/invoke.texi: Improve documentation of
6145         -fstrict-volatile-bitfields.
6146
6147 2010-10-26  Ira Rosen  <irar@il.ibm.com>
6148
6149         PR tree-optimization/46167
6150         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
6151         is basic block for the statement.
6152
6153 2010-10-26  Paul Koning  <ni1d@arrl.net>
6154
6155         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
6156         current definition of struct_real_format.
6157
6158 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6159
6160         PR target/44948
6161         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
6162         (ix86_function_arg_boundary): Always align parameters on stack
6163         in 64bit and align parameters with alignment >= 16byte on stack
6164         in 32bit.  Warn alignment change.
6165
6166 2010-10-26  Ian Lance Taylor  <iant@google.com>
6167
6168         PR middle-end/45687
6169         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
6170         offset.
6171
6172 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
6173
6174         Implement opaque-enum-specifiesr for C++0x
6175         * tree.h (ENUM_IS_OPAQUE): New.
6176         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
6177
6178 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6179
6180         * stor-layout.c (layout_decl): Use the field's type to
6181         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
6182         * config/arm/arm.c (arm_override_options): Default to
6183         -fstrict-volatile-bitfields.
6184
6185 2010-10-25  Paul Koning  <ni1d@arrl.net>
6186
6187         * config/pdp11/pdp11.md: Add define_constants for register
6188         numbers, branch offset limits.
6189         * config/pdp11/pdp11.c: Use named constants instead of numbers.
6190         * config/pdp11.pdp11.h: Ditto.
6191
6192 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6193
6194         * configure.ac: Use $cpu_type instead of $target to define the nop.
6195         * configure: Regenerate.
6196
6197 2010-10-25  Jie Zhang  <jie@codesourcery.com>
6198
6199         * combine.c (try_combine): If insns need to be kept around, check that
6200         they can be copied in the merged instruction.
6201
6202 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6203
6204         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
6205         has been modified.
6206         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
6207         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
6208         it has been modified.
6209
6210 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6211
6212         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
6213
6214 2010-10-24  Paul Koning  <ni1d@arrl.net>
6215
6216         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
6217         * config/pdp11/pdp11.c (output_jump): Ditto.
6218
6219 2010-10-24  Ian Lance Taylor  <iant@google.com>
6220
6221         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
6222
6223 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6224
6225         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
6226         least one insn with a locus corresponding to an edge's goto_locus,
6227         disregard non-fallthru edges to the exit block and merge the blocks
6228         created for the same goto_locus.
6229
6230 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
6231
6232         * gcc.c (n_switches_alloc_debug_check): New.
6233         (set_option_handlers): New.
6234         (process_command): Use set_option_handlers.
6235         (do_self_spec): Pass spec-generated options through option handlers.
6236         (main): Also save and restore n_switches_alloc when swapping
6237         switch arrays.
6238
6239 2010-10-23  Richard Henderson  <rth@redhat.com>
6240
6241         PR target/46144
6242         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
6243         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
6244         Honor matching operands when splitting to XOR.
6245
6246 2010-10-23  Ian Lance Taylor  <iant@google.com>
6247
6248         * tree-vrp.c (extract_range_from_binary_expr): If
6249         flag_non_call_exceptions don't eliminate division by zero.
6250         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6251
6252 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
6253
6254         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
6255         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
6256         __ORDER_PDP_ENDIAN__.
6257         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6258         (struct DWstruct): Define based on __BYTE_ORDER__.
6259         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6260         (struct INTstruct): Define based on __BYTE_ORDER__.
6261         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6262         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
6263         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
6264         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6265         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6266         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6267         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6268         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6269         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6270         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6271         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6272         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6273         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6274         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6275         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6276         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6277         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6278         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6279         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6280         * doc/tm.texi: Regenerate.
6281         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
6282         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
6283
6284 2010-10-23  Jie Zhang  <jie@codesourcery.com>
6285
6286         PR rtl-optimization/37360
6287         * config/mips/mips.c (cached_can_issue_more): New local variable.
6288         (mips_sched_reorder_1): New.
6289         (mips_sched_reorder): Use mips_sched_reorder_1.
6290         (mips_sched_reorder2): New.
6291         (mips_variable_issue): Set cached_can_issue_more.
6292         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
6293         instead of mips_sched_reorder.
6294
6295         Revert:
6296         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
6297         PR rtl-optimization/37360
6298         * haifa-sched.c (max_issue): Do not assert that we never issue more
6299         insns than issue_rate.  Add comment.
6300
6301 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
6302
6303         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
6304         location info of the expression.
6305
6306 2010-10-22  DJ Delorie  <dj@redhat.com>
6307
6308         * doc/extend.texi (Named Address Spaces): Document the M32C named
6309         address space.
6310
6311         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
6312         __far address space.
6313         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
6314         "__far" address space for R8C and M16C processor variants.
6315         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
6316         (far_addr_space_p): New.
6317         (encode_pattern_1): Add sign and zero extend support.
6318         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
6319         (m32c_extra_constraint_p2): Add SF constraint.
6320         (m32c_legitimate_address_p): Support __far addresses.
6321         (m32c_addr_space_pointer_mode): New.
6322         (m32c_addr_space_address_mode): New.
6323         (m32c_addr_space_legitimate_address_p): New.
6324         (m32c_addr_space_legitimize_address): New.
6325         (m32c_addr_space_subset_p): New.
6326         (m32c_addr_space_convert): New.
6327         (conversions): Add __far operand patterns.
6328         (m32c_prepare_move): Force constants into registers for __far moves.
6329         (m32c_split_move): __far moves are always split.
6330         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
6331         * config/m32c/mov.md (mov<mode>_far_op1): New.
6332         (mov<mode>_far_op2): New.
6333         (movqi_op): Add __far (SF) support.
6334         (movhi_op): Likewise.
6335         (movsi_splittable): Split A1A0 also.
6336
6337 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
6338             Andrew Pinski  <pinskia@gmail.com>
6339
6340         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
6341         * doc/extend.texi: New paragraph
6342
6343 2010-10-22  Paul Koning  <ni1d@arrl.net>
6344
6345         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
6346
6347 2010-10-22  DJ Delorie  <dj@redhat.com>
6348
6349         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
6350
6351 2010-10-22  Paul Koning  <ni1d@arrl.net>
6352
6353         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
6354
6355 2010-10-22  Richard Henderson  <rth@redhat.com>
6356
6357         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
6358         cases for __builtin_fma and __builtin_fmaf.
6359
6360 2010-10-22  Richard Henderson  <rth@redhat.com>
6361
6362         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
6363         NEG+USE for vectors as well.
6364         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
6365         and splitter.
6366
6367 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6368
6369         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
6370         SWITCH_CURTAILS_COMPILATION): Remove.
6371         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
6372         * doc/tm.texi: Regenerate.
6373         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
6374
6375 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6376
6377         * config/i386/bdver1.md: New file.
6378         * config/i386/i386.md (include "bdver1.md"): Invoke the
6379         pipeline description for bdver1.
6380         (x86_sahf_1): Add "bdver1_decode" attribute.
6381         (*cmpfp_i_mixed): Likewise.
6382         (*cmpfp_i_sse): Likewise.
6383         (*cmpfp_i_i387): Likewise.
6384         (*cmpfp_iu_mixed): Likewise.
6385         (*cmpfp_iu_sse): Likewise.
6386         (*cmpfp_iu_387): Likewise.
6387         (*swap<mode>,*swap<mode>_1): Likewise.
6388         (fixuns_trunc<mode>hi2): Likewise.
6389         (fix_trunc<mode>si_sse): Likewise.
6390         (x86_fnstcw_1): Likewise.
6391         (x86_fldcw_1): Likewise.
6392         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
6393         (*floatsi<mode>2_vector_mixed): Likewise.
6394         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
6395         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
6396         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
6397         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
6398         (*floatsi<mode>2_vector_sse): Likewise.
6399         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
6400         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
6401         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
6402         (*mul<mode>3_1): Likewise.
6403         (*mulsi3_1_zext): Likewise.
6404         (*mulhi3_1): Likewise.
6405         (*mulqi3_1): Likewise.
6406         (*<u>mul<mode><dwi>3_1): Likewise.
6407         (*<u>mulqihi3_1): Likewise.
6408         (*<s>muldi3_highpart_1): Likewise.
6409         (*<s>mulsi3_highpart_1): Likewise.
6410         (*<s>mulsi3_highpart_zext): Likewise.
6411         (x86_64_shld): Likewise.
6412         (x86_shld): Likewise.
6413         (x86_64_shrd): Likewise.
6414         (x86_shrd): Likewise.
6415         (sqrtxf2): Likewise.
6416         (sqrt_extend<mode>xf2_i387): Likewise.
6417         (*sqrt<mode>2_sse): Likewise.
6418         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
6419         (sse_cvtsi2ssq): Likewise.
6420         (sse_cvtss2si): Likewise.
6421         (sse_cvtss2si_2): Likewise.
6422         (sse_cvtss2siq): Likewise.
6423         (sse_cvtss2siq_2): Likewise.
6424         (sse_cvttss2si): Likewise.
6425         (sse_cvttss2siq): Likewise.
6426         (sse2_cvtpi2pd): Likewise.
6427         (sse2_cvttpd2pi): Likewise.
6428         (sse2_cvtsi2sd): Likewise.
6429         (sse2_cvtsi2sdq): Likewise.
6430         (sse2_cvtsd2si): Likewise.
6431         (sse2_cvtsd2si_2): Likewise.
6432         (sse2_cvtsd2siq): Likewise.
6433         (sse2_cvtsd2siq_2): Likewise.
6434         (sse2_cvttsd2si): Likewise.
6435         (sse2_cvttsd2siq): Likewise.
6436         (*sse2_cvtpd2dq): Likewise.
6437         (*sse2_cvttpd2dq): Likewise.
6438         (sse2_cvtsd2ss): Likewise.
6439         (sse2_cvtss2sd): Likewise.
6440         (*sse2_cvtpd2ps): Likewise.
6441         (sse2_cvtps2pd): Likewise.
6442
6443 2010-10-22  Richard Guenther  <rguenther@suse.de>
6444
6445         PR middle-end/46137
6446         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
6447         remove the virtual operands if they are not needed.
6448
6449 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6450
6451         * config/i386/i386.c (processor_costs bdver1_cost): Update
6452         insn costs and architectural parameters for bdver1.
6453
6454 2010-10-22  Richard Guenther  <rguenther@suse.de>
6455
6456         * gimple.h (gimple_register_canonical_type): Declare.
6457         * gimple.c (gimple_canonical_types): New global hashtable.
6458         (struct gimple_type_leader_entry_s): New type.
6459         (gimple_type_leader): New global cache.
6460         (gimple_lookup_type_leader): New function.
6461         (gtc_visit): Query the proper cache.
6462         (gimple_types_compatible_p): Likewise.
6463         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
6464         (gimple_canonical_type_eq): New function.
6465         (gimple_register_canonical_type): Likewise.
6466         (print_gimple_types_stats): Adjust for gimple_canonical_types.
6467         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
6468         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
6469         gimple_types_compatible_p for LTO.
6470
6471 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6472
6473         PR target/46098
6474         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6475         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6476         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6477         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6478         (<sse>_movu<ssemodesuffix>): New expander.
6479         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6480         (avx_movdqu<avxmodesuffix>): New expander.
6481         (*sse2_movdqu): Rename from sse2_movdqu.
6482         (sse2_movdqu): New expander.
6483
6484 2010-10-22  Richard Guenther  <rguenther@suse.de>
6485
6486         PR tree-optimization/45720
6487         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
6488         Handle negative step.
6489         (vect_enhance_data_refs_alignment): Likewise.
6490         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
6491         (vect_create_cond_for_align_checks): Likewise.
6492         (vect_create_cond_for_alias_checks): Likewise.
6493
6494 2010-10-22  Ira Rosen  <irar@il.ibm.com>
6495
6496         PR tree-optimization/46126
6497         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
6498         vectorizable_shift in case of basic block vectorization.
6499
6500 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6501
6502         * target.h (enum opt_levels, struct default_options): New.
6503         * target.def (handle_ofast): Remove hook.
6504         (target_option.optimization): Change to
6505         target_option.optimization_table.
6506         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
6507         TARGET_OPTION_OPTIMIZATION_TABLE.
6508         (CAN_DEBUG_WITHOUT_FP): Remove.
6509         * doc/tm.texi: Regenerate.
6510         * opts.c (maybe_default_option, maybe_default_options,
6511         default_options_table): New.
6512         (default_options_optimization): Take extra parameters.  Don't
6513         assert that global_options and global_options_set are in use.  Use
6514         maybe_default_options.
6515         (decode_options): Pass extra parameters to
6516         default_options_optimization.
6517         * common.opt (falign-loops): Use value 0 with Var.
6518         (frerun-cse-after-loop, ftree-ter): Remove Init.
6519         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
6520         TARGET_OPTION_OPTIMIZATION): Remove.
6521         * targhooks.c (empty_optimization_table): New.
6522         * targhooks.h (empty_optimization_table): Declare.
6523         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
6524         * config/alpha/alpha.c (alpha_option_optimization_table,
6525         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6526         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
6527         * config/arm/arm.c (arm_option_optimization: Change to
6528         arm_option_optimization_table.
6529         (TARGET_OPTION_OPTIMIZATION): Change to
6530         TARGET_OPTION_OPTIMIZATION_TABLE.
6531         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
6532         * config/avr/avr.c (avr_option_optimization_table,
6533         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6534         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
6535         * config/cris/cris.c (cris_option_optimization): Change to
6536         cris_option_optimization_table.
6537         (TARGET_OPTION_OPTIMIZATION): Change to
6538         TARGET_OPTION_OPTIMIZATION_TABLE.
6539         * config/crx/crx.c (crx_option_optimization): Change to
6540         crx_option_optimization_table.
6541         (TARGET_OPTION_OPTIMIZATION): Change to
6542         TARGET_OPTION_OPTIMIZATION_TABLE.
6543         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6544         * config/fr30/fr30.c (fr30_option_optimization_table,
6545         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6546         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
6547         * config/frv/frv.c (frv_option_optimization_table,
6548         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6549         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
6550         * config/h8300/h8300.c (h8300_option_optimization): Change to
6551         h8300_option_optimization_table.
6552         (TARGET_OPTION_OPTIMIZATION): Change to
6553         TARGET_OPTION_OPTIMIZATION_TABLE.
6554         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6555         * config/i386/i386.c (ix86_option_optimization): Change to
6556         ix86_option_optimization_table.
6557         (TARGET_OPTION_OPTIMIZATION): Change to
6558         TARGET_OPTION_OPTIMIZATION_TABLE.
6559         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6560         as initializer.
6561         * config/ia64/ia64.c (ia64_option_optimization): Change to
6562         ia64_option_optimization_table.
6563         (TARGET_OPTION_OPTIMIZATION): Change to
6564         TARGET_OPTION_OPTIMIZATION_TABLE.
6565         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
6566         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
6567         initializer.
6568         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6569         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6570         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6571         * config/lm32/lm32.c (lm32_option_optimization_table,
6572         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6573         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
6574         * config/m32r/m32r.c (m32r_option_optimization): Change to
6575         m32r_option_optimization_table.
6576         (TARGET_OPTION_OPTIMIZATION): Change to
6577         TARGET_OPTION_OPTIMIZATION_TABLE.
6578         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
6579         CAN_DEBUG_WITHOUT_FP): Remove.
6580         * config/mcore/mcore.c (mcore_option_optimization): Change to
6581         mcore_option_optimization_table.
6582         (TARGET_OPTION_OPTIMIZATION): Change to
6583         TARGET_OPTION_OPTIMIZATION_TABLE.
6584         * config/mep/mep.c (mep_option_optimization): Change to
6585         mep_option_optimization_table.
6586         (TARGET_OPTION_OPTIMIZATION): Change to
6587         TARGET_OPTION_OPTIMIZATION_TABLE.
6588         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
6589         * config/microblaze/microblaze.c
6590         (microblaze_option_optimization_table,
6591         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6592         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
6593         * config/mips/mips.c (mips_option_optimization_table,
6594         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6595         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
6596         * config/mmix/mmix.c (mmix_option_optimization): Change to
6597         mmix_option_optimization_table.
6598         (TARGET_OPTION_OPTIMIZATION): Change to
6599         TARGET_OPTION_OPTIMIZATION_TABLE.
6600         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
6601         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6602         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6603         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6604         * config/pa/pa.c (pa_option_optimization_table,
6605         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6606         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6607         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
6608         pdp11_option_optimization_table.
6609         (TARGET_OPTION_OPTIMIZATION): Change to
6610         TARGET_OPTION_OPTIMIZATION_TABLE.
6611         * config/picochip/picochip.c (picochip_option_optimization_table,
6612         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6613         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
6614         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
6615         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6616         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6617         * config/rx/rx.c (rx_option_optimization_table,
6618         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6619         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6620         * config/s390/s390.c (s390_option_optimization): Change to
6621         s390_option_optimization_table.
6622         (s390_option_override): Update comment.
6623         (TARGET_OPTION_OPTIMIZATION): Change to
6624         TARGET_OPTION_OPTIMIZATION_TABLE.
6625         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
6626         * config/score/score.c (score_option_optimization_table,
6627         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6628         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
6629         * config/sh/sh.c (sh_option_optimization): Change to
6630         sh_option_optimization_table.
6631         (TARGET_OPTION_OPTIMIZATION): Change to
6632         TARGET_OPTION_OPTIMIZATION_TABLE.
6633         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
6634         (sh_option_override, expand_block_move, multcosts, find_barrier,
6635         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
6636         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
6637         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
6638         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
6639         instead of TARGET_SMALLCODE.
6640         * config/sh/sh.opt (mspace): Make into an alias for -Os.
6641         * config/sparc/sparc.c (sparc_option_optimization_table,
6642         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6643         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
6644         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6645         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6646         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
6647         * config/v850/v850.c (v850_option_optimization): Change to
6648         v850_option_optimization_table.
6649         (TARGET_OPTION_OPTIMIZATION): Change to
6650         TARGET_OPTION_OPTIMIZATION_TABLE.
6651         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
6652         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
6653         xtensa_option_optimization_table.
6654         (TARGET_OPTION_OPTIMIZATION): Change to
6655         TARGET_OPTION_OPTIMIZATION_TABLE.
6656         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6657
6658 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
6659
6660         Based on the CFString implementation in FSF apple/trunk branch.
6661
6662         * target.def (objc_construct_string): New Hook.
6663         * doc/tm.texi (objc_construct_string): Document.
6664         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
6665         * config/t-darwin: Amend build rules for darwin.o.
6666         * config/darwin.opt: Add cfstrings flags.
6667         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
6668         (darwin_objc_construct_string): New.
6669         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
6670         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
6671         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
6672         (darwin_fold_builtin): Likewise.
6673         (darwin_build_constant_cfstring): Likewise.
6674         (darwin_objc_construct_string): Likewise.
6675         (darwin_cfstring_p): Likewise.
6676         (darwin_enter_string_into_cfstring_table): Likewise.
6677         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
6678         * config/darwin.c (darwin_running_cxx): New var.
6679         (machopic_select_section): Return cfstring_constant_object_section.
6680         (darwin_override_options): Set darwin_running_cxx.
6681         (add_builtin_field_decl): New.
6682         (darwin_init_cfstring_builtins): New.
6683         (darwin_build_constant_cfstring): New.
6684         (darwin_fold_builtin): New.
6685         (cfstring_hash): New.
6686         (cfstring_eq): New.
6687         (darwin_enter_string_into_cfstring_table): New.
6688         * config/darwin-sections.def (cfstring_constant_object_section): New.
6689         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
6690         (TARGET_OBJC_CONSTRUCT_STRING): Define.
6691
6692 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6693
6694         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
6695         TYPE_STUB_DECL instead of TREE_CHAIN.
6696         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
6697         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
6698         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
6699         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
6700         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
6701         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
6702         Likewise.
6703         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
6704
6705 2010-10-22  Jie Zhang  <jie@codesourcery.com>
6706
6707         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
6708         (copy_blkmode_from_reg): Likewise.
6709         (read_complex_part): Likewise.
6710         (expand_expr_real_1): Calculate packedp and pass it to
6711         extract_bit_field.
6712         * expr.h (extract_bit_field): Update declaration.
6713         * calls.c (store_unaligned_arguments_into_pseudos): Update call
6714         to extract_bit_field.
6715         * expmed.c (extract_fixed_bit_field): Update calls to
6716         extract_fixed_bit_field.
6717         (store_split_bit_field): Likewise.
6718         (extract_bit_field_1): Add new argument packedp.
6719         (extract_bit_field): Add new argument packedp.
6720         (extract_fixed_bit_field): Add new argument packedp and let
6721         packed attribute override volatile.
6722         * stmt.c (expand_return): Update call to extract_bit_field.
6723
6724 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6725
6726         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
6727
6728 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6729
6730         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
6731         of gcc_checking_assert.
6732         * sel-sched.c (code_motion_process_successors): Likewise.
6733
6734 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6735
6736         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
6737         when stopping because of a different locus on edge or insn.
6738         (try_optimize_cfg): Add comment.
6739         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
6740         block is a forwarder block, propagate locus on the edge.
6741         (cfg_layout_merge_blocks): Likewise.
6742
6743 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
6744
6745         PR target/45946
6746         * config/i386/i386.md (*pushti2): New insn pattern.
6747         (pushti2 splitter): New insn splitter.
6748         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
6749         DWI mode iterator.
6750
6751 2010-10-21  Paul Koning  <ni1d@arrl.net>
6752
6753         * config/pdp11/pdp11-protos.md (arith_operand,
6754         const_immediate_operand, expand_shift_operand,
6755         immediate15_operand): Delete
6756         * config/pdp11/pdp11.c: Ditto.
6757         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
6758         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6759         EXTRA_CONSTRAINT): Delete.
6760         * config/pdp11/pdp11.md (various): Use standard constraints
6761         instead of removed ones.
6762         * config/pdp11/constraints.md: New file.
6763         * config/pdp11/predicates.md: New file.
6764
6765 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
6766
6767         PR c/45834
6768         * alias.c (true_dependence_1): Remove obsolete check for QImode.
6769         (may_alias_p): Ditto.
6770
6771 2010-10-21  Martin Jambor  <mjambor@suse.cz>
6772
6773         PR tree-optimization/45875
6774         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
6775
6776 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6777
6778         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
6779         variables.
6780         (create_new_def_for): Likewise.
6781
6782 2010-10-21  Nick Clifton  <nickc@redhat.com>
6783
6784         * config/mn10300/mn10300.c: Fold code to 80-character width.
6785         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6786         MEM, CONST_INT and CONST_DOUBLE.
6787         (targetm): Move initialization to end of file.
6788         (print_operand): Rename to mn10300_print_operand.
6789         (print_operand_address): Rename to mn10300_print_operand_address.
6790         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
6791         (expand_prologue): Rename to mn10300_expand_prologue.
6792         (expand_epilogue): Rename to mn10300_expand_epilogue.
6793         (initial_offset): Rename to mn10300_initial_offset.
6794         (function_arg): Rename to mn10300_function_arg.
6795         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
6796         (symbolic_operand): Rename to mn10300_symbolic_operand.
6797         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
6798         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
6799         * config/mn10300/mn10300-protos.h: Update prototypes.
6800         * config/mn10300/mn10300.h: Fold code to 80-character width.
6801         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6802         MEM, CONST_INT and CONST_DOUBLE.
6803         (CPP_SPEC): Move to...
6804         (TARGET_CPU_CPP_BUILTINS): ... here.
6805         * config/mn10300/mn10300.md: Fold code to 80-character width.
6806         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6807         MEM, CONST_INT and CONST_DOUBLE.
6808
6809 2010-10-21  Ira Rosen  <irar@il.ibm.com>
6810
6811         PR tree-optimization/46049
6812         PR tree-optimization/46052
6813         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
6814         (vect_get_slp_defs): Add arguments.
6815         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
6816         operands to vect_get_slp_defs.
6817         (vectorizable_reduction): Fix comment, pass scalar operands to
6818         vect_get_slp_defs.
6819         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
6820         type to determine number of units in the created vector.
6821         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
6822         (vectorizable_conversion): Fix comment.
6823         (vectorizable_shift): New function.
6824         (vectorizable_operation): Move code that handles shifts to
6825         vectorizable_shift.
6826         (vectorizable_type_demotion): Fix comment, pass scalar operands to
6827         vect_get_slp_defs.
6828         (vectorizable_type_promotion, vectorizable_store): Likewise.
6829         (vectorizable_condition): Fix comment.
6830         (vect_analyze_stmt): Call vectorizable_shift.
6831         (vect_transform_stmt): Likewise.
6832         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
6833         Use it as the operand to create vectors for, except reduction
6834         initial definition and store.  Use operands type.
6835         (vect_get_slp_defs): Add new arguments.  Pass them to
6836          vect_get_constant_vectors.
6837
6838 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6839
6840         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
6841         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
6842         * cfghooks.c (fixup_reorder_chain): Likewise.
6843         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
6844         * cgraph.c (cgraph_add_thunk): Likewise.
6845         (cgraph_create_edge_1): Likewise.
6846         (cgraph_create_virtual_clone): Likewise.
6847         * ddg.c (add_cross_iteration_register_deps): Likewise.
6848         * dwarf2out.c (modified_type_die): Likewise.
6849         * emit-rtl.c (set_mem_alias_set): Likewise.
6850         * ggc-zone.c (zone_allocate_marks): Likewise.
6851         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
6852         * gimple.c (iterative_hash_gimple_type): Likewise.
6853         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
6854         (create_single_exit_edge): Likewise.
6855         * haifa-sched.c (choose_ready): Likewise.
6856         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6857         * passes.c (execute_todo): Likewise.
6858         * sched-ebb.c (begin_schedule_ready): Likewise.
6859         * sel-sched.c (code_motion_process_successors): Likewise.
6860         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
6861         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
6862         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
6863         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
6864         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
6865         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
6866         (ssa_conflicts_add): Likewise.
6867         * tree-ssa-copy.c (replace_exp): Likewise.
6868         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
6869         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
6870         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6871         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
6872         (compute_antic): Likewise.
6873         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
6874         (add_dependence): Likewise.
6875         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
6876         * tree-vrp.c (supports_overflow_infinity): Likewise.
6877         (make_overflow_infinity, negative_overflow_infinity): Likewise.
6878         (avoid_overflow_infinity, register_new_assert_for): Likewise.
6879         (process_assert_insertions_for): Likewise.
6880         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
6881         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
6882         (intersect_loc_chains, variable_merge_over_cur): Likewise.
6883
6884 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6885
6886         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
6887         * reload1.c (has_nonexceptional_receiver): Likewise.
6888         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
6889         (create_new_def_for): Likewise.
6890         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
6891         (merge_phi_nodes): Likewise.
6892         (has_abnormal_incoming_edge_p): Delete.
6893
6894 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
6897
6898 2010-10-21  Richard Guenther  <rguenther@suse.de>
6899             Michael Matz  <matz@suse.de>
6900
6901         PR tree-optimization/45764
6902         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6903         Adjust initial misalignment for negative DR_STEP.
6904         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
6905         do not have the same alignment over the whole iteration domain.
6906
6907 2010-10-21  Richard Guenther  <rguenther@suse.de>
6908
6909         PR tree-optimization/46111
6910         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
6911
6912 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6913
6914         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
6915
6916 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6917
6918         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
6919         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
6920
6921 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6922
6923         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
6924         signal_frame.
6925         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
6926
6927 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6928
6929         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
6930         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
6931
6932 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6933
6934         * basic-block.h (find_fallthru_edge): Define.
6935         * cfgcleanup.c (merge_blocks_move): Use it.
6936         (try_crossjump_bb): Likewise.
6937         * cfglayout.c (fixup_reorder_chains): Likewise.
6938         (fixup_fallthru_exit_predecessor): Likewise.
6939         * cfgrtl.c (rtl_split_edge): Likewise.
6940         (rtl_verify_flow_info): Likewise.
6941         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6942         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
6943         * ifcvt.c (block_fallthru): Likewise.
6944         * reload1.c (fixup_abnormal_edges): Likewise.
6945         * sched-ebb.c (being_schedule_ready): Likewise.
6946         (schedule_ebb): Likwise.
6947         * sched-rgn.c (find_single_block_region): Likewise.
6948         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
6949         * tree-complex.c (expand_complex_move): Likewise.
6950         * sched-int.h (find_fallthru_edge): Rename to...
6951         (find_fallthru_edge_from): ...this.
6952         * haifa-sched.c (find_fallthru_edge): Rename to...
6953         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
6954         (init_before_recovery): Call find_fallthru_edge_from.
6955         * sel-sched-ir.c (merge_fences): Likewise.
6956         * sel-sched.c (in_fallthru_bb_p): Likewise.
6957         (move_cond_jump): Likewise.
6958
6959 2010-10-20  Paul Koning  <ni1d@arrl.net>
6960
6961         * config/pdp11/pdp11.md (various): Fix conditions on a number of
6962         insn to check for target 11/40 or higher.
6963
6964 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6965
6966         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
6967         bool instead of a tree.
6968         (c_parser_objc_method_decl): Added bool argument.  Updated call to
6969         objc_build_method_signature.
6970         (c_parser_objc_method_definition): Do not call
6971         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
6972         c_parser_objc_method_decl and objc_start_method_definition.
6973         (c_parser_objc_methodproto): Do not call objc_set_method_type.
6974         Updated calls to c_parser_objc_method_type,
6975         c_parser_objc_method_decl and objc_add_method_declaration.
6976
6977 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
6978
6979         PR tree-optimization/45919
6980         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
6981         array members.
6982
6983         PR tree-optimization/46066
6984         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
6985         instead of gsi_last_bb.
6986
6987 2010-10-20  DJ Delorie  <dj@redhat.com>
6988
6989         * config/m32c/m32c.c (m32c_option_override): Always disable
6990         function-cse in 16-bit mode.  Indirect calls are always worse than
6991         direct calls as there is no 16-bit indirect call opcode.
6992         (m32c_override_options_after_change): New, likewise.
6993
6994 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6995
6996         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
6997         emitting the conditional move in the inner mode of the SUBREG.
6998
6999 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
7000
7001         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7002         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7003         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7004         (ia64_preferred_reload_class): Make static.  Change rclass argument
7005         and result types from enum reg_class to reg_class_t.
7006
7007 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
7008
7009         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7010         call for single operand expression.
7011
7012 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7013
7014         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7015         if there is a call statement to pure or const function in the block.
7016
7017 2010-10-20  Paul Koning  <pkoning@equallogic.com>
7018
7019         Fix several build errors for pdp11 target.
7020         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7021         (cbranchdf4): Conditional on TARGET_FPU.
7022         (movdf): Ditto; correct alternatives check.
7023         (movmemhi): Fix predicate and constraint.
7024         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7025
7026 2010-10-20  Richard Guenther  <rguenther@suse.de>
7027
7028         PR lto/45667
7029         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7030         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7031         (verify_gimple_assign_single): Disable ADDR_EXPR type check
7032         when in LTO.
7033
7034 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7035
7036         PR fortran/42169
7037         * ira-emit.c (store_can_be_removed_p): Return false instead of
7038         gcc_unreachable.
7039
7040 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
7041
7042         * fold-const.c (fold_binary_loc): New transformation.
7043
7044 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7045
7046         PR target/46085
7047         * config/i386/sse.md (reduc_splus_v8sf): Updated.
7048         (reduc_splus_v4df): Likewise.
7049
7050 2010-10-20  Richard Guenther  <rguenther@suse.de>
7051
7052         PR tree-optimization/45860
7053         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7054         conditional store replacement for non-register type stores.
7055
7056 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7057
7058         * stor-layout.c (skip_simple_constant_arithmetic): New function.
7059         (self_referential_size): Use it instead of skip_simple_arithmetic.
7060
7061 2010-10-20  Olivier Hainque  <hainque@adacore.com>
7062
7063         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7064         If the current function calls eh_return, claim live all registers
7065         that we need to check for liveness otherwise.
7066
7067 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7068
7069         * c-decl.c (c_write_global_declarations): Call
7070         objc_write_global_declarations when compiling Objective-C.
7071         * c-lang.c (finish_file): Removed.
7072
7073 2010-10-19  DJ Delorie  <dj@redhat.com>
7074
7075         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7076         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7077         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7078         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7079         * doc/tm.texi: Regenerate.
7080         * targhooks.h (default_label_align_after_barrier_max_skip,
7081         default_loop_align_max_skip, default_label_align_max_skip,
7082         default_jump_align_max_skip): Declare.
7083         * target.def (label_align_after_barrier_max_skip): New.
7084         (loop_align_max_skip): New.
7085         (label_align_max_skip): New.
7086         (jump_align_max_skip): New.
7087         * system.h (poison): Add those macros to the list.
7088         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
7089         (LOOP_ALIGN_MAX_SKIP): Remove.
7090         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
7091         (JUMP_ALIGN_MAX_SKIP): Remove.
7092         (default_label_align_after_barrier_max_skip): New.
7093         (default_loop_align_max_skip): New.
7094         (default_label_align_max_skip): New.
7095         (default_jump_align_max_skip): New.
7096         (compute_alignments): Use the new hooks.
7097         (shorten_branches): Likewise.
7098
7099 2010-10-19  Richard Henderson  <rth@redhat.com>
7100
7101         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
7102         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
7103         (fma4i_fmadd_<mode>): New.
7104         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
7105         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
7106         standard fma patterns.
7107         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
7108         enable for FMA.
7109         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7110         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7111         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
7112
7113 2010-10-19  Paul Koning  <pkoning@equallogic.com>
7114
7115         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
7116         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
7117
7118 2010-10-19  Richard Henderson  <rth@redhat.com>
7119
7120         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
7121         (fmadf4, *fmsdf4, *nfmadf4): New.
7122         (fmaxf4, *fmsxf4, *nfmaxf4): New.
7123
7124 2010-10-19  Michael Eager  <eager@eagercon.com>
7125
7126         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
7127         Use sjlj unwind info for exceptions.
7128
7129 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
7130
7131         PR fortran/43414
7132         * dwarf2out.c (add_calling_convention_attribute): Flag main
7133         Fortran subroutine with DW_AT_main_subprogram.
7134
7135 2010-10-19  Nick Clifton  <nickc@redhat.com>
7136
7137         * config/rx/rx.c (rx_function_value): Small integer types are
7138         promoted to SImode.
7139         (rx_promote_function_mode): New function.
7140         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7141
7142 2010-10-19  Nick Clifton  <nickc@redhat.com>
7143
7144         * config/mep/mep.c (mep_print_operand): Use
7145         targetm.strip_name_encoding.
7146         (mep_output_aligned_common): Likewise.
7147
7148 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
7149
7150         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
7151
7152 2010-10-18  Richard Henderson  <rth@redhat.com>
7153
7154         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
7155         (fma (neg a) (neg b) c) and (fma a (neg b) c).
7156
7157 2010-10-18  Richard Henderson  <rth@redhat.com>
7158
7159         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
7160         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
7161         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
7162         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
7163         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
7164         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
7165         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
7166         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
7167         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
7168         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
7169         (bdesc_multi_arg): Remove the corresponding builtins.
7170         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
7171         (UNSPEC_FMA4_FMSUBADD): Remove.
7172         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
7173         * config/i386/sse.md (FMA4MODEF4): Remove.
7174         (FMAMODE): Add.
7175         (fma<mode>4): New expander.
7176         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
7177         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
7178         (*fma4i_fmsub_<mode>): Similarly.
7179         (*fma4i_fnmadd_<mode>): Similarly.
7180         (*fma4i_fnmsub_<mode>): Similarly.
7181         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
7182         with the first operand.
7183         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
7184         of explicit arithmetic.  Macroize with AVXMODEF2P.
7185         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
7186         (xop_frcz<mode>2): Macroize with FMAMODE.
7187         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
7188         the first operand.
7189         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
7190         extra negations.
7191         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
7192         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
7193         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
7194         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
7195         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
7196         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
7197         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
7198         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
7199
7200 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
7201
7202         PR rtl-optimization/45966
7203         * combine.c (try_combine): If added_sets_2, deal with the case
7204         where i0 feeds i1 and i1 feeds i2.
7205
7206 2010-10-18  Jan Hubicka  <jh@suse.cz>
7207
7208         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
7209         preserve flags before trying to guess on visibility.
7210         (varpool_externally_visible_p): New function.
7211         (function_and_variable_visibility): Use it.
7212
7213 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7214
7215         Implemented parsing @synthesize and @dynamic for Objective-C.
7216         * c-parser.c (c_parser_external_declaration): Recognize
7217         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7218         (c_parser_objc_at_synthesize_declaration): New.
7219         (c_parser_objc_at_dynamic_declaration): New.
7220
7221 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7222
7223         * c-parser.c (c_parser_objc_class_declaration): After finding an
7224         error, parse the whole declaration then reset parser->error.
7225
7226 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7227
7228         PR target/46041
7229         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
7230         * builtins.c (mode_has_fma): Ditto.
7231
7232 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
7233
7234         PR target/36898
7235         PR middle-end/43760
7236         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
7237
7238 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
7239
7240         * config/i386/i386.c (ix86_option_override_internal): Define and
7241         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
7242         default.
7243         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7244         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
7245
7246 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7247
7248         Merge from 'apple/trunk' branch on FSF servers.
7249         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
7250         following Objective-C change:
7251
7252         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
7253
7254         Radar 4301047
7255         * c-parse.in (objc_quals): Build objc qualifier list same way
7256         as gcc-3.3
7257
7258 2010-10-18  Jan Hubicka  <jh@suse.cz>
7259
7260         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
7261         function_and_variable_visibility): Revert accidental commit.
7262
7263 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7264
7265         Merge from 'apple/trunk' branch on FSF servers.
7266         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
7267         the following Objective-C change:
7268
7269         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
7270
7271         Radar 4204796
7272         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
7273         'volatilized' type used in a typeof operator.
7274
7275 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
7276
7277         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
7278         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
7279         rewrite modelled on gimple_purge_dead_eh_edges.
7280         (gimple_purge_all_dead_abnormal_call_edges): New function.
7281         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
7282         directly instead of through gimple_purge_dead_abnormal_call_edges.
7283         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
7284         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
7285         removed AB side-effects from one of its statements.
7286         (init_pre): Initialize need_ab_cleanup.
7287         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
7288         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
7289
7290 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7291
7292         PR c/46015
7293         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
7294         on computed goto argument.
7295
7296 2010-10-18  Richard Guenther  <rguenther@suse.de>
7297
7298         PR tree-optimization/45967
7299         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
7300         (could_have_pointers): Likewise.
7301         (handle_rhs_call, handle_const_call, handle_pure_call,
7302         find_func_aliases, intra_create_variable_infos): Remove calls to them.
7303         (struct fieldoff): Add must_have_pointers field.
7304         (type_must_have_pointers): New function.
7305         (field_must_have_pointers): Likewise.
7306         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
7307         Adjust field merging.
7308         (create_function_info_for): May-have-pointers of varinfo is
7309         almost always true.
7310         (create_variable_info_for_1): Likewise.
7311
7312 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
7313
7314         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
7315         of operands to vec_concat.
7316
7317 2010-10-18  Richard Guenther  <rguenther@suse.de>
7318
7319         PR lto/44950
7320         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
7321         also clear references to entries of it.
7322
7323 2010-10-18  Andi Kleen  <ak@linux.intel.com>
7324
7325         PR other/43448
7326         * gccbug.in: Remove.
7327         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
7328         (doc, distclean, install-common): Remove reference to gccbug.
7329         * configure: Regenerate.
7330         * configure.ac (all_outputs): Remove gccbug.
7331         * doc/configfiles.texi: Remove references to gccbug.
7332         * doc/sourcebuild.texi: Dito.
7333
7334 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7335
7336         PR middle-end/46019
7337         * fold-const.c (fold_binary_loc): If integer_pow2p has
7338         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
7339
7340 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7341             Jeremie Salvucci  <jeremie.salvucci@free.fr>
7342
7343         * gengtype.c (verbosity_level): Add variable.
7344         (set_gc_used): Count variables for verbosity.
7345         (close_output_files): Backing up files, counting written ones
7346         verbosily.
7347         (write_types): Count emitted functions for verbosity. Added
7348         debug messages.
7349         (write_enum_defn): Count structures for verbosity. Added debug
7350         messages.
7351         (gengtype_long_options): Add "verbose" & "backupdir".
7352         (print_usage): Ditto.
7353         (main): Verbose display of parsed files.
7354
7355         * gengtype.h (verbosity_level): Add declaration.
7356
7357 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7358
7359         * gengtype.c (parse_program_options): Add allocation of
7360         plugin_files, and correct test on nb_plugin_files.
7361
7362 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7363
7364         Merge from 'apple/trunk' branch on FSF servers.
7365
7366         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
7367
7368         Radar 4133425
7369         * c-decl.c (undeclared_variable): Issue diagnostic on
7370         private 'ivar' access.
7371
7372 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7373
7374         PR target/46051
7375         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
7376         generated sequence to match *avx_vperm2f128<mode>_nozero.
7377         (vec_interleave_lowv4df): Ditto.
7378         (vec_interleave_highv8sf): Ditto.
7379         (vec_interleave_lowv8sf): Ditto.
7380
7381 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
7382
7383         * libgcov.c (create_file_directory): Enable it for win32 case.
7384         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
7385         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
7386         (GCOV_PREFIX_SKIP): Likewise.
7387
7388 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7389
7390         * doc/objc.texi (GNU Objective-C runtime API): New section.
7391         (Modern GNU Objective-C runtime API): New section.
7392         (Traditional GNU Objective-C runtime API): New section.
7393         (Executing code before main): Mention that this section is
7394         specific to the GNU Objective-C runtime.
7395         (Garbage Collection): Same.
7396
7397 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7398
7399         * c-parser.c (c_parser_for_statement): Move initialization of
7400         cond and incr before if.
7401
7402 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
7403
7404         * target.def (preferred_output_reload_class): New hook.
7405         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
7406         * doc/tm.texi: Regenerate.
7407         * targhooks.c (default_preferred_output_reload_class): New function.
7408         * targhooks.h (default_preferred_output_reload_class): Declare.
7409         * reload.c (find_dummy_reload): Change rclass argument type from
7410         enum reg_class to reg_class_t. Change this_alternative array type
7411         from enum reg_class to reg_class_t.
7412         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7413         (push_reload): Change preferred_class variable type to reg_class_t.
7414         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7415         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
7416         argument type from enum reg_class to reg_class_t. Use
7417         HARD_REGISTER_NUM_P predicate.
7418         * recog.h (reg_fits_class_p): Update prototype.
7419
7420         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7421         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
7422         Remove.
7423         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
7424         static. Change regclass argument and result types from enum reg_class
7425         to reg_class_t.
7426         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7427
7428 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
7429
7430         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
7431         visibility enum, and handle @package.
7432
7433 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7434
7435         * doc/objc.texi (What you can and what you cannot do in +load):
7436         Document that sending messages to constant string objects in +load
7437         is not guaranteed to work.
7438
7439 2010-10-16  Jan Hubicka  <jh@suse.cz>
7440
7441         PR middle-end/44206
7442         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
7443         existence of refrences before removing the function.
7444
7445 2010-10-16  Jan Hubicka  <jh@suse.cz>
7446
7447         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
7448         only_called_at_startup and only_called_at_exit.
7449         (cgraph_propagate_frequency): Compute only_called_at_startup and
7450         only_called_at_exit.
7451         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
7452         only_called_at_exit.
7453         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
7454         flags.
7455         * predict.c (compute_function_frequency): Initialize the new flags.
7456
7457 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
7460         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
7461         on the bounds of its domain.
7462         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
7463
7464 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
7465
7466         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
7467         * config/avr/avr-protos.h (preferred_reload_class): Remove.
7468         * config/avr/avr.c (preferred_reload_class): Remove.
7469         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
7470         * config/pa/pa.c (emit_move_sequence): Update comment
7471         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
7472         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
7473         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
7474         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
7475         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
7476         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
7477         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
7478         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
7479         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
7480         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
7481         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
7482         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
7483         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
7484
7485 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7486
7487         * opts.c (set_fast_math_flags,
7488         set_unsafe_math_optimizations_flags): Make static.
7489         * toplev.h (set_fast_math_flags,
7490         set_unsafe_math_optimizations_flags): Remove prototypes.
7491
7492 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7493
7494         * config/arm/arm.c (arm_option_optimization): Set
7495         flag_section_anchors to 1 not 2.
7496         * config/i386/i386.c (ix86_option_override_internal): Check
7497         global_options_set.x_flag_zee and
7498         global_options_set.x_flag_omit_frame_pointer.
7499         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
7500         flag_zee to 2.
7501         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7502         global_options_set.x_flag_omit_frame_pointer.
7503         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
7504         opts->x_flag_section_anchors to 1 not 2.
7505         * config/sh/sh.c (sh_option_optimization): Don't set
7506         flag_schedule_insns to 2.
7507         (sh_option_override): Check
7508         global_options_set.x_flag_schedule_insns.
7509         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
7510
7511 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
7512
7513         * configure.ac: Make sure inhibit_libc remains false for mingw targets
7514         as cross.
7515         * configure: Regenerated.
7516
7517 2010-10-15  Xinliang David Li  <davidxl@google.com>
7518
7519         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
7520         function.
7521         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
7522         into a recursive function.
7523
7524 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
7525
7526         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
7527         (*movdfcc_1): ditto.
7528
7529 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7530
7531         * target.def (target_option.init_struct): New hook.
7532         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
7533         * doc/tm.texi: Regenerate.
7534         * hooks.c (hook_void_gcc_optionsp): New.
7535         * hooks.h (hook_void_gcc_optionsp): Declare.
7536         * langhooks-def.h (lhd_init_options_struct): Remove.
7537         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
7538         * langhooks.c (lhd_init_options_struct): Remove.
7539         * opts.c (init_options_struct): Also call
7540         targetm.target_option.init_struct.
7541         * config/i386/i386.c (ix86_option_init_struct,
7542         TARGET_OPTION_INIT_STRUCT): New.
7543         (ix86_option_optimization): Move some settings to
7544         ix86_option_init_struct.
7545         * config/pdp11/pdp11.c (pdp11_option_init_struct,
7546         TARGET_OPTION_INIT_STRUCT): New.
7547         (pdp11_option_optimization): Move some settings to
7548         pdp11_option_init_struct.
7549         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
7550         rs6000_option_init_struct.  Use options structure pointer.
7551         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7552         * config/s390/s390.c (s390_option_init_struct,
7553         TARGET_OPTION_INIT_STRUCT): New.
7554         (s390_option_optimization): Don't set
7555         flag_asynchronous_unwind_tables here.
7556         * config/sh/sh.c (sh_option_init_struct,
7557         TARGET_OPTION_INIT_STRUCT): New.
7558         (sh_option_optimization): Don't set flag_finite_math_only here.
7559         * config/spu/spu.c (spu_option_optimization): Replace by
7560         spu_option_optimization.  Use options structure pointer.
7561         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7562
7563 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7564
7565         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
7566
7567         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
7568         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
7569         (Standard names): Document fma.
7570
7571         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
7572         __FP_FAST_FMAF, __FP_FAST_FMAL.
7573
7574         * builitns.c (expand_builtin_mathfn_ternary): New function for
7575         expanding ternary math functions, like fma.
7576         (expand_builtin): Call it for the fma builtins.
7577
7578         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
7579         ops at present.
7580
7581         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
7582         vectorizable functions to support vectorizing fma.
7583
7584         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7585         Handle fma builtins.
7586
7587         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
7588         (UNSPEC_VSX_MSUB): Ditto.
7589         (UNSPEC_VSX_NMADD): Ditto.
7590         (UNSPEC_VSX_NMSUB): Ditto.
7591         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
7592         of UNSPEC. Renumber combiner patterns.
7593         (vsx_fmsub<mode>4*): Ditto.
7594         (vsx_fnmadd<mode>4*): Ditto.
7595         (vsx_fnmsub<mode>4*): Ditto.
7596
7597         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
7598         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
7599         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
7600         (altivec_vmaddfp_1): Ditto.
7601         (altivec_vmaddfp_2): Ditto.
7602         (atlivec_mulv4sf3): Ditto.
7603         (altivec_vnmsubfp): Ditto.
7604         (altivec_vnmsubfp_1): Ditto.
7605         (altivec_vnmsubfp_2): Ditto.
7606         (altivec_vnmsubfp_3): Delete.
7607
7608         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
7609         (fmasf4_fpr): Ditto.
7610         (fmssf4_fpr): Ditto.
7611         (fnmasf4_fpr): Ditto.
7612         (fnmssf4_fpr): Ditto.
7613         (fmadf4): Ditto.
7614         (fmadf4_fpr): Ditto.
7615         (fmsdf4_fpr): Ditto.
7616         (fnmadf4_fpr): Ditto.
7617         (fnmsdf4_fpr): Ditto.
7618
7619         * optabs.h (OTI_fma): Add fma optab.
7620         (fma_optab): Ditto.
7621
7622         * genopinit.c (optabs): Set fma optab.
7623
7624         * rtl.def (FMA): Add FMA rtl.
7625
7626         * tree.h (mode_has_fma): New function to return if MODE supports a
7627         fast multiply and add instruction.
7628         * builtins.c (mode_has_fma): Ditto.
7629
7630 2010-10-15  Jan Hubicka  <jh@suse.cz>
7631
7632         * lto-streamer-out.c (write_symbol): Use pointer set of seen
7633         objects instead of bitmap.
7634         (produce_symtab): Likewise; output defined symbols first.
7635
7636 2010-10-15  Jie Zhang  <jie@codesourcery.com>
7637
7638         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
7639         Option Summary and Index.
7640
7641 2010-10-15  Richard Guenther  <rguenther@suse.de>
7642
7643         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
7644         for automatic variables again.
7645
7646 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7647
7648         * doc/extend.texi (Variable Length): Don't refer to VLAs not
7649         conforming to C99.
7650
7651 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7652
7653         * config/rx/rx.c (rx_option_optimization): Change to
7654         rx_override_options_after_change.  Don't change
7655         flag_lto_compression_level.  Don't check for changes to whether
7656         FPU instructions can be used.  Check and set only
7657         flag_finite_math_only, not other fast-math flags.
7658         (rx_option_override): Call rx_override_options_after_change.
7659         (TARGET_OPTION_OPTIMIZATION): Remove.
7660         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7661
7662 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7663
7664         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
7665         disable section anchors for lang_hooks.name[4] != 'O'.
7666
7667 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7668
7669         * config/frv/frv.c (frv_option_optimization,
7670         TARGET_OPTION_OPTIMIZATION): Remove.
7671         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
7672
7673 2010-10-15  Michael Matz  <matz@suse.de>
7674
7675         * cgraphunit.c (clone_of_p): Define unconditionally.
7676
7677 2010-10-15  Richard Guenther  <rguenther@suse.de>
7678
7679         PR lto/45957
7680         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
7681
7682 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
7683
7684         * ifcvt.c (find_active_insn_before): New function.
7685         (find_active_insn_after): New function.
7686         (cond_exec_process_if_block): Use new functions to replace
7687         prev_active_insn() and next_active_insn().
7688
7689 2010-10-14  Yao Qi  <yao@codesourcery.com>
7690
7691         PR target/45447
7692         * config/arm/arm.c (arm_build_builtin_va_list): Assign
7693         va_list_name to TYPE_STUB_DECL (va_list_type).
7694
7695 2010-10-14  Jan Hubicka  <jh@suse.cz>
7696
7697         PR middle-end/45621
7698         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
7699         redirected to clone, be happy.
7700         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
7701         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
7702         former_clone_of unconditionally.
7703
7704 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7705
7706         Merge from FSF apple 'trunk' branch.
7707         2006 Fariborz Jahanian  <fjahanian@apple.com>
7708
7709         Radars 4436866, 4505126, 4506903, 4517826
7710         * c-parser.c (c_parser, objc_property_attr_context) New flag.
7711         (c_lex_one_token): Handle property attributes.
7712         (c_parser_external_declaration): Handle @property.
7713         (c_parser_declaration_or_fndef): Warn on invalid attributes before
7714         @alias, @class, @end and @property objc keywords.
7715         (c_parser_objc_methodprotolist): Handle @property.
7716         (c_parser_objc_property_attrlist): New.
7717         (c_parser_objc_at_property): New.
7718         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
7719         (build_modify_expr): Likewise.
7720
7721 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7722
7723         PR tree-optimization/46008
7724         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
7725
7726 2010-10-14  Richard Guenther  <rguenther@suse.de>
7727
7728         PR tree-optimization/44913
7729         * tree-data-ref.c (disjoint_objects_p): Remove.
7730         (dr_may_alias_p): Simplify.  Only hand the base object to
7731         the alias-oracle.
7732         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7733         some more trees, bail out instead of asserting.
7734         (ptr_derefs_may_alias_p): Likewise.  Export.
7735         (refs_may_alias_p_1): Handle STRING_CSTs.
7736         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
7737
7738 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7739
7740         PR c/45969
7741         * c-typeck.c (build_binary_op): Don't try to compute a semantic
7742         type with excess precision for boolean operations.
7743
7744 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7745             Basile Starynkevitch  <basile@starynkevitch.net>
7746
7747         * gengtype.c:  Include getopt.h and version.h.
7748
7749         (lang_bitmap, struct outf, outf_p)
7750         (get_output_file_with_visibility, oprintf): Definitions moved to
7751         gengtype.h
7752         (output_files, header_file, srcdir, srcdir_len, this_file)
7753         (do_dump): No more static variables.
7754         (do_debug): New.
7755         (dbgprint_count_type_at): Added new function.
7756         (gengtype_long_options): New.
7757         (print_usage, print_version, parse_program_options): New.
7758         (main): Call parse_program_options, and removed old option
7759         handling code.  Added some debug output.
7760
7761         * gengtype.h:  Updated copyright year.
7762         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
7763         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
7764         Moved from gengtype.c to here.
7765         (do_debug, read_state_filename, write_state_filename): New variables.
7766         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
7767
7768         * Makefile.in:
7769         (REVISION): Always defined.
7770         (version.o): Removed ifdef REVISION_c.
7771         (s-gtype): Pass arguments to build/gengtype program.
7772         (build/version.o): Added building rule.
7773         (build/gengtype$(build_exeext)): Added build/version.o.
7774
7775 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7776
7777         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
7778         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
7779         __strong macros.
7780
7781 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7782
7783         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
7784         may_trap_or_fault_p instead of may_trap_p predicate.
7785         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
7786         (substitute_placeholder_in_expr): Likewise.
7787         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
7788         flag on MEM_REF nodes.
7789         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
7790         flags on INDIRECT_REF nodes.
7791
7792 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
7793
7794         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
7795         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
7796         (arm*-*-eabi*) <tm_file>: Likewise.
7797         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
7798         (frv-*-*linux*) <tm_file>: Likewise.
7799         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
7800         and associated helper macros.
7801         * config/frv/frv-abi.h: Delete.
7802
7803 2010-10-14  Richard Guenther  <rguenther@suse.de>
7804
7805         PR lto/44561
7806         * tree.def (NULLPTR_TYPE): New tree code.
7807         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
7808         * dwarf2out.c (is_base_type): Likewise.
7809         (gen_type_die_with_usage): Likewise.
7810         * sdbout.c (plain_type_1): Likewise.
7811         * tree.c (build_int_cst_wide): Likewise.
7812         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
7813
7814 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7815
7816         * params.c (params_finished): New.
7817         (add_params): Assert !params_finished.
7818         (finish_params): New.
7819         (set_param_value_internal): Take params and params_set
7820         parameters.  Assert params_finished.
7821         (set_param_value, maybe_set_param_value): Take params and
7822         params_set parameters.  Update calls to set_param_value_internal.
7823         (set_default_param_value): Assert !params_finished.  Don't use
7824         set_param_value_internal.
7825         (default_param_value, init_param_values): New.
7826         * params.h (struct param_info): Change value to default_value.
7827         Remove set.
7828         (set_param_value, maybe_set_param_value): Add params and
7829         params_set parameters.
7830         (PARAM_VALUE): Get parameters from global_options.
7831         (PARAM_SET_P): Remove.
7832         (finish_params, default_param_value, init_param_values): New.
7833         * common.opt (param_values): New Variable.
7834         * config/arm/arm.c (arm_option_override): Pass extra arguments to
7835         maybe_set_param_value.
7836         * config/i386/i386.c (ix86_option_override_internal): Pass extra
7837         arguments to maybe_set_param_value.
7838         * config/picochip/picochip.c (picochip_option_override): Pass
7839         extra arguments to maybe_set_param_value.
7840         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
7841         extra arguments to maybe_set_param_value.
7842         * config/s390/s390.c (s390_option_override): Use
7843         maybe_set_param_value instead of set_param_value.  Pass extra
7844         arguments to maybe_set_param_value.
7845         * config/sparc/sparc.c (sparc_option_override): Pass extra
7846         arguments to maybe_set_param_value.
7847         * config/spu/spu.c (spu_option_override): Pass extra arguments to
7848         maybe_set_param_value.
7849         * opts.c (handle_param): Take opts and opts_set parameters.
7850         Update call to set_param_value.
7851         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
7852         initial_loop_invariant_max_bbs_in_loop): Remove.
7853         (init_options_once): Don't set them.
7854         (init_options_struct): Initialize parameters structures.
7855         (default_options_optimization): Use default_param_value when
7856         restoring defaults.  Update calls to maybe_set_param_value.
7857         (finish_options): Update calls to maybe_set_param_value.
7858         (common_handle_option): Update calls to handle_param and
7859         set_param_value.
7860         * toplev.c (DEFPARAM): Update definition for changes to param_info.
7861         (general_init): Call finish_params.
7862
7863 2010-10-14  Nick Clifton  <nickc@redhat.com>
7864
7865         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
7866         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
7867         (FIRST_PSEUDO_REGISTER): Increase by one.
7868         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
7869         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
7870         (MODES_TIEABLE): Call mn10300_modes_tieable.
7871         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
7872         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
7873         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
7874         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
7875         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
7876         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
7877         (mn10300_cc_status_mdep): Delete.
7878         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
7879         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
7880         the combine-stack-adjust pass.
7881         (print_operand): Use the mode of the comparison operation to
7882         select the comparison suffix.
7883         (notice_update_cc): Delete.
7884         (mn10300_secondary_reload_class): Remove test for stack pointer
7885         based arithmetic.
7886         (output_tst): Rename to mn10300_output_cmp.
7887         (impossible_plus_operand): Move into predicates.md.
7888         (mn10300_legitimize_address): Make static.
7889         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
7890         constant pic operands.
7891         (mn10300_legitimate_constant_p): New function.
7892         (mn10300_case_values_threshold): Make static.
7893         (mn10300_hard_regno_mode_ok): New function.
7894         (mn10300_modes_tieable): New function.
7895         (mn10300_select_cc_mode): New function.
7896         * config/mn10300/predicates.md (impossible_plus_operand): Define.
7897         * config/mn10300/mn10300-protos.h: Tidy.
7898         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
7899         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
7900         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
7901         with clobbers or sets of CC_REG.
7902         (CC_REG): Define.
7903         (mov*): Remove use of CLR instruction.
7904         (cbranch_si4_<code>): New pattern/split.
7905         (integer_conditional_branch): New pattern.
7906         (cbranch_sf4_<code>): New pattern/split.
7907         (float_conditional_branch): New pattern.
7908         (casesi): Use addsi3 pattern instead of movsi pattern to add and
7909         move a value at the same time.
7910         (cc0 peepholes): Remove.
7911
7912 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7913
7914         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
7915         on RTX_FRAME_RELATED_P insns and the insn to which
7916         NOTE_INSN_EPILOGUE_BEG is attached.
7917         * sched-vis.c (print_value): Allow NULL value.
7918
7919 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7920
7921         PR rtl-optimization/45570
7922         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
7923         assert that we are pipelining outer loops.  Allow returning
7924         zero predecessors.
7925
7926 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7927
7928         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
7929         (tidy_control_flow): Tidy vertical space.
7930         (sel_remove_bb): New variable idx.  Use it to remember the basic
7931         block index before deleting the block.
7932         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
7933         (sel_merge_blocks): ... here.
7934         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
7935
7936 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7937
7938         * cse.c (is_dead_reg): Change into inline function that is not
7939         called through for_each_rtx.
7940         (set_live_p): Adjust caller.
7941         (insn_live_p): Don't reset DEBUG_INSNs here.
7942         (struct dead_debug_insn_data): New data.
7943         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
7944         (delete_trivially_dead_insns): If there is just one setter for the
7945         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
7946         and add DEBUG_INSN for it right before the removed setter and
7947         use the DEBUG_EXPR instead of the dead pseudo.
7948
7949 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
7950
7951         * et-forest.c (et_nca): Return NULL immediately when
7952         the dominance forest has disjoint components.
7953
7954 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
7955
7956         * ira.c (setup_class_hard_regs): Fix typo in indexing
7957         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
7958
7959 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
7960
7961         * graph.c (inbb): New variable.
7962         (start_bb): Set inbb to 1 if output is inside of a building block.
7963         (end_bb): Check if output is inside of a building block.
7964
7965 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7966
7967         PR rtl-optimization/45912
7968         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
7969         regno of registers instead of their index to compute the alignment.
7970
7971 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
7972
7973         * config/i386/i386.c (ix86_build_const_vector): Check vector
7974         mode instead of scalar mode.
7975         (ix86_build_signbit_mask): Likewise.
7976         (ix86_expand_fp_absneg_operator): Updated.
7977         (ix86_expand_copysign): Likewise.
7978         (ix86_expand_int_vcond): Likewise.
7979         (ix86_emit_swdivsf): Likewise.
7980         (ix86_sse_copysign_to_positive): Likewise.
7981         (ix86_expand_sse_fabs): Likewise.
7982         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
7983         * config/i386/sse.md (copysign<mode>3): Likewise.
7984         (sse2_cvtudq2ps): Likewise.
7985         (vec_unpacku_float_hi_v4si): Likewise.
7986         (vec_unpacku_float_lo_v4si): Likewise.
7987
7988         * config/i386/i386.c (ix86_builtins): Add
7989         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
7990         (bdesc_args): Likewise.
7991         (ix86_builtin_vectorized_function): Support
7992         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
7993         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
7994         and IX86_BUILTIN_CVTPS2DQ256.
7995         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
7996
7997         * config/i386/sse.md (STORENT_MODE): New.
7998         (VEC_FLOAT_MODE): Likewise.
7999         (VEC_EXTRACT_MODE): Likewise.
8000         (*avx_cvtdq2pd256_2): Likewise.
8001         (vec_pack_trunc_v4df): Likewise.
8002         (vec_interleave_highv8sf): Likewise.
8003         (vec_interleave_lowv8sf): Likewise.
8004         (storent<mode>): Macroized.
8005         (<code><mode>2: absneg): Likewise.
8006         (copysign<mode>3): Likewise.
8007         (vec_extract<mode>): Likewise.
8008
8009         PR target/44180
8010         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8011         for V8SFmode.
8012
8013 2010-10-13  Richard Guenther  <rguenther@suse.de>
8014             H.J. Lu  <hongjiu.lu@intel.com>
8015
8016         * config/i386/sse.md (reduc_splus_v8sf): Add.
8017         (reduc_splus_v4df): Likewise.
8018         (vec_unpacks_hi_v8sf): Likewise.
8019         (vec_unpacks_lo_v8sf): Likewise.
8020         (*avx_cvtps2pd256_2): Likewise.
8021         (vec_unpacks_float_hi_v8si): Likewise.
8022         (vec_unpacks_float_lo_v8si): Likewise.
8023         (vec_interleave_highv4df): Likewise.
8024         (vec_interleave_lowv4df): Likewise.
8025
8026 2010-10-13  Richard Guenther  <rguenther@suse.de>
8027
8028         PR objc/45878
8029         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8030         alone if there are no virtual methods.
8031
8032 2010-10-13  Richard Henderson  <rth@redhat.com>
8033
8034         * expr.c (build_personality_function): Take parameter LANG instead
8035         of parameter NAME.  Build the name based on the lang prefix and the
8036         unwind method in use.
8037         * tree.c (lhd_gcc_personality): Update call to
8038         build_personality_function.
8039
8040 2010-10-13  Richard Guenther  <rguenther@suse.de>
8041
8042         PR objc/45878
8043         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8044
8045 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8046
8047         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8048         Canonicalize input operands of ASM_OPERANDS insns.
8049
8050 2010-10-13  Richard Guenther  <rguenther@suse.de>
8051
8052         PR tree-optimization/45788
8053         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8054         EH update until fixup-cfg.
8055
8056 2010-10-13  Julian Brown  <julian@codesourcery.com>
8057
8058         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8059         from CORE_REGS and GENERAL_REGS classes.
8060         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8061         final constraint for register preferencing.
8062
8063 2010-10-13  Richard Guenther  <rguenther@suse.de>
8064
8065         PR tree-optimization/45970
8066         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8067         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8068         (stmt_kills_ref_p): Likewise.
8069         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8070
8071 2010-10-13  Richard Guenther  <rguenther@suse.de>
8072
8073         PR tree-optimization/45982
8074         * tree-ssa-structalias.c (make_constraints_to): New function.
8075         (make_constraint_to): Implement in terms of make_constraints_to.
8076         (find_func_aliases): Properly make return values of pure/const
8077         functions escape if they assign to sth that is not a pointer.
8078
8079 2010-10-13  Richard Guenther  <rguenther@suse.de>
8080
8081         PR middle-end/45874
8082         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8083         Fixup the CFG when EH was fixed up.
8084
8085 2010-10-13  Ira Rosen  <irar@il.ibm.com>
8086
8087         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8088         Use operand's type for POINTER_PLUS_EXPR.
8089
8090 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
8091
8092         * c-parser.c (c_parser_for_statement): Initialize incr.
8093
8094 2010-10-12  Xinliang David Li  <davidxl@google.com>
8095
8096         PR tree-optimization/45972
8097         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
8098         with too many arguments.
8099
8100 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8101
8102         PR fortran/45636
8103         * tree-ssa-forwprop.c: Include expr.h.
8104         (constant_pointer_difference, simplify_builtin_call): New functions.
8105         (tree_ssa_forward_propagate_single_use_vars): Call
8106         simplify_builtin_call on builtin calls.
8107
8108 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
8109
8110         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
8111         (*adddi3_extend_sp32): Likewise.
8112         (*subdi3_insn_sp32): Likewise.
8113         (*subdi3_extend_sp32): Likewise.
8114         (*negdi2_sp32): Use negative test for consistency.
8115
8116 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8117
8118         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
8119         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8120         * config/fixed-bit.h: Likewise.
8121         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8122         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8123         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
8124         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
8125         (DF_SIZE): Likewise.
8126         * doc/tm.texi: Regenerate.
8127
8128 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8129
8130         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
8131         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
8132         (*isel_reversed_unsigned_<mode>): New.
8133         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
8134         as valid comparisons and adjust operands and output appropriately.
8135         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
8136
8137 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
8138
8139         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
8140         DATA_ALIGNMENT and add COND parameter. Update comments above.
8141         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
8142         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
8143
8144 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8145
8146         PR bootstrap/45958
8147         * exec-tool.in: Support '-plugin' as the second option to the linker.
8148
8149 2010-10-12  Richard Henderson  <rth@redhat.com>
8150
8151         PR middle-end/45962
8152         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
8153         (expand_stack_vars): Assert large base allocated when used.
8154
8155 2010-10-12  Richard Guenther  <rguenther@suse.de>
8156
8157         * tree-ssa-structalias.c (get_constraint_for_1): Constants
8158         only point to nonlocal, not anything.
8159
8160 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8161
8162         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
8163         unwind info for exceptions.
8164
8165 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8166
8167         PR testsuite/45851
8168         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
8169         Document optional target selector.
8170
8171 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
8172
8173         * flag-types.h: New.
8174         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
8175         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
8176         options.h.
8177         (OPTIONS_H): Define.
8178         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
8179         of options.h.
8180         * configure.ac (tm_include_list): Include options.h not flags.h.
8181         * configure: Regenerate.
8182         * flags.h: Include flag-types.h.  Include options.h at top of file
8183         again.
8184         (enum debug_info_type, enum debug_info_level, enum
8185         debug_info_usage, enum symbol_visibility, struct visibility_flags,
8186         enum ira_algorithm, enum ira_region, enum excess_precision, enum
8187         graph_dump_types, enum stack_check_type,
8188         enum warn_strict_overflow_code): Move to flag-types.h
8189         * opth-gen.awk: Include flag-types.h in options.h.
8190
8191 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8192
8193         * expr.c (store_expr): Share code for STRING_CST and
8194         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
8195         check if target is a MEM.
8196
8197         * rtl.h: Include hashtab.h.
8198         (iterative_hash_rtx): New prototype.
8199         * rtl.c (iterative_hash_rtx): New function.
8200         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
8201         (output_loc_list): Return immediately if emitted is set, set it.
8202         (hash_loc_operands, hash_locs, hash_loc_list,
8203         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
8204         optimize_location_lists_1, optimize_location_lists): New function.
8205         (dwarf2out_finish): Call optimize_location_lists.
8206         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
8207
8208 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8209
8210         PR testsuite/45974
8211         Revert:
8212         * Makefile.in ($(lang_checks_parallel))
8213         ($(lang_checks_parallelized)): Use single quotes for
8214         $(RUNTESTFLAGS), to allow passing quoted content.
8215
8216 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8217
8218         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
8219         actual_oldval.  Use __builtin_expect.
8220         (SUBWORD_VAL_CAS): Likewise.
8221
8222 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8223
8224         * recog.c (nonmemory_operand): Call immediate_operand for
8225         CONSTANT_P operands.
8226
8227 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
8228
8229         * config/i386/i386.md (movmem<mode>): Macroize expander from
8230         movmem{si,di} using SWI48 mode iterator.
8231         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
8232         *strmovsi_rex_1 using P mode iterator.
8233         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
8234         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
8235         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
8236         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
8237         (setmem<mode>): Macroize expander from setmem{si,di} using
8238         SWI48 mode iterator.
8239         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
8240         *strsetsi_rex_1 using P mode iterator.
8241         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
8242         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
8243         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
8244         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
8245         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
8246         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
8247         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
8248         mode iterator.
8249         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
8250         *strlenqi_rex_1 using P mode iterator.
8251
8252 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
8253
8254         PR bootstrap/45445
8255         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
8256         static functions.
8257         (mark_ref_live, mark_ref_dead): Use them.
8258         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
8259         Save the original reg, and use the new functions.
8260         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
8261         changed.
8262         (check_and_make_def_conflict): Save the original reg.
8263
8264 2010-10-11  Martin Jambor  <mjambor@suse.cz>
8265
8266         PR middle-end/45699
8267         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
8268         thunks.
8269
8270 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8271
8272         * Makefile.in ($(lang_checks_parallel))
8273         ($(lang_checks_parallelized)): Use single quotes for
8274         $(RUNTESTFLAGS), to allow passing quoted content.
8275
8276         PR bootstrap/35855
8277         * opt-functions.awk (BEGIN): New section.
8278         (lower, upper, digit, alnum): New variables.
8279         (static_var, opt_sanitized_name): Use alnum instead of character
8280         classes, for non-C locale.
8281         * optc-gen.awk: Likewise.
8282         * opth-gen.awk: Likewise.
8283
8284 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
8285
8286         * target.def (preferred_reload_class): New hook.
8287         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
8288         * doc/tm.texi: Regenerate.
8289         * targhooks.c (default_preferred_reload_class): New function.
8290         * targhooks.h (default_preferred_reload_class): Declare.
8291         * reload.c (find_dummy_reload): Change preferred_class variable type
8292         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
8293         target hook.
8294         (find_reloads): Change goal_alternative array type from int to
8295         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
8296         (push_reload, find_reloads_address_part): Use
8297         TARGET_PREFERRED_RELOAD_CLASS target hook.
8298         * reload1.c (emit_input_reload_insns): Ditto.
8299         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
8300         hook. Change rclass argument and secondary_class variable types from
8301         'enum reg_class' to reg_class_t.
8302
8303         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
8304         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
8305         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
8306         Change regclass argument and result types from enum reg_class to
8307         reg_class_t.
8308         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8309
8310 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8311
8312         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
8313         in masking operations.
8314         (simplify_const_unary_operation): Likewise.
8315         (simplify_binary_operation_1): Likewise.
8316         (simplify_const_binary_operation): Likewise.
8317         (simplify_const_relational_operation): Likewise.
8318         (simplify_ternary_operation): Likewise.
8319         (simplify_immed_subreg): Likewise.
8320
8321 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8322
8323         PR middle-end/45862
8324         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
8325         (TARGET_SUPPORTS_WEAK): New.
8326         * doc/tm.texi: Regenerate.
8327         * defaults.h (SUPPORTS_WEAK): Update comment.
8328         (TARGET_SUPPORTS_WEAK): New.
8329         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
8330         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
8331         SUPPORTS_WEAK.
8332         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
8333         make_decl_one_only): Likewise.
8334         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
8335         TARGET_SUPPORTS_WEAK.
8336         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
8337         instead of SUPPORTS_WEAK.
8338
8339 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8340
8341         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
8342
8343 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8344
8345         * vec.h (VEC_qsort): Define.
8346         * dbxout.c (output_used_types): Use it.
8347         * df-scan.c (df_sort_and_compress_refs): Likewise.
8348         (df_sort_and_compress_mws): Likewise.
8349         * genautomata.c (uniq_sort_alt_states): Likewise.
8350         (evaluate_equiv_classes): Likewise.
8351         (output_trans_table): Likewise.
8352         (output_state): Likewise.
8353         * gimplify.c (compare_case_labels): Likewise.
8354         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
8355         * ipa.c (build_cdtor_fns): Likewise.
8356         * lto.c (lto_wpa_write_files): Likewise.
8357         * sel-sched.c (fill_vec_av_set): Likewise.
8358         * tree-predcom.c (determine_roots_comp): Likewise.
8359         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
8360         (splice_param_accesses): Likewise.
8361         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
8362         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8363         (reassociate_bb): Likewise.
8364         * tree-ssa-sccvn.c (sort_scc): Likewise.
8365         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
8366
8367 2010-10-11  Ian Lance Taylor  <iant@google.com>
8368
8369         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
8370         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
8371         TREE_THIS_NOTRAP when appropriate.
8372         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
8373         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
8374         newly created MEM_REF.
8375
8376 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8377
8378         Nathan Froyds patch to hooks FUNCTION_ARG etc.
8379         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
8380         (picochip_incoming_function_arg): Delete.
8381         (picochip_arg_advance): Delete.
8382         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
8383         (FUNCTION_INCOMING_ARG): Delete.
8384         (FUNCTION_ARG_ADVANCE): Delete.
8385         * config/picochip/picochip.c (picochip_function_arg): Take a
8386         const_tree and a bool.
8387         (picochip_incoming_function_arg): Likewise.
8388         (picochip_arg_advance): Likewise.
8389         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8390         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8391
8392 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8393
8394         PR middle-end/45955
8395         * ipa.c (build_cdtor): Delete endless loop.
8396
8397 2010-10-07  Andi Kleen  <ak@linux.intel.com>
8398
8399         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
8400         checksum-options.
8401         (checksum-options): Add.
8402         (cc1-dummy): Remove.
8403         (cc1-checksum): Change to run checksum over object files
8404         and options only.
8405         * dummy-checksum.c: Remove.
8406         * genchecksum.c: Update copyright.
8407         (usage): Allow multiple arguments.
8408         (BLOCKSIZE): Add.
8409         (dosum): Change for incremental checksum. Remove C output.
8410         (main): Iterate over all argument files. Add C output.
8411
8412 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
8413
8414         * params.c (set_param_value_internal): New.
8415         (set_param_value): Use set_param_value_internal.
8416         (maybe_set_param_value, set_default_param_value): New.
8417         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
8418         (maybe_set_param_value, set_default_param_value): Declare.
8419         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
8420         * config/i386/i386.c (ix86_option_override_internal): Use
8421         maybe_set_param_value.
8422         * config/ia64/ia64.c (ia64_option_default_params,
8423         TARGET_OPTION_DEFAULT_PARAMS): New.
8424         (ia64_option_optimization): Move some code to
8425         ia64_option_default_params.
8426         * config/picochip/picochip.c (picochip_option_override): Use
8427         maybe_set_param_value.
8428         * config/rs6000/rs6000.c (rs6000_option_default_params,
8429         TARGET_OPTION_DEFAULT_PARAMS): New.
8430         (rs6000_option_override_internal): Use maybe_set_param_value.
8431         (rs6000_option_optimization): Move some code to
8432         rs6000_option_default_params.
8433         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
8434         * config/sh/sh.c (sh_option_default_params,
8435         TARGET_OPTION_DEFAULT_PARAMS): New.
8436         (sh_option_optimization): Move some code to sh_option_default_params.
8437         * config/sparc/sparc.c (sparc_option_override): Use
8438         maybe_set_param_value.
8439         * config/spu/spu.c (spu_option_default_params,
8440         TARGET_OPTION_DEFAULT_PARAMS): New.
8441         (spu_option_optimization): Move some code to spu_option_default_params.
8442         (spu_option_override): Use maybe_set_param_value.
8443         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
8444         * doc/tm.texi: Regenerate.
8445         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
8446         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
8447         compiler_params.
8448         (default_options_optimization): Use maybe_set_param_value.
8449         (finish_options): Use maybe_set_param_value.
8450         * target.def (target_option.default_params): New hook.
8451         * toplev.c (general_init): Call targetm.target_option.default_params.
8452
8453 2010-10-11  Ira Rosen  <irar@il.ibm.com>
8454
8455         PR tree-optimization/45902
8456         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
8457         vector type for constants, unless it's a pointer.
8458
8459 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8460
8461         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
8462
8463 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
8464
8465         PR target/45870
8466         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
8467         (ix86_delegitimize_address): Use it.
8468
8469 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
8470
8471         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
8472
8473 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
8474
8475         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
8476         to cum struct in the call to function_arg_advance.
8477         (alpha_function_arg_advance): Mark named as unused.
8478
8479 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
8480
8481         * config/mips/mips.c (mips_handle_option): Make "value" with
8482         ATTRIBUTE_UNUSED.
8483
8484 2010-10-09  Richard Henderson  <rth@redhat.com>
8485
8486         PR rtl-opt/33721
8487         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
8488         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
8489         required_align, tidy the code a bit.  Emit split_stack code in the
8490         right place.  Mark the return value with the alignment properly.
8491         * expr.h (allocate_dynamic_stack_space): Update decl.
8492         * builtins.c (expand_builtin_apply): Update call to
8493         allocate_dynamic_stack_space.
8494         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
8495         * calls.c (initialize_argument_information): Update call to
8496         allocate_dynamic_stack_space.
8497         (expand_call): Likewise.
8498
8499         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
8500         Don't update_stack_alignment here.
8501         (alloc_stack_frame_space): Make ALIGN unsigned.
8502         (stack_var_cmp): Sort by alignment too.
8503         (partition_stack_vars): Don't merge large and small alignment vars.
8504         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
8505         Take care when BASE is not virtual_stack_vars_rtx.
8506         (expand_stack_vars): Allocate dynamic stack space for large
8507         alignment variables.
8508         (expand_one_stack_var): Update all to expand_one_stack_var_at.
8509         (defer_stack_allocation): True for large alignment vars.
8510         (update_stack_alignment): Merge into ...
8511         (expand_one_var): ... here.
8512         (gimple_expand_cfg): Place code from expand_stack_vars.
8513
8514 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8515
8516         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8517         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
8518         (pdp11_function_arg_advance): New function.
8519         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8520
8521 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8522
8523         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
8524         * libgcc2.c: Likewise.
8525
8526 2010-10-09  Richard Guenther  <rguenther@suse.de>
8527
8528         PR lto/45956
8529         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
8530         Properly check if a decl is an automatic var.
8531
8532 2010-10-09  Richard Guenther  <rguenther@suse.de>
8533
8534         PR lto/45947
8535         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
8536
8537 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8538
8539         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
8540         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8541         * config/mmix/mmix.c (mmix_function_arg): Rename to...
8542         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
8543         bool arguments.
8544         (mmix_function_arg): New function.
8545         (mmix_function_incoming_arg): New function.
8546         (mmix_function_arg_advance): New function.
8547         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8548         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8549
8550 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8551
8552         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8553         * config/vax/vax.c (vax_function_arg): New function.
8554         (vax_function_arg_advance): New function.
8555         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8556
8557 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8558
8559         * config/pa/pa-protos.h (function_arg): Delete.
8560         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8561         * config/pa/pa.c (function_arg): Rename to...
8562         (pa_function_arg): ...this.  Make static.  Take a const_tree and
8563         a bool.
8564         (pa_function_arg_advance): New function.
8565         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8566
8567 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8568
8569         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8570         * config/m68k/m68k.c (m68k_function_arg): New function.
8571         (m68k_function_arg_advance): New function.
8572         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8573
8574 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8575
8576         * config/avr/avr-protos.h (function_arg): Delete.
8577         (function_arg_advance): Delete.
8578         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8579         * config/avr/avr.c (function_arg): Rename to...
8580         (avr_function_arg): ...this.  Make static.  Take a const_tree and
8581         a bool.
8582         (function_arg_advance): Rename to...
8583         (avr_function_arg_advance): ...this.  Make static.  Take a
8584         const_tree and a bool.
8585         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8586
8587 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8588
8589         * config/alpha/alpha-protos.h (function_arg): Delete.
8590         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8591         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
8592         * config/alpha/alpha.c (function_arg): Rename to...
8593         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
8594         a bool.  Delete TARGET_ABI_UNICOSMK code.
8595         (alpha_function_arg_advance): New function.
8596         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8597
8598 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8599
8600         * config/mep/mep-protos.h (mep_function_arg): Delete.
8601         (mep_function_arg_advance): Delete.
8602         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8603         * config/mep/mep.c (mep_function_arg): Make static.  Take a
8604         const_tree and a bool.
8605         (mep_function_arg_advance): Likewise.
8606         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8607
8608 2010-10-09  Richard Guenther  <rguenther@suse.de>
8609
8610         PR tree-optimization/45945
8611         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
8612
8613 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8614
8615         PR tree-optimization/45612
8616         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
8617         Test LABEL_DECLs as well.  Fix formatting issues.
8618         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
8619         whose label is present in NON_SSA_VARS.
8620         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
8621         as well.  Fix formatting issues.
8622         (visit_bb): Fix typos and formatting issue.
8623
8624 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8625
8626         PR tree-optimization/45950
8627         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
8628         before initializing vno->op.
8629
8630 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
8631
8632         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
8633         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
8634
8635 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8636
8637         PR target/45913
8638         * config/i386/i386.c (ix86_binary_operator_ok): Support
8639         "andhi/andsi/anddi" as a zero-extending move.
8640
8641 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8642
8643         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
8644         into a temporary array.
8645
8646 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
8647
8648         PR tree-optimization/45903
8649         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
8650         of {A,L}SHIFTRT of MEM.
8651
8652 2010-10-08  Richard Guenther  <rguenther@suse.de>
8653
8654         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8655         Re-construct BLOCK_VARS.
8656         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
8657         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8658         * tree.c (free_lang_data_in_block): Remove.
8659         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
8660         Do not touch the BLOCK tree.
8661         * expr.c (expand_expr_real_1): Allow externals.
8662
8663 2010-10-08  Richard Guenther  <rguenther@suse.de>
8664
8665         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
8666         Do not output BLOCK_SUBBLOCKS.
8667         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
8668         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
8669         Re-construct BLOCK_SUBBLOCKS of parent block.
8670         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
8671         for BINFO_BASE_ACCESSES.
8672
8673 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8674
8675         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
8676         (TREE_H): Include $(FLAGS_H) instead of options.h.
8677         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
8678         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8679         * common.opt (flag_complex_method, flag_evaluation_order,
8680         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
8681         Variable declarations.
8682         * configure.ac (tm_include_list): Include flags.h instead of options.h.
8683         * configure: Regenerate.
8684         * flags.h: Condition out contents for target libraries.  Include
8685         options.h at end of file.
8686         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
8687         flag_evaluation_order, flag_warn_unused_result): Remove.
8688         * gcc.c (main): Intialize global_options with global_options_init.
8689         * langhooks-def.h (lhd_init_options_struct): Declare.
8690         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8691         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
8692         * langhooks.c (lhd_init_options_struct): New.
8693         * langhooks.h (struct lang_hooks): Add init_options_struct.
8694         Update comment on init_options.
8695         * optc-gen.awk: Generate initializer for global_options_init, not
8696         global_options.
8697         * opth-gen.awk: Condition out structure declarations for target
8698         libraries.  Declare global_options_init.
8699         * opts-common.c: Include flags.h instead of options.h.
8700         * opts.c (flag_warn_unused_result): Remove.
8701         (read_cmdline_options): Take gcc_options parameters.  Pass them to
8702         read_cmdline_option.
8703         (initial_lang_mask, initial_min_crossjump_insns,
8704         initial_max_fields_for_field_sensitive,
8705         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
8706         (init_options_once): New.  Split out of decode_options.
8707         (init_options_struct): New.  Split out of decode_options.
8708         (decode_cmdline_options_to_array_default_mask): New.
8709         (default_options_optimization): New.  Split out of decode_options.
8710         (decode_options): Move most code to other functions.  Update call
8711         to read_cmdline_options.
8712         (finish_options): New.  Split out of decode_options.
8713         * opts.h (decode_options): Add gcc_options parameters.
8714         (init_options_once, init_options_struct,
8715         decode_cmdline_options_to_array_default_mask): New.
8716         * toplev.c (flag_complex_method, flag_ira_algorithm,
8717         flag_ira_region, flag_evaluation_order): Remove.
8718         (general_init): Use global_options_init for initial flag values
8719         for global_dc.
8720         (toplev_main): Call init_options_once, init_options_struct,
8721         lang_hooks.init_options_struct,
8722         decode_cmdline_options_to_array_default_mask and
8723         lang_hooks.init_option before decode_options.  Update arguments to
8724         decode_options.
8725         * tree.h: Include flags.h instead of options.h.
8726
8727 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8728
8729         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8730
8731 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8732
8733         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
8734         Delete.
8735         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8736         (FUNCTION_INCOMING_ARG): Delete.
8737         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
8738         (function_arg_slotno): Likewise.  Take bool arguments.
8739         (sparc_arg_partial_bytes): Update call to it.
8740         (function_arg): Rename to...
8741         (sparc_function_arg_1): ...this.  Take bool arguments.
8742         (sparc_function_arg, sparc_function_incoming_arg): New functions.
8743         (function_arg_advance): Rename to...
8744         (sparc_function_arg_advance): ...this.  Take bool argument.
8745         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
8746         (TARGET_FUNCTION_INCOMING_ARG): Define.
8747
8748 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8749
8750         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
8751         Delete.
8752         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8753         * config/bfin/bfin.c (function_arg_advance): Rename to...
8754         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
8755         and bool arguments.
8756         (function_arg): Rename to...
8757         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
8758         arguments.
8759         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8760
8761 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8762
8763         * config/score/score-protos.h (score_function_arg): Delete.
8764         (score_function_arg_advance): Delete.
8765         * config/score/score3.h (score3_function_arg_advance): Take a
8766         const_tree and a bool.
8767         (score3_function_arg): Likewise.
8768         * config/score/score7.h (score7_function_arg_advance): Likewise.
8769         (score7_function_arg): Likewise.
8770         * config/score/score3.c (score3_classify_arg): Likewise.
8771         (score3_function_arg_advance, score3_function_arg): Likewise.
8772         * config/score/score7.c (score7_classify_arg): Likewise.
8773         (score7_function_arg_advance, score7_function_arg): Likewise.
8774         * config/score/score.c (score_function_arg_advance): Likewise.
8775         (score_function_arg): Likewise.  De-const-ify `cum' argument.
8776         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8777
8778 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8779
8780         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
8781         (s390_function_arg): Delete.
8782         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8783         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
8784         (s390_function_arg_integer): Likewise.
8785         (s390_function_arg_advance): Make static.  Take a const_tree and
8786         a bool.
8787         (s390_function_arg): Likewise.
8788         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8789
8790 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8791
8792         * config/spu/spu-protos.h (spu_function_arg): Delete.
8793         * config/spu/spu.h (FUNCTION_ARG): Delete.
8794         (FUNCTION_ARG_ADVANCE): Move code to ...
8795         * config/spu/spu.c (spu_function_arg_advance): New function.
8796         (spu_function_arg): Make static.  Take a const_tree and a bool.
8797         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
8798         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8799
8800 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8801
8802         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8803
8804 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8805
8806         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
8807         (init_vn_nary_op_from_op): New function.
8808         (init_vn_nary_op_from_stmt): New function.
8809         (vn_nary_op_lookup_1): New function.
8810         (sizeof_vn_nary_op): New function.
8811         (alloc_vn_nary_op_noinit): New function.
8812         (alloc_vn_nary_op): New function.
8813         (vn_nary_op_insert_into): New function.
8814         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
8815         (vn_nary_op_lookup): Likewise.
8816         (vn_nary_op_lookup_stmt): Likewise.
8817         (vn_nary_op_insert_pieces): Likewise.
8818         (vn_nary_op_insert): Likewise.
8819         (vn_nary_op_insert_stmt): Likewise.
8820         (copy_nary): Likewise.
8821         (set_value_id_for_result): New function.
8822         (set_hashtable_value_ids): Call it.
8823
8824 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8825
8826         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8827         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
8828
8829 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8830
8831         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
8832         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8833
8834 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8835
8836         PR debug/45656
8837         * cse.c (cse_extended_basic_block): Preserve cc0 info across
8838         debug isnsn.  Skip them when searching for cc0 setter.
8839         (set_live_p): Skip debug insns when searching for cc0 user.
8840
8841 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8842
8843         PR debug/45673
8844         PR debug/45604
8845         PR debug/45419
8846         PR debug/45408
8847         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
8848         type of MEM_REFs to INTEGER_CSTs.
8849
8850 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8851
8852         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
8853         m68hc11_print_operand_address.
8854
8855 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8856
8857         * builtins.c (rewrite_call_expr): Move code to...
8858         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
8859         (rewrite_call_expr_array): New function.
8860         (fold_builtin_sprintf_chk_1): New function.
8861         (fold_builtin_sprintf_chk): Call it.
8862         (gimple_fold_builtin_sprintf_chk): Likewise.
8863         (fold_builtin_snprintf_chk_1): New function.
8864         (fold_builtin_snprintf_chk): Call it.
8865         (gimple_fold_builtin_snprintf_chk): Likewise.
8866         (gimple_rewrite_call_expr): Delete.
8867
8868 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8869
8870         * config.host: Update copyright year.
8871
8872 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8873
8874         * config.host (host_lto_plugin_soname): New shell variable.
8875         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
8876         * config.in: Regenerate.
8877         * configure: Regenerate.
8878         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
8879         LTO plugin shared library.
8880
8881 2010-10-07  Richard Henderson  <rth@redhat.com>
8882
8883         * target.h (enum unwind_info_type): Move ...
8884         * coretypes.h: ... here.
8885
8886 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
8887
8888         * doc/objc.texi (Fast enumeration protocol): Mention that
8889         'unsigned int' can also be used instead of 'unsigned long' in
8890         countByEnumeratingWithState:objects:count:.
8891
8892 2010-10-07  Martin Jambor  <mjambor@suse.cz>
8893
8894         * tree-sra.c (struct access): New field grp_assignment_write.
8895         (dump_access): Dump grp_assignment_write.
8896         (build_accesses_from_assign): Set grp_assignment_write.
8897         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
8898         (mark_read_status): Renamed to mark_rw_status, individual values
8899         renamed too.
8900         (analyze_access_subtree): Changed type of mark_write to
8901         mark_read_status.  Fixed propagating of mark_read and
8902         mark_write.  Changed benefit estimate.  Updated comment.
8903
8904 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8905
8906         PR Tree-Vect/45847
8907         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
8908         check for vectype_out returned by get_vectype_for_scalar_type().
8909
8910 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8911
8912         PR target/45805
8913         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
8914         constraint, add register specifier in instruction template.
8915         (neon_vec_pack_trunc_<mode>): Likewise.
8916         (neon_vec_<US>mult_<mode>): Add register specifier to
8917         instruction template.
8918
8919 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8920
8921         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
8922         cygwin2.o.
8923         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
8924         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
8925         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
8926         (cygwin2.o): Likewise.
8927         * config/i386/cygwin1.c: Delete file.
8928         * config/i386/cygwin2.c: Likewise.
8929         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
8930         make all {%!mno-cygwin} ones unconditional.
8931         (STARTFILE_SPEC): Likewise.
8932         (REAL_LIBGCC_SPEC): Likewise.
8933         (LIB_SPEC): Likewise.
8934         (CXX_WRAP_SPEC): Likewise.
8935         (LINK_SPEC): Likewise.
8936         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
8937         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
8938         (cygwin_gplusplus_include_dir): Delete now-unused array.
8939         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
8940         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
8941         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
8942         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
8943         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
8944         (cygwin_local_include_dir): Delete now-unused array.
8945         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
8946         (cygwin_cross_include_dir): Delete now-unused array.
8947         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
8948         (cygwin_tool_include_dir): Delete now-unused array.
8949         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
8950         (cygwin_standard_include_dir): Delete now-unused array.
8951         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
8952         (GEN_CVT_ARRAY): Delete now-unused macro definition.
8953         (cvt_to_mingw): Delete now-unused array.
8954         (mingw_scan): Remove prototype of deleted function.
8955         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
8956         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
8957         * doc/invoke.texi (-mcygwin): Don't document removed option.
8958         (-mno-cygwin): Likewise.
8959
8960 2010-10-07  Richard Guenther  <rguenther@suse.de>
8961
8962         * machmode.h (mode_for_vector): Declare.
8963         * stor-layout.c (mode_for_vector): New function, split out from ...
8964         (layout_type): ... here.
8965         * tree-vectorizer.h (current_vector_size): Declare.
8966         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
8967         mask vector type is available.
8968         (get_vectype_for_scalar_type): Rename to ...
8969         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
8970         size argument.
8971         (get_vectype_for_scalar_type): New wrapper around
8972         get_vectype_for_scalar_type_and_size using current_vector_size.
8973         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
8974         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
8975         of vect_analyze_loop here.
8976         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
8977         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
8978         to autodetect.
8979         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
8980         V8SF to V8SI conversion builtin.
8981
8982 2010-10-07  Richard Guenther  <rguenther@suse.de>
8983
8984         * target.def (autovectorize_vector_sizes): New target hook.
8985         * targhooks.c (default_autovectorize_vector_sizes): New function.
8986         * targhooks.h (default_autovectorize_vector_sizes): Declare.
8987         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
8988         Document.
8989         * doc/tm.texi: Update.
8990         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
8991         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8992
8993 2010-10-07  Richard Guenther  <rguenther@suse.de>
8994
8995         * target.def (units_per_simd_word): Rename to ...
8996         (preferred_simd_mode): ... this.  Return mode instead of size.
8997         * targhooks.c (default_units_per_simd_word): Rename to ...
8998         (default_preferred_simd_mode): ... this.  Return word_mode.
8999         * targhooks.h (default_preferred_simd_mode): Declare.
9000         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9001         (arm_preferred_simd_mode): ... this.  Re-implement.
9002         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9003         (ix86_preferred_simd_mode): ... this.  Re-implement.
9004         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9005         (sparc_preferred_simd_mode): ... this.  Re-implement.
9006         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9007         (mips_preferred_simd_mode): ... this.  Re-implement.
9008         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9009         (rs6000_preferred_simd_mode): ... this.  Re-implement.
9010         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9011         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9012         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9013         * doc/tm.texi: Update.
9014
9015 2010-10-07  Richard Guenther  <rguenther@suse.de>
9016
9017         PR middle-end/45869
9018         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9019         of pointers.
9020
9021 2010-10-07  Alan Modra  <amodra@gmail.com>
9022
9023         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9024         rather than sign extension by hand.
9025
9026 2010-10-07  Jan Hubicka  <jh@suse.cz>
9027
9028         PR middle-end/45926
9029         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9030
9031 2010-10-07  Richard Guenther  <rguenther@suse.de>
9032
9033         PR bootstrap/45914
9034         * configure.ac: Fix typo.
9035         * configure: Regenerated.
9036
9037 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9038
9039         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9040         define_builtin_std where it's unnecessary.
9041         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9042
9043 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
9044
9045         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9046         * doc/tm.texi.in: Regenerate.
9047         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9048         * targhooks.c (default_class_likely_spilled_p): Don't use the
9049         CLASS_LIKELY_SPILLED_P macro.
9050
9051         * config/arm/arm.md: Update comment.
9052
9053 2010-10-06  Jan Hubicka  <jh@suse.cz>
9054
9055         * ipa.c (cgraph_remove_unreachable_nodes): External references can
9056         always be removed.
9057         (cgraph_externally_visible_p): We can not bring local comdats that
9058         are known to linker; fix handling of internal visibility.
9059         (function_and_variable_visibility): Likewise.
9060
9061 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9062
9063         PR rtl-optimization/45394
9064         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9065         (struct rtx_subst_pair): Remove AFTER field.
9066         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9067         (propagate_for_debug): Remove MOVE parameter and adjust.
9068         (try_combine): In the special case where I2 is a PARALLEL, combine only
9069         destinations of SETs and set I2SRC to the I2 source.
9070         Adjust calls to propagate_for_debug throughout.
9071         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9072         insns.
9073
9074 2010-10-06  Olivier Hainque  <hainque@adacore.com>
9075
9076         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9077         switch on insn codes as sequence of ifs.
9078
9079 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9080
9081         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9082         be UI_NONE for picochip.
9083         (picochip_option_override): Do not disable exception flags.
9084         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9085         Declare.
9086
9087 2010-10-06  Richard Guenther  <rguenther@suse.de>
9088
9089         * Makefile.in (regmove.o): Depend on $(TARGET_H).
9090
9091 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9092
9093         Implemented fast enumeration for Objective-C.
9094         * c-parser.c (objc_could_be_foreach_context): New.
9095         (c_lex_one_token): Recognize RID_IN keyword in a potential
9096         Objective-C foreach context.
9097         (c_parser_declaration_or_fndef): Added parameter.  Accept
9098         Objective-C RID_IN keyword as terminating a declaration; in that
9099         case, return the declaration in the new parameter.
9100         (c_parser_extenral_declaration): Updated calls to
9101         c_parser_declaration_or_fndef.
9102         (c_parser_declaration_or_fndef): Same change.
9103         (c_parser_compound_statement_nostart): Same change.
9104         (c_parser_label): Same change.
9105         (c_parser_objc_methodprotolist): Same change.
9106         (c_parser_omp_for_loop): Same change.
9107         (c_parser_for_statement): Detect and parse Objective-C foreach
9108         statements.
9109         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
9110         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
9111         fast enumeration parsing code to turn off the c99 error but still
9112         perform checks on the loop declarations.
9113         * c-tree.h (check_for_loop_decls): Updated declaration.
9114         * doc/objc.texi: Document fast enumeration.
9115
9116 2010-10-06  Nick Clifton  <nickc@redhat.com>
9117
9118         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
9119         (MDR_REGNUM): Define.
9120         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
9121         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9122         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
9123         (REGISTER_NAMES): Add MDR.
9124         (DWARF2_DEBUGGING_INFO): Define to 1.
9125         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9126         (F): New function.  Sets RTX_FRAME_RELATED_P.
9127         (mn10300_gen_multiple_store): Use F.
9128         (expand_prologue): Use F.  Use gen_movsf() to push floating
9129         point registers.
9130         (expand_epilogue): Use gen_movsf() to pop floating point registers.
9131         (mn10300_option_override): Disable combine stack adjust pass.
9132
9133 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
9134
9135         PR target/45901
9136         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
9137         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
9138
9139 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
9140
9141         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
9142         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
9143         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
9144         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
9145         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
9146         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
9147         BUILT_IN_TOUPPER): Mark as leaf.
9148
9149         PR middle-end/45838
9150         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9151         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9152         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9153         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9154         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
9155         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
9156         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
9157
9158 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
9159
9160         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
9161         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9162         (m68hc11_class_likely_spilled_p): New function.
9163
9164 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
9165
9166         * c-parser.c (c_parser_objc_method_definition): Updated comment.
9167
9168 2010-10-05  Jan Hubicka  <jh@suse.cz>
9169
9170         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
9171         Document.
9172         * opts.c (decode_options): Handle lto partitions.
9173         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
9174         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
9175
9176 2010-10-05  Jan Hubicka  <jh@suse.cz>
9177
9178         * cgraphunit.c (assemble_function): Output thunks and aliases before
9179         the function itself.
9180
9181 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
9182
9183         * config/picochip/picochip.c (picochip_option_override): Disable
9184         exception flags for picochip.
9185
9186 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
9187
9188         * opts-common.c (handle_option, handle_generated_option,
9189         read_cmdline_option, set_option): Add diagnostic_context
9190         parameter.  Update calls among these functions.
9191         (set_option): Don't use global_dc.
9192         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
9193         (decode_options): Pass global_dc to enable_warning_as_error.
9194         (common_handle_option): Pass global_dc to enable_warning_as_error.
9195         (enable_warning_as_error): Add diagnostic_context parameter.
9196         Document parameters.  Don't use global_dc.  Pass
9197         diagnostic_context parameter to handle_generated_option.
9198         * opts.h (set_option, handle_option, handle_generated_option,
9199         read_cmdline_option, enable_warning_as_error): Add
9200         diagnostic_context parameter.
9201         * Makefile.in (lto-opts.o): Update dependencies.
9202         * coretypes.h (struct diagnostic_context, diagnostic_context):
9203         Declare here.
9204         * diagnostic.h (diagnostic_context): Don't declare typedef here.
9205         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
9206         * langhooks-def.h (struct diagnostic_context): Don't declare here.
9207         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
9208         using diagnostic_context typedef.
9209         * langhooks.c (lhd_initialize_diagnostics): Declare using
9210         diagnostic_context typedef.
9211         * langhooks.h (struct diagnostic_context): Don't declare here.
9212         (initialize_diagnostics, print_error_function): Declare using
9213         diagnostic_context typedef.
9214         * lto-opts.c: Include diagnostic.h.
9215         (lto_reissue_options): Pass global_dc to set_option.  Pass
9216         DK_UNSPECIFIED not 0.
9217         * plugin.c (plugins_internal_error_function): Declare using
9218         diagnostic_context typedef.
9219         * plugin.h (struct diagnostic_context): Don't declare here.
9220         (plugins_internal_error_function): Declare using
9221         diagnostic_context typedef.
9222
9223 2010-10-05  Olivier Hainque  <hainque@adacore.com>
9224             Nicolas Roche  <roche@adacore.com>
9225
9226         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
9227         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
9228
9229 2010-10-05  Ira Rosen  <irar@il.ibm.com>
9230
9231         PR tree-optimization/45752
9232         * tree-vect-slp.c (vect_get_mask_element): Remove static
9233         variables, make them function arguments.
9234         (vect_transform_slp_perm_load): Pass new arguments to
9235         vect_get_mask_element.
9236
9237 2010-10-05  Richard Guenther  <rguenther@suse.de>
9238
9239         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
9240         (gimple_mod_pow2): Likewise.
9241         (gimple_mod_subtract): Likewise.
9242         (gimple_ic): Likewise.
9243         (gimple_stringop_fixed_value): Likewise.
9244         * tree-profile.c (tree_init_edge_profiler): Mark profile
9245         functions nothrow and leaf.
9246         (add_abnormal_goto_call_edges): Remove.
9247         (tree_gen_edge_profiler): Work on SSA form.
9248         (tree_gen_ic_profiler): Likewise.  Simplify.
9249         (do_tree_profiling): Update SSA form.
9250         (pass_tree_profile): Remove.
9251         (do_tree_profiling): Likewise.
9252         (gate_tree_profile_ipa): New function.
9253         (pass_ipa_tree_profile): New.
9254         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
9255         state of instrumented functions.
9256         * passes.c (init_optimization_passes): Remove early non-SSA
9257         inlining.  Move profiling after early optimizations.
9258         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
9259         (pass_ipa_early_inline): Likewise.
9260         * tree-pass.h (pass_ipa_early_inline): Remove.
9261         (pass_tree_profile): Likewise.
9262         (pass_ipa_tree_profile): Declare.
9263
9264 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9265             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
9266
9267         * config/s390/s390.c (z196_cost): New.
9268         (s390_handle_arch_option): Add -march=z196.
9269         (s390_option_override): Use the new cost function and use the z10
9270         defaults also for z196.
9271         (legitimate_reload_constant_p): Adjust comment.
9272         (legitimate_reload_fp_constant_p): New function.
9273         (s390_preferred_reload_class): Distingiush between FP and Int constants.
9274         (preferred_la_operand_p): Avoid la with index on z196.
9275         (s390_adjust_priority): Trigger also for z196.
9276         (s390_issue_rate): Issue rate for z196 is 3.
9277         (s390_z10_fix_long_loop_prediction): Rename to ...
9278         (s390_fix_long_loop_prediction): ... this.
9279         (s390_reorg): Apply the z10 adjustments also for z196.
9280         (s390_loop_unroll_adjust): Do this also for z196.
9281         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
9282         (enum processor_flags): Add PF_Z196.
9283         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
9284         (TARGET_CPU_Z196, TARGET_Z196): New macros.
9285         * config.gcc: Enable z196 for --with-arch.
9286         * config/s390/2817.md: New file.
9287         * config/s390/2084.md: New type for multiply and add.
9288         * config/s390/2097.md: Likewise.
9289         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
9290         (UNSPECV_ATOMIC_OP): New constants.
9291         (fmadddf, fmaddsf): New values for type attribute.
9292         (z196prop): New insn attribute.
9293         (cpu, cpu_facility): Add z196.
9294         (ATOMIC_Z196): New code iterator.
9295         (noxa): New code attribute.
9296         (gk): New mode attribute.
9297         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
9298         Support load zero for fp constants.
9299         (fixuns_truncdddi2, fixuns_trunctddi2)
9300         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
9301         for z196.
9302         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
9303         (popcounthi2, popcountqi2): New expander.
9304         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
9305         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
9306         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
9307         insn definition.
9308         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
9309         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
9310         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
9311         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
9312         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
9313         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
9314         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
9315         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
9316         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
9317         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
9318         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
9319         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
9320         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
9321         Support new z196 instructions.
9322
9323 2010-10-05  Richard Guenther  <rguenther@suse.de>
9324
9325         PR middle-end/45877
9326         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
9327         case where gimplification optimizes away the stmt.
9328
9329 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9330
9331         PR debug/45849
9332         * var-tracking.c (strip_pointer_flags): New function.
9333         (emit_note_insn_var_location): If rtx_equal_p check failed,
9334         retry on locations simplified with simplify_replace_fn_rtx
9335         and strip_pointer_flags as its callback.
9336
9337 2010-10-04  Jan Hubicka  <jh@suse.cz>
9338
9339         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
9340         (can_refer_decl_in_current_unit_p): ... this one; reverse return
9341         value; handle comdats too.
9342         (canonicalize_constructor_val): Use it; handle function_decls
9343         correctly.
9344         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9345         * gimple.c (get_base_address): Accept all kinds of decls.
9346
9347 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9348
9349         * flags.h (g_switch_value, g_switch_set): Remove.
9350         * opts.c (g_switch_value, g_switch_set): Remove.
9351         * config/g.opt (G): Add Var(g_switch_value).
9352         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
9353         (alpha_option_override): Check global_options_set.x_g_switch_value
9354         instead of g_switch_set.
9355         (alpha_in_small_data_p): Remove cast in comparison with
9356         g_switch_value.
9357         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
9358         g_switch_value to unsigned HOST_WIDE_INT.
9359         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
9360         with g_switch_value.
9361         (frv_handle_option): Don't handle -G here.
9362         (frv_option_override): Check global_options_set.x_g_switch_value
9363         instead of g_switch_set.  Don't modify g_switch_set.
9364         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
9365         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
9366         g_switch_value to unsigned HOST_WIDE_INT.
9367         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
9368         (ia64_option_override): Check global_options_set.x_g_switch_value
9369         instead of g_switch_set.
9370         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
9371         Remove.
9372         (lm32_in_small_data_p): Remove cast in comparison with
9373         g_switch_value.
9374         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
9375         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
9376         HOST_WIDE_INT.
9377         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
9378         (m32r_init): Check global_options_set.x_g_switch_value instead of
9379         g_switch_set.
9380         (m32r_in_small_data_p): Remove cast in comparison with
9381         g_switch_value.
9382         (m32r_file_start): Format g_switch_value with %d.
9383         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
9384         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
9385         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
9386         handle -G here.
9387         (microblaze_option_override): Check
9388         global_options_set.x_g_switch_value instead of g_switch_set.
9389         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
9390         (mips_option_override): Check global_options_set.x_g_switch_value
9391         instead of g_switch_set.
9392         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
9393         (rs6000_file_start): Format g_switch_value with %d.
9394         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
9395         comparisons with g_switch_value.
9396         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9397         global_options_set.x_g_switch_value instead of g_switch_set.
9398         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9399         global_options_set.x_g_switch_value instead of g_switch_set.
9400         * config/score/score.c (score_handle_option): Don't handle -G here.
9401         * config/score/score3.c (score3_option_override): Check
9402         global_options_set.x_g_switch_value instead of g_switch_set.
9403         * config/score/score7.c (score7_option_override): Check
9404         global_options_set.x_g_switch_value instead of g_switch_set.
9405
9406 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9407
9408         * common.opt (fira-coalesce): Remove.
9409
9410         * doc/invoke.texi (flag_ira_coalesce): Remove.
9411
9412         * ira-color.c (allocno_coalesced_p): Move before
9413         copy_freq_compare_func.
9414         processed_coalesced_allocno_bitmap): Ditto.
9415         (update_conflict_hard_regno_costs): Don't use
9416         ALLOCNO_FIRST_COALESCED_ALLOCNO.
9417         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
9418         (assign_hard_reg): Assume no coalesced allocnos.
9419         (get_coalesced_allocnos_attributes): Remove.
9420         (bucket_allocno_compare_func): Assume no coalesced allocnos.
9421         (push_allocno_to_stack): Ditto.
9422         (remove_allocno_from_bucket_and_push): Use
9423         ira_print_expanded_allocno instead of print_coalesced_allocno.
9424         (push_allocnos_to_stack): Assume uncoalesced allocnos.
9425         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
9426         all_conflicting_hard_regs.
9427         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
9428         (setup_allocno_left_conflicts_size): Ditto.
9429         (put_allocno_into_bucket): Ditto.
9430         (copy_freq_compare_func): Remove.
9431         (copy_freq_compare_func, merge_allocnos): Move before
9432         coalesced_pseudo_reg_freq_compare.
9433         coalesced_allocno_conflict_p): Ditto.
9434         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
9435         parameter.  Assume it true.
9436         (color_allocnos): Assume uncoalesced allocnos.  Use
9437         ira_print_expanded_allocno instead of print_coalesced_allocno.
9438         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
9439         parameter.
9440
9441         * ira.c: Remove comment about coalescing.
9442
9443 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9444
9445         * config/mips/mips.h (target_flags_explicit): Declare for
9446         GENERATOR_FILE.
9447
9448 2010-10-04  Andi Kleen  <ak@linux.intel.com>
9449
9450         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
9451         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
9452
9453 2010-10-04  Matthias Klose  <doko@ubuntu.com>
9454
9455         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
9456         multilib osdirname if it exists.
9457         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
9458
9459 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9460
9461         PR middle-end/45876
9462         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
9463         arg0's type or its unsigned counterpart as utype.  Convert
9464         arg1 to utype unconditionally.
9465
9466 2010-10-04  Julian Brown  <julian@codesourcery.com>
9467
9468         * expr.c (expand_assignment): Add assertion to prevent emitting
9469         null rtx for movmisalign pattern.
9470         (expand_expr_real_1): Likewise.
9471         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
9472         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
9473         (arm_vector_alignment_reachable): New.
9474         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
9475         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
9476         (arm_print_operand): Include alignment qualifier in %A.
9477         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
9478         (movmisalign<mode>): New expander.
9479         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
9480         insn patterns.
9481
9482 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9483
9484         * optc-gen.awk: Define global_options_set.  Don't define
9485         target_flags_explicit.
9486         * opth-gen.awk: Declare global_options_set.  Define
9487         target_flags_explicit as macro.
9488         * opts-common.c (handle_option): Take opts_set and generated_p
9489         parameters.
9490         (handle_generated_option, read_cmdline_option, set_option): Take
9491         opts_set parameter.
9492         (set_option): Use opts_set instead of hardcoding target_flags and
9493         target_flags_explicit.
9494         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
9495         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
9496         flag_value_profile_transformations_set, flag_peel_loops_set,
9497         flag_branch_probabilities_set, flag_inline_functions_set,
9498         flag_ipa_cp_set, flag_ipa_cp_clone_set,
9499         flag_predictive_commoning_set, flag_unswitch_loops_set,
9500         flag_gcse_after_reload_set): Remove.
9501         (common_handle_option, lang_handle_option, target_handle_option):
9502         Take opts_set parameter.  Assert that it is &global_options_set.
9503         (common_handle_option): Don't set _set variables.  Check opts_set
9504         instead of such variables.
9505         (enable_warning_as_error): Pass &global_options_set to
9506         handle_generated_option.
9507         * opts.h (cl_option_handler_func.handler, set_option,
9508         handle_option, handle_generated_option, read_cmdline_option): Add
9509         opts_set parameters.
9510         (handle_option): Add generated_p parameter.
9511         * config/i386/i386.c (ix86_function_specific_save,
9512         ix86_function_specific_restore): Updat for renaming of
9513         target_flags_explicit field.
9514         * config/i386/i386.opt (target_flags_explicit): Rename to
9515         ix86_target_flags_explicit.
9516         * config/ia64/ia64.c (ia64_override_options_after_change): Check
9517         global_options_set.x_flag_selective_scheduling and
9518         global_options_set.x_flag_selective_scheduling2, not
9519         sel_sched_switch_set.
9520         * flags.h (sel_sched_switch_set,
9521         flag_speculative_prefetching_set): Remove.
9522         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
9523         that it is &global_options_set.
9524         (process_command): Pass &global_options_set to read_cmdline_option.
9525         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
9526         set_option.
9527         * toplev.c (target_flags_explicit): Remove.
9528
9529 2010-10-04  Jan Hubicka  <jh@suse.cz>
9530
9531         PR middle-end/45871
9532         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
9533         use get_ref_base_and_offset to handle references.
9534         (fold_const_aggregate_ref): Update.
9535
9536 2010-10-04  Martin Jambor  <mjambor@suse.cz>
9537
9538         PR tree-optimization/45572
9539         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
9540         ipa_check_create_node_params.
9541         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
9542
9543 2010-10-04  Yao Qi  <yao@codesourcery.com>
9544
9545         * doc/passes.texi: Clean up.
9546
9547 2010-10-03  Ian Lance Taylor  <iant@google.com>
9548
9549         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
9550         referring to a field using a typedef name.
9551         (find_anonymous_field_with_type): New static function.
9552         (convert_to_anonymous_field): New static function.
9553         (convert_for_assignment): If -fplan9-extensions, permit converting
9554         pointer to struct to pointer to anonymous field.
9555         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
9556         (is_duplicate_field): New static function.
9557         (detect_field_duplicates_hash): If -fplan9-extensions, check for
9558         typedef names duplicating field names.
9559         (detect_field_duplicates): Likewise.
9560         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
9561         (C Dialect Options): Document -fplan9-extensions.
9562         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
9563
9564 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
9567         revision 164914.
9568         (vect_create_data_ref_ptr): Likewise.
9569         * tree-vect-stmts.c (vectorizable_store): Likewise.
9570         (perm_mask_for_reverse): Likewise.
9571         (reverse_vec_elements): Likewise.
9572         (vectorizable_load): Likewise.
9573
9574 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9575
9576         * cppbuiltin.c: New file.
9577         * cppbuiltin.h: New file.
9578         * Makefile.in: Take into account cppbuiltin.{h,c}.
9579
9580 2010-10-03  Andi Kleen  <ak@linux.intel.com>
9581
9582         * lto-cgraph.c (input_cgraph): Check for missing sections.
9583
9584 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
9585
9586         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
9587         to nonimmediate_operand.  Force operand 2 to register when allowed.
9588         (*<shiftrt_insn><mode>3_mask): Ditto.
9589         (*<rotate_insn><mode>3_mask): Ditto.
9590
9591 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9592
9593         PR tree-optimization/45720
9594         PR tree-optimization/45764
9595         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9596         Don't accept backwards consecutive accesses.
9597         (vect_create_data_ref_ptr): Disallow negative steps.
9598
9599         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
9600         (perm_mask_for_reverse): Removed.
9601         (reverse_vec_elements): Likewise.
9602         (vectorizable_load): Don't handle negative steps.
9603
9604 2010-10-02  Jan Hubicka  <jh@suse.cz>
9605
9606         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
9607         call destination is known.
9608
9609 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9610
9611         PR target/45820
9612         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
9613         earlier.
9614
9615 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9616
9617         * doc/install.texi (Configuration): Document build_configargs,
9618         host_configargs, target_configargs.
9619
9620 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
9621
9622         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
9623         (*<shiftrt_insn><mode>3_mask): Ditto.
9624         (*<rotate_insn><mode>3_mask): Ditto.
9625
9626 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
9627
9628         PR tree-optimization/44716
9629         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9630         (HOT_TEXT_SECTION_NAME): Define.
9631
9632 2010-10-01  Nick Clifton  <nickc@redhat.com>
9633
9634         * common.opt: Add -fcombine-stack-adjustments.
9635         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
9636         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
9637         flag_combine_stack_adjustments.
9638         * doc/invoke.texi: Document the new option.
9639
9640 2010-10-01  Richard Guenther  <rguenther@suse.de>
9641
9642         PR tree-optimization/45854
9643         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
9644
9645 2010-10-01  Anthony Green  <green@moxielogic.com>
9646
9647         * config.gcc: Fix moxie-*-rtems* configuration.
9648
9649 2010-10-01  Richard Guenther  <rguenther@suse.de>
9650
9651         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
9652         (gen_decl_die): Likewise.
9653
9654 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9655
9656         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
9657         to the function code for SPU MD builtins.
9658         (spu_expand_builtin): Update.
9659         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
9660
9661 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9662
9663         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
9664         sjlj_except_unwind_info.
9665
9666 2010-10-01  Tristan Gingold  <gingold@adacore.com>
9667
9668         * configure.ac: Define the nop insn for avr*-*-*
9669         * configure: Regenerate.
9670
9671 2010-10-01  Alan Modra  <amodra@gmail.com>
9672
9673         PR target/45807
9674         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
9675         extend toc_restore_insn.
9676
9677 2010-09-30  Richard Guenther  <rguenther@suse.de>
9678
9679         PR tree-optimization/43959
9680         * function.c (gimplify_parameters): Use create_tmp_reg instead of
9681         create_tmp_var.
9682
9683 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9684
9685         * config/sh/sh.c (sh_expand_prologue): Set
9686         current_function_static_stack_size.
9687
9688 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9689
9690         * configure.ac: Check for Solaris 8 ld with .hidden support.
9691         * configure: Regenerate.
9692
9693 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9694
9695         PR middle-end/45758
9696         * graphite.c (graphite_initialize): Call scev_reset.
9697
9698 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9699
9700         * sese.h (scev_analyzable_p): Return false for real or floating
9701         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
9702
9703 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9704
9705         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
9706         and ps.
9707         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
9708         domain.
9709         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
9710         Do not allocate ub_expr, it is passed in initialized.
9711
9712 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9713
9714         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
9715         (build_cloog_prog): Dump CLooG input file when
9716         flag_graphite_dump_cloog is set.  This is disabled on trunk.
9717         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
9718
9719 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9720
9721         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
9722         verify_dominators for CDI_POST_DOMINATORS.
9723         * sese.h: Remove comment about CDI_POST_DOMINATORS.
9724         (recompute_all_dominators): Remove call to free_dominance_info
9725         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
9726         for CDI_POST_DOMINATORS.
9727
9728 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9729
9730         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
9731         over pbb_dim_iter_domain.
9732
9733 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9734
9735         * graphite-flattening.c: Fix comments.
9736
9737 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9738
9739         * Makefile.in (OBJS-common): Add graphite-flattening.o.
9740         (graphite-flattening.o): New rule.
9741         * common.opt (floop-flatten): New flag.
9742         * doc/invoke.texi (-floop-flatten): Documented.
9743         * graphite-flattening.c: New.
9744         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
9745         * graphite-poly.h (flatten_all_loops): Declared.
9746         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
9747         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
9748         is set, also set flag_graphite.
9749
9750 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9751
9752         * graphite-poly.c (cloog_checksum): New.
9753         * graphite-poly.h (cloog_checksum): Declared.
9754
9755 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9756
9757         * graphite-poly.c (pbb_number_of_iterations): Removed.
9758         (pbb_number_of_iterations_at_time): Correctly compute the number
9759         of iterations in the transformed loop.
9760         * graphite-poly.h (pbb_number_of_iterations): Removed.
9761
9762 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9763
9764         * graphite-poly.h (lst_update_scattering_seq): Removed.
9765         (lst_update_scattering): Correctly handle outermost loop dewey
9766         renumbering.
9767
9768 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9769
9770         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
9771         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
9772         * graphite-poly.h (lst_niter_for_loop): New.
9773
9774 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9775
9776         * graphite-poly.c (apply_poly_transforms): Do not abort when the
9777         transform read from disk is not legal.  Call fatal_error instead.
9778
9779 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9780
9781         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
9782         (print_scop_header): Removed.  Inlined in the only call place...
9783         (print_scop): ... here.
9784
9785 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9786
9787         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
9788
9789 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9790
9791         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
9792
9793 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9794
9795         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
9796         (dot_deps_stmt): Same.
9797         * graphite-poly.c (dot_lst): Same.
9798
9799 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9800
9801         * graphite-blocking.c (scop_do_strip_mine): Do not call
9802         graphite_legal_transform.
9803         (scop_do_block): Same.
9804
9805 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9806
9807         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
9808         description.
9809
9810 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9811
9812         * tree-scalar-evolution.c (instantiate_array_ref): New.
9813         (instantiate_scev_r): Also handle ARRAY_REFs.
9814
9815 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9816
9817         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9818         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
9819         RESULT_DECL, and FIELD_DECL.  Return false for an
9820         SSA_NAME_IS_DEFAULT_DEF.
9821         (compute_scalar_evolution_in_loop): Do not further analyze the
9822         scalar evolution when no_evolution_in_loop_p returns true.
9823
9824 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9825
9826         * tree-chrec.h (evolution_function_is_affine_p): Do not check
9827         whether CHREC_LEFT is invariant.  A function is affine when
9828         CHREC_RIGHT is invariant.
9829
9830 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9831
9832         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
9833         is_gimple_reg.
9834         (rewrite_degenerate_phi): Same.
9835         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
9836
9837 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9838
9839         * graphite-scop-detection.c (graphite_can_represent_scev,
9840         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
9841         graphite_can_represent_loop): Remove outermost_loop.
9842
9843 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9844
9845         PR middle-end/45229
9846         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
9847         handle GIMPLE_CALLs with no LHS.
9848
9849 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9850
9851         * graphite-poly.c (init_graphite_out_file): New.
9852         (init_graphite_in_file): New.
9853         (apply_poly_transforms): Updated to enable reading and writing of
9854         multiple scop files.
9855
9856 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
9857
9858         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
9859         redundant checks.
9860
9861 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9862
9863         * graphite-clast-to-gimple.c (precision_for_value): Adjust
9864         computation of precision by 1.
9865
9866 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9867
9868         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
9869         (openscop_read_polyhedron_matrix): New.
9870         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
9871         (openscop_read_N_int): Same.
9872         * graphite-poly.c (openscop_read_N_int): New.
9873         (openscop_read_one_int): New.
9874         (openscop_read_N_string): New.
9875         (openscop_read_one_string): New.
9876         (openscop_read_powerset_matrix): New.
9877         (graphite_read_transforms): Remove.
9878         (graphite_read_scatt): New.
9879         (graphite_read_scop_file): New.
9880         (apply_poly_transforms): Updated to call graphite_read_scop_file.
9881
9882 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9883
9884         * graphite-poly.c: Change include order.
9885
9886 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9887
9888         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
9889         (cloog_matrix_nrows): New.
9890
9891 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9892
9893         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
9894         from matrix lines.
9895         * graphite-poly.c (openscop_print_scattering_function_1): Same.
9896         (print_scattering_function_1): Same.
9897         (openscop_print_pbb_domain): Same.
9898         (openscop_print_scop_context): Same.
9899         (print_scop_context): Same.
9900
9901 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
9902
9903         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
9904         (openscop_print_pdr_polyhedron): Print pph.
9905
9906 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9907
9908         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
9909         priority signed types.
9910
9911 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9912
9913         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
9914         the call to lang_hooks.types.type_for_size.  Call
9915         build_nonstandard_integer_type.
9916
9917 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9918
9919         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
9920         (openscop_print_polyhedron_matrix): New.
9921         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
9922         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
9923         (openscop_print_pdr_powerset): New.
9924         (openscop_print_powerset_matrix): New.
9925         (openscop_print_scattering_function_1): New.
9926         (print_scattering_function): Add support for scattering names and
9927         OpenScop format.
9928         (graphite_write_transforms): Remove.
9929         (print_pdr_access_layout): Updated to support OpenScop format.
9930         (print_pdr): Same.
9931         (openscop_print_pbb_domain): New.
9932         (print_pbb_body): Added a parameter to allow indicating that pbb_body
9933         is not provided.
9934         (print_pbb): Updated to call the new print_pbb_body.
9935         (openscop_print_scop_context): New.
9936         (print_scop_header): New.
9937         (print_scop): Updated to call print_scop_header.
9938         * graphite-poly.h: Document OpenScop format.
9939
9940 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
9941
9942         * config/cris/m32c.c (cris_memory_move_cost): New.
9943         (cris_register_move_cost): Make static. Change arguments type from
9944         enum reg_class to reg_class_t.
9945         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9946         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9947         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
9948
9949 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9950
9951         PR target/45843
9952         * config/i386/i386.c (ix86_gimplify_va_arg): Use
9953         INTVAL (XEXP (slot, 1)) as prev_size.
9954
9955 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9956
9957         PR target/45837
9958         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
9959         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
9960         defined.
9961         * config/rs6000/option-defaults.h (toplevel): Change #if
9962         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
9963         global option changes.
9964
9965 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9966
9967         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
9968
9969         PR tree-optimization/31261
9970         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
9971         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
9972
9973 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9974
9975         PR bootstrap/45796
9976         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
9977         special-casing for generators and turn into ...
9978         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
9979         rule, for better error messages in case of toplevel dependency errors.
9980         (genprog): Add hooks, rename to ...
9981         (genprogerr): ... this, and let genprog also contain check,
9982         checksum, condmd.
9983         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
9984         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
9985         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
9986
9987 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
9988             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9989
9990         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
9991         for GMP, MPFR and MPC.
9992
9993 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9994
9995         * config/sparc/sparc.opt (mimpure-text): Move ...
9996         * config/sol2.opt: ... here.  Correct description.
9997         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
9998         * doc/invoke.texi (Option Summary, SPARC Options): Move
9999         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10000         (Option Summary, Solaris 2 Options): ... here.
10001         (Submodel Options, Solaris 2 Options): New menu entry.
10002         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10003         (Solaris 2 Options): ... here.
10004
10005 2010-09-30  Michael Eager  <eager@eagercon.com>
10006
10007         * extend.texi (interrupt_handler): Add MicroBlaze to list.
10008         (save_volatiles): Describe option for MicroBlaze.
10009         * invoke.texi: Add MicroBlaze Options.
10010         * contrib.texi: Add acknowledgment.
10011         * md.texi: Add MicroBlaze d and z constraints.
10012         * install.texi: Add microblaze-*-elf.
10013         * configure.ac: Add microblaze-*-* to target list.
10014         * configure: Regenerate.
10015         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10016         * config/microblaze/microblaze-protos.h: New.
10017         * config/microblaze/crti.s: New.
10018         * config/microblaze/predicates.md: New.
10019         * config/microblaze/linux.h: New.
10020         * config/microblaze/microblaze.md: New.
10021         * config/microblaze/constraints.md: New.
10022         * config/microblaze/crtn.s: New.
10023         * config/microblaze/microblaze.opt: New.
10024         * config/microblaze/microblaze-c.c: New.
10025         * config/microblaze/t-microblaze: New.
10026         * config/microblaze/microblaze.c: New.
10027         * config/microblaze/microblaze.h: New.
10028
10029 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
10030
10031         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10032         parse @optional/@required and set the flags as appropriate.
10033
10034 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
10035
10036         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10037
10038 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
10039
10040         * opt-functions.awk (static_var): Update comment.
10041         (var_ref): Return offsetof expression or -1, not variable address.
10042         * optc-gen.awk: Generate structure field initializers instead of
10043         static variables.  Expect -1 for missing variables instead of null
10044         pointer.  Add gcc_options parameters to generated functions.
10045         * opth-gen.awk: Generate structure fields for static variables.
10046         Add gcc_options parameters to generated functions.
10047         * common.opt (optimize, optimize_size): Add variables.
10048         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10049         &global_options to cl_target_option_restore.
10050         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10051         &global_options to cl_optimization_restore, cl_target_option_save
10052         and cl_target_option_restore.
10053         (ix86_set_current_function): Pass &global_options to
10054         cl_target_option_restore.
10055         * config/pdp11/pdp11.h (optimize): Remove.
10056         * config/rs6000/rs6000.h (optimize): Remove.
10057         * config/sh/sh.h (optimize): Remove.
10058         * config/xtensa/xtensa.h (optimize): Remove.
10059         * coretypes.h (struct gcc_options): Declare.
10060         * diagnostic.c (diagnostic_initialize): Initialize
10061         context->option_state.
10062         (diagnostic_report_diagnostic): Pass option_state to
10063         option_enabled hook.
10064         * diagnostic.h (diagnostic_context.option_enabled): Add void *
10065         parameter.
10066         (diagnostic_context.option_state): New field.
10067         * final.c (final_start_function, final, final_scan_insn): Rename
10068         optimize parameter to optimize_p.
10069         * flags.h (optimize, optimize_size): Remove.
10070         * function.c (invoke_set_current_function_hook): Pass
10071         &global_options to cl_optimization_restore.
10072         * gcc.c (driver_handle_option): Take gcc_options parameter.
10073         Assert that it is &global_options.
10074         (process_command): Pass &global_options to read_cmdline_option.
10075         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10076         option_enabled.
10077         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
10078         &global_options to set_option.
10079         * opts-common.c (handle_option, handle_generated_option,
10080         read_cmdline_option, set_option): Take explicit gcc_options
10081         parameters.  Use option_flag_var.
10082         (option_flag_var): New.
10083         * opts.c (common_handle_option, lang_handle_option,
10084         target_handle_option): Take gcc_options parameter.  Assert that it
10085         is &global_options.
10086         (read_cmdline_options): Pass &global_options to read_cmdline_option.
10087         (print_filtered_help): Use option_flag_var.  Pass &global_options
10088         to option_enabled.
10089         (common_handle_option): Use option_flag_var.
10090         (option_enabled): Take opts parameter.  Use option_flag_var.
10091         (get_option_state): Take gcc_options parameter.  Use
10092         option_flag_var.  Pass gcc_options parameter to option_enabled.
10093         (enable_warning_as_error): Pass &global_options to
10094         handle_generated_option.
10095         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
10096         (cl_option_handler_func.handler): Take gcc_options parameter.
10097         (option_enabled, get_option_state, set_option, handle_option,
10098         handle_generated_option, read_cmdline_option): Take gcc_options
10099         parameters.
10100         * toplev.c (optimize, optimize_size): Remove.
10101         (print_switch_values): Pass &global_options to option_enabled.
10102         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
10103         to get_option_state.
10104         (general_init): Initialize global_dc->option_state.
10105         * tree.c (build_optimization_node): Pass &global_options to
10106         cl_optimization_save.
10107         (build_target_option_node): Pass &global_options to
10108         cl_target_option_save.
10109
10110 2010-09-30  Martin Jambor  <mjambor@suse.cz>
10111
10112         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
10113         zero sized bit-fields.
10114
10115 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
10116
10117         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
10118         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
10119         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
10120         (c_parser_objc_class_declaration): Same change.
10121         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
10122         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10123         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
10124         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
10125         and RID_AT_PUBLIC instead of RID_PUBLIC.
10126         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
10127         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10128
10129 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
10130
10131         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
10132         Add links to current providers of packages for Solaris and IRIX.
10133
10134 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10135
10136         Merge from 'apple/trunk' branch on FSF servers.
10137         * c-parser.c: Applied change originally in c-parse.in.
10138
10139         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
10140
10141         Radar 4281748
10142         * c-decl.c (start_decl): Check for redeclaration of class name.
10143         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
10144
10145 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
10146
10147         * config/ia64/ia64.c (ia64_builtin_decl): New.
10148         (TARGET_BUILTIN_DECL): Define.
10149         (ia64_builtins): New.
10150         (ia64_init_builtins): Save decls in ia64_builtins.
10151
10152 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
10153
10154         PR target/40457
10155         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
10156         (move2add_use_add3_insn): Likewise.
10157         (reload_cse_move2add): Likewise.
10158         * rtlanal.c (get_full_rtx_cost): New function.
10159         * rtl.h (struct full_rtx_costs): New.
10160         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
10161         costs_add_n_insns): New inline functions.
10162         (get_full_rtx_cost): Declare.
10163
10164         PR c/45054
10165         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
10166         invariants.  Check for reg_equiv_invariant.
10167         (reload): Assert that spilled_pseudos is empty when returning.
10168
10169 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
10170
10171         * config/i386/mingw32.h (TARGET_64BIT): replaced by
10172         TARGET_64BIT_DEFAULT in #if check.
10173
10174 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
10175
10176         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
10177
10178 2010-09-29  Mike Stump  <mikestump@comcast.net>
10179
10180         * config/darwin.h (flag_mkernel): Remove.
10181         (flag_apple_kext): Likewise.
10182
10183 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10184             Jack Howarth  <howarth@bromo.med.uc.edu>
10185
10186         * config/darwin.opt (undefined): Add.
10187
10188 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10189
10190         PR testsuite/45664
10191         * configure.ac: Add --enable-indirect-function option.
10192         * config.gcc: Add default_gnu_indirect_function.
10193         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
10194         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
10195         * varasm.c (do_assemble_alias): Adjust for macro name change.
10196         * configure: Rebuilt.
10197         * doc/install.texi: Document --enable-indirect-function.
10198
10199 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10200
10201         * doc/options.texi (Variable, Var, Init): Update documentation
10202         without reference to VarExists.
10203         (VarExists): Remove.
10204         * common.opt, config/i386/i386.opt, config/linux.opt,
10205         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
10206         Don't use VarExists.
10207
10208 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10209
10210         * optc-gen.awk: Generate global_options initializer instead of
10211         individual variables.  Add x_ prefix to names of structure members.
10212         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
10213         names of structure members.
10214         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10215         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
10216         * doc/tm.texi: Regenerate.
10217         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10218         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10219         * c-parser.c (disable_extension_diagnostics,
10220         restore_extension_diagnostics): Update names of cpp_options members.
10221         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10222         * common.opt (fcompare-debug-second): Don't use Var.
10223         * config/alpha/alpha.h (target_flags): Remove.
10224         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10225         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10226         * config/bfin/bfin.h (target_flags): Remove.
10227         * config/cris/cris.h (target_flags): Remove.
10228         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
10229         cl_target_option members.
10230         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
10231         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
10232         ix86_can_inline_p): Update names of cl_target_option members.
10233         * config/i386/i386.h (ix86_isa_flags): Remove.
10234         * config/lm32/lm32.h (target_flags): Remove.
10235         * config/mcore/mcore.h (mcore_stack_increment): Remove.
10236         * config/mcore/mcore.md (addsi3): Remove extern declaration of
10237         flag_omit_frame_pointer.
10238         * config/mep/mep.h (target_flags): Remove.
10239         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10240         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10241         * config/mmix/mmix.h (target_flags): Remove.
10242         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
10243         flag_expensive_optimizations): Remove.
10244         * config/s390/s390.h (flag_pic): Remove.
10245         * config/score/score-conv.h (target_flags): Remove.
10246         * config/sh/sh.h (sh_fixed_range_str): Remove.
10247         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
10248         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10249         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10250         * diagnostic.c (diagnostic_initialize): Update names of
10251         diagnostic_context members.
10252         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
10253         warn_system_headers.
10254         (diagnostic_report_warnings_p): Update for new names.
10255         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10256         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
10257         HARD_FRAME_POINTER_IS_ARG_POINTER.
10258         * flags.h (flag_compare_debug): Declare.
10259         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10260         * opts.c (flag_compare_debug): Define.
10261         (common_handle_option): Update names of diagnostic_context
10262         members.  Handle -fcompare-debug-second.
10263         (fast_math_flags_struct_set_p): Update names of cl_optimization
10264         members.
10265         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10266         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10267         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10268         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10269         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10270         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10271         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
10272         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10273         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10274
10275 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
10276
10277         * config/picochip/picochip.c (picochip_output_internal_label):
10278         This function can now be called for debug CFI labels, which can come
10279         in the middle of a vliw instruction.  Postpone until end of vliw.
10280
10281 2010-09-29  Richard Guenther  <rguenther@suse.de>
10282
10283         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
10284         (DECL_FILE_SCOPE_P): Use it.
10285         (TYPE_FILE_SCOPE_P): New macro.
10286
10287 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10288
10289         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
10290         a CPP_NAME which is a reserved word, clearly separate cases for
10291         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
10292
10293 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10294
10295         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
10296         token->value with the canonical spelling.  Do exactly like C and
10297         C++ and leave it as it is.
10298
10299 2010-09-28  Richard Henderson  <rth@redhat.com>
10300
10301         * config/alpha/alpha.c (alpha_builtins): New.
10302         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
10303         (alpha_builtin_function): New.
10304         (alpha_add_builtins, alpha_init_builtins): Use it.
10305
10306 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
10307
10308         * doc/standards.texi (Standards): Expanded the section on
10309         Objective-C and Objective-C++.
10310
10311 2010-09-28  DJ Delorie  <dj@redhat.com>
10312
10313         PR target/45800
10314         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
10315         volatile MEMs.
10316
10317 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10318
10319         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
10320         attributes on methods.
10321          (c_parser_objc_method_definition): Handle attributes.
10322         (c_parser_objc_methodproto): Likewise.
10323         (c_parser_objc_maybe_method_attributes): New.
10324         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
10325         missing definition, similar to that in ObjC++.
10326
10327 2010-09-28  Richard Henderson  <rth@redhat.com>
10328
10329         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
10330         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10331         (CONFIG_SJLJ_EXCEPTIONS): Remove.
10332         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
10333         (STACK_CHECK_PROTECT): Likewise.
10334         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
10335         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
10336         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
10337         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
10338         (dwarf2out_assembly_start): Likewise.
10339         * except.c (init_eh): Use targetm.except_unwind_info.
10340         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
10341         (output_one_function_exception_table): Likewise.
10342         * final.c: Unconditionally include dwarf2out.h.
10343         (final_start_function): Unconditionally call dwarf2out routines.
10344         (final_end_function, final_scan_insn): Likewise.
10345         * function.c (expand_function_end): Use targetm.except_unwind_info.
10346         * opts.c (decode_options): Use targetm.except_unwind_info.
10347         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
10348         * target.def (debug_unwind_info, except_unwind_info): New.
10349         * target.h (enum unwind_info_type): New.
10350         * targhooks.c (default_debug_unwind_info): New.
10351         (default_except_unwind_info): New.
10352         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
10353         * targhooks.h: Declare them.
10354         * tree-tailcall.c: Include "target.h"
10355         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
10356         * Makefile.in (tree-tailcall.o): Update.
10357         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
10358         (lhd_gcc_personality): Likewise.
10359
10360         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
10361         (TARGET_EXCEPT_UNWIND_INFO): New.
10362         (DWARF2_UNWIND_INFO): Update.
10363         (TARGET_DEBUG_UNWIND_INFO): New.
10364         * doc/tm.texi: Rebuild.
10365
10366         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
10367         targetm.except_unwind_info.
10368
10369         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
10370         (arm_except_unwind_info): New.
10371         (arm_compute_func_type): Use it.
10372         (arm_expand_prologue, thumb_pushpop): Likewise.
10373         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
10374         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
10375         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
10376         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
10377         (DWARF2_UNWIND_INFO): Remove.
10378         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10379         (ARM_EABI_UNWIND_TABLES): Remove.
10380
10381         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
10382         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
10383         (ia64_except_unwind_info): New.
10384         (ia64_output_function_prologue): Use it.
10385         (ia64_add_bundle_selector_before): Likewise.
10386         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
10387         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
10388         (TARGET_UNWIND_INFO): Remove.
10389
10390         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
10391
10392 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10393
10394         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
10395         (c_parser_objc_protocol_definition): Likewise.
10396         (c_parser_external_declaration): Provide dummy attribute arguments.
10397         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
10398         (c_parser_objc_class_definition): Handle attributes.
10399         (c_parser_objc_protocol_definition): Likewise.
10400
10401 2010-09-28  Tobias Burnus  <burnus@net-b.de>
10402
10403         PR fortran/40569
10404         PR fortran/40568
10405         * toplev.h (save_decoded_options, save_decoded_options_count):
10406         New global variables.
10407         * toplev.c (save_decoded_options, save_decoded_options_count):
10408         Export variables.
10409
10410 2010-09-28  Ian Lance Taylor  <iant@google.com>
10411
10412         * config/i386/i386.c (ix86_supports_split_stack): Test
10413         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
10414
10415 2010-09-28  Ian Lance Taylor  <iant@google.com>
10416
10417         PR target/45815
10418         * opts.c (decode_options): Don't test whether the target supports
10419         split stack if flag_split_stack == 0.
10420
10421 2010-09-28  Jan Hubicka  <jh@suse.cz>
10422
10423         * builtin-attrs.def (ATTR_LEAF): New attribute.
10424         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
10425         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
10426         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
10427         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
10428         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
10429         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
10430         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
10431         * sync-builtins.def: Annotate all builtins by leaf.
10432         * omp-builtins.def: Annotate all builtins by leaf.
10433         * builtins.def: Annotate relevant builtins with leaf attribute.
10434         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10435         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
10436         leaf.
10437
10438 2010-09-28  Jan Hubicka  <jh@suse.cz>
10439
10440         * tree-ssa-ccp.c (fold_ctor_reference): New function.
10441         (fold_const_aggregate_ref): Use it.
10442         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
10443         into external static.
10444
10445 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10446
10447         PR target/44452
10448         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
10449         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
10450         (ix86_solaris_return_in_memory): Remove.
10451         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
10452         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10453         (TARGET_SUBTARGET_DEFAULT): Redefine.
10454         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
10455         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10456         (TARGET_SUBTARGET_DEFAULT): Redefine.
10457         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
10458         -mvect8-ret-in-mem.
10459         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
10460
10461 2010-09-29  Alan Modra  <amodra@gmail.com>
10462
10463         PR target/45807
10464         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
10465         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
10466         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
10467         Delete.
10468         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
10469         (rs6000_emit_prologue): Don't just create frame save info for r2,
10470         actually save r2.
10471
10472 2010-09-28  Richard Henderson  <rth@redhat.com>
10473
10474         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
10475         when 8 bytes are requested.
10476
10477 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10478
10479         * config/avr/avr.c (expand_prologue): Set
10480         current_function_static_stack_size.
10481
10482 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10483
10484         * config/alpha/alpha.md: Change the initial condition of the
10485         probing loop.
10486
10487 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
10488
10489         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
10490         Split from *avx_<maxmin:code><mode>3.
10491         (*avx_<smaxmin:code><mode>3): Ditto.
10492         * config/i386/i386.md (maxmin): Remove code iterator.
10493
10494 2010-09-27  Ian Lance Taylor  <iant@google.com>
10495
10496         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
10497         requires assembler support for CFI directives.
10498
10499 2010-09-27  Richard Henderson  <rth@redhat.com>
10500
10501         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
10502
10503 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10504
10505         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
10506         that AFTER is not in the range FROM..TO, inclusive.
10507
10508 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10509             Bernd Schmidt  <bernds@codesourcery.com>
10510
10511         PR rtl-optimization/45792
10512         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
10513         If not all insns are to be merged, for each edge, stash the
10514         next candidate after the to-be-merged insns before doing the
10515         merge, and use them for the retry at the new insertion point.
10516         Handle CC0 targets when retrying.
10517
10518 2010-09-27  Ian Lance Taylor  <iant@google.com>
10519
10520         * common.opt (fsplit-stack): New option.
10521         * opts.c (decode_options): Set flag_split_stack to final value.
10522         * target.def (supports_split_stack): New hook.
10523         * gcc.c (STACK_SPLIT_SPEC): Define.
10524         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
10525         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
10526         (Code Gen Options): Document -fsplit-stack.
10527         * doc/extend.texi (Function Attributes): Mention no_split_stack.
10528         (Function Attributes): Document no_split_stack.
10529         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
10530         TARGET_SUPPORTS_SPLIT_STACK.
10531         * doc/tm.texi: Rebuild.
10532         * function.c (thread_prologue_and_epilogue_insns): If
10533         flag_split_stack, add split stack prologue.
10534         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
10535         * varasm.c (saw_no_split_stack): New static variable.
10536         (assemble_start_function): Set saw_no_split_stack if the function
10537         has the no_split_stack attribute.
10538         (file_end_indicate_split_stack): New function.
10539         * output.h (file_end_indicate_split_stack): Declare.
10540         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
10541         and function.
10542         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
10543         routines.
10544         * config/i386/i386.c (ix86_option_override_internal): Don't set
10545         expand_builtin_va_start to NULL if -fsplit-stack.
10546         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
10547         -fsplit-stack.
10548         (ix86_va_start): If -fsplit-stack, get overflow pointer from
10549         scratch register set by prologue.
10550         (ix86_code_end): If -fsplit-stack, call
10551         file_end_indicate_split_stack.
10552         (ix86_supports_split_stack): New static function.
10553         (SPLIT_STACK_AVAILABLE): Define.
10554         (split_stack_prologue_scratch_regno): New static function.
10555         (split_stack_fn): New static variable.
10556         (ix86_expand_split_stack_prologue): New function.
10557         (ix86_live_on_entry): New static function.
10558         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
10559         (output_pic_addr_const): Likewise.
10560         (i386_asm_output_addr_const_extra): Likewise.
10561         (ix86_expand_call): Change return type to rtx.  Return the new
10562         call instruction.
10563         (TARGET_SUPPORTS_SPLIT_STACK): Define.
10564         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10565         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
10566         (split_stack_prologue, split_stack_return): New insns.
10567         (split_stack_space_check): New insn.
10568         * config/i386/i386.h (struct machine_function): Add
10569         split_stack_varargs_pointer field.
10570         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
10571         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10572         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10573         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10574         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
10575         Declare.
10576         (ix86_expand_call): Update declaration.
10577
10578 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10579
10580         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
10581         code.  Added byref, which was missing in the list of codes.
10582         Explain that enumeration values are encoded as the integer type
10583         that the compiler uses to store them.  Explain and make examples
10584         of how 'const' interacts with pointers, and the complication of
10585         the encoding of 'const char *'.
10586         (Legacy type encoding): New subsection, explaining that GCC emits
10587         incorrect type encodings for the NeXT runtime for compatibility
10588         reasons.
10589         (@@encode): New subsection, explaining @encode and particularly
10590         that protocol qualifiers are not recognized inside an @encode()
10591         expression.
10592         (Method signatures): New subsection, explaining how method
10593         signatures are encoded.
10594
10595 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10596
10597         Merge from 'apple/trunk' branch on FSF servers.  Removed small
10598         change in build_conditional_expr that had been added when fixing
10599         PR objc/27377 and which did the same check in a less complete way.
10600
10601         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
10602
10603         Radar 4229905
10604         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
10605         looking for objective-c common pointer types.
10606
10607         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
10608
10609         Radar 4154928
10610         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
10611         use their ObjC common type.
10612
10613 2010-09-27  Richard Guenther  <rguenther@suse.de>
10614
10615         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
10616
10617 2010-09-27  Jie Zhang  <jie@codesourcery.com>
10618
10619         * print-tree.c (print_node): Print in-constant-pool.
10620
10621 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
10622
10623         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
10624         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
10625         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
10626         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
10627
10628 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10629
10630         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
10631         from pro_epilogue_adjust_stack_<mode>_{1,2}.
10632         (pro_epilogue_adjust_stack_<mode>_add): Rename from
10633         pro_epilogue_adjust_stack_<mode>_3.
10634         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
10635         renamed pro_epilogue_adjust_stack_{si,di}_add.
10636         (ix86_expand_prologue): Use indirect functions.  Update for renamed
10637         pro_epilogue_adjust_stack_{si,di}_sub.
10638
10639 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10640
10641         * config/i386/i386.md (movmsk_df): New insn.
10642         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
10643         sequence for TARGET_SSE_MATH.
10644
10645 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
10646
10647         * config/mips/mips.c (mips_builtin_decls): Declare.
10648         (mips_init_builtins): Store function declarations in
10649         mips_builtin_decls.
10650         (mips_builtin_decl): New function.
10651         (TARGET_BUILTIN_DECL): Define.
10652
10653 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
10654             Richard Henderson  <rth@redhat.com>
10655
10656         * config/i386/cygwin.asm: Include auto-host.h.
10657         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
10658         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
10659         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
10660         alignment code from the 64-bit path.  Use gas local labels.
10661         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
10662         from _di_2.  Remove the useless constant integer argument.
10663         (pro_epilogue_adjust_stack_<mode>_3): New.
10664         (allocate_stack_worker_probe_<mode>): Macroize from
10665         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
10666         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
10667         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
10668         (__chkstk_ms): New function.
10669         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
10670         * config/i386/t-interix: Likewise.
10671         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
10672         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
10673         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
10674         * configure, config.in: Rebuild.
10675
10676 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
10677
10678         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
10679         statements because of the return slot optimization.
10680
10681 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
10682
10683         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
10684         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
10685         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10686         (class_likely_spilled_p): Rename to...
10687         (avr_class_likely_spilled_p): ...this. Make static. Change argument
10688         type to reg_class_t.
10689
10690 2010-09-24  Jan Hubicka  <jh@suse.cz>
10691
10692         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
10693         (lto_symtab_resolve_symbols): Set it.
10694         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
10695         store resolution field in cgraph/varpool.
10696         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
10697         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
10698         (cgraph_dump_node): Drop used_from_object_file.
10699         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
10700         (cgraph_function_body_availability): Use decl_replaceable_p.
10701         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
10702         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
10703         cgraph_used_from_object_file_p.
10704         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
10705         cgraph_used_from_object_file_p.
10706         (resolution_used_from_other_file_p): New functoin.
10707         (cgraph_used_from_object_file_p): New predicate.
10708         * cgraph.h: Include plugin-api.h
10709         (struct cgraph_local_info): Remove used_from_object_file.
10710         (struct cgraph_node): Add resolution field.
10711         (struct varpool_node): Likewise; remove used_from_object_file;
10712         reove const_value_known.
10713         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
10714         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
10715         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10716         varpool_used_from_object_file_p): Declare.
10717         (varpool_get_node, varpool_extra_name_alias): Update prototype.
10718         * tree.h (DECL_REPLACEABLE_P): Remove.
10719         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
10720         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
10721         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10722         input_overwrite_node, input_node, input_varpool_node): Stream
10723         resolution.
10724         * expr.c (expand_expr_real_1): Use const_value_known_p
10725         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
10726         const_value_known.
10727         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
10728         (function_and_variable_visibility): Set resolution for local vars
10729         and functions; use varpool_used_from_object_file_p.
10730         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
10731         static functions.
10732         (default_binds_local_p_1): Use resolutoin info.
10733         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
10734         * varpool.c (varpool_get_node): Constify.
10735         (const_value_known_p): Do not use vnode->const_value_known;
10736         use decl_replaceable_p.
10737         (varpool_finalize_decl): Do not set const_value_known.
10738         (cgraph_variable_initializer_availability): Use decl_replaceable_p
10739         (varpool_extra_name_alias): Return new node.
10740         (varpool_used_from_object_file_p): New function.
10741
10742 2010-09-24  Richard Henderson  <rth@redhat.com>
10743
10744         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
10745         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
10746         (do_spill): Use REG_CFA_OFFSET.
10747         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
10748         as appropriate.
10749         (ia64_expand_epilogue): Likewise.
10750         (process_set): Split into ...
10751         (process_cfa_adjust_cfa): this,
10752         (process_cfa_register): this,
10753         (process_cfa_offset): and this new function.
10754         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
10755         instead of REG_FRAME_RELATED_EXPR.
10756
10757 2010-09-24  Olivier Hainque  <hainque@adacore.com>
10758
10759         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
10760
10761 2010-09-24  Jan Hubicka  <jh@suse.cz>
10762
10763         * doc/extend.texi: (attribute leaf): Document.
10764         * tree.c (local_define_builtin): Handle ECF_LEAF.
10765         (build_common_builtin_nodes): Set ECF_LEAF where needed.
10766         * tree.h (ECF_LEAF): New.
10767         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
10768         overwrittable and unavailable functions.
10769         (ipa_init): Put all_module_statics into optimization_summary_obstack.
10770         (copy_global_bitmap): Do not copy all_module_statics.
10771         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
10772         (propagate): Handle overwritable and unavailable leaf functions;
10773         initialize global info for overwritable and unavailable leaf functions;
10774         do not free all module statics.
10775         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
10776         local statics.
10777         * calls.c (flags_from_decl_or_type): Handle leaf.
10778         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
10779         abnormal gotos.
10780
10781 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
10782
10783         * gengtype.c: Reindented.
10784         * gengtype.h: Reindented.
10785         * gengtype-parse.c: Reindented.
10786
10787 2010-09-24  Jan Hubicka  <jh@suse.cz>
10788
10789         PR tree-optimization/45738
10790         PR tree-optimization/45741
10791         * expr.c (string_constant): Allow CONST_DECL too;
10792         check that DECL_INITIAL is set.
10793         * varpool.c (const_value_known_p): Only look into VAR_DECL
10794         and CONST_DECL.
10795
10796 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * common.opt (undef): New.
10799
10800 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
10801
10802         PR middle-end/45234
10803         * rtl.h (enum global_rtl_index): Add
10804         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
10805         (LAST_VIRTUAL_POINTER_REGISTER): Define.
10806         (virtual_preferred_stack_boundary_rtx,
10807         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
10808         (LAST_VIRTUAL_REGISTER): Increase by one.
10809         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
10810         instead of LAST_VIRTUAL_REGISTER.
10811         * function.c (instantiate_new_reg): Handle
10812         virtual_preferred_stack_boundary_rtx.
10813         * emit-rtl.c (init_virtual_regs): Handle
10814         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10815         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
10816         * explow.c (round_push): If crtl->preferred_stack_boundary
10817         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
10818         virtual_preferred_stack_boundary_rtx alignment instead of
10819         crtl->preferred_stack_boundary alignment.
10820         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
10821         macros.  Never decrease crtl->preferred_stack_boundary,
10822         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
10823         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
10824         stack_pointer_delta in dynamic allocation, even when size
10825         is constant.
10826         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
10827         macro.
10828         * print-rtl.c (print_rtx): Handle
10829         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10830         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
10831         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
10832         * config/frv/frv.c (frv_emit_movsi): Likewise.
10833         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
10834         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
10835         Likewise.
10836
10837         Revert:
10838         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10839
10840         PR middle-end/45234
10841         * calls.c (expand_call): Make sure that all variable sized
10842         adjustments are multiple of preferred stack boundary after
10843         stack alignment.
10844
10845 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
10846             Dominique Dhumieres  <dominiq@lps.ens.fr>
10847
10848         PR bootstrap/45751
10849         * config/darwin-driver.c (darwin_default_min_version):
10850         Adjust size passed to memcpy in two places.
10851
10852 2010-09-24  Richard Guenther  <rguenther@suse.de>
10853
10854         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
10855         Make sure to not call set_type_context with error_mark_node.
10856         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
10857
10858 2010-09-24  Richard Guenther  <rguenther@suse.de>
10859
10860         * Makefile.in (OBJS-onestep): Remove.
10861         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
10862         (libbackend.a): Remove onestep support.
10863         (libbackend.o): Remove.
10864         * configure.ac (--enable-intermodule): Remove.
10865         * configure: Regenerate.
10866
10867 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
10868
10869         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
10870         reaching the end of a block if it occurs at a DEBUG_INSN.
10871
10872 2010-09-09  Tristan Gingold  <gingold@adacore.com>
10873
10874         PR target/44242
10875         * config/vms/vms-crt0-64.c: Removed.
10876         * config/vms/vms-crt0.c: Removed.
10877         * config/vms/vms-psxcrt0-64.c: Removed.
10878         * config/vms/vms-psxcrt0.c: Removed.
10879         * config/vms/vms-ucrt0.c: New file.
10880         * config/vms/t-vms64: Removed.
10881         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
10882         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
10883         * config.gcc (alpha-dec-vms): Use t-vms.
10884
10885 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10886
10887         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
10888         underfull hbox in DVI output.
10889         (-fobjc-class-cxx-cdtors): Same change.
10890         (-fobjc-exceptions): Tidied up documentation.  Explain what the
10891         option does, but moved the (lenghty) description of the exception
10892         syntax into objc.texi.
10893         (-fobjc-gc): Explain that the option is not useful with the GNU
10894         runtime.
10895         (-fzero-link): Explain that the GNU runtime always works in
10896         "zero-link" mode.
10897         * doc/objc.texi: All sections: simplified @node declarations
10898         removing specification of next, previous, up node.
10899         (Objective-C): Updated introduction.
10900         (Garbage Collection): Updated.  The bohem-gc library is now
10901         included in gcc itself.  Mention that this section only applies to
10902         the GNU Objective-C runtime.
10903         (compatibility_alias): Small tidy up.
10904         (Exceptions): New section mostly containing text previously in the
10905         description of the -fobjc-exception command-line option.
10906         (Synchronization): Same.
10907
10908 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
10909
10910         * config/i386/i386.md (ix86_code_end): Move the initialization of
10911         xops array near the consumer.  Use AX_REG and SP_REG instead of
10912         numerical constants.
10913
10914 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10915
10916         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
10917         method [methodname]' for an Objective-C method instead of the less
10918         satisfactory 'too many arguments to function' (with no method name).
10919
10920 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
10921
10922         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
10923         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
10924         (execute_update_addresses_taken): Remove parameter.  Execute the
10925         optimization unconditionally.
10926         * passes.c (execute_function_todo): Call execute_update_addresses_taken
10927         unconditionally if TODO_rebuild_alias is set, else only when optimizing
10928         if TODO_update_address_taken is set.
10929
10930 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
10931
10932         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10933         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
10934         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10935         (arm_output_addr_const_extra): Make static.
10936
10937 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
10938
10939         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
10940         define as unspec_volatile.
10941         ("nops"): Define as unspec_volatile. Use fputs to write to
10942         asm_out_file directly.  Output NOPs on separate lines using while loop.
10943         * config/i386/i386.c (ix86_code_end): Use fputs to write to
10944         asm_out_file directly.  Output NOPs on separate lines using while loop.
10945
10946 2010-09-23  Richard Guenther  <rguenther@suse.de>
10947
10948         PR tree-optimization/45565
10949         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
10950         Make sure to adjust the fndecl before replacing the stmt.
10951
10952 2010-09-23  Richard Guenther  <rguenther@suse.de>
10953
10954         PR middle-end/45750
10955         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
10956         gimplifying MEM_REF.
10957
10958 2010-09-23  Alan Modra  <amodra@gmail.com>
10959
10960         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
10961         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
10962
10963 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
10964
10965         PR rtl-optimization/44374
10966         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
10967         * df-core.c (df_set_bb_dirty): Set it.
10968         * ifcvt.c (find_memory): Remove function.
10969         (dead_or_predicable): Use can_move_insns_across.
10970         * df.h (can_move_insns_across): Declare function.
10971         * cfgcleanup.c (block_was_dirty): New static variable.
10972         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
10973         than df_get_bb_dirty.
10974         (try_head_merge_bb): New static function.
10975         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
10976         is set.
10977         * df-problems.c: Include "target.h"
10978         (df_simulate_find_uses): New static function.
10979         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
10980         (find_memory, find_memory_store): New static functions.
10981         (can_move_insns_across): New function.
10982         * Makefile.in (df-problems.o): Update dependencies.
10983
10984 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
10985
10986         PR java/44095
10987         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
10988         is specified and the suffix of the file isn't ".c".
10989         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10990
10991 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10992
10993         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
10994         * doc/cppopts.texi: Fix markup of index entry.
10995         * doc/extend.texi (Constructing Calls): Fix markup of
10996         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
10997         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
10998         (Vague Linkage, C++ Attributes): Fix markup of index entries and
10999         keywords.
11000         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
11001         avoid long lines.
11002         (C Dialect Options, C++ Dialect Options, Warning Options)
11003         (Debugging Options, Spec Files, Darwin Options)
11004         (i386 and x86-64 Options, MIPS Options)
11005         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11006         index entries, avoid abbreviations, allow URLs to wrap, avoid
11007         long lines, avoid overlong pages from long @itemx lists.
11008         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11009         * doc/standards.texi (Standards): Likewise.
11010         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11011
11012 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11013
11014         * opts-common.c (prune_options): Make static.  Work with decoded
11015         options.
11016         (decode_cmdline_options_to_array): Call prune_options.  Don't
11017         resize option array here.
11018         * opts.h (prune_options): Remove prototype.
11019         * gcc.c (process_command): Take decoded options; don't call
11020         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
11021         (main): Call decode_cmdline_options_to_array here instead of
11022         prune_options.  Update call to process_command.
11023         * config/darwin-driver.c: Include opts.h.
11024         (darwin_default_min_version): Work with decoded options.  Don't
11025         handle -b or -V here.
11026         * config/darwin.h (darwin_default_min_version): Update prototype.
11027         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11028         darwin_default_min_version.
11029         * config/i386/cygwin.h (mingw_scan): Update prototype.
11030         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11031         * config/i386/cygwin1.c: Include opts.h.
11032         (mingw_scan): Work with decoded options.
11033         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11034         * config/t-darwin (darwin-driver.o): Update dependencies.
11035
11036 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11037
11038         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11039         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11040         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11041         -force-link, -force-link=, -language, -language=,
11042         -library-directory, -library-directory=, -no-canonical-prefixes,
11043         -no-standard-libraries, -no-warnings, -optimize, -output,
11044         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11045         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11046         -print-file-name=, -print-libgcc-file-name,
11047         -print-multi-directory, -print-multi-lib,
11048         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11049         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11050         -profile, -save-temps, -shared, -specs, -specs=, -static,
11051         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11052         symbolic): New.
11053         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11054         * gcc.c (A Short Introduction to Adding a Command-Line Option):
11055         Remove comment.
11056         (cc1_options): Correct specs for passing down --help,
11057         --target-help and --help=*.  Add spec for passing down --version.
11058         (struct option_map, option_map, target_option_translations,
11059         translate_options): Remove.
11060         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11061         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11062         OPT_fhelp_ and OPT_ftarget_help.
11063         (process_command): Don't call translate_options.  Call
11064         decode_cmdline_options_to_array before checking for
11065         -no-canonical-prefixes using decoded options.
11066         * opts-common.c (tm.h): Update comment on #include.
11067         (find_opt): Allow abbreviations of long options.
11068         (struct option_map, option_map): New.
11069         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11070         and -mno handling.
11071         (target_option_translations): New.
11072         (decode_cmdline_options_to_array): Handle
11073         TARGET_OPTION_TRANSLATE_TABLE in driver.
11074         * opts.c (common_handle_option): Don't handle OPT_fhelp,
11075         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11076
11077 2010-09-22  Richard Guenther  <rguenther@suse.de>
11078
11079         * tree-inline.c (optimize_inline_calls): Schedule cleanups
11080         only if we inlined something.  Block compaction and conditional
11081         folding are done by cfg cleanup.  Schedule update-address-taken.
11082         (tree_function_versioning): Remove redundant call to number_blocks.
11083         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11084         folding is done by cfg cleanup.
11085         * passes.c (init_optimization_passes): Remove update-address-taken
11086         pass after IPA inlining.
11087
11088 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11089
11090         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
11091         to update conditions. Fix reg_mode[] check.
11092
11093 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
11094
11095         * config/picochip/picochip.md (movhicc): Use expand to check whether
11096         movhicc is available and split it after reload.
11097
11098 2010-09-22  Richard Guenther  <rguenther@suse.de>
11099
11100         * tree-ssanames.c (release_dead_ssa_names): Do not remove
11101         callee edges here.
11102         * passes.c (init_optimization_passes): Remove early CFG cleanup.
11103         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
11104         (pass_cleanup_cfg): Likewise.
11105         (execute_fixup_cfg): Cleanup.
11106         * tree-pass.h (pass_cleanup_cfg): Remove.
11107
11108 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11109
11110         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
11111         builtins if it is true.
11112         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
11113         parameter.
11114
11115 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11116
11117         * tree-sra.c (struct access): New field grp_no_warning.
11118         (create_access_replacement): Set TREE_NO_WARNING according to
11119          grp_no_warning.
11120         (create_artificial_child_access): Use build_ref_for_model and set
11121         grp_no_warning if build_user_friendly_ref_for_offset fails.
11122         (propagate_subaccesses_across_link): Likewise.
11123
11124 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11125
11126         PR target/35664
11127         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
11128         ('f'): Likewise.
11129
11130 2010-09-22  Tristan Gingold  <gingold@adacore.com>
11131
11132         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
11133
11134 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
11135
11136         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
11137         * config/i386/i386.c (decide_alg): Update for rename.
11138
11139 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
11140
11141         PR rtl-optimization/45739
11142         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
11143         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
11144
11145 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
11146
11147         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
11148         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
11149         Remove.
11150         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
11151         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11152
11153 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11154
11155         PR objc/23710
11156         * c-parser.c (c_parser_objc_method_definition): Check the return
11157         value of objc_start_method_definition and if false is returned,
11158         parse the method definition but emit no code.
11159
11160 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11161
11162         PR objc/25965
11163         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
11164         call objc_get_interface_ivars ().
11165
11166 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
11167
11168         PR target/45694
11169         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
11170         static chain-register is used for 64-bit.
11171
11172 2010-09-21  Richard Guenther  <rguenther@suse.de>
11173
11174         * dwarf2out.c (is_cu_die): New function.
11175         (add_pubtype): Use it.
11176         (gen_subprogram_die): Likewise.
11177         (gen_struct_or_union_type_die): Likewise.
11178         (dwarf2out_finish): Likewise.
11179         (comp_unit_die): Rename to ...
11180         (single_comp_unit_die): ... this.
11181         (comp_unit_die): New function lazily constructing and
11182         returning single_comp_unit_die.
11183         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
11184         base_type_die, subrange_type_die, modified_type_die,
11185         lower_bound_default, add_bound_info, add_prototyped_attribute,
11186         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
11187         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
11188         force_decl_die, gen_namespace_die, dwarf2out_decl,
11189         dwarf2out_start_source_file, dwarf2out_end_source_file,
11190         prune_unused_types, dwarf2out_finish): Use it.
11191         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
11192         the global list of translation-unit decls.
11193         (dwarf2out_init): Do not create single_comp_unit_die here.
11194         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
11195
11196 2010-09-21  Richard Guenther  <rguenther@suse.de>
11197
11198         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
11199         for bool for C++.
11200
11201 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
11202
11203         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
11204         (qhs_extenddi_cstr): Likewise.
11205         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
11206         them for the source operand.
11207
11208 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
11209
11210         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
11211         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
11212         (ix86_split_ashr): Ditto.
11213         (ix86_split_lshr): Ditto.
11214
11215 2010-09-21  Richard Guenther  <rguenther@suse.de>
11216
11217         PR tree-optimization/45580
11218         * tree-ssa-propagate.c (substitute_and_fold): Always replace
11219         regular uses.
11220         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
11221         virtuals fold the call into a regular indirect one.
11222
11223 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11224
11225         PR rtl-optimization/42775
11226         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
11227         scheduling is enabled.
11228
11229 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11230
11231         PR rtl-optimization/45728
11232         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
11233         gen_lowpart_common first and if that fails, force_reg first
11234         before calling gen_lowpart.
11235
11236         PR middle-end/45678
11237         * cfgexpand.c (expand_one_stack_var_at): Use
11238         crtl->max_used_stack_slot_alignment as max_align, instead
11239         of maximum of that and PREFERRED_STACK_BOUNDARY.
11240         Don't call update_stack_alignment.
11241
11242 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11243
11244         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
11245         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
11246         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
11247         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
11248         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
11249         (build_nonstandard_integer_type): Likewise.
11250         (build_range_type_1): New function, built from...
11251         (build_range_type): ...this.  Call build_range_type_1.
11252         (build_nonshared_range_type): New function.
11253         (build_array_type_1): New function, built from...
11254         (build_array_type: ...this.  Call build_array_type_1.
11255         (build_nonshared_array_type): New function.
11256         * tree.h (build_nonshared_range_type): Declare.
11257         (build_nonshared_array_type): Likewise.
11258
11259 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
11260
11261         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
11262         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11263         (arm_class_likely_spilled_p): New function.
11264
11265 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
11266
11267         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
11268         indirect functions.
11269         (ix86_split_ashl): Ditto.
11270         (ix86_split_ashr): Ditto.
11271         (ix86_split_lshr): Ditto.
11272         (ix86_adjust_counter): Ditto.
11273
11274 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
11275
11276         * c-family/c-common.h (constant_string_class): Documented with
11277         comment identical to the one already in c-common.c.
11278
11279 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11280
11281         * dwarf2out.c (any_cfis_emitted): New static variable.
11282         (add_fde_cfi): Set it.
11283         (dwarf2out_frame_debug): Clear it before processing,
11284         if it is set afterwards, flush any queued reg saves.
11285
11286         PR debug/45124
11287         * dwarf2out.c (add_accessibility_attribute): Assume
11288         DW_ACCESS_private as the default for dwarf_version > 2
11289         and DW_TAG_class_type parent.
11290         (gen_inheritance_die): Assume DW_ACCESS_public as the default
11291         for dwarf_version > 2 and parent other than DW_TAG_class_type.
11292
11293 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11294
11295         PR target/45726
11296         * arm.md (arm_movt): Only enable on machines with MOVT.
11297
11298 2010-09-20  Jie Zhang  <jie@codesourcery.com>
11299
11300         * config/arm/arm.c (arm_address_offset_is_imm): New.
11301         (arm_early_store_addr_dep): New.
11302         (arm_early_load_addr_dep): New.
11303         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
11304         (arm_early_load_addr_dep): Declare.
11305         (arm_address_offset_is_imm): Declare.
11306         * config/arm/cortex-m4.md: New file.
11307         * config/arm/cortex-m4-fpu.md: New file.
11308         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
11309         (attr generic_sched): Exclude cortexm4.
11310         (attr generic_vfp): Exclude cortexm4.
11311
11312 2010-09-20  Richard Guenther  <rguenther@suse.de>
11313
11314         PR middle-end/45704
11315         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
11316
11317 2010-09-20  Jan Hubicka  <jh@suse.cz>
11318
11319         PR tree-optimize/45605
11320         * cgraph.h (const_value_known_p): Declare.
11321         (varpool_decide_const_value_known): Remove.
11322         * tree-ssa-ccp.c (get_base_constructor): Use it.
11323         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
11324         * expr.c (string_constant): Likewise.
11325         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
11326         * ipa.c (ipa_discover_readonly_nonaddressable_var,
11327         function_and_variable_visibility): Likewise.
11328         * gimplify.c (gimplify_call_expr): Likewise.
11329         * gimple-fold.c (get_symbol_constant_value): Likewise.
11330         * varpool.c (varpool_decide_const_value_known): Replace by...
11331         (const_value_known_p): ... this one; handle other kinds of DECLs
11332         too and work for automatic vars.
11333         (varpool_finalize_decl): Use const_value_known_p.
11334
11335 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11336
11337         PR target/45726
11338         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
11339
11340 2010-09-20  Richard Guenther  <rguenther@suse.de>
11341
11342         PR tree-optimization/45705
11343         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
11344
11345 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11346
11347         PR rtl-optimization/45695
11348         * combine.c (try_combine): When splitting a two set pattern,
11349         make sure the pattern which will be put into i2 doesn't use REGs
11350         or MEMs set by insns in between i2 and i3.
11351
11352 2010-09-19  Jan Hubicka  <jh@suse.cz>
11353
11354         PR lto/44246
11355         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
11356         processing same node twice.
11357
11358 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
11359
11360         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
11361         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11362         (bfin_class_likely_spilled_p): New function
11363
11364 2010-09-19  Ira Rosen  <irar@il.ibm.com>
11365
11366         PR tree-optimization/45714
11367         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
11368         created in vectorizable_call instead of the original statement in
11369         def stmt updates.
11370
11371 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
11372
11373         * config/i386/i386-protos.h (split_double_mode): New prototype.
11374         (split_di, split_ti): Remove prototypes.
11375         * config/i386/i386.c (split_double_mode): New function.
11376         (split_di, split_ti): Remove.
11377         (ix86_expand_branch): Use split_double_mode.
11378         (ix86_split_to_parts): Ditto.
11379         (ix86_split_ashl): Ditto.
11380         (ix86_split_ashr): Ditto.
11381         (ix86_split_lshr): Ditto.
11382         (ix86_force_to_memory): Ditto.
11383         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
11384
11385 2010-09-18  Jan Hubicka  <jh@suse.cz>
11386
11387         PR tree-optimization/45453
11388         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
11389         virtual functions are reachable.
11390         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
11391         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
11392         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
11393         when modifying function.
11394
11395 2010-09-18  Jan Hubicka  <jh@suse.cz>
11396
11397         PR tree-optimization/45605
11398         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
11399         * gimple-fold.c (static_object_in_other_unit_p): New function.
11400         (canonicalize_constructor_val): Use it.
11401         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
11402         returning NULL.
11403         (gimple_fold_obj_type_ref_known_binfo): Use
11404         static_object_in_other_unit_p.
11405
11406 2010-09-18  Richard Guenther  <rguenther@suse.de>
11407
11408         PR tree-optimization/45709
11409         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
11410         insertions until after all PHI nodes of the block are processed.
11411
11412 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
11413
11414         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
11415
11416 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
11417
11418         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
11419
11420 2010-09-18  Richard Guenther  <rguenther@suse.de>
11421
11422         PR tree-optimization/45709
11423         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
11424
11425 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11426
11427         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
11428         (dot_deps_stmt): Same.
11429         * graphite-poly.c (dot_lst): Same.
11430         * graphite-scop-detection.c (dot_all_scops): Same.
11431         (dot_scop): Same.
11432
11433 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11434
11435         Revert:
11436         2009-12-16  Ben Elliston  <bje@au.ibm.com>
11437
11438         * tree-data-ref.c (dot_rdg_1): Added back.
11439         (dot_rdg): Same.  Added "#if 0" around system call.
11440
11441 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11442             Richard Henderson  <rth@redhat.com>
11443
11444         * config/i386/i386.c (initial_ix86_tune_features): Add
11445         X86_TUNE_PAD_SHORT_FUNCTION.
11446         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
11447         (ix86_count_insn): New.
11448         (ix86_pad_short_function): Likewise.
11449         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
11450
11451         * config/i386/i386.h (ix86_tune_indices): Add
11452         X86_TUNE_PAD_SHORT_FUNCTION.
11453         (TARGET_PAD_SHORT_FUNCTION): New.
11454
11455         * config/i386/i386.md (UNSPEC_NOPS): New.
11456         (nops): Likewise.
11457
11458 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11459
11460         PR middle-end/45234
11461         * calls.c (expand_call): Make sure that all variable sized
11462         adjustments are multiple of preferred stack boundary after
11463         stack alignment.
11464
11465 2010-09-17  DJ Delorie  <dj@redhat.com>
11466
11467         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
11468         passed an invalid value, print an error instead of ICEing.
11469         (valid_psw_flag): New.
11470         (rx_expand_builtin): Call it for setpsw/clrpsw.
11471         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
11472
11473         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
11474         (bitclr_in_memory): Likewise.
11475         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
11476
11477 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11478
11479         PR middle-end/45678
11480         * cfgexpand.c (update_stack_alignment): New.
11481         (get_decl_align_unit): Use it.
11482         (expand_one_stack_var_at): Call update_stack_alignment.
11483
11484 2010-09-17  Richard Guenther  <rguenther@suse.de>
11485
11486         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
11487         Properly copy the read string.
11488
11489 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
11490
11491         * doc/options.texi (Variable): Document.
11492         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
11493         generate target_flags declarations explicitly.  Don't define
11494         VarExists variables for the driver.
11495         * common.opt (target_flags): New Variable record.
11496         (flag_dump_unnumbered, flag_dump_unnumbered_links,
11497         flag_var_tracking, flag_var_tracking_assignments,
11498         flag_var_tracking_assignments_toggle): Don't mark variables with
11499         VarExists.
11500         * config/i386/i386.c (ix86_isa_flags): Don't define here.
11501         * config/i386/i386.opt (ix86_isa_flags): Define here.
11502         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
11503         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
11504         VarExists.
11505         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
11506         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
11507         Only define for generator programs.
11508         * rtlanal.c (target_flags): Remove.
11509         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
11510         flag_var_tracking_assignments_toggle): Remove.
11511
11512 2010-09-17  Michael Matz  <matz@suse.de>
11513
11514         PR tree-optimization/43432
11515         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11516         Accept backwards consecutive accesses.
11517         (vect_create_data_ref_ptr): If step is negative generate
11518         decreasing IVs.
11519         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
11520         (perm_mask_for_reverse, reverse_vec_elements): New functions.
11521         (vectorizable_load): Handle loads with negative steps when easily
11522         possible.
11523
11524 2010-09-03  Jan Hubicka  <jh@suse.cz>
11525
11526         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
11527
11528 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
11529
11530         * config/v850/v850.c (v850_function_value_regno_p): Make static.
11531         Adjust comments. Declare.
11532         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11533         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
11534
11535 2010-09-17  Richard Guenther  <rguenther@suse.de>
11536
11537         * common.opt (combine): Remove.
11538         * gcc.c (default_compilers): Remove specs testing combine.
11539         The C compilers no longer can combine.
11540         (option_map): Remove -combine.
11541         (display_help): Remove -combine.
11542         (driver_handle_option): Remove OPT_combine handling.
11543         (compile_input_file_p): Remove.
11544         (do_spec): Remove code concerning combine.
11545         (main): Likewise.
11546         * doc/invoke.texi: Remove traces of -combine.
11547         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
11548
11549 2010-09-17  Richard Guenther  <rguenther@suse.de>
11550
11551         PR middle-end/45678
11552         * builtins.c (fold_builtin_memory_op): Always properly adjust
11553         alignment of memory accesses.
11554
11555 2010-09-16  Jan Hubicka  <jh@suse.cz>
11556
11557         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
11558         processing clone.
11559
11560 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
11561
11562         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
11563
11564         * config/i386/i386.c (predict_jump): Add prototype.
11565         (flag_opts): Add -m8bit-idiv.
11566         (ix86_split_idivmod): New.
11567
11568         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
11569         Add 2 splitters for SI/DI mode divide.
11570         (divmod<mode>4_1): New pattern.
11571         (udivmod<mode>4_1): Likewise.
11572         (testdi_ccno_1): Likewise.
11573
11574         * config/i386/i386.opt (m8bit-idiv): New.
11575
11576         * doc/invoke.texi: Document -m8bit-idiv.
11577
11578 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
11579
11580         PR bootstrap/45680
11581         * config/i386/i386.c (min_insn_size): Moved out of the
11582         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
11583
11584 2010-09-16  Jan Hubicka  <jh@suse.cz>
11585
11586         * lto-cgraph.c (lto_output_node): Fix handling of clones.
11587         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
11588         unreachable clones with reachable clones.
11589         * tree-inline.c (copy_bb): Fix sanity checking when producing
11590         unreachable clone.
11591
11592 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
11593
11594         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
11595         (TARGET_MEMORY_MOVE_COST): Define.
11596         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
11597
11598 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
11599
11600         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
11601         maybe_tidy_empty_bb.
11602
11603         Revert:
11604         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
11605         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11606
11607 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11608
11609         * target.def (target_option.optimization): New hook.
11610         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
11611         TARGET_OPTION_OPTIMIZATION hook.
11612         * doc/tm.texi: Regenerate.
11613         * hooks.c (hook_void_int_int): New.
11614         * hooks.h (hook_void_int_int): Declare.
11615         * opts.c: Don't include tm_p.h.
11616         (decode_options): Use targetm.target_option.optimization instead
11617         of OPTIMIZATION_OPTIONS.
11618         * system.h (OPTIMIZATION_OPTIONS): Poison.
11619         * config/arm/arm-protos.h (arm_optimization_options): Remove.
11620         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
11621         (arm_optimization_options): Rename to arm_option_optimization.
11622         Make static.
11623         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
11624         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
11625         (cris_option_optimization): New.
11626         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
11627         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
11628         (crx_option_optimization): New.
11629         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
11630         * config/frv/frv-protos.h (frv_optimization_options): Remove.
11631         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
11632         (frv_optimization_options): Rename to frv_option_optimization.
11633         Make static.
11634         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
11635         * config/h8300/h8300.c (h8300_option_optimization): New.
11636         (TARGET_OPTION_OPTIMIZATION): Define.
11637         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
11638         * config/i386/i386-protos.h (optimization_options): Remove.
11639         * config/i386/i386.c (optimization_options): Rename to
11640         ix86_option_optimization.  Make static.
11641         (TARGET_OPTION_OPTIMIZATION): Define.
11642         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
11643         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
11644         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
11645         (ia64_optimization_options): Rename to ia64_option_optimization.
11646         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
11647         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
11648         commented-out definition.
11649         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
11650         instead of OPTIMIZATION_OPTIONS.
11651         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
11652         (m32r_option_optimization): New.
11653         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
11654         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
11655         Remove.
11656         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
11657         (mcore_option_optimization): New.
11658         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
11659         * config/mep/mep-protos.h (mep_optimization_options): Remove.
11660         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
11661         (mep_optimization_options): Rename to mep_option_optimization.
11662         Make static.  Take unused level and size parameters.
11663         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
11664         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
11665         (mmix_option_optimization): New.
11666         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
11667         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
11668         (pdp11_option_optimization): New.
11669         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
11670         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
11671         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
11672         (optimization_options): Rename to rs6000_option_optimization.
11673         Make static.
11674         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
11675         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
11676         * config/rx/rx.c (rx_set_optimization_options): Rename to
11677         rx_option_optimization.  Make static.  Take unused level and size
11678         parameters.
11679         (TARGET_OPTION_OPTIMIZATION): Define.
11680         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
11681         * config/s390/s390-protos.h (optimization_options): Remove.
11682         * config/s390/s390.c (optimization_options): Rename to
11683         s390_option_optimization.  Make static.  Don't mark size parameter
11684         unused.
11685         (TARGET_OPTION_OPTIMIZATION): Define.
11686         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
11687         * config/sh/sh-protos.h (sh_optimization_options): Remove.
11688         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
11689         (sh_optimization_options): Rename to sh_option_optimization.  Make
11690         static.  Don't mark parameters unused.
11691         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
11692         * config/spu/spu-protos.h (spu_optimization_options): Remove.
11693         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
11694         (spu_optimization_options): Rename to spu_option_optimization.
11695         Make static.
11696         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
11697         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
11698         (v850_option_optimization): New.
11699         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
11700         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
11701         (xtensa_option_optimization): New.
11702         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
11703
11704 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11705
11706         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
11707         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
11708         * doc/tm.texi: Regenerate.
11709         * system.h (OVERRIDE_OPTIONS): Poison.
11710         * target.def (override): Default to hook_void_void.
11711         * targhooks.c (default_target_option_override): Remove.
11712         * genmodes.c, machmode.def: Update comments mentioning
11713         OVERRIDE_OPTIONS.
11714         * config/alpha/alpha-modes.def: Update comment mentioning
11715         alpha_override_options.
11716         * config/alpha/alpha-protos.h (override_options): Remove.
11717         * config/alpha/alpha.c (override_options): Rename to
11718         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
11719         (TARGET_OPTION_OVERRIDE): Define.
11720         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
11721         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
11722         of OVERRIDE_OPTIONS.
11723         * config/arc/arc-protos.h (arc_init): Remove.
11724         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
11725         (arc_init): Rename to arc_option_override.  Make static.
11726         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
11727         (OVERRIDE_OPTIONS): Remove.
11728         * config/arm/arm-protos.h (arm_override_options): Remove.
11729         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
11730         (arm_override_options): Rename to arm_option_override.  Make
11731         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11732         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
11733         * config/arm/arm.md: Update comment referring to arm_override_options.
11734         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11735         instead of OVERRIDE_OPTIONS.
11736         * config/avr/avr-protos.h (avr_override_options): Remove.
11737         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
11738         (avr_override_options): Rename to avr_option_override.  Make static.
11739         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
11740         * config/bfin/bfin-protos.h (override_options): Remove (twice).
11741         * config/bfin/bfin.c (override_options): Rename to
11742         bfin_option_override.  Make static.
11743         (TARGET_OPTION_OVERRIDE): Define.
11744         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
11745         * config/cris/cris-protos.h (cris_override_options): Remove.
11746         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
11747         (cris_override_options): Rename to cris_option_override.  Make static.
11748         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
11749         * config/frv/frv-protos.h (frv_override_options): Remove.
11750         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
11751         (frv_override_options): Rename to frv_option_override.  Make static.
11752         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
11753         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
11754         * config/h8300/h8300.c (h8300_init_once): Rename to
11755         h8300_option_override.  Make static.
11756         (TARGET_OPTION_OVERRIDE): Define.
11757         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
11758         * config/i386/i386-protos.h (override_options): Remove.
11759         * config/i386/i386.c (override_options): Rename to
11760         ix86_option_override_internal.  Make static.  Comments referring
11761         to this function and callers changed.
11762         (ix86_option_override): New.
11763         (TARGET_OPTION_OVERRIDE): Define.
11764         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
11765         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
11766         * config/ia64/ia64.c (ia64_file_start): Update comment referring
11767         to ia64_override_options.
11768         * config/iq2000/iq2000-protos.h (override_options): Remove.
11769         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
11770         (override_options): Rename to iq2000_option_override.  Make static.
11771         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
11772         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
11773         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
11774         (lm32_override_options): Rename to lm32_option_override.  Make static.
11775         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
11776         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
11777         (m32r_option_override): New.
11778         (m32r_init): Update comment.
11779         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
11780         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
11781         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
11782         (m68hc11_override_options): Rename to m68hc11_option_override.
11783         Make static.  Return void.
11784         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
11785         * config/m68k/m68k-protos.h (override_options): Remove.
11786         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
11787         (override_options): Rename to m68k_option_override.  Make static.
11788         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
11789         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
11790         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
11791         (mcore_override_options): Rename to mcore_option_override.  Make
11792         static.
11793         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
11794         * config/mep/mep-protos.h (mep_override_options): Remove.
11795         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
11796         (mep_override_options): Rename to mep_option_override.  Make static.
11797         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
11798         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
11799         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
11800         (mmix_override_options): Rename to mmix_option_override.  Make static.
11801         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
11802         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
11803         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
11804         (mn10300_override_options): Rename to mn10300_option_override.
11805         Make static.
11806         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
11807         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
11808         * config/moxie/moxie.c (moxie_override_options): Rename to
11809         moxie_option_override.  Make static.
11810         (TARGET_OPTION_OVERRIDE): Define.
11811         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
11812         * config/picochip/picochip-protos.h (picochip_override_options):
11813         Remove.  Update comment referring to picochip_override_options.
11814         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
11815         (picochip_override_options): Rename to picochip_option_override.
11816         Make static.  Update comment and definition of
11817         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
11818         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
11819         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11820         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11821         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11822         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11823         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11824         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
11825         instead of OVERRIDE_OPTIONS.
11826         * config/rs6000/rs6000-modes.def: Update comment referring to
11827         rs6000_override_options.
11828         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
11829         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
11830         (rs6000_override_options): Rename to
11831         rs6000_option_override_internal.  Make static.  Commented
11832         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
11833         (rs6000_option_override): New.
11834         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
11835         instead of OVERRIDE_OPTIONS.
11836         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11837         * config/s390/s390-protos.h (override_options): Remove.
11838         * config/s390/s390.c (override_options): Rename to
11839         s390_option_override.  Make static.
11840         (TARGET_OPTION_OVERRIDE): Define.
11841         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
11842         * config/score/score-protos.h (score_override_options): Remove.
11843         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
11844         (score_override_options): Rename to score_option_override.  Make
11845         static.
11846         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
11847         Update comment referring to override_options.
11848         * config/score/score3.c (score3_override_options): Rename to
11849         score3_option_override.
11850         * config/score/score3.h (score3_override_options): Rename to
11851         score3_option_override.
11852         * config/score/score7.c (score7_override_options): Rename to
11853         score7_option_override.
11854         * config/score/score7.h (score7_override_options): Rename to
11855         score7_option_override.
11856         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
11857         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
11858         (sparc_override_options): Rename to sparc_option_override.  Make
11859         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11860         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
11861         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11862         instead of OVERRIDE_OPTIONS.
11863         * config/spu/spu-protos.h (spu_override_options): Remove.
11864         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
11865         (spu_override_options): Rename to spu_option_override.  Make
11866         static.
11867         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
11868         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
11869         OVERRIDE_OPTIONS.
11870         * config/vax/vax-protos.h (override_options): Remove.
11871         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
11872         (override_options): Rename to vax_option_override.  Make static.
11873         Call SUBTARGET_OVERRIDE_OPTIONS.
11874         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
11875         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
11876         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
11877         * config/xtensa/xtensa-protos.h (override_options): Remove.
11878         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
11879         (override_options): Rename to xtensa_option_override.  Make static.
11880         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
11881
11882 2010-09-16  Richard Guenther  <rguenther@suse.de>
11883
11884         PR tree-optimization/45623
11885         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
11886         (get_constraint_for_component_ref): If computing a constraint
11887         for the rhs handle type punning through unions.
11888         (get_constraint_for_address_of): Adjust.
11889         (get_constraint_for_1): Likewise.
11890         (get_constraint_for): Likewise.
11891         (get_constraint_for_rhs): New function.
11892         (do_structure_copy): Adjust.
11893         (make_constraint_to): Likewise.
11894         (handle_const_call): Likewise.
11895         (find_func_aliases): Likewise.
11896         (process_ipa_clobber): Likewise.
11897         (create_variable_info_for): Likewise.
11898
11899 2010-09-16  Ira Rosen  <irar@il.ibm.com>
11900
11901         * tree-vectorizer.c: Fix documentation.
11902         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
11903         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
11904         is_pattern_stmt_p, is_loop_header_bb_p,
11905         stmt_vinfo_set_inside_of_loop_cost,
11906         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
11907         known_alignment_for_access_p): Likewise.
11908         * tree-vect-loop.c: Fix documentation.
11909         (vect_get_cost): Start function name from new line.
11910         * tree-vect-data-refs.c: Fix documentation.
11911         * tree-vect_stmts.c: Likewise.
11912         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
11913         (vectorizable_store): Free vec_oprnds if allocated.
11914         (vectorizable_condition): Initialize several variables to avoid
11915         warnings.
11916         * tree-vect-slp.c: Fix documentation.
11917
11918 2010-09-16  Richard Guenther  <rguenther@suse.de>
11919
11920         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
11921         is TS_TRANSLATION_UNIT_DECL.
11922         (initialize_tree_contains_struct): Adjust.
11923         (all_translation_units): New global vector.
11924         (build_translation_unit_decl): New function.
11925         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
11926         (struct tree_translation_unit_decl): New.
11927         (all_translation_units): Declare.
11928         (union tree_node): Add translation_unit_decl member.
11929         (build_translation_unit_decl): Declare.
11930         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
11931         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
11932         New function.
11933         (pack_value_fields): Call it.
11934         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
11935         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
11936         (lto_output_tree_pointers): Call it.
11937         * lto-streamer-in.c (lto_input_tree_ref): Handle references
11938         to TRANSLATION_UNIT_DECL.
11939         (unpack_ts_translation_unit_decl_value_fields): New function.
11940         (unpack_value_fields): Call it.
11941         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
11942         (lto_input_tree_pointers): Call it.
11943         * lto-streamer.c (check_handled_ts_structures): Adjust.
11944         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
11945         * c-decl.c (all_translation_units): Remove.
11946         (pop_scope): Use build_translation_unit_decl.
11947         (collect_all_refs): Adjust.
11948         (for_each_global_decl): Likewise.
11949         (c_write_global_declarations): Likewise.
11950
11951 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
11952
11953         PR bootstrap/45686
11954         * fold-const.c (fold_checksum_tree): Change slot from const void **
11955         to void **, use CONST_CAST_TREE to store into *slot.
11956
11957 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11958
11959         * config/i386/i386.md: Remove unneeded empty conditions and
11960         preparation statements from expanders.
11961         * config/i386/mmx.md: Ditto.
11962         * config/i386/sse.md: Ditto.
11963
11964 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11965
11966         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
11967
11968 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11969
11970         PR rtl-optimization/45593
11971         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
11972         insns that were in delay slots as stand-alone insns.
11973
11974 2010-09-15  Ian Lance Taylor  <iant@google.com>
11975
11976         * incpath.c (remove_duplicates): If name is not a directory, issue
11977         a warning rather than an error.
11978
11979 2010-09-15  Martin Jambor  <mjambor@suse.cz>
11980
11981         PR middle-end/45644
11982         * tree-sra.c (create_access): Check for bit-fields directly.
11983
11984 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
11985
11986         PR tree-optimization/45633
11987         * tree-cfg.c (verify_gimple_assign_binary): Allow
11988         MINUS_EXPR with lhs and rhs1 pointer vector and
11989         rhs2 sizetype vector.
11990         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
11991         or vector pointer use TER to optimize pointer subtraction.
11992
11993 2010-09-15  Jie Zhang  <jie@codesourcery.com>
11994
11995         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
11996         fcmpd to fcmps.
11997
11998 2010-09-15  Ian Lance Taylor  <iant@google.com>
11999
12000         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12001
12002 2010-09-15  Ian Lance Taylor  <iant@google.com>
12003
12004         * function.c (get_arg_pointer_save_area): Set
12005         arg_pointer_save_area_init to true.
12006
12007 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12008
12009         * tree-sra.c (generate_subtree_copies): Updated comment.
12010         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12011         obtained from the statement iterator instead.
12012         (load_assign_lhs_subreplacements): Removed parameters lhs and
12013         right_offset, which is obtained from top_racc instead.  Parameter lacc
12014         is now expected to be the root of the processed tree rather than root's
12015         first child.  Updated all callers.
12016
12017 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12018
12019         * config/pdp11/pdp11.c (register_move_cost): Rename to
12020         pdp11_register_move_cost.
12021         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12022         pdp11_register_move_cost.
12023         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12024         pdp11_register_move_cost instead of register_move_cost.
12025
12026 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
12027
12028         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12029         pattern for vmovn. Expansion in case of non
12030         -mvectorize-with-neon-quad.
12031         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12032         non- -mvectorize-with-neon-quad case.
12033         (move_lo_quad_<mode>): New expansion to vmov into low part.
12034         (move_hi_quad_<mode>): New expansion to vmov into high part.
12035         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12036         (move_lo_quad_v4sf): Likewise.
12037         (move_lo_quad_v8hi): Likewise.
12038         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12039         low part.
12040         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12041         high part.
12042         * config/arm/iterators.md (ANY128): New mode iterator.
12043         (V_narrow_pack): New mode attribute.
12044         (V_HALF): Add attribute.
12045         (V_DOUBLE): Add attribute.
12046         (V_mode_nunits): Add attribute.
12047
12048 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12049
12050         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12051         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12052
12053 2010-09-15  Olivier Hainque  <hainque@adacore.com>
12054             Jose Ruiz  <ruiz@adacore.com>
12055
12056         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12057         * config/alpha/osf5-unwind.h: New file.
12058
12059 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12060
12061         PR bootstrap/45672
12062         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12063         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12064         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12065
12066 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12067
12068         * c-lang.h (struct lang_type): Add variable_size GTY option.
12069
12070 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12071
12072         PR bootstrap/45672
12073         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12074
12075 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12076
12077         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12078         result isn't used in memory address.
12079
12080 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12081
12082         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12083         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12084         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12085         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12086         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12087         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12088
12089         * target.def: Add units_per_simd_word to vectorize.
12090
12091         * targhooks.c (default_units_per_simd_word): New.
12092         * targhooks.h (default_units_per_simd_word): Likewise.
12093         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
12094         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12095         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
12096         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12097         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12098         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12099         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12100         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12101
12102         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
12103         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
12104
12105         * tree-vect-stmts.c: Don't include "tm_p.h".
12106         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
12107         with targetm.vectorize.units_per_simd_word.
12108
12109         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
12110
12111         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
12112
12113         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
12114         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12115
12116         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
12117         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
12118
12119         * doc/tm.texi: Regenerated.
12120
12121 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12122
12123         * tree-vect-stmts.c: Include "tm_p.h".
12124
12125         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
12126         out of RTX_CODE.
12127
12128 2010-09-14  Martin Jambor  <mjambor@suse.cz>
12129
12130         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
12131         location of generated statement.  Changed all callers.
12132         (build_ref_for_model): New parameter loc which used to set location of
12133         all generated expressions.  Changed all callers.
12134         (generate_subtree_copies): Likewise.
12135         (init_subtree_with_zero): Likewise.
12136         (sra_modify_expr): Set locations of all generated statements and
12137         expressions to the location the original statement.
12138         (handle_unscalarized_data_in_subtree): Likewise.
12139         (load_assign_lhs_subreplacements): Likewise.
12140         (sra_modify_constructor_assign): Likewise.
12141         (sra_modify_assign): Likewise.
12142
12143 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
12144
12145         PR target/45277
12146         PR target/45363
12147         PR target/45407
12148         * doc/install.texi (sparc*-*-*): New section.
12149         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
12150
12151 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12152
12153         PR middle-end/45567
12154         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
12155         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
12156         (expand_builtin): Adjust caller.
12157         (expand_builtin_unop): Only use subtarget if it has the right mode.
12158
12159 2010-09-14  Tristan Gingold  <gingold@adacore.com>
12160
12161         * configure.ac (plugins): Fix typos.
12162         * configure: Regenerate.
12163
12164 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12165
12166         PR debug/45660
12167         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
12168         gen_type_die for function/method return type.
12169
12170 2010-09-14  Ira Rosen  <irar@il.ibm.com>
12171
12172         PR tree-optimization/45470
12173         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12174         can throw an exception.
12175         * tree-vect-stmts.c (vectorizable_call): Likewise.
12176
12177 2010-09-14  DJ Delorie  <dj@redhat.com>
12178
12179         PR target/44749
12180         * config/mep/mep-protos.h (mep_save_register_info,
12181         mep_reinit_regs, mep_init_regs): Declare.
12182
12183         * config/mep/mep.c: Move all target definitions to the end of the
12184         file to avoid the need for duplicate declarations.
12185         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
12186         (mep_reorg_erepeat): Remove unused variables.
12187         (mep_expand_builtin): Likewise.
12188
12189         * config/mep/mep-pragma.c: Don't include rtl.h.
12190         (INVALID_REGNUM): New.
12191         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
12192         functions.
12193         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
12194         Avoid enum/integer math.
12195
12196 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
12197
12198         PR target/44749
12199         * config/mep/t-mep (GTM_H): Add insn-constants.h.
12200         * config/mep/mep.c (mep_conditional_register_usage): Take no
12201         parameters.
12202         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
12203         prototype.
12204         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
12205         call to mep_conditional_register_usage.
12206
12207 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12208
12209         PR debug/43937
12210         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
12211         the DECL as well.
12212
12213 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
12214
12215         PR rtl-optimization/45617
12216         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
12217         even if low N bits of X aren't known to be zero.
12218
12219 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
12220
12221         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
12222
12223         * config/i386/i386.c (initial_ix86_tune_features): Add
12224         X86_TUNE_VECTORIZE_DOUBLE.
12225         (ix86_units_per_simd_word): New.
12226
12227         * config/i386/i386.h (ix86_tune_indices): Add
12228         X86_TUNE_VECTORIZE_DOUBLE.
12229         (TARGET_VECTORIZE_DOUBLE): New.
12230         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
12231
12232 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
12233
12234         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
12235         (new_temp_expr_table): Allocate call_cnt vector.
12236         (free_temp_expr_table): Free it.
12237         (process_replaceable): Add call_cnt parm and set in vector.
12238         (find_replaceable_in_bb): Skip replacement if def/use span a call.
12239         (debug_ter): Dump call_cnt value, remove stderr uses.
12240
12241 2010-09-13  Jan Hubicka  <jh@suse.cz>
12242
12243         * tree.c (build_zero_cst): New.
12244         * tree.h (build_zero_cst): Declare.
12245         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
12246         (get_base_constructor): Break out from ...
12247         (fold_const_aggregate_ref): Here; handle empty constructors.
12248
12249 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12250
12251         * config/arm/arm.md: (define_attr "conds"): Update comment.
12252         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
12253         conds attribute to clob.
12254         (arm_sync_compare_and_swapsi): Likewise.
12255         (arm_sync_compare_and_swap<mode>): Likewise.
12256         (arm_sync_lock_test_and_setsi): Likewise.
12257         (arm_sync_lock_test_and_set<mode>): Likewise.
12258         (arm_sync_new_<sync_optab>si): Likewise.
12259         (arm_sync_new_nandsi): Likewise.
12260         (arm_sync_new_<sync_optab><mode>): Likewise.
12261         (arm_sync_new_nand<mode>): Likewise.
12262         (arm_sync_old_<sync_optab>si): Likewise.
12263         (arm_sync_old_nandsi): Likewise.
12264         (arm_sync_old_<sync_optab><mode>): Likewise.
12265         (arm_sync_old_nand<mode>): Likewise.
12266
12267 2010-09-13  Olivier Hainque  <hainque@adacore.com>
12268
12269         * fwprop.c (forward_propagate_and_simplify): Only attach a
12270         REG_EQUAL note to an insn if the destination is a register.
12271         * gcse.c (try_replace_reg): Likewise.
12272
12273 2010-09-13  Richard Guenther  <rguenther@suse.de>
12274
12275         PR tree-optimization/45611
12276         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
12277         (copy_ref_info): Likewise.
12278
12279 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
12280
12281         PR debug/45604
12282         PR debug/45419
12283         PR debug/45408
12284         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12285         types of MEM_REF pointer types to the same type.
12286
12287 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
12288
12289         PR rtl-optimization/41087
12290         * ifcvt.c (noce_get_condition): Don't allow conditions with
12291         side-effects.
12292
12293 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
12294
12295         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12296         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
12297         * config/frv/frv.c (frv_register_move_cost): Make static. Change
12298         arguments type to reg_class_t. Add mode argument.
12299         (frv_memory_move_cost): New.
12300         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
12301
12302 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
12303
12304         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
12305         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
12306
12307 2010-09-10  Jan Hubicka  <jh@suse.cz>
12308
12309         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
12310
12311 2010-09-10  Richard Guenther  <rguenther@suse.de>
12312
12313         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
12314         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
12315         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
12316         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
12317         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
12318
12319 2010-09-10  Richard Guenther  <rguenther@suse.de>
12320
12321         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
12322         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
12323         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
12324         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
12325
12326 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12327
12328         PR middle-end/45634
12329         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
12330         of string folding is of integral type.
12331
12332 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
12333
12334         * doc/invoke.texi (-x): Fix typo.
12335
12336 2010-09-10  Richard Guenther  <rguenther@suse.de>
12337
12338         PR debug/44115
12339         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
12340         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12341         Output DECL_DEBUG_EXPR.
12342         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12343         Input DECL_DEBUG_EXPR.
12344
12345 2010-09-10  Richard Guenther  <rguenther@suse.de>
12346
12347         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
12348         (build_index_type): Implement in terms of build_range_type.
12349         (build_range_type): Do not allow NULL_TREE type, improve
12350         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
12351         if we didn't hash.
12352         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
12353         create a distinct copy of the type.
12354
12355 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
12356
12357         * configure: Regenerated.
12358         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
12359
12360 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12361
12362         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
12363         * config/arm/cortex-a9-neon.md: New and partially generated.
12364         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
12365
12366 2010-09-10  Richard Guenther  <rguenther@suse.de>
12367
12368         * tree.h (build_index_2_type): Remove.
12369         * tree.c (build_index_2_type): Remove.
12370
12371 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
12372
12373         PR bootstrap/45630
12374         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
12375         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
12376         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
12377
12378 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12379
12380         PR tree-optimization/44972
12381         * tree-sra.c: Include toplev.h.
12382         (build_ref_for_offset): Entirely reimplemented.
12383         (build_ref_for_model): New function.
12384         (build_user_friendly_ref_for_offset): New function.
12385         (analyze_access_subtree): Removed build_ref_for_offset check.
12386         (propagate_subaccesses_across_link): Likewise.
12387         (create_artificial_child_access): Use
12388         build_user_friendly_ref_for_offset.
12389         (propagate_subaccesses_across_link): Likewise.
12390         (ref_expr_for_all_replacements_p): Removed.
12391         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
12392         (sra_modify_expr): Use build_ref_for_model.
12393         (load_assign_lhs_subreplacements): Likewise.
12394         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
12395         checks for return values of build_ref_for_offset.
12396         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
12397         build_ref_for_offset.
12398         * ipa-prop.h: Include gimple.h
12399         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
12400         (ipa_analyze_indirect_call_uses): Update comment.
12401         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
12402         (IPA_PROP_H): Likewise.
12403
12404 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12405
12406         PR tree-optimization/44972
12407         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
12408         calling build_ref_for_offset.
12409
12410 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12411
12412         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
12413         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
12414         * config/arm/arm-tune.md: Regenerate.
12415         * doc/invoke.texi (ARM Options): Document it.
12416
12417 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
12418
12419         * config/i386/i386.c: Include sched-int.h.
12420         (TARGET_SCHED_DISPATCH): Defined.
12421         (TARGET_SCHED_DISPATCH_DO): Defined.
12422         (DISPATCH_WINDOW_SIZE): Defined.
12423         (MAX_DISPATCH_WINDOWS): Defined.
12424         (MAX_INSN): Defined.
12425         (MAX_IMM): Defined.
12426         (MAX_IMM_SIZE): Defined.
12427         (MAX_IMM_32): Defined.
12428         (MAX_IMM_64): Defined.
12429         (MAX_LOAD): Defined.
12430         (MAX_STORE): Defined.
12431         (BIG): Defined.
12432         (dispatch_group): New.
12433         (num_allowable_groups): New.
12434         (group_name): New.
12435         (sched_insn_info_s): New.
12436         (dispatch_windows_s): New.
12437         (imm_info_s): New.
12438         (dispatch_window_list): New.
12439         (dispatch_window_list1): New.
12440         (get_mem_group): New.
12441         (is_cmp): New.
12442         (dispatch_violation): New.
12443         (is_branch): New.
12444         (is_prefetch): New.
12445         (init_window): New.
12446         (allocate_window): New.
12447         (init_dispatch_sched): New.
12448         (is_end_basic_block): New.
12449         (process_end_window): New.
12450         (allocate_next_window): New.
12451         (find_constant_1): New.
12452         (find_constant): New.
12453         (get_num_immediates): New.
12454         (has_immediate): New.
12455         (get_insn_path): New.
12456         (get_insn_group): New.
12457         (count_num_restricted): New.
12458         (fits_dispatch_window): New.
12459         (add_insn_window): New.
12460         (add_to_dispatch_window): New.
12461         (debug_dispatch_window_file): New.
12462         (debug_dispatch_window): New.
12463         (debug_insn_dispatch_info_file): New.
12464         (debug_ready_dispatch): New.
12465         (do_dispatch): New.
12466         (has_dispatch): New.
12467         * config/i386/i386.h (debug_ready_dispatch): Declared.
12468         (debug_dispatch_window): Declared.
12469         * config/i386/i386.opt (mdispatch-scheduler): New flag.
12470         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
12471         (TARGET_SCHED_DISPATCH_DO): New.
12472         * doc/tm.texi: Regererated.
12473         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
12474         ready_remove_first_dispatch
12475         (schedule_block): Call targetm.sched.dispatch and
12476         targetm.sched.dispatch_do.
12477         (sched_init): Call targetm.sched.dispatch and
12478         targetm.sched.dispatch_do.
12479         (ready_remove_first_dispatch): New.
12480         (number_in_ready): New.
12481         (get_ready_element): New.
12482         * hooks.c (hook_bool_rtx_int_false): New.
12483         (hook_void_rtx_int): New.
12484         * hooks.h (hook_bool_rtx_int_false): Declared.
12485         (hook_void_rtx_int): Declared.
12486         * sched-int.h (IS_DISPATCH_ON): Defined.
12487         (IS_CMP): Defined.
12488         (DISPATCH_VIOLATION): Defined.
12489         (FITS_DISPATCH_WINDOW): Defined.
12490         (DISPATCH_INIT): Defined.
12491         (ADD_TO_DISPATCH_WINDOW): Defined.
12492         (get_ready_element): Declared.
12493         (number_in_ready): Declared.
12494         * target.def (dispatch): Defined.
12495         (dispatch_do): Defined.
12496
12497 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12498
12499         PR middle-end/45312
12500         * reload1.c (merge_assigned_reloads): Remove.
12501         (reload_as_needed): Don't call it.
12502
12503 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
12504
12505         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
12506         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12507         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12508
12509 2010-09-09  Matthias Klose  <doko@ubuntu.com>
12510
12511         PR bootstrap/43847
12512         * configure.ac (--enable-plugin): Enhance for cross builds.
12513         * configure: Regenerate.
12514
12515 2010-09-09  Jan Hubicka  <jh@suse.cz>
12516
12517         PR tree-optimization/45598
12518         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
12519         string folding is of integral type.
12520
12521 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12522
12523         * configure.ac (gnu_indirect_function): New test.
12524         * configure: Rebuilt.
12525         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
12526         * defaults.h (IFUNC_ASM_TYPE): Provide default.
12527
12528         * doc/extend.texi (Function Attributes): Document ifunc.
12529         * varasm.c (do_assemble_alias): Deal with ifuncs too.
12530
12531 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12532
12533         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
12534         epilogue instruction move.
12535
12536 2010-09-09  Jan Hubicka  <jh@suse.cz>
12537
12538         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
12539         command line to allow more partitions than input files.
12540
12541 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12542
12543         PR middle-end/44554
12544         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
12545
12546 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12547
12548         PR middle-end/40386
12549         * ira.c (pseudo_for_reload_consideration_p): Don't use
12550         flag_ira_share_spill_slots.
12551
12552 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12553
12554         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
12555         point zero operands that fit into a single GPR.
12556         (s390_preferred_reload_class): Ensure we only return general-purpose
12557         register classes.
12558         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
12559         floating-point zero operands into GPRs.
12560         ("*mov<mode>_64"): Likewise.
12561         ("mov<mode>"): Likewise using lhi.
12562
12563 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12564
12565         * config/s390/s390.c (s390_symref_operand_p): Return false for
12566         literal pool references.
12567         (s390_check_qrst_address): Update caller.
12568
12569 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
12570
12571         * config/i386/predicates.md (ext_register_operand): Check that
12572         SUBREG_REG is really a register before looking for REGNO.
12573         (reg_not_xmm0_operand): Handle SUBREGs correctly.
12574         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
12575
12576 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
12577
12578         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
12579         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
12580         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
12581         * print-rtl.c (print_rtx): Likewise.
12582         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12583         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
12584         for ADDR_EXPR with non-addressable object.
12585         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
12586         (struct dw_val_struct): Add v.val_decl_ref.
12587         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
12588         Handle DW_OP_GNU_implicit_pointer.
12589         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
12590         (get_ref_die_offset_label): New function.
12591         (implicit_ptr_descriptor): New function.
12592         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
12593         (loc_descriptor): Likewise.
12594         (gen_variable_die): Put even definitions into decl_die_table.
12595         (resolve_addr_in_expr): Resolve still unresolved
12596         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
12597         return false.
12598         (dwarf2out_finish): Call output_location_lists after outputting
12599         .debug_info and .debug_abbrev instead of before.
12600
12601 2010-09-09  Roland McGrath  <roland@redhat.com>
12602
12603         * dwarf2out.c (DWARF_REF_SIZE): Define.
12604         (size_of_loc_descr): Use it for DW_OP_call_ref.
12605
12606 2010-09-09  Alan Modra  <amodra@gmail.com>
12607
12608         * doc/invoke.text: Reinstate mcmodel=medium.
12609         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12610         CMODEL_MEDIUM as default.
12611         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
12612         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
12613         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
12614         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
12615
12616 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12617
12618         PR target/45250
12619         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
12620         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
12621         (builtin_longjmp): Likewise.
12622         (allocate_stack): Use hard_frame_pointer_rtx instead of
12623         frame_pointer_rtx.
12624         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
12625         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
12626         (pa_can_eliminate): Likewise.
12627         (TARGET_INTERNAL_ARG_POINTER): Define.
12628         (TARGET_CAN_ELIMINATE): Define.
12629         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
12630         pointer.
12631         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
12632         (pa_internal_arg_pointer, pa_can_eliminate,
12633         pa_initial_elimination_offset): New.
12634         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
12635         (HARD_FRAME_POINTER_REGNUM): Set to register three.
12636         (INITIAL_FRAME_POINTER_OFFSET): Delete.
12637         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
12638         Define.
12639         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
12640         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
12641         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
12642         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
12643         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
12644         new soft frame pointer.
12645         * config/pa/pa64-regs.h: Likewise.
12646
12647 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12648
12649         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
12650         numerical constant.
12651         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
12652
12653 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12654
12655         PR debug/45531
12656         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
12657
12658 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12659
12660         PR debug/45419
12661         PR debug/45408
12662         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12663         qualifiers in otherwise equal MEM_REF pointer types.
12664         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
12665         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
12666
12667 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12668
12669         PR target/44392
12670         * config/arm/arm.md (bswapsi2): Handle condition correctly
12671         for armv6 and optimize_size.
12672
12673 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12674
12675         PR other/18555
12676         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
12677
12678 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12679
12680         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
12681         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
12682         ix86_expand_strlen, legitimate_pic_address_disp_p,
12683         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
12684         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
12685         ix86_check_movabs, ix86_secondary_memory_needed): Change function
12686         prototype to bool.
12687         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
12688         return_in_memory_ms_64, ix86_check_movabs,
12689         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
12690         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
12691         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
12692         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
12693         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
12694         ix86_secondary_memory_needed): Change to bool.  Return
12695         "true" and "false" values.
12696         * config/i386/i386.md: Return "true" and "false" values.
12697
12698 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12699
12700         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12701         run_expensive_tests.
12702
12703 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12704
12705         * toplev.c (output_stack_usage): Use lbasename instead of basename.
12706
12707 2010-09-08  Martin Jambor  <mjambor@suse.cz>
12708
12709         PR other/45443
12710         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
12711         at -O3.
12712
12713 2010-09-08  Richard Guenther  <rguenther@suse.de>
12714
12715         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
12716         (visit): Adjust.
12717         (iterative_hash_gimple_type): Likewise.
12718         (gimple_type_hash): Likewise.
12719         (gimple_register_type): Likewise.
12720         (print_gimple_types_stats): Likewise.
12721         (free_gimple_type_tables): Likewise.
12722
12723 2010-09-08  Michael Matz  <matz@suse.de>
12724
12725         PR tree-optimization/43430
12726         * tree-vect-stmts.c (vectorizable_condition): Support multiple
12727         copies for conditional statements if it's not part of a reduction.
12728
12729 2010-09-08  Michael Matz  <matz@suse.de>
12730
12731         PR tree-optimization/33244
12732         * tree-ssa-sink.c (statement_sink_location): Don't sink into
12733         empty loop latches.
12734
12735 2010-09-08  Richard Guenther  <rguenther@suse.de>
12736
12737         PR tree-optimization/45578
12738         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
12739         Be more careful when transfering alignment information to
12740         the new induction variable.
12741         (copy_ref_info): Likewise.
12742
12743 2010-09-08  Richard Guenther  <rguenther@suse.de>
12744
12745         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
12746         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
12747
12748 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
12749
12750         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
12751         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
12752
12753 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12754
12755         PR doc/45587
12756         * doc/md.texi: Fixed modes on several standard pattern names.
12757
12758 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
12759
12760         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
12761         (ashl<mode>3): ...this.
12762         (loongson_psra<V_suffix>): Rename to...
12763         (ashr<mode>3): ...this.
12764         (loongson_psrl<V_suffix>): Rename to...
12765         (lshr<mode>3): ...this.
12766         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
12767         (CODE_FOR_loongson_psllw): Define.
12768         (CODE_FOR_loongson_psrlh): Define.
12769         (CODE_FOR_loongson_psrlw): Define.
12770         (CODE_FOR_loongson_psrah): Define.
12771         (CODE_FOR_loongson_psraw): Define.
12772
12773 2010-09-07  Richard Henderson  <rth@redhat.com>
12774
12775         * tree-vect-data-refs.c: Include tm_p.h.
12776         * Makefile.in (tree-vect-data-refs.o): Update deps.
12777         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
12778         Move delarations outside #ifdef RTX_CODE.
12779
12780 2010-09-07  Richard Henderson  <rth@redhat.com>
12781
12782         * final.c (rest_of_handle_final): Unconditionally do
12783         output_function_exception_table before assemble_end_function.
12784
12785 2010-09-07  Jan Hubicka  <jh@suse.cz>
12786
12787         * tree-inline.c (tree_inlinable_function_p): Do not test
12788         DECL_REPLACEABLE_P.
12789         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
12790         update_callee_keys, cgraph_decide_inlining): Test function availability.
12791         * cif-code.def (OVERWRITABLE): New code.
12792
12793 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
12794             Jack Howarth  <howarth@bromo.med.uc.edu>
12795
12796         PR target/36502
12797         PR target/42313
12798         PR target/44651
12799         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
12800         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
12801         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
12802         MAX macro.
12803
12804 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12805
12806         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
12807         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
12808
12809 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12810
12811         * config.gcc: Don't append t-android for Android targets.
12812
12813         * config/t-android: Removed.
12814
12815 2010-09-07  Richard Henderson  <rth@redhat.com>
12816
12817         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
12818         * doc/tm.texi.in: Add doc marker.
12819         * doc/tm.texi: Rebuild.
12820         * except.c (switch_to_exception_section): Always build.
12821         (output_one_function_exception_table): Move section switch,
12822         personality output, and label output ...
12823         (output_function_exception_table): ... here.  Use the new
12824         personality hook.
12825
12826         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
12827         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
12828         TARGET_ASM_INIT_SECTIONS): New.
12829         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
12830         make static.
12831         (TARGET_ASM_UNWIND_EMIT): Update to match.
12832         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
12833
12834         * config/arm/arm.c (arm_asm_emit_except_personality): New.
12835         (arm_asm_init_sections): New.
12836         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
12837
12838 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12839
12840         * config/arm/arm.md: Remove unused variable.
12841
12842 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
12843
12844         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12845         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
12846         (m32r_memory_move_cost): New function.
12847
12848 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12849
12850         * config.gcc: Append t-android for Android targets.
12851
12852         * config/t-android: New.
12853
12854 2010-09-07  Richard Henderson  <rth@redhat.com>
12855
12856         * target.def (unwind_emit_before_insn): New hook.
12857         * doc/tm.texi.in: Add @hook marker for it.
12858         * doc/tm.texi: Rebuild.
12859         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
12860
12861 2010-09-07  Martin Jambor  <mjambor@suse.cz>
12862
12863         PR fortran/43665
12864         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
12865         are any type attributes.
12866
12867 2010-09-07  Jan Hubicka  <jh@suse.cz>
12868
12869         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
12870         array_ref_low_bound in string access folding.
12871
12872 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
12873
12874         PR target/45206
12875         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
12876         eh_return fixup sequence.
12877
12878 2010-09-07  Jan Hubicka  <jh@suse.cz>
12879
12880         * gimple-fold.c (maybe_fold_reference): Verify that operand is
12881         gimple_min_invariant.
12882
12883 2010-09-07  Richard Guenther  <rguenther@suse.de>
12884
12885         PR middle-end/45569
12886         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
12887         nor CONSTRUCTOR can trap.
12888         * tree-complex.c (update_complex_assignment): Update EH info.
12889
12890 2010-09-07  Richard Guenther  <rguenther@suse.de>
12891
12892         PR middle-end/45569
12893         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
12894         * passes.c (execute_function_todo): Do not verify anything if
12895         we saw errors.
12896
12897 2010-09-07  Richard Guenther  <rguenther@suse.de>
12898
12899         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
12900
12901 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
12902
12903         PR target/43137
12904         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
12905         New define_mode_attrs.
12906         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
12907         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
12908         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
12909         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
12910         Remove pool_range attribute.
12911         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
12912         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
12913         pool_range and neg_pool_range attributes.
12914         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
12915         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
12916         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
12917
12918 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12919
12920         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
12921         check glibc.
12922
12923 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
12924
12925         PR target/22152
12926         * config/i386/mmx.md (*mov<mode>_internal_rex64,
12927         *mov<mode>_internal_avx, *mov<mode>_internal,
12928         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
12929         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
12930
12931 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
12932
12933         * c-typeck.c (do_warn_double_promotion): Remove.
12934         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
12935         Objective-C++ too.
12936
12937 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
12938
12939         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
12940         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
12941         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
12942         argument type to reg_class_t. Change result type to bool.
12943         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12944
12945 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
12946
12947         PR libobjc/19850
12948         * gthr-posix.h (__gthread_objc_thread_detach): Use
12949         _objc_thread_attribs when detaching a thread.
12950         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
12951
12952 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12953
12954         PR target/45524
12955         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
12956         * configure: Regenerated.
12957
12958 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12959
12960         * combine.c (try_combine): Set subst_low_luid to i0.
12961
12962 2010-09-06  Richard Guenther  <rguenther@suse.de>
12963
12964         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
12965         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
12966         (build_aligned_type): Declare.
12967         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
12968         (check_aligned_type): New function.
12969         (build_aligned_type): Likewise.
12970         * expr.c (expand_assignment): Handle misaligned stores via
12971         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
12972         (expand_expr_real_1): Likewise.
12973         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
12974         * tree-vect-stmts.c (vectorizable_store): Do not build
12975         MISALIGNED_INDIRECT_REF but initialize alignment information.
12976         (vectorizable_load): Likewise.
12977         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
12978         handling.
12979         * cfgexpand.c (expand_debug_expr): Likewise.
12980         * dwarf2out.c (loc_list_from_tree): Likewise.
12981         * fold-const.c (maybe_lvalue_p): Likewise.
12982         (operand_equal_p): Likewise.
12983         (build_fold_addr_expr_with_type_loc): Likewise.
12984         * gimplify.c (gimplify_addr_expr): Likewise.
12985         (gimplify_expr): Likewise.
12986         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
12987         (verify_gimple_assign_single): Likewise.
12988         * tree-dump.c (dequeue_and_dump): Likewise.
12989         (tree_could_trap_p): Likewise.
12990         * tree-predcom.c (ref_at_iteration): Likewise.
12991         * tree-pretty-print.c (dump_generic_node): Likewise.
12992         (op_code_prio): Likewise.
12993         (op_symbol_code): Likewise.
12994         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12995         * tree-ssa-loop-im.c (for_each_index): Likewise.
12996         (gen_lsm_tmp_name): Likewise.
12997         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
12998         (find_interesting_uses_address): Likewise.
12999         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13000         * tree-ssa-operands.c (get_expr_operands): Likewise.
13001         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13002         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13003         (ao_ref_init_from_vn_reference): Likewise.
13004         * tree.c (staticp): Likewise.
13005         (build1_stat): Likewise.
13006         (reference_alias_ptr_type): Likewise.
13007         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13008         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13009         MISALIGNED_INDIRECT_REF handling.
13010
13011 2010-09-06  Richard Guenther  <rguenther@suse.de>
13012
13013         PR tree-optimization/45534
13014         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13015         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13016         on the target.
13017         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13018         valid on the target.
13019
13020 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13021
13022         * configure.ac: Quote argument of AC_MSG_WARN.
13023         * configure: Regenerate.
13024
13025 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
13026
13027         * sel-sched.c (move_cond_jump): Correct arguments to
13028         maybe_tidy_empty_bb.
13029         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13030
13031 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
13032
13033         PR rtl-optimization/44919
13034         * sel-sched.c (move_cond_jump): Remove assert, check that
13035         the several blocks case can only happen with mutually exclusive
13036         insns instead.  Rewrite the movement code to support moving through
13037         several basic blocks.
13038
13039 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13040
13041         * config/i386/i386.md (iptrsize): New mode attribute.
13042         (tp_seg): Ditto.
13043         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13044         mode iterator.
13045         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13046         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13047         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13048         (stack_tls_protect_set_<mode>): Ditto from
13049         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
13050         of thread base pointer load.
13051         (stack_tls_protect_test_<mode>): Ditto from
13052         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
13053         of thread base pointer load.
13054         (stack_protect_set): Rewrite using indirect functions.
13055         (stack_protect_test): Ditto.
13056         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13057         (ix86_print_operand): Handle '@'.
13058
13059 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
13060
13061         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13062         MINUS_EXPR.
13063
13064 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
13065
13066         * doc/invoke.texi: Document -Wdouble-promotion.
13067         * c-typeck.c (convert_arguments): Check for implicit conversions
13068         from float to double.
13069         (do_warn_double_promotion): New function.
13070         (build_conditional_expr): Use it.
13071         (build_binary_op): Likewise.
13072
13073 2010-09-05  Richard Guenther  <rguenther@suse.de>
13074
13075         PR tree-optimization/45535
13076         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13077         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
13078         dereferencing it.
13079         (indirect_refs_may_alias_p): Likewise.
13080
13081 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
13082
13083         * config/sh/sh.c (sh_option_override): Make static.
13084         Adjust comments.  Declare.
13085         (sh_function_value_regno_p): Likewise.
13086         (sh_register_move_cost): Modify the arguments, make static.
13087         Adjust comments.  Declare.
13088         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
13089         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13090         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
13091         REGISTER_MOVE_COST): Delete.
13092         * config/sh/sh-protos.h (sh_override_options): Delete.
13093         (sh_register_move_cost): Delete.
13094         (sh_function_value_regno_p): Delete.
13095
13096 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
13097
13098         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
13099         m32r_function_value_regno_p): New functions.
13100         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13101         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
13102         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
13103         FUNCTION_VALUE_REGNO_P): Remove.
13104
13105 2010-09-04  Jan Hubicka  <jh@suse.cz>
13106
13107         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
13108         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
13109         fold_read_from_constant_string.
13110
13111         * gimple.h (canonicalize_constructor_val): Declare.
13112         * gimple-fold.c (canonicalize_constructor_val): New function.
13113         (get_symbol_constant_value):Use it.
13114         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
13115
13116 2010-09-04  Jan Hubicka  <jh@suse.cz>
13117
13118         * tree-switch-conversion.c (build_one_array): Set constructor to be
13119         static.
13120         * varpool.c (varpool_finalize_decl): Compute const_value_known.
13121
13122 2010-09-04  Richard Guenther  <rguenther@suse.de>
13123
13124         PR bootstrap/45519
13125         * tree-flow.h (force_gimple_operand_1): Declare.
13126         (force_gimple_operand_gsi_1): Likewise.
13127         * gimplify.c (force_gimple_operand_1): New worker taking a
13128         gimple predicate for ...
13129         (force_gimple_operand): ... which now wraps it.
13130         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
13131         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
13132         last change.
13133         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
13134         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
13135         (create_mem_ref): Likewise.
13136
13137 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
13138
13139         * config/i386/predicates.md (sse_reg_operand): New predicate.
13140         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
13141         predicate for operand 1.
13142         (XFmode push splitter): Use fp_register_operand predicate
13143         for operand 1.
13144         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
13145         (SF-DF float_extend push splitter): Add reload_completed insn
13146         predicate.
13147         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
13148         MODEF mode macro.  Add reload_completed insn predicate.
13149
13150 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
13151
13152         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
13153         (struct df_extract_ref): Remove.
13154         (union df_ref_d): Remove extract_ref member.
13155         (df_ref_create): Remove last three arguments.
13156         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
13157         * df-scan.c (df_ref_record): Remove last three arguments, do not
13158         pass them to df_ref_create_structure.
13159         (df_uses_record): Remove first and last three arguments.  Replace
13160         first argument with DF_REF_REGULAR, adjust calls to remove the
13161         width, offset and mode.  Always call recursively on the second
13162         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
13163         (df_ref_create_structure): Remove first argument.
13164         (struct df_scan_problem_data): Remove ref_extract_pool.
13165         (df_scan_free_internal): Do not free it.
13166         (df_scan_alloc): Do not allocate it.
13167         (df_ref_create): Remove last three arguments, do not pass them to
13168         df_ref_create_structure.
13169         (df_free_ref): Remove DF_REF_EXTRACT case.
13170         (df_notes_rescan): Adjust call to df_uses_record.
13171         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
13172         Remove DF_REF_EXTRACT case.
13173         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
13174         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
13175         and SUBREG definitions.
13176         (df_get_conditional_uses): Remove references to width/offset/mode,
13177         adjust call to df_ref_create_structure.
13178         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
13179         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
13180         calls to df_uses_record and df_ref_record.
13181         * fwprop.c (update_df): Remove references to width/offset/mode,
13182         adjust call to df_ref_create.
13183
13184 2010-09-03  Jan Hubicka  <jh@suse.cz>
13185
13186         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
13187         (build_cdtor_fns): Update use of build_cdtor.
13188
13189 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
13190
13191         * doc/options.texi (SeparateAlias): Document.
13192         * opt-functions.awk (switch_flags): Handle SeparateAlias.
13193         * opth-gen.awk: Generate enumeration names for options marked
13194         SeparateAlias, but not for those marked Ignore.
13195         * opts-common.c (generate_canonical_option): Don't output separate
13196         argument for options marked CL_SEPARATE_ALIAS.
13197         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
13198         * opts.h (CL_SEPARATE_ALIAS): New.
13199         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13200         CL_COMMON): Adjust definitions.
13201         * config/i386/darwin.opt, config/mips/sde.opt: New.
13202         * common.opt (fdump-final-insns): New.
13203         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13204         i386/darwin.opt.
13205         (mips*-sde-elf*): Add mips/sde.opt.
13206         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
13207         -mno-data-in-code and -mcode-xonly here.
13208         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
13209         * gcc.c (option_map): Add "j" to --dump entry.
13210         (translate_options): Don't translate -d to -foutput-class-dir= here.
13211
13212 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
13213
13214         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
13215         DR_IS_WRITE.
13216         (compute_all_dependences): Same.
13217         (create_rdg_edge_for_ddr): Same.
13218         * tree-data-ref.h (DR_IS_WRITE): New.
13219         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
13220         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
13221         (write_memrefs_written_at_least_once): Same.
13222         * tree-predcom.c (suitable_component_p): Same.
13223         (determine_roots_comp): Same.
13224         (execute_load_motion): Same.
13225         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
13226         (vect_enhance_data_refs_alignment): Same.
13227         (vect_analyze_group_access): Same.
13228
13229 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
13230
13231         PR testsuite/42843
13232         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
13233         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
13234
13235 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
13236
13237         * dwarf2out.c (file scope): Remove #if0'd code.
13238         (gen_subprogram_die): Same.
13239
13240 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13241
13242         PR middle-end/45484
13243         * dwarf2out.c (flush_queued_reg_saves): Rename to...
13244         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
13245         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
13246         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
13247         * config/i386/i386.c (output_set_got): Call it.
13248
13249 2010-09-03  Michael Matz  <matz@suse.de>
13250
13251         PR middle-end/45415
13252         * tree-sra.c (sra_modify_assign): If we modify the statement,
13253         say so.
13254
13255         * tree-ssa.c (verify_ssa): Check number of operands and links
13256         per statement to agree.
13257
13258 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13259             Iain Sandoe  <iains@gcc.gnu.org>
13260
13261         PR target/45476
13262         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
13263         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
13264         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13265
13266 2010-09-03  Richard Guenther  <rguenther@suse.de>
13267
13268         * lto-streamer-out.c (output_function): Output function
13269         start and end loci.
13270         * lto-streamer-in.c (input_function): Input function start
13271         and end loci.
13272
13273 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13274
13275         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
13276         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
13277         * configure: Regenerate.
13278         * aclocal.m4: Regenerate.
13279
13280 2010-09-03  Jan Hubicka  <jh@suse.cz>
13281
13282         PR lto/44812
13283         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
13284         on functions/variables in other partition.
13285
13286 2010-09-03  Jan Hubicka  <jh@suse.cz>
13287
13288         * cgraph.h (struct varpool_node): Add const_value_known.
13289         (varpool_decide_const_value_known): Declare.
13290         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
13291         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
13292         (input_varpool_node): Restore const_value_known.
13293         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
13294         initializer folding.
13295         * ipa.c (ipa_discover_readonly_nonaddressable_var,
13296         function_and_variable_visibility): Compute const_value_known.
13297         * gimple-fold.c (get_symbol_constant_value): Use varpool for
13298         initializer folding.
13299         * varpool.c (varpool_decide_const_value_known): New function.
13300
13301 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13302
13303         * config/i386/i386.md: Remove empty preparation statements
13304         from splitters.
13305
13306 2010-09-03  Jan Hubicka  <jh@suse.cz>
13307
13308         * passes.c (rest_of_decl_compilation): Do not add local vars into
13309         varpool.
13310         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
13311         static or extern vars are in varpool.
13312         (varpool_finalize_decl): Sanity check that only static vars are
13313         finalized.
13314
13315 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13316
13317         PR debug/45500
13318         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
13319         not just generic vectors with BLKmode.
13320
13321 2010-09-03  Richard Guenther  <rguenther@suse.de>
13322
13323         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
13324         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
13325         * tree.h (TMR_SYMBOL): Remove.
13326         (TMR_BASE, TMR_OFFSET): Adjust.
13327         (TMR_INDEX2): New.
13328         * alias.c (ao_ref_from_mem): Use TMR_BASE.
13329         * builtins.c (get_object_alignment): Merge TMR_BASE and
13330         TMR_SYMBOL handling.
13331         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
13332         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
13333         handling.  Also allow TARGET_MEM_REF as base address.
13334         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
13335         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
13336         base.  Gimplify TMR_INDEX2.
13337         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
13338         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13339         (get_addr_base_and_unit_offset): Likewise.
13340         * tree-eh.c (tree_could_trap_p): Likewise.
13341         * tree-pretty-print.c (dump_generic_node): Likewise.
13342         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
13343         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
13344         base to index2.
13345         (get_address_description): Reconstruct addres description
13346         from merged TMR_BASE and TMR_INDEX2.
13347         (maybe_fold_tmr): Fold propagated addresses.
13348         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
13349         MEM_REF and TARGET_MEM_REF paths.
13350         (indirect_refs_may_alias_p): Likewise.
13351         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
13352         instead of TMR_SYMBOL.
13353         * tree-ssa-operands.c (get_tmr_operands): Simplify.
13354         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
13355         according to changes ...
13356         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
13357         Split TARGET_MEM_REF into two fields plus the base.
13358         * tree.c (mem_ref_offset): Simplify.
13359         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
13360         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
13361         Strip NOPs when folding MEM_REF addresses.
13362         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
13363         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
13364         (fold_gimple_assign): ... not here.
13365
13366 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
13367
13368         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
13369         * config/mips/mips.c (mips_shift_truncation_mask): New function.
13370         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13371
13372 2010-09-02  Richard Henderson  <rth@redhat.com>
13373
13374         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
13375         instead of readelf in the test.
13376         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
13377         in the .debug_frame section for coff targets.
13378         * configure: Rebuild.
13379
13380 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13381
13382         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
13383         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
13384         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13385         (m32c_class_likely_spilled_p): Make static. Change argument type to
13386         reg_class_t. Change result type to bool.
13387
13388 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13389
13390         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
13391         to convert (double)(long) into a single FRIZ instruction or not
13392         when -ffast-math is used.
13393
13394         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
13395         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
13396         or FRIZ instruction if -ffast-math.
13397         * config/rs6000/rs6000.md (friz): Ditto.
13398
13399         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
13400
13401 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13402
13403         * opth-gen.awk (quote, comma): Remove unused variables.
13404
13405 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
13406
13407         * arm.c (arm_override_options): Correct fall-back code to use
13408         SUBTARGET_CPU_DEFAULT.
13409
13410 2010-09-02  Julian Brown  <julian@codesourcery.com>
13411
13412         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
13413         unspecs.
13414         (vcond<mode>, vcondu<mode>): New expanders.
13415         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
13416         comparisons with zero.
13417         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
13418         * config/arm/constraints.md (Dz): New constraint.
13419
13420 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13421
13422         * target.def (class_likely_spilled_p): New hook.
13423         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
13424         * doc/tm.texi: Regenerate.
13425         * targhooks.c (default_class_likely_spilled_p): New function.
13426         * targhooks.h (default_class_likely_spilled_p): Declare.
13427         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
13428         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
13429         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
13430         Use fixed_reg_set instead of fixed_regs.
13431         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13432         * calls.c (avoid_likely_spilled_reg): Ditto.
13433         * ira-conflicts.c (ira_build_conflicts): Ditto.
13434         * ira.c (update_equiv_regs): Ditto.
13435         * mode-switching.c (create_pre_exit): Ditto.
13436         * regmove.c (find_matches): Ditto.
13437         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13438         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
13439         (small_register_class_p): New inline function.
13440         (push_secondary_reload, find_reusable_reload, find_reloads): Use
13441         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
13442
13443         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
13444         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
13445         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13446
13447 2010-09-02  Richard Guenther  <rguenther@suse.de>
13448
13449         PR tree-optimization/44937
13450         PR tree-optimization/45412
13451         * ipa-split.c (split_function): Properly remove PHI nodes.
13452
13453 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13454
13455         * opts.h (struct cl_option): Add warn_message field.
13456         (struct cl_decoded_option): Add warn_message field.
13457         * doc/options.texi (Ignore, Warn): Document.
13458         * opt-functions.awk (needs_state_p): Don't consider aliases or
13459         ignored options to need state saved.
13460         * optc-gen.awk: Handle Warn and Ignore.
13461         * opth-gen.awk: Output OPT_SPECIAL_ignore.
13462         * opts-common.c (decode_cmdline_option): Set warn_message field.
13463         Handle ignored options.
13464         (decode_cmdline_options_to_array, generate_option,
13465         generate_option_input_file): Set warn_message field.
13466         (read_cmdline_option): Generate warnings from warn_message field.
13467         Handle ignored options.
13468         * common.opt (Wunreachable-code, fargument-alias,
13469         fargument-noalias, fargument-noalias-global,
13470         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
13471         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
13472         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
13473         ftree-salias): Mark Ignore.
13474         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
13475         -mintel-syntax and -mno-intel-syntax here.
13476         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
13477         using Warn.
13478         * opts.c (common_handle_option): Don't handle options marked as
13479         ignored.
13480         (enable_warning_as_error): Handle ignored options.
13481
13482 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13483
13484         PR driver/44076
13485         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
13486         alias_target fields.
13487         * opt-functions.awk (opt_sanitized_name): Don't handle
13488         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
13489         * optc-gen.awk: Generate alias fields.
13490         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
13491         Don't generate such constants for aliases.
13492         * opts-common.c (generate_canonical_option): New.
13493         (decode_cmdline_option): Handle aliases.  Use
13494         generate_canonical_option for known options instead of copying the
13495         input option text.
13496         * doc/options.texi (Alias): Document.
13497         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
13498         fstack-check, specs): Mark as aliases.
13499         * gcc.c (driver_handle_option): Canonicalize -L options to joined
13500         arguments.
13501         (driver_handle_option): Don't handle OPT_specs.
13502         * opts.c (common_handle_option): Don't handle options marked as
13503         aliases.
13504         (enable_warning_as_error): Handle aliases.
13505         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
13506         OPT_Wlarger_than_eq.
13507         * tree-optimize.c (tree_rest_of_compilation): Use
13508         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
13509
13510 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13511
13512         * config/i386/i386.md (nonmemory_operand): New mode attribute.
13513         (push memory peephole2): Macroize peepholes using SWI mode iterator.
13514         (move immediate to memory peephole2): Macroize peepholes using
13515         SWI124 mode iterator.
13516         (non-pairable NOT peephole2): Macroize peepholes using SWI124
13517         mode iterator.
13518         (simple lea add peephole2): Macroize peepholes using SWI48
13519         mode iterator.
13520         (simple lea mult peephole2): Ditto.
13521         (imul by 3,5,9 to lea peephole2): Ditto.
13522         (mov $-1, reg peephole2): Macroize peepholes using SWI248
13523         mode iterator.
13524         (imul $32bit_imm,mem,reg peephole2): Ditto.
13525         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
13526
13527 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
13528
13529         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
13530
13531 2010-09-02  Olivier Hainque  <hainque@adacore.com>
13532
13533         PR middle-end/44763
13534         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
13535         (allocno_priority_compare_func): Use it instead of a straight
13536         difference computation over priorities.
13537
13538 2010-09-02  Andi Kleen  <ak@linux.intel.com>
13539
13540         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
13541
13542 2010-09-02  Ira Rosen  <irar@il.ibm.com>
13543
13544         * tree-vectorizer.h (get_later_stmt): New function.
13545         (vect_analyze_data_ref_dependences): Add argument.
13546         * tree-vect-loop.c (vect_analyze_loop): Update call to
13547         vect_analyze_data_ref_dependences.
13548         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
13549         New function.
13550         (vect_analyze_data_ref_dependence): Add argument for basic block
13551         dependencies. Check dependencies in basic block vectorization.
13552         (vect_analyze_data_ref_dependences): Add argument and update call to
13553         vect_analyze_data_ref_dependences.
13554         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
13555         (vect_bb_vectorizable_with_dependencies): New.
13556         (vect_slp_analyze_bb): Check dependencies in basic block.
13557         (vect_schedule_slp_instance): Insert stores before the last store in
13558         SLP instance.
13559
13560 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13561
13562         PR target/45476
13563         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
13564         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13565
13566 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
13567
13568         PR middle-end/45458
13569         * bb-reorder.c (add_labels_and_missing_jumps): Treat
13570         bbs ending with throwing insns like blocks ending with a call.
13571         (fix_up_fall_thru_edges): Likewise.
13572
13573 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
13574
13575         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
13576         (m32c_function_arg_advance): Delete.
13577         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13578         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
13579         comments.  Take a const_tree and a bool.  Declare.
13580         (m32c_function_arg_advance): Likewise.
13581         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13582
13583 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13584
13585         PR target/45476
13586         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
13587         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
13588         * config/i386/mingw32.h: ... here.
13589
13590 2010-09-01  Andi Kleen  <ak@linux.intel.com>
13591
13592         PR lto/45475
13593         * lto-streamer-in.c (lto_input_ts_target_option): Add.
13594         (lto_input_tree_pointers): Call lto_input_ts_target_option.
13595         * lto-streamer-out (lto_output_ts_target_option): Add.
13596         (lto_output_tree_pointers): Call lto_output_ts_target_option.
13597
13598 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
13599
13600         PR/target 45452
13601         * config/i386/cygwin.h: Change order of specified import libraries.
13602         * config/i386/mingw32.h: Likewise.
13603         * config/i386/t-cygwin: Likewise.
13604         * config/i386/t-mingw32: Likewise.
13605         * config/i386/t-mingw-w32: Likewise.
13606         * config/i386/t-mingw-w64: Likewise.
13607
13608 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13609
13610         * config/arm/neon-schedgen.ml (core): New type.
13611         (allCores): List of supported cores.
13612         (availability_table): Add supported cores.
13613         (collate_bypasses): Accept core as a parameter.
13614         (worst_case_latencies_and_bypasses): Accept core as a parameter.
13615         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
13616         and coreStr to get tune attribute and prefix for functional units.
13617         (emit_bypasses): Accept core name and use it.
13618         (calculate_per_core_availability_table): New.
13619         (filter_core): New.
13620         (calculate_core_availability_table): New.
13621         (main): Use calculate_core_availablity_table.
13622         * config/arm/cortex-a8-neon.md: Update copyright year.
13623         Regenerated from ml file and merged in.
13624         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
13625         cortex_a8_neon_mrc.
13626
13627 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
13628
13629         * Makefile.in (tree-switch-conversion.o): Update dependencies.
13630
13631 2010-09-01  Richard Guenther  <rguenther@suse.de>
13632
13633         * alias.c (ao_ref_from_mem): Adjust.
13634         * builtins.c (get_object_alignment): Likewise.
13635         * cfgexpand.c (expand_debug_expr): Likewise.
13636         * gimple.c (get_base_address): Likewise.
13637         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13638         (get_addr_base_and_unit_offset): Likewise.  Fix for
13639         both TMR_SYMBOL and TMR_BASE being set.
13640         * tree-eh.c (tree_could_trap_p): Likewise.
13641         * gimplify.c (gimplify_expr): Do not attempt to gimplify
13642         TMR_SYMBOL.  Always gimplify TMR_BASE.
13643         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13644         TMR_BASE if there is a TMR_SYMBOL.
13645         * tree-pretty-print.c (dump_generic_node): Adjust.
13646         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13647         (tree_mem_ref_addr): Likewise.
13648         (create_mem_ref_raw): Likewise.
13649         (move_fixed_address_to_symbol): Likewise.
13650         (create_mem_ref): Likewise.
13651         (dump_mem_address): Likewise.
13652         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
13653         Fix for both TMR_SYMBOL and TMR_BASE being set.
13654         (indirect_refs_may_alias_p): Likewise.
13655         * tree-ssa-operands.c (get_tmr_operands): Adjust.
13656         * tree.def (TARGET_MEM_REF): Adjust documentation.
13657
13658 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13659
13660         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
13661         Rename from X86_TUNE_ADD_ESP_4.
13662         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
13663         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
13664         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
13665         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
13666         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
13667         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
13668         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
13669         * config/i386/i386.c (initial_ix86_tune_features)
13670         <X86_TUNE_SINGLE_POP>: Invert members.
13671         <X86_TUNE_DOUBLE_POP>: Ditto.
13672         <X86_TUNE_SINGLE_PUSH>: Ditto.
13673         <X86_TUNE_DOUBLE_PUSH>: Ditto.
13674         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
13675         No longer exported.
13676         (push peephole2 patterns): Macroize peepholes using P mode iterator.
13677         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
13678         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
13679         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
13680
13681 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
13682
13683         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
13684         a volatile LHS if the constructor has only one element.
13685
13686 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
13687
13688         PR bootstrap/45321
13689         * tree.c (stdarg_p): Make fntype parameter const.
13690         * tree.h (stdarg_p): Likewise.
13691         (function_args_iterator): Remove unused fntype field.
13692         (function_args_iter_init): Do not initialize fntype
13693         field.  Make fntype parameter const.
13694
13695 2010-09-01  Richard Guenther  <rguenther@suse.de>
13696
13697         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
13698         estimate.
13699         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
13700         (execute_vrp): Compute number of iteration estimates.
13701         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
13702         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13703         * tree-data-ref.c (estimated_loop_iterations): Adjust.
13704         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13705         Infer loop bounds from undefined behavior based on a new parameter.
13706         (estimate_numbers_of_iterations): Likewise.
13707         (scev_probably_wraps_p): Adjust.
13708         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13709
13710 2010-09-01  Nick Clifton  <nickc@redhat.com>
13711
13712         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
13713         where appropriate.
13714         (xstormy16_legitimate_address_p): Use true and false instead of 1
13715         and 0.
13716         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
13717         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
13718         magic constant 2.
13719         (xstormy16_expand_call): Fix comment at start of function.
13720
13721 2010-09-01  Nick Clifton  <nickc@redhat.com>
13722
13723         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
13724         when pushing accumulator register.
13725         (rx_get_stack_layout): Always save call clobbered registers inside
13726         interrupt handlers.
13727         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
13728
13729 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13730
13731         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
13732         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13733
13734         * libgcc-std.ver (GCC_4.6.0): Define version.
13735
13736 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13737
13738         * tree-nested.c (convert_all_function_calls): Iterate until after the
13739         sum of static chains in the nest doesn't change.
13740
13741 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
13742
13743         * config/m32c/m32c.c (classes_intersect): Remove.
13744         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
13745         reg_classes_intersect_p instead of classes_intersect.
13746         (class_can_hold_mode): Change arguments type from enum reg_class to
13747         reg_class_t.  Use reg_class_contents instead of class_contents.
13748         (m32c_register_move_cost): Make static. Change arguments type from
13749         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
13750         classes_intersect. Use reg_class_contents instead of class_contents.
13751         (m32c_memory_move_cost): Make static. Change arguments type from
13752         enum reg_class to reg_class_t.
13753         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13754         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13755         * config/m32c/m32c-protos.h (m32c_register_move_cost,
13756         m32c_memory_move_cost): Remove.
13757
13758 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13759
13760         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
13761         (arm_function_arg): Delete.
13762         (arm_needs_doubleword_align): Take a const_tree.
13763         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13764         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
13765         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
13766         (arm_function_arg): Make static.  Take a const_tree and a bool.
13767         (arm_function_arg_advance): Likewise.
13768         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13769
13770 2010-08-31  Andi Kleen  <ak@linux.intel.com>
13771
13772         * common.opt (fwhopr=): Update for -fwhopr=jobserver
13773         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
13774         * lto-wrapper.c (run_gcc): Add jobserver mode.
13775         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
13776         argument.
13777
13778 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
13779
13780         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
13781         (popsi1): Ditto.
13782         (*popdi1_epilogue): Ditto.
13783         (*popsi1_epilogue): Ditto.
13784         (popsi, popdi peephole2 patterns): Update peepholes for changed
13785         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
13786
13787         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
13788         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
13789
13790         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
13791         (override_options): Do not initialize removed ix86_gen_pop1.
13792         (gen_pop): New static function.
13793         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
13794         (release_scratch_register_on_entry): Ditto.
13795         (ix86_restore_reg_using_pop): Ditto.
13796         (ix86_expand_epilogue): Ditto.
13797
13798 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
13799
13800         PR middle-end/45461
13801         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
13802
13803 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13804
13805         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
13806         semicolons.
13807
13808 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13809
13810         * doc/extend.texi: Fix documentation of the return value of
13811         __builtin_choose_expr.
13812
13813 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13814
13815         * config/v850/v850-protos.h (function_arg): Delete.
13816         * config/v850/v850.h (FUNCTION_ARG): Delete.
13817         (FUNCTION_ARG_ADVANCE): Move code to...
13818         * config/v850/v850.c (v850_function_arg_advance): ...here.
13819         (v850_function_arg): Make static.  Take a const_tree and a bool.
13820         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13821
13822 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13823
13824         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
13825         these...
13826         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13827         ...and these...
13828         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
13829         ..to here..
13830         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13831         ...and here.
13832         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13833
13834 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13835
13836         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
13837         Delete.
13838         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13839         * config/rx/rx.c (rx_function_arg_size): Make static.
13840         (rx_function_arg): Likewise.
13841         (rx_function_arg_advance): New function.
13842         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13843
13844 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
13845
13846         * config/arm/arm.c (arm_override_options): Remove superfluous test.
13847         Fix indentation.
13848
13849 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13850
13851         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
13852         (dwarf2out_decl) <CONST_DECL>: Likewise.
13853
13854 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
13855
13856         Stack usage support
13857         * common.opt (-fstack-usage): New option.
13858         * doc/invoke.texi (Debugging options): Document it.
13859         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
13860         allocate_dynamic_stack_space.
13861         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
13862         and propagate it to allocate_dynamic_stack_space.
13863         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
13864         * calls.c (initialize_argument_information): Pass TRUE as 4th
13865         argument to allocate_dynamic_stack_space.
13866         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
13867         to 1 when pushing a variable-sized argument onto the stack.  Pass
13868         TRUE as 4th argument to allocate_dynamic_stack_space.
13869         Update current_function_pushed_stack_size.
13870         (emit_library_call_value_1): Likewise.
13871         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
13872         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
13873         attempt to find an upper bound.  Remove redundant code for the
13874         SETJMP_VIA_SAVE_AREA case.
13875         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
13876         * function.h (struct stack_usage): New structure.
13877         (current_function_static_stack_size): New macro.
13878         (current_function_dynamic_stack_size): Likewise.
13879         (current_function_pushed_stack_size): Likewise.
13880         (current_function_dynamic_alloc_count): Likewise.
13881         (current_function_has_unbounded_dynamic_stack_size): Likewise.
13882         (current_function_allocates_dynamic_stack_space): Likewise.
13883         (struct function): Add new field 'su'.
13884         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
13885         add the value of the dynamic offset to the dynamic stack usage.
13886         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
13887         for variable-sized objects.
13888         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
13889         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
13890         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
13891         BUILT_IN_ALLOCA for variable-sized objects.
13892         * output.h (output_stack_usage): Declare.
13893         * toplev.c (stack_usage_file): New file pointer.
13894         (output_stack_usage): New function.
13895         (open_auxiliary_file): Likewise.
13896         (lang_dependent_init): Open file if flag_stack_usage is set.
13897         (finalize): Close file if stack_usage_file is not null.
13898         * tree.h (ALLOCA_FOR_VAR_P): New macro.
13899         * config/alpha/alpha.c (compute_frame_size): New function.
13900         (alpha_expand_prologue): Use it.
13901         (alpha_start_function): Likewise.
13902         (alpha_expand_epilogue): Likewise.  Set stack usage info.
13903         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13904         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13905         * config/mips/mips.c (mips_expand_prologue): Likewise.
13906         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13907         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13908         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13909
13910 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
13911
13912         PR tree-optimization/45427
13913         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
13914         Handle the case that the exit is never taken correctly.
13915         (number_of_iterations_ne): Pass exit_must_be_taken to
13916         number_of_iterations_ne_max.
13917
13918 2010-08-30  Catherine Moore  <clm@codesourcery.com>
13919
13920         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
13921         Infer -mdspr2 for the the 74K.
13922
13923 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
13924
13925         PR debug/45419
13926         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
13927
13928         PR middle-end/45423
13929         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
13930         and TRUTH_{AND,OR,XOR}_EXPR.
13931         * c-parser.c (c_parser_omp_atomic): Handle boolean
13932         {PRE,POST}_{INC,DEC}REMENT.
13933
13934 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
13935
13936         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
13937         (function_arg): Delete.
13938         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13939         (FUNCTION_INCOMING_ARG): Delete.
13940         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
13941         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
13942         and a bool.
13943         (function_arg): Rename to...
13944         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
13945         a bool.
13946         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
13947         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13948         (TARGET_FUNCTION_INCOMING_ARG): Define.
13949
13950 2010-08-30  Richard Guenther  <rguenther@suse.de>
13951
13952         PR tree-optimization/21602
13953         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
13954         using points-to information.
13955
13956 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
13957
13958         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
13959
13960 2010-08-30  Richard Guenther  <rguenther@suse.de>
13961
13962         PR tree-optimization/45449
13963         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
13964         variables.
13965
13966 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
13967
13968         * opts.h (CL_ERR_NEGATIVE): Define.
13969         * opts.c (unknown_option_callback): Don't postpone warnings for
13970         options marked with CL_ERR_NEGATIVE.
13971         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
13972         for negative versions of CL_REJECT_NEGATIVE options.
13973
13974 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
13975
13976         * config/i386/i386.md (zero_extendsidi2_1): Rename from
13977         zero_extendsidi2_32.
13978         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
13979         using SWI12 mode iterator.
13980         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
13981         to define_insn_and_split pattern.
13982         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
13983         using SWI24 mode iterator.
13984         (*zero_extendqi<mode>2_and): Macroize insn from
13985         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
13986         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
13987         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
13988         SWI24 mode iterator.
13989         (*zero_extendqi<mode>2_movzbl): Ditto from
13990         *zero_extendqi{hi,si}2_movzbl.
13991         (extendsidi2_1): Rename from extendsidi2_32.
13992         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
13993         SWI12 mode iterator.
13994
13995 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
13996
13997         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
13998         general purpose registers.
13999         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14000         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
14001         with general purpose registers and memory operands.  Add associated
14002         CCImode post-reload splitter.
14003         * config/ia64/div.md: Change BImode to CCImode throughout.
14004
14005 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
14006
14007         * config/ia64/ia64.md (cstorebi4): Fix thinko.
14008
14009 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
14010
14011         * config/picochip/picochip.c (reorder_var_tracking_notes): This
14012         function was dropping debug insns which caused PR45299.
14013
14014 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
14015
14016         * config/i386/sse.md (extsuffix): New code attribute.
14017         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14018         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14019         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14020         and sse4_1_zero_extendv4qiv4si2.
14021         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14022         and sse4_1_zero_extendv2qiv2di2.
14023         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14024         and sse4_1_zero_extendv4hiv4si2.
14025         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14026         and sse4_1_zero_extendv2hiv2di2.
14027         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14028         and sse4_1_zero_extendv2siv2di2
14029
14030         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14031         using any_extend code iterator.
14032         (*avx_<s>mulv8hi3_highpart): Macroize insn from
14033         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14034         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14035
14036         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14037         gen_sse4_1_sign_extend* functions.
14038         (struct builtin_description bdesc_args): Ditto.
14039
14040 2010-08-27  Xinliang David Li  <davidxl@google.com>
14041
14042         PR/45422
14043         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14044         (iv_ca_set_no_cp): Update used inv expr count.
14045         (iv_ca_set_cp): Ditto.
14046         (iv_ca_new): Initialize new member.
14047         (iv_ca_free): Free memory.
14048
14049 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14050
14051         * config/sh/sh-protos.h (sh_function_arg): Delete.
14052         (sh_function_arg_advance): Delete.
14053         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14054         (PASS_IN_REG_P): Eliminate cast.
14055         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
14056         const_tree and a bool.
14057         (sh_function_arg): Likewise.
14058         (sh_output_mi_thunk): Call sh_function_arg_advance) and
14059         sh_function_arg.
14060         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14061
14062 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
14063             Kaz Kojima  <kkojima@gcc.gnu.org>
14064
14065         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14066         when possible.
14067         (sh_expand_epilogue): Likewise.
14068         * config/sh/sh.md (movml_push_banked): New insn.
14069         (movml_pop_banked): Likewise.
14070
14071 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
14072
14073         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14074         gen_regexp_oneof, gen_regexp_sequence): Use the string found
14075         in vector element 0 rather than the original string when there's
14076         only one element.
14077         (gen_regexp): Remove extra semicolon.
14078
14079         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14080         thumb2_movsf_vfp): Set attribute "insn".
14081         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14082         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14083         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14084         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14085         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14086         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14087         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14088         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
14089         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
14090         if_not_arith, if_arith_not, cond_move_not): Likewise.
14091
14092 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14093
14094         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
14095         New declaration.
14096         (rs6000_allocate_stack_temp): Ditto.
14097         (rs6000_expand_convert_si_to_sfdf): Ditto.
14098
14099         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
14100         line.  Update the options set if power6 or power7 server/embedded
14101         type options are used.  If we give a warning for no vsx under
14102         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
14103         (rs6000_allocate_stack_temp): New function to allocate a stack
14104         tempoary and adjust the address so it meets either REG+OFFSET or
14105         REG+REG addressing requirements.
14106         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
14107         that they can be used with the LFIWAX/LFIWZX instrucitons.
14108         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
14109         converting signed/unsigned SImode to either SFmode/DFmode.
14110
14111         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
14112         whether certain instructions can be generated.
14113         (TARGET_FCTIDZ): Ditto.
14114         (TARGET_STFIWX): Ditto.
14115         (TARGET_LFIWAX): Ditto.
14116         (TARGET_LFIWZX): Ditto.
14117         (TARGET_FCFIDS): Ditto.
14118         (TARGET_FCFIDU): Ditto.
14119         (TARGET_FCFIDUS): Ditto.
14120         (TARGET_FCTIDUZ): Ditto.
14121         (TARGET_FCTIWUZ): Ditto.
14122
14123         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
14124         (UNSPEC_FCTID): Ditto.
14125         (UNSPEC_LFIWAX): Ditto.
14126         (UNSPEC_LFIWZX): Ditto.
14127         (UNSPEC_FCTIWUZ): Ditto.
14128         (rreg): Use correct constraints.
14129         (SI_CONVERT_FP): New mode attribute for floating point conversion
14130         tests.
14131         (E500_CONVERT): Ditto.
14132         (lfiwax): New insns for converting from integer to floating point
14133         utilizing newer instructions.  Attempt to optimize conversions
14134         that come from memory so that we don't load the value into a GPR,
14135         spill it to the stack and reload it into a FPR.
14136         (floatsi<mode>2_lfiwax): Ditto.
14137         (floatsi<mode>2_lfiwax_mem): Ditto.
14138         (floatsi<mode>2_lfiwax_mem2): Ditto.
14139         (lfiwzx): Ditto.
14140         (floatunssi<mode>2_lfiwzx): Ditto.
14141         (floatunssi<mode>2_lfiwzx_mem): Ditto.
14142         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
14143         (floatdidf2_mem): Ditto.
14144         (floatunsdidf2_fcfidu): Ditto.
14145         (floatunsdidf2_mem): Ditto.
14146         (floatunsdisf2): Ditto.
14147         (floatunsdisf2_fcfidus): Ditto.
14148         (floatunsdisf2_mem): Ditto.
14149         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
14150         Use FCFID on 32-bit hosts that support it.
14151         (floatsidf2_internal): Ditto.
14152         (floatunssisf2): Ditto.
14153         (floatunssidf2): Ditto.
14154         (floatunssidf2_internal): Ditto.
14155         (floatsisf2): Ditto.
14156         (floatdidf2): Ditto.
14157         (floatdidf2_fpr): Ditto.
14158         (floatunsdidf2): Ditto.
14159         (floatdisf2): Ditto.
14160         (floatdisf2_fcfids): Ditto.
14161         (floatdisf2_internal1): Ditto.
14162         (fixuns_truncsfsi2): Delete, merge into common pattern for both
14163         SF/DF.  Add power7 support.
14164         (fix_truncsfsi2): Ditto.
14165         (fixuns_truncdfsi2): Ditto.
14166         (fixuns_truncdfdi2): Ditto.
14167         (fix_truncdfsi2): Ditto.
14168         (fix_truncdfsi2_internal): Ditto.
14169         (fix_truncdfsi2_internal_gfxopt): Ditto.
14170         (fix_truncdfsi2_mfpgpr): Ditto.
14171         (fctiwz): Ditto.
14172         (btruncdf2): Ditto.
14173         (btruncdf2_fpr): Ditto.
14174         (btructsf2): Ditto.
14175         (ceildf2): Ditto.
14176         (ceildf2_fpr): Ditto.
14177         (ceilsf2): Ditto.
14178         (floordf2): Ditto.
14179         (floordf2_fpr): Ditto.
14180         (floorsf2): Ditto.
14181         (rounddf2): Ditto.
14182         (rounddf2_fpr): Ditto.
14183         (roundsf2): Ditto.
14184         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
14185         (fix_trunc<mode>di2): Ditto.
14186         (fixuns_trunc<mode>si2): Ditto.
14187         (fixuns_trunc<mode>di2): Ditto.
14188         (fctiwz_<mode>): Ditto.
14189         (btrunc<mode>2): Ditto.
14190         (btrunc<mode>2_fpr): Ditto.
14191         (ceil<mode>2): Ditto.
14192         (ceil<mode>2_fpr): Ditto.
14193         (floor<mode>2): Ditto.
14194         (float<mode>2_fpr): Ditto.
14195         (round<mode>2): Ditto.
14196         (round<mode>2_fpr): Ditto.
14197         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
14198         (fixuns_trunc<mode>si2_stfiwx): Ditto.
14199         (fix_truncdfsi2_internal): Ditto.
14200         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
14201         converted value on stack, loaded into GPR, and then stored into
14202         the final destination.
14203         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
14204         FCTIDZ.
14205         (lrint<mode>di2): New insn, provide the lrint builtin functions.
14206         (ftruncdf2): Delete, unused.
14207         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
14208
14209         * config/rs6000/vsx.md (toplevel): Update copyright year.
14210         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
14211         (VSr3): Ditto.
14212
14213 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
14214             Jeremie Salvucci  <jeremie.salvucci@free.fr>
14215
14216         * gengtype.c (output_type_enum): Test the right union member.
14217
14218 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
14219
14220         PR target/41484
14221         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
14222         operands for operand 1.
14223         (sse4_1_extendv4qiv4si2): Ditto.
14224         (sse4_1_extendv2qiv2di2): Ditto.
14225         (sse4_1_extendv4hiv4si2): Ditto.
14226         (sse4_1_extendv2hiv2di2): Ditto.
14227         (sse4_1_extendv2siv2di2): Ditto.
14228         (sse4_1_zero_extendv8qiv8hi2): Ditto.
14229         (sse4_1_zero_extendv4qiv4si2): Ditto.
14230         (sse4_1_zero_extendv2qiv2di2): Ditto.
14231         (sse4_1_zero_extendv4hiv4si2): Ditto.
14232         (sse4_1_zero_extendv2hiv2di2): Ditto.
14233         (sse4_1_zero_extendv2siv2di2): Ditto.
14234         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
14235         (*sse4_1_extendv4qiv4si2): Ditto.
14236         (*sse4_1_extendv2qiv2di2): Ditto.
14237         (*sse4_1_extendv4hiv4si2): Ditto.
14238         (*sse4_1_extendv2hiv2di2): Ditto.
14239         (*sse4_1_extendv2siv2di2): Ditto.
14240         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
14241         (*sse4_1_zero_extendv4qiv4si2): Ditto.
14242         (*sse4_1_zero_extendv2qiv2di2): Ditto.
14243         (*sse4_1_zero_extendv4hiv4si2): Ditto.
14244         (*sse4_1_zero_extendv2hiv2di2): Ditto.
14245         (*sse4_1_zero_extendv2siv2di2): Ditto.
14246
14247 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14248
14249         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
14250         (mips_function_arg): Delete.
14251         (mips_function_arg_boundary): Take a const_tree.
14252         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
14253         (mips_arg_info): Likewise.
14254         (mips_setup_incoming_varargs): Call mips_function_arg_advance
14255         instead of FUNCTION_ARG_ADVANCE.
14256         (mips_function_arg_advance): Adjust prototype.  Make static.
14257         (mips_function_arg): Likewise.
14258         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14259         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
14260
14261 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14262
14263         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14264         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
14265         (function_arg): Delete.
14266         (function_arg_boundary): Take a const_tree.
14267         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
14268         (rs6000_spe_function_arg): Likewise.
14269         (rs6000_parm_start): Likewise.
14270         (rs6000_arg_size): Likewise.
14271         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
14272         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
14273         (rs6000_mixed_function_arg): Likewise.
14274         (function_arg): Rename to...
14275         (rs6000_function_arg): ...this.
14276         (function_arg_advance): Rename to...
14277         (rs6000_function_arg_advance_1): ...this
14278         (rs6000_function_arg_advance): New function.  Call it.
14279         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
14280         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
14281         (rs6000_function_value): Likewise.
14282         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14283
14284 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14285
14286         * config/arm/arm.md (enabled): Test the value of arch_enabled
14287         rather than just using it.
14288
14289 2010-08-27  Olivier Hainque  <hainque@adacore.com>
14290             Eric Botcazou  <ebotcazou@adacore.com>
14291
14292         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
14293         cover all the possible offsets from this base.
14294         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
14295
14296 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
14297
14298         PR tree-optimization/44485
14299         * calls.c (flags_from_decl_or_type): For const or pure
14300         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
14301         together with ECF_CONST resp. ECF_PURE.
14302         * builtins.c (expand_builtin): Use flags_from_decl_or_type
14303         instead of querying flags directly.
14304         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
14305         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
14306
14307 2010-08-26  Richard Guenther  <rguenther@suse.de>
14308
14309         PR tree-optimization/45255
14310         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
14311         and externals are also invariant.
14312
14313 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14314
14315         PR rtl-optimization/44858
14316         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
14317         newi2pat, make sure they don't affect newpat.
14318
14319         PR rtl-optimization/45400
14320         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
14321         SUBREG_REG if both modes are of MODE_INT class.
14322
14323 2010-08-25  Julian Brown  <julian@codesourcery.com>
14324
14325         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
14326         * config/arm/arm.md (generic_sched): No for Cortex-A5.
14327         (generic_vfp): Likewise.
14328         (cortex-a5.md): Include.
14329         * config/arm/cortex-a5.md: New.
14330
14331 2010-08-25  Richard Guenther  <rguenther@suse.de>
14332
14333         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
14334         * gimple.c (gimple_get_alias_set): Remove special handling
14335         for pointers.
14336
14337 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
14338
14339         PR middle-end/45355
14340         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
14341         dead_or_set_p when computing i0_feeds_i2_n.
14342
14343         * combine.c (find_split_point): Undo canonicalization of multiply-add
14344         to (minus x (mult)) when it seems likely that this will increase the
14345         chances of a split.
14346
14347 2010-08-25  Richard Guenther  <rguenther@suse.de>
14348
14349         PR lto/44562
14350         * lto-streamer.c (lto_record_common_node): Do not mess with
14351         TYPE_CANONICAL when not in lto.
14352         * gimple.c (gimple_register_type): Likewise.
14353
14354 2010-08-25  Richard Guenther  <rguenther@suse.de>
14355
14356         PR tree-optimization/45316
14357         * tree-ssa-pre.c (eliminate): Properly clean EH info.
14358
14359 2010-08-25  Richard Guenther  <rguenther@suse.de>
14360
14361         PR tree-optimization/45393
14362         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
14363         and clean EH info.  Avoid SSA update.
14364         (execute_cse_sincos): Cleanup the CFG if it has changed.
14365
14366 2010-08-25  Richard Guenther  <rguenther@suse.de>
14367
14368         PR middle-end/45379
14369         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
14370         TARGET_MEM_REF in alignment computation.
14371
14372 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14373
14374         PR tree-optimization/45059
14375         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
14376         type conversions from newop{1,2}.  Assert t is a comparison and
14377         newop{1,2} after the stripping are gimple vals.
14378
14379 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
14380
14381         * config/arm/iterators.md (VU, SE, V_widen_l): New.
14382         (V_unpack, US): New.
14383         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
14384         (vec_unpack<US>_lo_<mode>): Likewise.
14385         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
14386         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14387         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
14388         (vec_widen_<US>mult_hi_<mode>): Likewise.
14389         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
14390         (neon_vec_<US>mult_hi_<mode>"): Likewise.
14391         (neon_unpack<US>_<mode>): Widening move intermediate step for
14392         vectorizing without -mvectorize-with-neon-quad.
14393         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
14394         for vectorizing without -mvectorize-with-neon-quad.
14395         * config/arm/predicates.md (vect_par_constant_high): Check for
14396         high-half lanes of a vector.
14397         (vect_par_constant_low): Check for low-half lanes of a vector.
14398
14399 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14400
14401         * tree-if-conv.c (struct ifc_dr): New.
14402         (IFC_DR): New.
14403         (DR_WRITTEN_AT_LEAST_ONCE): New.
14404         (DR_RW_UNCONDITIONALLY): New.
14405         (memref_read_or_written_unconditionally): Use the cached values
14406         when possible.
14407         (write_memref_written_at_least_once): Same.
14408         (if_convertible_loop_p): Initialize and free DR->aux fields.
14409
14410 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14411
14412         * gimple.c (gimple_could_trap_p_1): Not static anymore.
14413         Pass an extra bool parameter include_mem.
14414         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
14415         (gimple_assign_rhs_could_trap_p): Same.
14416         * gimple.h (gimple_could_trap_p_1): Declared.
14417         * tree-data-ref.h (same_data_refs_base_objects): New.
14418         (same_data_refs): New.
14419         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
14420         (write_memrefs_written_at_least_once): New.
14421         (ifcvt_memrefs_wont_trap): New.
14422         (operations_could_trap): New.
14423         (ifcvt_could_trap_p): New.
14424         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
14425         Gets a vector of data refs.
14426         (if_convertible_stmt_p): Same.
14427         (if_convertible_loop_p_1): New.
14428         (if_convertible_loop_p): Call if_convertible_loop_p_1.
14429
14430 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14431
14432         * common.opt (ftree-loop-if-convert-stores): New flag.
14433         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
14434         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
14435         the created statement before GSI.
14436         (if_convertible_phi_p): Allow virtual phi nodes when
14437         flag_loop_if_convert_stores is set.
14438         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
14439         Do not handle types that do not match is_gimple_reg_type.
14440         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
14441         when flag_loop_if_convert_stores is set, as LHS can contain
14442         memory refs.
14443         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
14444         to if_convertible_gimple_assign_stmt_p.
14445         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
14446         (replace_phi_with_cond_gimple_assign_stmt): Renamed
14447         predicate_scalar_phi.  Do not handle virtual phi nodes.
14448         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
14449         Call predicate_scalar_phi.
14450         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
14451         just after the labels for flag_loop_if_convert_stores, otherwise
14452         insert the predicate in the end of the BB.
14453         (predicate_mem_writes): New.
14454         (combine_blocks): Call predicate_all_scalar_phis.  When
14455         flag_loop_if_convert_stores is set, call predicate_mem_writes.
14456         (tree_if_conversion): Call mark_sym_for_renaming when
14457         flag_loop_if_convert_stores is set.
14458         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
14459         flag_loop_if_convert_stores is set.
14460
14461 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
14462
14463         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
14464         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
14465         (pa_function_value): Make static.
14466         (override_options): Rename to...
14467         (pa_option_override): ...this. Make static.
14468         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
14469         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
14470         TARGET_OPTION_OVERRIDE): Define.
14471         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
14472         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
14473         Remove.
14474         * config/pa/pa-protos.h (override_options): Remove.
14475
14476 2010-08-24  Richard Guenther  <rguenther@suse.de>
14477
14478         PR middle-end/45379
14479         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
14480         if addr->index is NULL or zero.
14481         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
14482         TARGET_MEM_REF more properly.
14483         (indirect_ref_may_alias_decl_p): Likewise.
14484         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
14485         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
14486
14487 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
14488
14489         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
14490         (m32c_override_options): Rename to...
14491         (m32c_option_override): ...this. Make static.
14492         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
14493         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
14494         Remove.
14495         * config/m32c/m32c-protos.h (m32c_override_options,
14496         m32c_function_value_regno_p): Remove.
14497
14498 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14499
14500         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
14501         Fix a typo in a previous commit.
14502
14503 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
14504
14505         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
14506         Pre-initialize innerloop_iters to one.
14507
14508 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14509
14510         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
14511         existing static function global.
14512
14513         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
14514         is changed to global.
14515
14516         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
14517         may_be_nonaddressable_p on base, and don't collect this reference
14518         if the address of the base could not be taken.
14519
14520 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14521
14522         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
14523         enable the compiler to autovectorize mathmetical functions for
14524         power7 using the Mathematical Acceleration Subsystem library.
14525
14526         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
14527         handle which vector math library we have.
14528         (rs6000_override_options): Add -mveclibabi=mass support.
14529         (rs6000_builtin_vectorized_libmass): New function to handle auto
14530         vectorizing math functions that are in the MASS library.
14531         (rs6000_builtin_vectorized_function): Call it.
14532
14533         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14534         -mveclibabi=mass.
14535
14536 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14537
14538         PR boehm-gc/34544
14539         * gthr-posix.h (__gthread_active_init): Delete.
14540         (__gthread_active_p): Do activity check here.
14541         Don't include errno.h on hppa-hpux.  Update comment.
14542         * gthr-posix95.h (__gthread_active_init): Delete.
14543         (__gthread_active_p): Do activity check here.
14544         Don't include errno.h on hppa-hpux.  Update comment.
14545         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
14546         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
14547         add -lpthread when -mt or -pthread is specified.
14548         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
14549         (LINK_GCC_C_SEQUENCE_SPEC): Define.
14550         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
14551         (stublib.c, pthread_default_stacksize_np-stub.o,
14552         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
14553         $(T)libgcc_stub.a): Add methods.
14554         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
14555         (stublib.c, pthread_default_stacksize_np-stub.o,
14556         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
14557         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14558         pthread_mutex_unlock): New stubs.
14559
14560 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
14561
14562         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
14563         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
14564         options.
14565         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
14566         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
14567         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
14568         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
14569         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
14570         "-l".
14571         * cppspec.c: Include opts.h.
14572         (lang_specific_driver): Use cl_decoded_option structures.
14573         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
14574         * doc/tm.texi: Regenerate.
14575         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
14576         (driver_handle_option): Allow driver options needing no special
14577         processing.
14578         (process_command): Decode options before call to
14579         lang_specific_driver.  Pass decoded options to
14580         lang_specific_driver.
14581         * gcc.h (lang_specific_driver): Update prototype.
14582         * gccspec.c: Include opts.h.
14583         (lang_specific_driver): Use cl_decoded_option structures.
14584         * opts-common.c (option_ok_for_language, generate_option,
14585         generate_option_input_file): New.
14586         (decode_cmdline_option): Use option_ok_for_language.
14587         (decode_cmdline_options_to_array): Use generate_option_input_file.
14588         (handle_generated_option): Use generate_option.
14589         * opts.h (generate_option, generate_option_input_file): Declare.
14590
14591 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
14592
14593         * config/mips/mips.c (mips_override_options): Rename to...
14594         (mips_option_override): ...this. Make static.
14595         (TARGET_OPTION_OVERRIDE): Define.
14596         (mips_in_small_data_p): Update comment.
14597         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
14598         (FIXED_REGISTERS): Update comment.
14599         * config/mips/mips-protos.h (mips_override_options): Remove.
14600
14601 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14602
14603         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
14604
14605 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14606
14607         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
14608         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
14609
14610 2010-08-20  Jan Hubicka  <jh@suse.cz>
14611
14612         * tree-pass.h (pass_ipa_cdtor_merge): New function.
14613         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
14614         heap allocated.
14615         (record_cdtor_fn): Move to ipa.c; do not test for
14616         have_ctors_dtors.
14617         (build_cdtor): Move to ipa.c; add code avoiding construction
14618         when target have ctors/dtors and there is only one ctor/dtor at given
14619         priority.
14620         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
14621         sort; reverse order of constructors.
14622         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
14623         (cgraph_finalize_function): Do not call record_cdtor_fn.
14624         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
14625         (cgraph_build_static_cdtor): Move to ipa.c.
14626         * ipa.c: Include target.h and tree-iterator.h.
14627         (cgraph_build_static_cdtor, static_ctors, static_dtors,
14628         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
14629         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
14630         pass_ipa_cdtor_merge): New.
14631         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
14632         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
14633         bounds access.
14634
14635 2010-08-20  Jan Hubicka  <jh@suse.cz>
14636
14637         PR c++/45307
14638         PR c++/17736
14639         * cgraph.h (cgraph_only_called_directly_p,
14640         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
14641         static cdtors.
14642         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
14643         are not needed.
14644         (cgraph_finalize_function): Static cdtors are reachable.
14645         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
14646
14647 2010-08-20  Jan Hubicka  <jh@suse.cz>
14648
14649         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
14650         flag_wpa.
14651         * lto-streamer-out.c (lto_output): Likewise.
14652         * passes.c (ipa_write_optimization_summaries): Initialize statement
14653         uids.
14654
14655 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14656
14657         * tree.h (alias_diag_flags): New enum.
14658         (alias_pair): Add an 'emitted_diags' field.
14659         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
14660         (assemble_alias): Initialize emitted_diags of new pairs.
14661
14662 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
14663
14664         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14665         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14666         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14667         (STACK_CHECK_PROTECT): Define.
14668         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
14669         (output_probe_stack_range): Likewise.
14670         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
14671         builtin stack checking is enabled.
14672         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
14673         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14674         (probe_stack_range): New insn.
14675
14676 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14677
14678         PR target/45336
14679         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
14680         short first.
14681
14682         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
14683         char first.
14684
14685 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14686
14687         PR target/45336
14688         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
14689         to cover zero extension into 64-bit register.
14690         (*sse2_pextrw): Likewise.
14691         (*sse4_1_pextrd_zext): New insn.
14692
14693 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14694
14695         revert r163410, partially revert r163267.
14696         * config/rs6000/darwin.h (LIB_SPEC): Remove.
14697         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
14698         Darwin versions.
14699
14700 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14701
14702         PR middle-end/44974
14703         * builtins.c (expand_builtin): Don't optimize away
14704         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
14705
14706 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
14707
14708         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
14709         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
14710         alternative 1 of operand 2.
14711
14712 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14713             Paolo Bonzini  <bonzini@gnu.org>
14714
14715         * simplify-rtx.c (simplify_unary_operation_1): Optimize
14716         (sign_extend (zero_extend (...)) and
14717         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
14718
14719 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14720
14721         PR rtl-optimization/45353
14722         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
14723         after bb_note is a BARRIER.
14724
14725 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14726
14727         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
14728         linking libgcc.a.
14729
14730 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14731             Michael Matz  <matz@suse.de>
14732
14733         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
14734
14735 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14736
14737         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
14738         (ggc_mark_roots): ...here.
14739
14740 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14741
14742         * vec.h (FOR_EACH_VEC_ELT): Define.
14743         * c-decl.c: Use it.
14744         * cfgloop.c: Likewise.
14745         * cfgloopmanip.c: Likewise.
14746         * cgraph.c: Likewise.
14747         * cgraphunit.c: Likewise.
14748         * combine.c: Likewise.
14749         * config/bfin/bfin.c: Likewise.
14750         * config/mips/mips.c: Likewise.
14751         * config/rs6000/rs6000.c: Likewise.
14752         * dbxout.c: Likewise.
14753         * df-scan.c: Likewise.
14754         * dominance.c: Likewise.
14755         * dse.c: Likewise.
14756         * dwarf2out.c: Likewise.
14757         * except.c: Likewise.
14758         * expr.c: Likewise.
14759         * function.c: Likewise.
14760         * gcse.c: Likewise.
14761         * genattr.c: Likewise.
14762         * ggc-common.c: Likewise.
14763         * gimplify.c: Likewise.
14764         * graphite-blocking.c: Likewise.
14765         * graphite-clast-to-gimple.c: Likewise.
14766         * graphite-dependences.c: Likewise.
14767         * graphite-interchange.c: Likewise.
14768         * graphite-poly.c: Likewise.
14769         * graphite-scop-detection.c: Likewise.
14770         * graphite-sese-to-poly.c: Likewise.
14771         * graphite.c: Likewise.
14772         * haifa-sched.c: Likewise.
14773         * ifcvt.c: Likewise.
14774         * implicit-zee.c: Likewise.
14775         * ipa-prop.c: Likewise.
14776         * ipa-struct-reorg.c: Likewise.
14777         * ipa.c: Likewise.
14778         * ira-build.c: Likewise.
14779         * ira-color.c: Likewise.
14780         * ira-emit.c: Likewise.
14781         * lambda-code.c: Likewise.
14782         * loop-invariant.c: Likewise.
14783         * loop-unroll.c: Likewise.
14784         * lower-subreg.c: Likewise.
14785         * lto-cgraph.c: Likewise.
14786         * lto-opts.c: Likewise.
14787         * lto-streamer-in.c: Likewise.
14788         * lto-streamer-out.c: Likewise.
14789         * lto-streamer.c: Likewise.
14790         * lto-symtab.c: Likewise.
14791         * matrix-reorg.c: Likewise.
14792         * opts.c: Likewise.
14793         * predict.c: Likewise.
14794         * print-tree.c: Likewise.
14795         * sdbout.c: Likewise.
14796         * sel-sched-dump.c: Likewise.
14797         * sel-sched-ir.c: Likewise.
14798         * sel-sched.c: Likewise.
14799         * sese.c: Likewise.
14800         * stor-layout.c: Likewise.
14801         * tree-cfg.c: Likewise.
14802         * tree-cfgcleanup.c: Likewise.
14803         * tree-chrec.c: Likewise.
14804         * tree-data-ref.c: Likewise.
14805         * tree-emutls.c: Likewise.
14806         * tree-inline.c: Likewise.
14807         * tree-into-ssa.c: Likewise.
14808         * tree-loop-distribution.c: Likewise.
14809         * tree-loop-linear.c: Likewise.
14810         * tree-mudflap.c: Likewise.
14811         * tree-outof-ssa.c: Likewise.
14812         * tree-parloops.c: Likewise.
14813         * tree-predcom.c: Likewise.
14814         * tree-pretty-print.c: Likewise.
14815         * tree-scalar-evolution.c: Likewise.
14816         * tree-ssa-live.c: Likewise.
14817         * tree-ssa-loop-im.c: Likewise.
14818         * tree-ssa-loop-ivcanon.c: Likewise.
14819         * tree-ssa-loop-ivopts.c: Likewise.
14820         * tree-ssa-loop-manip.c: Likewise.
14821         * tree-ssa-loop-niter.c: Likewise.
14822         * tree-ssa-loop-prefetch.c: Likewise.
14823         * tree-ssa-phiprop.c: Likewise.
14824         * tree-ssa-pre.c: Likewise.
14825         * tree-ssa-reassoc.c: Likewise.
14826         * tree-ssa-sccvn.c: Likewise.
14827         * tree-ssa-structalias.c: Likewise.
14828         * tree-ssa.c: Likewise.
14829         * tree-vect-data-refs.c: Likewise.
14830         * tree-vect-loop-manip.c: Likewise.
14831         * tree-vect-loop.c: Likewise.
14832         * tree-vect-patterns.c: Likewise.
14833         * tree-vect-slp.c: Likewise.
14834         * tree-vect-stmts.c: Likewise.
14835         * tree-vrp.c: Likewise.
14836         * tree.c: Likewise.
14837         * value-prof.c: Likewise.
14838         * var-tracking.c: Likewise.
14839         * varasm.c: Likewise.
14840         * vmsdbgout.c: Likewise.
14841
14842 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
14843             Richard Guenther  <richard.guenther@gmail.com>
14844
14845         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
14846         copy the src value and return a copy.
14847         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
14848         (C++ Volatiles): Adjust to describe C++ semantics only.
14849
14850 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
14851
14852         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
14853         be zero or nonzero.
14854         * doc/tm.texi: Regenerate.
14855         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
14856         * df-scan.c (df_get_exit_block_use_set), reginfo.c
14857         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
14858         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
14859         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
14860         to 1.
14861
14862 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14863
14864         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
14865         an extra nop past a sibling call at the very end.
14866
14867 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14868
14869         PR bootstrap/45350
14870         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
14871         a comment.
14872
14873 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14874
14875         * target.def (function_arg, function_incoming_arg): Remove const
14876         qualifier on CUMULATIVE_ARGS parameter.
14877         * targhooks.h (default_function_arg, default_function_incoming_arg):
14878         Likewise.
14879         * targhooks.c (default_function_arg, default_function_incoming_arg):
14880         Likewise.
14881         * config/i386/i386.c (ix86_function_arg): Likewise.
14882
14883 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
14884
14885         PR target/45336
14886         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
14887         SIGN_EXTENDs or ZERO_EXTENDs.
14888
14889 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14890
14891         PR target/42172
14892         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
14893         Take its cost into account if nonnull.
14894         (insn_a_feeds_b): New static function.
14895         (combine_instructions): Look for four-insn combinations.
14896         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
14897         them into account when computing all_adjacent and looking for other
14898         uses.
14899         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
14900         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
14901         (try_combine): New arg I0.  Handle four-insn combinations.
14902         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
14903         like ELIM_I1.
14904
14905 2010-08-19  Jason Merrill  <jason@redhat.com>
14906
14907         PR c++/45307
14908         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
14909         if ctor is empty.
14910         (gimplify_modify_expr_rhs): Adjust.
14911
14912 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14913
14914         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
14915         bitmap_bit_p.
14916         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
14917         * dominance.c (iterate_fix_dominators): Likewise.
14918         * dse.c (set_usage_bits): Likewise.
14919         (set_position_unneeded, record_store): Likewise.
14920         * gimple-fold.c (get_maxval_strlen): Likewise.
14921         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
14922         * ipa-inline.c (update_caller_keys): Likewise.
14923         * ipa-split.c (verify_non_ssa_vars): Likewise.
14924         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
14925         (close_type_exposed_parameter, close_type_full_escape): Likewise.
14926         (close_addressof_down): Likewise.
14927         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
14928         (setup_allocno_left_conflicts_size): Likewise.
14929         (ira_reassign_conflict_allocnos): Likewise.
14930         (ira_reassign_pseudos): Likewise.
14931         * ira-emit.c (change_loop): Likewise.
14932         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
14933         * lto-streamer-out.c (write_symbol): Likewise.
14934         * predict.c (expr_expected_value_1): Likewise.
14935         * regstat.c (regstat_bb_compute_ri): Likewise.
14936         * sel-sched.c (create_block_for_bookkeeping): Likewise.
14937         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
14938         * stmt.c (expand_case): Likewise.
14939         * tree-eh.c (emit_eh_dispatch): Likewise.
14940         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
14941         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
14942         Likewise.
14943         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
14944         (rdg_build_components): Likewise.
14945         * tree-object-size.c (collect_object_sizes_for): Likewise.
14946         * tree-sra.c (convert_callers): Likewise.
14947         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
14948         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
14949         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
14950
14951 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14952
14953         * config/i386/i386.md (*lea_1): Use P mode iterator.
14954         (lea add splitter): Also handle DImode operands.
14955         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
14956         predicate.  Do not use ix86_lea_for_add_ok.
14957         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
14958         (lea ashift splitter): Also handle DImode operands.
14959         (DImode lea ashift splitter): Remove splitter.
14960
14961 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14962
14963         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
14964         ix86_binary_operator_ok.
14965
14966 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
14967
14968         PR rtl-optimization/44691
14969         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
14970         is not a register.
14971
14972 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14973
14974         PR target/45070
14975         * config/arm/arm.c (arm_output_epilogue): Ensure that return
14976          value of size 1-3 is handled correctly.
14977
14978 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14979
14980         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
14981         type for the conditional has wide enough range.
14982
14983 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14984
14985         PR target/45327
14986         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
14987         ix86_binary_operator_ok.
14988
14989 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14990
14991         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
14992         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
14993         code to output insn mnemonic.  Fix comment.
14994         (*addsi_1_zext): Add r-r-0 alternative 1.
14995         <TYPE_LEA>: Split insn to lea.
14996         <default>: Handle alternative 1.
14997         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
14998         multi-level if_then_else RTX to set "type" attribute.
14999         <default>: Handle alternative 2.
15000         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15001         Use cond RTX instead of multi-level if_then_else RTX to set
15002         "type" attribute.
15003         <default>: Handle alternatives 2 and 4.
15004         (lea splitters): Update calls to ix86_lea_for_add_ok.
15005
15006         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15007         argument.
15008         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15009
15010 2010-08-18  Richard Guenther  <rguenther@suse.de>
15011
15012         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15013         use operand helpers.
15014
15015 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
15016
15017         PR middle-end/45292
15018         * optabs.c (expand_bool_compare_and_swap): Expand pending
15019         pops before trying the optab.
15020
15021 2010-08-18  Yao Qi  <yao@codesourcery.com>
15022
15023         PR target/45094
15024         * config/arm/arm.c (output_move_double): Fix typo generating
15025         instructions ('ldr'->'str').
15026
15027 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15028
15029         PR rtl-optimization/42575
15030         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15031         live ranges.
15032
15033 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15034
15035         * config/arm/arm-protos.h (arm_expand_sync): New.
15036         (arm_output_memory_barrier, arm_output_sync_insn): New.
15037         (arm_sync_loop_insns): New.
15038         * config/arm/arm.c (FL_ARCH7): New.
15039         (FL_FOR_ARCH7): Include FL_ARCH7.
15040         (arm_arch7): New.
15041         (arm_print_operand): Support %C markup.
15042         (arm_legitimize_sync_memory): New.
15043         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15044         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15045         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15046         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15047         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15048         (arm_process_output_sync_insn, arm_output_sync_insn): New.
15049         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15050         * config/arm/arm.h (struct arm_sync_generator): New.
15051         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15052         (TARGET_HAVE_MEMORY_BARRIER): New.
15053         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15054         * config/arm/arm.md: Include sync.md.
15055         (UNSPEC_MEMORY_BARRIER): New.
15056         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15057         (VUNSPEC_SYNC_OP):New.
15058         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15059         (sync_result, sync_memory, sync_required_value): New attributes.
15060         (sync_new_value, sync_t1, sync_t2): Likewise.
15061         (sync_release_barrier, sync_op): Likewise.
15062         (length): Add logic to length attribute defintion to call
15063         arm_sync_loop_insns when appropriate.
15064         * config/arm/sync.md: New file.
15065
15066 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15067
15068         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15069         ENABLE_TREE_CHECKING.
15070         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15071         and GCC >= 4.3.
15072
15073 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
15074
15075         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15076         or optimizing for size, always avoid lea if possible.
15077
15078         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15079
15080 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
15081
15082         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15083         Dunmmy function with NULL return unless the target is
15084         OSX >= 10.6 (Darwin10).
15085
15086 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
15087
15088         * gcc.c (spec_function): Add remove-outfile.
15089         (remove_outfile_spec_function): New function.
15090         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
15091         * invoke.texi (replace-outfile): Document.
15092
15093 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
15094
15095         PR target/45296
15096         * reginfo.c (globalize_reg): Reject stack registers.
15097
15098 2010-08-17  Richard Guenther  <rguenther@suse.de>
15099
15100         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
15101         list of conditional equivalences.
15102         (free_all_edge_infos): Adjust.
15103         (record_equivalences_from_incoming_edge): Likewise.
15104         (record_cond): Likewise.
15105         (build_and_record_new_cond): Likewise.
15106         (record_conditions): Likewise.
15107         (dom_opt_leave_block): Likewise.
15108
15109 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
15110
15111         * doc/invoke.texi (ms-extension): Add documentation.
15112
15113 2010-08-17  Richard Guenther  <rguenther@suse.de>
15114
15115         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
15116
15117 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
15118
15119         PR c/40563
15120         * c-decl.c (diagnose_uninitialized_cst_member): New function.
15121         (finish_decl): Use it to issue a -Wc++-compat warning about
15122         uninitialized const field in struct or union.
15123
15124         (finish_struct): Use strip_array_types.
15125
15126 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15127
15128         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
15129         functions.
15130         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
15131         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
15132         call block_nreverse here.
15133         (blocks_nreverse): Rename decl temporary to block.
15134
15135 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
15136
15137         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
15138         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
15139         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
15140         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
15141         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
15142         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
15143         thumb2_iorsi3): Delete.
15144         (orsi_notsi_si): No longer a named pattern.
15145         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
15146         * config/arm/predicates.md (shift_amount_operand): New.
15147         (mult_operator): New.
15148         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
15149         attr enabled): New.
15150         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
15151         arch matches t2.
15152         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
15153         (not_shiftsi_compare0): Likewise, renamed from
15154         arm_notsi_shiftsi_compare0.
15155         (not_shiftsi_compare0_scratch): Likweise, renamed from
15156         arm_notsi_shiftsi_compare0_scratch.
15157         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
15158         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
15159         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
15160         so that the register alternative is disabled when the shift_operator
15161         is MULT.  Use "M" as the constraint for constants.
15162         (arith_shiftsi splitter): Enable for TARGET_32BIT.
15163         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
15164         constraint for constants.
15165         (arith_shiftsi_compare0_scratch): Likewise.
15166         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
15167         Handle Thumb2 alternative.
15168
15169 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15170
15171         * doc/options.texi (NoDriverArg): Document.
15172         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
15173         -MDX and -MMDX.
15174         * opt-functions.awk (switch_flags): Handle NoDriverArg.
15175         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
15176         marking for CL_NO_DRIVER_ARG options when in the driver.
15177         * opts.h (CL_NO_DRIVER_ARG): Define.
15178         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15179         CL_COMMON): Update values.
15180
15181 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15182
15183         * common.opt: Add driver options.
15184         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
15185         * doc/options.texi (Driver, RejectDriver): Document.
15186         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
15187         print_prog_name, print_multi_directory, print_sysroot,
15188         print_multi_os_directory, print_multi_lib,
15189         print_sysroot_headers_suffix, report_times, combine_flag,
15190         use_pipes, wrapper_string): Remove.
15191         (save_switch, driver_unknown_option_callback,
15192         driver_wrong_lang_callback, driver_post_handling_callback,
15193         driver_handle_option): New.
15194         (spec_lang, last_language_n_infiles): Make file-scope static
15195         instead of local to process_command.
15196         (process_command): Use decode_cmdline_options_to_array and
15197         read_cmdline_option for option processing.  Compute have_c in
15198         prescan of decoded options.
15199         * opt-functions.awk (switch_flags): Handle Driver and
15200         RejectDriver.
15201         (var_type, var_type_struct): Handle Separate options as generating
15202         const char * variables.
15203         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
15204         CL_TARGET to be passed by caller if required.
15205         (decode_cmdline_options_to_array): Update comment.
15206         * opts.c (complain_wrong_lang): Handle options only valid for the
15207         driver.
15208         (decode_options): Update call to decode_cmdline_options_to_array.
15209         (print_filtered_help): Ignore driver-only options.
15210         (print_specific_help): Ignore CL_DRIVER.
15211         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
15212         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
15213         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
15214         Update values.
15215
15216 2010-08-16  Richard Guenther  <rguenther@suse.de>
15217
15218         * tree-cfg.c (verify_types_in_gimple_reference): Verify
15219         TARGET_MEM_REF a bit.
15220         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
15221         (create_mem_ref_raw): Always create TMR_OFFSET, store the
15222         alias pointer type via it.
15223         (copy_mem_ref_info): Adjust.
15224         (maybe_fold_tmr): Likewise.
15225         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
15226         (reference_alias_ptr_type): Likewise.
15227         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
15228         adjust documentation of TMR_OFFSET operand.
15229         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
15230         use the alias pointer type.
15231         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
15232         initialize mem attrs but the TMR itself.
15233         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
15234         similar to MEM_REF.
15235         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
15236         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
15237         (unshare_and_remove_ssa_names): Likewise.
15238         (copy_ref_info): Adjust.
15239         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
15240         TARGET_MEM_REF case.
15241         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
15242         at TMR_ORIGINAL.
15243         * tree.h (TMR_ORIGINAL): Remove.
15244         * gimple.c (get_base_address): For TARGET_MEM_REF with a
15245         symbol return that.
15246         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
15247         with a symbol.
15248         (get_addr_base_and_unit_offset): Likewise.
15249         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
15250         TARGET_MEM_REFs.
15251         (indirect_ref_may_alias_decl_p): Likewise.
15252         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
15253
15254 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
15255
15256         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
15257         with GCC version 4.6, the default setting (when not optimizing
15258         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
15259         been changed to -fomit-frame-pointer.
15260
15261 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
15262
15263         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
15264         Darwin10.  Do not link libgcc.a for Darwin >= 9.
15265
15266 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
15267
15268         * doc/invoke.texi (Warning Options): Fix terminology and markup
15269         in the description of how unknown warning options are handled.
15270
15271 2010-08-15  Ira Rosen  <irar@il.ibm.com>
15272
15273         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
15274         in basic blocks.
15275         (vect_supportable_dr_alignment): Check alignment for basic blocks.
15276         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
15277         data references.
15278         (vect_bb_vectorization_profitable_p): New function.
15279         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
15280         check if it's worthwhile to vectorize the basic block.
15281
15282 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
15283
15284         * reload.h (register_move_cost, memory_move_secondary_cost,
15285         secondary_reload_class): Adjust prototype.
15286         * rtl.h (reg_class_subset_p): Adjust prototype.
15287         * reload.c (secondary_reload_class): Change arguments type from
15288         enum reg_class to reg_class_t. Change result type to reg_class_t.
15289         * reginfo.c (register_move_cost, reg_class_subset_p): Change
15290         arguments type from enum reg_class to reg_class_t.
15291         (memory_move_secondary_cost): Change arguments type from
15292         enum reg_class to reg_class_t. Change type of saved_flags to
15293         reg_class_t.
15294
15295         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15296         Remove macros.
15297         (mips_cost): Remove.
15298         (struct mips_rtx_cost_data): Moved to mips.c.
15299         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
15300         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
15301         (mips_cost): Make static.
15302         (mips_canonicalize_move_class): Change argument type to reg_class_t.
15303         Change result type to reg_class_t.
15304         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
15305         type from enum reg_class to reg_class_t.
15306         (mips_register_move_cost): Make static. Change arguments
15307         type from enum reg_class to reg_class_t.
15308         (mips_memory_move_cost): New function.
15309         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15310
15311 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
15312
15313         PR rtl-optimization/43358
15314         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
15315         of a single hard register, using simplify_subreg_regno to decide
15316         what that register should be.
15317
15318 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
15319
15320         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
15321         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
15322         (loongson_pmull<V_suffix>): Rename to...
15323         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
15324
15325 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
15326
15327         * configure.ac: Enable -fomit-frame-pointer on darwin
15328         which support dwarf2.
15329         * config/i386/i386.c (override_options): Same.
15330
15331 2010-08-13  Jie Zhang  <jie@codesourcery.com>
15332
15333         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
15334
15335 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
15336
15337         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
15338         -MMD.
15339
15340 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
15341
15342         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
15343         up dot_prod pattern searching if a stmt is outside the loop.
15344
15345 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15346             Uros Bizjak  <ubizjak@gmail.com>
15347
15348         * config.gcc: Handle --enable-frame-pointer.
15349
15350         * configure.ac: Add --enable-frame-pointer.
15351         * configure: Regenerated.
15352
15353         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
15354         (override_options): If not configured with --enable-frame-pointer,
15355         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
15356         optimizing for size), -fasynchronous-unwind-tables and
15357         -maccumulate-outgoing-args by default.
15358
15359 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15360
15361         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
15362
15363         PR middle-end/45262
15364         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
15365         -a overflows.  Normalize the range.
15366
15367 2010-08-12  Richard Guenther  <rguenther@suse.de>
15368
15369         PR tree-optimization/45232
15370         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
15371         for types with undefined overflow.
15372         (reassociate_bb): Allow re-associating of bit and min/max
15373         operations for types with undefined overflow.
15374         * tree-ssa-forwprop.c (associate_plusminus): New function.
15375         (tree_ssa_forward_propagate_single_use_vars): Call it.
15376
15377 2010-08-12  Richard Guenther  <rguenther@suse.de>
15378
15379         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
15380         * tree-ssa-alias.c (get_ptr_info): Move ...
15381         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
15382         align and misalign fields conservatively.
15383         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
15384         derive alignment information.
15385         (evaluate_stmt): Derive alignment information from memory
15386         allocation functions.
15387         * tree.h (get_pointer_alignment): Make unsigned.
15388         * builtins.c (get_object_alignment): Use alignment information we
15389         have computed for pointers.
15390         (get_pointer_alignment): Likewise.  Make conservative, return
15391         and unsigned value.
15392         (expand_builtin_strlen): Adjust.
15393         (expand_builtin_memcmp): Likewise.
15394         (expand_builtin_strcmp): Likewise.
15395         (expand_builtin_strncmp): Likewise.
15396         (get_builtin_sync_mem): Use at least mode alignment.
15397         (fold_builtin_memset): Adjust.
15398         (fold_builtin_memory_op): Likewise.
15399         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
15400         information also dump pointer alignment knowledge.
15401         (dump_gimple_stmt): Likewise.
15402
15403 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
15404
15405         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
15406         (EMPTY_FIELD_BOUNDARY): Remove.
15407         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
15408
15409 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15410
15411         PR debug/45259
15412         * caller-save.c (save_call_clobbered_regs): Only swap notes with
15413         DEBUG_INSNs if n_regs_saved.
15414
15415 2010-08-12  Wei Guozhi  <carrot@google.com>
15416
15417         PR target/44999
15418         * config/arm/arm.md (andsi3): Change to zero extension if possible.
15419         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
15420
15421 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
15422
15423         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
15424
15425         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
15426
15427 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15428
15429         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
15430         the case removed in the previous patch, when the only phi argument
15431         is defined in the same loop as the phi node itself.  Handle it
15432         separately from the invariant case by both propagating it outside
15433         the region and replacing the phi node with an assign.
15434
15435 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15436
15437         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
15438         constant phi nodes with one argument are is_gimple_min_invariant
15439         and SSA_NAME_IS_DEFAULT_DEF.
15440
15441 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15442
15443         * graphite-cloog-util.c (oppose_constraint):
15444         Extend loop counter's value range (CLOOG_ORG).
15445         (cloog_matrix_to_ppl_constraint): Same.
15446         (new_Constraint_System_from_Cloog_matrix): Same.
15447         * graphite-cloog-compat.h (matrix_num_type): New.
15448
15449 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15450
15451         * graphite.c (graphite_initialize): Do not initialize
15452         CLooG and initialize the Parma Polyhedra Library
15453         manually when using CLOOG_ORG.
15454         (graphite_finalize): Do not finalize CLooG and finalize
15455         the Parma Polyhedra Library manually when using CLOOG_ORG.
15456         * graphite-cloog-compat.h (cloog_initialize): Hide function
15457         when using CLOOG_ORG.
15458         (cloog_finalize): Same.
15459
15460 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15461
15462         * graphite-clast-to-gimple.c (free_scattering): Change
15463         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
15464         (CLOOG_ORG).
15465         (build_cloog_prog): Same.
15466         * graphite-cloog-compat.h (cloog_domain): Removed.
15467         (cloog_scattering): New.
15468         (cloog_set_domain): Removed.
15469         (cloog_set_scattering): New.
15470         (cloog_next_domain): Removed.
15471         (cloog_next_scattering): New.
15472         (cloog_set_next_domain): Removed.
15473         (cloog_set_next_scattering): New.
15474         (CloogScatteringList): New.
15475         (CloogScattering): New.
15476         (cloog_scattering_free): New.
15477         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
15478         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
15479         New.
15480
15481 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15482
15483         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
15484         CloogState.
15485         (set_cloog_options): Same.
15486         (print_clast_stmt): Same.
15487         (scop_to_clast): Same.
15488         (print_generated_program): Same.
15489         (gloog): Same.
15490         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
15491         (scop_to_clast): Extend with CloogState.
15492         * graphite-cloog-util.c: Include graphite-cloog-compat.h
15493         (new_Cloog_Domain_from_ppl_Polyhedron):
15494         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
15495         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
15496         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15497         * graphite-cloog-util.h (build_cloog_prog): Same.
15498         * graphite-cloog-copat.h (build_cloog_prog): New.
15499         (CloogState): New.
15500         (cloog_state_malloc): New.
15501         (cloog_state_free): New.
15502         (cloog_loop_malloc): New.
15503         (cloog_options_malloc): New.
15504         (cloog_statement_alloc): New.
15505         (cloog_domain_from_cloog_matrix): New.
15506         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
15507         (new_Cloog_Domain_from_ppl_Polyhedron): New.
15508
15509 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15510
15511         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
15512         type of NAME now depends on used CLooG version.
15513         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
15514         (gcc_type_for_clast_expr): Same.
15515         (print_clast_stmt): Replace pprint with clast_pprint.
15516         * graphite-cloog-compat.h: Provide compatibility macros for
15517         CLooG Legacy.
15518         (clast_name_p): New.
15519         (clast_expr_term): New.
15520         (clast_expr_red): New.
15521         (clast_expr_bin): New.
15522         (clast_pprint): New.
15523
15524 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15525
15526         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
15527         compatible to newer CLooG releases (CLOOG_ORG).
15528         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
15529         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
15530         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
15531         (build_cloog_prog) : New.
15532         (cloog_program_extract_scalars): New.
15533         (cloog_program_scatter): New.
15534
15535 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15536
15537         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
15538         conditionally (CLOOG_ORG).
15539         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
15540         (cloog_statement_usr): New.
15541         (cloog_domain): Same.
15542         (cloog_set_domain): Same.
15543         (cloog_next_domain): Same.
15544         (cloog_set_next_domain): Same.
15545         (cloog_program_nb_scattdims): Same.
15546         (cloog_program_set_nb_scattdims): Same.
15547         (cloog_program_names): Same.
15548         (cloog_program_set_names): Same.
15549         (cloog_program_set_context): Same.
15550         (cloog_program_set_loop): Same.
15551         (cloog_program_blocklist): Same.
15552         (cloog_program_set_blocklist): Same.
15553         (cloog_program_scaldims): Same.
15554         (cloog_program_set_scaldims): Same.
15555         (cloog_names_nb_parameters): Same.
15556         (cloog_names_set_nb_parameters): Same.
15557         (cloog_names_parameters): Same.
15558         (cloog_names_set_parameters): Same.
15559         (cloog_names_set_nb_iterators): Same.
15560         (cloog_names_set_iterators): Same.
15561         (cloog_names_set_nb_scattering): Same.
15562         (cloog_names_set_scattering): Same.
15563         (cloog_statement_set_usr): Same.
15564         (cloog_loop_set_next): Same.
15565         (cloog_loop_set_domain): Same.
15566         (cloog_loop_set_block): Same.
15567         (cloog_block_list_next): Same.
15568         (cloog_block_list_set_next):
15569         (cloog_block_list_set_block): Same.
15570
15571 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15572
15573         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
15574         a bool.
15575         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
15576         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
15577         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
15578         when something has been changed.
15579         (rewrite_commutative_reductions_out_of_ssa): Same.
15580
15581 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15582
15583         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
15584         handle the case when def is in the sese region.
15585         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
15586         for invariant expressions.
15587         (rewrite_cross_bb_phi_deps): Removed.
15588         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
15589         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
15590         rewrite_cross_bb_phi_deps.
15591
15592 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15593
15594         * graphite-sese-to-poly.c
15595         (rewrite_commutative_reductions_out_of_ssa_loop): Call
15596         scev_analyzable_p only on is_gimple_reg
15597
15598 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15599
15600         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
15601         (rewrite_close_phi_out_of_ssa): Propagate constant values or
15602         parametric expressions outside the scop region.
15603         (rewrite_cross_bb_scalar_deps): Same.
15604         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
15605
15606 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15607
15608         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
15609         SSA_NAME_DEF_STMT only on SSA_NAMEs.
15610
15611 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15612
15613         * tree-scalar-evolution.c (instantiate_scev_name): Do not
15614         instantiate default definitions.
15615
15616 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
15617             Sebastian Pop  <sebastian.pop@amd.com>
15618
15619         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
15620         (loop_exits_from_bb_p): New.
15621         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
15622         (loop_exits_from_bb_p): Declared.
15623         * graphite-scop-detection.c (scopdet_basic_block_info): Call
15624         loop_exits_to_bb_p.
15625
15626 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15627
15628         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
15629         extra parameter for the region.  Call scev_analyzable_p.
15630         (rewrite_reductions_out_of_ssa): Update call to
15631         rewrite_close_phi_out_of_ssa.
15632         (rewrite_cross_bb_phi_deps): Same.
15633         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
15634         parameter for the region.  Call scev_analyzable_p.
15635         (rewrite_commutative_reductions_out_of_ssa): Update call to
15636         rewrite_commutative_reductions_out_of_ssa_loop.
15637
15638 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15639
15640         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
15641
15642 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15643
15644         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
15645         SSA scalar phi nodes that can be scev_analyzable_p.
15646
15647 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15648
15649         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
15650         handle SSA_NAME_IS_DEFAULT_DEF.
15651
15652 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15653
15654         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
15655
15656 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15657
15658         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
15659         case non close-phi nodes with one argument.
15660
15661 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15662
15663         * sese.h (scev_analyzable_p): Scevs could be expressions without
15664         chrecs and still be scev_analyzable_p.
15665
15666 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15667
15668         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15669
15670 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15671
15672         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
15673         * cfgloop.h (struct loop): Remove single_iv field.
15674         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
15675         (scop_canonicalize_loops): Removed.
15676         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
15677         over all the loop phi nodes in loop->header.
15678         (build_poly_scop): Remove use of scop_canonicalize_loops.
15679
15680 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15681
15682         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
15683         handle GIMPLE_CALL.
15684
15685 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15686
15687         * tree-chrec.c (chrec_apply): Should only apply to the specified
15688         variable.  Also handle multivariate chains of recurrences that
15689         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
15690
15691 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15692
15693         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
15694         (debug_clast_name_indexes_1): Removed.
15695         (debug_clast_name_indexes): Removed.
15696         (pbb_to_depth_to_oldiv): Removed.
15697         (build_iv_mapping): Replace the use of rename_map with iv_map.
15698         (translate_clast_user): Remove uses of rename_map.  Allocate and
15699         free iv_map.
15700         (translate_clast_for_loop): Remove uses of rename_map.
15701         (translate_clast_for): Same.
15702         (translate_clast_guard): Same.
15703         (translate_clast): Same.
15704         (gloog): Same.
15705         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
15706         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
15707         * sese.c (set_rename): Now static.
15708         (rename_variables_in_stmt): Removed.
15709         (rename_uses): New.
15710         (is_parameter): Removed.
15711         (is_iv): Removed.
15712         (expand_scalar_variables_call): Removed.
15713         (expand_scalar_variables_ssa_name): Removed.
15714         (expand_scalar_variables_expr): Removed.
15715         (expand_scalar_variables_stmt): Removed.
15716         (expand_scalar_variables): Removed.
15717         (rename_variables): Removed.
15718         (remove_condition): Removed.
15719         (get_true_edge_from_guard_bb): Removed.
15720         (get_false_edge_from_guard_bb): Removed.
15721         (struct igp): Removed.
15722         (default_before_guard): Removed.
15723         (convert_for_phi_arg): Removed.
15724         (add_guard_exit_phis): Removed.
15725         (insert_guard_phis): Removed.
15726         (graphite_copy_stmts_from_block): Now also uses iv_map and a
15727         region.  Do not copy conditions.  Do not copy induction variables.
15728         Call rename_uses.
15729         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
15730         the translated statement.  Use the iv_map for the induction
15731         variable renaming.
15732         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15733         (set_rename): Removed declaration.
15734         (scev_analyzable_p): ...here.
15735         * tree-chrec.c (chrec_apply_map): New.
15736         * tree-chrec.h (chrec_apply_map): Declared.
15737
15738 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15739
15740         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
15741         insert_loop_close_phis.
15742         * sese.c (name_defined_in_loop_p): Removed.
15743         (expr_defined_in_loop_p): Removed.
15744         (alive_after_loop): Removed.
15745         (close_phi_not_yet_inserted_p): Removed.
15746         (struct alep): Removed.
15747         (add_loop_exit_phis): Removed.
15748         (insert_loop_close_phis): Removed.
15749
15750 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15751
15752         * graphite-cloog-util.c
15753         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
15754         * graphite-poly.c
15755         (psct_scattering_dim_for_loop_depth): Same.
15756
15757 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15758
15759         * graphite-cloog-util.h: Added cloog.h.
15760         * graphite-blocking.c: Removed cloog.h.
15761         * graphite-dependences.c: Same.
15762         * graphite-interchange.c: Same.
15763         * graphite-poly.c: Same.
15764         * graphite-ppl.c: Same.
15765         * graphite-scop-detection.c: Same.
15766         * graphite-sese-to-poly.c:
15767         Removed cloog.h.
15768         Removed graphite-clast-to-gimple.h.
15769         (check_poly_representation): Removed (unused).
15770         * graphite-sese-to-poly.h
15771         (check_poly_representation): Removed (unused).
15772
15773 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15774
15775         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
15776         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
15777         (graphite-cloog-util.o): New.
15778         (graphite-ppl.o): Added graphite-cloog-util.h.
15779         * graphite-clast-to-gimple.c:
15780         Added graphite-cloog-util.h to include statements.
15781         * graphite-cloog-util.c: New.
15782         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
15783         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15784         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15785         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15786         (insert_constraint_into_matrix): Same.
15787         (ppl_Constrain_System_number_of_constraints): Same.
15788         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15789         (oppose_constraint): Same.
15790         (cloog_matrix_to_ppl_constraint): Same.
15791         (new_Constraint_System_from_Cloog_Matrix): Same.
15792         * graphite-cloog-util.h: New.
15793         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
15794         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15795         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15796         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15797         (insert_constraint_into_matrix): Same.
15798         * graphite-ppl.c:
15799         Added graphite-cloog-util.h to include statements.
15800         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
15801         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15802         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15803         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15804         (insert_constraint_into_matrix): Same.
15805         (ppl_Constrain_System_number_of_constraints): Same.
15806         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15807         (oppose_constraint): Same.
15808         (cloog_matrix_to_ppl_constraint): Same.
15809         (new_Constraint_System_from_Cloog_Matrix): Same.
15810         * graphite-ppl.h:
15811         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
15812         graphite-cloog-util.h.
15813         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15814         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15815         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15816         (insert_constraint_into_matrix): Same.
15817
15818 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15819
15820         * graphite-clast-to-gimple.c
15821         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
15822         (precision_for_interval): Same.
15823         (gcc_type_for_interval): Same.
15824         (compute_type_for_level): Same.
15825         * graphite-interchange.c
15826         (lst_interchange_profitable_p): Same.
15827         * graphite-poly.c
15828         (psct_scattering_dim_for_loop_depth): Same.
15829         * graphite-ppl.c
15830         (ppl_max_for_le_pointset): Same.
15831         (ppl_min_for_le_pointset): Same.
15832
15833 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15834
15835         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
15836         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
15837
15838 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15839
15840         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
15841         rewrite_close_phi_out_of_ssa.
15842
15843 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15844
15845         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
15846
15847 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15848
15849         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
15850         rename_map.
15851         * sese.c (debug_rename_map): Same.
15852         (get_rename): Same.
15853         (set_rename): Same.
15854         (rename_variables_in_stmt): Same.
15855         (expand_scalar_variables_call): Same.
15856         (expand_scalar_variables_ssa_name): Same.
15857         (expand_scalar_variables_expr): Same.
15858         (expand_scalar_variables_stmt): Same.
15859         (expand_scalar_variables): Same.
15860         (rename_variables): Same.
15861         (graphite_copy_stmts_from_block): Same.
15862         (copy_bb_and_scalar_dependences): Same.
15863
15864 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15865
15866         * graphite-clast-to-gimple.c (copy_renames): Removed.
15867         (translate_clast_for): Do not call copy_renames.
15868         (translate_clast_guard): Same.
15869
15870 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15871
15872         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
15873         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
15874         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
15875         before rewrite_cross_bb_scalar_deps.
15876
15877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15878
15879         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
15880         Early return in when flag_associative_math is not set.
15881
15882 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15883
15884         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
15885         of SSA copies on edges except for loop->latch.
15886
15887 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15888
15889         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
15890         Split out of rewrite_reductions_out_of_ssa.
15891         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
15892         Declared.
15893         * graphite.c (graphite_transform_loops): Call it.
15894
15895 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15896
15897         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
15898
15899 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
15900
15901         * dbgcnt.def (graphite_scop): New counter.
15902         * graphite.c: Include dbgcnt.h.
15903         (graphite_transform_loops): Use new counter to limit transformations.
15904         * Makefile.in (graphite.o): Depend on DBGCNT_H.
15905
15906 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15907
15908         * passes.c (init_optimization_passes): Add pass_graphite.
15909         Schedule a pass_copy_prop before pass_graphite_transforms.
15910         * timevar.def (TV_GRAPHITE): Declared.
15911         * tree-pass.h (pass_graphite): Declared.
15912         * tree-ssa-loop.c (pass_graphite): New.
15913
15914 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15915
15916         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
15917         Remove calls to rename_nb_iterations and rename_sese_parameters.
15918         * graphite-clast-to-gimple.h (gloog): Update declaration.
15919         * graphite.c (graphite_transform_loops): Update call to gloog.
15920         * sese.c (rename_variables_in_expr): Removed.
15921         (rename_nb_iterations): Removed.
15922         (rename_sese_parameters): Removed.
15923         * sese.h (rename_nb_iterations): Removed.
15924         (rename_sese_parameters): Removed.
15925
15926 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15927
15928         * graphite-clast-to-gimple.c (gloog): Remove call to
15929         sese_adjust_liveout_phis.
15930         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
15931         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
15932         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
15933         rewrite_phi_out_of_ssa.
15934         * sese.c (get_vdef_before_sese): Removed.
15935         (sese_adjust_vphi): Removed.
15936         (sese_adjust_liveout_phis): Removed.
15937         * sese.h (sese_adjust_liveout_phis): Removed.
15938
15939 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15940
15941         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
15942         argument for the place after which to insert the out of SSA copy.
15943         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
15944         (rewrite_phi_out_of_ssa): Same.
15945         (rewrite_cross_bb_scalar_deps): Same.
15946         (insert_copyout): Removed.
15947         (insert_copyin): Removed.
15948         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
15949         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
15950         insert_copyin.
15951
15952 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15953
15954         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
15955         (rewrite_reductions_out_of_ssa): Same.
15956         (rewrite_commutative_reductions_out_of_ssa): Same.
15957         (build_poly_scop): Do not call these functions.
15958         * graphite-sese-to-poly.h (build_poly_scop): Declared.
15959         (rewrite_reductions_out_of_ssa): Declared.
15960         (rewrite_commutative_reductions_out_of_ssa): Declared.
15961         * graphite.c (graphite_transform_loops): Call on every scop
15962         rewrite_commutative_reductions_out_of_ssa before calling
15963         rewrite_reductions_out_of_ssa and build_scop_bbs.
15964
15965 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15966
15967         * graphite-dependences.c (dot_deps): Make system call to dotty run
15968         in background.
15969         (dot_deps_stmt): Same.
15970         * graphite-poly.c (dot_lst): Same.
15971
15972 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15973
15974         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
15975         phi_arg_in_outermost_loop.
15976         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
15977         (remove_invariant_phi): Same.
15978
15979 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
15980
15981         * target.def (output_addr_const_extra): New hook.
15982         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
15983         * doc/tm.texi: Regenerate.
15984         * targhooks.c (default_asm_output_addr_const_extra): New function.
15985         * targhooks.h (default_asm_output_addr_const_extra): Declare.
15986         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
15987         target hook.
15988
15989         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15990         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
15991         * config/i386/i386.h (output_addr_const_extra): Rename to...
15992         (i386_asm_output_addr_const_extra): ...this. Make static.
15993         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15994
15995 2010-08-11  Richard Henderson  <rth@redhat.com>
15996
15997         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
15998
15999 2010-08-11  Nick Clifton  <nickc@redhat.com>
16000
16001         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16002         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16003         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16004         stormy16-lib2-cmpsi.c.
16005
16006         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16007         -O2.
16008
16009 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
16010
16011         * opts.h (struct cl_option_handler_func): Make handler take
16012         cl_decoded_option structure as parameter, not individual elements.
16013         (struct cl_option_handlers): Make callbacks take cl_decoded_option
16014         structure as parameter, not individual elements.
16015         (handle_option): Take cl_decoded_option structure as parameter,
16016         not individual elements.
16017         (handle_generated_option): Declare.
16018         * opts-common.c (handle_option): Take cl_decoded_option structure
16019         as parameter, not individual elements.  Update calls to callback
16020         and handler functions.
16021         (handle_generated_option): New.
16022         (read_cmdline_option): Update calls to callback functions and
16023         handle_option.
16024         * opts.c (common_handle_option, complain_wrong_lang,
16025         unknown_option_callback, post_handling_callback,
16026         lang_handle_option, target_handle_option): Take cl_decoded_option
16027         structure as parameter, not individual elements.
16028         (lang_handle_option, target_handle_option, common_handle_option):
16029         Assert option has at most one argument.
16030         (enable_warning_as_error): Call handle_generated_option instead of
16031         handle_option.  Do not pass -Werror argument as argument of
16032         generated option.
16033
16034 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16035
16036         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16037         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16038         (SUBWORD_BOOL_CAS): Likewise.
16039         (SUBWORD_SYNC_OP): Likewise.
16040         (SUBWORD_TEST_AND_SET): Likewise.
16041         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16042         (SUBWORD_SYNC_OP): Likewise.
16043         (OP_AND_FETCH_WORD): Likewise.
16044
16045 2010-08-10  Xinliang David Li  <davidxl@google.com>
16046
16047         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16048         compute max/min offset in address.
16049
16050 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
16051
16052         * ira-live.c: Include sbitmap.h.
16053         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16054         Compress live ranges even more.
16055
16056 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16057
16058         * coverage.c (ctr_labels): Delete.
16059
16060 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16061
16062         PR bootstrap/45177
16063         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16064         test here from arm_gen_load_multiple_1.
16065         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16066         multiple_operation_profitable_p.
16067
16068 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16069
16070         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16071         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
16072
16073 2010-08-10  Richard Henderson  <rth@redhat.com>
16074
16075         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16076         after saving registers.  Assert that SSE registers are only saved
16077         with a sufficiently aligned frame.
16078         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16079         remove stack_realign_fp handling.
16080         (ix86_expand_prologue): Save int registers before stack_realign_fp,
16081         and do not mark the stack alignment as frame related.
16082         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16083
16084         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16085         saves when re-aligning the stack.
16086
16087 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16088
16089         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
16090         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
16091         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
16092
16093 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16094
16095         * dwarf2out.c (struct die_struct): Move die_tag to the end.
16096
16097 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
16098
16099         * config/arm/iterators.md: New file.
16100         * config/arm/arm.md: Include iterators.md.
16101         (QHSI): Move to new file.
16102         (LTUGEU, cnb, optab, ior_xor): Likewise.
16103         * config/arm/iwmmxt.md (VMMX): Move to new file.
16104         (VSHFT, MMX_char): Likewise.
16105         * config/arm/neon.md (VD): Move to new file.
16106         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
16107         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
16108         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
16109         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
16110         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
16111         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
16112         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
16113         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
16114         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
16115         (Is_d_reg, V_mode_nunits): Likewise.
16116         * config/arm/vec-common.md (VALL): Move to new file.
16117         (VALLW, VINT, VINTW): Likewise.
16118
16119 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16120
16121         PR middle-end/45182
16122         * combine.c (make_compound_operation): Don't try to convert
16123         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
16124
16125 2010-08-10  Richard Guenther  <rguenther@suse.de>
16126
16127         * tree.h (get_object_alignment): Adjust prototype.
16128         * builtins.c (get_object_alignment): Return unsigned int,
16129         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
16130         and TARGET_MEM_REF properly.
16131         (get_pointer_alignment): Adjust.
16132         * emit-rtl.c (get_mem_align_offset): Adjust comment.
16133         (set_mem_attributes_minus_bitpos): Adjust.
16134         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
16135
16136 2010-08-10  Richard Guenther  <rguenther@suse.de>
16137
16138         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
16139         (copy_prop_visit_assignment): Simplify.
16140         (copy_prop_visit_stmt): Also visit assignments from
16141         constants.
16142         (copy_prop_visit_phi_node): Use operand_equal_p.
16143
16144 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16145
16146         * ipa-split.c (find_split_points): Free stack.
16147
16148 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16149
16150         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
16151         * tree.c (tree_node_kind): Delete corresponding entries.
16152
16153 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16154
16155         * alias.c (may_alias_p): Remove unused ret.
16156
16157 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
16158
16159         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
16160         alias_sets_conflict_p.
16161         (walk_mems_1): Moved from alias.c.
16162         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
16163         in alias.c.
16164         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
16165         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
16166         * alias.c (walk_mems_2): Moved to ddg.c.
16167         (walk_mems_1): Ditto.
16168         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
16169         to ddg.c.
16170         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
16171         disambiguation.
16172         *(may_alias_p): New function to check whether two memory expression
16173         may alias or not. Currently used in buidling inter-iteration memory
16174         dependence.
16175         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
16176         (insn_alias_sets_conflict_p): Removed
16177         *rtl.h (may_alias_p): New function prototype.
16178
16179 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16180
16181         * tree.c (nreverse): Assert that we don't have a BLOCK.
16182
16183 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16184
16185         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
16186         * config/arm/arm.c (arm_get_pcs_model): Likewise.
16187         * config/avr/avr.c (init_cumulative_args): Likewise.
16188         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16189         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16190         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
16191         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
16192         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
16193         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16194         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
16195         * dwarf2out.c (gen_subprogram_die): Likewise.
16196         * function.c (allocate_struct_function): Likewise.
16197         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
16198         (deserves_ellipsis): Delete.
16199
16200 2010-08-09  Richard Guenther  <rguenther@suse.de>
16201
16202         * tree-ssa-copy.c (cached_last_copy_of): Remove.
16203         (valueize_val): New function.
16204         (get_last_copy_of): Remove.
16205         (set_copy_of_val): Simplify.
16206         (dump_copy_of): Likewise.
16207         (copy_prop_visit_cond_stmt): Use valueize_val.
16208         (copy_prop_visit_phi_node): Properly handle unvisited names.
16209         Drop code managing copy-of chains.
16210         (init_copy_prop): Adjust.
16211         (fini_copy_prop): Likewise.
16212         (execute_copy_prop): Remove obsolete comment.
16213
16214 2010-08-09  Richard Guenther  <rguenther@suse.de>
16215
16216         PR middle-end/44632
16217         * function.c (gimplify_parameters): Do not clear addressable
16218         bit of the original parameter.
16219
16220 2010-08-09  Richard Guenther  <rguenther@suse.de>
16221
16222         PR middle-end/45212
16223         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
16224         alignment from MEM_REF offset only if we took it from the
16225         base object.
16226
16227 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
16228
16229         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
16230
16231 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16232
16233         * c-tree.h (build_arg_info): Declare.
16234         * c-decl.c (build_arg_info): Define.
16235         (get_parm_info): Call it.  Delete initialization code.
16236         * c-parser.c (c_parser_parms_declarator): Likewise.
16237         (c_parser_parms_list_declaractor): Likewise.
16238
16239 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16240
16241         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
16242         (struct c_arg_info): Change type of tags field.
16243         * c-decl.c (grokdeclarator): Update for changed type of tags field.
16244         (get_parm_info): Likewise.
16245         (store_parm_decls_newstyle): Likewise.
16246
16247 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16248
16249         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
16250         (branch_island_list): Delete.
16251         (branch_islands): Declare.
16252         (add_compiler_branch_island): Adjust for branch_islands instead of
16253         branch_island_list.
16254         (macho_branch_islands): Likewise.
16255         (no_previous_def): Likewise.
16256         (get_prev_label): Likewise.
16257
16258 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16259
16260         PR boehm-gc/34544
16261         * gthr-posix.h (__gthread_start): Delete.
16262         (__gthread_active_init): Use pthread_default_stacksize_np instead of
16263         pthread_create to determine if hpux pthreads are active.
16264         * gthr-posix95.h (__gthread_start): Delete.
16265         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
16266
16267 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
16268
16269         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
16270         _WIN64 not expanded.
16271
16272 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
16273             H.J. Lu  <hongjiu.lu@intel.com>
16274
16275         PR target/45213
16276         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
16277         to output 32bit SFmode immediate as 8 byte sign extended value.
16278
16279 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16280
16281         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16282         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16283         (SUBWORD_BOOL_CAS): Likewise.
16284         (SUBWORD_SYNC_OP): Likewise.
16285         (SUBWORD_TEST_AND_SET): Likewise.
16286         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16287         (SUBWORD_SYNC_OP): Likewise.
16288         (OP_AND_FETCH_WORD): Likewise.
16289
16290 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16291
16292         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
16293         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
16294         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
16295         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
16296         generic part.
16297         (cortex_a9_sched_adjust_cost): New function.
16298         (xscale_sched_adjust_cost): New function.
16299         * config/arm/arm-protos.h (struct tune_params): New field
16300         sched_adjust_cost.
16301         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
16302
16303 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
16304
16305         PR target/44942
16306         * config/sparc/sparc.c (function_arg_advance): Always take into account
16307         the padding, if any.
16308
16309 2010-08-06  Richard Guenther  <rguenther@suse.de>
16310
16311         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
16312         (dump_lattice_value): Dump it.
16313         (get_default_value): Adjust.
16314         (get_constant_value): Likewise.
16315         (set_value_varying): Likewise.
16316         (set_lattice_value): Make sure to not go up the lattice
16317         with bitwise constant values.
16318         (get_value_for_expr): Handle ADDR_EXPRs.
16319         (value_to_double_int): New function.
16320         (get_value_from_alignment): Likewise.
16321         (do_dbg_cnt): Adjust.
16322         (ccp_lattice_meet): Handle partially constant values.
16323         (bit_value_unop_1): New function.
16324         (bit_value_binop_1): Likewise.
16325         (bit_value_unop): Likewise.
16326         (bit_value_binop): Likewise.
16327         (evaluate_stmt): Track partially constant values if
16328         flag_tree_bit_ccp is set.
16329         (ccp_fold_stmt): Dump if we folded a predicate.
16330         (ccp_visit_stmt): Adjust.
16331         * common.opt (ftree-bit-ccp): New flag.
16332         * doc/invoke.texi (ftree-bit-ccp): Document.
16333         * opts.c (decode_options): Enable bit-CCP at -O1.
16334
16335 2010-08-06  Alan Modra  <amodra@gmail.com>
16336
16337         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
16338         and -mrelocatable-lib description.
16339
16340 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
16341
16342         From Martin Thuresson  <martint@google.com>
16343         * postreload.c (reload_cse_simplify_operands): Use
16344         SET_REGNO_RAW instead of SET_REGNO.
16345         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
16346         SET_REGNO.
16347         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
16348         instead of SET_REGNO.
16349         * rtl.h (SET_REGNO_RAW): New macro.
16350
16351 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
16352
16353         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
16354         computations.  Fix formatting issues.
16355         (num_sign_bit_copies1): Likewise.
16356         (canonicalize_condition): Likewise.
16357
16358 2010-08-05  Richard Henderson  <rth@redhat.com>
16359
16360         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
16361         (floor_log2): Use clz_hwi.
16362         (exact_log2): Use ctz_hwi.
16363         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
16364         * builtins.c (fold_builtin_bitop): Use them.
16365         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16366         * combine.c (get_pos_from_mask): Use ctz_hwi.
16367         * double-int.c (double_int_ctz): Likewise.
16368         * explow.c (force_reg): Likewise.
16369         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
16370
16371 2010-08-05  Richard Henderson  <rth@redhat.com>
16372
16373         PR target/45189
16374         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
16375         the alignment constant is properly sign-extended.
16376
16377 2010-08-05  Richard Guenther  <rguenther@suse.de>
16378
16379         * expr.c (store_expr): Use emit_block_move only if both
16380         source and target are MEMs.  Use store_bit_field if only
16381         the target is a MEM.
16382
16383 2010-08-05  Richard Henderson  <rth@redhat.com>
16384
16385         PR debug/45188
16386         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
16387         (INCOMING_RETURN_ADDR_RTX): Likewise.
16388         (dwarf2out_do_frame): Remove conditional compilation.
16389         (dwarf2out_frame_init): Likewise.
16390
16391 2010-08-05  Nicolas Setton  <setton@adacore.com>
16392
16393         * gcov.c (flag_display_progress): New static variable.
16394         (main): Display progress info on standard output if requested.
16395         (options): Add -d/--display-progress.
16396         (print_usage): Print them.
16397         (process_args): Handle them.
16398         * doc/gcov.texi: Document them.
16399
16400 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16401
16402         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
16403         (ipcp_insert_stage): Redirect only edges not flagged with
16404         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
16405         discovered constants.
16406
16407 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16408
16409         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
16410         (struct ipa_param_descriptor): New fields types and
16411         cannot_devirtualize.
16412         (ipa_param_cannot_devirtualize_p): New function.
16413         (ipa_param_types_vec_empty): Likewise.
16414         (ipa_make_edge_direct_to_target): Declare.
16415         * ipa-cp.c: Fixed first stage driver name in initial comment,
16416         described devirtualization there too.
16417         (ipcp_analyze_node): Call ipa_analyze_params_uses.
16418         (ipcp_print_all_lattices): Print devirtualization info.
16419         (ipa_set_param_cannot_devirtualize): New function.
16420         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
16421         lattice to BOTTOM.
16422         (ipcp_init_stage): Merged into...
16423         (ipcp_generate_summary): ...its caller.
16424         (ipcp_change_tops_to_bottom): Also process type lists.
16425         (ipcp_add_param_type): New function.
16426         (ipcp_copy_types): Likewise.
16427         (ipcp_propagate_types): Likewise.
16428         (ipcp_propagate_stage): Also propagate types.
16429         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
16430         Also return true if propagated types require it.
16431         (ipcp_update_callgraph): Dump redirection info.
16432         (ipcp_process_devirtualization_opportunities): New function.
16433         (ipcp_const_param_count): Include known type information.
16434         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
16435         on new node.  Fixed formatting.
16436         * ipa-prop.c (make_edge_direct_to_target): Renamed to
16437         ipa_make_edge_direct_to_target and changed all callers.  Made
16438         externally visible.
16439         (ipa_node_duplication_hook): Duplicate types vector.
16440         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
16441         redirect outgoing calls for which we can't get a decl from the
16442         statement.  Check that we can get a decl from the call statement.
16443         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16444         ipa_analyze_params_uses only when ipa-cp is disabled.
16445         * tree-inline.c (get_indirect_callee_fndecl): Removed.
16446         (expand_call_inline): Do not call get_indirect_callee_fndecl.
16447         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
16448         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
16449
16450 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16451
16452         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
16453         temporary. Emit move from temporary to accum, so REG_EQUAL note will
16454         be attached to this insn in correct mode.
16455
16456 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16457
16458         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
16459         using REGNO of base_reg directly.
16460
16461 2010-08-05  Jie Zhang  <jie@codesourcery.com>
16462
16463         PR tree-optimization/45144
16464         * tree-sra.c (type_consists_of_records_p): Return false
16465         if the record contains bit-field.
16466
16467 2010-08-04  Richard Henderson  <rth@redhat.com>
16468
16469         * config/i386/i386.c (struct ix86_frame): Remove padding and
16470         to_allocate members.
16471         (ix86_compute_frame_layout): Don't store them.
16472         (ix86_can_use_return_insn_p): Use a more direct and more obviously
16473         correct condition for the position of the stack pointer.
16474         (ix86_expand_prologue): Compute remaining stack allocation based
16475         on the ultimate stack pointer offset.
16476         (ix86_expand_epilogue): Use more obvious expressions testing for
16477         the stack pointer already pointing to the saved registers.
16478
16479         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
16480         duplication deconstructing the frame pointer.  Simplify
16481         deallocation of the local stack frame.
16482
16483         * reg-notes.def (CFA_EXPRESSION): New.
16484         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16485         (dwarf2out_frame_debug_cfa_expression): New.
16486         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
16487
16488         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
16489         * config/i386/i386.c (ix86_expand_prologue): Set it.
16490         (ix86_expand_epilogue): Clear it.
16491         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
16492         context, add REG_CFA_EXPRESSION notes.
16493
16494         * config/i386/i386.h (struct machine_frame_state): Rename from
16495         machine_cfa_state.  Add members tracking SP and FP regardless
16496         of the current CFA register.
16497         (ix86_cfa_state): Remove.
16498         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
16499         and sse_reg_save_offset members.
16500         (ix86_compute_frame_layout): Set them.
16501         (gen_push): Increment sp_offset too.
16502         (choose_baseaddr_len, choose_baseaddr): New.
16503         (ix86_emit_save_reg_using_mov): New.
16504         (ix86_emit_save_regs_using_mov): Use it.
16505         (ix86_emit_save_sse_regs_using_mov): Likewise.
16506         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
16507         compare vs the saved red_zone_offset.
16508         (pro_epilogue_adjust_stack): Adjust sp_offset.
16509         (ix86_adjust_stack_and_probe): Likewise.
16510         (ix86_expand_prologue): Set up, use, and validate the new
16511         frame_state_info members.  Use gen_frame_mem.
16512         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
16513         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
16514         new frame_state_info members.
16515         (ix86_emit_leave): Likewise.
16516         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
16517         out-of-range stack pointer offsets here.
16518         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16519         (ix86_expand_epilogue): Use and validate the new frame_state_info
16520         members.  Break up and simplify the logic selecting the
16521         restore_regs_via_mov code path.  Ensure that there will be no
16522         out-of-range stack pointer offsets.
16523
16524         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
16525
16526         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
16527         argument name to reflect the expected tree; fix indentation.
16528         (ix86_asm_output_function_label): Output the entire 32-bit
16529         ms_hook here as bytes ...
16530         (ix86_expand_prologue): ... not here as insns.  Attach the
16531         unwind info for the ms_hook to a blockage insn.
16532         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
16533         (ix86_ms_bitfield_layout_p): Fix indentation.
16534         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
16535
16536         * config/i386/i386.c (ix86_using_red_zone): New.
16537         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
16538         ix86_expand_prologue, ix86_force_to_memory): Use it.
16539
16540         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
16541         saving the int registers.
16542
16543         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
16544         and DWARF2_UNWIND_INFO conditional compilation.
16545
16546 2010-08-04  Richard Henderson  <rth@redhat.com>
16547
16548         PR debug/45171
16549         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
16550         an is_naming_typedef_decl.
16551
16552 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
16553
16554         PR rtl-optimization/45162
16555         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
16556         * dce.c (word_dce_process_block): Likewise.
16557
16558 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
16559
16560         PR target/44583
16561         * config/ia64/constraints.md (Z): New.
16562         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
16563         (xfreg_or_signed_fp01_operand): New.
16564         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
16565         with fr_reg_or_signed_fp01_operand and constraint G with Z.
16566         (subsf3): Ditto.
16567         (*maddsf4): Ditto.
16568         (*msubsf4): Ditto.
16569         (adddf3): Ditto.
16570         (adddf3_trunc): Ditto.
16571         (subdf3): Ditto.
16572         (*subdf3_trunc): Ditto.
16573         (*madddf4): Ditto.
16574         (*madddf4_trunc): Ditto.
16575         (*msubdf4): Ditto.
16576         (*msubdf4_trunc): Ditto.
16577         (addxf3): Replace xfreg_or_fp01_operand with
16578         xfreg_or_signed_fp01_operand and constraint G with Z.
16579         (*addxf3_truncsf): Ditto.
16580         (*addxf3_truncdf): Ditto.
16581         (subxf3): Ditto.
16582         (*subxf3_truncsf): Ditto.
16583         (*subxf3_truncdf): Ditto.
16584         (*maddxf4): Ditto.
16585         (*maddxf4_truncsf): Ditto.
16586         (*maddxf4_truncdf): Ditto.
16587         (*msubxf4): Ditto.
16588         (*msubxf4_truncsf): Ditto.
16589         (*msubxf4_truncdf): Ditto.
16590
16591 2010-08-04  Richard Guenther  <rguenther@suse.de>
16592
16593         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
16594         if either alias-set is zero.
16595
16596 2010-08-04  Richard Guenther  <rguenther@suse.de>
16597
16598         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
16599         * tree-ssa-ccp.c: ... here.
16600         * tree-ssa-copy.c: ... and here.
16601         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
16602         value_range_t): Move ...
16603         * tree-vrp.c: ... here.
16604         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
16605         (substitute_and_fold): Adjust prototype.
16606         * tree-ssa-propagate.c (replace_uses_in): Adjust.
16607         (replace_phi_args_in): Likewise.
16608         (substitute_and_fold): Take callback to query lattice instead
16609         of pointer to lattice.  Replace SSA name defs with lattice
16610         values first.
16611         * tree-ssa-ccp.c (ccp_finalize): Adjust.
16612         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
16613         (get_value): New function.
16614         (fini_copy_prop): Adjust.
16615         * tree-vrp.c (vrp_finalize): Adjust.
16616
16617 2010-08-04  Richard Guenther  <rguenther@suse.de>
16618
16619         PR middle-end/45176
16620         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
16621         points-to set for original MEM_REF.
16622
16623 2010-08-04  Richard Guenther  <rguenther@suse.de>
16624
16625         * tree-ssa-ccp.c (get_constant_value): New function.
16626         (get_rhs_assign_op_for_ccp): Remove.
16627         (valueize_op): New function.
16628         (ccp_fold): Use get_constant_value and valueize_op.
16629         (fold_const_aggregate_ref): Likewise.
16630         (ccp_fold_stmt): Likewise.
16631         (visit_assignment): Simplify.
16632
16633 2010-08-04  Richard Guenther  <rguenther@suse.de>
16634
16635         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
16636         * double-int.h (double_int_ctz): Declare.
16637         * double-int.c (double_int_ctz): New function.
16638
16639 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
16640
16641         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
16642         Define.
16643         picochip_expand_movmemhi : Expand movmem pattern.
16644         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
16645         Declare.
16646         * config/picochip/picochip.md (movmemhi) : New pattern.
16647
16648 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16649
16650         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
16651
16652 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
16653
16654         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
16655         NEG as operand of a MULT by merging it with the other operand.
16656         * combine.c (make_compound_operation): Use trunc_int_for_mode when
16657         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
16658         MULT.
16659         * config/arm/constraints.md (M): Examine only 32 bits of a
16660         HOST_WIDE_INT.
16661         * config/arm/predicates.md (power_of_two_operand): Likewise.
16662
16663 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16664
16665         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
16666         non-NOTE insns.
16667
16668 2010-08-03  Jan Hubicka  <jh@suse.cz>
16669
16670         * ipa-split.c (struct split_point): Add split_part_set_retval.
16671         (find_retval): Forward declare.
16672         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
16673         (consider_split): Compute current->split_part_set_retval.
16674         (visit_bb): Do not look into return value.
16675         (split_function): Handle !split_part_set_retval
16676
16677 2010-08-03  Martin Jambor  <mjambor@suse.cz>
16678
16679         * tree-sra.c (completely_scalarize_record): New parameter REF, create
16680         its own access->expr intead of using build_ref_for_offset.
16681
16682 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
16683
16684         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
16685         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
16686         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
16687         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
16688         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
16689         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
16690         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
16691         DEFAULT_SWITCH_TAKES_ARG.
16692         * config/rx/rx.opt (-patch=): Remove option.
16693         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
16694         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
16695         * doc/invoke.texi (RX Options): Remove -patch=.
16696         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
16697         (option_map): Remove --profile-blocks, --quiet and --silent.
16698
16699 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16700
16701         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
16702         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
16703         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
16704         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16705         Update calls to ix86_expand_compare and ix86_expand_branch.
16706         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
16707         ix86_expand_compare.
16708         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
16709         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16710         Make static.
16711         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
16712         and ix86_compare_op1.  Update calls to ix86_expand_compare.
16713         (ix86_expand_int_movcc): Ditto.
16714         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
16715         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
16716         (ix86_expand_setcc): Ditto.
16717         (ix86_expand_compare): Remove prototype.
16718         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
16719         ix86_compare_op0 and ix86_compare_op1.  Update calls
16720         to ix86_expand_branch to directly pass operands[1] and operands[2].
16721         (cbranchxf4): Ditto.
16722         (cbranch<MODEF:mode>4): Ditto.
16723         (cbranchcc4): Ditto.
16724         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
16725         Update calls to ix86_expand_setcc to directly pass operands[2] and
16726         operands[3].
16727         (cstorexf4): Ditto.
16728         (cstore<MODEF:mode>4): Ditto.
16729         (cstorecc4): Ditto.
16730
16731 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16732
16733         PR target/45063
16734         * caller-save.c (save_call_clobbered_regs): Remove regs from
16735         hard_regs_saved when they are set.
16736
16737 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16738
16739         PR target/41089
16740         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16741         as volatile.
16742
16743 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
16744
16745         * common.opt (ftree-loop-distribute-patterns): New.
16746         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
16747         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
16748         at -O3.
16749         * tree-data-ref.c (stores_zero_from_loop): New.
16750         * tree-data-ref.h (stores_zero_from_loop): Declared.
16751         * tree-loop-distribution.c (tree_loop_distribution): Call
16752         stores_zero_from_loop.
16753         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
16754
16755 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16756
16757         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
16758         into account.
16759
16760         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
16761         * config/arm/arm.c (thumb1_code): New variable.
16762         (arm_override_options): Set it.
16763         (thumb1_final_prescan_insn): Keep track of condition code status.
16764         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
16765         jumps that depend on them.
16766         * config/arm/arm.h (thumb1_code): Declare variable.
16767         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
16768         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
16769         thumb1_cc_mode.
16770         (CC_STATUS_INIT): New macro.
16771         * config/arm/constraints.md (Pd): New constraint.
16772         * config/arm/predicates.md (noov_comparison_operator): New predicate.
16773         * config/arm/arm.md (is_thumb1): New define_attr.
16774         (conds): Set default to "clob" when generating Thumb1 code.
16775         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
16776         code are set.  Use two-operand assembly syntax.
16777         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
16778         pattern.
16779         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
16780         codes are set.  Use two-operand assembly syntax.
16781         (zero_extendhisi splitter): Remove constraints.
16782         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
16783         thumb1_movsf_insn): Set conds attribute as appropriate.
16784         (cbranchsi4_insn): Use condition code status from struct
16785         machine_function to determine whether the comparison can be eliminated.
16786         Discourage the alternative using high registers.
16787         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
16788         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
16789         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
16790         subsi3_cbranch): Delete.
16791         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
16792         one subtract and one cbranch insn.
16793
16794         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
16795         thumb2_movdf_soft_insn): Delete patterns.
16796         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
16797         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
16798         (pool_range, neg_pool_range): Use them to define defaults.
16799         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
16800         and allow for TARGET_32BIT.
16801
16802         PR target/40457
16803         * config/arm/arm.h (arm_regs_in_sequence): Declare.
16804         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
16805         load_multiple_sequence, store_multiple_sequence): Delete
16806         declarations.
16807         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
16808         declarations.
16809         * config/arm/ldmstm.md: New file.
16810         * config/arm/arm.c (arm_regs_in_sequence): New array.
16811         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
16812         CHECK_REGS.  All callers changed.
16813         If SAVED_ORDER is nonnull, copy the computed order into it.
16814         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
16815         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
16816         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
16817         If SAVED_ORDER is nonnull, copy the computed order into it.
16818         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
16819         like REGS.  Handle Thumb mode.
16820         (arm_gen_load_multiple_1): New function, broken out of
16821         arm_gen_load_multiple.
16822         (arm_gen_store_multiple_1): New function, broken out of
16823         arm_gen_store_multiple.
16824         (arm_gen_multiple_op): New function, with code from
16825         arm_gen_load_multiple and arm_gen_store_multiple moved here.
16826         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
16827         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
16828         changed.
16829         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
16830         * config/arm/predicates.md (commutative_binary_operator): New.
16831         (load_multiple_operation, store_multiple_operation): Handle more
16832         variants of these patterns with different starting offsets.  Handle
16833         Thumb-1.
16834         * config/arm/arm.md: Include "ldmstm.md".
16835         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
16836         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
16837         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
16838         peepholes): Delete.
16839         * config/arm/ldmstm.md: New file.
16840         * config/arm/arm-ldmstm.ml: New file.
16841
16842         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
16843         if statement which adds extra costs to frame-related expressions.
16844
16845 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16846
16847         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
16848
16849 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
16850
16851         PR target/45142
16852         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
16853         alternative 2.
16854         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
16855         split V4SI operands.
16856
16857 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
16858
16859         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16860         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
16861         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
16862         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16863
16864 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
16865
16866         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
16867         LOCAL_INCLUDE_DIR.
16868
16869 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16870
16871         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
16872         used in the call to optab_for_tree_code.  Fix the second
16873         is_widening_mult_p call.  Check that both unwidened operands
16874         have the same sign.
16875
16876 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
16877
16878         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
16879
16880 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
16881
16882         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16883
16884 2010-07-30  DJ Delorie  <dj@redhat.com>
16885
16886         * config/rx/predicates.md (rx_constshift_operand): New.
16887         * config/rx/rx.md (zs_cond): New.
16888         (cbranchsi4): Remove mode.
16889         (*cbranchsi4_<code>): Likewise.
16890         (*tstbranchsi4_<code>): New.
16891         (*tstbranchsi4r_<code>): New.
16892         (*tstbranchsi4m_eq): New.
16893         (*tstbranchsi4m_ne): New.
16894         (cbranchsf4): Remove mode.
16895         (*cbranchsf4_<code>): Likewise.
16896
16897 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
16898
16899         * rtlanal.c (simplify_subreg_regno): Don't treat
16900         HARD_FRAME_POINTER_REGNUM specially.
16901
16902 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
16903
16904         * common.opt (-G): Don't define option here.
16905         * config/g.opt: New.
16906         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
16907         rs6000/powerpc and score targets.
16908         * opts.c (common_handle_option): Don't handle -G here.
16909         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
16910         * config/frv/frv.c (frv_handle_option): Handle -G.
16911         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
16912         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
16913         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
16914         * config/mips/mips.c (mips_handle_option): Handle -G.
16915         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
16916         * config/score/score.c (score_handle_option): Handle -G.
16917
16918 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
16919
16920         * config/mmix/mmix.c: Include basic-block.h.
16921
16922 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
16923
16924         PR debug/45055
16925         PR rtl-optimization/45137
16926         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
16927         prototypes.
16928         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
16929         New functions.
16930         * combine.c (next_nonnote_nondebug_insn): Removed.
16931         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
16932         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
16933         * sched-deps.c (sched_analyze_insn): Likewise.
16934         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
16935         * rtlanal.c (canonicalize_condition): Likewise.
16936         * postreload.c (reload_combine_recognize_pattern): Likewise.
16937         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
16938
16939 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
16940
16941         * config/i386/i386.md (int_cond): Remove code iterator.
16942         (fp_cond): Ditto.
16943         (cbranch<mode>4): Use ordered_comparison_operator predicate
16944         for operator0.
16945         (cstore<mode>4): Ditto for operator1.
16946         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
16947         (add<mode>cc): ditto.
16948
16949 2010-07-30  Richard Guenther  <rguenther@suse.de>
16950
16951         PR middle-end/45141
16952         * expr.c (expand_expr_real_1): Check for not handled base address.
16953
16954 2010-07-30  Richard Guenther  <rguenther@suse.de>
16955
16956         * ipa-prop.c (ipa_modify_formal_parameters): Use
16957         build_distinct_type_copy.
16958
16959 2010-07-30  Anthony Green  <green@moxielogic.com>
16960
16961         * config/moxie/rtems.h: New file.
16962         * config.gcc: Add moxie-rtems support.
16963
16964 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
16965
16966         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
16967         df flags as in run_fast_df_dce.
16968
16969 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16970
16971         Revert:
16972         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16973
16974         * rtl.def (NOTE): Swap operands 4 and 5.
16975         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
16976         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
16977         Adjust accordingly.
16978         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
16979
16980 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16981
16982         PR debug/45110
16983         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
16984         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
16985         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
16986         formal parameters.
16987         (gen_decl_die): Change return type to dw_die_ref, return what
16988         gen_formal_parameter_die returned.
16989
16990 2010-07-29  Martin Jambor  <mjambor@suse.cz>
16991
16992         * dbgcnt.def (eipa_sra): New counter.
16993         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
16994
16995 2010-07-29  Xinliang David Li  <davidxl@google.com>
16996
16997         PR bootstrap/45119
16998         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
16999         in revision 162652.
17000
17001 2010-07-29  Richard Guenther  <rguenther@suse.de>
17002
17003         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17004         (TV_TREE_STORE_CCP): Likewise.
17005         (TV_TREE_REDPHI): Likewise.
17006
17007 2010-07-29  Richard Guenther  <rguenther@suse.de>
17008
17009         * double-int.h (double_int_and_not): New function.
17010         * combine.c (try_combine): Use it.
17011         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17012
17013 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17014
17015         PR rtl-optimization/42575
17016         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17017         Argument AU removed.  All callers changed.  Ignore artificial refs.
17018         Use return value of df_word_lr_simulate_defs to decide whether an insn
17019         is necessary.
17020         (fast_dce): Rename arg to WORD_LEVEL.
17021         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
17022         static.
17023         (pass_fast_rtl_byte_dce): Delete.
17024         * dce.h (run_word_dce): Declare.
17025         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17026         All callers changed.  Simplify code to only deal with two-word regs.
17027         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17028         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17029         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17030         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17031         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17032         (df_word_lr_mark_ref): Declare.
17033         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17034         df_word_lr_simulate_uses): Declare or rename from byte variants.
17035         (df_byte_lr_simulate_artificial_refs_at_top,
17036         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17037         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17038         declarations.
17039         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17040         (enum df_mm): Delete.
17041         * df-byte-scan.c: Delete file.
17042         * df-problems.c (df_word_lr_problem_data): Renamed from
17043         df_byte_lr_problem_data, all members deleted except for
17044         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
17045         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17046         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17047         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17048         df_byte_lr_confluence_0): Delete functions.
17049         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17050         callers changed.
17051         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17052         Don't initialize members that were deleted, don't try to discover data
17053         about registers.  Ignore hard regs.
17054         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17055         (df_word_lr_mark_ref): New function.
17056         (df_word_lr_bb_local_compute): Renamed from
17057         df_byte_bb_lr_local_compute; all callers changed.  Use
17058         df_word_lr_mark_ref.  Assert that artificial refs don't include
17059         pseudos.  Ignore hard registers.
17060         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17061         Assert that exit block uses don't contain pseudos.
17062         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17063         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17064         callers changed.  Ignore hard regs.
17065         (df_word_lr_transfer_function): Renamed from
17066         df_byte_lr_transfer_function; all callers changed.
17067         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17068         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17069         changed.
17070         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17071         callers changed.
17072         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17073         confluence operator 0 set to NULL.
17074         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17075         callers changed.
17076         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17077         Return bool, true if bitmap changed or insn otherwise necessary.
17078         All callers changed.  Simplify using df_word_lr_mark_ref.
17079         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17080         all callers changed.  Simplify using df_word_lr_mark_ref.
17081         * lower-subreg.c: Include "dce.h"
17082         (decompose_multiword_subregs): Call run_word_dce if df available.
17083         * Makefile.in (lower-subreg.o): Adjust dependencies.
17084         (df-byte-scan.o): Delete.
17085         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17086
17087 2010-07-29  Richard Guenther  <rguenther@suse.de>
17088
17089         * tree.c (build_vector): Assert that the vector constant
17090         has enough elements.
17091         (build_vector_from_ctor): Pad with trailing zeros.
17092
17093 2010-07-29  Richard Guenther  <rguenther@suse.de>
17094
17095         PR tree-optimization/45120
17096         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17097         Handle offset in DEREFs properly.
17098         (get_constraint_for_1): Handle MEM_REF offset properly.
17099
17100 2010-07-29  Richard Guenther  <rguenther@suse.de>
17101
17102         PR middle-end/45034
17103         * convert.c (convert_to_integer): Always use an unsigned
17104         type for narrowed negate and bitwise not.
17105
17106 2010-07-29  Ira Rosen  <irar@il.ibm.com>
17107
17108         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
17109         to outer loop when creating reduction epilogue for double reduction,
17110         and switch back to the inner loop when updating the phi nodes.
17111         Update uses of outer loop exit phi nodes in double reduction (instead
17112         of uses of reduction).
17113
17114 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
17115
17116         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
17117         popcount on power7 and parity on power6 systems.
17118         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
17119         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
17120         instructions.
17121
17122         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
17123         (UNSPEC_PARITY): Ditto.
17124         (SFDF): New iterator for SF/DF.
17125         (rreg2): New mode attribute for floating register constraint.
17126         (TARGET_FLOAT): New mode attribute for whether single/double float
17127         is supported.
17128         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
17129         pattern.
17130         (parity<mode>2_cmpb): New insn for parity on power6 and newer
17131         machines.
17132         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
17133         pattern.  Add support for fcpsgn instruction added in power6.
17134         (copysignsf3): Delete.
17135         (copysigndf3): Delete.
17136         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
17137         instead of if_then_else in RTL to avoid problems with -0.
17138
17139         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
17140         of if_then_else to mirror scalar code.
17141         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
17142         rs6000.md.
17143
17144         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
17145         instead of if_then_else.
17146
17147 2010-07-28  Xinliang David Li  <davidxl@google.com>
17148
17149         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
17150         (dump_cand): Dump var_before/after.
17151         (htab_inv_expr_eq): New function.
17152         (htab_inv_expr_hash): New function.
17153         (tree_ssa_iv_optimize_init): Support pseudo invariants.
17154         (add_candidate_1): consider base type precision.
17155         (set_use_iv_cost): New parameter.
17156         (adjust_setup_cost): Use profile information.
17157         (get_address_cost): Do not hard code width in computing address
17158         offset limits.
17159         (compare_aff_trees): New function.
17160         (get_loop_invariant_expr_id): New function.
17161         (get_computation_cost_at): New parameter and use profile information.
17162         (get_computation_cost): New parameter.
17163         (determine_use_iv_cost_generic): Pass new parameter.
17164         (determine_use_iv_cost_address): Ditto.
17165         (determine_use_iv_cost_condition): Ditto.
17166         (autoinc_possible_for_pair): Ditto.
17167         (determine_use_iv_costs): More dumps.
17168         (iv_ca_get_num_inv_exprs): New function.
17169         (iv_ca_recount_cost): Consider loop invariants in register pressure
17170         cost.
17171         (iv_ca_add_use): New parameter.
17172         (iv_ca_dump): Better dumping.
17173         (iv_ca_extend): New parameter.
17174         (try_add_cand_for): Attempt to get better partial solution.
17175         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
17176         (create_new-ivs): More dumps.
17177         (rewrite_use_compare): Ditto.
17178         (free_loop_data): More cleanup.
17179         (treee_ssa_iv_optimize_finalize): Ditto.
17180
17181 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
17182
17183         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
17184         * config/i386/i386.c (ix86_profile_before_prologue): New.
17185         (override_options): Add special handling for -mfentry.
17186         (ix86_function_regparm): Likewise.
17187         (ix86_function_sseregparm): Likewise.
17188         (ix86_frame_pointer_required): Likewise.
17189         (ix86_expand_prologue): Check for ms_hook_prologue.
17190         (x86_function_profiler): Adjust mcount output.
17191         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
17192         * config/i386/i386.opt (mfentry): New.
17193         * doc/invoke.texi (mfentry): Add documentation.
17194         * doc/tm.texi: Regenerated..
17195         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
17196         * final.c (final_start_function): Replace macro
17197         PROFILE_BEFORE_PROLOGUE by target hook.
17198         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17199         * target.def (profile_before_prologue): New hook.
17200         * targhooks.c (default_profile_before_prologue): New.
17201         * targhooks.h (default_profile_before_prologue): New.
17202
17203 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
17204
17205         PR debug/45105
17206         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
17207
17208         PR debug/45103
17209         * dwarf2out.c (dwarf2out_var_location): Always consider
17210         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
17211
17212 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17213
17214         PR rtl-optimization/45107
17215         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
17216
17217 2010-07-28  Richard Guenther  <rguenther@suse.de>
17218
17219         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
17220         (set_lattice_value): Do not query an old default value.
17221         (get_value_for_expr): New function.  Properly canonicalize
17222         float values.
17223         (ccp_visit_phi_node): Use it.
17224
17225 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
17226
17227         * config/arm/arm.c (arm_pcs_default): Remove static.
17228         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
17229         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
17230         (arm_pcs_default): Declare.
17231
17232 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
17233
17234         * config/rs6000/rs6000.c (rs6000_override_options):
17235         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
17236         ... to darwin_rs6000_override_options.
17237         (rs6000_return_in_memory): Update preceding comment for darwin
17238         64 bit ABI.  Use TARGET_MACHO inline.
17239         (rs6000_darwin64_struct_check_p): New.
17240         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
17241         (function_arg): Likewise.
17242         (rs6000_arg_partial_bytes): Likewise.
17243         (rs6000_function_value): Likewise.
17244
17245 2010-07-28  Andi Kleen  <ak@linux.intel.com>
17246
17247         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
17248
17249 2010-07-28  Richard Guenther  <rguenther@suse.de>
17250
17251         PR middle-end/44903
17252         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
17253         targets try harder to not generate unaligned accesses.
17254
17255 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17256
17257         PR rtl-optimization/45101
17258         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
17259         for gcse-las.
17260
17261 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17262
17263         PR tree-optimization/44885
17264         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
17265         with non-aliased component.
17266
17267 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
17268
17269         * config/darwin-driver.c (SWITCH_TAKES_ARG,
17270         WORD_SWITCH_TAKES_ARG): Remove.
17271         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
17272         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
17273         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
17274         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
17275         definitions from gcc.c.
17276         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
17277         defaults.h.
17278         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
17279         Move to defaults.h.
17280         * opts-common.c: Include tm.h.
17281         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
17282         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
17283         Handle more than one argument.  Set canonical_option_num_elements.
17284         (decode_cmdline_options_to_array): Set
17285         canonical_option_num_elements and trailing elements of
17286         canonical_option.
17287         * opts.h (struct cl_decoded_option): Allow four elements in
17288         canonical_option.  Add field canonical_option_num_elements.
17289         * Makefile.in (opts-common.o): Update dependencies.
17290
17291 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17292
17293         PR middle-end/44790
17294         PR middle-end/44993
17295         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
17296         sure the base has address_mode before adding the offset.
17297
17298 2010-07-27  Xinliang David Li  <davidxl@google.com>
17299
17300         * tree-flow.h (create_mem_ref): Add one new parameter.
17301         * tree-ssa-address.c (create_mem_ref): New parameter.
17302         (addr_to_parts): Ditto.
17303         (move_variant_to_index): New function.
17304         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
17305
17306 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17307
17308         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
17309         4 and 5.
17310         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
17311         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
17312         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
17313         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
17314         CODE_LABELs and NOTEs.
17315         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
17316         * combine.c (try_combine): Likewise.
17317         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17318         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
17319
17320 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17321
17322         * coretypes.h (struct cl_option_handlers): Declare.
17323         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
17324         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
17325         * langhooks-def.h (lhd_handle_option): Declare.
17326         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
17327         * langhooks.c (lhd_handle_option): New.
17328         * langhooks.h (struct lang_hooks): Update prototype and return
17329         value type of handle_option hook.
17330         * optc-gen.awk: Generate target_flags_explicit definition for the
17331         driver.
17332         * opts-common.c: Include diagnostic.h.
17333         (handle_option): Move from opts.c.  Update prototype and return
17334         value type.  Use handlers structure.
17335         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
17336         handlers structure.
17337         (set_option): Move from opts.c.
17338         * opts.c (common_handle_option): Update prototype and return value
17339         type.  Update calls to handle_option and enable_warning_as_error.
17340         (unknown_option_callback, post_handling_callback,
17341         lang_handle_option, target_handle_option): New.
17342         (handle_option, read_cmdline_option): Move to opts-common.c.
17343         (read_cmdline_options): Update prototype.  Update call to
17344         read_cmdline_option.
17345         (decode_options): Initialize and use handlers structure.
17346         (set_option): Move to opts-common.c.
17347         (enable_warning_as_error): Update prototype.  Update call to
17348         handle_option.
17349         * opts.h (struct cl_option_handler_func, struct
17350         cl_option_handlers): New.
17351         (handle_option, enable_warning_as_error): Update prototypes.
17352         (read_cmdline_option): Declare.
17353         * Makefile.in (opts-common.o): Update dependencies.
17354
17355 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17356
17357         * config/arm/arm.c (params.h): Include.
17358         (arm_override_options): Tune gcse-unrestricted-cost.
17359         * config/arm/t-arm (arm.o): Define dependencies.
17360
17361 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17362
17363         PR target/42495
17364         PR middle-end/42574
17365         * basic-block.h (get_dominated_to_depth): Declare.
17366         * dominance.c (get_dominated_to_depth): New function, use
17367         get_all_dominated_blocks as a base.
17368         (get_all_dominated_blocks): Use get_dominated_to_depth.
17369
17370         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
17371         (hoist_exprs): Remove.
17372         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
17373         (compute_code_hoist_vbeinout): Add debug print outs.
17374         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
17375
17376         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
17377         quadratic behavior.
17378         * params.h (MAX_HOIST_DEPTH): New macro.
17379         * doc/invoke.texi (max-hoist-depth): Document.
17380
17381 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17382
17383         PR rtl-optimization/40956
17384         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
17385         constants.
17386
17387 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17388
17389         PR target/42495
17390         PR middle-end/42574
17391         * config/arm/arm.c (legitimize_pic_address): Use
17392         gen_calculate_pic_address pattern to emit calculation of PIC address.
17393         (will_be_in_index_register): New function.
17394         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
17395         (thumb1_legitimate_address_p): Use it provided !strict_p.
17396         * config/arm/arm.md (calculate_pic_address): New expand and split.
17397
17398 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17399
17400         PR target/42495
17401         PR middle-end/42574
17402         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
17403         * config/arm/arm.md (define_split "J", define_split "K"): Make
17404         IRA/reload friendly.
17405
17406 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17407
17408         * gcse.c (insert_insn_end_basic_block): Update signature, remove
17409         unused checks.
17410         (pre_edge_insert, hoist_code): Update.
17411
17412 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17413
17414         PR target/42495
17415         PR middle-end/42574
17416         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
17417
17418 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17419
17420         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
17421
17422 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17423
17424         PR rtl-optimization/40956
17425         PR target/42495
17426         PR middle-end/42574
17427         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
17428         for hoisting.
17429         (hoist_code): Count occurences in current block too.
17430
17431 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17432
17433         * gcse.c (struct expr:max_distance): New field.
17434         (doing_code_hoisting_p): New static variable.
17435         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
17436         simple expressions, don't change behavior for PRE.  Set max_distance.
17437         (insert_expr_in_table): Set new max_distance field.
17438         (hash_scan_set): Update.
17439         (hoist_expr_reaches_here_p): Stop search after max_distance
17440         instructions.
17441         (find_occr_in_bb): New static function.  Use it in ...
17442         (hoist_code): Calculate sizes of basic block before any changes are
17443         done.  Pass max_distance to hoist_expr_reaches_here_p.
17444         (one_code_hoisting_pass): Set doing_code_hoisting_p.
17445
17446         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
17447         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
17448         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
17449         macros.
17450         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
17451         Document.
17452
17453 2010-07-27  Jeff Law  <law@redhat.com>
17454             Maxim Kuvyrkov  <maxim@codesourcery.com>
17455
17456         * gcse.c (compute_transpout, transpout): Remove, move logic
17457         to prune_expressions.
17458         (compute_pre_data): Move pruning of trapping expressions ...
17459         (prune_expressions): ... here.  New static function.
17460         (compute_code_hoist_data): Use it.
17461         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
17462
17463 2010-07-27  Xinliang David Li  <davidxl@google.com>
17464
17465         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
17466         (rewrite_use_address): Adjust iv update position when needed.
17467
17468 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17469
17470         * dbgcnt.def (hoist_insn): New debug counter.
17471         * gcse.c (hoist_code): Use it.
17472
17473 2010-07-27  Xinliang David Li  <davidxl@google.com>
17474
17475         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
17476         (niter_for_single_dom_exit): Passes additional parameter.
17477         (iv_period): Fix comments.
17478         (may_eliminate_iv): Handles multiple exit loops properly.
17479         (free_tree_niter_desc): New function.
17480         (free_loop_data): Frees up loop iteration descriptors.
17481
17482 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17483
17484         PR target/44542
17485         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
17486         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
17487         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
17488         (expand_one_var): Don't consider DECL_ALIGN for variables for
17489         which expand_one_stack_var_at has been already called.
17490
17491         PR testsuite/44701
17492         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
17493         constraints on IA-64.
17494
17495 2010-07-27  Jie Zhang  <jie@codesourcery.com>
17496
17497         PR target/44290
17498         Revert:
17499         2010-07-23  Jie Zhang  <jie@codesourcery.com>
17500
17501         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17502         false if ! tree_versionable_function_p.
17503
17504 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17505
17506         * dwarf2out.c (add_data_member_location_attribute): Use
17507         add_AT_unsigned instead of add_AT_int if offset is non-negative.
17508
17509 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17510
17511         * postreload.c (try_replace_in_use): New static function.
17512         (reload_combine_recognize_const_pattern): Use it here.  Allow
17513         substituting into a final add insn, and substituting into a memory
17514         reference in an insn that sets the reg.
17515
17516 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17517
17518         * common.opt (o): Add MissingArgError.
17519         * doc/options.texi (MissingArgError): Document.
17520         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
17521         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
17522         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
17523         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
17524         * langhooks.h (struct lang_hooks): Remove missing_argument.
17525         * optc-gen.awk: Handle MissingArgError and output new structure
17526         field initializers.
17527         * opts.c (read_cmdline_option): Use missing_argument_error field
17528         instead of missing_argument langhook.
17529         * opts.h (struct cl_option): Add missing_argument_error field.
17530         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
17531
17532 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17533
17534         PR target/29090
17535         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
17536         Darwin64 ABI, for zero-sized objects.
17537
17538 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17539
17540         PR target/35491
17541         PR target/29090
17542
17543         Merge from Apple local 4.2.1.
17544         2005-05-11  Stan Shebs  <shebs@apple.com>
17545         Fix 64-bit varargs for Darwin (Radar 4028089).
17546         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
17547         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
17548         Add argument, add case for 8-byte register half-filled with a float.
17549         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
17550         single-precision floats specially.
17551
17552 2010-07-27  Ira Rosen  <irar@il.ibm.com>
17553
17554         PR tree-optimization/44152
17555         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
17556         complex numbers for further check.
17557         (vect_supported_load_permutation_p): Check nodes with
17558         complex numbers.
17559
17560 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17561
17562         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
17563         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
17564         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
17565         (LANG_HOOKS_INITIALIZER): Add new hooks.
17566         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
17567         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
17568         and complain_wrong_lang_p.  Update init_options prototype.
17569         * c-objc-common.c (c_initialize_diagnostics): First call
17570         c_common_initialize_diagnostics.
17571         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
17572         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
17573         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
17574         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
17575         (hook_uint_void_0): New.
17576         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
17577         (hook_uint_void_0): New.
17578         * opts-common.c (decode_cmdline_option,
17579         decode_cmdline_options_to_array): Also fill in canonical_option field.
17580         * opts.c (complain_wrong_lang): Use langhook to determine whether
17581         to complain instead of special-casing LTO.
17582         (decode_options): Separate lang_mask determination with
17583         option_lang_mask hook from call of init_options hook.
17584         * opts.h (struct cl_decoded_option): Add canonical_option.
17585
17586 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17587
17588         PR tree-optimization/45083
17589         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
17590
17591 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17592
17593         * postreload.c (reload_combine_recognize_const_pattern): Move test
17594         for limiting the insn movement to the right scope.
17595
17596         PR rtl-optimization/45051
17597         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
17598         than reg_mentioned_p.
17599
17600 2010-07-26  Richard Henderson  <rth@redhat.com>
17601
17602         PR target/44132
17603         * tree-emutls.c: New file.
17604         * Makefile.in (OBJS-common): Add it.
17605         * tree-pass.h (pass_ipa_lower_emutls): Declare.
17606         * passes.c (init_optimization_passes): Add it.
17607
17608         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
17609         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
17610         * expr.c (emutls_var_address): Delete.
17611         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
17612         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
17613         (emutls_finish): Delete.
17614         * toplev.c (compile_file): Don't call it.
17615         * tree.h (emutls_decl): Delete.
17616         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
17617         (emutls_finish, emutls_finalize_control_var): Delete.
17618         (emutls_object_type): Move to tree-emutls.c.
17619         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
17620         default_emutls_var_fields, get_emutls_object_type,
17621         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
17622         default_emutls_var_init): Likewise.
17623         (get_variable_section): Don't special case emutls.
17624         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
17625         default_elf_select_section, default_unique_section,
17626         default_encode_section_info): Likewise.
17627         * varpool.c (decide_is_variable_needed): Likewise.
17628         * gimple-iterator.c (update_call_edge_frequencies): New
17629         (gsi_insert_on_edge_immediate): Use it.
17630         (gsi_insert_seq_on_edge_immediate): Likewise.
17631         (gsi_commit_one_edge_insert): Likewise.
17632
17633         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
17634         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
17635         (x86_64_elf_unique_section): Likewise.
17636
17637 2010-07-26  Jan Hubicka  <jh@suse.cz>
17638
17639         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
17640         GTY((skip)).
17641
17642 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
17643
17644         * target.def (output_source_filename): New hook.
17645         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
17646         * doc/tm.texi: Regenerate.
17647         * toplev.c (output_file_directive) Remove function.
17648         * toplev.h (output_file_directive) Remove.
17649         * output.h (default_asm_output_source_filename,
17650         output_file_directive): Declare.
17651         * varasm.h (default_asm_output_source_filename,
17652         output_file_directive): New functions.
17653
17654         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17655         * config/mips/mips-protos.h (mips_output_filename): Remove.
17656         * config/mips/mips.c (mips_output_filename): Make Static.
17657         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17658
17659 2010-07-26  Richard Guenther  <rguenther@suse.de>
17660
17661         PR tree-optimization/43784
17662         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
17663         if the destination is used by the call.
17664
17665 2010-07-26  Richard Guenther  <rguenther@suse.de>
17666
17667         PR middle-end/45073
17668         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
17669         SSA updating on being in SSA form.
17670
17671 2010-07-26  Richard Guenther  <rguenther@suse.de>
17672
17673         PR middle-end/45056
17674         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
17675
17676 2010-07-26  Richard Guenther  <rguenther@suse.de>
17677
17678         PR tree-optimization/45071
17679         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
17680         adjust op->opcode.
17681
17682 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
17683
17684         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
17685         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
17686         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
17687         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
17688         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
17689         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
17690         save_r31, return_r31, save_interrupt, return_interrupt,
17691         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
17692         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
17693         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
17694         new ABI requirements.
17695         (save_r6_r9, L_callt_save_r6_r9): Remove.
17696         * config/v850/predicates.md (even_reg_operand, disp23_operand,
17697         const_float_1_operand const_float_0_operand): New Predicates.
17698         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
17699         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
17700         * config/v850/t-v850: Update multilibs for new target variants.
17701         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
17702         * config/v850/t-v850e: Likewise.
17703         * config/v850/v850.c (v850_issue_rate): New.
17704         (v850_strict_argument_naming): New.
17705         (function_arg): Modify to generate a different ABI.
17706         (print_operand): Update case 'z' to support float modes.
17707         (output_move_single): Modify to generate appropriate and better
17708         assembly.
17709         (v850_float_z_comparison_operator, v850_select_cc_mode,
17710         v850_float_nz_comparison_operator,  v850_gen_float_compare,
17711         v850_gen_compare): New functions to support comparison of float values.
17712         (ep_memory_offset): Add support for V850E2 targets.
17713         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
17714         (INTERRUPT_REGPARM_NUM): Remove.
17715         (compute_register_save_size): Add extra case to save/restore long call.
17716         (use_prolog_function): New function to support prologue.
17717         (expand_prologue): Add support for V850E2 targets and modified
17718         as per the current ABI requirements.
17719         (expand_epilogue): Likewise.
17720         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
17721         (construct_save_jarl): Likewise.
17722         (construct_dispose_instruction): Update as per the current ABI
17723         requirements.
17724         (construct_prepare_instruction): Likewise.
17725         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
17726         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
17727         (CPP_SPEC): Updated to support v850e2 targets.
17728         (STRICT_ALIGNMENT): Modified.
17729         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
17730         (FIXED_REGISTERS): Likewise.
17731         (CALL_USED_REGISTERS): Likewise.
17732         (CONDITIONAL_REGISTER_USAGE): Updated.
17733         (HARD_REGNO_MODE_OK): Updated.
17734         (reg_class): Updated to add even registers.
17735         (REG_CLASS_NAMES): Likewise.
17736         (REG_CLASS_CONTENTS): Likewise.
17737         (REGNO_REG_CLASS): Updated for CC registers.
17738         (REG_CLASS_FROM_LETTER): Added support for even registers.
17739         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
17740         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
17741         ARG_POINTER_REGNUM): Updated.
17742         (FUNCTION_ARG_ADVANCE): Define.
17743         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
17744         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
17745         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
17746         (GO_IF_LEGITIMATE_ADDRESS): Updated.
17747         (SELECT_CC_MODE): Define.
17748         (REGISTER_NAMES): Updated to add psw and fcc registers.
17749         (ADDITIONAL_REGISTER_NAMES): Updated.
17750         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
17751         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
17752         * config/v850/v850.md (define_constants): Define new constants.
17753         (type): Update store,bit1,macc,div,fpu and single attributes.
17754         (cpu): New attribute.
17755         (cc): Add set_z attribute.
17756         (unsign23byte_load, sign23byte_load, unsign23hword_load,
17757         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
17758         23word_store): New instructions for 23-bit displacement load and store.
17759         (movqi_internal, movhi_internal): Update the attributes.
17760         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
17761         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
17762         the attributes.
17763         (v850_tst1): Modified using CC_REGNUM.
17764         (tstsi): Remove.
17765         (cmpsi): Modified as define_expand from define_insn.
17766         (cmpsi_insn, cmpsf, cmpdf): New instructions.
17767         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
17768         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
17769         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
17770         one_cmplsi2): Clobber the CC_REGNUM register.
17771         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
17772         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
17773         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
17774         (setf_insn, set_z_insn, set_nz_insn): New instructions for
17775         v850e2v3 target.
17776         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
17777         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
17778         targets.
17779         (sasf_1, sasf_2): Remove.
17780         (sasf): New instruction.
17781         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
17782         targets. CC_REGNUM register is clobbered and attributes are
17783         updated.
17784         (branch_z_normal, branch_z_invert, branch_nz_normal,
17785         branch_nz_invert): New branch related instructions.
17786         (jump): Updated the attributes.
17787         (switch): Update to support new targets. CC_REGNUM register is
17788         clobbered and attributes are updated.
17789         (call_internal_short, call_internal_long, call_value_internal_short,
17790         call_value_internal_long): Updated the attributes.
17791         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
17792         clobbered and attributes are updated.
17793         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
17794         Update to support new targets. CC_REGNUM register is clobbered.
17795         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
17796         instructions.
17797         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
17798         are updated.
17799         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
17800         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
17801         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
17802         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
17803         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
17804         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
17805         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
17806         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
17807         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
17808         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
17809         point instructions defined for V850e2v3 target.
17810         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
17811         Add support for V850E2 targets and CC_REGNUM register is clobbered.
17812         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
17813         support for new targets.
17814         * config/v850/v850-modes.def: New file.
17815         * config/v850/v850.opt(mstrict-align): Remove.
17816         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
17817         mv850e2v3): New command line options for V850.
17818         * config.gcc: Update the newly added files.
17819         * doc/invoke.texi: Update the newly added command line options for
17820         V850 target.
17821
17822 2010-07-26  Richard Guenther  <rguenther@suse.de>
17823
17824         PR tree-optimization/45052
17825         * ipa-pure-const.c (check_stmt): Check volatileness.
17826
17827 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17828
17829         PR target/44707
17830         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
17831         * config/sparc/sparc.c: Include reload.h.
17832         (legitimize_tls_address): Rename into...
17833         (sparc_legitimize_tls_address): ...this.
17834         (legitimize_pic_address): Rename into...
17835         (sparc_legitimize_pic_address): ...this.
17836         (sparc_expand_move): Adjust to above renaming.
17837         (sparc_tls_referenced_p): Likewise.
17838         (sparc_legitimize_tls_address): Likewise.
17839         (sparc_legitimize_pic_address): Likewise.
17840         (sparc_legitimize_address): Likewise.
17841         (sparc_output_mi_thunk): Likewise.
17842         (sparc_legitimize_reload_address): New global function.  Recognize
17843         (lo_sum (high ...) ...) patterns generated by earlier passes.
17844         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
17845
17846 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17847
17848         PR target/44484
17849         * config/sparc/predicates.md (memory_reg_operand): Delete.
17850         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
17851         (*sync_compare_and_swap): Encode the address form in the pattern.
17852         (*sync_compare_and_swapdi_v8plus): Likewise.
17853
17854 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
17855
17856         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
17857         Streamline paragraph on compatibility with the system compiler.
17858
17859 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
17860
17861         PR middle-end/45035
17862         * alias.c (true_dependence_1): Fix thinko in merge of old
17863         true_dependence and canon_true_dependence.
17864
17865 2010-07-23  Jan Hubicka  <jh@suse.cz>
17866
17867         * lto-streamer-out.c (write_symbol): Fix visibilities of external
17868         references.
17869
17870 2010-07-23  Le-Chun Wu  <lcwu@google.com>
17871
17872         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
17873         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
17874         and an unnecessary assignment.
17875         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
17876         self-assign warning.
17877         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
17878         unnecessary self-init.
17879
17880 2010-07-23  Richard Guenther  <rguenther@suse.de>
17881
17882         PR lto/43071
17883         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
17884         for -flto and -fwhopr.
17885
17886 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
17887
17888         PR target/41943
17889         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
17890         (stmp-int-hdrs): Prefix/postfix headers by include_next.
17891         * config.gcc (user_headers_inc_next_pre): New.
17892         (user_headers_inc_next_post): Likewise.
17893         (*-w64-mingw*): Use for float.h post-fixing, and for
17894         stddef.h/stdarg.h pre-fixing by include_next.
17895         * configure.ac (user_headers_inc_next_post): New.
17896         (user_headers_inc_next_pre): New.
17897         * configure: Regenerated.
17898
17899 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17900
17901         * configure.ac: Don't disable TLS on Solaris 8/9 by default
17902         Set tga_func for Solaris 2/x86 resp. SPARC.
17903         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
17904         (LIB_THREAD_LDFLAGS_SPEC): Define.
17905         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
17906         * configure: Regenerate.
17907         * config.in: Regenerate.
17908         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
17909         -pthread, -threads, LIB_TLS_SPEC with -pthread.
17910         * doc/install.texi (Specific, *-*-solaris2*): Document use of
17911         alternate thread libraries on Solaris 8.
17912         Document TLS patch requirements.
17913         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
17914         Document tls.
17915
17916         PR target/18788
17917         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
17918         -shared.
17919
17920 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
17921
17922         * tree.h (struct tree_base): Add nameless_flag bitfield.
17923         (TYPE_NAMELESS, DECL_NAMELESS): Define.
17924         * omp-low.c (create_omp_child_function, scan_omp_parallel,
17925         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
17926         DECL_ARTIFICIAL where needed.
17927         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
17928         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
17929         has DECL_NAMELESS set.
17930
17931 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17932
17933         PR tree-optimization/44915
17934         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
17935         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
17936         (analyze_function): Likewise.
17937
17938 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17939
17940         PR tree-optimization/44914
17941         * tree-sra.c (sra_modify_function_body): Return true if CFG was
17942         changed, add purging dead eh edges.
17943         (ipa_sra_modify_function_body): Return true if CFG was changed,
17944         simplify purging dead eh edges.
17945         (modify_function): Return true if CFG was changed.
17946         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
17947         was changed.
17948         (ipa_early_sra): Likewise.
17949
17950 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17951
17952         PR target/44290
17953         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
17954         if "naked".
17955         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17956         false if ! tree_versionable_function_p.
17957
17958 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
17959
17960         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
17961         * ipa-pure-const.c (special_builtlin_state): Remove
17962         BUILT_IN_ARGS_INFO case.
17963         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
17964         * builtins.c (expand_builtin): Likewise.
17965         (expand_builtin_args_info): Remove.
17966         * doc/tm.texi (__builtin_args_info): Remove.
17967         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
17968         * doc/tm.text.in: Likewise.
17969
17970 2010-07-23  Richard Guenther  <rguenther@suse.de>
17971
17972         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
17973         (lto_symtab_merge_decls_2): Likewise.
17974         * tree-ssa.c (useless_type_conversion_p): Likewise.
17975         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17976         * gimple.c (gtc_visited2, gtc_ob2): Remove.
17977         (struct type_pair_d): Make same_p an array indexed by mode.
17978         Update comment.
17979         (lookup_type_pair): Update initialization.
17980         (struct sccs): Adjust same_p type.
17981         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
17982         Adjust.
17983         (print_gimple_types_stats): Likewise.
17984         * gimple.h (enum gtc_mode): New.
17985         (gimple_types_compatible_p): Adjust prototype.
17986
17987 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
17988
17989         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
17990         again after processing insn.
17991
17992 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17993
17994         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
17995         proper words when !tree_versionable_function_p.
17996
17997 2010-07-23  Richard Guenther  <rguenther@suse.de>
17998
17999         PR tree-optimization/45037
18000         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18001
18002 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18003
18004         * doc/extend.texi: Remove IP2K from the description of naked attribute.
18005         Add MCORE instead.
18006
18007 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18008
18009         PR lto/44992
18010         * lto-opts.c (lto_write_options): Add NULL file_data argument to
18011         lto_get_section_name.
18012         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18013         * lto-streamer-out.c (produce_asm): Likewise.
18014         (copy_function): Likewise.
18015         (produce_symtab): Likewise.
18016         (produce_asm_for_decls): Likewise.
18017         * lto-streamer.c (lto_get_section_name): Add file_data argument.
18018         Rewrite to add random postfix to LTO sections.
18019         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18020         (lto_get_section_name): Add file_data argument to prototype.
18021
18022 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18023
18024         * lto-section-in.c (lto_section_name): Synchronize names
18025         with lto_get_section_name.
18026
18027 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18028
18029         * lto-opts.c (lto_read_file_options): Check for missing section.
18030
18031 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18032
18033         * ira.c (check_allocation): Correctly handle the case where an allocno
18034         with two objects was allocated to a single reg.
18035
18036 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
18037
18038         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18039         (is_widening_mult_p): Likewise.
18040         (convert_to_widen): Use them.
18041         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
18042         well as integer ones.
18043
18044 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
18045
18046         * alias.c (true_dependence_1): New function, merged version of
18047         true_dependence and canon_true_dependence.
18048         (true_dependence): Simplify.
18049         (canon_true_dependence): Simplify.
18050
18051 2010-07-22  Richard Henderson  <rth@redhat.com>
18052
18053         PR target/45027
18054         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18055         of V4SFmode for the SSE saves; increase stack alignment if needed.
18056         (ix86_gimplify_va_arg): Don't increase stack alignment here.
18057
18058 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
18059
18060         PR bootstrap/45028
18061         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18062         call cprop_find_used_regs again via note_uses.
18063
18064 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
18065
18066         * alias.c (get_alias_set): Fix formatting issues.
18067
18068 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
18069
18070         PR middle-end/44878
18071         * stmt.c (expand_value_return):  Call promote_function_mode with
18072         a for_return argument of 2 when returning by reference.
18073
18074 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
18075
18076         PR debug/45024
18077         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18078         unit DIE if we can find the scope DIE.
18079
18080 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18081
18082         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18083         changed.  Initialize OBJECT_SUBWORD.
18084         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18085         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18086         all callers changed.
18087         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18088         (finish_allocno): Likewise.
18089         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
18090         (remove_low_level_allocnos): Likewise.
18091         (update_bad_spill_attribute): Likewise.
18092         (setup_min_max_allocno_live_range_point): Likewise.
18093         (sort_conflict_id_map): Likewise.
18094         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
18095         (ior_hard_reg_conflicts): New function.
18096         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
18097         (compress_conflict_vecs): Iterate over objects, not allocnos.
18098         (ira_add_live_range_to_object): New function.
18099         (object_range_compare_func): Renamed from allocno_range_compare_func.
18100         All callers changed.
18101         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
18102         subobjects, widen the min/max range of the lowest-order object to
18103         potentially include all other such low-order objects.
18104         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
18105         (check_allocation): Likewise.  Use more fine-grained tests for register
18106         conflicts.
18107         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
18108         allocno subobjects.
18109         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
18110         choices about which bits to set in each set.  Don't use
18111         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
18112         using the multiple sets we computed.
18113         (push_allocno_to_stack): Iterate over allocno subobjects.
18114         (all_conflicting_hard_regs_coalesced): New static function.
18115         (setup_allocno_available_regs_num): Use it.
18116         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
18117         subobjects.
18118         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
18119         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18120         by ALLOCNO_NUM_OBJECTS.
18121         (calculate_spill_cost): Likewise.
18122         (color_pass): Express if statement in a more normal way.
18123         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
18124         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
18125         (setup_slot_coalesced_allocno_live_ranges): Likewise.
18126         (allocno_reload_assign): Likewise.
18127         (ira_reassign_pseudos): Likewise.
18128         (fast_allocation): Likewise.
18129         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18130         (print_allocno_conflicts): Likewise.
18131         (ira_build_conflicts): Likewise.
18132         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
18133         callers changed.  Test subword 0 of each allocno for conflicts.
18134         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
18135         callers changed.  Iterate over allocno subobjects.
18136         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
18137         * ira-int.h (struct ira_allocno): New member: num_objects.
18138         Rename object to objects and change it into an array.
18139         (ALLOCNO_OBJECT): Add new argument N.
18140         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
18141         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
18142         (ior_hard_reg_conflicts): Declare.
18143         (ira_add_live_range_to_object): Declare.
18144         (ira_allocno_object_iterator): New.
18145         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
18146         (FOR_EACH_ALLOCNO_OBJECT): New macro.
18147         * ira-lives.c (objects_live): Renamed from allocnos_live; all
18148         uses changed.
18149         (allocnos_processed): New sparseset.
18150         (make_object_born): Renamed from make_allocno_born; take an
18151         ira_object_t argument.  All callers changed.
18152         (make_object_dead): Renamed from make_allocno_dead; take an
18153         ira_object_t argument.  All callers changed.
18154         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
18155         All callers changed.
18156         (mark_pseudo_regno_live): Iterate over allocno subobjects.
18157         (mark_pseudo_regno_dead): Likewise.
18158         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
18159         functions.
18160         (mark_ref_live): Detect subword accesses and call
18161         mark_pseudo_regno_subword_live as appropriate.
18162         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
18163         (process_bb_nodes_live): Deal with object-related updates first; set
18164         and test bits in allocnos_processed to avoid computing allocno
18165         statistics more than once.
18166         (create_start_finish_chains): Iterate over objects, not allocnos.
18167         (print_object_live_ranges): New function.
18168         (print_allocno_live_ranges): Use it.
18169         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
18170         and objects_live.
18171
18172 2010-07-22  Richard Guenther  <rguenther@suse.de>
18173
18174         PR lto/42451
18175         * gimple.c (gtc_next_dfs_num): New global.
18176         (struct sccs): Make value a union, add integer same_p member.
18177         (gtc_visit): New function.
18178         (gimple_types_compatible_p_1): New function, split out from ...
18179         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
18180         (iterative_hash_gimple_type): Adjust for sccs change.
18181
18182 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18183
18184         PR tree-optimization/44891
18185         * tree-sra.c: Include gimple-pretty-print.h.
18186         (replace_uses_with_default_def_ssa_name): Renamed to
18187         get_repl_default_def_ssa_name, return the new SSA name instead of
18188         replacing the old one.
18189         (sra_modify_assign): Dump a message when removing a load, if the LHS
18190         is an SSA_NAME, do not do any propagation, just set the RHS to a
18191         default definition SSA NAME, type convert if necessary.
18192         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
18193
18194 2010-07-22  Richard Guenther  <rguenther@suse.de>
18195
18196         PR tree-optimization/45017
18197         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
18198         TYPE_PRECISION of integral types in addition to size.
18199
18200 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18201
18202         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
18203         when no C library is specified.
18204
18205 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18206
18207         * ipa-prop.h (struct ipa_node_params): Updated comment.
18208         (struct ipa_edge_args): Likewise.
18209         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
18210
18211 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18212
18213         * cgraphunit.c (verify_edge_count_and_frequency): New function.
18214         (verify_cgraph_node): Verify frequencies of indirect edges.
18215         * tree-inline.c (tree_function_versioning): Update frequencies of
18216         indirect edges.
18217
18218 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18219
18220         PR target/43698
18221         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
18222         Set *arm_rev to be predicable.
18223
18224 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18225
18226         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
18227         (LINK_COMMAND_SPEC_A): New.
18228         (DSYMUTIL): New.
18229         (DSYMUTIL_SPEC): New.
18230         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
18231         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
18232
18233 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18234
18235         * calls.c (load_register_parameters): Move check for zero
18236         sized items so that only the call to
18237         mem_overlaps_already_clobbered_arg_p () is protected.
18238
18239 2010-07-22  Jan Hubicka  <jh@suse.cz>
18240
18241         * ipa-pure-const.c (varying_state): Break out from ...
18242         (get_function_state): ... here; always return varying_state
18243         when state would be NULL otherwise.
18244         (remove_node_data): Do not free varying state.
18245
18246 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18247
18248         PR bootstrap/44970
18249         PR middle-end/45009
18250         * postreload.c: Include "target.h".
18251         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
18252         into account.
18253         (fixup_debug_insns): Don't copy the rtx.
18254         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
18255         Don't copy when replacing.  Call fixup_debug_insns in the case where
18256         we merged one add with another.
18257         (reload_combine_recognize_pattern): Fail if there aren't any uses.
18258         Try harder to determine whether we're picking a valid index register.
18259         Don't set store_ruid for an insn we're going to scan in the
18260         next iteration.
18261         (reload_combine): Remove unused code.
18262         (reload_combine_note_use): When updating use information for
18263         an old insn, ignore a use that occurs after store_ruid.
18264         * Makefile.in (postreload.o): Update dependencies.
18265
18266         * function.c (record_hard_reg_sets): Restrict the previous change
18267         to cases where the incoming nominal mode is the same as the
18268         incoming promoted mode and everything happens in MODE_INT.
18269
18270 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18271
18272         PR debug/45015
18273         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
18274         ASM_OPERANDS_OUTPUT_IDX.
18275         (adjust_insn): For inline asm with multiple sets ensure first
18276         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
18277         the insn.
18278
18279 2010-07-21  Richard Henderson  <rth@redhat.com>
18280
18281         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
18282         comparison for avoiding xmm register saves.  Emit the xmm register
18283         saves explicitly.
18284         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
18285         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
18286         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
18287         Remove patterns and the associated splitters.
18288
18289 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
18290
18291         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
18292         and imagine parts of a complex, so that they can have the same
18293         base and fall into the same group.
18294
18295 2010-07-21  Richard Guenther  <rguenther@suse.de>
18296
18297         PR lto/45018
18298         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
18299         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
18300         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
18301
18302 2010-07-21  Martin Jambor  <mjambor@suse.cz>
18303
18304         PR tree-optimization/44900
18305         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
18306         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
18307
18308 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
18309
18310         PR middle-end/44738
18311         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
18312
18313 2010-07-21  Richard Guenther  <rguenther@suse.de>
18314
18315         PR middle-end/45013
18316         * tree-ssa.c (useless_type_conversion_p): Dispatch to
18317         gimple_types_compatible_p only when in lto.
18318         * gimple.c (gimple_types_compatible_p): Use canonical types
18319         to speed up comparison.
18320
18321 2010-07-21  Richard Guenther  <rguenther@suse.de>
18322
18323         * tree-flow.h (referenced_var): Move define ...
18324         * tree-flow-inline.h (referenced_var): ... here as an inline
18325         function.  Assert here ...
18326         * tree-dfa.c (referenced_var_lookup): ... instead of here.
18327         * tree-ssa.c (maybe_optimize_var): Check if the variable
18328         is in referenced vars.
18329         (execute_update_addresses_taken): Remove old broken check.
18330         * gimple-pretty-print.c (pp_points_to_solution): Use
18331         referenced_var_lookup.
18332         * tree-into-ssa.c (dump_decl_set): Likewise.
18333
18334 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18335
18336         PR debug/45003
18337         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
18338         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
18339         ZERO_EXTEND here.
18340
18341 2010-07-20  Richard Henderson  <rth@redhat.com>
18342
18343         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
18344
18345 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18346
18347         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
18348         computing the sum of the stack pointer and a large constant.
18349         * config/arm/constraints.md (M): Remove superfluous parentheses.
18350         (Pc): New constraint.
18351
18352 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18353
18354         PR debug/45006
18355         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
18356         operand's type if exp is tcc_unary class tree.
18357
18358 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18359
18360         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
18361         Reverse sense of if_then_else condition.
18362
18363 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18364
18365         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
18366         * config/rs6000/rs6000.c (rs6000_override_options): Set
18367         rs6000_block_move_inline_limit appropriately.
18368         (expand_block_move): Use rs6000_block_move_inline_limit.
18369         * doc/invoke.texi (mblock-move-inline-limit): Document.
18370
18371 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18372
18373         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
18374         FROM and TO.  All callers changed.  Don't look for tracked uses,
18375         just scan the RTL for DEBUG_INSNs and substitute.
18376         (reload_combine_recognize_pattern): Call fixup_debug_insns.
18377         (reload_combine): Ignore DEBUG_INSNs.
18378
18379 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18380
18381         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
18382         depth to 8 from 5.
18383
18384         PR debug/45003
18385         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
18386         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
18387         instead of the result's type.
18388
18389 2010-07-20  Richard Guenther  <rguenther@suse.de>
18390
18391         PR tree-optimization/44977
18392         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
18393         SSA form.
18394
18395 2010-07-20  Richard Guenther  <rguenther@suse.de>
18396
18397         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
18398         (lto_symtab_merge_decls_2): Likewise.
18399         * gimple.h (gimple_types_compatible_p): Declare.
18400         * gimple.c (gimple_queue_type_fixup): Remove.
18401         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
18402         (gimple_compatible_complete_and_incomplete_type_p): New function.
18403         (gimple_types_compatible_p): Adjust.
18404         (gimple_register_type): Remove type fixup code.
18405         (print_gimple_types_stats): Adjust.
18406         (free_gimple_type_tables): Likewise.
18407         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
18408         * tree-ssa.c (useless_type_conversion_p): Likewise.
18409
18410 2010-07-20  Richard Guenther  <rguenther@suse.de>
18411
18412         PR middle-end/44971
18413         PR middle-end/44988
18414         * tree-ssa.c (maybe_optimize_var): New function split out from ...
18415         (execute_update_addresses_taken): ... here.
18416         (non_rewritable_mem_ref_base): Likewise.
18417         (execute_update_addresses_taken): Do not iterate over all referenced
18418         vars but just all local decls and parms.
18419         Properly check call and asm arguments and rewrite call arguments.
18420
18421 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
18422
18423         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
18424         to top level.
18425         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
18426         definitions ...
18427         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
18428         New macro.
18429         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
18430
18431 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
18432
18433         * gengtype.c (start_root_entry): New function, split out from
18434         write_root.  Check whether V is null and raise an error if so.
18435         (write_field_root): Check for V being null.  Don't raise an error here;
18436         set V to null instead.
18437         (write_root): Update comment above function.  Use start_root_entry.
18438
18439 2010-07-19  Xinliang David Li  <davidxl@google.com>
18440
18441         PR testsuite/44932
18442         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
18443         def edges.
18444         (find_uninit_use): Add dump.
18445         (is_use_properly_guarded): Ditto.
18446         (warn_uninitialized_phi): Ditto.
18447         (execute_late_warn_uninitialized): Ditto.
18448
18449 2010-07-19  Richard Guenther  <rguenther@suse.de>
18450
18451         PR middle-end/44941
18452         * expr.c (emit_block_move_hints): Move zero size check first.
18453         Move asserts to more useful places.
18454         * calls.c (load_register_parameters): Check for zero size.
18455
18456 2010-07-19  Richard Henderson  <rth@redhat.com>
18457
18458         * tree-optimize.c (execute_all_early_local_passes): New.  Change
18459         cgraph_state here ...
18460         (execute_early_local_optimizations): ... not here.  Remove.
18461         (pass_early_local_passes, pass_all_early_optimizations): Update.
18462
18463 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
18464
18465         * postreload.c (reload_combine_closest_single_use): Ignore the
18466         number of uses for DEBUG_INSNs.
18467         (fixup_debug_insns): New static function.
18468         (reload_combine_recognize_const_pattern): Use it.  Don't let the
18469         main loop be affected by DEBUG_INSNs.
18470         Really disallow moving adds past a jump insn.
18471         (reload_combine_recognize_pattern): Don't update use_ruid here.
18472         (reload_combine_note_use): Do it here.
18473         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
18474
18475 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
18476
18477         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
18478         of a loop.
18479         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
18480
18481 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
18482
18483         * config/i386/darwin.h: Define darwin_emit_branch_islands.
18484         (TARGET_MACHO_BRANCH_ISLANDS): New.
18485         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
18486         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
18487         default value.
18488         * config/i386/i386.c (output_pic_addr_const): Do not emit
18489         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
18490         (x86_output_mi_thunk): Adjust symbol creation.
18491         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
18492         Remove out of date comment.
18493         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
18494         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18495         (DARWIN_GENERATE_ISLANDS): Ditto.
18496         (output_call):  Do not emit branch islands unless
18497         darwin_emit_branch_islands is set.
18498         * config/darwin.c: Declare darwin_emit_branch_islands.
18499         (machopic_indirect_data_reference): Do not emit unless
18500         darwin_emit_branch_islands is set.
18501         (darwin_override_options): Set darwin_emit_branch_islands
18502         where it is needed.
18503         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18504
18505 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18506
18507         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18508         sse_runtime, sse2_runtime.
18509
18510 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
18511
18512         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
18513         low half of a single-register SCmode return value before ORing
18514         it with the high half.
18515         * config/mips/mips16.S (MERGE_GPRf): Likewise.
18516
18517 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18518
18519         PR target/44805
18520         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
18521         on all targets.
18522
18523 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
18524
18525         PR target/42235
18526         * postreload.c (reload_cse_move2add): Return bool, true if anything.
18527         changed.  All callers changed.
18528         (move2add_use_add2_insn): Likewise.
18529         (move2add_use_add3_insn): Likewise.
18530         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
18531         reload_combine.
18532         (RELOAD_COMBINE_MAX_USES): Bump to 16.
18533         (last_jump_ruid): New static variable.
18534         (struct reg_use): New members CONTAINING_MEM and RUID.
18535         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
18536         (reload_combine_split_one_ruid, reload_combine_split_ruids,
18537         reload_combine_purge_insn_uses, reload_combine_closest_single_use
18538         reload_combine_purge_reg_uses_after_ruid,
18539         reload_combine_recognize_const_pattern): New static functions.
18540         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
18541         is true for our reg and that we have available index regs.
18542         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
18543         callers changed.  Use them to initialize fields in struct reg_use.
18544         (reload_combine): Initialize last_jump_ruid.  Be careful when to
18545         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
18546         Call reload_combine_recognize_const_pattern.
18547         (reload_combine_note_store): Update REAL_STORE_RUID field.
18548
18549 2010-07-16  Jason Merrill  <jason@redhat.com>
18550
18551         * Makefile.in (opts-common.o): Depend on options.h.
18552
18553 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18554
18555         * tree.c (build_common_builtin_nodes): Use build_function_type_list
18556         instead of build_function_type.
18557         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
18558         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18559
18560 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18561
18562         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
18563         do all the work.
18564         (rs6000_emit_int_cmove): Use function pointers for insn generation.
18565         Don't force values into registers unnecessarily.
18566         (output_isel): Assert that we're not given conditions we can't handle.
18567         Delete corresponding code.
18568         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
18569         scc_comparison_operator constraint.  Permit 0 for the consequent
18570         operand.  Permit any GPR for the alternative operand.
18571         (isel_unsigned_<mode>): Likewise.
18572
18573 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
18574
18575         PR target/44942
18576         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
18577         argument to const_tree.
18578         * config/i386/i386.c (function_arg_advance): If padding needs to be
18579         inserted before argument, increment cum->words by number of padding
18580         words as well.
18581         (contains_aligned_value_p): Change argument to const_tree.
18582         (ix86_function_arg_boundary): Change second argument to const_tree.
18583
18584 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
18585
18586         PR target/42235
18587         * function.c (record_hard_reg_sets): New static function.
18588         (assign_parm_setup_reg): If an optab for extending exists and the
18589         generated code clobbbers no hard regs, emit the insn directly and
18590         create a REG_EQUIV note.
18591
18592 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18593
18594         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
18595         TREE_CHAIN.
18596         * c-typeck.c (push_init_level): Likewise.
18597         (process_init_element): Likewise.
18598
18599 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
18600
18601         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
18602         (integer_three_node): Add.
18603         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
18604         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
18605         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
18606         of call build_int_cst.
18607         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
18608         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
18609         (find_interesting_uses_address): Ditto.
18610         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
18611         * tree-eh.c (lower_eh_constructs_2): Ditto.
18612         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
18613         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
18614         * expmed.c (expand_divmod): Ditto.
18615         * tree-mudflap.c (mx_register_decls): Ditto.
18616         * varasm.c (array_size_for_constructor): Ditto.
18617         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
18618         * c-parser.c (c_parser_postfix_expression): Ditto.
18619
18620 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18621
18622         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
18623         New static variables.
18624         (reload_combine_recognize_pattern): New static function, broken out
18625         of reload_combine.
18626         (reload_combine): Use it.  Only initialize first_index_reg and
18627         last_index_reg once.
18628
18629 2010-07-15  Richard Henderson  <rth@redhat.com>
18630
18631         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
18632         when done.
18633
18634 2010-07-15  Jan Hubicka  <jh@suse.cz>
18635
18636         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
18637         comdats for broken gold.
18638         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
18639
18640 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18641
18642         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
18643
18644 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18645
18646         * tree.h (DECL_CHAIN): Define.
18647         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
18648         * c-decl.c: Likewise.
18649         * c-parser.c: Likewise.
18650         * c-typeck.c: Likewise.
18651         * cfgexpand.c: Likewise.
18652         * cgraph.c: Likewise.
18653         * cgraphunit.c: Likewise.
18654         * combine.c: Likewise.
18655         * config/alpha/alpha.c: Likewise.
18656         * config/arm/arm.c: Likewise.
18657         * config/frv/frv.c: Likewise.
18658         * config/i386/i386.c: Likewise.
18659         * config/i386/winnt-cxx.c: Likewise.
18660         * config/ia64/ia64.c: Likewise.
18661         * config/iq2000/iq2000.c: Likewise.
18662         * config/mep/mep.c: Likewise.
18663         * config/mips/mips.c: Likewise.
18664         * config/pa/som.h: Likewise.
18665         * config/rs6000/rs6000.c: Likewise.
18666         * config/s390/s390.c: Likewise.
18667         * config/sh/sh.c: Likewise.
18668         * config/sh/symbian-cxx.c: Likewise.
18669         * config/sparc/sparc.c: Likewise.
18670         * config/spu/spu.c: Likewise.
18671         * config/stormy16/stormy16.c: Likewise.
18672         * config/vxworks.c: Likewise.
18673         * config/xtensa/xtensa.c: Likewise.
18674         * coverage.c: Likewise.
18675         * dbxout.c: Likewise.
18676         * dwarf2out.c: Likewise.
18677         * emit-rtl.c: Likewise.
18678         * expr.c: Likewise.
18679         * function.c: Likewise.
18680         * gimple-low.c: Likewise.
18681         * gimple-pretty-print.c: Likewise.
18682         * gimplify.c: Likewise.
18683         * integrate.c: Likewise.
18684         * ipa-inline.c: Likewise.
18685         * ipa-prop.c: Likewise.
18686         * ipa-split.c: Likewise.
18687         * ipa-struct-reorg.c: Likewise.
18688         * ipa-type-escape.c: Likewise.
18689         * langhooks.c: Likewise.
18690         * lto-cgraph.c: Likewise.
18691         * omp-low.c: Likewise.
18692         * stor-layout.c: Likewise.
18693         * tree-cfg.c: Likewise.
18694         * tree-complex.c: Likewise.
18695         * tree-dfa.c: Likewise.
18696         * tree-dump.c: Likewise.
18697         * tree-inline.c: Likewise.
18698         * tree-mudflap.c: Likewise.
18699         * tree-nested.c: Likewise.
18700         * tree-object-size.c: Likewise.
18701         * tree-pretty-print.c: Likewise.
18702         * tree-sra.c: Likewise.
18703         * tree-ssa-live.c: Likewise.
18704         * tree-ssa-loop-niter.c: Likewise.
18705         * tree-ssa-math-opts.c: Likewise.
18706         * tree-ssa-reassoc.c: Likewise.
18707         * tree-ssa-sccvn.c: Likewise.
18708         * tree-ssa-structalias.c: Likewise.
18709         * tree-tailcall.c: Likewise.
18710         * tree-vrp.c: Likewise.
18711         * tree.c: Likewise.
18712         * var-tracking.c: Likewise.
18713         * varasm.c: Likewise.
18714
18715 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18716
18717         PR target/44877
18718         * config/spu/spu.c (spu_expand_builtin_1): Allow references
18719         (as well as pointers) as argument to mask_for_load builtins.
18720
18721 2010-07-15  Richard Guenther  <rguenther@suse.de>
18722
18723         PR tree-optimization/44946
18724         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
18725         with accessing only padding properly.
18726
18727 2010-07-15  Jan Hubicka  <jh@suse.cz>
18728
18729         * ipa.c (function_and_variable_visibility): Variables marked as used
18730         should not be localized.
18731
18732 2010-07-15  Jan Hubicka  <jh@suse.cz>
18733
18734         * cgraph.c: Include lto-streamer.h
18735         (change_decl_assembler_name): Work when assembler name hash is at place.
18736         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
18737         be sure to rename it to avoid name clash.
18738         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
18739         Localize hidden symbols only when locally defined.
18740
18741 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
18742
18743         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
18744
18745 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
18746             Kevin F. Quinn  <kevquinn@gentoo.org>
18747
18748         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
18749         * common.opt: Add -Wtrampolines.
18750         * doc/invoke.texi: Add -Wtrampolines.
18751
18752 2010-07-15  Jie Zhang  <jie@codesourcery.com>
18753
18754         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
18755         cortex_a8_issue_ls.
18756
18757 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
18758
18759         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
18760         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
18761
18762 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18763
18764         * config/spu/spu.c (reg_names): Remove prototype.
18765         (call_used_regs): Likewise.
18766
18767 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18768
18769         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
18770         "unused" with attribute "used".
18771         (__JCR_END__): Likewise.
18772         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
18773         "used" attribute.
18774         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
18775
18776 2010-07-14  Richard Guenther  <rguenther@suse.de>
18777
18778         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
18779         (maybe_fixup_decls): Likewise.
18780         (input_gimple_stmt): Do not fixup anything.
18781         * lto-streamer-out.c (output_gimple_stmt): Make sure all
18782         non-automatic variable uses are wrapped inside a MEM_REF.
18783
18784 2010-07-14  Richard Henderson  <rth@redhat.com>
18785
18786         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
18787         for functions.
18788         * varasm.c (assemble_variable): Remove early exit for functions;
18789         assert that we're given a variable.
18790
18791 2010-07-14  Jie Zhang  <jie@codesourcery.com>
18792
18793         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
18794         cortex_a8_default when neon_type is not none.
18795
18796 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18797
18798         * lower-subreg.c (subreg_context): New static bitmap.
18799         (decompose_multiword_subregs): Allocate and free it.
18800         (find_decomposable_subregs): Set a bit in it for a register that
18801         occurs in a subreg that changes mode but not size.
18802         (can_decompose_p): Test it instead of non_decomposable_context.
18803
18804 2010-07-14  Richard Guenther  <rguenther@suse.de>
18805
18806         PR tree-optimization/44824
18807         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
18808         is_gimple_mem_ref_addr.
18809         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
18810         non-decl_address_invariant_p addresses.
18811
18812 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18813
18814         * reload.c (find_reloads): Revert code to penalize small register
18815         classes that was brought in with the IRA merge.
18816
18817 2010-07-14  Richard Guenther  <rguenther@suse.de>
18818
18819         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
18820         as base of ARRAY_REFs.
18821
18822 2010-07-14  Richard Guenther  <rguenther@suse.de>
18823
18824         PR middle-end/44930
18825         * tree-pretty-print.c (do_niy): Do not print a newline.
18826
18827 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18828
18829         * ira-int.h (struct ira_object): New.
18830         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
18831         (struct ira_allocno): Remove members min, max,
18832         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
18833         conflict_allocnos_num and conflict_vec_p.  Add new member object.
18834         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
18835         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
18836         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
18837         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
18838         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
18839         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
18840         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
18841         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
18842         an ira_object_t rather than ira_allocno_t.  All uses changed.
18843         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18844         contains a vector of ira_object_t; all uses changed.
18845         (ira_objects_num): Declare variable.
18846         (ira_create_allocno_object): Declare function.
18847         (ira_conflict_vector_profitable_p): Adjust prototype.
18848         (ira_allocate_conflict_vec): Renamed from
18849         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
18850         (ira_allocate_object_conflicts): Renamed from
18851         ira_allocate_allocno_conflicts; first arg now ira_object_t.
18852         (struct ira_object_iterator): New.
18853         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
18854         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
18855         to conflict_vec_p.  All uses changed.
18856         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
18857         Changed to take into account that conflicts are now tracked for
18858         objects.
18859         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
18860         Args changed to accept ira_object_t.  All uses changed.
18861         (allocnos_conflict_p): New static function.
18862         (collected_conflict_objects): Renamed from collected_allocno_objects;
18863         now a vector of ira_object_t.  All uses changed.
18864         (build_conflict_bit_table): Changed to take into account that
18865         conflicts are now tracked for objects.
18866         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
18867         (print_allocno_conflicts, ira_build_conflicts): Likewise.
18868         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
18869         setup_allocno_left_conflicts_size, allocno_reload_assign,
18870         fast_allocation): Likewise.
18871         * ira-lives.c (make_hard_regno_born, make_allocno_born)
18872         process_single_reg_class_operands, process_bb_node_lives): Likewise.
18873         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
18874         Likewise.
18875         * ira-build.c (ira_objects_num): New variable.
18876         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18877         contains a vector of ira_object_t; all uses changed.
18878         (ira_object_id_map_vec): Corresponding change.
18879         (object_pool): New static variable.
18880         (initiate_allocnos): Initialize it.
18881         (finish_allocnos): Free it.
18882         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
18883         New functions.
18884         (ira_create_allocno): Don't set members that were removed.
18885         (ira_set_allocno_cover_class): Don't change conflict hard regs.
18886         (merge_hard_reg_conflicts): Changed to take into account that
18887         conflicts are now tracked for objects.
18888         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
18889         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
18890         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
18891         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
18892         setup_min_max_conflict_allocno_ids, ):  Likewise.
18893         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
18894         to ira_object_t; all callers changed.
18895         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
18896         to ira_object_t, all callers changed.
18897         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
18898         to ira_object_t, all callers changed.
18899         (conflict_check, curr_conflict_check_tick): Renamed from
18900         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
18901         changed.
18902         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
18903         arg changed to ira_object_t, all callers changed.
18904         (create_cap_allocno): Call ira_create_allocno_object.
18905         (finish_allocno): Free the corresponding object.
18906         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
18907         callers changed.  Adjusted for dealing with objects.
18908         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
18909         dealing with objects.
18910         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
18911
18912         * ira-int.h (struct live_range): Rename allocno member to object
18913         and change type to ira_object_t.
18914         (struct ira_object): New member live_ranges.
18915         (struct ira_allocno): Remove member live_ranges.
18916         (ALLOCNO_LIVE_RANGES): Remove.
18917         (OBJECT_LIVE_RANGES): New macro.
18918         (ira_create_live_range, ira_copy_live_range_list,
18919         ira_merge_live_range_list, ira_live_ranges_intersect_p,
18920         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
18921         * ira-build.c (ira_create_object): Initialize live ranges here.
18922         (ira_create_allocno): Not here.
18923         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
18924         changed to ira_object_t, all callers changed.
18925         (copy_live_range): Rename from copy_allocno_live_range, all callers
18926         changed.
18927         (ira_copy_live_range_list): Rename from
18928         ira_copy_allocno_live_range_list, all callers changed.
18929         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
18930         all callers changed.
18931         (ira_live_ranges_intersect_p): Rename from
18932         ira_allocno_live_ranges_intersect_p, all callers changed.
18933         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
18934         callers changed.
18935         (ira_finish_live_range_list): Rename from
18936         ira_finish_allocno_live_range_list, all callers changed.
18937         (change_object_in_range_list): Rename from change_allocno_in_range_list,
18938         last arg changed to ira_object_t, all callers changed.
18939         (finish_allocno): Changed to expect live ranges in the allocno's object.
18940         (move_allocno_live_ranges, copy_allocno_live_ranges,
18941         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
18942         ira_flattening, ira_build): Likewise.
18943         * ira-color.c (allocnos_have_intersected_live_ranges_p,
18944         slot_coalesced_allocno_live_ranges_intersect,
18945         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
18946         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18947         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
18948         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
18949         make_allocno_dead, create_start_finish_chains,
18950         remove_some_program_points_and_update_live_ranges,
18951         ira_debug_live_range_list): Likewise.
18952
18953         * ira-int.h (ira_object_conflict_iterator): Rename from
18954         ira_allocno_conflict_iterator.
18955         (ira_object_conflict_iter_init): Rename from
18956         ira_allocno_conflict_iter_init, second arg changed to
18957         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
18958         FOR_EACH_ALLOCNO_CONFLICT.
18959         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
18960         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
18961         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
18962         * ira-conflicts.c (print_allocno_conflicts): Likewise.
18963
18964 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
18965
18966         PR other/44874
18967         * tree-dump.c (dump_options): Add enumerate_locals entry.
18968         Add TDF_NOID exclusion to all entry.
18969         * tree-dump.h (dump_enumerated_decls): Declare.
18970         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
18971         Don't display type uid.
18972         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
18973         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
18974         * tree-ssa-live.c: Include gimple.h.
18975         (numbered_tree_d): New struct.
18976         (numbered_tree): New typedef.
18977         (DEF_VEC_O (numbered_tree): New.
18978         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
18979         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
18980         (dump_enumerated_decls): Likewise.
18981         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
18982         debug info and flag_dump_final_insns, call dump_enumerated_decls.
18983         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
18984         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
18985
18986 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
18987
18988         * expmed.h (MAX_BITS_PER_WORD): Move to...
18989         * defaults.h (MAX_BITS_PER_WORD): ...here.
18990
18991 2010-07-13  DJ Delorie  <dj@redhat.com>
18992
18993         * config/h8300/h8300.c (h8300_init_once): Default to
18994         -fstrict_volatile_bitfields.
18995
18996         * config/sh/sh.c (sh_override_options): Default to
18997         -fstrict_volatile_bitfields.
18998
18999         * config/rx/rx.c (rx_option_override): New.
19000
19001         * config/m32c/m32c.c (m32c_override_options): Default to
19002         -fstrict_volatile_bitfields.
19003
19004 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
19005
19006         * tree.h (build_function_call_expr): Delete.
19007         (build_call_expr_loc_array): New function.
19008         (build_call_expr_loc_vec): New function.
19009         * tree-flow.h (struct omp_region): Change type of ws_args field
19010         to a VEC.
19011         * builtins.c (build_function_call_expr): Delete.
19012         (build_call_expr_loc_array): New function.
19013         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
19014         (build_call_expr): Likewise.
19015         (build_call_expr_loc_vec): New function.
19016         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19017         build_function_call_expr.
19018         * expr.c (emutls_var_address): Likewise.
19019         * varasm.c (emutls_common_1): Likewise.
19020         * omp-low.c (expand_omp_atomic_mutex): Likewise.
19021         (expand_omp_taskreg): Adjust for new type of region->ws_args.
19022         (get_ws_args_for): Return a VEC instead of a tree.
19023         (expand_parallel_call): Call build_call_expr_loc_vec instead of
19024         build_function_call_expr.
19025         * stor-layout.c (self_referential_size): Likewise.
19026
19027 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19028
19029         PR testsuite/44701
19030         * recog.c (constrain_operands): Allow side-effects in memory
19031         operands if either < or > constraint is used, rather than if
19032         both < and > is used.
19033
19034 2010-07-13  Richard Guenther  <rguenther@suse.de>
19035
19036         PR middle-end/44911
19037         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19038         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
19039         without name.
19040
19041 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
19042
19043         PR target/44761
19044         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19045         to variable emited.
19046         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19047         * config/sh/sh.md (symGOT_load): Likewise.
19048         (symDTPOFF2reg): Likewise.
19049         (symTPOFF2reg): Likewise.
19050
19051 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19052
19053         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19054         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19055
19056 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19057
19058         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19059         explanation.
19060         Find ucontext_t * on Solaris 11.
19061         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19062         Handle new Solaris 11 __sighndlr patterns.
19063
19064 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19065
19066         PR debug/44901
19067         * vec.h (VEC_block_remove): Fix comment.
19068         * tree-ssa-live.c (remove_unused_locals): Don't use
19069         VEC_unordered_remove on local_decls, instead replace a single
19070         vector element in each iteration if at least one element had
19071         to be removed and VEC_truncate at the end.
19072         * omp-low.c (expand_omp_taskreg): Likewise.
19073
19074 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19075
19076         * c-decl.c (finish_function): Fix typo in comment.
19077
19078 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
19079
19080         PR bootstrap/44921
19081         * postreload.c (move2add_use_add3_insn): Silence gcc warning
19082         on min_regno.
19083
19084 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
19085
19086         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19087         (simplify_stmt_using_ranges): Use it.
19088
19089 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19090
19091         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19092         member.  Do not mark as GTY(()).
19093         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
19094         (spu_builtin_decls): New static variable.
19095         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
19096         (spu_init_builtins): Likewise.
19097         (spu_builtin_mul_widen_even): Likewise.
19098         (spu_builtin_mul_widen_odd): Likewise.
19099         (spu_builtin_mask_for_load): Likewise.
19100         (spu_builtin_vec_perm): Likewise.
19101         * config/spu/spu-c.c: Include "target.h".
19102         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
19103         of using spu_builtins[].fndecl.
19104
19105 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19106
19107         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
19108         imply -minterlink-mips16.
19109
19110 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19111
19112         * config/mips/mips.h (mips16_globals): Declare.
19113         (SWITCHABLE_TARGET): Define.
19114         * config/mips/mips.c: Include target-globals.h.
19115         (mips16_globals): New variable.
19116         (mips_set_mips16_mode): Use save_target_globals and
19117         restore_target_globals instead of target_reinit.
19118
19119 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19120
19121         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
19122         to say that the function can be called more than once.
19123         * target-globals.c (save_target_globals): Call init_reg_sets.
19124
19125 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19126
19127         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
19128         * bb-reorder.h: New file.
19129         * bb-reorder.c (default_target_bb_reorder): New variable.
19130         (this_target_bb_reorder): New conditional variable.
19131         (uncond_jump_length): Redefine as a macro.
19132         * target-globals.h (this_target_bb_reorder): Declare.
19133         (target_globals): Add a bb_reorder field.
19134         (restore_target_globals): Copy the bb_reorder field to
19135         this_target_bb-reorder.
19136         * target-globals.c: Include bb-reorder.h.
19137         (default_target_globals): Initialize the bb_reorder field.
19138         (save_target_globals): Likewise.
19139
19140 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19141
19142         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
19143         * gcse.h: New file.
19144         * gcse.c: Include gcse.h.
19145         (default_target_gcse): New variable.
19146         (this_target_gcse): New conditional variable.
19147         (can_copy): Redefine as a macro.
19148         (can_copy_init_p): New macro.
19149         (can_copy_p): Remove can_copy_init_p.
19150         * target-globals.h (this_target_gcse): Declare.
19151         (target_globals): Add a gcse field.
19152         (restore_target_globals): Copy the gcse field to this_target_gcse.
19153         * target-globals.c: Include gcse.h.
19154         (default_target_globals): Initialize the gcse field.
19155         (save_target_globals): Likewise.
19156
19157 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19158
19159         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
19160         and x_ira_prohibited_mode_move_regs_initialized_p.
19161         (ira_prohibited_mode_move_regs): Redefine as a macro.
19162         * ira.c (ira_prohibited_mode_move_regs): Delete.
19163         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
19164
19165 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19166
19167         * reload.h (target_reload): Add x_cached_reg_save_code and
19168         x_cached_reg_restore_code.
19169         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
19170         Redefine as macros.
19171
19172 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19173
19174         * Makefile.in (target-globals.o): Depend on builtins.h.
19175         * builtins.h: New file.
19176         * builtins.c: Include builtins.h.
19177         (default_target_builtins): New variable.
19178         (this_target_builtins): New conditional variable.
19179         (apply_args_mode, apply_result_mode): Redefine as macros.
19180         * target-globals.h (this_target_builtins): Declare.
19181         (target_globals): Add a builtins field.
19182         (restore_target_globals): Copy the builtins field to
19183         this_target_builtins.
19184         * target-globals.c: Include builtins.h.
19185         (default_target_globals): Initialize the builtins field.
19186         (save_target_globals): Likewise.
19187
19188 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19189
19190         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
19191         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
19192         from expmed.c.
19193         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
19194         (alg_hash, alg_hash_used_p): New macros.
19195         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
19196         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
19197         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
19198
19199 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19200
19201         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
19202         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
19203         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
19204         (this_op_costs, costs_classes): Redefine as macros.
19205         (record_reg_classes): Don't take op_costs as a parameter.
19206         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
19207         (scan_one_insn): Update call to record_operand_costs.
19208
19209 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19210
19211         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
19212         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
19213         (target_ira_int): New structure.
19214         (default_target_ira_int): Declare.
19215         (this_target_ira_int): Declare as a variable or define as a macro.
19216         (ira_reg_mode_hard_regset, ira_register_move_cost)
19217         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
19218         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
19219         (prohibited_class_mode_regs, ira_important_classes_num)
19220         (ira_important_classes, ira_reg_class_intersect)
19221         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
19222         (ira_reg_class_union): Redefine as macros.
19223         * ira.h (target_ira): New structure.
19224         (default_target_ira): Declare.
19225         (this_target_ira): Declare as a variable or define as a macro.
19226         (ira_available_class_regs, ira_hard_regno_cover_class)
19227         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
19228         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
19229         (ira_class_hard_regs_num): Redefine as macros.
19230         * ira.c (default_target_ira, default_target_ira_int): New variables.
19231         (this_target_ira, this_target_ira_int): New conditional variables.
19232         (ira_reg_mode_hard_regset, ira_memory_move_cost)
19233         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
19234         (ira_class_subset_p): Delete.
19235         (no_unit_alloc_regs): Redefine as a macro.
19236         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
19237         (ira_class_hard_regs_num, ira_class_hard_reg_index)
19238         (ira_available_class_regs): Delete.
19239         (alloc_reg_class_subclasses): Redefine as a macro.
19240         (ira_reg_class_cover_size, ira_reg_class_cover)
19241         (ira_important_classes_num, ira_important_classes)
19242         (ira_important_class_nums, ira_class_translate): Delete.
19243         (cover_class_order): Document the variable's lifetime.
19244         (reorder_important_classes): Don't set ira_important_class_nums.
19245         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
19246         (ira_reg_class_super_classes, ira_reg_class_union)
19247         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
19248         Delete.
19249         (setup_reg_class_nregs): Don't set ira_max_regs.
19250         (prohibited_class_mode_regs): Delete.
19251         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
19252         (target_globals): Add ira and ira_int fields.
19253         (restore_target_globals): Copy the ira field to this_target_ira
19254         and the ira_int field to this_target_ira_int.
19255         * target-globals.c: Include ira-int.h.
19256         (default_target_globals): Initialize the ira and ira_int fields.
19257         (save_target_globals): Likewise.
19258
19259 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19260
19261         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
19262         * cfgloop.h (target_cfgloop): New structure.
19263         (default_target_cfgloop): Declare.
19264         (this_target_cfgloop): Declare as a variable or define as a macro.
19265         (target_avail_regs, target_clobbered_regs, target_res_regs)
19266         (target_reg_cost, target_spill_cost): Redefine as macros.
19267         * cfgloopanal.c (default_target_cfgloop): New variable.
19268         (this_target_cfgloop): New conditional variable.
19269         (target_avail_regs, target_clobbered_regs, target_res_regs)
19270         (target_reg_cost, target_spill_cost): Delete.
19271         * target-globals.h (this_target_cfgloop): Declare.
19272         (target_globals): Add a cfgloop field.
19273         (restore_target_globals): Copy the cfgloop field to
19274         this_target_cfgloop.
19275         * target-globals.c: Include cfgloop.h.
19276         (default_target_globals): Initialize the cfgloop field.
19277         (save_target_globals): Likewise.
19278
19279 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19280
19281         * regs.h (target_regs): Add x_direct_load, x_direct_store and
19282         x_float_extend_from_mem.
19283         (direct_load, direct_store, float_extend_from_mem): New macros.
19284         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
19285
19286 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19287
19288         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
19289         (target-globals.o): Depend on $(LIBFUNCS_H).
19290         * libfuncs.h: Include hashtab.h.
19291         (libfunc_entry): Moved from optabs.c.
19292         (target_libfuncs): New structure.
19293         (default_target_libfuncs): Declare.
19294         (this_target_libfuncs): Declare as a variable or define as a macro.
19295         (libfunc_table): Redefine as a macro.
19296         * optabs.c (default_target_libfuncs): New variable.
19297         (this_target_libfuncs): New conditional variable.
19298         (libfunc_table): Delete.
19299         (libfunc_entry): Moved to optabs.h.
19300         (libfunc_hash): Redefine as a macro.
19301         (hash_libfunc, eq_libfunc): Fix comments.
19302         (init_optabs): Use libfunc_hash to detect cases where the function
19303         has already been called.  Clear the hash table instead of
19304         recreating it.
19305         * target-globals.h (this_target_libfuncs): Declare.
19306         (target_globals): Add a libfuncs field.
19307         (restore_target_globals): Copy the libfuncs field to
19308         this_target_libfuncs.
19309         * target-globals.c: Include libfuncs.h.
19310         (default_target_globals): Initialize the libfuncs field.
19311         (save_target_globals): Likewise.
19312
19313 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19314
19315         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
19316         in all dependency lists.
19317
19318 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19319
19320         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
19321         * optabs.h (target_optabs): New structure.
19322         (default_target_optabs): Declare.
19323         (this_target_optabs): Declare as a variable or define as a macro.
19324         (optab_table, convert_optab_table, direct_optab_table): Redefine
19325         as macros.
19326         * optabs.c (default_target_optabs): New variable.
19327         (this_target_optabs): New conditional variable.
19328         (optab_table, convert_optab_table, direct_optab_table): Delete.
19329         * target-globals.h (this_target_optabs): Declare.
19330         (target_globals): Add a optabs field.
19331         (restore_target_globals): Copy the optabs field to
19332         this_target_optabs.
19333         * target-globals.c: Include expr.h and optabs.h.
19334         (default_target_globals): Initialize the optabs field.
19335         (save_target_globals): Likewise.
19336
19337 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19338
19339         * flags.h (target_flagstate): Add x_flag_excess_precision.
19340         (flag_excess_precision): Redefine as a macro.
19341         * toplev.c (flag_excess_precision): Delete.
19342
19343 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19344
19345         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
19346         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
19347         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
19348         (no_caller_save_reg_set): Redefine as a macro.
19349         * reload.h (target_reload): Add x_caller_save_initialized_p and
19350         x_regno_save_mode.
19351         (caller_save_initialized_p): Redefine as a macro.
19352         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
19353         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
19354         (regno_save_mode): Redefine as a macro.
19355
19356 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19357
19358         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
19359         * expmed.h: New file.
19360         * expmed.c (default_target_costs): New variable.
19361         (this_target_costs): New conditional variable.
19362         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
19363         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
19364         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
19365         * target-globals.h (this_target_expmed): Declare.
19366         (target_globals): Add a expmed field.
19367         (restore_target_globals): Copy the expmed field to
19368         this_target_expmed.
19369         * target-globals.c: Include expmed.h.
19370         (default_target_globals): Initialize the expmed field.
19371         (save_target_globals): Likewise.
19372
19373 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19374
19375         * Makefile.in (target-globals.o): Depend on reload.h.
19376         * reload.h (target_reload): New structure.
19377         (default_target_reload): Declare.
19378         (this_target_reload): Declare as a variable or define as a macro.
19379         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
19380         * reload1.c (default_target_reload): New variable
19381         (this_target_reload): New conditional variable.
19382         (indirect_symref_ok, double_reg_address_ok): Delete.
19383         (spill_indirect_levels): Redefine as a macro.
19384         * target-globals.h (this_target_reload): Declare.
19385         (target_globals): Add a reload field.
19386         (restore_target_globals): Copy the reload field to
19387         this_target_reload.
19388         * target-globals.c: Include hard-reg-set.h.
19389         (default_target_globals): Initialize the reload field.
19390         (save_target_globals): Likewise.
19391
19392 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19393
19394         * rtl.h (target_rtl): Add x_static_reg_base_value.
19395         * alias.c (static_reg_base_value): Redefine as a macro.
19396
19397 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19398
19399         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
19400         (GTFILES): Remove reginfo.c.
19401         * rtl.h (target_rtl): Add x_top_of_stack.
19402         (top_of_stack): New macro.
19403         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
19404         (top_of_stack): Delete.
19405
19406 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19407
19408         * regs.h (target_regs): Add x_hard_regs_of_mode,
19409         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
19410         x_may_move_out_cost and x_last_mode_for_init_move_cost.
19411         (have_regs_of_mode, contains_reg_of_mode, move_cost)
19412         (may_move_in_cost, may_move_out_cost): Redefine as macros.
19413         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
19414         (may_move_in_cost, may_move_out_cost): Delete.
19415         (last_mode_for_init_move_cost): Redefine as a macro.
19416
19417 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19418
19419         * hard-reg-set.h (target_hard_regs): New structure.
19420         (default_target_hard_regs): Declare.
19421         (this_target_hard_regs): Declare as a variable or define as a macro.
19422         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
19423         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
19424         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
19425         (reg_class_size, reg_class_subclasses, reg_class_subunion)
19426         (reg_class_superunion, reg_names): Redefine as macros.
19427         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
19428         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
19429         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
19430         (reg_class_contents, reg_class_size, reg_class_subclasses)
19431         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
19432         (default_target_hard_regs): New variable
19433         (this_target_hard_regs, initial_call_really_used_regs)
19434         (initial_reg_alloc_order): New conditional variables.
19435         (initial_reg_names): New variable.
19436         (init_reg_sets): Assert that initial_call_really_used_regs,
19437         initial_reg_alloc_order and initial_reg_names
19438         are all the same size as their variable counterparts.  Use them to
19439         initialize those counterparts.
19440         * target-globals.h (this_target_hard_regs): Declare.
19441         (target_globals): Add a hard_regs field.
19442         (restore_target_globals): Copy the hard_regs field to
19443         this_target_hard_regs.
19444         * target-globals.c: Include hard-reg-set.h.
19445         (default_target_globals): Initialize the hard_regs field.
19446         (save_target_globals): Likewise.
19447
19448 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19449
19450         * Makefile.in (target-globals.o): Depend on $(RTL_H).
19451         * rtl.h (target_rtl): New structure.
19452         (default_target_rtl): Declare.
19453         (this_target_rtl): Declare as a variable or define as a macro.
19454         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
19455         Redefine as macros.
19456         * emit-rtl.c (default_target_rtl): New variable.
19457         (this_target_rtl): New conditional variable.
19458         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
19459         (return_address_pointer_rtx): Delete.
19460         (initial_regno_reg_rtx): New macro.
19461         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
19462         (init_emit_regs): Likewise.
19463         * target-globals.h (this_target_rtl): Declare.
19464         (target_globals): Add a rtl field.
19465         (restore_target_globals): Copy the rtl field to this_target_rtl.
19466         * target-globals.c: Include rtl.h.
19467         (default_target_globals): Initialize the rtl field.
19468         (save_target_globals): Likewise.
19469
19470 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19471
19472         * Makefile.in (target-globals.o): Depend on $(REGS_H).
19473         * regs.h (target_reg_modes): New structure.
19474         (default_target_reg_modes): Declare.
19475         (this_target_reg_modes): Declare as a variable or define as a macro.
19476         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
19477         * reginfo.c (default_target_reg_modes): New variable.
19478         (this_target_reg_modes): New conditional variable.
19479         (hard_regno_nregs, reg_raw_mode): Delete.
19480         * target-globals.h (this_target_regs): Declare.
19481         (target_globals): Add a regs field.
19482         (restore_target_globals): Copy the regs field to this_target_regs.
19483         * target-globals.c: Include regs.h.
19484         (default_target_globals): Initialize the regs field.
19485         (save_target_globals): Likewise.
19486
19487 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19488
19489         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
19490         * doc/tm.texi: Regenerate.
19491         * Makefile.in (OBJS-common): Add target-globals.o.
19492         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
19493         and target-globals.h.
19494         (target-globals.o): New rule.
19495         (GTFILES): Include $(srcdir)/target-globals.h.
19496         * defaults.h (SWITCHABLE_TARGET): Define.
19497         * gengtype.c (open_base_files): Add target-globals.h to the
19498         list of includes.
19499         * target-globals.h: New file.
19500         * target-globals.c: Likewise.
19501
19502         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
19503         * flags.h (target_flag_state): New structure.
19504         (default_target_flag_state): Declare.
19505         (this_target_flag_state): Declare as a variable or define as a macro.
19506         (align_loops_log): Redefine as a macro.
19507         (align_loops_max_skip, align_jumps_log): Likewise.
19508         (align_jumps_max_skip, align_labels_log): Likewise.
19509         (align_labels_max_skip, align_functions_log): Likewise.
19510         * toplev.c (default_target_flag_state): New variable.
19511         (this_target_flag_state): New conditional variable.
19512         (align_loops_log): Delete.
19513         (align_loops_max_skip, align_jumps_log): Likewise.
19514         (align_jumps_max_skip, align_labels_log): Likewise.
19515         (align_labels_max_skip, align_functions_log): Likewise.
19516         * target-globals.h (this_target_flag_state): Declare.
19517         (target_globals): Add a flag_state field.
19518         (restore_target_globals): Copy the flag_state field to
19519         this_target_flag_state.
19520         * target-globals.c: Include flags.h.
19521         (default_target_globals): Initialize the flag_state field.
19522         (save_target_globals): Likewise.
19523
19524 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19525
19526         * postreload.c (reg_symbol_ref[]): New.
19527         (move2add_use_add2_insn): New.
19528         (move2add_use_add3_insn): New.
19529         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
19530         (move2add_note_store): Likewise.
19531
19532 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
19533
19534         PR rtl-optimization/44752
19535         * genautomata.c (main): Don't emit an empty file even if there
19536         is no automaton.
19537
19538 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19539
19540         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
19541         ix86_solaris_return_in_memory.
19542         * config/i386-protos.h: Reflect this.
19543         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19544         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19545         Move ...
19546         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
19547
19548 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19549
19550         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
19551         align the stack when it's going to be saved.
19552
19553 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19554
19555         PR pch/14940
19556         * config/host-solaris.c (mmap_fixed): New function.
19557         (sol_gt_pch_get_address): Use it.
19558         (sol_gt_pch_use_address): Likewise.
19559
19560 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19561
19562         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19563         pentiumpro on Solaris 8 and 9/x86.
19564         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
19565         Document SSE/SSE2 support.
19566         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
19567
19568 2010-07-12  Andi Kleen  <ak@linux.intel.com>
19569
19570         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
19571         instead of gcc_assert to print better error message for multiple
19572         prevailing defs.
19573
19574 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
19575
19576         * config/i386/i386.c (ix86_asm_output_function_label): Change format
19577         string placeholder from 0x%x to %#x.
19578         (ix86_code_end): Use putc to output '\n'.
19579         (ix86_print_operand) <case ';'>: Use putc to output ';'.
19580
19581 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
19582
19583         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
19584         in directive -export.
19585
19586 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
19587
19588         * reginfo.h (reg_classes_intersect_p): Change arguments type to
19589         reg_class_t.
19590         * rtl.h (reg_classes_intersect_p): Adjust prototype.
19591
19592         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19593         Remove macros.
19594         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
19595         rs6000_memory_move_cost): Remove
19596         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
19597         TARGET_MEMORY_MOVE_COST): Define.
19598         (rs6000_register_move_cost): Make static. Change arguments type from
19599         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
19600         (rs6000_memory_move_cost): Make static. Change arguments type from
19601         'enum reg_class' to reg_class_t.
19602
19603 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
19604
19605         PR middle-end/42505
19606         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
19607         lookup code into....
19608         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
19609         new functions.
19610         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
19611         * cfgloopanal.c (target_clobbered_regs): Define.
19612         (init_set_costs): Initialize target_clobbered_regs.
19613         (estimate_reg_pressure_cost): Add call_p argument.  When true,
19614         adjust the number of available registers to exclude the
19615         call-clobbered registers.
19616         * cfgloop.h (target_clobbered_regs): Declare.
19617         (estimate_reg_pressure_cost): Adjust declaration.
19618         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
19619         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
19620         (determine_set_costs): Dump target_clobbered_regs.
19621         (loop_body_includes_call): New function.
19622         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
19623         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
19624         call_p flag through.
19625         (best_gain_for_invariant): Likewise.
19626         (find_invariants_to_move): Likewise.
19627         (move_single_loop_invariants): Likewise, using already-computed
19628         has_call field.
19629
19630 2010-07-10  Richard Guenther  <rguenther@suse.de>
19631             Joern Rennecke  <joern.rennecke@embecosm.com>
19632
19633         PR debug/44832
19634         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
19635         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
19636         unless they have DECL_IGNORED_P set.
19637
19638 2010-07-10  Richard Guenther  <rguenther@suse.de>
19639
19640         PR lto/44889
19641         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
19642         helper function.
19643         (gimple_types_compatible_p): Similar to pointed-to
19644         types allow and merge a mix of complete and incomplete aggregate.
19645         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
19646         (iterative_hash_gimple_type): Adjust for that.
19647
19648 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
19649
19650         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
19651
19652 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
19653
19654         PR objc/44140
19655         * config/darwin.c (output_objc_section_asm_op): Save and restore
19656         section when outputting ObjC section list.
19657
19658 2010-07-09  Jan Hubicka  <jh@suse.cz>
19659
19660         * lto-streamer-out.c (produce_symtab): Do not write alias
19661         cgraph/varpool nodes.
19662
19663 2010-07-09  Jan Hubicka  <jh@suse.cz>
19664
19665         * tree-inline.c (declare_return_variable): Fix ICE while
19666         inlining DECL_BY_VALUE function not in SSA form
19667
19668 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
19669
19670         PR tree-optimization/44576
19671         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
19672         New.  Pull out from is_loop_prefetching_profitable to implement
19673         the trip count to ahead ratio heuristic.
19674         (mem_ref_count_reasonable_p): New.  Pull out from
19675         is_loop_prefetching_profitable to implement the instruction to
19676         memory reference ratio heuristic.  Also consider not reasonable if
19677         the memory reference count is above a threshold (to avoid
19678         explosive compilation time.
19679         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
19680         is_loop_prefetching_profitable to implement the instruction to
19681         prefetch ratio heuristic.
19682         (is_loop_prefetching_profitable): Removed.
19683         (loop_prefetch_arrays): Distribute the cost analysis across the
19684         function to allow early exit of the prefetch analysis.
19685         is_loop_prefetching_profitable is splitted into three functions,
19686         with each one called as early as possible.
19687         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
19688         number of memory references in a loop is considered too many.
19689
19690 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19691
19692         * reload.c (find_reloads): Don't clear badop if we have a winreg
19693         alternative, but not win, and the class only has fixed regs.
19694         * hard-reg-set.h (class_only_fixed_regs): Declare.
19695         * reginfo.c (class_only_fixed_regs): New array.
19696         (init_reg_sets_1): Initialize it.
19697         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
19698         discourage alternatives using the stack pointer.
19699
19700         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
19701
19702         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
19703
19704         * config/arm/arm.md (cbranchqi4): Fix array size.
19705         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
19706         calculating length.
19707
19708 2010-07-09  Richard Guenther  <rguenther@suse.de>
19709
19710         * gimple.c (struct type_fixup_s): New struct and VEC type.
19711         (gimple_register_type_fixups): New static global.
19712         (gimple_queue_type_fixup): New function.
19713         (gimple_types_compatible_p): Queue type fixups instead of
19714         applying them here.
19715         (gimple_register_type): Apply queued fixups for the
19716         canonical type.  Empty the type fixup queue.
19717
19718 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19719
19720         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
19721         * configure: Regenerate.
19722         * config.in: Ditto.
19723
19724 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19725             Denys Vlasenko  <dvlasenk@redhat.com>
19726             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19727
19728         PR tree-optimization/28632
19729         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
19730         (extract_range_from_binary_expr): Further optimize
19731         BIT_AND_EXPR and BIT_IOR_EXPR.
19732
19733 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
19734
19735         * tree-if-conv.c (fold_or_predicates): New.
19736         (add_to_predicate_list): Call it.
19737
19738 2010-07-09  Richard Guenther  <rguenther@suse.de>
19739
19740         PR middle-end/44890
19741         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
19742         if base is a pointer.
19743         * tree-cfg.c (verify_expr): Update MEM_REF checking.
19744
19745 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19746
19747         PR target/44877
19748         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
19749         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
19750         builtin mask for load/store builtins.
19751
19752 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19753
19754         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
19755         for "lock addl".
19756         * configure: Regenerate.
19757         * config/i386/i386.c (ix86_print_operand) <case ';'>:
19758         Remove TARGET_MACHO.
19759
19760 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
19761
19762         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
19763         default ISA flags.
19764         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
19765
19766 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
19767
19768         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
19769
19770 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19771
19772         * config/picochip/picochip.md (commsTestPort): Emit more
19773         efficient sequence for tstport instruction.
19774
19775 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19776
19777         * config/i386/i386.c (ix86_veclib_handler): Make static.
19778
19779 2010-07-09  Richard Guenther  <rguenther@suse.de>
19780
19781         PR tree-optimization/44852
19782         * tree-ssa-alias.c: Include toplev.h for exact_log2.
19783         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
19784         in MEM_REF.
19785         (indirect_refs_may_alias_p): Likewise.
19786         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
19787
19788 2010-07-09  Richard Guenther  <rguenther@suse.de>
19789
19790         PR tree-optimization/44882
19791         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
19792         sets do conflict.
19793         (vectorizable_load): Likewise.
19794
19795 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19796
19797         PR target/40657
19798         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
19799         All callers changed.
19800         Handle the case when we're called for the epilogue.
19801         (thumb_unexpanded_epilogue): Use it.
19802         (thumb1_expand_epilogue): Likewise.
19803
19804 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19805
19806         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
19807         both ranges are range_int_cst_p with non-negative minimum,
19808         try harder to derive smaller range.
19809
19810 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19811
19812         * genrecog.c: Include diagnostic-core.h before toplev.h.
19813         * genoutput.c: Likewise.
19814         * genextract.c: Likewise.
19815         * genautomata.c: Likewise.
19816         * genemit.c: Likewise.
19817         * genpeep.c: Likewise.
19818         * genattrtab.c: Likewise.
19819         * genconditions.c: Likewise.
19820         * genpreds.c: Likewise.
19821
19822 2010-07-08  Andi Kleen  <ak@linux.intel.com>
19823
19824         * lto-section-in.c (lto_section_name): Add missing comma.
19825
19826 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
19827
19828         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
19829         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
19830         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
19831         (ia64_override_options): Rename to...
19832         (ia64_option_override): ... this one. Make static.
19833
19834 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19835
19836         PR middle-end/44843
19837         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
19838         pointed-to type of the offset in a MEM_REF to compute the alignment.
19839
19840 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
19841
19842         * final.c (final_scan_insn): Replace
19843         TARGET_UNWIND_INFO macro check by unwind_emit
19844         hook NULL check.
19845         * targhooks.c (default_unwind_emit): Removed.
19846         * targhooks.h (default_unwind_emit): Likewise.
19847         * target.def (unwind_emit): Set default value to NULL.
19848
19849         * config/i386/i386-protos.h (ix86_asm_output_function_label):
19850         New prototype.
19851         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
19852         for NULL fntype argument and allow 64-bit targets.
19853         (ix86_asm_output_function_label): New function.
19854         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
19855         (ix86_handle_fndecl_attribute): Likewise.
19856         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
19857         * doc/doc/tm.texi: Regenerated.
19858         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
19859         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
19860         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
19861         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
19862         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19863         * config/elfos.h: Likewise.
19864         * config/i386/cygming.h: Likewise.
19865         * config/netbsd-aout.h: Likewise.
19866         * config/openbsd.h: Likewise.
19867         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
19868         by ix86_asm_output_function_label function call.
19869         * varasm.c (assemble_start_function): Use
19870         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19871
19872 2010-07-08  Jan Hubicka  <jh@suse.cz>
19873
19874         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
19875         New function.
19876         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
19877         Declare.
19878         * ipa-cp.c (ipcp_estimate_growth): Use it.
19879         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
19880         Likewise.
19881
19882 2010-07-08  Jan Hubicka  <jh@suse.cz>
19883
19884         * tree-inline.c (declare_return_variable): Allocate annotation for new
19885         temporary.
19886
19887 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19888
19889         PR tree-optimization/44710
19890         * tree-if-conv.c (parse_predicate): New.
19891         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
19892         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
19893
19894 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19895
19896         * common.opt (ftree-loop-if-convert): New flag.
19897         * doc/invoke.texi (ftree-loop-if-convert): Documented.
19898         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
19899         when flag_tree_loop_if_convert is set.
19900
19901 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
19902
19903         * config/i386/i386.c: Use short syntax for function calls
19904         through function pointers.
19905         * config/i386/i386.md: Ditto.
19906
19907 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19908
19909         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
19910
19911 2010-07-08  Richard Guenther  <rguenther@suse.de>
19912
19913         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
19914         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
19915
19916 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
19917
19918         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
19919         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
19920         (loc_list_from_tree): Likewise.
19921         (output_loc_operands): Handle outputting DW_OP_const[48]u
19922         with loc->dtprel set.
19923         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
19924
19925 2010-07-08  Jan Hubicka  <jh@suse.cz>
19926
19927         * ipa.c: Include pointer-set.h
19928         (cgraph_externally_visible_p): New attribute ALIASED;
19929         when in LTO, hidden symbols are local unless they are aliased.
19930         (function_and_variable_visibility): Compute aliased nodes;
19931         handle LTO and hidden symbol on functions and vars.
19932         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
19933         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
19934
19935 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19936
19937         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19938         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19939         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19940         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19941         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19942         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
19943         (ix86_gen_probe_stack_range): Likewise.
19944         (override_options): Set them.
19945         (ix86_target_stack_probe): New function.
19946         (ix86_compute_frame_layout): Force use of push instructions to
19947         save registers if stack checking with probes is enabled.
19948         (get_scratch_register_on_entry): New function.
19949         (release_scratch_register_on_entry): Likewise.
19950         (ix86_adjust_stack_and_probe): Likewise.
19951         (output_adjust_stack_and_probe): Likewise.
19952         (ix86_emit_probe_stack_range): Likewise.
19953         (output_probe_stack_range): Likewise.
19954         (ix86_expand_prologue): Emit stack checking code if static built-in
19955         stack checking is enabled.
19956         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
19957         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
19958         (output_adjust_stack_and_probe): Likewise.
19959         (output_probe_stack_range): Likewise.
19960         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19961         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
19962         TARGET_STACK_PROBE.
19963         (allocate_stack_worker_64): Likewise.
19964         (allocate_stack): Likewise.
19965         (adjust_stack_and_probe): New insn.
19966         (probe_stack_range): Likewise.
19967
19968 2010-07-08  Richard Guenther  <rguenther@suse.de>
19969
19970         PR tree-optimization/44831
19971         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
19972         a MEM_REF preserving TBAA info of the original dereference.
19973         Dereference the original pointer if the address is not invariant.
19974         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
19975         at least one invariant address that we are going to dereference.
19976
19977 2010-07-08  Richard Guenther  <rguenther@suse.de>
19978
19979         PR tree-optimization/44861
19980         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
19981         information when building MEM_REFs.
19982         (vectorizable_load): Likewise.
19983         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
19984
19985 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19986
19987         * config/sol2-c.c: Do not include diagnostic-core.h.
19988
19989 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19990
19991         PR bootstrap/44768
19992         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
19993         with respect to current_function_decl. Pass decl of the function.
19994         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
19995         * ipa-inline.c (compute_inline_parameters): Pass decl to
19996         estimated_stack_frame_size.
19997
19998 2010-07-08  Richard Guenther  <rguenther@suse.de>
19999
20000         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20001         New function.
20002         (valueize_refs): Call it.
20003
20004 2010-07-08  Richard Guenther  <rguenther@suse.de>
20005
20006         PR rtl-optimization/44838
20007         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20008         SSA form do not use pointer equivalence.
20009
20010 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20011
20012         * dwarf2out.c (AT_linkage_name): Delete.
20013         (add_linkage_attr): New function.
20014         (add_linkage_name): Call it to emit the linkage attribute.
20015         (dwarf2out_finish): Likewise.
20016         (move_linkage_attr): Explicitly accept both attribute variants.
20017
20018 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20019
20020         * toplev.h: Do not include diagnostic-core.h.
20021         Include diagnostic-core.h in every file that includes toplev.h.
20022         * c-tree.h: Do not include toplev.h.
20023         * pretty-print.h: Update comment.
20024         * Makefile.in: Update dependencies.
20025         * alias.c: Include diagnostic-core.h in every file that includes
20026         toplev.h.
20027         * attribs.c: Likewise.
20028         * auto-inc-dec.c: Likewise.
20029         * bb-reorder.c: Likewise.
20030         * bt-load.c: Likewise.
20031         * caller-save.c: Likewise.
20032         * calls.c: Likewise.
20033         * cfg.c: Likewise.
20034         * cfganal.c: Likewise.
20035         * cfgbuild.c: Likewise.
20036         * cfgcleanup.c: Likewise.
20037         * cfghooks.c: Likewise.
20038         * cfgloop.c: Likewise.
20039         * combine.c: Likewise.
20040         * config/alpha/alpha.c: Likewise.
20041         * config/arc/arc.c: Likewise.
20042         * config/arm/arm.c: Likewise.
20043         * config/arm/pe.c: Likewise.
20044         * config/avr/avr.c: Likewise.
20045         * config/bfin/bfin.c: Likewise.
20046         * config/cris/cris.c: Likewise.
20047         * config/crx/crx.c: Likewise.
20048         * config/darwin-c.c: Likewise.
20049         * config/darwin.c: Likewise.
20050         * config/fr30/fr30.c: Likewise.
20051         * config/frv/frv.c: Likewise.
20052         * config/h8300/h8300.c: Likewise.
20053         * config/host-darwin.c: Likewise.
20054         * config/i386/i386.c: Likewise.
20055         * config/i386/netware.c: Likewise.
20056         * config/i386/nwld.c: Likewise.
20057         * config/i386/winnt-cxx.c: Likewise.
20058         * config/i386/winnt-stubs.c: Likewise.
20059         * config/i386/winnt.c: Likewise.
20060         * config/ia64/ia64-c.c: Likewise.
20061         * config/ia64/ia64.c: Likewise.
20062         * config/iq2000/iq2000.c: Likewise.
20063         * config/lm32/lm32.c: Likewise.
20064         * config/m32c/m32c-pragma.c: Likewise.
20065         * config/m32c/m32c.c: Likewise.
20066         * config/m32r/m32r.c: Likewise.
20067         * config/m68hc11/m68hc11.c: Likewise.
20068         * config/m68k/m68k.c: Likewise.
20069         * config/mcore/mcore.c: Likewise.
20070         * config/mep/mep-pragma.c: Likewise.
20071         * config/mep/mep.c: Likewise.
20072         * config/mmix/mmix.c: Likewise.
20073         * config/mn10300/mn10300.c: Likewise.
20074         * config/moxie/moxie.c: Likewise.
20075         * config/pa/pa.c: Likewise.
20076         * config/pdp11/pdp11.c: Likewise.
20077         * config/picochip/picochip.c: Likewise.
20078         * config/rs6000/rs6000-c.c: Likewise.
20079         * config/rs6000/rs6000.c: Likewise.
20080         * config/rx/rx.c: Likewise.
20081         * config/s390/s390.c: Likewise.
20082         * config/score/score.c: Likewise.
20083         * config/score/score3.c: Likewise.
20084         * config/score/score7.c: Likewise.
20085         * config/sh/sh.c: Likewise.
20086         * config/sh/symbian-base.c: Likewise.
20087         * config/sh/symbian-c.c: Likewise.
20088         * config/sh/symbian-cxx.c: Likewise.
20089         * config/sol2-c.c: Likewise.
20090         * config/sol2.c: Likewise.
20091         * config/sparc/sparc.c: Likewise.
20092         * config/spu/spu.c: Likewise.
20093         * config/stormy16/stormy16.c: Likewise.
20094         * config/v850/v850-c.c: Likewise.
20095         * config/v850/v850.c: Likewise.
20096         * config/vax/vax.c: Likewise.
20097         * config/vxworks.c: Likewise.
20098         * config/xtensa/xtensa.c: Likewise.
20099         * convert.c: Likewise.
20100         * cse.c: Likewise.
20101         * cselib.c: Likewise.
20102         * dbgcnt.c: Likewise.
20103         * dbxout.c: Likewise.
20104         * ddg.c: Likewise.
20105         * dominance.c: Likewise.
20106         * emit-rtl.c: Likewise.
20107         * explow.c: Likewise.
20108         * expmed.c: Likewise.
20109         * fixed-value.c: Likewise.
20110         * fold-const.c: Likewise.
20111         * fwprop.c: Likewise.
20112         * gcse.c: Likewise.
20113         * ggc-common.c: Likewise.
20114         * ggc-page.c: Likewise.
20115         * ggc-zone.c: Likewise.
20116         * gimple-low.c: Likewise.
20117         * gimplify.c: Likewise.
20118         * graph.c: Likewise.
20119         * haifa-sched.c: Likewise.
20120         * ifcvt.c: Likewise.
20121         * implicit-zee.c: Likewise.
20122         * integrate.c: Likewise.
20123         * ira-build.c: Likewise.
20124         * ira-color.c: Likewise.
20125         * ira-conflicts.c: Likewise.
20126         * ira-costs.c: Likewise.
20127         * ira-lives.c: Likewise.
20128         * ira.c: Likewise.
20129         * lists.c: Likewise.
20130         * loop-doloop.c: Likewise.
20131         * loop-iv.c: Likewise.
20132         * lto-opts.c: Likewise.
20133         * lto-symtab.c: Likewise.
20134         * main.c: Likewise.
20135         * modulo-sched.c: Likewise.
20136         * optabs.c: Likewise.
20137         * params.c: Likewise.
20138         * plugin.c: Likewise.
20139         * postreload-gcse.c: Likewise.
20140         * postreload.c: Likewise.
20141         * predict.c: Likewise.
20142         * profile.c: Likewise.
20143         * real.c: Likewise.
20144         * regcprop.c: Likewise.
20145         * reginfo.c: Likewise.
20146         * regmove.c: Likewise.
20147         * reorg.c: Likewise.
20148         * resource.c: Likewise.
20149         * rtl.c: Likewise.
20150         * rtlanal.c: Likewise.
20151         * sched-deps.c: Likewise.
20152         * sched-ebb.c: Likewise.
20153         * sched-rgn.c: Likewise.
20154         * sdbout.c: Likewise.
20155         * sel-sched-dump.c: Likewise.
20156         * sel-sched-ir.c: Likewise.
20157         * simplify-rtx.c: Likewise.
20158         * stmt.c: Likewise.
20159         * stor-layout.c: Likewise.
20160         * store-motion.c: Likewise.
20161         * targhooks.c: Likewise.
20162         * tree-cfg.c: Likewise.
20163         * tree-cfgcleanup.c: Likewise.
20164         * tree-dump.c: Likewise.
20165         * tree-eh.c: Likewise.
20166         * tree-inline.c: Likewise.
20167         * tree-nomudflap.c: Likewise.
20168         * tree-object-size.c: Likewise.
20169         * tree-optimize.c: Likewise.
20170         * tree-outof-ssa.c: Likewise.
20171         * tree-phinodes.c: Likewise.
20172         * tree-profile.c: Likewise.
20173         * tree-ssa-ccp.c: Likewise.
20174         * tree-ssa-coalesce.c: Likewise.
20175         * tree-ssa-live.c: Likewise.
20176         * tree-ssa-loop-niter.c: Likewise.
20177         * tree-ssa-loop-prefetch.c: Likewise.
20178         * tree-ssa-loop.c: Likewise.
20179         * tree-ssa-structalias.c: Likewise.
20180         * tree-ssa-uninit.c: Likewise.
20181         * tree-ssa.c: Likewise.
20182         * tree-vect-data-refs.c: Likewise.
20183         * tree-vect-loop-manip.c: Likewise.
20184         * tree-vect-loop.c: Likewise.
20185         * tree-vect-patterns.c: Likewise.
20186         * tree-vect-stmts.c: Likewise.
20187         * tree-vrp.c: Likewise.
20188         * varasm.c: Likewise.
20189         * vec.c: Likewise.
20190         * web.c: Likewise.
20191         * xcoffout.c: Likewise.
20192
20193 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
20194
20195         * gengtype.c (write_field_root): New function.
20196         (write_root): Use it.
20197
20198 2010-07-07  Wei Guozhi  <carrot@google.com>
20199
20200         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20201         of lowest bits to lshift/compare): Add a missing line.
20202
20203 2010-07-07  Wei Guozhi  <carrot@google.com>
20204
20205         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20206         of lowest bits to lshift/compare): New.
20207
20208 2010-07-07  Tom Tromey  <tromey@redhat.com>
20209
20210         * doc/tm.texi: Update.
20211         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
20212         Add @hook.
20213         * target.def (want_debug_pub_sections): New hook.
20214         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
20215         * dwarf2out.c (add_pubname_string): Check
20216         targetm.want_debug_pub_sections.
20217         (add_pubname): Likewise.
20218         (add_pubtype): Likewise.
20219
20220 2010-07-07  Jie Zhang  <jie@codesourcery.com>
20221
20222         * genautomata.c (output_automata_list_min_issue_delay_code):
20223         Correctly decompress min_issue_delay.
20224
20225 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20226
20227         PR rtl-optimization/44404
20228         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
20229         possible, use reg_overlap_mentioned_p instead.
20230
20231 2010-07-07  Duncan Sands  <baldrick@free.fr>
20232
20233         PR middle-end/41355
20234         * tree.c (build_function_type_skip_args): Copy the original type using
20235         build_distinct_type_copy rather than copy_node.
20236
20237 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20238
20239         PR target/44850
20240         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
20241         revision 161876.
20242         (ix86_expand_prologue): Likewise.
20243         (ix86_handle_fndecl_attribute): Likewise.
20244         (ix86_asm_declare_function_name): Likewise.
20245         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20246         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20247         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
20248         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
20249         * doc/extend.texi: Likewise.
20250
20251 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20252
20253         PR target/44844
20254         * config/i386/i386.md (rdrand<mode>): Changed to expand to
20255         retry if the carry flag isn't valid.
20256         (rdrand<mode>_1): New.
20257
20258 2010-07-07  Richard Guenther  <rguenther@suse.de>
20259
20260         PR middle-end/44790
20261         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
20262         for expanding the constant offset for MEM_REFs.
20263
20264 2010-07-07  Richard Guenther  <rguenther@suse.de>
20265
20266         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
20267         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
20268         * gimple.h (is_gimple_operand): Remove.
20269         * gimple.c (is_gimple_operand): Likewise.
20270         (walk_gimple_op): Fix wi->val_only setting for calls.
20271         * tree-cfg.c (verify_gimple_call): Fix argument validation.
20272         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
20273         invalid gimple calls.
20274
20275 2010-07-06  Jan Hubicka  <jh@suse.cz>
20276
20277         * lto-cgraph.c (output_cgraph): Add missing declaration.
20278
20279 2010-07-06  Jan Hubicka  <jh@suse.cz>
20280
20281         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
20282         partition.
20283
20284 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
20285
20286         * doc/gimple.texi (GIMPLE_DEBUG): Document.
20287         * doc/rtl.texi (Debug Information): New node.
20288         (NOTE_INSN_VAR_LOCATION): Document.
20289         (debug_insn): Likewise.
20290         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
20291
20292 2010-07-07  Jan Hubicka  <jh@suse.cz>
20293
20294         With parts by Richard Guenther.
20295
20296         PR middle-end/44813
20297         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
20298         for functions passed by reference.
20299         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
20300         in memory when passed by reference.
20301         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
20302         beggining.
20303         * ipa-split.c (split_function): Cleanup way return value is passed;
20304         handle SSA DECL_BY_REFERENCE retvals.
20305         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
20306         DECL_BY_REFERENCE is set.
20307         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
20308         find_what_p_points_to): Handle RESULT_DECL.
20309         * tree-inline.c (declare_return_variable): Get new entry_block argument;
20310         when passing by reference ensure that RESULT_DECL is gimple_val.
20311         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
20312         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
20313
20314 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20315
20316         PR rtl-optimization/44787
20317         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
20318         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
20319
20320 2010-07-06  Jan Hubicka  <jh@suse.cz>
20321
20322         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
20323         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
20324         with body can prevail.
20325         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
20326         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
20327         * cgraph.c (cgraph_get_node_or_alias): New function.
20328         * cgraph.h (cgraph_get_node_or_alias): Declare.
20329
20330 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
20331
20332         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
20333         support.
20334         (ix86_expand_prologue): Likewise.
20335         (ix86_handle_fndecl_attribute): Likewise.
20336         (ix86_asm_declare_function_name): New function for
20337         ASM_DECLARE_FUNCTION_NAME.
20338         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
20339         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
20340         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
20341         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
20342         * doc/extend.texi: Adjust documentation about ms_hook_prologue
20343         attribute.
20344
20345 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20346
20347         * config/i386/i386.md (immediate_operand): New mode attribute.
20348
20349         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
20350         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
20351         using P mode iterator.
20352         (pro_epilogue_adjust_stack_di_2): Rename from
20353         pro_epilogue_adjust_stack_rex64_2.
20354
20355         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
20356
20357 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20358
20359         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
20360         through gen_mov_insv_1 function pointer.
20361         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
20362         gen_truncxf<mode>2 through gen_truncxf function pointer.
20363         (remainder<mode>3): Ditto.
20364         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
20365         (allocate_stack): Call gen_allocate_stack_worker_64 or
20366         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
20367         function pointer.
20368         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
20369         function pointer.
20370
20371 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20372
20373         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
20374         operand constraint instead of <r><i>m.
20375
20376 2010-07-06  Richard Guenther  <rguenther@suse.de>
20377
20378         PR middle-end/44828
20379         * convert.c (convert_to_integer): Watch out for overflowing
20380         MULT_EXPR as well.
20381
20382 2010-07-05  Jan Hubicka  <jh@suse.cz>
20383
20384         * lto-streamer.c (write_symbol_vec): Rename to ...
20385         (write_symbol) ... this one; write only symbol given and when
20386         present in cache. Sanity check that what is defined is present
20387         in cgraph/varpool with body/finalized decl.
20388         (write_symbols_of_kind): Remove.
20389         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
20390         pairs to produce symtab.
20391         (produce_asm_for_decls): Update call of produce_symtab; don't do so
20392         when doing WPA streaming.
20393
20394 2010-07-05  Jan Hubicka  <jh@suse.cz>
20395
20396         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
20397         function is still available to fold into.
20398
20399 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20400
20401         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
20402         * function.h (struct_function): Change type of local_decls field
20403         to a VEC.
20404         (add_local_decl): New function.
20405         (FOR_EACH_LOCAL_DECL): New macro.
20406         * cfgexpand.c (init_vars_expansion): Adjust for new type of
20407         cfun->local_decls.
20408         (estimated_stack_frame_size): Likewise.
20409         (expand_used_vars): Likewise.
20410         * cgraphbuild.c (build_cgraph_edges): Likewise.
20411         * function.c (instantiate_decls_1): Likewise.
20412         * ipa-struct-reorg.c (build_data_structure): Likewise.
20413         * ipa-type-escape.c (analyze_function): Likewise.
20414         * lto-streamer-in.c (input_function): Likewise.
20415         * lto-streamer-out.c (output_function): Likewise.
20416         * tree-ssa-live.c (remove_unused_locals): Likewise.
20417         * tree.c (free_lang_data_in_decl): Likewise.
20418         (find_decls_types_in_node): Likewise.
20419         * omp-low.c (remove_exit_barrier): Likewise.
20420         (expand_omp_taskreg): Likewise.
20421         (list2chain): Rename to...
20422         (vec2chain): ...this.  Adjust.
20423         * cgraphunit.c (assemble_thunk): Call add_local_decl.
20424         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
20425         * gimple-low.c (record_vars_into): Likewise.
20426         * tree-inline.c (remap_decls): Likewise.
20427         (declare_return_variable): Likewise.
20428         (declare_inline_vars): Likewise.
20429         (copy_forbidden): Adjust for new type of cfun->local_decls.
20430         (add_local_variables): New function.
20431         (expand_call_inline): Call it.
20432         (tree_function_versioning): Likewise.
20433
20434 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
20435
20436         AVX Programming Reference (June, 2010)
20437         * config/i386/cpuid.h (bit_F16C): New.
20438         (bit_RDRND): Likewise.
20439         (bit_FSGSBASE): Likewise.
20440
20441         * config/i386/i386-builtin-types.def: Add
20442         "DEF_FUNCTION_TYPE (UINT16)", function types for
20443         float16 <-> float conversions and
20444         "DEF_FUNCTION_TYPE (VOID, UINT64)".
20445
20446         * config/i386/i386-c.c (ix86_target_macros_internal): Support
20447         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
20448         OPTION_MASK_ISA_F16C.
20449
20450         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
20451         (OPTION_MASK_ISA_RDRND_SET): Likewise.
20452         (OPTION_MASK_ISA_F16C_SET): Likewise.
20453         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
20454         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
20455         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
20456         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
20457         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
20458         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
20459         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
20460         (override_options): Handle them.
20461         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
20462         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
20463         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
20464         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
20465         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
20466         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
20467         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
20468         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
20469         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
20470         (bdesc_args): Likewise.
20471         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
20472         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
20473         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
20474         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
20475         Handle non-memory store.
20476
20477         * config/i386/i386.h (TARGET_FSGSBASE): New.
20478         (TARGET_RDRND): Likewise.
20479         (TARGET_F12C): Likewise.
20480
20481         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
20482         (UNSPEC_VCVTPS2PH): Likewise.
20483         (UNSPECV_RDFSBASE): Likewise.
20484         (UNSPECV_RDGSBASE): Likewise.
20485         (UNSPECV_WRFSBASE): Likewise.
20486         (UNSPECV_WRGSBASE): Likewise.
20487         (UNSPECV_RDRAND): Likewise.
20488         (rdfsbase<mode>): Likewise.
20489         (rdgsbase<mode>): Likewise.
20490         (wrfsbase<mode>): Likewise.
20491         (wrgsbase<mode>): Likewise.
20492         (rdrand<mode>): Likewise.
20493
20494         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
20495
20496         * config/i386/immintrin.h (_rdrand_u16): New.
20497         (_rdrand_u32): Likewise.
20498         (_readfsbase_u32): Likewise.
20499         (_readfsbase_u64): Likewise.
20500         (_readgsbase_u32): Likewise.
20501         (_readgsbase_u64): Likewise.
20502         (_writefsbase_u32): Likewise.
20503         (_writefsbase_u64): Likewise.
20504         (_writegsbase_u32): Likewise.
20505         (_writegsbase_u64): Likewise.
20506         (_rdrand_u64): Likewise.
20507         (_cvtsh_ss): Likewise.
20508         (_mm_cvtph_ps): Likewise.
20509         (_mm256_cvtph_ps): Likewise.
20510         (_cvtss_sh): Likewise.
20511         (_mm_cvtps_ph): Likewise.
20512         (_mm256_cvtps_ph): Likewise.
20513
20514         * config/i386/sse.md (vcvtph2ps): New.
20515         (*vcvtph2ps_load): Likewise.
20516         (vcvtph2ps256): Likewise.
20517         (vcvtps2ph): Likewise.
20518         (*vcvtps2ph): Likewise.
20519         (*vcvtps2ph_store): Likewise.
20520         (vcvtps2ph256): Likewise.
20521
20522         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
20523
20524         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
20525
20526 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20527
20528         PR bootstrap/44512
20529         * genenums.c (main): Output include of insn-constants.h
20530         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
20531
20532 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
20533
20534         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
20535         (override_options): Initialize it.
20536         (ix86_expand_prologue): Use it.
20537
20538 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20539
20540         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
20541
20542 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20543
20544         * double-int.h (fit_double_type): Remove declaration.
20545         * double-int.c (fit_double_type): Remove function.
20546         * tree.h (int_fits_type_p): Adjust prototype.
20547         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
20548         instead of fit_double_type.
20549         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
20550         instead of fit_double_type and build_int_cst_wide.
20551         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
20552         instead of fit_double_type and build_int_cst_wide.
20553         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
20554         of fit_double_type.
20555
20556 2010-07-05  Jan Hubicka  <jh@suse.cz>
20557
20558         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
20559         in_other_partition.
20560         * lto-cgraph.c (referenced_from_other_partition_p,
20561         reachable_from_other_partition_p): Use in_other_partition flags.
20562         (output_node, output_varpool_node): COMDAT nodes always have private
20563         copies and thus are never used from other partition.
20564
20565 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20566
20567         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20568         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
20569         * config/ia64/ia64.c Include reload.h.
20570         (ia64_memory_move_cost): New function.
20571         (TARGET_MEMORY_MOVE_COST): Define.
20572         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
20573         memory_move_cost.
20574
20575 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
20576
20577         PR middle-end/42505
20578         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
20579         comments about cost model.
20580         (try_add_cand_for):  Add second strategy for choosing initial set
20581         based on original IVs, controlled by ORIGINALP argument.
20582         (get_initial_solution): Add ORIGINALP argument.
20583         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
20584         (find_optimal_iv_set): Try two different strategies for choosing
20585         the IV set, and return the one with lower cost.
20586
20587 2010-07-05  Richard Guenther  <rguenther@suse.de>
20588
20589         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
20590
20591 2010-07-05  Richard Guenther  <rguenther@suse.de>
20592
20593         * tree.c (reference_alias_ptr_type): New function.
20594         * tree.h (reference_alias_ptr_type): Declare.
20595         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
20596         allow non-TARGET_MEM_REF new refs.
20597         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
20598         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
20599         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
20600         (create_mem_ref): Get alias pointer type.  Adjust calls to
20601         create_mem_ref_raw.
20602         (maybe_fold_tmr): Likewise.
20603         * tree-flow.h (create_mem_ref): Adjust prototype.
20604
20605 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20606
20607         PR c++/44808
20608         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
20609         *from_p is VAR_DECL.
20610
20611 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20612
20613         * tree.h (build_call_list): Remove.
20614         * tree.c (build_call_list): Remove.
20615
20616 2010-07-05  Richard Guenther  <rguenther@suse.de>
20617
20618         * double-int.h (double_int_sub): Declare.
20619         * double-int.c (double_int_sub): New function.
20620         * dwarf2out.c (field_byte_offset): Use it.
20621         * fixed-value.c (do_fixed_add): Likewise.
20622         (do_fixed_multiply): Likewise.
20623         (do_fixed_divide): Likewise.
20624         * tree-predcom.c (add_ref_to_chain): Likewise.
20625         (determine_roots_comp): Likewise.
20626         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20627
20628 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20629
20630         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
20631         implementations.
20632
20633 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
20634
20635         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
20636         * arm-modes.def (CC_NOTB): Don't define.
20637         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
20638         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
20639         (LTUGEU): New code_iterator.
20640         (cnb, optab): New corresponding code_attrs.
20641         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
20642         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
20643         using LTUGEU.
20644         (addsi3_carryin_shift_<optab>): Likewise.
20645         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
20646         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
20647         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
20648         (subsi3_compare): Renamed from subsi3_compare0_c.
20649         Change CC_NOTB to CC.
20650         (arm_subsi3_insn): Allow constants for operand 0.
20651         (compare_scc peephole for eq case): New.
20652         (compare_scc splitters): Change CC_NOTB to CC.
20653
20654 2010-07-05  Richard Guenther  <rguenther@suse.de>
20655
20656         * tree-ssa-loop-im.c (for_each_index): Do not handle
20657         ALIGN_INDIRECT_REF.
20658         (gen_lsm_tmp_name): Likewise.
20659         * tree-dump.c (dequeue_and_dump): Likewise.
20660         * tree-pretty-print.c (dump_generic_node): Likewise.
20661         (op_code_prio): Likewise.
20662         (op_symbol_code): Likewise.
20663         * tree.c (staticp): Likewise.
20664         (build1_stat): Likewise.
20665         * tree.h (INDIRECT_REF_P): Likewise.
20666         * fold-const.c (maybe_lvalue_p): Likewise.
20667         (operand_equal_p): Likewise.
20668         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20669         (ao_ref_init_from_vn_reference): Likewise.
20670         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
20671         (find_interesting_uses_address): Likewise.
20672         * dwarf2out.c (loc_list_from_tree): Likewise.
20673         * gimplify.c (gimplify_expr): Likewise.
20674         * tree-eh.c (tree_could_trap_p): Likewise.
20675         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20676         * cfgexpand.c (expand_debug_expr): Likewise.
20677         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20678         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
20679         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
20680         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
20681         * tree-ssa-operands.c (get_expr_operands): Likewise.
20682         * expr.c (safe_from_p): Likewise.
20683         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
20684         * tree-vect-data-refs.c (vect_setup_realignment): Build
20685         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
20686         * tree-vect-stmts.c (vectorizable_load): Likewise.
20687         * tree.def (ALIGN_INDIRECT_REF): Remove.
20688
20689 2010-07-05  Richard Guenther  <rguenther@suse.de>
20690
20691         PR tree-optimization/44784
20692         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
20693         for inserted stmts.
20694         (find_or_generate_expression): Fix SCCVN insertion check.
20695
20696 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20697
20698         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
20699         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20700         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
20701         directives.
20702
20703 2010-07-05  Ira Rosen  <irar@il.ibm.com>
20704
20705         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
20706         statements that are not vectorized.
20707         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
20708         in INSIDE_COST.
20709
20710 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
20711
20712         PR bootstrap/44820
20713         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20714
20715 2010-07-05  Richard Guenther  <rguenther@suse.de>
20716
20717         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
20718         RESULT_DECLs properly.
20719
20720 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20721
20722         PR rtl-optimization/44695
20723         * config/i386/i386.md (extract_code): Removed.
20724         (<u>divmodqi4): Likewise.
20725         (divmodqi4): New.
20726         (udivmodqi4): Likewise.
20727         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
20728         (udivmodhiqi3): Likewise.
20729
20730 2010-07-04  Jan Hubicka  <jh@suse.cz>
20731
20732         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
20733
20734 2010-07-04  Jan Hubicka  <jh@suse.cz>
20735
20736         * cgraphunit.c (init_cgraph): Only initialize dump file if it
20737         is not already initialized.
20738
20739 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20740
20741         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
20742         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
20743         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
20744         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
20745         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
20746         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
20747         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
20748         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
20749         (sync_new_nand_optab): Redefine as macros.
20750         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
20751         Delete.
20752         (direct_optab_index): New enum.
20753         (direct_optab_d): New structure.
20754         (direct_optab): New typedef.
20755         (direct_optab_table): Declare.
20756         (direct_optab_handler, set_direct_optab_handler): New functions.
20757         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20758         (sync_lock_release_optab): New macros.
20759         * optabs.c (direct_optab_table): New variable.
20760         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
20761         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
20762         cmpstr_optab and cmpstrn_optab.
20763         (emit_conditional_move): Likewise for movcc_optab.
20764         (can_conditionally_move_p): Likewise for movcc_gen_code.
20765         (init_insn_codes): Clear direct_optab_table.
20766         (init_optabs): Don't initialize the new "direct optabs" here.
20767         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
20768         vcond_gen_code.
20769         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
20770         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
20771         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
20772         (expand_sync_operation): Likewise other sync_*_optabs.
20773         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
20774         to sync_compare_and_swap_optab.
20775         (expand_sync_lock_test_and_set): Use direct_optab_handler for
20776         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
20777         to the names of both.
20778         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
20779         cmpstr_optab and cmpstrn_optab.
20780         (expand_builtin_lock_release): Likewise sync_lock_release.
20781         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
20782         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
20783         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
20784         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
20785         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
20786         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
20787         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
20788         (sync_lock_test_and_set, sync_lock_release): Delete.
20789         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
20790         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
20791         * genopinit.c (optabs): Use set_direct_optab_handler for the new
20792         macro optabs.
20793         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
20794         the "optab" local variable.  Use direct_optab_handler for optab and
20795         sync_compare_and_swap_optab.
20796         * reload1.c (reload_in_optab, reload_out_optab): Delete.
20797         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
20798         reload_in_optab and reload_out_optab.
20799         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20800         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
20801         * config/pa/pa.c (pa_secondary_reload): Likewise.
20802         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
20803         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
20804         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
20805         (VMSupportsCS8_builtin): Likewise.
20806
20807 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20808
20809         * optabs.h (optab_handlers): Change type of insn_code to int.
20810         (optab_handler, set_optab_handler, convert_optab_handler)
20811         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
20812         CODE_FOR_nothing".
20813         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
20814         (init_insn_codes): Zero both the above arrays.
20815         (init_optabs): Never call init_insn_codes first time around.
20816
20817 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20818
20819         * optabs.h (optab_handler, convert_optab_handler): Turn into
20820         inline functions that return an insn code.
20821         (set_optab_handler, set_convert_optab_handler): New functions.
20822         * builtins.c: Replace optab_handler(X)->insn_code with
20823         optab_handler or set_optab_handler thoughout.  Likewise
20824         convert_optab_handler(X)->insn_code with convert_optab_handler
20825         and set_convert_optab_handler.
20826         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
20827         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
20828         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
20829         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
20830         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
20831         config/spu/spu.c: Likewise.
20832
20833 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20834
20835         PR target/44531
20836         * config.gcc (sh*-*-*): Use regular expressions instead of
20837         the 'i' modifier for sed substitutions.
20838
20839 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
20840
20841         * gimple.c (gimple_body): Comments added.
20842
20843 2010-07-04  Richard Guenther  <rguenther@suse.de>
20844
20845         PR middle-end/44809
20846         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
20847         of an INDIRECT_REF.
20848
20849 2010-07-04  Richard Guenther  <rguenther@suse.de>
20850
20851         PR tree-optimization/44479
20852         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20853         extra SSA name copy statements which preserves points-to
20854         information.
20855         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20856         Copy points-to information for all pointers.  Properly handle
20857         MEM_REFs.
20858         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
20859         copy statements.
20860         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
20861         dependency.
20862
20863 2010-07-04  Richard Guenther  <rguenther@suse.de>
20864
20865         PR middle-end/44785
20866         * tree-inline.c (initialize_inlined_parameters): Do not
20867         re-use pointer-map slot over remap_type call.
20868
20869 2010-07-04  Richard Guenther  <rguenther@suse.de>
20870
20871         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
20872
20873 2010-07-04  Richard Guenther  <rguenther@suse.de>
20874
20875         PR tree-optimization/44656
20876         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
20877         again after value-replacing in the defintions lhs.
20878
20879 2010-07-04  Ira Rosen  <irar@il.ibm.com>
20880             Revital Eres  <eres@il.ibm.com>
20881
20882         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
20883         Document new arguments.
20884         * doc/tm.texi: Regenerate.
20885         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
20886         Handle unaligned store.
20887         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
20888         * target.def (builtin_vectorization_cost): Add new arguments.
20889         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
20890         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
20891         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
20892         (vect_vfa_segment_size): Fix indentation.
20893         * tree-vectorizer.h (struct _vect_peel_info): New.
20894         (struct _vect_peel_extended_info): New.
20895         (struct _loop_vec_info): Add new field for peeling hash table and a
20896         macro for its access.
20897         (VECT_MAX_COST): Define.
20898         (vect_get_load_cost): Declare.
20899         (vect_get_store_cost, vect_get_known_peeling_cost,
20900         vect_get_single_scalar_iteraion_cost): Likewise.
20901         (vect_supportable_dr_alignment): Add new argument.
20902         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
20903         field.
20904         (destroy_loop_vec_info): Free peeling hash table.
20905         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
20906         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
20907         vect_analyze_slp. Fix indentation.
20908         (vect_get_single_scalar_iteraion_cost): New function.
20909         (vect_get_known_peeling_cost): Likewise.
20910         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
20911         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
20912         statement. Move outside cost calculation inside unknown peeling case.
20913         Call vect_get_known_peeling_cost for known amount of peeling.
20914         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
20915         reference to the print message of forced alignment.
20916         (vect_verify_datarefs_alignment): Update call to
20917         vect_supportable_dr_alignment.
20918         (vect_get_data_access_cost): New function.
20919         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
20920         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
20921         vect_peeling_hash_choose_best_peeling): Likewise.
20922         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
20923         to store all the accesses in the loop and find best possible access to
20924         align using peeling for known alignment case. For unknown alignment
20925         check if stores are preferred or if peeling is worthy.
20926         (vect_find_same_alignment_drs): Analyze pairs of loads too.
20927         (vect_supportable_dr_alignment): Add new argument and check aligned
20928         accesses according to it.
20929         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
20930         (cost_for_stmt): Call vect_get_stmt_cost.
20931         (vect_model_simple_cost): Likewise.
20932         (vect_model_store_cost): Call vect_get_stmt_cost. Call
20933         vect_get_store_cost to calculate the cost of the statement.
20934         (vect_get_store_cost): New function.
20935         (vect_model_load_cost): Call vect_get_stmt_cost. Call
20936         vect_get_load_cost to calculate the cost of the statement.
20937         (vect_get_load_cost): New function.
20938         (vectorizable_store): Update call to vect_supportable_dr_alignment.
20939         (vectorizable_load): Likewise.
20940         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
20941         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
20942         arguments. Handle unaligned store.
20943         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
20944         (rs6000_builtin_support_vector_misalignment): Return true for word and
20945         double word alignments for VSX.
20946         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
20947         vect_supportable_dr_alignment and builtin_vectorization_cost.
20948
20949 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20950
20951         PR target/44597
20952         * config/pa/predicates.md (prefetch_cc_operand): Remove.
20953         (prefetch_nocc_operand): Likewise.
20954         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
20955         (prefetch_20): New insn.
20956         (prefetch_cc): Remove.
20957         (prefetch_nocc): Likewise.
20958
20959 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20960
20961         * expr.c (vector_mode_valid_p): Move to c-common.c.
20962         * expr.h (vector_mode_valid_p): Do not declare here.
20963         * system.h: Poison GCC_EXPR_H in front-ends.
20964         * Makefile.in: Update dependencies.
20965
20966 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20967
20968         PR target/44705
20969         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
20970
20971 2010-07-03  Jan Hubicka  <jh@suse.cz>
20972
20973         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
20974         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
20975         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
20976         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
20977         Likewise.
20978
20979         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
20980         Update timevars.V
20981         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
20982         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
20983         TV_IPA_LTO_DECL_OUT): New.
20984         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
20985
20986 2010-07-03  Jan Hubicka  <jh@suse.cz>
20987
20988         * ipa-inline.c (update_edge_key): Break out from ...
20989         update_callers_keys): ... here;
20990         (update_callee_keys): Update only the edges from caller to callee.
20991         (update_all_calle_keys): Do what update_calle_keys did.
20992         (decide_inlining_of_small_functions): Avoid recomputing of all
20993         callees when badness increase.
20994
20995 2010-07-03  Jie Zhang  <jie@codesourcery.com>
20996
20997         * config/arm/arm.c (arm_attr_length_move_neon): New.
20998         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
20999         * config/arm/neon.md (define_mode_attr V_slen): Remove.
21000         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21001         to compute length attribute.
21002
21003 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21004
21005         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21006         as predicate for operand 1 and remove its constraint.
21007         * config/arm/predicates.md (vfp_register_operand): New.
21008         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21009         (*push_fp_multi): Likewise.
21010
21011 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
21012
21013         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21014
21015 2010-07-03  Jan Hubicka  <jh@suse.cz>
21016
21017         * config/i386/i386.c (override_options): Revert accidental commit.
21018
21019 2010-07-02  Le-Chun Wu  <lcwu@google.com>
21020
21021         PR c++/44128
21022         * doc/invoke.texi: Update documentation of -Wshadow.
21023
21024 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
21025             Julian Brown  <julian@codesourcery.com>
21026             Sandra Loosemore  <sandra@codesourcery.com>
21027
21028         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21029         comparisons.  Adjust to take both operands.
21030         (arm_select_cc_mode): Handle DImode comparisons.
21031         (arm_gen_compare_reg): Generate a scratch register for DImode
21032         comparisons which require one.  Use xor for Thumb equality checks.
21033         (arm_const_double_by_immediates): New.
21034         (arm_print_operand): Allow 'Q' and 'R' for constants.
21035         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21036         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21037         arm_canonicalize_comparison.
21038         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21039         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21040         prototype.
21041         (arm_const_double_by_immediates): Declare.
21042         * config/arm/constraints.md (Di): New constraint.
21043         * config/arm/predicates.md (arm_immediate_di_operand)
21044         (arm_di_operand, cmpdi_operand): New.
21045         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21046         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21047         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21048         (cstoredi4): Handle non-Cirrus also.
21049
21050 2010-07-02  Julian Brown  <julian@codesourcery.com>
21051             Sandra Loosemore  <sandra@codesourcery.com>
21052
21053         PR target/43703
21054         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21055         (smax<mode>3): Disable for NEON float modes when
21056         flag_unsafe_math_optimizations is false.
21057         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21058         (*mul<mode>3_neon)
21059         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21060         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21061         for NEON float modes when flag_unsafe_math_optimizations is false.
21062         (quad_halves_<code>v4sf): Only enable if
21063         flag_unsafe_math_optimizations is true.
21064         * doc/invoke.texi (ARM Options): Add note about floating point
21065         vectorization requiring -funsafe-math-optimizations.
21066
21067 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21068             Julian Brown  <julian@codesourcery.com>
21069
21070         * config/arm/neon.md (UNSPEC_VABA): Delete.
21071         (UNSPEC_VABAL): Delete.
21072         (UNSPEC_VABS): Delete.
21073         (UNSPEC_VMUL_N): Delete.
21074         (adddi3_neon): New.
21075         (subdi3_neon): New.
21076         (mul<mode>3add<mode>_neon): Make the pattern named.
21077         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21078         (neon_vadd<mode>): Replace with define_expand, and move the remaining
21079         unspec parts...
21080         (neon_vadd<mode>_unspec): ...to this.
21081         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21082         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21083         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21084         (neon_vaba<mode>): Rewrite in terms of vabd.
21085         (neon_vabal<mode>): Rewrite in terms of vabdl.
21086         (neon_vabs<mode>): Rewrite without unspec.
21087         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21088         (*arm_subdi3): Likewise.
21089         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
21090         No_op attribute to disable assembly output checks.
21091         * config/arm/arm_neon.h: Regenerated.
21092         * doc/arm-neon-intrinsics.texi: Regenerated.
21093
21094 2010-07-02  Jan Hubicka  <jh@suse.cz>
21095
21096         * ipa-split.c (split_function): For aggregate values, set the return
21097         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
21098         *<retval> = fncall.part ().
21099         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
21100
21101 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21102
21103         * config/arm/neon.md (UNSPEC_VAND): Delete.
21104         (UNSPEC_VBIC): Delete.
21105         (UNSPEC_VCLZ): Delete.
21106         (UNSPEC_VCNT): Delete.
21107         (UNSPEC_VEOR): Delete.
21108         (UNSPEC_VORN): Delete.
21109         (UNSPEC_VORR): Delete.
21110         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
21111         core registers too.
21112         (anddi3_neon): Likewise.
21113         (orndi3_neon): Likewise.
21114         (bicdi3_neon): Likewise.
21115         (xordi3_neon): Likewise.
21116         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
21117         rid of unspec and handle unused operand.
21118         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
21119         * config/arm/predicates.md (imm_for_neon_logic_operand):
21120         Require TARGET_NEON.
21121         (imm_for_neon_inv_logic_operand): Likewise.
21122         * config/arm/arm.md (define_split for logical_binary_operator):
21123         Disable for NEON registers.
21124         (anddi3): Add new define_expand, and rename the insn.  Disable
21125         this insn for NEON, where anddi3_neon now applies.
21126         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
21127         (iordi3): As for anddi3.
21128         (xordi3): Likewise.
21129         * config/arm/neon.ml (Vand): Split DImode variants and mark them
21130         as No_op to disable testing for exact instruction match.
21131         (Vorr): Likewise.
21132         (Veor): Likewise.
21133         (Vbic): Likewise.
21134         (Vorn): Likewise.
21135         * config/arm/arm_neon.h: Regenerated.
21136         * doc/arm-neon-intrinsics.texi: Regenerated.
21137
21138 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21139
21140         * expr.h (emit_stack_probe): Declare.
21141         * explow.c (emit_stack_probe): Make global.
21142         (anti_adjust_stack_and_probe): Fix comments.
21143         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21144         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21145         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21146         * config/sparc/sparc.c: Include except.h.
21147         (sparc_emit_probe_stack_range): New function.
21148         (output_probe_stack_range): Likewise.
21149         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
21150         built-in stack checking is enabled.
21151         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
21152         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21153         (probe_stack_range): New insn.
21154
21155 2010-07-02  Richard Guenther  <rguenther@suse.de>
21156
21157         PR target/43958
21158         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
21159         for argument alignment.
21160
21161 2010-07-02  Jan Hubicka  <jh@suse.cz>
21162
21163         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
21164         walk backwards from entry_bb to check only those basic block of header
21165         that might lead to execution of split part.
21166         (consider_split) ... here.
21167         (find_return_bb): Allow assignment in return BB.
21168         (find_retval): New.
21169         (split_function): Fix name of cloned function; take care of updating
21170         return value in return_bb containing move.
21171
21172 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
21173
21174         PR target/44771
21175         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
21176         used variable insn.
21177
21178 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21179
21180         * implicit-zee.c (combine_reaching_defs): Fix long lines.
21181         (is_set_with_extension_DI): Delete.
21182         (struct zero_extend_info): New structure.
21183         (add_removable_zero_extend): New function.
21184         (find_removable_zero_extends): Use note_stores to find SETs.
21185         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
21186
21187 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21188
21189         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
21190         is_miss_rate_acceptable. Pull total_positions computation
21191         out of the loops.  Early return if miss_positions exceeds
21192         the acceptable threshold.
21193         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
21194         is_miss_rate_acceptable after renaming of compute_miss_rate.
21195
21196 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21197
21198         PR middle-end/44576
21199         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
21200         of 1000) for miss rate if the address diference is greater than or
21201         equal to the cache line size (the two reference will never hit the
21202         same cache line).
21203
21204 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
21205
21206         PR target/42835
21207         * config/arm/arm-modes.def (CC_NOTB): New mode.
21208         * config/arm/arm.c (get_arm_condition_code): Handle it.
21209         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
21210         * config/arm/arm.md (subsi3_compare0_c): New pattern.
21211         (compare_scc): Now a define_and_split.  Add a number of extra
21212         splitters before it.
21213
21214         PR target/42172
21215         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
21216         and ZERO_EXTEND.
21217         (arm_rtx_costs_1): Likewise.
21218         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
21219         * config/arm/arm.md (is_arch6): New attribute.
21220         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
21221         extendqisi2): Tighten the code somewhat, avoiding invalid
21222         RTL to occur in the expander patterns.
21223         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
21224         (thumb1_zero_extendhisi2_v6): Delete.
21225         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
21226         (thumb1_extendhisi2_v6): Delete.
21227         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
21228         (thumb1_extendqisi2_v6): Delete.
21229         (zero_extendhisi2 for register input splitter): New.
21230         (zero_extendqisi2 for register input splitter): New.
21231         (thumb1_extendhisi2 for register input splitter): New.
21232         (extendhisi2 for register input splitter): New.
21233         (extendqisi2 for register input splitter): New.
21234         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
21235         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
21236         and add support for a register alternative requiring a split.
21237         (thumb1_zero_extendqisi2): Likewise.
21238         (arm_zero_extendqisi2): Likewise.
21239         (arm_extendhisi2): Likewise.
21240         (arm_extendqisi2): Likewise.
21241
21242 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21243
21244         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
21245         instead of an unspec.
21246         (neon_expand_vector_init): Likewise.
21247         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
21248         (UNSPEC_VDUP_LANE): Delete.
21249         (UNSPEC VDUP_N): Delete.
21250         (UNSPEC_VGET_HIGH): Delete.
21251         (UNSPEC_VGET_LANE): Delete.
21252         (UNSPEC_VGET_LOW): Delete.
21253         (UNSPEC_VMVN): Delete.
21254         (UNSPEC_VSET_LANE): Delete.
21255         (V_double_vector_mode): New.
21256         (vec_set<mode>_internal): Make code emitted match that for the
21257         corresponding intrinsics.
21258         (vec_setv2di_internal): Likewise.
21259         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
21260         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
21261         (neon_vset_lane<mode>): Combine double and quad patterns and
21262         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
21263         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
21264         (neon_vdup_n<mode>): Rewrite RTL without unspec.
21265         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
21266         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
21267         with neon_vdup_lanev2di, adjusting the pattern from the latter
21268         to be predicable for consistency.
21269         (neon_vdup_lane<mode>_internal): New.
21270         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
21271         to avoid using an unspec.
21272         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
21273         (neon_vdup_lanev2di): Turn into a define_expand.
21274         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
21275         (neon_vget_high<mode>): Replace with....
21276         (neon_vget_highv16qi): New pattern using canonical RTL.
21277         (neon_vget_highv8hi): Likewise.
21278         (neon_vget_highv4si): Likewise.
21279         (neon_vget_highv4sf): Likewise.
21280         (neon_vget_highv2di): Likewise.
21281         (neon_vget_low<mode>): Replace with....
21282         (neon_vget_lowv16qi): New pattern using canonical RTL.
21283         (neon_vget_lowv8hi): Likewise.
21284         (neon_vget_lowv4si): Likewise.
21285         (neon_vget_lowv4sf): Likewise.
21286         (neon_vget_lowv2di): Likewise.
21287
21288         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
21289         test for this emitting vmov.
21290         (Vset_lane): Likewise.
21291         (Vdup_n): Likewise.
21292         (Vmov_n): Likewise.
21293
21294         * doc/arm-neon-intrinsics.texi: Regenerated.
21295
21296 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21297
21298         * config/arm/neon.md (vec_extractv2di): Correct error in register
21299         numbering to reconcile with neon_vget_lanev2di.
21300
21301 2010-07-02  Richard Guenther  <rguenther@suse.de>
21302
21303         * tree-ssa-structalias.c (pt_solution_set_var): New function.
21304         * tree-ssa-alias.h (pt_solution_set_var): Declare.
21305         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
21306         points-to information.
21307
21308 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
21309
21310         * config/s390/s390.c (override_options): Adopt prefetching
21311         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
21312
21313 2010-07-02  Jan Hubicka  <jh@suse.cz>
21314
21315         * df-problems.c (df_kill_notes): Do not collect dead  notes.
21316         (df_set_note): Just call add_reg_note.
21317         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
21318         df_create_unused_note): Do not deal with lists of old notes.
21319         (df_note_bb_compute): Likewise.
21320
21321 2010-07-02  Richard Guenther  <rguenther@suse.de>
21322
21323         * tree-ssa-structalias.c (find_func_aliases): Handle
21324         pointer alignment via BIT_AND_EXPR.
21325         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
21326
21327 2010-07-02  Richard Guenther  <rguenther@suse.de>
21328
21329         * tree-data-ref.c (initialize_data_dependence_relation): Handle
21330         mismatching number of dimensions properly.
21331
21332 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21333
21334         PR target/44707
21335         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
21336         (lo_sum (high ...) ...) patterns generated by earlier passes.
21337
21338 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21339
21340         * doc/install.texi (Prerequisites): Document Perl requirement on
21341         Solaris 2.
21342         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
21343
21344 2010-07-02  Richard Guenther  <rguenther@suse.de>
21345
21346         PR middle-end/44777
21347         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
21348
21349 2010-07-02  Jan Hubicka  <jh@suse.cz>
21350
21351         PR middle-end/44706
21352         * predict.c (predict_paths_for_bb): Handle case when control dependence
21353         BB has only abnormal edges.
21354
21355 2010-07-02  Richard Guenther  <rguenther@suse.de>
21356
21357         PR tree-optimization/44748
21358         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
21359         the embedded conversion in MEM_REFs.
21360
21361 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
21362
21363         * reload.c: Include toplev.h.
21364         * recog.c:  Likewise.
21365         * Makefile.in: Adjust dependencies.
21366
21367 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
21368
21369         PR debug/44694
21370         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
21371         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
21372
21373 2010-07-01  Richard Guenther  <rguenther@suse.de>
21374
21375         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
21376         types for offsets.
21377
21378 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
21379
21380         PR target/44732
21381         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
21382         Fix argument types.
21383
21384 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
21385
21386         PR target/44727
21387         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21388         Make sure operand 0 dies.
21389
21390 2010-07-01  Richard Guenther  <rguenther@suse.de>
21391
21392         PR middle-end/42834
21393         PR middle-end/44468
21394         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
21395         * doc/generic.texi (References to storage): Document MEM_REF.
21396         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
21397         (print_call_name): Likewise.
21398         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
21399         (build_simple_mem_ref_loc): New function.
21400         (mem_ref_offset): Likewise.
21401         * tree.h (build_simple_mem_ref_loc): Declare.
21402         (build_simple_mem_ref): Define.
21403         (mem_ref_offset): Declare.
21404         * fold-const.c: Include tree-flow.h.
21405         (operand_equal_p): Handle MEM_REF.
21406         (build_fold_addr_expr_with_type_loc): Likewise.
21407         (fold_comparison): Likewise.
21408         (fold_unary_loc): Fold
21409         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
21410         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
21411         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
21412         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
21413         (ptr_deref_may_alias_ref_p_1): Likewise.
21414         (ao_ref_base_alias_set): Properly differentiate base object for
21415         offset and TBAA.
21416         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
21417         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
21418         (indirect_refs_may_alias_p): Likewise.
21419         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
21420         chasing code.
21421         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
21422         (call_may_clobber_ref_p_1): Likewise.
21423         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
21424         * expr.c (expand_assignment): Handle MEM_REF.
21425         (store_expr): Handle MEM_REFs from STRING_CSTs.
21426         (store_field): If expanding a MEM_REF of a non-addressable
21427         decl use bitfield operations.
21428         (get_inner_reference): Handle MEM_REF.
21429         (expand_expr_addr_expr_1): Likewise.
21430         (expand_expr_real_1): Likewise.
21431         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
21432         * alias.c (ao_ref_from_mem): Handle MEM_REF.
21433         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
21434         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
21435         (dr_analyze_indices): Likewise.
21436         (dr_analyze_alias): Likewise.
21437         (object_address_invariant_in_loop_p): Likewise.
21438         * gimplify.c (mark_addressable): Handle MEM_REF.
21439         (gimplify_cond_expr): Build MEM_REFs.
21440         (gimplify_modify_expr_to_memcpy): Likewise.
21441         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
21442         (gimple_fold_indirect_ref): Adjust.
21443         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
21444         * tree.def (MEM_REF): New tree code.
21445         * tree-dfa.c: Include toplev.h.
21446         (get_ref_base_and_extent): Handle MEM_REF.
21447         (get_addr_base_and_unit_offset): New function.
21448         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
21449         * gimple-fold.c (may_propagate_address_into_dereference): Handle
21450         MEM_REF.
21451         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
21452         accesses if the array has just one dimension.  Remove always true
21453         parameter.  Do not require type compatibility here.
21454         (maybe_fold_offset_to_component_ref): Remove.
21455         (maybe_fold_stmt_indirect): Remove.
21456         (maybe_fold_reference): Remove INDIRECT_REF handling.
21457         Fold back to non-MEM_REF.
21458         (maybe_fold_offset_to_address): Simplify.  Deal with type
21459         mismatches here.
21460         (maybe_fold_reference): Likewise.
21461         (maybe_fold_stmt_addition): Likewise.  Also handle
21462         &ARRAY + I in addition to &ARRAY[0] + I.
21463         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
21464         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
21465         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
21466         * tree-ssa.c (useless_type_conversion_p): Make most pointer
21467         conversions useless.
21468         (warn_uninitialized_var): Handle MEM_REF.
21469         (maybe_rewrite_mem_ref_base): New function.
21470         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
21471         to SSA form.
21472         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
21473         INDIRECT_REF handling.
21474         (copy_tree_body_r): Handle MEM_REF.
21475         * gimple.c (is_gimple_addressable): Adjust.
21476         (is_gimple_address): Likewise.
21477         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
21478         invariant base are invariant.
21479         (is_gimple_min_lval): Adjust.
21480         (is_gimple_mem_ref_addr): New function.
21481         (get_base_address): Handle MEM_REF.
21482         (count_ptr_derefs): Likewise.
21483         (get_base_loadstore): Likewise.
21484         * gimple.h (is_gimple_mem_ref_addr): Declare.
21485         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
21486         * tree-cfg.c (verify_address): New function, split out from ...
21487         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
21488         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
21489         INDIRECT_REFs.
21490         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
21491         INDIRECT_REF.  Allow conversions.
21492         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
21493         a register does not change its size.
21494         (verify_types_in_gimple_reference): Verify MEM_REF.
21495         (verify_gimple_assign_single): Disallow INDIRECT_REF.
21496         Handle MEM_REF.
21497         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
21498         New.
21499         (mark_address_taken): Handle MEM_REF.
21500         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
21501         (get_asm_expr_operands): Pass opf_not_non_addressable.
21502         (get_expr_operands): Handle opf_[not_]non_addressable.
21503         Handle MEM_REF.  Remove INDIRECT_REF handling.
21504         * tree-vrp.c (check_array_ref): Handle MEM_REF.
21505         (search_for_addr_array): Likewise.
21506         (check_array_bounds): Likewise.
21507         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
21508         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
21509         (ref_always_accessed_p): Likewise.
21510         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
21511         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
21512         Handle MEM_REF.
21513         * cgraphbuild.c (mark_load): Properly check for NULL result
21514         from get_base_address.
21515         (mark_store): Likewise.
21516         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
21517         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
21518         handling for MEM_REF.
21519         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
21520         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
21521         * builtins.c (stabilize_va_list_loc): Use the function ABI
21522         valist type if we couldn't canonicalize the argument type.
21523         Always dereference with the canonical va-list type.
21524         (maybe_emit_free_warning): Handle MEM_REF.
21525         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
21526         memmove to memcpy.
21527         * builtins.c (fold_builtin_memory_op): Use ref-all types
21528         for all memcpy foldings.
21529         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
21530         (build_outer_var_ref): Likewise.
21531         (scan_omp_1_op): Likewise.
21532         (lower_rec_input_clauses): Likewise.
21533         (lower_lastprivate_clauses): Likewise.
21534         (lower_reduction_clauses): Likewise.
21535         (lower_copyprivate_clauses): Likewise.
21536         (expand_omp_atomic_pipeline): Likewise.
21537         (expand_omp_atomic_mutex): Likewise.
21538         (create_task_copyfn): Likewise.
21539         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
21540         Remove old union trick.  Initialize constant offsets.
21541         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
21542         INDIRECT_REF.  Init base_alias_set properly.
21543         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
21544         (vn_reference_fold_indirect): Adjust for MEM_REFs.
21545         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
21546         for ARRAY_REFs.
21547         (may_insert): Remove.
21548         (visit_reference_op_load): Do not test may_insert.
21549         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
21550         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
21551         a field to store the constant offset this op applies.
21552         (run_scc_vn): Adjust prototype.
21553         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
21554         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
21555         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
21556         bother about volatile qualifiers on pointers.
21557         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
21558         * tree-ssa-loop-ivopts.c
21559         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
21560         (strip_offset_1): Likewise.
21561         (find_interesting_uses_address): Replace INDIRECT_REF handling with
21562         MEM_REF handling.
21563         (get_computation_cost_at): Likewise.
21564         * ipa-pure-const.c (check_op): Handle MEM_REF.
21565         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
21566         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
21567         and constants.
21568         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
21569         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
21570         (eliminate_local_variables_1): Likewise.
21571         (create_call_for_reduction_1): Likewise.
21572         (create_loads_for_reductions): Likewise.
21573         (create_loads_and_stores_for_name): Likewise.
21574         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
21575         (ssa_accessed_in_tree): Handle MEM_REF.
21576         (ssa_accessed_in_assign_rhs): Likewise.
21577         (update_type_size): Likewise.
21578         (analyze_accesses_for_call_stmt): Likewise.
21579         (analyze_accesses_for_assign_stmt): Likewise.
21580         (transform_access_sites): Likewise.
21581         (transform_allocation_sites): Likewise.
21582         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
21583         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
21584         not handle INDIRECT_REF.
21585         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
21586         (cond_store_replacement): Likewise.
21587         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21588         MEM_REF, no not handle INDIRECT_REFs.
21589         (insert_into_preds_of_block): Properly initialize avail.
21590         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
21591         for ARRAY_REFs.  Properly handle reference lookups that
21592         require a bit re-interpretation.
21593         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
21594         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
21595         (build_ref_for_offset_1): Remove.
21596         (build_ref_for_offset): Build MEM_REFs.
21597         (gate_intra_sra): Disable for now.
21598         (sra_ipa_modify_expr): Handle MEM_REF.
21599         (ipa_early_sra_gate): Disable for now.
21600         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
21601         MEM_REF handling.
21602         (disqualify_base_of_expr): Likewise.
21603         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
21604         MEM_REF handling.
21605         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
21606         Use mem_ref_offset.  Remove bogus folding.
21607         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
21608         (make_fancy_name_1): Add support for MEM_REF.
21609         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
21610         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
21611         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
21612         (compute_complex_ancestor_jump_func): Likewise.
21613         (ipa_analyze_virtual_call_uses): Likewise.
21614         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
21615         INDIRECT_REF folding with more generalized MEM_REF folding.
21616         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
21617         (forward_propagate_addr_into_variable_array_index): Also handle
21618         &ARRAY + I in addition to &ARRAY[0] + I.
21619         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
21620         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
21621         creates assignments with overlap.
21622         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
21623         (get_frame_field): Likewise.
21624         (get_nonlocal_debug_decl): Likewise.
21625         (convert_nonlocal_reference_op): Likewise.
21626         (struct nesting_info): Add mem_refs pointer-set.
21627         (create_nesting_tree): Allocate it.
21628         (convert_local_reference_op): Insert to be folded mem-refs.
21629         (fold_mem_refs): New function.
21630         (finalize_nesting_tree_1): Perform defered folding of mem-refs
21631         (free_nesting_tree): Free the pointer-set.
21632         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
21633         (vectorizable_load): Likewise.
21634         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
21635         (propagate_with_phi): Likewise.
21636         * tree-object-size.c (addr_object_size): Handle MEM_REFs
21637         instead of INDIRECT_REFs.
21638         (compute_object_offset): Handle MEM_REF.
21639         (plus_stmt_object_size): Handle MEM_REF.
21640         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
21641         for &MEM_REF.
21642         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
21643         (symbol_marked_for_renaming): Likewise.
21644         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
21645         (fold-const.o): Add $(TREE_FLOW_H).
21646         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
21647         (find_func_clobbers): Likewise.
21648         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
21649         (decompose_access): Likewise.
21650         (replace_field_acc): Likewise.
21651         (replace_field_access_stmt): Likewise.
21652         (insert_new_var_in_stmt): Likewise.
21653         (get_stmt_accesses): Likewise.
21654         (reorg_structs_drive): Disable.
21655         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
21656         (ix86_canonical_va_list_type): Likewise.
21657
21658 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21659
21660         PR other/44566
21661         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
21662         * target.def (struct gcc_target): Replace enum reg_class with
21663         reg_class_t in hook argument / return types.
21664         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
21665         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
21666         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
21667         * targhooks.h (default_branch_target_register_class): Likewise.
21668         (default_ira_cover_classes, default_secondary_reload): Likewise.
21669         (default_memory_move_cost, default_register_move_cost): Likewise.
21670         * targhooks.c (default_branch_target_register_class): Likewise.
21671         (default_ira_cover_classes, default_secondary_reload): Likewise.
21672         (default_memory_move_cost, default_register_move_cost): Likewise.
21673         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
21674         * bt-load.c (branch_target_load_optimize): Likewise.
21675         * ira.c (setup_cover_and_important_classes): Likewise.
21676         * ira-costs.c (copy_cost): Likewise.
21677         * reload1.c (emit_input_reload_insns): Likewise.
21678         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21679         * config/frv/frv.c (frv_secondary_reload): Likewise.
21680         * config/s390/s390.c (s390_secondary_reload): Likewise.
21681         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
21682         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
21683         (ix86_register_move_cost): Likewise.
21684         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
21685         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
21686         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
21687         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
21688         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
21689         (rs6000_ira_cover_classes): Likewise.
21690         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
21691         * config/picochip/picochip-protos.h (picochip_secondary_reload):
21692         Likewise.
21693         * config/pa/pa.c (pa_secondary_reload): Likewise.
21694         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
21695         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
21696         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
21697         * doc/tm.texi: Regenerate.
21698
21699 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
21700
21701         PR bootstrrap/44726
21702         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
21703         use.
21704         (build_alias_set_optimal_p): Likewise.
21705         (build_base_obj_set_for_drs): Likewise.
21706
21707 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21708
21709         * target.def: Remove comment about licensing problems of function
21710         declarations.
21711
21712         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
21713         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
21714         * doc/tm.texi: Regenerate.
21715
21716         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
21717         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21718
21719         * target.def (enum_va_list_p): Use DEFHOOK.
21720         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
21721         Rename ptype to ptree.
21722         * doc/tm.texi: Regenerate.
21723
21724         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
21725         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
21726         * doc/tm.texi: Regenerate.
21727
21728         * target.def (memory_move_cost): Use DEFHOOK.
21729         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
21730         Rename regclass AKA class to rclass.
21731         * doc/tm.texi: Regenerate.
21732
21733         * target.def (pragma_parse): Use DEFHOOK.
21734         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
21735         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
21736         * doc/tm.texi: Regenerate.
21737
21738         * target.def (pass_by_reference): Use DEFHOOK.
21739         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
21740         * doc/tm.texi: Regenerate.
21741
21742         * target.def (resolve_overloaded_builtin): Rename params to arglist.
21743         Use DEFHOOK.
21744         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
21745         * doc/tm.texi: Regenerate.
21746
21747         * target.def (return_pops_args): Use DEFHOOK.
21748         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
21749         Rename stack-size to size.
21750         * doc/tm.texi: Regenerate.
21751
21752         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
21753         last-sched_cycle to last_clock, cur_cycle to clock.
21754         * doc/tm.texi.in: Use @hook.
21755         * doc/tm.texi: Regenerate.
21756
21757         * target.def (print_operand, print_operand_address): Update comment.
21758         (print_operand_punct_valid_p): Likewise.
21759
21760 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21761
21762         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
21763         to rtl.h.
21764         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
21765         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
21766         * rtl-error.h: New.
21767         * regrename.c: Do not include toplev.h. Include rtl-error.h.
21768         * rtl-error.c: Likewise.
21769         * reload.c: Likewise.
21770         * recog.c:  Likewise.
21771         * sel-sched.c: Likewise.
21772         * function.c: Likewise.
21773         * reg-stack.c: Likewise.
21774         * cfgrtl.c: Likewise.
21775         * reload1.c: Likewise.
21776         * final.c: Include rtl-error.
21777         * Makefile.in: Adjust dependencies.
21778
21779 2010-06-30  Jan Hubicka  <jh@suse.cz>
21780
21781         PR middle-end/PR44706
21782         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
21783         to return the value.
21784
21785 2010-06-30  Michael Matz  <matz@suse.de>
21786
21787         PR bootstrap/44699
21788         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
21789         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
21790         a gimple reg, attach the original VDEF to the last store in the
21791         sequence.
21792
21793 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
21794
21795         PR other/44034
21796         * config/darwin.c (darwin_override_options): Use renamed
21797         targetm.asm_out.emit_unwind_label.
21798
21799 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21800
21801         PR tree-optimization/39799
21802         * tree-inline.c (remap_ssa_name): Initialize variable only if
21803         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21804
21805 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
21806
21807         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
21808
21809 2010-06-30  Richard Guenther  <rguenther@suse.de>
21810
21811         PR target/44722
21812         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
21813         against oscillation with reverse peephole2.
21814
21815 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21816
21817         PR target/44721
21818         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21819         Fix last commit.
21820
21821 2010-06-30  Nick Clifton  <nickc@redhat.com>
21822
21823         * config/rx/rx-modes.def: New file.
21824         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
21825         (CC_REGNUM): Define.
21826         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
21827         register.
21828         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
21829         (SELECT_CC_MODE): Define.
21830         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
21831         (reg:CC CC_REG) instead of (cc0).
21832         (attr "cc"): Delete.
21833         (cbranchsi4): Do not split compare and branch here. Instead move
21834         it to...
21835         (cbranchsi4_<code>): ... here.  New patterns.
21836         (cmpsi): Call rx-compare_redundant to find out if it is necessary
21837         to emit the compare instruction.
21838         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
21839         cc_status flags.
21840         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
21841         FIRST_PSEUDO_REGNUM.
21842         (rx_expand_prologue, rx_expand_epilogue): Likewise.
21843         (rx_notice_update_cc): Delete.
21844         (rx_cc_modes_compatible): New function.
21845         (flags_needed_for_conditional): New function.
21846         (flags_from_mode): New function.
21847         (rx_compare_redundant): New function - scans backwards through
21848         insn list to find out if condition flags are already set correctly.
21849         (TARGET_CC_MODES_COMPATIBLE): Define.
21850         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
21851
21852         * config/rx/rx.h (BRANCH_COST): Define.
21853         (REGISTER_MOVE_COST): Define.
21854         * config/rx/predicates (rx_source_operand): Allow all constant types.
21855         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
21856         (tstsi4): New pattern.
21857         * config/rx/rx.c (rx_memory_move_cost): Define.
21858         (TARGET_MEMORY_MOVE_COST): Define.
21859
21860 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21861
21862         * tree.h (block_may_fallthru): Declare here.
21863         * tree-flow.h (block_may_fallthru): Do not declare here.
21864         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
21865         bitmap.h
21866         * Makefile.in (c-typeck.o): Update dependencies.
21867
21868 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
21869
21870         PR debug/44694
21871         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
21872         * cselib.c (cfa_base_preserved_regno): New static variable.
21873         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
21874         of REGNO (cfa_base_preserved_val->locs->loc).
21875         (cselib_preserve_cfa_base_value): Add regno argument, set
21876         cfa_base_preserved_regno to it.
21877         (cselib_invalidate_regno): Allow removal of registers other than
21878         cfa_base_preserved_regno from cfa_base_preserved_val.
21879         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
21880         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
21881         of MEM addresses, if not on LHS.
21882         (reverse_op): Don't add reverse ops for cfa_base_rtx.
21883         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
21884
21885 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21886
21887         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
21888         static variables.
21889         (peep2_buf_position): New static function.
21890         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
21891         peephole2_optimize): Use it.
21892         (peep2_attempt, peep2_update_life): New static functions, broken out
21893         of peephole2_optimize.
21894         (peep2_fill_buffer): New static function.
21895         (peephole2_optimize): Change the main loop to try to fill the buffer
21896         with the maximum number of insns before matching them against
21897         peepholes.  Use a forward scan.  Remove special case for targets with
21898         conditional execution.
21899         * genrecog.c (change_state): Delete dead code.
21900         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21901         Rewrite so as not to expect the second insn to have had a peephole
21902         applied yet.
21903
21904 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21905
21906         * genhooks.c (emit_findices): Cast field precision to int.
21907         (emit_documentation): Likewise.
21908
21909 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
21910
21911         PR tree-optimization/43801
21912         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
21913         if old_decl was DECL_ONE_ONLY.
21914
21915         PR debug/44668
21916         * dwarf2out.c (add_accessibility_attribute): New function.
21917         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
21918         instead of adding DW_AT_accessibility manually.
21919         (gen_enumeration_type_die, gen_struct_or_union_type_die,
21920         gen_typedef_die): Use it.
21921
21922 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21923
21924         * vmsdbgout.c (full_name): Just output the file name if not native.
21925
21926 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21927
21928         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
21929         (funcnam_table): New static table.
21930         (funcnum_table): New static table.
21931         (write_rtnbeg): Write value saved in funcnum_table.
21932         (write_rtnend): Write value saved in funcnum_table.
21933         (vmsdbgout_begin_function): Save current function info in
21934         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
21935         (vmsdbgout_finish): Iterate over funcnum_table.
21936
21937 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21938
21939         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
21940         (vmsdbgout_type_decl): Declare
21941         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
21942         (FUNC_EPILOGUE_LABEL): New macro
21943         (vmsdbgout_begin_epilogue): New function.
21944         (vmsdbgout_type_decl): New function.
21945
21946 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21947
21948         * vmsdbg.h: Update copyright.
21949
21950 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21951
21952         * vmsdbg.h (DST_K_TBG): New DST constant.
21953         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
21954         (write_modbeg): Cast module_language to avoid warning.
21955         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
21956
21957 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21958
21959         PR other/44034
21960         * target.def, doc/tm.texi.in, genhooks.c: New files.
21961         * target.h: Instead of defining individual hook members,
21962         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
21963         include target.def.
21964         * target-def.h: Instead of defining individual hook initializers,
21965         include target-hooks-def.h.
21966         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
21967         targetm.live_on_entry -> targetm.extra_live_on_entry
21968         targetm.sched.md_finish ->targetm.sched.finish
21969         targetm.sched.md_init -> targetm.sched.init
21970         targetm.sched.md_init_global -> targetm.sched.init_global
21971         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
21972         targetm.asm_out.except_table_label ->
21973           targetm.asm_out.emit_except_table_label
21974         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
21975         targetm.target_help -> targetm.help
21976         targetm.vectorize.builtin_support_vector_misalignment ->
21977           targetm.vectorize.support_vector_misalignment
21978         targetm.file_start_app_off -> targetm.asm_file_start_app_off
21979         targetm.file_start_file_directive ->
21980          targetm.asm_file_start_file_directive
21981         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
21982         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
21983         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
21984         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
21985           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
21986         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
21987           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
21988         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
21989         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
21990         * Makefile.in (TARGET_H): Depend on target.def.
21991         (TARGET_DEF_H): Depend on target-hooks-def.h.
21992         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
21993         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
21994         * doc/tm.texi: Regenerate.
21995
21996         * Makefile.in (s-tm-texi): Remove stray tab / rule.
21997
21998         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
21999         (targetm.sched.init): Likewise.
22000
22001 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22002
22003         PR bootstrap/44713
22004         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22005         (function_arg_advance_32): Const-ify TYPE parameter.
22006         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
22007         (ix86_function_arg_advance): Change type of NAMED to bool.
22008         (function_arg_32): Const-ify CUM and TYPE parameters.
22009         (function_arg_64): Likewise.  Change type of NAMED to bool.
22010         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22011         to bool.
22012         (ix86_function_arg): Change type of NAMED to bool.
22013         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
22014         last argument as a bool.
22015
22016 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22017
22018         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22019         (OVERRIDE_OPTIONS): Add note of obsolescence.
22020         Replace references with references to TARGET_OPTION_OVERRIDE.
22021         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22022          the macro).
22023         * targhooks.c (default_target_option_override): New function.
22024         * targhooks.h (default_target_option_override): Declare.
22025         * target.h (struct gcc_target): Add override member to
22026         target_option member.
22027         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22028         targetm.target_option.override call.
22029         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22030         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22031
22032 2010-06-29  Jan Hubicka  <jh@suse.cz>
22033
22034         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22035
22036 2010-06-29  Jan Hubicka  <jh@suse.cz>
22037
22038         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22039         unreachable.
22040         (rebuild_frequencies): New function.
22041         * predict.h (rebuild_frequencies): Declare.
22042         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22043         entry block and edge reaching new_entry.
22044         (tree_function_versioning): When doing partial cloning, rebuild
22045         frequencies when done.
22046         * passes.c (execute_function_todo): Use rebild_frequencies.
22047
22048 2010-06-29  Richard Guenther  <rguenther@suse.de>
22049
22050         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22051         * tree-flow.h (enum noalias_state): Remove.
22052         (struct var_ann_d): Remove noalias_state member.
22053
22054 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
22055
22056         PR target/43902
22057         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22058         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
22059         (maddhidi4): Likewise.
22060
22061         Revert parts of the change for PR25130.
22062         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22063         MEM_ALIAS_SET.
22064
22065 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22066
22067         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22068         targetm.calls.function_incoming_arg, and
22069         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22070         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22071         * target.h (struct gcc_target): Add function_arg_advance,
22072         function_arg, and function_incoming_arg fields.
22073         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22074         (TARGET_FUNCTION_INCOMING_ARG): Define.
22075         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22076         and TARGET_FUNCTION_INCOMING_ARG.
22077         * targhooks.h (default_function_arg_advance): Declare.
22078         (default_function_arg, default_function_incoming_arg): Declare.
22079         * targhooks.c (default_function_arg_advance): New function.
22080         (default_function_arg, default_function_incoming_arg): New function.
22081         * config/i386/i386.c (function_arg_advance): Rename to...
22082         (ix86_function_arg_advance): ...this.  Make static.
22083         (function_arg): Rename to...
22084         (ix86_function_arg): ...this.  Make static.
22085         (TARGET_FUNCTION_ARG_ADVANCE): Define.
22086         (TARGET_FUNCTION_ARG): Define.
22087         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22088         (FUNCTION_ARG): Delete.
22089         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
22090         (function_arg): Delete prototype.
22091
22092 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22093
22094         * reginfo.c (init_reg_sets_1): Adjust comments.
22095         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
22096         * calls.c (prepare_call_address): Likewise.
22097         (emit_call_1): Use targetm.calls.return_pops_args.
22098         (expand_call): Likewise.
22099         * function.c (assign_parms): Likewise.
22100         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
22101         * target.h (struct gcc_target) [struct calls]: Add
22102         return_pops_args field.
22103         * targhooks.h (default_return_pops_args): Declare.
22104         * targhooks.c (default_return_pops_args): Define.
22105         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
22106         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
22107         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
22108         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
22109         documentation.
22110         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
22111         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
22112         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
22113         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
22114         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
22115         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
22116         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
22117         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
22118         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
22119         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
22120         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
22121         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
22122         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
22123         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
22124         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
22125         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
22126         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
22127         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
22128         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
22129         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
22130         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
22131         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
22132         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
22133         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
22134         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
22135         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
22136         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
22137         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
22138         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
22139         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
22140         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
22141         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
22142         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
22143         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
22144         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
22145         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
22146         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
22147         * config/i386/i386.c (ix86_return_pops_args): Make static.
22148         Constify arguments.
22149         (TARGET_RETURN_POPS_ARGS): Define.
22150         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
22151         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
22152         (TARGET_RETURN_POPS_ARGS): Define.
22153         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
22154         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
22155         (TARGET_RETURN_POPS_ARGS): Define.
22156
22157 2010-06-29  Richard Guenther  <rguenther@suse.de>
22158
22159         PR middle-end/44667
22160         * tree-inline.c (initialize_inlined_parameters): Make sure
22161         to remap the inlined parameter variable substitutions types.
22162
22163 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
22164
22165         PR rtl-optimization/44659
22166         * combine.c (make_compound_operation) <SUBREG>: Do not return the
22167         result of force_to_mode if it partially re-expanded the compound.
22168
22169 2010-06-28  Jan Hubicka  <jh@suse.cz>
22170
22171         PR middle-end/44671
22172         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
22173         RESULT_DECL.
22174
22175 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
22176
22177         * double-int.h (force_fit_type_double): Remove declaration.
22178         * double-int.c (force_fit_type_double): Move to tree.c.
22179         * tree.h (force_fit_type_double): Declare.
22180         * tree.h (force_fit_type_double): Moved from double-int.c. Use
22181         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
22182         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
22183         * convert.c (convert_to_pointer): Adjust call to
22184         force_fit_type_double.
22185         * tree-vrp.c (extract_range_from_assert,
22186         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
22187         * fold-const.c: Update comment.
22188         (int_const_binop, fold_convert_const_int_from_int,
22189         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
22190         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
22191         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
22192         round_up_loc): Adjust call to force_fit_type_double.
22193
22194 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22195
22196         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
22197
22198 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22199
22200         * tree-sra.c (convert_callers): New parameter, change fndecls of
22201         recursive calls.
22202         (modify_function): Pass the old decl to convert_callers.
22203
22204 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22205
22206         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
22207         ipa_check_create_node_params and ipa_initialize_node_params with
22208         checking asserts they are not necessary.
22209
22210 2010-06-28  Jan Hubicka  <jh@suse.cz>
22211
22212         PR tree-optimization/44687
22213         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
22214
22215 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22216
22217         PR c++/44535
22218         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
22219         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
22220         instead of BINFO_BASE_BINFO.
22221
22222 2010-06-28  Michael Matz  <matz@suse.de>
22223
22224         PR middle-end/44592
22225         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
22226         proper VDEF chain for intermediate stores in the sequence.
22227
22228 2010-06-28  Jan Hubicka  <jh@suse.cz>
22229
22230         PR tree-optimization/44357
22231         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
22232         uninlinable functions.
22233
22234 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22235
22236         * config.gcc (powerpc*-*-*): Handle titan.
22237         * config/rs6000/rs6000.c (titan_cost): New costs.
22238         (rs6000_override_options): Add "titan" to processor_target_table.
22239         Add Titan to branch alignment logic.
22240         Correctly set rs6000_cost for titan.
22241         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
22242         * config/rs6000/titan.md: New file.
22243         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
22244
22245 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22246
22247         * tree-browser.c (TB_history_stack): Convert to a VEC.
22248         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
22249         (TB_history_prev): Likewise.
22250
22251 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22252
22253         * vec.h (vec_heap_free): Add parentheses around free.
22254
22255 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
22256
22257         * system.h: Poison GCC_EXCEPT_H for front-end files.
22258
22259         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
22260         langhook.
22261         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
22262         Define to NULL by default.
22263         * except.h: Define GCC_EXCEPT_H.
22264         (doing_eh): Remove prototype.
22265         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
22266         (lang_protect_cleanup_actions): Remove.
22267         * except.c (lang_protect_cleanup_actions): Remove.
22268         (doing_eh): Remove.
22269         (gen_eh_region): Don't check doing_eh here.
22270         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
22271         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
22272         instead of lang_protect_cleanup_actions.
22273         * omp-low.c (maybe_catch_exception): Likewise.
22274         * Makefile.in: Update dependencies.
22275
22276 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
22277
22278         * cgraph.h (struct varpool_node): new used_from_object_file flag.
22279         (struct cgraph_local_info): new used_from_object_file flag.
22280         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
22281         (cgraph_clone_node): initialize used_from_object_file.
22282         (cgraph_create_virtual_clone): initialize used_from_object_file.
22283         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
22284         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
22285         when compiling with -fwhole-program.
22286         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
22287         internal resolver.
22288         * ipa.c (function_and_variable_visibility): Set externally_visible
22289         flag of varpool_node if used_from_object_file flag is set.
22290         (cgraph_externally_visible_p): check used_from_object_file flag.
22291         * doc/invoke.texi (-fwhole-program option): Change description of
22292         externally_visible attribute accordingly.
22293         * doc/extend.texi (externally_visible): Ditto.
22294
22295 2010-06-27  Jan Hubicka  <jh@suse.cz>
22296
22297         * params.def (max-inline-insns-auto): Default to 40.
22298         * doc/invoke.texi (max-inline-insns-auto): Document the change.
22299
22300 2010-06-27  Jan Hubicka  <jh@suse.cz>
22301
22302         PR middle-end/44671
22303         PR middle-end/44686
22304         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
22305         signature change.
22306         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
22307         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
22308
22309 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
22310
22311         * target.h (struct gcc_target): Add register_move_cost field.
22312         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
22313         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
22314         * targhooks.c (default_register_move_cost): New function.
22315         * targhooks.h (default_register_move_cost): Declare function.
22316         * defaults.h (REGISTER_MOVE_COST): Delete.
22317         * ira-int.h (ira_register_move_cost): Update comment.
22318         * ira.c (ira_register_move_cost): Update comment.
22319         * reload.h (register_move_cost): Declare.
22320         * reginfo.c (register_move_cost): New function.
22321         (move_cost): Update comment.
22322         (init_move_cost, memory_move_secondary_cost): Replace
22323         REGISTER_MOVE_COST with register_move_cost.
22324         * postreload.c (reload_cse_simplify_set): (Ditto.).
22325         * reload.c (find_valid_class, find_reloads): (Ditto.).
22326         * reload1.c (choose_reload_regs): (Ditto.).
22327         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
22328         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
22329         * doc/md.texi (can_create_pseudo_p): Update documentation.
22330
22331         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22332         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22333         * config/i386/i386.h (ix86_memory_move_cost): Make static.
22334         (TARGET_MEMORY_MOVE_COST): Define.
22335
22336         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22337         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
22338         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
22339         (TARGET_MEMORY_MOVE_COST): Define.
22340
22341 2010-06-27  Richard Guenther  <rguenther@suse.de>
22342
22343         PR tree-optimization/44683
22344         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
22345         false edge from the inverted condition.
22346
22347 2010-06-27  Richard Guenther  <rguenther@suse.de>
22348
22349         PR middle-end/44684
22350         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
22351         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
22352         for register LHS.  Or non-store assignments.
22353
22354 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
22355
22356         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
22357         (sparc_emit_set_const64): Likewise.  Remove disabled code.
22358         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
22359         (sparc_emit_set_const64): Likewise.
22360
22361 2010-06-26  Catherine Moore  <clm@codesourcery.com>
22362
22363         * config/mips/mips.md (alu_type): New attribute.
22364         (type): Infer type from alu_type.
22365         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
22366         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
22367         *subsi3_extended, negsi2, negdi2, *low<mode>,
22368         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
22369         xor<mode>3, *nor<mode>3,
22370         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
22371         *zero_extendhi_truncqi):  Set alu_type instead of type.
22372
22373 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
22374
22375         * config/alpha/alpha.c (alpha_need_linkage): Adjust
22376         splay_tree_new_ggc call.
22377         (alpha_use_linkage): Likewise.
22378
22379 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22380
22381         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
22382         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
22383         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
22384         (static_specs): Remove switches_need_spaces.
22385         (process_command, do_self_spec): Hardcode handling "-o" instead of
22386         checking switches_need_spaces.
22387         * system.h (SWITCHES_NEED_SPACES): Poison.
22388
22389 2010-06-26  Richard Guenther  <rguenther@suse.de>
22390
22391         PR tree-optimization/44393
22392         * tree-loop-distribution.c (generate_loops_for_partition): Fix
22393         stmt removal and VOP renaming.
22394         (generate_memset_zero): Remove redundant stmt updating.
22395         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
22396         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
22397
22398 2010-06-26  Jan Hubicka  <jh@suse.cz>
22399
22400         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
22401         edges comming from header are equivalent.
22402         (visit_bb): Handle PHIs correctly.
22403         * tree-inline.c (copy_phis_for_bb): Be able to copy
22404         PHI from entry edge.
22405         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
22406
22407 2010-06-26  Richard Guenther  <rguenther@suse.de>
22408
22409         PR middle-end/44674
22410         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
22411         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
22412
22413 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22414
22415         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
22416         add_infile, alloc_switch): New.
22417         (process_command): Remove variable lang_n_infiles.  Process
22418         options in a single pass.  Use new functions for allocating
22419         infiles and switches arrays.  Properly skip operands of
22420         -Xpreprocessor and -Xassembler.
22421
22422 2010-06-26  Jan Hubicka  <jh@suse.cz>
22423
22424         PR middle-end/44671
22425         * cgraphunit.c (cgraph_function_versioning): Remove wrong
22426         cgraph_make_decl_local call; fix typo copying RTL data.
22427
22428 2010-06-25  DJ Delorie  <dj@redhat.com>
22429
22430         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
22431         (m32c_output_aligned_common): Likewise.
22432         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22433         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22434         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
22435         (m32c_register_pragmas): Register it.
22436         * config/m32c/m32c.c (m32c_get_pragma_address): New.
22437         (m32c_insert_attributes): Set #pragma address decls volatile.
22438         (pragma_entry_eq): New.
22439         (pragma_entry_hash): New.
22440         (m32c_note_pragma_address): New.
22441         (m32c_get_pragma_address): New.
22442         (m32c_output_aligned_common): New.
22443         * doc/extend.texi: Document the new pragma.
22444
22445         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
22446         also.
22447         * config/m32c/predicates.md (m32c_any_operand): Check the code
22448         instead of memory_operand so as to allow matching volatile MEMs.
22449         (m32c_nonimmediate_operand): Likewise.
22450         (mra_operand): Allow volatiles.
22451
22452 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
22453
22454         PR debug/44610
22455         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
22456         address if the offset is unknown.
22457
22458 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
22459
22460         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
22461         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
22462         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
22463         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
22464         to ia64_start_function. Invoke it.
22465         * config/ia64/ia64.c (ia64_start_function): Call new function
22466         dwarf2out_vms_debug_main_pointer.
22467
22468 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22469
22470         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
22471         statements computing the true predicate.
22472
22473 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22474
22475         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
22476         to boolean_true_node.
22477         (reset_bb_predicate): New.
22478         (predicate_bbs): Call reset_bb_predicate.
22479
22480 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22481
22482         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
22483         (tree_if_conversion): Returns true when something has been changed.
22484         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
22485         changed something.
22486
22487 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22488
22489         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
22490         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
22491         * tree-if-conv.c: Include dbgcnt.h.
22492         (tree_if_conversion): Use if_conversion_tree to count the number of
22493         if-convertible loops.
22494
22495 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
22496
22497         * common.opt (fprefetch-loop-arrays): Re-define
22498         -fprefetch-loop-arrays as a tri-state option with the initial
22499         value of -1.
22500         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
22501         pass only when flag_prefetch_loop_arrays > 0.
22502         * toplev.c (process_options): Note that, with tri-states,
22503         flag_prefetch_loop_arrays>0 means prefetching is enabled.
22504         * config/i386/i386.c (override_options): Enable prefetching at -O3
22505         for a set of CPUs that sw prefetching is helpful.
22506         (software_prefetching_beneficial_p): New.  Return TRUE if software
22507         prefetching is beneficial for the given CPU.
22508
22509 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22510
22511         PR rtl-optimization/44326
22512         * implicit-zee.c (find_removable_zero_extends): Replace
22513         INSN_P with NONDEBUG_INSN_P.
22514
22515 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22516
22517         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
22518         (struct ipa_node_params): Removed the modification_analysis_done flag.
22519         (ipa_is_param_modified): Removed.
22520         (ipa_analyze_node): Declare.
22521         (ipa_compute_jump_functions): Remove declaration.
22522         (ipa_count_arguments): Likewise.
22523         (ipa_detect_param_modifications): Likewise.
22524         (ipa_analyze_params_uses): Likewise.
22525         * ipa-prop.c (struct param_analysis_info): New type.
22526         (visit_store_addr_for_mod_analysis): Removed.
22527         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
22528         moved down in the file.
22529         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
22530         (ipa_count_arguments): Made static.
22531         (mark_modified): New function.
22532         (is_parm_modified_before_call): New function.
22533         (compute_pass_through_member_ptrs): New parameter parms_info, call
22534         is_parm_modified_before_call instead of ipa_is_param_modified.
22535         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
22536         it to compute_pass_through_member_ptrs.
22537         (ipa_compute_jump_functions): New parameter parms_info, pass it to
22538         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
22539         on the callee if it is analyzed.  Made static.
22540         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
22541         is_parm_modified_before_call instead of ipa_is_param_modified.
22542         (ipa_analyze_call_uses): New parameter parms_info, pass it to
22543         ipa_analyze_indirect_call_uses.
22544         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
22545         ipa_analyze_call_uses.
22546         (ipa_analyze_params_uses): New parameter parms_info, pass it to
22547         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
22548         (ipa_analyze_node): New function.
22549         (ipa_print_node_params): Do not dump the modified flag.
22550         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
22551         it.  Do not stream the modified parameter flag.
22552         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
22553         it.  Do not stream the modified parameter flag.
22554         * ipa-cp.c (ipcp_analyze_node): Removed.
22555         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
22556         with only a call to ipa_analyze_node.
22557         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
22558         node with only a call to ipa_analyze_node.
22559
22560 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22561
22562         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
22563
22564 2010-06-25  Jan Hubicka  <jh@suse.cz>
22565
22566         * tree-pass.h (pass_split_functions): Declare.
22567         * opts.c (decode_options): Enable function splitting at -O2
22568         * timevar.def (TV_IPA_FNSPLIT): New macro.
22569         * ipa-split.c: New file.
22570         * common.opt (-fpartial-inlining): New flag.
22571         * Makefile.in (ipa-split.o): New object file.
22572         * passes.c (init_optimization_passes): Add ipa-split.
22573         * params.def (partial-inlining-entry-probability): New parameters.
22574         * doc/invoke.texi (-fpartial-inlining): New.
22575
22576 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22577
22578         PR 44665
22579         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
22580         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
22581         (gimplify_expr): Likewise.
22582
22583 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22584
22585         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
22586         statements instead of bailing out on them.
22587         (ipa_analyze_indirect_call_uses): Do not require that loads from the
22588         parameter are in the same BB as the condition.  Update comments.
22589
22590 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
22591
22592         PR middle-end/43866
22593         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
22594         true or always false, return NULL_TREE.
22595         (tree_unswitch_single_loop): Optimize conditions even when reaching
22596         max-unswitch-level parameter.  If num > 0, optimize first all conditions
22597         using entry checks, then do still reachable block discovery and consider
22598         only conditions in still reachable basic blocks in the loop.
22599
22600         PR tree-optimization/44539
22601         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
22602         the call doesn't have LHS, but has VDEF.
22603
22604 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22605
22606         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
22607         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
22608         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
22609         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
22610         * system.h (MODIFY_TARGET_NAME): Poison.
22611
22612 2010-06-25  Alan Modra  <amodra@gmail.com>
22613
22614         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
22615         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
22616         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22617         CMODEL_LARGE as default.
22618         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
22619         (offsettable_ok_by_alignment): Delete.
22620         (rs6000_emit_move): Remove mcmodel=medium optimization.
22621
22622 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22623
22624         With large parts from Jim Wilson:
22625         PR target/43902
22626         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
22627         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22628         * optabs.c (optab_for_tree_code): Likewise.
22629         (expand_widen_pattern_expr): Likewise.
22630         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
22631         out of execute_optimize_widening_mul.
22632         (convert_plusminus_to_widen): New function.
22633         (execute_optimize_widening_mul): Use the two new functions.
22634         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
22635         Remove code to generate widening multiply-accumulate.  Add support
22636         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22637         * gimple-pretty-print.c (dump_ternary_rhs): New function.
22638         (dump_gimple_assign): Call it when appropriate.
22639         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
22640         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
22641         (expand_gimple_stmt_1): Likewise.
22642         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
22643         WIDEN_MULT_MINUS_EXPR.
22644         * tree-ssa-operands.c (get_expr_operands): Likewise.
22645         * tree-inline.c (estimate_operator_cost): Likewise.
22646         * gimple.c (extract_ops_from_tree_1): Renamed from
22647         extract_ops_from_tree.  Add new arg for a third operand; fill it.
22648         (gimple_build_assign_stat): Support operations with three operands.
22649         (gimple_build_assign_with_ops_stat): Likewise.
22650         (gimple_assign_set_rhs_from_tree): Likewise.
22651         (gimple_assign_set_rhs_with_ops_1): Renamed from
22652         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
22653         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
22654         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
22655         WIDEN_MULT_MINUS_EXPR.
22656         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
22657         (extract_ops_from_tree_1): Adjust declaration.
22658         (gimple_assign_set_rhs_with_ops_1): Likewise.
22659         (gimple_build_assign_with_ops): Pass NULL for last operand.
22660         (gimple_build_assign_with_ops3): New macro.
22661         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
22662         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
22663         functions.
22664         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
22665         (verify_gimple_assign): Call it.
22666         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
22667         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
22668         functions for dealing with three-operand statements.
22669         * tree.c (commutative_ternary_tree_code): New function.
22670         * tree.h (commutative_ternary_tree_code): Declare it.
22671         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
22672         ternary statements.
22673         (gimple_assign_nonzero_warnv_p): Likewise.
22674         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
22675         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
22676         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
22677         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
22678         (struct hashtable_expr): New member ternary in the union.
22679         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
22680         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
22681         (iterative_hash_hashable_expr): Likewise.
22682         (print_expr_hash_elt): Handle EXPR_TERNARY.
22683         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
22684         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
22685         statements.  Handle GIMPLE_TERNARY_RHS.
22686
22687 2010-06-25  Jan Hubicka  <jh@suse.cz>
22688
22689         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
22690
22691 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
22692
22693         PR c/44517
22694         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
22695         parameters are not good.
22696         (c_parser_parameter_declaration): Error unknown type name if the type
22697         name can't start declaration specifiers.
22698
22699 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22700
22701         * gcc.c (translate_options): Don't mention +e in comment.
22702         (process_command): Don't handle +e specially.
22703
22704 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22705
22706         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
22707
22708         * ira-build.c (merge_hard_reg_conflicts): New function.
22709         (create_cap_allocno, copy_info_to_removed_store_destinations,
22710         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
22711         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
22712         (remove_unnecessary_allocnos, remove_low_level_allocnos)
22713         copy_nifo_to_removed_store_destination): Use them.
22714         * ira-lives.c (make_hard_regno_born): New function, split out of
22715         make_regno_born.
22716         (make_allocno_born): Likewise.
22717         (make_hard_regno_dead): New function, split out of make_regno_dead.
22718         (make_allocno_dead): Likewise.
22719         (inc_register_pressure): New function, split out of set_allocno_live.
22720         (dec_register_pressure): New function, split out of clear_allocno_live.
22721         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
22722         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
22723         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
22724         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
22725         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
22726         mark_pseudo_regno_live.
22727         (process_bb_node_lives): Use mark_pseudo_regno_live,
22728         make_hard_regno_born and make_allocno_dead.
22729         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
22730         set_allocno_live, clear_allocno_live): Delete functions.
22731
22732         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
22733         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
22734         functions.
22735         (ira_flattening): Use ira_parent_allocno.
22736         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
22737         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
22738
22739         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
22740         statement.
22741
22742         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
22743         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
22744         minmax_set_iter_cond, minmax_set_iter_next,
22745         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
22746         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
22747         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
22748         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
22749         uses changed.
22750
22751         * ira-int.h (struct live_range, live_range_t): Renamed from struct
22752         ira_allocno_live_range and allocno_live_range_t; all uses changed.
22753         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
22754         All uses changed.
22755
22756 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
22757
22758         * thumb2.md (thumb2_tlobits_cbranch): Delete.
22759         (peephole2 to convert zero_extract/compare of single bit to
22760          lshift/compare): New.
22761
22762 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
22763
22764         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
22765         recursive call and call to 'int_const_binop'.
22766         (build_range_check, fold_cond_expr_with_comparison, unextend,
22767         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
22768         multiple_of_p): Adjust call to const_binop.
22769
22770 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
22771
22772         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
22773         determine size of XFmode operand.
22774         (XFmode extended DFmode push splitter): Ditto.
22775         (XFmode extended SFmode push splitter): Ditto.
22776
22777 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22778
22779         PR target/44588
22780         * config/i386/i386.md (extract_code): New.
22781         (<u>divmodqi4): Likewise.
22782         (divmodhiqi3): Likewise.
22783         (udivmodhiqi3): Likewise.
22784         (<u>divqi3): Remvoved.
22785
22786 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
22787
22788         PR middle-end/44492
22789         * recog.h (struct recog_data): Add is_asm field.
22790         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
22791         present in constraints of inline-asm operand and memory operand
22792         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
22793         (extract_insn): Initialize recog_data.is_asm.
22794         * doc/md.texi (Constraints): Document operand side-effect rules.
22795
22796 2010-06-24  Andi Kleen  <ak@linux.intel.com>
22797
22798         * c-parser.c (c_parser_conditional_expression): Call
22799         warn_for_omitted_condop.
22800         * doc/invoke.texi: Document omitted condop warning.
22801
22802 2010-06-24  Nick Clifton<nickc@redhat.com>
22803
22804         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
22805         insn in the sequence is a jump insn before setting its label.
22806
22807 2010-06-24  Alan Modra  <amodra@gmail.com>
22808
22809         * collect2.c (main): Match exactly --version and --help.
22810
22811 2010-06-24  DJ Delorie  <dj@redhat.com>
22812
22813         * config/m32c/m32c-pragma.c: Don't include rtl.h.
22814
22815 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
22816
22817         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
22818         using X87MODEF mode iterator.
22819         (pushsf splitter): Macroize splitter using P mode iterator.
22820         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
22821         mode iterator.
22822
22823         (*movxf_internal): Rename from *movxf_integer.
22824         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
22825         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
22826         (*movdf_internal): Rename from *movdf_integer.
22827         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
22828         (*movsf_internal): Rename from *movdf_1.
22829
22830 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
22831
22832         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
22833         (const_gimple_seq_node): Removed typedefs.
22834
22835         * gimple.h (gimple_seq_node_d, gimple_seq_node)
22836         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
22837
22838 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22839
22840         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
22841         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
22842         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
22843         and CODE_FOR_vec_extract_lo_v4df.
22844
22845         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
22846         Changed to define_insn_and_split.
22847         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
22848         (vec_extract_lo_v16hi): Likewise.
22849         (vec_extract_lo_v32qi): Likewise.
22850         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
22851         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
22852
22853 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
22854
22855         PR target/44640
22856         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
22857         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
22858         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
22859         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
22860         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
22861
22862         PR target/44640
22863         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
22864
22865         PR other/44644
22866         * df-core.c (struct df): Rename to df_d.
22867         * df.h (struct df): Likewise.
22868         * dse.h (struct df): Remove forward declaration.
22869         * recog.h (struct insn_data): Rename to:
22870         (struct_insn_data_d).  Adjusted all users.
22871
22872 2010-06-23  Arnaud Charlet  <charlet@adacore.com
22873
22874         PR ada/22220
22875         * doc/install.texi: Update requirements to build GNAT.
22876
22877 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
22878
22879         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
22880         enum type.
22881         (m68k_sched_attr_opx_type): Remove unreachable return.
22882         (m68k_sched_attr_opy_type): Likewise.
22883         (m68k_sched_attr_size): Likewise.
22884         (sched_get_opxy_mem_type): Likewise.
22885         (m68k_sched_attr_op_mem): Likewise.
22886
22887 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
22888
22889         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
22890         new statement and adjust VDEF only if necessary.  Remove superfluous
22891         call to maybe_clean_or_replace_eh_stmt.
22892         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
22893         copy the flags.
22894         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
22895         * tree-inline.c (copy_bb): ...and not there.
22896
22897 2010-06-22  Cary Coutant  <ccoutant@google.com>
22898
22899         * dwarf2out.c (is_nested_in_subprogram): New function.
22900         (should_move_die_to_comdat): Use it.
22901         (copy_ancestor_tree): Don't mark DIEs here.
22902         (copy_decls_walk): Start walk from root of newly-added tree;
22903         mark DIEs here instead.
22904
22905 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22906
22907         * config/i386/i386.md (unit): Also check sseishft1.
22908
22909 2010-06-22  Jan Hubicka  <jh@suse.cz>
22910
22911         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
22912         enabled.
22913
22914 2010-06-22  Jan Hubicka  <jh@suse.cz>
22915
22916         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
22917         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
22918         Return true if something changed.
22919         * df.h (df_confluence_function_n): Return bool.
22920         * df-core.c (df_worklist_propagate_forward,
22921         df_worklist_propagate_backward): Track changes and ages.
22922         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
22923         track ages.
22924         * dse.c (dse_confluence_n): Return always true.
22925
22926 2010-06-22  Jan Hubicka  <jh@suse.cz>
22927
22928         * bitmap.c (bitmap_clear_bit): Micro optimize.
22929
22930 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
22931
22932         * config/i386/i386.md (SWI1248x): New mode iterator.
22933         (SWI48x): Ditto.
22934         (SWI12): Ditto.
22935         (SWI24): Ditto.
22936
22937         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
22938         SWI1248x mode iterator.
22939         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
22940         using SWI124 mode iterator.
22941         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
22942         mode iterator.
22943         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
22944         *pushdi2_prologue_rex64 using P mode iterator.
22945         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
22946         using SWI48 mode iterator.
22947         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
22948         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
22949         using SWI1248x mode iterator.
22950         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
22951         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
22952         SWI48 mode iterator.
22953         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
22954         iterator.
22955         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
22956         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
22957         SWI12 mode iterator.
22958         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
22959         SWI12 mode iterator.
22960         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
22961         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
22962         SWI24 mode iterator.
22963         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
22964         SWI48 mode iterator.
22965         (mov<mode>_insn_1): New expander.
22966         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
22967         using SWI48x mode iterator.
22968
22969         (*movoi_internal_avx): Rename from *movoi_internal.
22970         (*movti_internal_rex64): Rename from *movti_rex64.
22971         (*movti_internal_sse): Rename from *movti_sse.
22972         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
22973         (*movdi_internal): Rename from *movdi_2.
22974         (*movsi_internal): Rename from *movsi_1.
22975         (*movhi_internal): Rename from *movhi_1.
22976         (*movqi_internal): Rename from *movqi_1.
22977
22978         (insv): Update the call to gen_movsi_insv_1 for rename.
22979         * config/i386/i386.c (promote_duplicated_reg): Ditto.
22980
22981 2010-06-22  Jan Hubicka  <jh@suse.cz>
22982
22983         * passes.c (execute_function_todo): Move call of statistics_fini_pass
22984         to ...
22985         (execute_todo) ... this one.
22986
22987 2010-06-22  Alan Modra  <amodra@gmail.com>
22988
22989         PR target/44364
22990         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22991         * caller-save.c (insert_restore, insert_save): Use non-validate
22992         form of adjust_address.
22993
22994 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22995
22996         PR target/39690
22997         * config/pa/pa.c (override_options): Disable
22998         -freorder-blocks-and-partition.
22999
23000 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
23001
23002         PR target/44615
23003         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23004
23005         * config/i386/i386.md (type): Add sseishft1
23006
23007         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23008         (ppro_insn_load): Likewise.
23009         (ppro_insn_store): Likewise.
23010         (ppro_insn_both): Likewise.
23011
23012         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23013         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23014         for type.
23015         (*vec_extractv2di_1_avx): Likewise.
23016         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23017         type.  Remove atom_unit.
23018         (*vec_extractv2di_1_sse2): Likewise.
23019
23020 2010-06-21  DJ Delorie  <dj@redhat.com>
23021
23022         * diagnostic.h (diagnostic_classification_change_t): New.
23023         (diagnostic_context): Add history and push/pop list.
23024         (diagnostic_push_diagnostics): Declare.
23025         (diagnostic_pop_diagnostics): Declare.
23026         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23027         from pragmas in a history chain instead of the global table.
23028         (diagnostic_push_diagnostics): New.
23029         (diagnostic_pop_diagnostics): New.
23030         (diagnostic_report_diagnostic): Scan history chain to find state
23031         of diagnostics as of the diagnostic location.
23032         * opts.c (set_option): Pass UNKNOWN_LOCATION to
23033         diagnostic_classify_diagnostic.
23034         (enable_warning_as_error): Likewise.
23035         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23036         use in the history chain.
23037         * doc/extend.texi: Document pragma GCC diagnostic changes.
23038
23039 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
23040
23041         * dwarf2out.c (add_linkage_name): New function.  Don't add
23042         anything to DW_TAG_member DIEs.
23043         (add_name_and_src_coords_attributes): Use it.
23044         (gen_variable_die): Call it for C++ static data members if
23045         specification is DW_TAG_member.
23046
23047         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23048         C++ char16_t and char32_t.
23049
23050         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23051         * genattrtab.c: Include vecprim.h.
23052         (cached_attrs, cached_attr_count, attrs_seen_once,
23053         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23054         attrs_cached_after): New variables.
23055         (find_attrs_to_cache): New function.
23056         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23057         (write_test_expr): Add attrs_cached argument, return it too,
23058         attempt to cache non-const attributes used more than once in
23059         a single case handling.
23060         (write_attr_get): Use find_attrs_to_cache, for caching candidates
23061         emit cached_* variables.  Adjust write_attr_set callers.
23062         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23063         to find attributes that should be cached in this block.  Adjust
23064         write_test_expr callers.
23065         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
23066         callers.
23067         (make_automaton_attrs): Adjust write_test_expr caller.
23068
23069         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23070         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23071         (make_automaton_attrs): If find_tune_attr returns non-NULL,
23072         write separate internal_dfa_insn_code_* and insn_default_latency_*
23073         functions for each attribute's value and emit init_sched_attrs
23074         function and function pointers.
23075         * genattr.c (const_attrs, reservations): New variables.
23076         (gen_attr): Add const attributes to const_attrs vector.
23077         (check_tune_attr, find_tune_attr): New functions.
23078         (main): Add reservations to reservations vector.  If find_tune_attr
23079         returns true, add prototype for init_sched_attrs and make
23080         internal_dfa_insn_code and insn_default_latency function pointers,
23081         otherwise define init_sched_attrs as dummy macro.
23082         * cfgexpand.c: Include insn-attr.h.
23083         (gimple_expand_cfg): Call init_sched_attrs.
23084
23085         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23086
23087         PR target/44575
23088         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
23089         va_arg from a set of register save slots into a temporary,
23090         if the container is bigger than type size, do the copying
23091         using smaller mode or using memcpy.
23092
23093         PR bootstrap/44426
23094         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
23095         prototype.
23096         (sel_print_to_dot): Remove macro.
23097         (sel_print): Likewise.  New prototype.
23098         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
23099         (sel_print): New function.
23100
23101 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23102
23103         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
23104         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
23105
23106 2010-06-21  Nick Clifton  <nickc@redhat.com>
23107
23108         * config/rx/rx.h (PTRDIFF_TYPE): Define.
23109         (SMALL_REGISTER_CLASS): Define (to zero).
23110         (PRINT_OPERAND): Delete.
23111         (PRINT_OPERAND_ADDRESS): Delete.
23112         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
23113         (rx_print_operand_address): Delete prototype.
23114         * config/rx/rx.c (rx_print_operand): Make static.
23115         Allow %H and %L to handle CONST_DOUBLEs.
23116         (rx_print_operand_address): Make static.
23117         (rx_gen_move_template): Rename local variable 'template' to
23118         out_template.
23119         (rx_function_arg): Do not pass unknown sized objects in registers.
23120         (TARGET_PRINT_OPERAND): Define.
23121         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23122
23123 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
23124
23125         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
23126
23127 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
23128
23129         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
23130         stack-alignment for simple leaf-functions.
23131
23132 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23133
23134         * doc/install.texi: Document bootstrap-lto.
23135
23136 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23137
23138         PR debug/44248
23139         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
23140         (input_function): Drop them here, if VTA is disabled.
23141
23142 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
23143
23144         PR target/44546
23145         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
23146         New predicate.
23147         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
23148         ix86_swapped_fp_comparsion_operator instead of
23149         ix86_fp_comparison_operator.
23150
23151         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
23152         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
23153         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
23154         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
23155         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
23156         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
23157
23158 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
23159
23160         PR other/32998
23161         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
23162         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
23163         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
23164         (decode_cmdline_option): Update for this return value.  Set
23165         orig_option_with_args_text field.  Set arg field for unknown
23166         options.  Make static.
23167         (decode_cmdline_options_to_array): New.
23168         (prune_options): Update handling of find_opt return value.
23169         * opts.c (read_cmdline_option): Take decoded option.  Return void.
23170         (read_cmdline_options): Take decoded options.
23171         (decode_options): Add parameters for decoded options.  Use
23172         decode_cmdline_options_to_array.  Use decoded options for -O
23173         scan.  Use integral_argument for -O parameters.  Update call to
23174         read_cmdline_options.
23175         (enable_warning_as_error): Update handling of find_opt return value.
23176         * opts.h: Update comment on unknown options.
23177         (struct cl_decoded_option): Update comments on opt_index and arg.
23178         Add orig_option_with_args_text.
23179         (decode_cmdline_option): Remove.
23180         (decode_cmdline_options_to_array): Declare.
23181         (decode_options): Update prototype.
23182         * toplev.c (save_argv): Remove.
23183         (save_decoded_options, save_decoded_options_count): New.
23184         (read_integral_parameter): Remove.
23185         (print_switch_values): Use decoded options.
23186         (toplev_main): Don't set save_argv.  Update call to decode_options.
23187         * toplev.h (read_integral_parameter): Remove.
23188         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
23189
23190 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
23191
23192         PR target/44072
23193         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
23194         immediate.
23195         * constraints.md (Pw, Px): New constraints.
23196         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
23197
23198 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
23199
23200         * config/i386/sse.md (fma4modesuffixf4): Removed.
23201         (ssemodesuffixf2s): Likewise.
23202         (ssemodesuffixf4): Likewise.
23203         (ssemodesuffixf2c): Likewise.
23204         (ssescalarmodesuffix2s): Likewise.
23205         (avxmodesuffixf2c): Likewise.
23206         (ssemodesuffix): New.
23207         (ssescalarmodesuffix): Likewise.
23208         Update patterns with ssemodesuffix and ssescalarmodesuffix.
23209
23210 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
23211
23212         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
23213
23214 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23215
23216         * stor-layout.c (debug_rli): Remove unused local variables.
23217
23218 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
23219
23220         PR rtl-optimization/40900
23221         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
23222         original expression for later reuse.
23223         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
23224         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
23225
23226 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
23227
23228         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
23229         double_int_fits_in_uhwi_p): Implement as static inline.
23230         (double_int_xor): New inline function.
23231         (double_int_lrotate, double_int_rrotate, double_int_max,
23232         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23233         double_int_smin): Declare.
23234         (lrotate_double, rrotate_double): Remove declaration.
23235         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
23236         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
23237         (double_int_lrotate, double_int_rrotate, double_int_max,
23238         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23239         double_int_smin): New function.
23240         * fold-const.c (int_const_binop): Clean up, use double_int_*
23241         functions.
23242         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
23243         double_int_* and immed_double_int_const functions.
23244
23245 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23246
23247         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
23248         * function.c (types_used_by_cur_var_decl): Likewise.
23249         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
23250
23251 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23252
23253         * tree.h (record_layout_info): Change type of pending_statics field
23254         to a VEC.
23255         * stor-layout.c (start_record_layout): Store NULL into
23256         pending_statics.
23257         (debug_rli): Call debug_vec_tree instead of debug_tree.
23258         (place_field): Likewise.
23259         (finish_record_layout): Likewise.
23260
23261 2010-06-18  Alan Modra  <amodra@gmail.com>
23262
23263         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
23264
23265 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23266
23267         PR target/43740
23268         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
23269         for SET source operand from SET destination operand.
23270
23271 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
23272
23273         PR rtl-optimization/39871
23274         * reload1.c (init_eliminable_invariants): For flag_pic, disable
23275         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
23276         (function_invariant_p): Rule out a plus of frame or arg pointer with
23277         a SYMBOL_REF.
23278         * ira.c (find_reg_equiv_invariant_const): Likewise.
23279
23280 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
23281
23282         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
23283         print_operand_address and puts to output the operand for CONST.
23284
23285 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
23286
23287         PR debug/44572
23288         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
23289         hook.
23290
23291 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23292
23293         * v850-protos.h (print_operand): Delete.
23294         (print_operand_address): Delete.
23295         * v850.h (PRINT_OPERAND): Delete.
23296         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23297         (PRINT_OPERAND_ADDRESS): Delete.
23298         * v850.c (print_operand_address): Rename to...
23299         (v850_print_operand_address): ...this.  Make static. Call
23300         v850_print_operand.
23301         (print_operand): Rename to...
23302         (v850_print_operand): ...this.  Make static.  Call
23303         v850_print_operand_address.
23304         (v850_print_operand_punct_valid_p): New function.
23305         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23306         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23307
23308 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23309
23310         * config/sh/sh-protos.h (print_operand): Delete.
23311         (print_operand_address): Delete.
23312         * config/sh/sh.h (PRINT_OPERAND): Delete.
23313         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23314         (PRINT_OPERAND_ADDRESS): Delete.
23315         * config/sh/sh.c (sh_print_operand_address): Make static.
23316         (sh_print_operand): Make static.  Call sh_print_operand_address
23317         and sh_print_operand.
23318         (sh_print_operand_punct_valid_p): New function.
23319         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23320         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23321
23322 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23323
23324         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
23325         (mcore_print_operand_address): Delete.
23326         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
23327         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23328         (PRINT_OPERAND_ADDRESS): Delete.
23329         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
23330         (mcore_print_operand): Make static.
23331         (mcore_print_operand_punct_valid_p): New function.
23332         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
23333         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23334
23335 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23336
23337         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
23338         (print_operand_address): Delete.
23339         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
23340         (PRINT_OPERAND_ADDRESS): Delete.
23341         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
23342         static.
23343         (m68hc11_print_operand): Make static.
23344         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23345
23346 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23347
23348         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
23349         (m32r_print_operand_address): Delete.
23350         * config/m32r/m32r.h (m32r_punct_chars): Delete.
23351         (PRINT_OPERAND): Delete.
23352         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23353         (PRINT_OPERAND_ADDRESS): Delete.
23354         * config/m32r/m32r.c (m32r_punct_chars): Make static.
23355         (m32r_print_operand_address): Make static.
23356         (m32r_print_operand): Make static.
23357         (m32r_print_operand_punct_valid_p): New function.
23358         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23359         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23360
23361 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23362
23363         * config/iq2000/iq2000-protos.h (print_operand): Delete.
23364         (print_operand_address): Delete.
23365         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
23366         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23367         (PRINT_OPERAND_ADDRESS): Delete.
23368         (iq2000_print_operand_punct): Delete.
23369         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
23370         (iq2000_print_operand_address): Make static.
23371         (iq2000_print_operand): Make static.
23372         (iq2000_print_operand_punct_valid_p): New function.
23373         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23374         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23375
23376 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23377
23378         * config/frv/frv-protos.h (frv_print_operand): Delete.
23379         (frv_print_operand_address): Delete.
23380         * config/frv/frv.h (PRINT_OPERAND): Delete.
23381         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23382         (PRINT_OPERAND_ADDRESS): Delete.
23383         * config/frv/frv.c (frv_print_operand_address): Make static.
23384         (frv_print_operand): Make static.
23385         (frv_print_operand_punct_valid_p): New function.
23386         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23387         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23388
23389 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23390
23391         * tree.h (vec_member): Declare.
23392         * tree.c (vec_member): Define.
23393
23394 2010-06-17  Richard Guenther  <rguenther@suse.de>
23395
23396         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
23397         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
23398
23399 2010-06-17  Richard Guenther  <rguenther@suse.de>
23400
23401         * tree-inline.c (declare_return_variable): Remove bogus code.
23402
23403 2010-06-17  Richard Guenther  <rguenther@suse.de>
23404
23405         * gimplify.c (gimplify_bind_expr): Always promote complex
23406         and vector variables to registers if possible.
23407
23408 2010-06-17  Richard Guenther  <rguenther@suse.de>
23409
23410         * expr.c (get_inner_reference): Use double_int for bit_offset
23411         calculation.
23412
23413 2010-06-16  DJ Delorie  <dj@redhat.com>
23414
23415         * common.opt (-fstrict-volatile-bitfields): new.
23416         * doc/invoke.texi: Document it.
23417         * fold-const.c (optimize_bit_field_compare): For volatile
23418         bitfields, use the field's type to determine the mode, not the
23419         field's size.
23420         * expr.c (expand_assignment): Likewise.
23421         (get_inner_reference): Likewise.
23422         (expand_expr_real_1): Likewise.
23423         * expmed.c (store_fixed_bit_field): Likewise.
23424         (extract_bit_field_1): Likewise.
23425         (extract_fixed_bit_field): Likewise.
23426
23427 2010-06-16  Richard Guenther  <rguenther@suse.de>
23428
23429         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
23430
23431 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
23432
23433         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
23434         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
23435         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
23436         * debug.c: Likewise.
23437         * sdbout.c: Likewise.
23438         * vmsdbgout.c: Likewise.
23439         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
23440         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
23441         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
23442         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
23443         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
23444         * dwarf2out.c (dw_fde_struct): New fields
23445         dw_fde_vms_{end,begin}_prologue.
23446         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
23447         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
23448         (dwarf2out_vms_end_prologue): New function.
23449         (dwarf2out_vms_begin_epilogue): New function.
23450         (dw_val_struct): New value dw_val_class_vms_delta.
23451         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
23452         begin_epilogue for VMS.
23453         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
23454         new static functions.
23455         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
23456         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
23457         static functions.
23458         (print_die): New case dw_val_class_vms_delta.
23459         (attr_checksum): Likewise.
23460         (same_dw_val_p: Likewise.
23461         (size_of_die): Likewise.
23462         (value_format): Likewise.
23463         (output_die): Likewise.
23464         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
23465         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
23466         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
23467         dwarf2out_cfi_begin_epilogue
23468         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
23469
23470 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23471
23472         * config/cris/cris-protos.h (cris_print_operand): Delete.
23473         (cris_print_operand_address): Delete.
23474         * config/cris/cris.h (PRINT_OPERAND): Delete.
23475         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23476         (PRINT_OPERAND_ADDRESS): Delete.
23477         * config/cris/cris.c (cris_print_operand_address): Make static.
23478         (cris_print_operand): Make static.
23479         (cris_print_operand_punct_valid_p): New function.
23480         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23481         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23482
23483 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23484
23485         * config/arm/arm-protos.h (arm_print_operand): Delete.
23486         (arm_print_operand_address): Delete.
23487         * config/arm/arm.h (PRINT_OPERAND): Delete.
23488         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23489         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
23490         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
23491         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
23492         (arm_print_operand): Make static.
23493         (arm_print_operand_punct_valid_p): New function.
23494         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23495         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23496
23497 2010-06-16  Nick Clifton  <nickc@redhat.com>
23498
23499         * config/rx/constraints.md (NEGint4): New constraint.
23500         * config/rx/rx.md (attr cc): Add set_zsc.
23501         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
23502         initialised.
23503         (cmpsf): Likewise.
23504         (call_internal): Clobber the cc0 register.
23505         (call_value_internal): Likewise.
23506         (cstoresi4): Likewise.
23507         (movsieq): Likewise.
23508         (movsine): Likewise.
23509         (addsi3): Add alternative to handle small negative constants.
23510         (sunsi3): Likewise.
23511         (addsi3): Do not set the O bit in the cc0 register.
23512         (adddi3): Likewise.
23513         (subsi3): Likewise.
23514         (subdi3): Likewise.
23515         (andsi3): Reorder alternatives to prefer shorter forms.
23516         (mulsi3): Likewise.
23517         (iorsi3): Likewise.
23518         (negsi2): Note that the cc0 flags are set.
23519         (rotlsi3): Note that only the Z and S bits are set in cc0.
23520         (lshrsi3): Likewise.
23521         (ashlsi3): Likewise.
23522         (subsf3): Use %Q for the MEM operand.
23523         (fix_truncsfsi2): Likewise.
23524         (floatsisf2): Likewise.
23525         (bitset): Remove early clobber from destination.
23526         (bitset_in_memory): Likewise.
23527         (lrintsf2): Clobber the cc0 register.
23528         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
23529         (rx_print_operand): Handle %N.
23530
23531 2010-06-16  Jan Hubicka  <jh@suse.cz>
23532
23533         * df-core.c (df_compact_blocks): Free problem_temps vector.
23534
23535 2010-06-16  Martin Jambor  <mjambor@suse.cz>
23536
23537         PR tree-optimization/43905
23538         * tree-sra.c: Include tree-inline.h.
23539         (create_abstract_origin): Removed.
23540         (modify_function): Version the call graph node instead of creating
23541         abstract origins and dealing with same_body aliases.
23542         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
23543         function is versionable.
23544         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
23545
23546 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
23547
23548         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
23549         (CHOOSE_DYNAMIC_LINKER): Update.
23550
23551 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
23552
23553         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
23554         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
23555         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
23556         *prefetch_3dnow_rex.
23557
23558 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
23559
23560         * target.h (struct asm_out):Add declare_constant_name field.
23561         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23562         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
23563         * output.h (default_asm_declare_constant_name): Declare.
23564         (assemble_label): Update prototype.
23565         * varasm.c (assemble_constant_contents): Use
23566         targetm.asm_out.declare_constant_name target hook.
23567         (assemble_label): Add 'file' argument.
23568         (default_asm_declare_constant_name): New function.
23569         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
23570         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
23571         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
23572
23573         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
23574         * config/darwin.c (darwin_asm_declare_constant_name): New function.
23575         (machopic_output_indirection): Update assemble_label argument list.
23576         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
23577         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23578
23579 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
23580
23581         PR middle-end/44391
23582         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23583         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
23584
23585 2010-06-15  Richard Guenther  <rguenther@suse.de>
23586
23587         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
23588
23589 2010-06-15  Paul Brook  <paul@codesourcery.com>
23590
23591         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
23592         hard-float ABI.
23593
23594 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
23595
23596         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
23597         don't get a vector type for output.
23598
23599 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
23600
23601         PR fortran/44536
23602         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
23603         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
23604         (LANG_HOOKS_DECLS): Add it.
23605         * gimplify.c (omp_notice_variable): Call
23606         lang_hooks.decls.omp_report_decl.
23607
23608 2010-06-15  Martin Jambor  <mjambor@suse.cz>
23609
23610         PR lto/44464
23611         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
23612         on the newly dead SSA name.
23613
23614 2010-06-15  Alan Modra  <amodra@gmail.com>
23615
23616         * doc/invoke.texi: Add mcmodel to powerpc options.
23617         * configure.ac: Add HAVE_LD_LARGE_TOC test.
23618         * configure: Regenerate.
23619         * config.in: Regenerate.
23620         * config/rs6000/linux64.opt (mcmodel): New.
23621         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
23622         (TARGET_CMODEL, SET_CMODEL): Define.
23623         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
23624         select CMODEL_MEDIUM default.
23625         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
23626         (TARGET_CMODEL): Define default.
23627         * config/rs6000/rs6000.c (cmodel): New variable.
23628         (rs6000_explicit_options): Add cmodel field.
23629         (rs6000_handle_option): Handle -mcmodel.
23630         (create_TOC_reference): Add largetoc_reg param.  Generate high,
23631         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
23632         (rs6000_delegitimize_address): Recognise new toc reference rtl
23633         and minimal-toc rtl.
23634         (rs6000_legitimize_reload_address): Handle new toc references.
23635         (print_operand_address): Handle legitimate_constant_pool_address_p
23636         match before lo_sum.
23637         (rs6000_eliminate_indexed_memrefs): Tidy.
23638         (rs6000_emit_move): Tweak threshold for inlining constants.
23639         Keep rs6000_emit_allocate_stack large stack frame offsets
23640         loaded into r0 inline.
23641         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
23642         (tocrel_base, tocrel_offset): New variables.
23643         (toc_relative_expr_p): Set them here.
23644         (print_operand_address): Skip over any offset on constant pool address.
23645         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
23646         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
23647         (offsettable_ok_by_alignment): New function.
23648         (rs6000_emit_move): Address suitably aligned local symbol_refs
23649         relative to the toc pointer for -mcmodel=medium.
23650         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
23651         strict param.  Allow lo_sum version of addressing.  Verify reg
23652         used for -mminimal-toc and -mcmodel != small.  Update all callers.
23653         * config/rs6000/constraints.md: Update for above change.
23654         * config/rs6000/predicates.md: Likewise.
23655         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
23656         code.
23657         (tls_gd): Split for -mcmodel=medium/large.
23658         (tls_gd_high, tls_gd_low): New.
23659         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
23660         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
23661         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
23662         (largetoc_high, largetoc_low): New.
23663         (cmptf_internal2): Add clobber.
23664         * config/rs6000/rs6000-protos.h: Update.
23665
23666 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
23667
23668         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
23669         true if no prefetch is going to be generated for a given group.
23670         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
23671         estimate the prefetch_count.
23672         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
23673         prefetch count by considering the unroll_factor and prefetch_mod
23674         for is_loop_prefetching_profitable.
23675
23676 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
23677
23678         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
23679         anything if the argument is not a MEM.
23680
23681 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23682
23683         PR debug/43650
23684         PR debug/44181
23685         PR debug/44247
23686         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
23687         debug stmts.
23688         (canonicalize_loop_ivs): Likewise.
23689
23690 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23691
23692         PR debug/43656
23693         * haifa-sched.c (setup_insn_reg_pressure_info,
23694         update_register_pressure): Reject debug insns.
23695         (ready_sort): Don't setup reg pressure for debug insns.
23696         (schedule_insn): Don't update reg pressure for debug insns.
23697
23698 2010-06-14  Richard Guenther  <rguenther@suse.de>
23699
23700         * lto-streamer.c (cached_bp): Remove.
23701         (bitpack_delete): Likewise.
23702         (bitpack_create): Likewise.
23703         (bp_get_next_word): Likewise.
23704         (bp_pack_value, bp_unpack_value): Move ...
23705         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
23706         Re-implement.
23707         (struct bitpack_d): Likewise.
23708         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
23709         New inline functions.
23710         * lto-streamer-out.c (lto_output_bitpack): Remove.
23711         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23712         (pack_value_fields): Adjust.
23713         (lto_write_tree): Likewise.
23714         (output_gimple_stmt): Likewise.
23715         (output_function): Likewise.
23716         * lto-streamer-in.c (input_gimple_stmt): Adjust.
23717         (input_function): Likewise.
23718         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23719         (lto_input_bitpack): Remove.
23720         (lto_materialize_tree): Adjust.
23721         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
23722         * lto-cgraph.c (lto_output_edge): Adjust.
23723         (lto_output_node): Likewise.
23724         (lto_output_varpool_node): Likewise.
23725         (lto_output_ref): Likewise.
23726         (input_node): Likewise.
23727         (input_varpool_node): Likewise.
23728         (input_ref): Likewise.
23729         (input_edge): Likewise.
23730         (output_node_opt_summary): Likewise.
23731         (input_node_opt_summary): Likewise.
23732         * ipa-pure-const.c (pure_const_write_summary): Likewise.
23733         (pure_const_read_summary): Likewise.
23734         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
23735         (ipa_read_indirect_edge_info): Likewise.
23736         (ipa_write_node_info): Likewise.
23737         (ipa_read_node_info): Likewise.
23738
23739 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23740
23741         PR target/44534
23742         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
23743         (vec_extract_lo_v16hi): Likewise.
23744         (vec_extract_lo_v32qi): Likewise.
23745
23746 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23747
23748         PR bootstrap/44426
23749         * tree.h (build_call_expr): Don't define as vararg macro, instead
23750         add a prototype.
23751         * builtins.c (build_call_nofold): Remove.
23752         (expand_builtin_int_roundingfn, expand_builtin_pow,
23753         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
23754         expand_builtin_memset_args, expand_builtin_strcmp,
23755         expand_builtin_strncmp, expand_builtin_memory_chk): Use
23756         build_call_nofold_loc instead of build_call_nofold.
23757         (build_call_expr): New function.
23758
23759         PR tree-optimization/44508
23760         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
23761         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
23762         don't eliminate trivially dead stmts.
23763         * tree-vrp.c (vrp_finalize): Pass false as last argument
23764         to substitute_and_fold.
23765         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
23766         to substitute_and_fold.
23767         * tree-ssa-ccp.c (ccp_finalize): Likewise.
23768
23769         PR bootstrap/44509
23770         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
23771
23772 2010-06-14  Ira Rosen  <irar@il.ibm.com>
23773
23774         PR tree-optimization/44507
23775         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
23776         to build initial vector for BIT_AND_EXPR.
23777         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
23778
23779 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23780
23781         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
23782         adjust z10prop set_attr.
23783
23784 2010-06-13  Jan Hubicka  <jh@suse.cz>
23785
23786         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
23787         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
23788         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
23789         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
23790         datastructure checks into checking asserts.
23791         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
23792         * tree-ssa-sccvn.c (VN_INFO): Likewise.
23793         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
23794         df_ref_create_structure): Likewise.
23795         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
23796         pool_free): Use gcc_checking_assert.
23797         * alias.c (get_alias_set): Likewise.
23798         * var-tracking.c (variable_htab_free, shared_hash_copy,
23799         canonicalize_values_mark, variable_merge_over_cur): Likewise.
23800         * lto-streamer.c (bp_unpack_value): Likewise.
23801
23802 2010-06-13  Richard Guenther  <rguenther@suse.de>
23803
23804         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
23805         Do not stream but initialize TYPE_CANONICAL to NULL.
23806         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
23807         * gimple.c (gimple_types_compatible_p): Disregard
23808         TYPE_STRUCTURAL_EQUALITY_P.
23809         (gimple_register_type): Use TYPE_CANONICAL as cache.
23810         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
23811         before registering common types.
23812         * config/i386/i386.c (ix86_function_arg_boundary): Do not
23813         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
23814         * tree.h (TYPE_CANONICAL): Clarify documentation.
23815
23816 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
23817
23818         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23819         LIBCALL_VALUE): Remove macros.
23820         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
23821         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23822         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23823         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
23824         (ia64_function_value): Make static. Handle receiving the function
23825         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
23826
23827 2010-06-12  Jan Hubicka  <jh@suse.cz>
23828
23829         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
23830         at correct place.
23831
23832 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
23833
23834         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
23835
23836 2010-06-12  Jan Hubicka  <jh@suse.cz>
23837
23838         * df-core.c (df_clear_bb_info): New function.
23839         (df_set_blocks): bb_info is always allocated.
23840         (df_get_bb_info): Use block_info_elt_size.
23841         (df_set_bb_info): Likewise.
23842         (df_compact_blocks): Update for new block_info.
23843         (grow_bb_info): New function.
23844         * df-problems.c (df_grow_bb_info): Move to df-core.c
23845         (df_rd_set_bb_info): Remove.
23846         (df_rd_free_bb_info): Do not free block pool.
23847         (df_rd_alloc): Do not create pool, use check for
23848         obstack presence instead of NULL pointer for new blocks.
23849         (df_rd_free): DO not free alloc pool; clear block_info.
23850         (problem_RD): Add size of block info structure.
23851         (df_lr_set_bb_info): Remove.
23852         (df_lr_free_bb_info): Do not free block pool.
23853         (df_lr_alloc): Do not create pool, use check for
23854         obstack presence instead of NULL pointer for new blocks.
23855         (df_lr_free): DO not free alloc pool; clear block_info.
23856         (problem_LR): Add size of block info structure.
23857         (df_live_set_bb_info): Remove.
23858         (df_live_free_bb_info): Do not free block pool.
23859         (df_live_alloc): Do not create pool, use check for
23860         obstack presence instead of NULL pointer for new blocks.
23861         (df_live_free): DO not free alloc pool; clear block_info.
23862         (problem_LIVE): Add size of block info structure.
23863         (problem_CHAIN): Add size of block info structure.
23864         (df_byte_lr_set_bb_info): Remove.
23865         (df_byte_lr_free_bb_info): Do not free block pool.
23866         (df_byte_lr_alloc): Do not create pool, use check for
23867         obstack presence instead of NULL pointer for new blocks.
23868         (df_byte_lr_free): DO not free alloc pool; clear block_info.
23869         (problem_BYTE_LR): Add size of block info structure.
23870         (problem_NOTE): Add size of block info structure.
23871         (df_byte_MD_set_bb_info): Remove.
23872         (df_byte_MD_free_bb_info): Do not free block pool.
23873         (df_byte_MD_alloc): Do not create pool, use check for
23874         obstack presence instead of NULL pointer for new blocks.
23875         (df_byte_MD_free): DO not free alloc pool; clear block_info.
23876         (problem_BD): Add size of block info structure.
23877         * df-scan.c (df_scan_free_internal): Free block pool.
23878         (df_scan_set_bb_info): Remove.
23879         (df_scan_free_bb_info): Check for artificial_defs instead
23880         of bb_info being non-NULL.
23881         (df_scan_alloc): DO not create df_scan_block pool.
23882         (problem_SCAN): Set size of block info.
23883         (df_bb_refs_record): Do not allocate bb_info.
23884         * df.h (df_problem): Add block_info_elt_size.
23885         (struct dataflow): Change block_info to void *.
23886         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
23887         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
23888         in-line structures.
23889
23890 2010-06-12  Jan Hubicka  <jh@suse.cz>
23891
23892         PR tree-optimize/44485
23893         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
23894         containing use of return value of noreturn function.
23895
23896 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
23897
23898         * targhooks.c (default_function_value): Don't use
23899         FUNCTION_OUTGOING_VALUE.
23900         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
23901         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
23902
23903 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
23904
23905         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
23906         Add crtfastmath.o to extra_parts.
23907         * config/mips/crtfastmath.c: New.
23908         * config/mips/linux.h (ENDFILE_SPEC): New.
23909
23910 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
23911
23912         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
23913         old_type in parameter.
23914         (gcc_type_for_value): Update call to gcc_type_for_interval.
23915         (compute_type_for_level_1): Renamed compute_type_for_level.
23916         Update call to gcc_type_for_interval.
23917
23918 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23919
23920         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
23921         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
23922
23923 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23924
23925         * opts-common.c: Include options.h.
23926         (integral_argument): Move from opts.c.
23927         (decode_cmdline_option): New.  Based on read_cmdline_option.
23928         * opts.c (integral_argument): Move to opts-common.c.
23929         (read_cmdline_option): Move most contents to
23930         decode_cmdline_option.  Use %qs in diagnostics.
23931         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
23932         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
23933         decode_cmdline_option): New.
23934
23935 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23936
23937         PR target/44481
23938         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
23939         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
23940         (partiysi2_cmp): Ditto.
23941         (*partiyhi2_cmp): Ditto.
23942         (*parityqi2_cmp): Remove.
23943
23944 2010-06-11  Jan Hubicka  <jh@suse.cz>
23945
23946         * bitmap.h (bmp_iter_next_bit): New.
23947         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
23948
23949 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
23950             Eric Botcazou  <ebotcazou@adacore.com>
23951
23952         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
23953         computed cost.
23954
23955 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23956
23957         * config/i386/i386.md (unspec): New define_c_enum.
23958         (unspecv): Ditto.
23959
23960 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
23961
23962         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
23963
23964 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
23965
23966         PR middle-end/44483
23967         * tree-if-conv.c (bb_predicate_s): New struct.
23968         (bb_predicate_p): New.
23969         (bb_has_predicate): New.
23970         (bb_predicate): New.
23971         (set_bb_predicate): New.
23972         (bb_predicate_gimplified_stmts): New.
23973         (set_bb_predicate_gimplified_stmts): New.
23974         (add_bb_predicate_gimplified_stmts): New.
23975         (init_bb_predicate): New.
23976         (free_bb_predicate): New.
23977         (is_predicated): Use bb_predicate.
23978         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
23979         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
23980         before processing their successors.
23981         (clean_predicate_lists): Removed.
23982         (find_phi_replacement_condition): Use bb_predicate.
23983         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
23984         computations.
23985         (insert_gimplified_predicates): New.
23986         (combine_blocks): Call insert_gimplified_predicates.
23987         (tree_if_conversion): Call free_bb_predicate instead of
23988         clean_predicate_lists.
23989
23990 2010-10-11  Paul Brook  <paul@codesourcery.com>
23991
23992         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
23993         * config/arm/arm.c (all_architectures): Change v7e-m default to
23994         cortexm4.
23995         * config/arm/arm-cores.def: Add cortex-m4.
23996         * config/arm/arm-tune.md: Regenerate.
23997
23998 2010-06-11  Jan Hubicka  <jh@suse.cz>
23999
24000         * ipa-pure-const.c (special_builtlin_state): New function.
24001         (check_call): Use it instead of special casign BUILT_IN_RETURN.
24002         (propagate_pure_const): Use it.
24003
24004 2010-06-11  Jan Hubicka  <jh@suse.cz>
24005
24006         * df-problems.c (df_live_scratch): Convert to bitmap_head.
24007         (df_live_alloc): Initialize df_live_scratch when initializing
24008         problem_data.
24009         (df_live_transfer_function): Update uses of df_live_scratch.
24010         (df_live_free): Free problem_data; clear df_live_scratch before
24011         releasing the obstack.
24012         (df_md_free): Free problem data.
24013
24014 2010-06-11  Jan Hubicka  <jh@suse.cz>
24015
24016         * doc/invoke.texi (Wsuggest-attribute): Document.
24017         (Wmissing-noreturn): Remove.
24018         * ipa-pure-const.c (warn_function_noreturn): New function.
24019         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24020         warn_missing_noreturn.
24021         * common.opt (Wsuggest-attribute=noreturn): New.
24022         * tree-flow.h (warn_function_noreturn): Declare.
24023         * tree-cfg.c (execute_warn_function_noreturn): Use
24024         warn_function_noreturn.
24025         (gate_warn_function_noreturn): New.
24026         (pass_warn_function_noreturn): Update.
24027
24028 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24029
24030         * c-typeck.c (handle_warn_cast_qual): Add loc
24031         parameter. Improve warning message.
24032         (build_c_cast): Pass location to handle_warn_cast_qual.
24033
24034 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24035
24036         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24037         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
24038         insn mnemonic.
24039         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24040
24041 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
24042
24043         Fix bootstap on mips
24044         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24045         be naming typedefs.
24046
24047 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
24048
24049         * system.h (helper_const_non_const_cast): New inline for
24050         gcc version <= 4.0.
24051         (CONST_CAST2): For gcc version <= 4.0 use
24052         new helper to do const/non-const casting.
24053
24054 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24055
24056         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24057         * Makefile.in (OBJS-common): Include insn-enums.o.
24058         (insn-enums.o): New rule.
24059         (simple_generated_c): Add insn-enums.c.
24060         (build/genenums.o): New rule.
24061         (genprogmd): Add "enums".
24062         * genconstants.c (print_enum_type): Declare a C string array
24063         for each enum.
24064         * genenums.c: New file.
24065         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24066         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
24067         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24068
24069 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24070
24071         * doc/md.texi (define_enum_attr): Document.
24072         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24073         * read-md.h (lookup_enum_type): Declare.
24074         * read-md.c (lookup_enum_type): New function.
24075         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24076         * genattrtab.c (attr_desc): Add an enum_name field.
24077         (evaluate_eq_attr): Take the associated attribute as argument.
24078         Get the enum prefix from the enum_name field, if defined.
24079         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
24080         (simplify_test_exp): Pass attr to evaluate_eq_attr.
24081         (add_attr_value): New function, split out from...
24082         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
24083         (write_test_expr): Pass attr to evaluate_eq_attr.
24084         (write_attr_get): Use the enum_name as the enum tag, if defined.
24085         (write_attr_valueq): Use the enum_name as a prefix, if defined.
24086         (find_attr): Initialize enum_name.
24087         (main): Handle DEFINE_ENUM_ATTR.
24088         * gensupport.c (process_rtx): Likewise.
24089         * config/mips/mips.h (mips_tune_attr): Delete.
24090         * config/mips/mips.md (cpu): Use define_attr_enum.
24091
24092 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24093
24094         * doc/md.texi (define_c_enum, define_enum): Document.
24095         * read-md.h (md_constant): Add a parent_enum field.
24096         (enum_value, enum_type): New structures.
24097         (upcase_string, traverse_enum_types): Declare.
24098         * read-md.c (enum_types): New variable.
24099         (upcase_string, add_constant): New functions.
24100         (handle_constants): Don't create the hash table here.
24101         Use add_constant.
24102         (traverse_md_constants): Don't check for a null md_constants.
24103         (decimal_string, handle_enum, traverse_enum_types): New functions.
24104         (read_md_files): Initialize md_constants and md_enums.
24105         * genconstants.c (print_md_constant): Ignore info argument.
24106         Only print constants that belong to no enum.
24107         (print_enum_type): New function.
24108         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
24109         for each defined enum type.
24110         * config/mips/mips.md (processor): New define_enum.
24111         (unspec): New define_c_enum.
24112         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
24113         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
24114         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
24115         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
24116         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
24117         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
24118         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
24119         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
24120         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
24121         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
24122         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
24123         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
24124         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
24125         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
24126         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
24127         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
24128         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
24129         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
24130         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
24131         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
24132         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
24133         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
24134         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24135         (UNSPEC_RDDSP): Move to mips-dsp.md.
24136         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
24137         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
24138         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
24139         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
24140         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
24141         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
24142         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
24143         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
24144         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
24145         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
24146         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
24147         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
24148         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
24149         Moved to mips-dspr2.md.
24150         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
24151         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
24152         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
24153         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
24154         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
24155         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
24156         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24157         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24158         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24159         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24160         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24161         UNSPEC_LOONGSON_PSADBH)
24162         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24163         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24164         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
24165         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24166         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24167         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24168         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
24169         (cpu): Update comment.
24170         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
24171         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
24172         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
24173         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
24174         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
24175         UNSPEC_LOONGSON_PCMPEQ)
24176         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
24177         UNSPEC_LOONGSON_PINSR_0)
24178         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24179         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24180         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24181         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24182         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24183         UNSPEC_LOONGSON_PSADBH)
24184         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24185         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24186         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
24187         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24188         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24189         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24190         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
24191         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
24192         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
24193         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
24194         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
24195         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
24196         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
24197         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
24198         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
24199         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
24200         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
24201         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
24202         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
24203         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
24204         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
24205         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
24206         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
24207         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
24208         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
24209         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
24210         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24211         (UNSPEC_RDDSP): Moved from mips.md.
24212         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
24213         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
24214         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
24215         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
24216         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
24217         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
24218         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
24219         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
24220         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
24221         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
24222         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
24223         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
24224         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
24225         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
24226         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
24227         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
24228         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
24229         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
24230         (UNSPEC_SCC): Moved from mips.md.
24231         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
24232         "processor_type" to "processor".
24233         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
24234         * config/mips/mips.h (processor_type): Delete.
24235         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
24236         "processor_type" to "processor".
24237
24238 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24239
24240         * configure.ac (tm_include_list): Add insn-constants.h.
24241         * configure: Regenerate.
24242         * Makefile.in (GTM_H): Move insn-constants.h here from...
24243         (TM_H): ...here.
24244         * mkconfig.sh: Remove special handling for insn-constants.h.
24245
24246 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24247
24248         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
24249         (BUILD_MD): ...this new variable.
24250         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
24251         that include the old contents of simple_generated_h and
24252         simple_generated_c.
24253         (simple_generated_h, simple_generated_c): Include them.  Add
24254         insn-constants.h.
24255         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
24256         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
24257         Remove these dependencies from the main rule and include
24258         insn-conditions.md in the command line only if it appears
24259         in the dependency list.
24260         (insn-constants.h, s-constants): Delete.
24261         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
24262         or gensupport.h.
24263         (build/genmddeps.o): Likewise.
24264         (genprogrtl): New variable that contains everything from genprogmd
24265         except mddeps and constants.
24266         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
24267         depend on $(BUILD_MD)
24268         (genprog): New variable.  Make these programs depend on
24269         $(BUILD_ERRORS).
24270         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
24271         (main): Use read_md_files instead of init_rtx_reader_args.
24272         * genconstants.c: As for genmddeps.c.
24273         * read-md.h (read_skip_construct): Declare.
24274         * read-md.c (read_skip_construct): New function.
24275         (handle_file): Allow a null handle_directive, skipping the
24276         construct if so.
24277         (parse_include): Update the comment accordingly.
24278
24279 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24280
24281         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
24282         * genmddeps.c: Include read-md.h.
24283         (main): Call init_rtx_reader_args instead of init_md_reader_args.
24284         * genattr.c (main): Likewise.
24285         * genattrtab.c (main): Likewise.
24286         * genautomata.c (main): Likewise.
24287         * gencodes.c (main): Likewise.
24288         * genconditions.c (main): Likewise.
24289         * genconfig.c (main): Likewise.
24290         * genconstants.c (main): Likewise.
24291         * genemit.c (main): Likewise.
24292         * genextract.c (main): Likewise.
24293         * genflags.c (main): Likewise.
24294         * genopinit.c (main): Likewise.
24295         * genoutput.c (main): Likewise.
24296         * genpeep.c (main): Likewise.
24297         * genrecog.c (main): Likewise.
24298         * genpreds.c (main): Likewise.
24299         * gensupport.h (in_fname): Move to read-md.h.
24300         (init_md_reader_args_cb): Rename to...
24301         (init_rtx_reader_args_cb): ...this and return a bool.
24302         (init_md_reader_args): Rename to...
24303         (init_rtx_reader_args): ...this and return a bool.
24304         (include_callback): Move to read-md.h.
24305         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
24306         (file_name_list, first_dir_md_include): Move to read-md.c
24307         (first_bracket_include): Delete unused variable.
24308         (last_dir_md_include): Move to read-md.c.
24309         (process_include): Delete, moving code to read-md.c:handle_include.
24310         (process_rtx): Don't handle INCLUDE.
24311         (save_string): Delete.
24312         (rtx_handle_directive): New function.
24313         (init_md_reader_args_cb): Rename to...
24314         (init_rtx_reader_args_cb): ...this and return a boolean success value.
24315         Use read_md_args.
24316         (init_md_reader_args): Rename to...
24317         (init_rtx_reader_args): ...this and return a boolean success value.
24318         * rtl.def (INCLUDE): Delete.
24319         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
24320         argument.
24321         * read-rtl.c (read_conditions): Don't gobble ')' here.
24322         (read_mapping): Likewise.
24323         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
24324         Handle top-level non-rtx constructs here rather than in read_rtx_1.
24325         Store the whole queue in *X.  Remove call to init_md_reader.
24326         (read_rtx_1): Rename to...
24327         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
24328         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
24329         here.
24330         (read_nested_rtx): New function.  Handle (nil) here rather than
24331         in read_rtx_code.
24332         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
24333         gobble ')' here.
24334         * read-md.h (directive_handler_t): New type.
24335         (in_fname, include_callback): Moved from read-md.h.
24336         (read_constants, init_md_reader): Delete.
24337         (read_md_files): Declare.
24338         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
24339         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
24340         from gensupport.c.
24341         (read_constants): Rename to...
24342         (handle_constants): ...this.  Don't gobble ')' here.
24343         (handle_include, handle_file, handle_toplevel_file)
24344         (parse_include): New functions, mostly taken from gensupport.c.
24345         (init_md_reader): Subsume into...
24346         (read_md_files): ...this new function.
24347
24348 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24349
24350         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
24351         (unread_char): Decrement read_md_lineno after putting back '\n'.
24352         * read-md.c (fatal_with_file_and_line): Push back any characters
24353         that we decide not to add to the context.
24354         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
24355         fatal_expected_char in cases where '/' ends a line (for example).
24356         (read_name): Don't increment read_md_lineno here.
24357         (read_escape): Likewise.
24358         (read_quoted_string): Likewise.
24359         (read_braced_string): Likewise.
24360
24361 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24362
24363         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
24364         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
24365         * genconstants.c: Include read-md.h.
24366         * read-rtl.c (md_constants): Move to read-md.c.
24367         (md_name): Move to read-md.h.
24368         (initialize_iterators): Use leading_string_hash instead of def_hash
24369         and leading_string_eq_p instead of def_name_eq_p.
24370         (read_name): Move to read-md.c.
24371         (def_hash, def_name_eq_p): Delete.
24372         (read_constants, traverse_md_constants): Move to read-md.c.
24373         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
24374         * read-md.h: Include hashtab.h.
24375         (md_name): Moved from read-rtl.c.
24376         (md_constant): Moved from read-md.h.
24377         (leading_string_hash, leading_string_eq_p, read_name)
24378         (read_constants, traverse_md_constants): Declare.
24379         * read-md.c (md_constants): Moved from read-rtl.c.
24380         (leading_string_hash, leading_string_eq_p): New functions.
24381         (read_name, read_constants, traverse_md_constants): Moved from
24382         read-rtl.c.
24383
24384 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24385
24386         * read-rtl.c (md_name): New structure.
24387         (read_name): Take an md_name instead of a buffer pointer.
24388         Use the "string" field instead of strcpy when expanding constants.
24389         (read_constants): Remove the tmp_char argument.  Update the calls
24390         to read_name, using two local name buffers instead of the tmp_char
24391         argument.  Merge the constant-creation code.
24392         (read_conditions): Remove the tmp_char argument.  Update the calls
24393         to read_name, using a local name buffer instead of the tmp_char
24394         argument.
24395         (read_mapping): Replace tmp_char variable with a local name buffer.
24396         Update the calls to read_name.
24397         (read_rtx_1): Likewise.  Update the calls to read_constants and
24398         read_conditions.
24399
24400 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24401
24402         * Makefile.in (build/read-md.o): Depend on errors.h.
24403         * read-md.h (error_with_line): Declare.
24404         * read-md.c: Include errors.h.
24405         (message_with_line_1): New function, extracted from...
24406         (message_with_line): ...here.
24407         (error_with_line): New function.
24408         * genattrtab.c: If a call to message_with_line is followed by
24409         "have_error = 1;", replace both statements with a call to
24410         error_with_line.
24411         * genoutput.c: Likewise.
24412         * genpreds.c: Likewise.
24413         * genrecog.c: If a call to message_with_line is followed by
24414         "error_count++;", replace both statements with a call to
24415         error_with_line.
24416         (errorcount): Delete.
24417         (main): Don't check it.
24418         * gensupport.c: If a call to message_with_line is followed by
24419         "errors = 1;", replace both statements with a call to error_with_line.
24420         (errors): Delete.
24421         (process_define_cond_exec): Check have_error instead of errors.
24422         (init_md_reader_args_cb): Likewise.  Don't set errors.
24423
24424 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24425
24426         * read-md.h (read_md_file): Declare.
24427         (read_char, unread_char): New functions.
24428         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24429         (read_quoted_string, read_string): Remove FILE * argument.
24430         * read-md.c (read_md_file): New variable.
24431         (read_md_filename, read_md_lineno): Update comments and remove
24432         unnecessary initialization.
24433         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24434         (read_escape, read_quoted_string, read_braced_string, read_string):
24435         Remove FILE * argument.  Update calls accordingly, using read_char
24436         and unread_char instead of getc and ungetc.
24437         * rtl.h (read_rtx): Remove FILE * argument.
24438         * read-rtl.c (iterator_group): Remove FILE * argument from
24439         "find_builtin".
24440         (iterator_traverse_data): Remove "infile" field.
24441         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
24442         (add_mapping, read_name, read_constants, read_conditions)
24443         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
24444         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
24445         Remove file arguments from all calls, using read_char and unread_char
24446         instead of getc and ungetc.
24447         * gensupport.c (process_include): Preserve read_md_file around
24448         the include.  Set read_md_file to the handle of the included file.
24449         Update call to read_rtx.
24450         (init_md_reader_args_cb): Set read_md_file to the handle of the file
24451         and remove local FILE *.  Update calls to read_rtx.
24452
24453 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24454
24455         * read-md.h (read_rtx_lineno): Rename to...
24456         (read_md_lineno): ...this.
24457         (read_rtx_filename): Rename to...
24458         (read_md_filename): ...this.
24459         (copy_rtx_ptr_loc): Rename to...
24460         (copy_md_ptr_loc): ...this.
24461         (print_rtx_ptr_loc): Rename to...
24462         (print_md_ptr_loc): ...this.
24463         * read-md.c: Likewise.  Update references after renaming.
24464         (string_obstack): Replace RTL with MD in comment.
24465         (set_rtx_ptr_loc): Rename to...
24466         (set_md_ptr_loc): ...this.
24467         (get_rtx_ptr_loc): Rename to...
24468         (get_md_ptr_loc): ...this.
24469         * genconditions.c: Update references after renaming.
24470         * genemit.c: Likewise.
24471         * genoutput.c: Likewise.
24472         * genpreds.c: Likewise.
24473         * gensupport.c: Likewise.
24474         * read-rtl.c: Likewise.
24475
24476 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24477
24478         * Makefile.in (READ_MD_H): New variable.
24479         (BUILD_RTL): Add build/read-md.o.
24480         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
24481         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
24482         (build/genattrtab.o, build/genconditions.o build/genemit.o)
24483         (build/genextract.o, build/genflags.o, build/genoutput.o)
24484         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
24485         (build/read-md.o): New rule.
24486         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
24487         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
24488         * coretypes.h: ...here.
24489         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
24490         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
24491         * genattr.c: Include read-md.h.
24492         * genattrtab.c: Likewise.
24493         * genconditions.c: Likewise.
24494         * genemit.c: Likewise.
24495         * genextract.c: Likewise.
24496         * genflags.c: Likewise.
24497         * genoutput.c: Likewise.
24498         * genpreds.c: Likewise.
24499         * genrecog.c: Likewise.
24500         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
24501         (join_c_conditions, print_c_condition, read_rtx_filename)
24502         (read_rtx_lineno): Move to read-md.h.
24503         * read-rtl.c: Include read-md.h.
24504         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
24505         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
24506         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
24507         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
24508         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
24509         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
24510         (read_braced_string, read_string): Move to read-md.c.
24511         (read_rtx): Move some initialization to init_md_reader and call
24512         init_md_reader here.
24513         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
24514         Move to read-md.h.
24515         * gensupport.c: Include read-md.h.
24516         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
24517         * read-md.h, read-md.c: New files.
24518
24519 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
24520
24521         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24522         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24523         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
24524         * config/moxie/moxie.c (moxie_function_value): Make static.
24525         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
24526         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24527
24528 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24529
24530         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
24531         * dbgcnt.def (tree_sra): New counter.
24532         * tree-sra.c: Include dbgcnt.h.
24533         (gate_intra_sra): Check tree_sra debug counter.
24534
24535 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24536
24537         PR tree-optimization/44258
24538         * tree-sra.c (build_access_subtree): Return false iff there is a
24539         partial overlap.
24540         (build_access_trees): Likewise.
24541         (analyze_all_variable_accesses): Disqualify candidates if
24542         build_access_trees returns true for them.
24543
24544 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
24545
24546         PR debug/41371
24547         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
24548         tail-recurse into canonical node.  Fast-forward over
24549         non-canonical VALUEs.
24550
24551 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
24552
24553         PR boostrap/44470
24554         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
24555         (*addsi_1_zext) <TYPE_LEA>: Likewise.
24556         (add lea splitter): Likewise.
24557         (add_zext lea splitter): Likewise.
24558
24559 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
24560
24561         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
24562
24563 2010-06-10  Jan Hubicka  <jh@suse.cz>
24564
24565         * df-problems.c (df_live_problem_data): Add live_bitmaps.
24566         (df_live_alloc): Initialize problem data and live_osbtacks.
24567         (df_live_finalize): Remove obstack, problem data; do not
24568         clear all bitmaps.
24569         (df_live_top_dump, df_live_bottom_dump): Do not dump old
24570         data when not allocated.
24571         (df_live_verify_solution_start): Do not allocate problem data.
24572         (df_live_verify_solution_end): Check if out is allocated.
24573         (struct df_md_problem_data): New structure.
24574         (df_md_alloc): Allocate problem data.
24575         (df_md_free): Free problem data; do not clear bitmaps.
24576
24577 2010-06-10  Jan Beulich  <jbeulich@novell.com>
24578
24579         PR bootstrap/37304
24580         * configure.ac: Replace $() with ${} when intending to expand
24581         variables rather than invoking commands.
24582         * configure: Re-generate.
24583
24584 2010-06-10  Jan Hubicka  <jh@suse.cz>
24585
24586         PR rtl-optimization/44460
24587         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
24588         TYPE_NEEDS_CONSTRUCTING sanity check.
24589
24590 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
24591
24592         * doc/include/fdl.texi: Move to GFDL version 1.3.
24593
24594         * doc/cpp.texi: Move to GFDL version 1.3.
24595         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
24596         * doc/gccint.texi: Move to GFDL version 1.3.
24597         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
24598         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
24599         * doc/invoke.texi: Move to GFDL version 1.3.
24600
24601 2010-06-09  Jan Hubicka  <jh@suse.cz>
24602
24603         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
24604         Break out from ...
24605         (propagate) ... here; swap the order.
24606
24607 2010-06-09  Jan Hubicka  <jh@suse.cz>
24608
24609         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
24610         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
24611         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
24612         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
24613
24614 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24615
24616         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
24617         Do not the gather memory reference in the outer loop if the step
24618         is not a constant.
24619
24620 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24621
24622         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
24623         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
24624         8 to 4.  Minor change of the related comments.
24625
24626 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24627
24628         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
24629         the scev analysis when the variable is not used outside the loop
24630         in a close phi node: call compute_overall_effect_of_inner_loop.
24631
24632 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24633
24634         * graphite-sese-to-poly.c (single_pred_cond): Renamed
24635         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
24636         (build_sese_conditions_before): Renamed call to single_pred_cond.
24637         (build_sese_conditions_after): Same.
24638
24639 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24640
24641         * graphite-poly.h: Fix comments and indentation.
24642         * graphite-sese-to-poly.c: Same.
24643         (build_sese_conditions_before): Compute stmt and gbb only when needed.
24644         * tree-chrec.c: Fix comments and indentation.
24645         (tree-ssa-loop-niter.c): Same.
24646
24647 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
24648
24649         PR rtl-optimization/42461
24650         * dce.c (deletable_insn_p): Return true for const or pure calls again.
24651         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
24652
24653 2010-06-09  Jan Hubicka  <jh@suse.cz>
24654
24655         * bitmap.c (bitmap_and): Walk array forward.
24656         (bitmap_and_compl_into): Likewise.
24657         (bitmap_xor): Likewise.
24658         (bitmap_xor_into):  Likewise.
24659         (bitmap_equal_p): Likewise.
24660         (bitmap_intersect_p): Likewise.
24661         (bitmap_intersect_compl_p): Likewise.
24662         (bitmap_ior_and_into): Likewise.
24663         (bitmap_elt_copy): Likewise.
24664         (bitmap_and_compl): Likewise.
24665         (bitmap_elt_ior): Likewise.
24666
24667 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
24668
24669         * opts-common.c (prune_options): Ensure replacement argv array
24670         is correctly terminated by a NULL entry.
24671
24672 2010-06-09  Jan Hubicka  <jh@suse.cz>
24673
24674         * cgraph.h (varpool_first_static_initializer,
24675         varpool_next_static_initializer): Make checking only when
24676         checking enabled.
24677         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
24678         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
24679         gcc_assert to gcc_checking_assert.
24680         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
24681         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
24682         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
24683         op_iter_init_phiuse, op_iter_init_phidef,
24684         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
24685         gcc_checking_assert.
24686         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
24687         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
24688         partition_is_global, live_on_entry, live_on_exit,
24689         live_merge_and_clear): Likewise.
24690         * system.h (gcc_checking_assert): New macro.
24691         * gimple.h (set_bb_seq): Use gcc_checking_assert.
24692
24693 2010-06-09  Jason Merrill  <jason@redhat.com>
24694
24695         * Makefile.in (TAGS): Collect tags info from c-family.
24696
24697 2010-06-09  Jan Hubicka  <jh@suse.cz>
24698
24699         * gimple.h (gcc_gimple_checking_assert): New macro.
24700         (gimple_set_def_ops, gimple_set_use_ops,
24701         gimple_set_vuse, gimple_set_vdef,
24702         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
24703         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
24704         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
24705         gimple_asm_output_op, gimple_asm_output_op_ptr,
24706         gimple_asm_set_output_op, gimple_asm_clobber_op,
24707         gimple_asm_set_clobber_op, gimple_asm_label_op,
24708         gimple_asm_set_label_op, gimple_try_set_kind,
24709         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
24710         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
24711         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
24712         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
24713         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
24714         gimple_omp_for_set_initial, gimple_omp_for_final,
24715         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
24716         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
24717         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
24718         conditional with ENABLE_GIMPLE_CHECKING.
24719         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
24720
24721 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
24722
24723         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
24724         (get_computation_cost_at): Use it.
24725         (determine_use_iv_cost_condition): Likewise.
24726         (determine_iv_cost): Likewise.
24727
24728 2010-06-09  Richard Guenther  <rguenther@suse.de>
24729
24730         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
24731         replace constants.
24732
24733 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
24734
24735         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
24736
24737 2010-06-09  Martin Jambor  <mjambor@suse.cz>
24738
24739         PR tree-optimization/44423
24740         * tree-sra.c (dump_access): Dump also grp_assignment_read.
24741         (analyze_access_subtree): Pass negative allow_replacements to children
24742         if the current type is scalar.
24743
24744 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24745
24746         PR testsuite/42843
24747         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
24748         * doc/plugins.texi (Plugin license check): Update information
24749         on type of plugin_is_GPL_compatible.
24750         * Makefile.in (PLUGINCC): Define as $(COMPILER).
24751         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
24752
24753 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
24754
24755         * config/arm/arm.c (thumb2_reorg): New function.
24756         (arm_reorg): Call it.
24757         * config/arm/thumb2.md (define_peephole2 for flag clobbering
24758         arithmetic operations): Delete.
24759
24760 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
24761
24762         PR target/44067
24763         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
24764         e500v2 target.
24765
24766 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24767
24768         PR plugins/44459
24769         * gcc-plugin.h: Encapsulate all declarations in extern "C".
24770
24771 2010-06-08  Jan Hubicka  <jh@suse.cz>
24772
24773         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
24774         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
24775
24776 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
24777
24778         PR tree-optimization/39874
24779         PR middle-end/28685
24780         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
24781         Declare.
24782         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
24783         same_bool_result_p): New.
24784         (and_var_with_comparison, and_var_with_comparison_1,
24785         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
24786         (or_var_with_comparison, or_var_with_comparison_1,
24787         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
24788         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
24789         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
24790         of combine_comparisons.
24791         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
24792
24793 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
24794
24795         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24796         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24797         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
24798         pdp11_function_value_regno_p): New functions.
24799         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24800         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24801
24802 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
24803
24804         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
24805         Thumb-2 in the MINUS case.
24806
24807 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24808
24809         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
24810
24811         * doc/gty.texi (GTY Options): Document typed GC allocation and
24812         variable_size GTY option.
24813
24814         * ggc-internal.h: New.
24815
24816         * ggc.h: Update copyright year.
24817         (digit_string): Move to stringpool.c.
24818         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
24819         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
24820         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
24821         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
24822         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
24823         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
24824         (ggc_force_collect, ggc_get_size, ggc_statistics)
24825         (ggc_print_common_statistics): Move to ggc-internal.h.
24826         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
24827         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
24828         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
24829         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
24830         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
24831         (ggc_alloc_zone_pass_stat): Remove.
24832         (ggc_internal_alloc_stat, ggc_internal_alloc)
24833         (ggc_internal_cleared_alloc_stat): New.
24834         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
24835         (ggc_internal_vec_alloc_stat)
24836         (ggc_internal_cleared_vec_alloc_stat)
24837         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
24838         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
24839         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
24840         (ggc_cleared_alloc_ptr_array_two_args): New.
24841         (htab_create_ggc, splay_tree_new_ggc): Redefine.
24842         (ggc_splay_alloc): Change the type of the first argument to
24843         enum gt_types_enum.
24844         (ggc_alloc_string): Make macro.
24845         (ggc_alloc_string_stat): New.
24846         (ggc_strdup): Redefine.
24847         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
24848         (ggc_alloc_rtvec_sized): New.
24849         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
24850         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
24851         (ggc_internal_cleared_alloc_zone_stat)
24852         (ggc_internal_zone_alloc_stat)
24853         (ggc_internal_zone_cleared_alloc_stat)
24854         (ggc_internal_zone_vec_alloc_stat)
24855         (ggc_alloc_zone_rtx_def_stat)
24856         (ggc_alloc_zone_tree_node_stat)
24857         (ggc_alloc_zone_cleared_tree_node_stat)
24858         (ggc_alloc_cleared_gimple_statement_d_stat): New.
24859
24860         * ggc-common.c: Include ggc-internal.h.
24861         (ggc_internal_cleared_alloc_stat): Rename from
24862         ggc_alloc_cleared_stat.
24863         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
24864         (ggc_calloc): Remove.
24865         (ggc_cleared_alloc_htab_ignore_args): New.
24866         (ggc_cleared_alloc_ptr_array_two_args): New.
24867         (ggc_splay_alloc): Add obj_type parameter.
24868         (init_ggc_heuristics): Formatting fixes.
24869
24870         * ggc-none.c: Update copyright year.
24871         (ggc_alloc_stat): Rename to ggc_alloc_stat.
24872         (ggc_alloc_cleared_stat): Rename to
24873         ggc_internal_cleared_alloc_stat.
24874         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24875
24876         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
24877         Remove references to ggc_alloc in comments.
24878         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
24879         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
24880         (new_ggc_zone, destroy_ggc_zone): Remove.
24881         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24882
24883         * ggc-zone.c: Include ggc-internal.h.  Remove references to
24884         ggc_alloc in comments.
24885         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
24886         (ggc_internal_alloc_zone_pass_stat): New.
24887         (ggc_internal_cleared_alloc_zone_stat): New.
24888         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
24889         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
24890         (new_ggc_zone, destroy_ggc_zone): Remove.
24891
24892         * stringpool.c: Update copyright year.  Include ggc-internal.h
24893         (digit_vector): Make static.
24894         (digit_string): Moved from ggc.h.
24895         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
24896         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
24897
24898         * Makefile.in (GGC_INTERNAL_H): New.
24899         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
24900         $(GGC_INTERNAL_H) to dependencies.
24901
24902         * gengtype.c: Update copyright year.
24903         (walk_type): Accept variable_size GTY option.
24904         (USED_BY_TYPED_GC_P): New macro.
24905         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
24906         whitespace at the end of strings.
24907         (get_type_specifier, variable_size_p): New functions.
24908         (alloc_quantity, alloc_zone): New enums.
24909         (write_typed_alloc_def): New function.
24910         (write_typed_struct_alloc_def): Likewise.
24911         (write_typed_typed_typedef_alloc_def): Likewise.
24912         (write_typed_alloc_defns): Likewise.
24913         (output_typename, write_splay_tree_allocator_def): Likewise.
24914         (write_splay_tree_allocators): Likewise.
24915         (main): Call write_typed_alloc_defns and
24916         write_splay_tree_allocators.
24917
24918         * lto-streamer.h (lto_file_decl_data_ptr): New.
24919
24920         * passes.c (order): Define using cgraph_node_ptr.
24921
24922         * strinpool.c (struct string_pool_data): Declare nested_ptr using
24923         ht_identifier_ptr.
24924
24925         * gimple.h (union gimple_statement_d): Likewise.
24926
24927         * rtl.h (struct rtx_def): Likewise.
24928         (struct rtvec_def): Likewise.
24929
24930         * tree.h (union tree_node): Likewise.
24931
24932         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
24933
24934         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
24935
24936         * tree-scalar-evolution.c (scev_initialize): Likewise.
24937
24938         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
24939
24940         * dwarf2asm.c (dw2_force_const_mem): Likewise.
24941
24942         * omp-low.c (lower_omp_critical): Likewise.
24943
24944         * bitmap.h (struct bitmap_head_def): Update comment to not
24945         reference ggc_alloc.
24946
24947         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
24948
24949         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
24950
24951         * ipa-prop.c (duplicate_ggc_array): Rename to
24952         duplicate_ipa_jump_func_array.  Use typed GC allocation.
24953         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
24954
24955         * gimple.c (gimple_alloc_stat): Use
24956         ggc_alloc_cleared_gimple_statement_d_stat.
24957
24958         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
24959
24960         * tree.c (make_node_stat): Use
24961         ggc_alloc_zone_cleared_tree_node_stat.
24962         (make_tree_vec_stat): Likewise.
24963         (build_vl_exp_stat): Likewise.
24964         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
24965         (make_tree_binfo_stat): Likewise.
24966         (tree_cons_stat): Likewise.
24967
24968         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
24969         (shallow_copy_rtx_stat): Likewise.
24970         (make_node_stat): Likewise.
24971
24972         * lto-symtab.c: Fix comment.
24973
24974         * tree-cfg.c (create_bb): Update comment to not reference
24975         ggc_alloc_cleared.
24976         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
24977
24978         * varpool.c (varpool_node): Use typed GC allocation.
24979         (varpool_extra_name_alias): Likewise.
24980
24981         * varasm.c (emutls_decl): Likewise.
24982         (get_unnamed_section): Likewise.
24983         (get_noswitch_section): Likewise.
24984         (get_section): Likewise.
24985         (get_block_for_section): Likewise.
24986         (build_constant_desc): Likewise.
24987         (create_constant_pool): Likewise.
24988         (force_const_mem): Likewise.
24989
24990         * tree.c (build_vl_exp_stat): Likewise.
24991         (build_real): Likewise.
24992         (build_string): Likewise.
24993         (decl_debug_expr_insert): Likewise.
24994         (decl_value_expr_insert): Likewise.
24995         (type_hash_add): Likewise.
24996         (build_omp_clause): Likewise.
24997
24998         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
24999
25000         * tree-ssa.c (init_tree_ssa): Likewise.
25001
25002         * tree-ssa-structalias.c (heapvar_insert): Likewise.
25003
25004         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25005
25006         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25007
25008         * tree-ssa-alias.c (get_ptr_info): Likewise.
25009
25010         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25011
25012         * tree-phinodes.c (allocate_phi_node): Likewise.
25013
25014         * tree-iterator.c (tsi_link_before): Likewise.
25015         (tsi_link_after): Likewise.
25016
25017         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25018
25019         * tree-dfa.c (create_var_ann): Likewise.
25020
25021         * tree-cfg.c (create_bb): Likewise.
25022
25023         * toplev.c (alloc_for_identifier_to_locale): Likewise.
25024         (general_init): Likewise.
25025
25026         * stringpool.c (stringpool_ggc_alloc): Likewise.
25027         (gt_pch_save_stringpool): Likewise.
25028
25029         * sese.c (if_region_set_false_region): Likewise.
25030
25031         * passes.c (do_per_function_toporder): Likewise.
25032
25033         * optabs.c (set_optab_libfunc): Likewise.
25034         (set_conv_libfunc): Likewise.
25035
25036         * lto-symtab.c (lto_symtab_register_decl): Likewise.
25037
25038         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25039         (input_eh_region): Likewise.
25040         (input_eh_lp): Likewise.
25041         (make_new_block): Likewise.
25042         (unpack_ts_real_cst_value_fields): Likewise.
25043
25044         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25045
25046         * lto-cgraph.c (input_node_opt_summary): Likewise.
25047
25048         * loop-init.c (loop_optimizer_init): Likewise.
25049
25050         * lambda.h (lambda_vector_new): Likewise.
25051
25052         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25053
25054         * ira.c (update_equiv_regs): Likewise.
25055
25056         * ipa.c (cgraph_node_set_new): Likewise.
25057         (cgraph_node_set_add): Likewise.
25058         (varpool_node_set_new): Likewise.
25059         (varpool_node_set_add): Likewise.
25060
25061         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25062         (duplicate_ipa_jump_func_array): Likewise.
25063         (ipa_read_node_info): Likewise.
25064
25065         * ipa-cp.c (ipcp_create_replace_map): Likewise.
25066
25067         * integrate.c (get_hard_reg_initial_val): Likewise.
25068
25069         * gimple.c (gimple_alloc_stat): Likewise.
25070         (gimple_build_omp_for): Likewise.
25071         (gimple_seq_alloc): Likewise.
25072         (gimple_copy): Likewise.
25073
25074         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25075         (gsi_insert_after_without_update): Likewise.
25076
25077         * function.c (add_frame_space): Likewise.
25078         (insert_temp_slot_address): Likewise.
25079         (assign_stack_temp_for_type): Likewise.
25080         (allocate_struct_function): Likewise.
25081         (types_used_by_var_decl_insert): Likewise.
25082
25083         * except.c (init_eh_for_function): Likewise.
25084         (gen_eh_region): Likewise.
25085         (gen_eh_region_catch): Likewise.
25086         (gen_eh_landing_pad): Likewise.
25087         (add_call_site): Likewise.
25088
25089         * emit-rtl.c (get_mem_attrs): Likewise.
25090         (get_reg_attrs): Likewise.
25091         (start_sequence): Likewise.
25092         (init_emit): Likewise.
25093
25094         * dwarf2out.c (new_cfi): Likewise.
25095         (queue_reg_save): Likewise.
25096         (dwarf2out_frame_init): Likewise.
25097         (new_loc_descr): Likewise.
25098         (find_AT_string): Likewise.
25099         (new_die): Likewise.
25100         (add_var_loc_to_decl): Likewise.
25101         (clone_die): Likewise.
25102         (clone_as_declaration): Likewise.
25103         (break_out_comdat_types): Likewise.
25104         (new_loc_list): Likewise.
25105         (loc_descriptor): Likewise.
25106         (add_loc_descr_to_each): Likewise.
25107         (add_const_value_attribute): Likewise.
25108         (tree_add_const_value_attribute): Likewise.
25109         (add_comp_dir_attribute): Likewise.
25110         (add_name_and_src_coords_attributes): Likewise.
25111         (lookup_filename): Likewise.
25112         (store_vcall_insn): Likewise.
25113         (dwarf2out_init): Likewise.
25114
25115         * dbxout.c (dbxout_init): Likewise.
25116
25117         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25118
25119         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25120
25121         * config/score/score7.c (score7_output_external): Likewise.
25122
25123         * config/score/score3.c (score3_output_external): Likewise.
25124
25125         * config/s390/s390.c (s390_init_machine_status): Likewise.
25126
25127         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25128         (rs6000_init_machine_status): Likewise.
25129         (output_toc): Likewise.
25130
25131         * config/pa/pa.c (pa_init_machine_status): Likewise.
25132         (get_deferred_plabel): Likewise.
25133
25134         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25135
25136         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25137
25138         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25139
25140         * config/mep/mep.c (mep_init_machine_status): Likewise.
25141         (mep_note_pragma_flag): Likewise.
25142
25143         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25144
25145         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25146
25147         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25148
25149         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25150         (i386_pe_maybe_record_exported_symbol): Likewise.
25151
25152         * config/i386/i386.c (get_dllimport_decl): Likewise.
25153         (ix86_init_machine_status): Likewise.
25154         (assign_386_stack_local): Likewise.
25155
25156         * config/frv/frv.c (frv_init_machine_status): Likewise.
25157
25158         * config/darwin.c (machopic_indirection_name): Likewise.
25159
25160         * config/cris/cris.c (cris_init_machine_status): Likewise.
25161
25162         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25163
25164         * config/avr/avr.c (avr_init_machine_status): Likewise.
25165
25166         * config/arm/arm.c (arm_init_machine_status): Likewise.
25167
25168         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25169         (alpha_need_linkage): Likewise.
25170         (alpha_use_linkage): Likewise.
25171
25172         * cgraph.c (cgraph_allocate_node): Likewise.
25173         (cgraph_create_edge_1): Likewise.
25174         (cgraph_create_indirect_edge): Likewise.
25175         (cgraph_add_asm_node): Likewise.
25176
25177         * cfgrtl.c (init_rtl_bb_info): Likewise.
25178
25179         * cfgloop.c (alloc_loop): Likewise.
25180         (rescan_loop_exit): Likewise.
25181
25182         * cfg.c (init_flow): Likewise.
25183         (alloc_block): Likewise.
25184         (unchecked_make_edge): Likewise.
25185
25186         * c-parser.c (c_parse_init): Likewise.
25187         (c_parse_file): Likewise.
25188
25189         * c-decl.c (bind): Likewise.
25190         (record_inline_static): Likewise.
25191         (push_scope): Likewise.
25192         (make_label): Likewise.
25193         (lookup_label_for_goto): Likewise.
25194         (finish_struct): Likewise.
25195         (finish_enum): Likewise.
25196         (c_push_function_context): Likewise.
25197
25198         * bitmap.c (bitmap_element_allocate): Likewise.
25199         (bitmap_gc_alloc_stat): Likewise.
25200
25201         * alias.c (record_alias_subset): Likewise.
25202         (init_alias_analysis): Likewise.
25203
25204 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
25205
25206         * fold-const.c (fold_comparison): Remove redundant parenthesis.
25207         * tree-inline.c (expand_call_inline): Pass translated return value of
25208         cgraph_inline_failed_string to diagnostic function.
25209
25210 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
25211             Shujing Zhao  <pearly.zhao@oracle.com>
25212
25213         PR c/37724
25214         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
25215         implicit bad conversions is initialization.
25216         (error_init): Use gmsgid instead of msgid for argument name and change
25217         the call for error.
25218         (pedwarn_init): Use gmsgid instead of msgid for argument name and
25219         change the call for pedwarn.
25220         (warning_init): Use gmsgid instead of msgid for argument name and
25221         change the call for warning.
25222
25223 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
25224
25225         * config/mips/mips-protos.h (mips_print_operand): Delete.
25226         (mips_print_operand_address): Delete.
25227         * config/mips/mips.h (mips_print_operand_punct): Delete.
25228         (PRINT_OPERAND): Delete.
25229         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25230         (PRINT_OPERAND_ADDRESS): Delete.
25231         * config/mips/mips.c (mips_print_operand_punct): Make static.
25232         (mips_print_operand_address): Make static.
25233         (mips_print_operand): Make static.  Call
25234         mips_print_operand_punct_valid_p.
25235         (mips_print_operand_punct_valid_p): New function.
25236         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25237         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25238
25239 2010-06-07  Jan Hubicka  <jh@suse.cz>
25240
25241         PR middle-end/44454
25242         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
25243         are allocated.
25244
25245 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
25246
25247         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
25248         name of RECORD.
25249
25250 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25251
25252         * doc/sourcebuild.texi (Effective-Target Keywords, Other
25253         attributes): Document gas.
25254
25255 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
25256
25257         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
25258         <TYPE_LEA>: Split instruction.
25259         <default>: Remove alternative 2 handling.
25260         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
25261         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
25262         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
25263
25264         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
25265         (ashift_zext lea splitter): Use DImode for multiplication.
25266
25267         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
25268         to generate addition.
25269
25270 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
25271
25272         * common.opt (fira-verbose): Use Var.
25273         (fpcc-struct-return): Use Init instead of VarExists.
25274         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
25275         toplev.c.
25276         * flags.h (flag_signed_char, flag_short_enums,
25277         flag_pcc_struct_return, flag_ira_verbose,
25278         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
25279         * toplev.c (flag_detailed_statistics, flag_signed_char,
25280         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
25281         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
25282         * toplev.h (flag_crossjumping, flag_if_conversion,
25283         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
25284         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
25285         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
25286         flag_cprop_registers, time_report, flag_ira_loop_pressure,
25287         flag_ira_coalesce, flag_ira_move_spills,
25288         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
25289
25290 2010-06-07  Jan Hubicka  <jh@suse.cz>
25291
25292         * df-core.c (df_analyze_problem): Do verification after allocation.
25293
25294         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
25295         (df_lr_alloc): Initialize problem data; move bitmaps to
25296         lr_bitmaps obstack.
25297         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
25298         (df_lr_verify_solution_start): Do not initialize problem data;
25299         allocate bitmaps in lr_bitmaps.
25300         (df_lr_verify_solution_end): Do not free problem data.
25301
25302 2010-06-07  Jan Hubicka  <jh@suse.cz>
25303
25304         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
25305         if caller is noreturn.
25306         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
25307         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
25308         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
25309         * ipa-pure-const.c (check_decl): Add IPA parameter.
25310         (state_from_flags): New function.
25311         (better_state, worse_state): New functions.
25312         (check_call): When in IPA mode, do not care about callees.
25313         (check_load, check_store): Update.
25314         (check_ipa_load, check_ipa_store): New.
25315         (check_stmt): When in IPA mode, use IPA checkers.
25316         (analyze_function): Use state_from_flags.
25317         (propagate): Check indirect edges and references.
25318
25319 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
25320
25321         PR rtl-optimization/44404
25322         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
25323         of count_occurrences to see if it's safe to modify mem_insn.
25324
25325 2010-06-07  Richard Guenther  <rguenther@suse.de>
25326
25327         * gimplify.c (gimplify_cleanup_point_expr): For empty body
25328         and EH-only cleanup drop the cleanup instead of inserting it
25329         unconditionally.
25330
25331 2010-06-07  Ira Rosen  <irar@il.ibm.com>
25332
25333         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
25334         documentation.
25335         * targhooks.c (default_builtin_vectorization_cost): New function.
25336         * targhooks.h (default_builtin_vectorization_cost): Declare.
25337         * target.h (enum vect_cost_for_stmt): Define.
25338         (builtin_vectorization_cost): Change argument and comment.
25339         * tree-vectorizer.h: Remove cost model macros.
25340         * tree-vect-loop.c: Include target.h.
25341         (vect_get_cost): New function.
25342         (vect_estimate_min_profitable_iters): Replace cost model macros with
25343         calls to vect_get_cost.
25344         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
25345         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
25346         default implementation.
25347         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
25348         calls to target hook builtin_vectorization_cost.
25349         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
25350         Likewise.
25351         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
25352         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
25353         implementation to return costs.
25354         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
25355         * config/spu/spu.h: Remove vectorizer cost model macros.
25356         * config/i386/i386.h: Likewise.
25357         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
25358         a call to target hook builtin_vectorization_cost.
25359
25360 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
25361
25362         PR target/44319
25363         * config/i386/i386.c (override_options): Turn zee pass on for level 2
25364         and above and defer till target is known.
25365         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
25366         turn off otherwise.
25367
25368 2010-05-25  Jan Hubicka  <jh@suse.cz>
25369
25370         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
25371         (df_compact_blocks): Likewise.
25372         * df.h (struct df): Turn hardware_regs_used,
25373         regular_block_artificial_uses, eh_block_artificial_uses,
25374         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
25375         bitmap_head.
25376         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
25377         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
25378         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
25379         df_scan_blocks, df_insn_delete, df_insn_rescan,
25380         df_insn_rescan_debug_internal, df_insn_rescan_all,
25381         df_process_deferred_rescans, df_process_deferred_rescans,
25382         df_notes_rescan, df_get_call_refs, df_get_call_refs,
25383         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
25384         df_record_entry_block_defs, df_record_exit_block_uses,
25385         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
25386         df_scan_verify): Update.
25387
25388 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
25389
25390         PR c++/44188
25391         * c-common.c (is_typedef_decl): Move this definition ...
25392         * tree.c (is_typedef_decl): ... here.
25393         (typdef_variant_p): Move definition here from cp/tree.c.
25394         * c-common.h (is_typedef_decl): Move this declaration ...
25395         * tree.h (is_typedef_decl): ... here.
25396         (typedef_variant_p): Move declaration here from cp/cp-tree.h
25397         * dwarf2out.c (is_naming_typedef_decl): New function.
25398         (gen_tagged_type_die): Split out of ...
25399         (gen_type_die_with_usage): ... this function. When an anonymous
25400         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25401         is emitted for the typedef.
25402         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25403         anonymous tagged types.
25404
25405 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25406
25407         PR c/20000
25408         * c-decl.c (grokdeclarator): Delete warning.
25409
25410 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25411
25412         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
25413         newly built CALL_EXPR.
25414         * tree-profile.c (tree_profiling): Don't profile functions produced
25415         for built-in stuff.
25416
25417 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
25418
25419         PR bootstrap/44427
25420         PR bootstrap/44428
25421         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
25422         endianness-independent.
25423
25424 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
25425
25426         * c-common.c: Move to c-family/.
25427         * c-common.def: Likewise.
25428         * c-common.h: Likewise.
25429         * c-cppbuiltin.c: Likewise.
25430         * c-dump.c: Likewise.
25431         * c-format.c: Likewise.
25432         * c-format.h : Likewise.
25433         * c-gimplify.c: Likewise.
25434         * c-lex.c: Likewise.
25435         * c-omp.c: Likewise.
25436         * c.opt: Likewise.
25437         * c-opts.c: Likewise.
25438         * c-pch.c: Likewise.
25439         * c-ppoutput.c: Likewise.
25440         * c-pragma.c: Likewise.
25441         * c-pragma.h: Likewise.
25442         * c-pretty-print.c: Likewise.
25443         * c-pretty-print.h: Likewise.
25444         * c-semantics.c: Likewise.
25445         * stub-objc.c: Likewise.
25446
25447         * gengtype.c (get_file_langdir): Special-case files in c-family/.
25448         (get_output_file_with_visibility): Fix name for c-common.h.
25449         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
25450
25451         * c-tree.h: Update include path for moved files.
25452         * c-lang.c: Likewise.
25453         * c-lang.h: Likewise.
25454         * c-parser.c: Likewise.
25455         * c-convert.c: Likewise.
25456         * c-decl.c: Likewise.
25457         * c-objc-common.c: Likewise.
25458         * configure.ac: Make sure c-family/ exists in the build directory.
25459         * configure: Regenerate.
25460         * Makefile.in: Update paths for moved files.  Regroup files per
25461         location and update dependencies.  Move generated_files down after
25462         ALL_GTFILES_H.
25463
25464         * config/spu/spu-c.c: Update paths for moved files.
25465         * config/mep/mep-pragma.c: Likewise.
25466         * config/darwin-c.c: Likewise.
25467         * config/i386/msformat-c.c: Likewise.
25468         * config/i386/i386-c.c: Likewise.
25469         * config/avr/avr-c.c: Likewise.
25470         * config/sol2-c.c: Likewise.
25471         * config/ia64/ia64-c.c: Likewise.
25472         * config/rs6000/rs6000-c.c: Likewise.
25473         * config/arm/arm.c: Likewise.
25474         * config/arm/arm-c.c: Likewise.
25475         * config/h8300/h8300.c: Likewise.
25476         * config/v850/v850-c.c: Likewise.
25477
25478         * config/t-darwin: Fix dependencies for moved files.
25479         * config/t-sol2: Fix dependencies for moved files.
25480         * config/mep/t-mep: Fix dependencies for moved files.
25481         * config/ia64/t-ia64: Fix dependencies for moved files.
25482         * config/rs6000/t-rs6000: Fix dependencies for moved files.
25483         * config/v850/t-v850: Fix dependencies for moved files.
25484         * config/v850/t-v850e: Fix dependencies for moved files.
25485
25486         * config/m32c/m32c-pragma.c
25487
25488         * po/exgettext: Look in c-family/ also.
25489
25490 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
25491
25492         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
25493         (mark_control_dependent_edges_necessary): Call it instead of marking
25494         the last statement manually.
25495         (propagate_necessity): Likewise.
25496
25497 2010-06-05  Jan Hubicka  <jh@suse.cz>
25498
25499         * basic-block.h (compute_dominance_frontiers): Updated.
25500         (compute_idf): Likewise.
25501
25502         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
25503         for dominance frontiers.
25504         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
25505         (insert_updated_phi_nodes_for): Likewise.
25506         (update_ssa): Likewise.
25507         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25508         (compute_dominance_frontiers): Likewise.
25509         (compute_idf): Likewise.
25510         * df-problems.c (df_md_local_compute): Likewise.
25511
25512 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
25513
25514         * target.h (struct gcc_target): Add memory_move_cost field.
25515         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
25516         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
25517         * targhooks.c (default_memory_move_cost): New function.
25518         * targhooks.h (default_memory_move_cost): Declare function.
25519         * reload.h (memory_move_cost): Declare.
25520         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25521         * reginfo.c (memory_move_cost): New function.
25522         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25523         * ira.h (ira_memory_move_cost): Update comment.
25524         * ira.c (ira_memory_move_cost): Update comment.
25525         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
25526         with memory_move_cost.
25527         * postreload.c (reload_cse_simplify_set): (Ditto.).
25528         * reload1.c (choose_reload_regs): (Ditto.).
25529         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
25530         (MEMORY_MOVE_COST):  Revise documentation.
25531
25532         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
25533         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
25534         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
25535         type of 'in' argument to bool.
25536         (TARGET_MEMORY_MOVE_COST): Define.
25537
25538 2010-06-05  Jan Hubicka  <jh@suse.cz>
25539
25540         * ipa-pure-const.c (propagate): Fix typo in handling of functions
25541         that cannot return.  Be more careful when merging the results with
25542         previously known ones.
25543
25544 2010-06-05  Matthias Klose  <doko@ubuntu.com>
25545
25546         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
25547         function to add the -iplugindir option.
25548         (find_plugindir_spec_function): Add new declaration and function.
25549         (static_spec_func): Use it for "find-plugindir".
25550
25551 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
25552
25553         PR c++/44361
25554         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
25555         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
25556         statement expression.
25557
25558 2010-06-05  Jan Hubicka  <jh@suse.cz>
25559
25560         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
25561         (df_rd_problem_data): Convert sparse_invalidated_by_call,
25562         dense_invalidated_by_call to bitmap head.
25563         (df_rd_alloc, df_rd_bb_local_compute_process_def,
25564         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
25565         df_rd_start_dump, df_lr_verify_transfer_functions,
25566         df_live_verify_transfer_functions, df_chain_create_bb,
25567         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
25568         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
25569         df_simulate_one_insn_forwards, df_md_alloc,
25570         df_md_bb_local_compute_process_def,
25571         df_md_bb_local_compute_process_def, df_md_local_compute,
25572         df_md_transfer_function df_md_free): Update.
25573
25574 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
25575
25576         PR c/44322
25577         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
25578         target type for ADDR_EXPR; require no changes to qualifiers except
25579         for function types.
25580         * c-tree.h (c_build_type_variant): Remove.
25581
25582 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25583
25584         * genautomata.c (get_excl_set): Do work per element, not per char.
25585         (check_presence_pattern_sets): Similar.
25586         (check_absence_pattern_sets): Similar.
25587
25588 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25589
25590         * genautomata.c (curr_state_pass_num): Delete.
25591         (min_issue_delay_pass_states): Delete.
25592         (min_issue_delay): Delete.
25593         (initiate_min_issue_delay_pass_states): Delete.
25594         (output_min_issue_delay_table): Compute min_issue_delay_vect
25595         using a breadth-first search variant.
25596         (output_tables): Don't call initiate_min_issue_delay_pass_states.
25597
25598 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
25599
25600         PR boostrap/44421
25601         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
25602         (df_byte_lr_bb_local_compute): Likewise.
25603
25604 2010-06-03  Jason Merrill  <jason@redhat.com>
25605
25606         Implement noexcept operator (5.3.7)
25607         * c-common.c (c_common_reswords): Add noexcept.
25608         * c-common.h (enum rid): Add RID_NOEXCEPT.
25609
25610 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
25611
25612         * config/darwin-driver.c (darwin_default_min_version): Use
25613         GCC-specific formats in diagnostics.
25614         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
25615         diagnostics.
25616         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
25617         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
25618         eval_spec_function, handle_braces, process_brace_body, main,
25619         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
25620         getenv_spec_function, compare_version_strings,
25621         version_compare_spec_function): Use GCC-specific formats in
25622         diagnostics.
25623
25624 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25625
25626         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
25627         that operand 0 and operand 1 are equal.
25628         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
25629         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
25630         and operand 1 are equal.
25631         <default>: Ditto.  Remove ??? comment.
25632         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
25633         and operand 1 are equal.
25634         <default>: Ditto.  Remove ??? comment.
25635         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
25636         are equal.
25637         (*add<mode>_4) <default>: Ditto.
25638         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
25639
25640 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
25641
25642         * config/i386/i386-protos.h (ix86_print_operand): Declare.
25643         * config/i386/i386.c (ix86_print_operand): Make non-static.
25644         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
25645         * output.h (output_operand): Declare.
25646         * final.c (output_operand): Make non-static.
25647
25648 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
25649
25650         PR rtl-optimization/44013
25651         * sched-deps.c (add_dependence_list_and_free): Don't free lists
25652         when processing debug insns.
25653
25654         PR debug/41371
25655         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
25656         recursing.  Check that recursion is bounded.  Rename inner var
25657         to avoid hiding incoming argument.
25658
25659 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25660
25661         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
25662         operands[2] == 255.
25663         (*addqi_3): Ditto.
25664         (*addqi_4): Ditto.
25665         (*addqi_5): Ditto.
25666         (*addqi_ext_1_rex64): Ditto.
25667         (*addqi_ext_1): Ditto.
25668
25669         (*addqi_4): Check for incdec_operand in QImode.
25670
25671         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
25672         using SWI mode iterator.
25673         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
25674         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
25675         mode iterator.
25676         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
25677         using SWI mode iterator.
25678
25679 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25680
25681         PR c/25880
25682         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
25683         * c-format.c (gcc_diag_flag_specs): Add hash.
25684         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
25685         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
25686         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
25687         pp_c_cv_qualifiers. Handle qualifiers spelling here.
25688         (pp_c_type_qualifier_list): Call the function above.
25689         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
25690         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
25691         (WARN_FOR_QUALIFIERS): New macro.
25692         (convert_for_assignment): Use it.
25693
25694 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
25695
25696         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
25697
25698 2010-06-04  Jan Hubicka  <jh@suse.cz>
25699
25700         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
25701         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
25702         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
25703         DF_BYTE_LR_OUT): Update for embedded bitmaps.
25704         * fwprop.c (single_def_use_enter_block): Likewise.
25705         * ddg.c (create_ddg_dep_from_intra_loop_link,
25706         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
25707         * loop-iv.c (latch_dominating_def): Likewise.
25708         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
25709         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
25710         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
25711         df_rd_transfer_function, df_rd_top_dump,
25712         df_rd_bottom_dump): Update.
25713         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
25714         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
25715         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
25716         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
25717         df_lr_verify_solution_start, df_lr_verify_solution_end,
25718         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
25719         df_live_free_bb_info, df_live_alloc, df_live_reset,
25720         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
25721         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
25722         df_live_verify_solution_start, df_live_verify_solution_end,
25723         df_live_verify_transfer_functions, df_chain_create_bb,
25724         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
25725         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25726         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25727         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
25728         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
25729         df_byte_lr_transfer_function, df_byte_lr_top_dump,
25730         df_byte_lr_bottom_dump, df_create_unused_note,
25731         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
25732         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
25733         df_md_transfer_function, df_md_init, df_md_confluence_0,
25734         df_md_confluence_n,
25735         df_md_top_dump, df_md_bottom_dump): Update.
25736         (struct df_lr_problem_data): Embedd bitmap headers.
25737
25738 2010-06-04  Jan Hubicka  <jh@suse.cz>
25739
25740         * dce.c (dce_process_block): Do not re-scan already marked
25741         instructions.
25742
25743 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25744
25745         PR rtl-optimization/39871
25746         PR rtl-optimization/40615
25747         PR rtl-optimization/42500
25748         PR rtl-optimization/42502
25749         * ira.c (init_reg_equiv_memory_loc: New function.
25750         (ira): Call it twice.
25751         * reload.h (calculate_elim_costs_all_insns): Declare.
25752         * ira-costs.c: Include "reload.h".
25753         (regno_equiv_gains): New static variable.
25754         (init_costs): Allocate it.
25755         (finish_costs): Free it.
25756         (ira_costs): Call calculate_elim_costs_all_insns.
25757         (find_costs_and_classes): Take estimated elimination costs
25758         into account.
25759         (ira_adjust_equiv_reg_cost): New function.
25760         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
25761         * reload1.c (init_eliminable_invariants, free_reg_equiv,
25762         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
25763         (elim_bb): New static variable.
25764         (reload): Move code out of here into init_eliminable_invariants and
25765         free_reg_equiv.  Call them.
25766         (calculate_elim_costs_all_insns): New function.
25767         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
25768         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
25769         but call note_reg_elim_costly if we turned a valid memory address
25770         into an invalid one.
25771         * Makefile.in (ira-costs.o): Depend on reload.h.
25772
25773 2010-06-04  Julian Brown  <julian@codesourcery.com>
25774
25775         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
25776         for pool ranges.
25777
25778 2010-06-04  Richard Guenther  <rguenther@suse.de>
25779
25780         PR lto/41584
25781         * cgraph.h (struct varpool_node): Add lto_file_data field.
25782         * lto-cgraph.c (input_varpool_node): Initialize it.
25783
25784 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25785
25786         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
25787         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
25788         predicate in "type" attribute calculation.
25789         (*addsi_1_zext): Ditto.
25790         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
25791         (*addsi_2_zext): Ditto.
25792         (*add<mode>_3): Ditto.
25793         (*addsi_3_zext): Ditto.
25794         (*add<mode>_5): Ditto.
25795
25796 2010-06-03  Jan Hubicka  <jh@suse.cz>
25797
25798         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
25799         of bitmap_bit_p.
25800         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25801
25802 2010-06-03  Jan Hubicka  <jh@suse.cz>
25803
25804         * df-problems.c (df_create_unused_note, df_note_bb_compute):
25805         micro-optimize the checks when to add new note.
25806
25807 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
25808
25809         * final.c (output_asm_insn): Call
25810         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
25811         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
25812         (output_address): Call targetm.asm_out.print_operand_address.
25813         Update comments.
25814         * target.h (struct gcc_target): Add print_operand,
25815         print_operand_address, and print_operand_punct_valid_p fields.
25816         * targhooks.h (default_print_operand): Declare.
25817         (default_print_operand_address): Declare.
25818         (default_print_operand_punct_valid_p): Declare.
25819         * targhooks.c (default_print_operand): Define.
25820         (default_print_operand_address): Define.
25821         (default_print_operand_punct_valid_p): Define.
25822         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
25823         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
25824         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
25825         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
25826         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
25827         * vmsdbgout.c (addr_const_to_string): Update comment.
25828         * config/i386/i386.c (print_operand): Rename to...
25829         (ix86_print_operand): ...this.  Make static.
25830         (print_operand_address): Rename to...
25831         (ix86_print_operand_address): ...this.  Make static.  Call
25832         ix86_print_operand instead of PRINT_OPERAND.
25833         (ix86_print_operand_punct_valid_p): New function.
25834         (TARGET_PRINT_OPERAND): Define.
25835         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25836         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25837         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
25838         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25839         (PRINT_OPERAND): Delete.
25840         (PRINT_OPERAND_ADDRESS): Delete.
25841         * config/i386/i386-protos.h (print_operand): Delete prototype.
25842         (print_operand_address): Delete prototype.
25843
25844 2010-06-03  Richard Guenther  <rguenther@suse.de>
25845
25846         PR tree-optimization/44403
25847         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25848         Preserve pointer qualifiers.
25849         (vect_create_data_ref_ptr): Likewise.
25850
25851 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
25852
25853         PR c++/44294
25854         * defaults.h (MAX_FIXED_MODE_SIZE): New.
25855
25856         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
25857
25858 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
25859
25860         PR debug/44375
25861         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
25862         return false if merging the bbs would lead to goto_locus
25863         location being lost from the IL.
25864
25865 2010-06-03  Jan Hubicka  <jh@suse.cz>
25866             Jakub Jelinek  <jakub@redhat.com>
25867
25868         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
25869         set->regs[i] is NULL or has just one entry.
25870
25871 2010-06-03  Jan Hubicka  <jh@suse.cz>
25872
25873         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
25874         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
25875
25876 2010-06-03  Paul Brook  <paul@codesourcery.com>
25877
25878         * config/arm/arm.c (FL_TUNE): Define.
25879         (arm_default_cpu, arm_cpu_select): Remove.
25880         (all_cores): Populate core field.
25881         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
25882         (arm_find_cpu): New function.
25883         (arm_handle_option): Lookup cpu/architecture names.
25884         (arm_override_options): Cleanup mcpu/march/mtune handling.
25885         (arm_file_start): Ditto.
25886
25887 2010-06-03  Alan Modra  <amodra@gmail.com>
25888
25889         PR target/44169
25890         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
25891         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
25892         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
25893         (rs6000_emit_load_toc_table): Likewise.
25894
25895 2010-06-02  Jan Hubicka  <jh@suse.cz>
25896
25897         * passes.c (init_optimization_passes): Put ipa reference
25898         after ipa pure-const.
25899
25900 2010-06-02  Jan Hubicka  <jh@suse.cz>
25901
25902         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
25903         calls_read_all and calls_write_all.
25904         (get_reference_optimization_summary): Fix formatting.
25905         (is_proper_for_analysis): Check that decl is not readonly.
25906         (propagate_bits): Check CONST/PURE/noreturn flags.
25907         (ipa_init): Move all_module_statics to optimization_summary_obstack.
25908         (analyze_function): Ignore indirect edges.
25909         (copy_global_bitmap): For all module statics, do nothing.
25910         (generate_summary): Do not print calls_read_all/calls_write_all.
25911         (read_write_all_from_decl): Take node as argument; check
25912         cgraph_node_cannot_return.
25913         (propagate): Reorganize read_all/write_all computation;
25914         check indirect edges; check ecf flags; use all_module_statics
25915         in the results; do not free all_module_statics.
25916         (stream_out_bitmap): Handle all_module_statics.
25917         (ipa_reference_write_optimization_summary): Likewise; use
25918         varpool/cgraph encoders to get boundaries.
25919         (ipa_reference_read_optimization_summary): Read in all_module_statics;
25920         use it when possible.
25921
25922 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25923
25924         PR target/44218
25925         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
25926         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
25927
25928         * doc/extend.texi (powerpc builtins): Document vec_recip,
25929         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
25930
25931         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
25932         (rs6000_emit_swrsqrt): Ditto.
25933         (rs6000_emit_swdivsf): Delete.
25934         (rs6000_emit_swdivdf): Ditto.
25935         (rs6000_emit_swrsqrtsf): Ditto.
25936
25937         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
25938         describe the reciprocal estimate support for each type.
25939         (recip_options): Map -mrecip=<opt> into option bits.
25940         (gen_2arg_fn_t): New typedef for binary rtx gen function.
25941         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
25942         reciprocal estimate instructions.
25943         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
25944         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
25945         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
25946         cost information if -mdebug=cost or -mdebug=reg.
25947         (rs6000_override_options): Set -mrecip-precision for power6, and
25948         power7 machines.  If -mvsx or -mdfp, enable various options that
25949         came in previous instruction set ISAs, unless the option was
25950         explicitly disabled by the command line option.  Parse
25951         -mrecip=<opt> options.
25952         (rs6000_builtin_vectorized_function): Add support for vectorizing
25953         the reciprocal estimate builtins and expansions.
25954         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
25955         (bdesc_2arg): Add reciprocal estimate builtins.
25956         (bdesc_1arg): Add reciprocal square root estimate builtins.
25957         (rs6000_expand_builtin): Rewrite to use a switch statement,
25958         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
25959         (rs6000_init_builtins): Create declarations for reciprocal
25960         estimate builtins.
25961         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
25962         sized, prefer traditional floating point registers, if integer
25963         vector types, prefer altivec registers.  Don't actually look at
25964         the memory address any more.
25965         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
25966         builtins.
25967         (rs6000_load_constant_and_splat): New helper function to load up
25968         the constant for reciprocal estimate instructions.
25969         (rs6000_emit_madd): New helper function for generating
25970         multiply/add type instructions, based on the current switches.
25971         (rs6000_emit_msub): Ditto.
25972         (rs6000_emit_mnsub): Ditto.
25973         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
25974         replace a divide with a reciprocal estimate and fixup, adding
25975         support for machines with high precision and vectors.
25976         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
25977         low precision machines.
25978         (rs6000_emit_swdiv): New common function to be called to replace a
25979         division with reciprocal estimate and fixup.
25980         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
25981         for double and vector types.  Add support for high precision machines.
25982
25983         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
25984         the reciprocal estimate instructions can be generated.
25985         (TARGET_FRE): Ditto.
25986         (TARGET_FRSQRTES): Ditto.
25987         (TARGET_FRSQRTE): Ditto.
25988         (RS6000_RECIP_*): New macros for reciprocal estimate support.
25989
25990         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
25991         square root estimate on vectors.
25992         (re<mode>2): New insn for reciprocal division estimate on vectors.
25993
25994         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
25995         New builtin.
25996         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
25997         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
25998         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
25999         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26000         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26001         (RS6000_BUILTIN_RSQRT): Ditto.
26002         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26003         floating point builtin.
26004
26005         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26006         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26007         __RECIP_PRECISION__ based on the command line switches.
26008         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26009
26010         * config/rs6000/rs6000.opt (-mrecip): Document add support for
26011         replacing division instructions with reciprocal estimate and fixup.
26012         (-mrecip=<opt>): New option.
26013         (-mrecip-precision): Ditto.
26014
26015         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26016         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26017         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26018         precision scalar.
26019
26020         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26021         (UNSPEC_VREFP): Ditto.
26022         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26023         conterparts with regard to support of -mno-fused-madd and -ffast-math.
26024         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26025         reciprocal estimate instructions to be generated.
26026         (altivec_vrefp): Ditto.
26027
26028         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26029         estimate support.
26030         (rreg): New mode attribute for reciprocal estimate support.
26031         (recip<mode>3): New insn for division using reciprocal estimate
26032         and fixup builtins.
26033         (divide define_split): New define_split to convert floating point
26034         division to use reciprocal estimate if the user used the
26035         appropriate options and the split is run when we can add new
26036         pseudo registers for the fixup.
26037         (rsqrt<mode>2): New insn for reciprocal square root support.
26038         (recipsf3): Move into recip<mode>3.
26039         (recipdf3): Ditto.
26040         (fres): Use TARGET_FRES.
26041         (rsqrtsf2): Move into rsqrt<mode>2.
26042         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26043         (copysignsf3): Add support for VSX.
26044         (fred): Use TARGET_FRE.
26045         (fred_fpr): Ditto.
26046         (rsqrtdf_internal1): New function for frsqrte instruciton.
26047
26048         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26049         (vec_rsqrt): Ditto.
26050
26051 2010-06-03  Richard Guenther  <rguenther@suse.de>
26052
26053         PR middle-end/44291
26054         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26055         (set_user_assembler_libfunc): Likewise.
26056
26057 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26058
26059         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26060         defaults.h.
26061         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26062         to defaults.h
26063         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26064         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26065         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26066         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26067         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26068         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26069         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26070         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26071         * defaults.h: Updated for above mentioned changes.
26072
26073 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
26074
26075         * c-common.c: Remove header include of tm_p.h.
26076         * Makefile.in (c-common.o): Remove TM_P_H dependency.
26077
26078 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
26079
26080         * tree.h (struct tree_decl_map): New type.
26081         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26082         (tree_decl_map_hash): New prototype.
26083         (debug_expr_for_decl, value_expr_for_decl): Change into
26084         tree_decl_map hashtab from tree_map.
26085         (init_ttree): Adjust initialization.
26086         (tree_decl_map_hash): New function.
26087         (decl_debug_expr_lookup, decl_debug_expr_insert,
26088         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
26089
26090 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26091
26092         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
26093         linker emulations.
26094         * configure: Regenerate.
26095         * config.in: Regenerate.
26096
26097         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
26098         (X86_64_EMULATION): Define.
26099         (TARGET_LD_EMULATION): Use them.
26100
26101         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
26102         (SPARC64_EMULATION): Define.
26103         (LINK_ARCH_SPEC): Use them.
26104
26105 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26106
26107         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
26108         smallest_mode_for_size for computing the precision types of new
26109         graphite IVs.  Do not call lang_hooks.types.type_for_size.
26110
26111 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26112
26113         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
26114         information.
26115         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
26116
26117 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26118
26119         PR middle-end/44363
26120         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
26121         return false instead.
26122
26123 2010-06-02  Jan Hubicka  <jh@suse.cz>
26124
26125         PR middle-end/44295
26126         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
26127         create new cgraph node to check callee.
26128
26129 2010-06-02  Richard Guenther  <rguenther@suse.de>
26130
26131         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
26132
26133 2010-06-02  Richard Guenther  <rguenther@suse.de>
26134
26135         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
26136         (lto_wrapper_cleanup): ... this.  Do not exit.
26137         (fatal): Adjust.  Exit here.
26138         (fatal_perror): Likewise.
26139         (fatal_signal): New function.
26140         (main): Set up signal handlers to cleanup temporary files.
26141         * Makefile.in (lto-wrapper.o): Adjust dependencies.
26142
26143 2010-06-02  Richard Guenther  <rguenther@suse.de>
26144
26145         PR tree-optimization/44377
26146         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
26147
26148 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26149
26150         * config/s390/2097.md (z10_fhex): Remove insn reservation.
26151         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
26152         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
26153         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
26154         instruction.
26155         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
26156
26157 2010-06-02  Jan Hubicka  <jh@suse.cz>
26158
26159         * bitmap.c (bitmap_descriptor): Add search_iter.
26160         (bitmap_find_bit): Increment it.
26161         (print_statistics): Print it.
26162
26163 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
26164
26165         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
26166         instead of gimple_build_call_vec.  Delete unnecessary local variable.
26167
26168 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26169
26170         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
26171         change from yesterday.
26172
26173 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26174
26175         * c-ada-spec.c: Clean up redundant includes.
26176
26177 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
26178
26179         * gimplify.c: Do not include except.h and optabs.h.
26180         (gimplify_body): Do not initialize RTL profiling.
26181         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26182         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
26183         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
26184         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
26185         langhooks.h.
26186
26187         * tree-pretty-print.h: Include pretty-print.h.
26188         * gimple-pretty-print.h: Include pretty-print.h.
26189
26190         * tree-pretty-print.c: Do not include diagnostic.h.
26191         * tree-vrp.c: Likewise.
26192         * tree-tailcall.c: Likewise
26193         * tree-scalar-evolution.c: Likewise
26194         * tree-ssa-dse.c: Likewise
26195         * tree-chrec.c: Likewise
26196         * tree-ssa-sccvn.c: Likewise
26197         * tree-ssa-copyrename.c: Likewise
26198         * tree-nomudflap.c: Likewise
26199         * tree-call-cdce.c: Likewise
26200         * tree-stdarg.c: Likewise
26201         * tree-ssa-math-opts.c: Likewise
26202         * tree-nrv.c: Likewise
26203         * tree-ssa-sink.c: Likewise
26204         * tree-browser.c: Likewise
26205         * tree-ssa-loop-ivcanon.c: Likewise
26206         * tree-ssa-loop.c: Likewise
26207         * tree-parloops.c: Likewise
26208         * tree-ssa-address.c: Likewise
26209         * tree-ssa-ifcombine.c: Likewise
26210         * tree-if-conv.c: Likewise
26211         * tree-data-ref.c: Likewise
26212         * tree-affine.c: Likewise
26213         * tree-ssa-phiopt.c: Likewise
26214         * tree-ssa-coalesce.c: Likewise
26215         * tree-ssa-pre.c: Likewise
26216         * tree-ssa-live.c: Likewise
26217         * tree-predcom.c: Likewise
26218         * tree-ssa-forwprop.c: Likewise
26219         * tree-ssa-dce.c: Likewise
26220         * tree-ssa-ter.c: Likewise
26221         * tree-ssa-loop-prefetch.c: Likewise
26222         * tree-optimize.c: Likewise
26223         * tree-ssa-phiprop.c: Likewise
26224         * tree-object-size.c: Likewise
26225         * tree-outof-ssa.c: Likewise
26226         * tree-ssa-structalias.c: Likewise
26227         * tree-switch-conversion.c: Likewise
26228         * tree-ssa-reassoc.c: Likewise
26229         * tree-ssa-operands.c: Likewise
26230         * tree-vectorizer.c: Likewise
26231         * tree-vect-data-refs.c: Likewise
26232         * tree-vect-generic.c: Likewise
26233         * tree-vect-stmts.c: Likewise
26234         * tree-vect-patterns.c: Likewise
26235         * tree-vect-slp.c: Likewise
26236         * tree-vect-loop.c: Likewise
26237         * tree-ssa-loop-ivopts.c: Likewise
26238         * tree-ssa-loop-im.c: Likewise
26239         * tree-ssa-loop-niter.c: Likewise
26240         * tree-ssa-loop-unswitch.c: Likewise
26241         * tree-ssa-loop-manip.c: Likewise
26242         * tree-ssa-loop-ch.c: Likewise
26243         * tree-dump.c: Likewise
26244         * tree-complex.c: Likewise
26245
26246         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
26247         * tree-ssa-uninit.c: Likewise
26248         * tree-ssa-threadupdate.c: Likewise
26249         * tree-ssa-uncprop.c: Likewise
26250         * tree-ssa-ccp.c: Likewise
26251         * tree-ssa-dom.c: Likewise
26252         * tree-ssa-propagate.c: Likewise
26253         * tree-ssa-alias.c: Likewise
26254         * tree-dfa.c: Likewise
26255         * tree-cfgcleanup.c: Likewise
26256         * tree-sra.c: Likewise
26257         * tree-ssa-copy.c: Likewise
26258         * tree-ssa.c: Likewise
26259         * tree-profile.c: Likewise
26260         * tree-cfg.c: Likewise
26261         * tree-ssa-threadedge.c: Likewise
26262         * tree-vect-loop-manip.c: Likewise
26263
26264         * tree-inline.c: Do not include diagnostic.h and expr.h.
26265         Include rtl.h.
26266         (copy_decl_for_dup_finish): Do not use NULL_RTX.
26267
26268         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
26269         * tree-loop-distribution.c: Likewise.
26270
26271 2010-06-01  Jan Hubicka  <jh@suse.cz>
26272
26273         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
26274
26275 2010-06-01  Jan Hubicka  <jh@suse.cz>
26276
26277         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
26278         remove return value.
26279         (split_bbs_on_noreturn_calls) .... here.
26280         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
26281         * tree-flow.h (fixup_noreturn_call): New.
26282
26283 2010-06-01  Jan Hubicka  <jh@suse.cz>
26284
26285         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
26286
26287 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
26288
26289         * tree.h (build_nt_call_list): Delete.
26290         * tree.c (build_nt_call_list): Delete.
26291
26292 2010-06-01  Jan Hubicka  <jh@suse.cz>
26293
26294         * fwprop.c: Make emit-rtl.h include last.
26295         * rtlanal.c: Include emit-rtl.h.
26296         * genautomata.c: Output emit-rtl include into insn-automata.c
26297         * df-scan.c: Include emit-rtl.h.
26298         * haifa-sched.c: Indlude emit-rtl.h.
26299         * mode-switching.c: Indlude emit-rtl.h.
26300         * graph.c: Indlude emit-rtl.h.
26301         * sel-sched.c: Include emit-rtl.h.
26302         * sel-sched-ir.c: Include emit-rtl.h.
26303         * ira-build.c: Include emit-rtl.h.
26304         * emit-rtl.c (first_insn, last_insn): Remove defines.
26305         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
26306         Move to emit-rtl.h.
26307         (set_new_first_and_last_insn, get_last_insn_anywhere,
26308         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
26309         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
26310         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
26311         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
26312         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
26313         Use accessor functions.
26314         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26315          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26316         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26317         mem_expr_equal_p): Move here from rtl.h.
26318         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
26319         Move here from emit-rtl.c; make inline.
26320         * cfglayout.h: Include emit-rtl.h.
26321         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26322          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26323         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26324         mem_expr_equal_p, get_insns, set_first-insn,
26325         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
26326         * reg-stack.c: Include emit-rtl.h.
26327         * dce.c: Likewise.
26328
26329 2010-06-01  Jan Hubicka  <jh@suse.cz>
26330
26331         * cgraph.h (tree_function_versioning): Update prototype.
26332         (cgraph_function_versioning): Update prototype.
26333         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
26334         bitmap.
26335         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
26336         (cgraph_materialize_clone, save_inline_function_body): Update use of
26337         tree_function_versioning.
26338         * tree-inline.c (copy_bb): Look for previous copied block to link
26339         after; fix debug output.
26340         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
26341         (copy_body): Likewise.
26342         (expand_call_inline): Update use of copy_body.
26343         (tree_function_versioning): Update use of copy body; accept
26344         blocks_to_copy and new_entry.
26345
26346 2010-06-01  Jan Hubicka  <jh@suse.cz>
26347
26348         * gegenrtl.c: Remove unnecesary prototypes.
26349         (gendecl): Remove.
26350         (gendef): Produce static inline.
26351         (gencode): Remove.
26352         (main): Do not decode parameters; generate header only.
26353         * Makefile.in (genrtl.c): Remove.
26354
26355 2010-06-01  Jan Hubicka  <jh@suse.cz>
26356
26357         * tree-switch-conversion.c (build_one_array): Make it readonly.
26358
26359 2010-06-01  Richard Guenther  <rguenther@suse.de>
26360
26361         * optabs.c (init_optabs): Guard all accesses to reinit.
26362         * ipa-pure-const.c (propagate): Fix another typo.
26363         * opts.c (common_handle_option): Split assignment to bool.
26364         * c-opts.c (c_common_handle_option): Likewise.
26365
26366 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
26367             Matthew Gingell  <gingell@adacore.com>
26368
26369         * doc/invoke.texi: Mention -fdump-ada-spec.
26370         * tree-dump.c (dump_files): Add ada-spec.
26371         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
26372         * tree-pass.h (tree_dump_index): Add TDI_ada.
26373         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
26374         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
26375         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
26376         * c-decl.c: Include c-ada-spec.h.
26377         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
26378         functions.
26379         (c_write_global_declarations): Add handling of -fdump-ada-spec.
26380         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
26381         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
26382         * c-ada-spec.h, c-ada-spec.c: New files.
26383
26384 2010-06-01  Richard Guenther  <rguenther@suse.de>
26385
26386         PR lto/43853
26387         * ipa-pure-const.c (get_function_state): Hand back varying state
26388         if we do not have one.
26389         (has_function_state): New function.
26390         (duplicate_node_data): Adjust.
26391         (remove_node_data): Likewise.
26392         (pure_const_write_summary): Likewise.
26393         (propagate): Likewise.  Fix typo.
26394
26395 2010-06-01  Jan Hubicka  <jh@suse.cz>
26396
26397         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
26398         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
26399         (execute_all_ipa_transforms): Do not play with the states.
26400
26401 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
26402
26403         * config/arm/t-linux-androideabi: New.
26404         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
26405
26406 2010-06-01  Jan Hubicka  <jh@suse.cz>
26407
26408         * tree-inline.c (estimate_num_insns): For stdarg functions look
26409         into call statement to count cost of argument passing.
26410
26411 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
26412
26413         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
26414         argument for fprintf.
26415         (ix86_output_addr_diff_elt): Likewise.
26416         (x86_function_profiler): Likewise.
26417         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
26418         (LPREFIX): Likewise.
26419         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
26420
26421 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26422
26423         PR target/44338
26424         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
26425         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
26426         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
26427         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
26428         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
26429         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
26430         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
26431         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
26432         TARGET_FUSED_MADD.
26433
26434 2010-05-31  Jan Hubicka  <jh@suse.cz>
26435
26436         * tree.h (tree_range_check_failed): Declare noreturn.
26437
26438 2010-05-31  Jan Hubicka  <jh@suse.cz>
26439
26440         * gimple.c (gimple_call_builtin_p): New function.
26441         * gimple.h (gimple_call_builtin_p): Declare.
26442         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
26443         to exit.
26444         (execute_warn_function_return): BUILT_IN_RETURN is return.
26445         (split_critical_edges): Return edges are not critical.
26446         (is_ctrl_altering_stmt): Builtin_in_return is altering.
26447         (gimple_verify_flow_info): Handle built_in_return.
26448         (execute_warn_function_return): Handle built_in_return.
26449         * ipa-pure-const.c (check_call): Ignore builtin_return.
26450
26451 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26452
26453         PR middle-end/44337
26454         * expr.c (expand_assignment): Don't store anything for out-of-bounds
26455         array accesses with non-MEM.
26456
26457         PR tree-optimization/44182
26458         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
26459         newly needs to end a bb is followed by debug stmts, instead return
26460         true from the function at the end.
26461         (maybe_move_debug_stmts_to_successors): New function.
26462         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
26463
26464 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
26465
26466         PR target/44161
26467         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
26468
26469 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
26470
26471         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
26472         for nested functions in non-optimized compilation.
26473
26474 2010-05-31  Richard Guenther  <rguenther@suse.de>
26475
26476         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
26477
26478 2010-05-30  Jan Hubicka  <jh@suse.cz>
26479
26480         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
26481
26482 2010-05-30  Richard Guenther  <rguenther@suse.de>
26483
26484         PR lto/42975
26485         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
26486         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
26487         no longer needed.
26488
26489 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
26490
26491         * config/darwin.c (output_objc_section_asm_op): Add comment.
26492         (name_needs_quotes): Add '_' to list of valid comment chars.
26493         (machopic_output_function_base_name): Remove unneeded quotes.
26494         (darwin_encode_section_info): Adjust asm whitespace.
26495         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
26496         (ASM_OUTPUT_LOCAL): Ditto.
26497         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
26498         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
26499         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
26500
26501 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
26502
26503         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
26504         RS6000_OUTPUT_BASENAME unconditionally.
26505         (rs6000_output_function_epilogue): Likewise.
26506
26507 2010-05-30  Jan Hubicka  <jh@suse.cz>
26508
26509         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
26510         nodes.
26511
26512 2010-05-30  Richard Guenther  <rguenther@suse.de>
26513
26514         * tree-cfg.c (verify_gimple_assign_single): Implement
26515         verification for COND_EXPR rhs.
26516
26517 2010-05-30  Jan Hubicka  <jh@suse.cz>
26518
26519         * cgraph.h (cgraph_dump_file): Declare.
26520         * cgraphunit.c (cgraph_dump_file): Export.
26521         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
26522
26523 2010-05-30  Jan Hubicka  <jh@suse.cz>
26524
26525         * dwarf2out.c (reference_to_unused,
26526         premark_types_used_by_global_vars_helper): Avoid creation of new
26527         varpool nodes.
26528
26529 2010-05-30  Jan Hubicka  <jh@suse.cz>
26530
26531         * cgraph.h (cgraph_node_cannot_return,
26532         cgraph_edge_cannot_lead_to_return): New functions.
26533         * cgraph.c (cgraph_node_cannot_return,
26534         cgraph_edge_cannot_lead_to_return): Use them.
26535         * ipa-pure-const.c (pure_const_names): New static var.
26536         (check_call): Handle calls not leading to return.
26537         (pure_const_read_summary): Dump info read.
26538         (propagate): Dump info about propagation process; ignore side effects
26539         of functions not leading to exit; fix handling of pure functions.
26540
26541 2010-05-30  Jan Hubicka  <jh@suse.cz>
26542
26543         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
26544         for tail call epilogues.
26545
26546 2010-05-30  Jan Hubicka  <jh@suse.cz>
26547
26548         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
26549         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
26550         dump files.
26551
26552 2010-05-29  Jan Hubicka  <jh@suse.cz>
26553
26554         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
26555         node; remove references in node we no longer keep in cgrpah but need
26556         body of.
26557
26558 2010-05-29  Jan Hubicka  <jh@suse.cz>
26559
26560         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
26561
26562 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26563
26564         PR target/44165
26565         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
26566
26567 2010-05-29  Jan Hubicka  <jh@suse.cz>
26568
26569         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
26570         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
26571         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
26572         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
26573         debug_names_replaced_by, debug_update_ssa): Likewise.
26574         * sbitmap.c (debug_sbitmap): Likewise.
26575         * genrecog.c (debug_decision, debug_decision_list): Likewise.
26576         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
26577         debug_tree_chain): Likewise.
26578         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
26579         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
26580         * optabs.c (debug_optab_libfuncs): Likewise.
26581         (verify_loop_closed_ssa): Likewise.
26582         * value-prof.c (verify_histograms): Likewise.
26583         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
26584         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
26585         * cfghooks.c (verify_flow_info): Likewise.
26586         * fold-const.c (debug_fold_checksum): Likewise.
26587         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
26588         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
26589         Likewise.
26590         * omega.c (debug_omega_problem): Likewise.
26591         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
26592         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
26593         * dominance.c (verify_dominators, debug_dominance_info,
26594         debug_dominance_tree): Likewise.
26595         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
26596         * df_regno_debug, df_ref_debug,
26597         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
26598         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
26599         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
26600         * sel-sched.c (debug_state): Likewise.
26601         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
26602         Likewise.
26603         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
26604         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
26605         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
26606         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
26607         Likewise.
26608         * c-pretty-print.c (debug_c_tree): Likewise.
26609         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
26610         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
26611         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
26612         * ebitmap.c (debug_ebitmap): Likewise.
26613         * function.c (debug_find_var_in_block_tree): Likewise.
26614         * print-rtl.c (debug_rtx): Likewise.
26615         (debug_rtx_count): Likewise.
26616         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
26617         * stor-layout.c (debug_rli): Likewise.
26618         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
26619         * tree-data-ref.c (debug_data_references,
26620         debug_data_dependence_relations, debug_data_reference,
26621         debug_data_dependence_relation, debug_rdg_vertex,
26622         debug_rdg_component, debug_rdg): Likewise.
26623         * tree-affine.c (debug_aff): Likewise.
26624         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
26625         Likewise.
26626         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
26627         * emit-rtl.c (verify_rtl_sharing): Likewise.
26628         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
26629         debug_value_expressions): Likewise.
26630         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
26631         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
26632         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
26633         * cfglayout.c (verify_insn_chain): Likewise.
26634         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
26635         debug_clast_stmt, debug_generated_program): Likewise.
26636         * ggc-page.c (debug_print_page_list): Likewise.
26637         * tree-ssa-ter.c (debug_ter): Likewise.
26638         * graphite-dependences.c (debug_pddr): Likewise.
26639         * sched-deps.c (debug_ds): Likewise.
26640         * tree-ssa.c (verify_ssa): Likewise.
26641         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
26642         debug_scattering_functions, debug_iteration_domains, debug_pdr,
26643         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
26644         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
26645         * tree-inline.c (debug_find_tree): Likewise.
26646         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
26647         debug_ppl_powerset_matrix): Likewise.
26648         * var-tracking.c (debug_dv): Likewise.
26649         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
26650         * cfgloop.c (verify_loop_structure): Likewise.
26651         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
26652         * c-common.c (verify_sequence_points): Likewise.
26653         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
26654         debug_candidates, debug_rgn_dependencies): Likewise.
26655         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
26656         * debug_constraint_graph, debug_solution_for_var,
26657         debug_sa_points_to_info): Likewise.
26658         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
26659         Likewie.
26660         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
26661         debug_loops, debug_loop, debug_loop_num): Likewise.
26662         * passes.c (debug_pass): Likewise.
26663         (dump_properties): Likewise; add cfglayout property.
26664         (debug_properties): Likewise.
26665         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
26666         * varpool.c (debug_varpool): Likewise.
26667         * regcprop.c (debug_value_data): Likewise.
26668         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
26669         debug_immediate_uses_for): Likewise.
26670
26671 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26672
26673         PR bootstrap/44315
26674         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
26675         Filter out insn-flags.h.
26676
26677 2010-05-29  Jan Hubicka  <jh@suse.cz>
26678
26679         * cgraph.h (struct varpool_node_set_def,
26680         struct cgraph_node_set_def): Remove unused AUX pointer.
26681         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
26682         VEC_empty macro.
26683
26684 2010-05-29  Jan Hubicka  <jh@suse.cz>
26685
26686         PR middle-end/44324
26687         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
26688
26689 2010-05-29  Richard Guenther  <rguenther@suse.de>
26690
26691         * lto-streamer.c (cached_bp): New global variable.
26692         (bitpack_create): Return the cached bitpack, if available.
26693         (bitpack_delete): Clear and cache the bitpack, if appropriate.
26694         (bp_pack_value): Remove redundant asserts.
26695
26696 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26697
26698         PR middle-end/44306
26699         * tree-if-conv.c (is_true_predicate): New.
26700         (is_predicated): Use is_true_predicate.
26701         (add_to_predicate_list): Same.  Do not use unshare_expr.
26702         (add_to_dst_predicate_list): Same.
26703
26704 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26705
26706         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
26707         field on edges.
26708         (predicate_bbs): Same.
26709         (clean_predicate_lists): Same.
26710         (find_phi_replacement_condition): Do not AND the predicate from
26711         edge->aux.
26712
26713 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26714
26715         PR bootstrap/44315
26716         * Makefile.in (build/gencondmd.o): Add a missing `\'.
26717
26718 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26719
26720         PR target/44261
26721         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
26722         (negdf2): Adjust expander pattern and use negdf2_slow.
26723         (negsf2): Likewise.
26724
26725 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
26726
26727         * basic-block.h (struct control_flow_graph): Move last_label_uid field
26728         up.
26729         * df.h (struct df_base_ref): Move regno field up.
26730         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
26731         * expr.h (struct separate_ops): Move location field up.
26732         * optabs.h (struct optab_d): Move libcall_basename field down.
26733         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
26734         * config/i386/i386.h (struct machine_function): Convert call_abi field
26735         into a bitfield.  Move cfa field to the end of the structure.
26736
26737 2010-05-29  Jan Hubicka  <jh@suse.cz>
26738
26739         * varpool.c (varpool_get_node): Fix lookup.
26740
26741 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26742
26743         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
26744         RTL specific prototypes with #ifdef RTX_CODE.
26745         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
26746         * config/spu/t-spu-elf: Fix dependencies.
26747
26748         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
26749
26750 2010-05-29  Mike Stump  <mikestump@comcast.net>
26751
26752         PR bootstrap/44315
26753         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
26754         TM_H when building to avoid dependency loops.
26755
26756 2010-05-29  Jan Hubicka  <jh@suse.cz>
26757
26758         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
26759         refs and body; not the whole node for masters of materialized clones.
26760
26761 2010-05-29  Mike Stump  <mikestump@comcast.net>
26762
26763         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
26764
26765 2010-05-29  Jan Hubicka  <jh@suse.cz>
26766
26767         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
26768         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
26769         use of clone_function_name.
26770         * cgraph.h (cgraph_create_virtual_clone,
26771         cgraph_function_versioning): update prototypes.
26772         (clone_function_name): Declare.
26773         * ipa-cp.c (ipcp_insert_stage): Update call of
26774         cgraph_create_virtual_clone.
26775         * omp-low.c (create_omp_child_function_name): Use
26776         cgraph_create_virtual_clone.
26777         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
26778         (cgraph_function_versioning): Take SUFFIX argument; produce new name
26779         and make decl local.
26780
26781 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26782
26783         * vec.h: Include statistics.h
26784         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
26785         with VEC_H.
26786
26787 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26788
26789         * c-lex.c: Do not include c-tree.h.
26790         * c-pretty-print.c: Likewise.
26791         * c-opts.c: Likewise.
26792         * c-gimplify.c: Likewise.
26793         * c-common.c: Likewise.
26794         * c-dump.c: Likewise.  Include c-common.h.
26795
26796 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26797
26798         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
26799         before including diagnostic-core.h.
26800         (c_cpp_error): New prototype moved from c-tree.h.
26801         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
26802         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
26803         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
26804         (c_cpp_error): Prototype moved to c-common.h.
26805         * Makefile.in: Update dependency for C_COMMON_H.
26806
26807 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26808
26809         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
26810         * c-common.c (c_register_addr_space): Remove here.
26811         * c-decl.c (c_register_addr_space): Re-add here.
26812
26813 2010-05-28  Mike Stump  <mikestump@comcast.net>
26814
26815         * config/darwin-c.c: Remove c-tree.h include.
26816
26817 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26818
26819         * gcc.c: Include diagnostic.h.
26820         (error_count): Remove.  All users changed to use errorcount.
26821         (programname): Remove.  All users changed to use progname.
26822         (fancy_abort, internal_error, fatal_error, error, warning, inform,
26823         fnotice): Remove.
26824         (execute): Don't include "Internal error" and bug reporting
26825         information in argument of internal_error call.
26826         (process_command): Don't increment error_count after calling
26827         perror_with_name.
26828         (input_filename): Rename to gcc_input_filename.  All users
26829         changed.
26830         (main): Call diagnostic_initialize.  Register delete_temp_files
26831         with atexit.  Use seen_error to test for errors.
26832         * gcc.h: Include diagnostic-core.h.
26833         (fatal_error, error, warning): Remove.
26834         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
26835         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
26836         (gcc.o): Update dependencies.
26837
26838 2010-05-28  Jeff Law  <law@redhat.com>
26839
26840         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
26841         functions.
26842         * ira.h (ira_bad_reload_regno): Declare
26843         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
26844
26845         * ira-color.c (update_curr_costs): Free updated hard reg costs.
26846         (ira_reassign_conflict_allocnos): Remove bogus asserts.
26847         (allocno_reload_assign): Likewise.
26848
26849 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
26850
26851         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
26852         build1_stat.
26853
26854 2010-05-28  Richard Guenther  <rguenther@suse.de>
26855
26856         PR lto/44312
26857         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
26858         Stream fixed-point constants mode.
26859         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
26860         and TYPE_PRECISION.
26861         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
26862         Stream fixed-point constants mode.
26863         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
26864         and TYPE_PRECISION.
26865
26866 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26867
26868         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
26869         only place it was called from.
26870         (number_of_latch_executions): Do not return chrec_dont_know when the
26871         may_be_zero is a runtime condition: instead, return a COND_EXPR
26872         including the may_be_zero condition.
26873         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
26874         of nb_iterations.
26875         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
26876         COND_EXPRs.
26877
26878 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26879
26880         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
26881         generate COND_EXPRs for degenerate_phi_result.
26882
26883 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26884
26885         PR middle-end/44293
26886         * tree-if-conv.c (if_convertible_loop_p): Check the
26887         if-convertibility of phi nodes in non predicated BBs.
26888
26889 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26890
26891         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
26892
26893 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26894
26895         PR driver/15303
26896         * gcc.c (inform, warning, inform): New functions.
26897         (fatal_ice): Rename to internal_error; change cmsgid parameter to
26898         gmsgid.  All callers changed.
26899         (notice): Rename to fnotice; add parameter fp.  All callers changed.
26900         (fatal_error): Rename to fatal_signal.  All users changed.
26901         (fatal): Rename to fatal_error; change cmsgid parameter to
26902         gmsgid.  All callers changed.
26903         (process_command): Use warning instead of error for warnings.
26904         (end_going_arg): Don't use _() around argument of error.
26905         (do_spec_1): Use inform for message from %n specs.  Use warning
26906         instead of error for warnings.
26907         (main): Use inform for comparison messages.  Use warning for
26908         message about unused linker input.
26909         (error): Increment error_count.  Print "error: ".
26910         * gcc.h (fatal): Change to fatal_error.
26911         (warning): Declare.
26912         * config/darwin-driver.c (darwin_default_min_version): Use warning
26913         instead of fprintf for warnings.
26914         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
26915
26916 2010-05-28  Julian Brown  <julian@codesourcery.com>
26917
26918         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
26919         (*thumb2_addsi3_compare0_scratch): New.
26920         * config/arm/constraints.md (Pv): New.
26921         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
26922         for ARM mode only.
26923         (*addsi3_compare0_scratch): Likewise.
26924
26925 2010-05-28  Jan Hubicka  <jh@suse.cz>
26926
26927         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
26928         check.
26929         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
26930         only on local statics.
26931
26932 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
26933
26934         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
26935
26936 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
26937
26938         PR bootstrap/44314
26939         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
26940         (OPTION_GLIBC): Define.
26941
26942 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
26943
26944         PR debug/41048
26945         * dwarf2out.c (double_int_type_size_in_bits): New function.
26946         (round_up_to_align): Change first argument and return value to
26947         double_int.
26948         (field_byte_offset): Work internally on double_ints.
26949
26950         PR target/43636
26951         * builtins.c (expand_movstr): Use a temporary pseudo instead
26952         of target even when target is not NULL and not const0_rtx, but
26953         fails movstr predicate.
26954         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
26955
26956 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26957
26958         * final.c (rest_of_clean_state): Use %m in errors instead of
26959         strerror (errno).
26960         * gengtype.c (read_input_list, close_output_files): Use xstrerror
26961         instead of strerror.
26962         * toplev.c (process_options): Use %m in errors instead of strerror
26963         (errno).
26964         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
26965         (errno).
26966
26967 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
26968
26969         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
26970         (ix86_canonical_va_list_type): Make static.  Add declaration.
26971         (ix86_enum_va_list): Make static.  Reindent.
26972         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
26973         (ix86_canonical_va_list_type): Ditto.
26974         (ix86_enum_va_list): Ditto.
26975
26976 2010-05-28  Richard Guenther  <rguenther@suse.de>
26977
26978         * lto-wrapper.c (run_gcc): With -save-temps generate a
26979         user-visible ltrans filename.  Fixup ltrans unit numbering.
26980
26981 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
26982
26983         * c-common.c (c_common_nodes_and_builtins): Replace use
26984         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
26985         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
26986         to ix86_enum_va_list.
26987         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
26988         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
26989         (TARGET_ENUM_VA_LIST_P): Add hook description.
26990         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
26991         * target.h (gcc_target): Add enum_va_list hook.
26992
26993         PR bootstrap/44299
26994         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
26995         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
26996         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
26997
26998 2010-05-28  Alan Modra  <amodra@gmail.com>
26999
27000         PR target/44266
27001         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27002         emit_library_call machinery to set up __tls_get_addr calls.
27003
27004 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27005
27006         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27007
27008 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
27009
27010         Revert fix for PR c++/44188
27011         * c-common.c (is_typedef_decl): Revert the moving of  this
27012         definition ...
27013         * tree.c (is_typedef_decl): ... here.
27014         (typdef_variant_p): Revert the moving of this  definition
27015         here from cp/tree.c.
27016         * c-common.h (is_typedef_decl): Revert the moving of this
27017         declaration ...
27018         * tree.h (is_typedef_decl): ... here.
27019         (typedef_variant_p): Revert the moving of this  declaration here
27020         from cp/cp-tree.h
27021         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27022         (gen_tagged_type_die): Revert the splitting out of ...
27023         (gen_type_die_with_usage): ... this function. Revert the anonymous
27024         tagged type handling.
27025         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
27026         typedefs naming anonymous tagged types.
27027
27028 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27029
27030         * config/rs6000/rs6000-modes.def (PSImode): Delete.
27031
27032 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27033
27034         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27035         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27036         throughout.
27037         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27038         "xer" to "ca".
27039         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27040         XER_REGS to CA_REGS throughout.
27041         * config/rs6000/rs6000.h: Same.
27042         (ADDITIONAL_REGISTER_NAMES): Add "xer".
27043         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
27044         that mode_iterator "P" is the size for arithmetic carries as well.
27045         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27046
27047 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27048
27049         PR bootstrap/44255
27050         * combine.c (struct rtx_subst_pair): Define unconditionally.
27051         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
27052         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27053         Call make_compound_operation on pair->to.
27054         (propagate_for_debug): Don't call make_compound_operation here.
27055         Always use simplify_replace_fn_rtx.
27056
27057 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
27058
27059         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27060         * config/xtensa/xtensa.c (override_options): Check
27061           TARGET_FORCE_NO_PIC and set flag_pic.
27062         * config/xtensa/xtensa.opt: Document -mforce-no-pic
27063
27064 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27065
27066         PR bootstrap/44299
27067         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27068         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27069
27070 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27071
27072         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
27073         toplev.h.
27074         * diagnostic.c: Don't include toplev.h.
27075         (progname): Define.  Moved from toplev.c.
27076         (seen_error): New function.
27077         * diagnostic.h: Include diagnostic-core.h.
27078         (diagnostic_t, emit_diagnostic): Don't declare here.
27079         * toplev.c (progname): Move to toplev.c.
27080         (emit_debug_global_declarations, compile_file, finalize,
27081         do_compile, toplev_main): Use seen_error.
27082         * toplev.h: Include diagnostic-core.h.
27083         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27084         internal_error, warning, warning_at, error, error_n, error_at,
27085         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27086         verbatim, fnotice, progname): Move to diagnostic-core.h.
27087         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27088         (expand_builtin_expect): Use seen_error.
27089         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
27090         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
27091         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
27092         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
27093         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
27094         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
27095         errorcount for errors.
27096         * c-opts.c (c_common_finish): Use seen_error.
27097         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27098         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
27099         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
27100         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
27101         (get_coverage_counts): Use seen_error.
27102         * dwarf2out.c (dwarf2out_finish): Use seen_error.
27103         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
27104         gimplify_body): Use seen_error.
27105         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
27106         * ipa-pure-const.c (gate_pure_const): Use seen_error.
27107         * ipa-reference.c (gate_reference): Use seen_error.
27108         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
27109         * lambda-code.c: Include diagnostic-core.h instead of
27110         diagnostic.h.
27111         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27112         * lto-compress.c: Include diagnostic-core.h instead of
27113         diagnostic.h.
27114         * lto-section-in.c: Include diagnostic-core.h instead of
27115         diagnostic.h.
27116         * lto-streamer-out.c: Include diagnostic-core.h instead of
27117         diagnostic.h.
27118         * lto-streamer.c: Include diagnostic-core.h instead of
27119         diagnostic.h.
27120         (gate_lto_out): Use seen_error.
27121         * matrix-reorg.c: Include diagnostic-core.h instead of
27122         diagnostic.h.
27123         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
27124         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
27125         (gate_expand_omp, lower_omp_1): Use seen_error.
27126         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
27127         (rest_of_decl_compilation, rest_of_type_compilation,
27128         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
27129         * tree-cfg.c (label_to_block_fn): Use seen_error.
27130         * tree-inline.c (optimize_inline_calls): Use seen_error.
27131         * tree-mudflap.c (mudflap_finish_file): Use
27132         seen_error.
27133         * tree-optimize.c (gate_all_optimizations,
27134         gate_all_early_local_passes, gate_all_early_optimizations): Use
27135         seen_error.
27136         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
27137         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
27138         (varpool_remove_unreferenced_decls,
27139         varpool_assemble_pending_decls): Use seen_error.
27140         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
27141         (TOPLEV_H, DIAGNOSTIC_H): Update.
27142         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
27143         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
27144         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
27145         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
27146         coverage.o, lambda-code.o): Update dependencies.
27147
27148 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
27149
27150         PR c++/44188
27151         * c-common.c (is_typedef_decl): Move this definition ...
27152         * tree.c (is_typedef_decl): ... here.
27153         (typdef_variant_p): Move definition here from cp/tree.c.
27154         * c-common.h (is_typedef_decl): Move this declaration ...
27155         * tree.h (is_typedef_decl): ... here.
27156         (typedef_variant_p): Move declaration here from cp/cp-tree.h
27157         * dwarf2out.c (is_naming_typedef_decl): New function.
27158         (gen_tagged_type_die): Split out of ...
27159         (gen_type_die_with_usage): ... this function. When an anonymous
27160         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27161         is emitted for the typedef.
27162         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27163         anonymous tagged types.
27164
27165 2010-05-27  Jason Merrill  <jason@redhat.com>
27166
27167         * print-tree.c (debug_vec_tree): New fn.
27168         (print_vec_tree): New fn.
27169         * tree.h: Declare them.
27170         * gdbinit.in (pvt): New command.
27171
27172         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
27173
27174         * gdbinit.in (pdd): New command.
27175
27176 2010-05-27  Jan Hubicka  <jh@suse.cz>
27177
27178         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
27179         (update_caller_keys): Return early if there are no callers;
27180         only update fibheap when decresing the key.
27181         (update_callee_keys): Avoid recursion.
27182         (decide_inlining_of_small_functions): When badness does not match;
27183         re-insert into fibheap.
27184
27185 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
27186
27187         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
27188         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
27189         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
27190         (ALL_HOST_OBJS): Now a union of the above two.
27191         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
27192         all files in ALL_HOST_FRONTEND_OBJS.
27193         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
27194
27195         * c-common.c: Pretend to be a backend file by undefining
27196         IN_GCC_FRONTEND (still need rtl.h here).
27197
27198 2010-05-27  Jan Hubicka  <jh@suse.cz>
27199
27200         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
27201         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
27202
27203 2010-05-27  Jan Hubicka  <jh@suse.cz>
27204
27205         * sched-ebb.c: Rename struct deps to struct deps_desc.
27206         * ddg.c: Likewise.
27207         * sel-sched-ir.c: Likewise.
27208         * sched-deps.c: Likewise.
27209         * sched-int.h: Likewise.
27210         * sched-rgn.c: Likewise.
27211
27212 2010-05-27  Jon Beniston  <jon@beniston.com>
27213
27214         PR 43726
27215         * config/lm32/lm32.h: Remove definition of
27216         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
27217
27218 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27219
27220         PR lto/44230
27221         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
27222
27223 2010-05-27  Richard Guenther  <rguenther@suse.de>
27224
27225         PR tree-optimization/44284
27226         * tree-vect-stmts.c (vectorizable_assignment): Handle
27227         sign-changing conversions as simple copy.
27228
27229 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27230
27231         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
27232         Bionic C library.
27233         (__gthread_active_p): Check for pthread_create if compiling against
27234         Bionic C library.
27235
27236 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27237
27238         Support compilation for Android platform.  Reimplement -mandroid.
27239
27240         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
27241         (*android*): Set ANDROID_DEFAULT.
27242         (arm*-*-linux*): Include linux-android.h.
27243         (arm*-*-eabi*): Don't include previous -mandroid implementation.
27244         * config/arm/eabi.h: Remove, move Android-specific parts ...
27245         * config/linux-android.h: ... here.  New file.
27246         * config/arm/eabi.opt: Rename to ...
27247         * config/linux-android.opt: ... this.
27248         (mandroid): Allow -mno-android option.  Initialize based on
27249         ANDROID_DEFAULT.
27250         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
27251         Move logic to corresponding LINUX_TARGET_* macros.
27252         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
27253         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
27254         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
27255         Android definitions.
27256         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
27257         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
27258         Document.
27259
27260 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27261
27262         Add support for Bionic C library
27263
27264         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
27265         macro.
27266         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
27267         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
27268
27269         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
27270         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
27271         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
27272         to support multiple C libraries.  Handle Bionic.
27273         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
27274         (BIONIC_DYNAMIC_LINKER64): Define.
27275         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
27276         Update.
27277         (TARGET_HAS_SINCOS): Enable for Bionic.
27278
27279         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
27280         the last option specified on command line take effect.
27281         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
27282         (mbionic): New.
27283         (mglibc, muclibc): Update.
27284
27285         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
27286         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
27287         DEFAULT_LIBC.
27288
27289         * doc/invoke.texi (-mglibc, -muclibc): Update.
27290         (-mbionic): Document.
27291
27292 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27293
27294         * c-common.h (c_register_addr_space): Add prototype.
27295         (ADDR_SPACE_KEYWORD): Remove.
27296         * c-common.c (c_register_addr_space): New function.
27297         (c_addr_space_name): Reimplement.
27298         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
27299
27300         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
27301         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
27302
27303         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
27304         Remove TARGET_ADDR_SPACE_KEYWORDS.
27305
27306 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27307
27308         * input.c: New file.
27309         * input.h (main_input_filename): Move declaration to toplev.h.
27310         * toplev.c (input_location, line_table): Move to input.c
27311         * toplev.h (main_input_filename): Move declaration from input.h.
27312         * tree.c (expand_location): Move to input.c.
27313         * Makefile.in (OBJS-common): Add input.o.
27314         (input.o): Add dependencies.
27315
27316 2010-05-27  Richard Guenther  <rguenther@suse.de>
27317
27318         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
27319         for non-existant files.
27320         (fork_execute): Mark args_name file as deleted.
27321
27322 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27323
27324         PR bootstrp/44287
27325         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
27326         (narrow_signed_type): Likewise.
27327
27328 2010-05-26  Jan Hubicka  <jh@suse.cz>
27329
27330         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
27331         edge only when checking is enabled; check using former_clone_of;
27332         check inline clones too.
27333         (cgraph_materialize_clone): Record former_clone_of pointer.
27334         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
27335         combining redirections; dump args_to_skip bitmap
27336         (cgraph_materialize_all_clones): Do no redirection here.
27337         * ipa-inline.c (inline_transform): Do redirection here.
27338         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
27339         cheking only).
27340
27341 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27342
27343         * config/avr/avr-c.c: Do not include regs.h.
27344         Include cpplib.h for cpp_define and tree.h for c-common.h.
27345         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
27346         * config/avr/t-avr: Fix dependencies for avr-c.o.
27347
27348 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27349
27350         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
27351         string instead of SYMBOL_REF rtx.
27352         * rtl.h (set_stack_check_libfunc): Move prototype from here...
27353         * libfuncs.h: ...to here.  Adjust for explow.c change.
27354
27355 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27356
27357         * pretty-print.c: Don't include ggc.h.
27358         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
27359         (identifier_to_locale): Use them for allocation.
27360         * pretty-print.h (identifier_to_locale_alloc,
27361         identifier_to_locale_free): Declare.
27362         * toplev.c (alloc_for_identifier_to_locale): New.
27363         (general_init): Set identifier_to_locale_alloc and
27364         identifier_to_locale_free.
27365         * Makefile.in (pretty-print.o): Update dependencies.
27366
27367 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27368
27369         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
27370         pointer types if they have different alignment or mode.
27371
27372 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
27373
27374         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27375         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27376         * config/sparc/sparc-protos.h (function_value): Remove declaration.
27377         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
27378         sparc_function_value_regno_p): New functions.
27379         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27380         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27381         (function_value): Rename to...
27382         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
27383         argument to 'outgoing'.
27384         (function_arg_record_value, function_arg_union_value,
27385         function_arg_vector_value): Update comment.
27386
27387 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27388
27389         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
27390         (fde_needed_for_eh_p): New predicate.
27391         (output_call_frame_info): Use it throughout to decide whether FDEs
27392         are needed for EH purpose.
27393         (dwarf2out_begin_prologue): Reorder assignments.
27394
27395 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27396
27397         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
27398         special case loop->header.
27399         (is_predicated): New.
27400         (if_convertible_loop_p): Call it.
27401
27402 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27403
27404         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
27405         iterator in parameter.  Do not generate code during the analysis.
27406         (tree_if_convert_cond_stmt): Removed.
27407         (tree_if_convert_stmt): Removed.
27408         (predicate_bbs): New.
27409         (if_convertible_loop_p): Call predicate_bbs.
27410         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
27411         now contains all the analysis part.
27412
27413 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27414
27415         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
27416         statements in the analysis part.
27417         (tree_if_convert_stmt): Update comment.
27418         (remove_conditions_and_labels): New.
27419         (combine_blocks): Call remove_conditions_and_labels.
27420         (tree_if_conversion): Update comment.
27421
27422 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27423
27424         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
27425         than 2 predecessors or more than 2 successors.
27426
27427 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27428
27429         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
27430         of loops in which the data dependence analysis fails.
27431
27432 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27433
27434         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
27435         CDI_POST_DOMINATORS.
27436         (tree_if_conversion): Same.
27437
27438 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27439
27440         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
27441
27442 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27443
27444         * tree-if-conv.c: Update copyright years.  Fix comments.
27445         Fix indentation.
27446
27447 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
27448
27449         * builtin-types.def (BT_INT128): New primitive type.
27450         (BT_UINT128): Likewise.
27451         * c-common.c (c_common_r): Add __int128 keyword.
27452         (c_common_type_for_size): Handle __int128.
27453         (c_common_type_for_mode): Likewise.
27454         (c_common_signed_or_unsigned_type): Likewise.
27455         (c_common_nodes_and_builtins): Add builtin type
27456         if target supports 128-bit integer scalar.
27457         * c-common.h (enum rid): Add RID_INT128.
27458         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
27459         if target supports 128-bit integer scalar.
27460         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
27461         (finish_declspecs): Likewise.
27462         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
27463         (c_token_starts_declspecs): Likewise.
27464         (c_parser_declspecs): Likewise.
27465         (c_parser_attributes): Likewise.
27466         (c_parser_objc_selector): Likewise.
27467         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
27468         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
27469         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
27470         * tree.c (make_or_reuse_type): Likewise.
27471         (make_unsigned_type): Likewise.
27472         (build_common_tree_nodes_2): Likewise.
27473         * tree.h (enum integer_type_kind): Add itk_int128 and
27474         itk_unsigned_int128.
27475         (int128_integer_type_node): New define.
27476         (int128_unsigned_type_node): New define.
27477         * doc/extend.texi: Add documentation about __int128 type.
27478
27479 2010-05-26  Richard Guenther  <rguenther@suse.de>
27480
27481         * tree-ssa-sccvn.c (copy_nary): Adjust.
27482         (copy_phis): Rename to ...
27483         (copy_phi): ... this.  Adjust.
27484         (copy_references): Rename to ...
27485         (copy_reference): ... this.  Adjust.
27486         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
27487         result into the valid table.
27488
27489 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27490
27491         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
27492         insn-config.h, insn-codes.h, recog.h, and optabs.h.
27493
27494 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27495
27496         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
27497
27498 2010-05-26  Richard Guenther  <rguenther@suse.de>
27499
27500         * opts.c (common_handle_option): Handle OPT_Ofast.
27501
27502 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27503
27504         * diagnostic.c: Don't include opts.h.
27505         (permissive_error_option): Define.
27506         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
27507         for classify_diagnostic.  Don't use memset for
27508         classify_diagnostic.  Initialize new and recently added fields.
27509         (diagnostic_classify_diagnostic): Use context->n_opts instead of
27510         N_OPTS.
27511         (diagnostic_report_diagnostic): Pass context parameter to
27512         diagnostic_report_warnings_p.  Use option_enabled and option_name
27513         hooks from context.
27514         (emit_diagnostic): Use permissive_error_option.
27515         (permerror): Likewise.
27516         * diagnostic.h: Don't include options.h.
27517         (struct diagnostic_context): Add n_opts, opt_permissive,
27518         inhibit_warnings, warn_system_headers, option_enabled and
27519         option_name fields.  Change classify_diagnostic to a pointer.
27520         * opts-diagnostic.h: New file.
27521         * opts.c: Include opts-diagnostic.h.
27522         (common_handle_option): Set global_dc fields for -Wfatal-errors,
27523         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
27524         (option_name): New function.
27525         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
27526         (c_common_handle_option): Set global_dc->permissive for
27527         -fpermissive.
27528         * c-common.c (c_cpp_error): Save and restore
27529         global_dc->warn_system_headers, not variable warn_system_headers.
27530         * toplev.c: Include opts-diagnostic.h.
27531         (general_init): Update call to diagnostic_initialize.  Set
27532         global_dc->show_column, global_dc->option_enabled and
27533         global_dc->option_name.
27534         (process_options): Don't set global_dc fields here.
27535         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
27536         (diagnostic.o, opts.o, toplev.o): Update dependencies.
27537
27538 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27539
27540         * config/picochip/picochip.md (movsi): Split a movsi from a
27541         const after reload.
27542
27543 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27544
27545         * ggc-zone.c: Update copyright year.
27546         (poison_region): Mark memory for Valgrind as undefined before
27547         memset () call and inaccessible afterwards.
27548         (ggc_pch_total_size): Change type of i to int.
27549
27550 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27551
27552         * ggc-common.c (ggc_free_overhead): Allow empty slot.
27553
27554 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27555
27556         * ggc-common.c: Update copyright year.
27557         (ggc_rlimit_bound): Remove prototype.  Compile only if
27558         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
27559         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
27560         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
27561         (ggc_min_heapsize_heuristic): Likewise.
27562
27563 2010-05-26  Richard Guenther  <rguenther@suse.de>
27564
27565         PR rtl-optimization/44164
27566         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
27567         no-common access-path disambiguation.
27568         (indirect_ref_may_alias_decl_p): Adjust.
27569         (indirect_refs_may_alias_p): Likewise.
27570         (refs_may_alias_p_1): Likewise.
27571
27572 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27573
27574         * c-typeck.c: Do not include expr.h.
27575
27576 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27577
27578         * rtl.h (decl_default_tls_model): Move prototype from here...
27579         * output.h: ...to here.
27580         * c-decl.c: Do not include rtl.h.
27581         * c-pragma.c: Likewise.
27582         * c-parser.c: Likewise.
27583         * c-gimplify.c: Likewise.  And also not hard-reg-set.
27584         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
27585         FIXME note for it.  Add a FIXME note for expr.h.
27586         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
27587         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
27588         defined.
27589
27590 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
27591
27592         PR target/44199
27593         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
27594         or total_size is larger than red zone size for non-V4 ABI, emit a
27595         stack_tie resp. frame_tie insn before stack pointer restore.
27596         * config/rs6000/rs6000.md (frame_tie): New insn.
27597
27598 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
27599
27600         * function.h (struct function): Add can_throw_non_call_exceptions bit.
27601         * lto-streamer-in.c (input_function): Stream it in.
27602         * lto-streamer-out.c (output_function): Stream it out.
27603         * function.c (allocate_struct_function): Set it.
27604         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
27605         for flag_non_call_exceptions.
27606         * cfgbuild.c (control_flow_insn_p): Likewise.
27607         (make_edges): Likewise.
27608         * cfgexpand.c (expand_stack_alignment): Likewise.
27609         * combine.c (distribute_notes): Likewise.
27610         * cse.c (cse_extended_basic_block): Likewise.
27611         * except.c (insn_could_throw_p): Likewise.
27612         * gcse.c (simple_mem): Likewise.
27613         * ipa-pure-const.c (check_call): Likewise.
27614         (check_stmt ): Likewise.
27615         * lower-subreg.c (lower-subreg.c): Likewise.
27616         * optabs.c (emit_libcall_block): Likewise.
27617         (prepare_cmp_insn): Likewise.
27618         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
27619         * postreload.c (rest_of_handle_postreload): Likewise.
27620         * reload1.c (reload_as_needed): Likewise.
27621         (emit_input_reload_insns): Likewise.
27622         (emit_output_reload_insns): Likewise.
27623         (fixup_abnormal_edges): Likewise.
27624         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
27625         * store-motion.c (find_moveable_store): Likewise.
27626         * tree-eh.c (stmt_could_throw_p): Likewise.
27627         (tree_could_throw_p): Likewise.
27628         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27629         * config/arm/arm.c (arm_expand_prologue): Likewise.
27630         (thumb1_expand_prologue): Likewise.
27631         * config/rx/rx.md (cbranchsf4): Likewise.
27632         (cmpsf): Likewise.
27633         * config/s390/s390.c (s390_emit_prologue): Likewise.
27634         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
27635         (inline_forbidden_into_p): New predicate.
27636         (expand_call_inline): Use it to forbid inlining.
27637         (tree_can_inline_p): Likewise.
27638
27639 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27640
27641         * config/i386/i386-c.c: Do not include rtl.h.
27642         * config/i386/t-i386: Update dependencies.
27643
27644 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27645
27646         * attribs.c: Do not include rtl.h.
27647         * Makefile.in: Update dependencies.
27648
27649 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
27650
27651         * double-int.h (double_int_and): New.
27652         * combine.c (try_combine): Clean up, use double_int_* and
27653         immed_double_int_const functions.
27654
27655 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27656
27657         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
27658         stderr to /dev/null instead of grep -q.
27659         * configure: Regenerate.
27660
27661 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27662
27663         * Makefile.in (EXCEPT_H): Fix typo.
27664
27665 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
27666
27667         * ira-build.c (update_conflict_hard_reg_costs): New.
27668         (ira_build): Call update_conflict_hard_reg_costs.
27669
27670 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27671
27672         PR debug/41371
27673         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
27674         ENABLE_CHECKING.
27675         (intersect_loc_chains): Walk the s2var's loc_chain together
27676         with s1node chain as long as the locations are equal, don't
27677         call find_loc_in_1pdv in that case.
27678
27679         PR debug/42801
27680         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
27681         (copy_bind_expr): ... instead of here.
27682         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
27683         if the block hasn't been remapped.
27684         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
27685         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
27686
27687 2010-05-25  Richard Guenther  <rguenther@suse.de>
27688
27689         PR middle-end/44069
27690         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
27691         out-of-bounds array accesses.
27692
27693 2010-05-25  Richard Guenther  <rguenther@suse.de>
27694
27695         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
27696         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
27697         (run_gcc): Re-organize to make cleanup easier.
27698
27699 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27700
27701         * config/s390/s390.c (optimization_options): Fix and move the
27702         flag_prefetch_loop_arrays override ...
27703         (override_options): ... here.
27704
27705 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
27706
27707         * diagnostic.c: Don't include plugin.h.
27708         (diagnostic_report_diagnostic): Don't handle plugins specially
27709         here.  Pass context to internal_error callback.
27710         * diagnostic.h (struct diagnostic_context): Add context parameter
27711         to internal_error callback.
27712         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
27713         * plugin.h (struct diagnostic_context): Declare.
27714         (warn_if_plugins, plugins_internal_error_function): Declare.
27715         * toplev.c (general_init): Set global_dc->internal_error.
27716         * Makefile.in (diagnostic.o): Update dependencies.
27717
27718 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
27719
27720         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
27721         * config/rs6000/t-darwin64: New.
27722         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
27723         build crt2.
27724
27725 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
27726
27727         PR 44203
27728         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
27729         match the original (and intended) behaviour before r159557.  This
27730         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
27731         in two ways.
27732
27733 2010-05-25  Richard Guenther  <rguenther@suse.de>
27734
27735         * doc/invoke.texi: Document -Ofast.
27736         * target.h (struct gcc_target): Add handle_ofast.
27737         * target-def.h (TARGET_HANDLE_OFAST): Add.
27738         (TARGET_INITIALIZER): Adjust.
27739         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
27740         * common.opt (Ofast): Add.
27741
27742 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27743
27744         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
27745         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
27746
27747 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27748
27749         PR target/43610
27750         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
27751         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
27752         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
27753         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
27754
27755 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27756
27757         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
27758         DW_OP_minus with negated offset instead of DW_OP_plus.
27759         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
27760
27761 2010-05-25  Wei Guozhi  <carrot@google.com>
27762
27763         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
27764         tst instruction and a new alternative.
27765         * config/arm/constraints.md (Pu): New constraint.
27766
27767 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
27768
27769         * function.c (assign_stack_local_1): Initialize variable
27770         to avoid warning when bootstrapping at -O3.
27771
27772 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
27773
27774         * configure.ac (all_lang_makefiles): Remove everything related to it.
27775         * configure: Regenerate.
27776         * Makefile.in: Fix reference to ada Make-lang.in.
27777         Remove support for LANG_MAKEFILES.
27778
27779 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
27780             Sandra Loosemore  <sandra@codesourcery.com>
27781
27782         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
27783         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
27784         description.  Add arm_neon_fp16_ok.
27785         (Add Options): Add arm_neon and arm_neon_fp16.
27786
27787 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
27788
27789         * diagnostic.c: Don't include flags.h.
27790         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
27791         context parameters.  Check flags in the context passed as a parameter.
27792         (diagnostic_build_prefix): Add context parameter.  Check
27793         show_column flag in context.
27794         (diagnostic_action_after_output): Check fatal_errors flag in context.
27795         (diagnostic_report_current_module): Check show_column flag in context.
27796         (default_diagnostic_starter): Update call to
27797         diagnostic_build_prefix.
27798         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
27799         (emit_diagnostic): Pass context to permissive_error_kind.
27800         (permerror): Pass context to permissive_error_kind.
27801         * diagnostic.h (struct diagnostic_context): Add show_column,
27802         pedantic_errors, permissive and fatal_errors fields.
27803         (diagnostic_build_prefix): Update prototype.
27804         * langhooks.c
27805         * toplev.c (process_options): Set flags in global_dc from
27806         flag_show_column, flag_pedantic_errors, flag_permissive,
27807         flag_fatal_errors.
27808         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
27809         to diagnostic_build_prefix.
27810         * Makefile.in (diagnostic.o): Update dependencies.
27811
27812 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
27813
27814         * config/i386/ia32intrin.h (__crc32q): Define only if
27815         __SSE4_2__ is defined.
27816
27817 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
27818
27819         PR target/44132
27820         PR middle-end/43602
27821         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
27822         DECL_VISIBILITY_SPECIFIED.
27823         (emutls_decl): Set DECL_PRESERVE_P and copy
27824         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
27825         (emutls_finalize_control_var): New callback.
27826         (emutls_finish): Finalize emutls control variables.
27827         * toplev.c (compile_file): Move the call to emutls_finish ()
27828         before varpool_assemble_pending_decls ().
27829
27830 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
27831
27832         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
27833         added to the preprocessor condition.
27834
27835 2010-05-24  Paul Brook  <paul@codesourcery.com>
27836
27837         * gengtype-lex.l: Add HARD_REG_SET.
27838         * expr.c (expand_expr_real_1): Record writes to hard registers.
27839         * function.c (rtl_data): Add asm_clobbers.
27840         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
27841         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
27842         Use crtl->asm_clobbers.
27843
27844 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27845
27846         * doc/makefile.texi (Makefile): Mention stages 'profile'
27847         and 'feedback' for profiledbootstrap.
27848
27849 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
27850
27851         PR target/44245
27852         * config/i386/i386.c (def_builtin): Properly check
27853         OPTION_MASK_ISA_64BIT.
27854
27855 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
27856
27857         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
27858         typedefs with different but compatible types.  Allow duplicate
27859         typedefs with the same type except for pedantic non-C1X, but give
27860         warning for variably modified types.
27861         * c-typeck.c (tagged_types_tu_compatible_p,
27862         function_types_compatible_p, type_lists_compatible_p,
27863         comptypes_internal): Add parameter different_types_p; set
27864         *different_types_p for different but compatible types.  All
27865         callers changed.
27866         (comptypes_check_different_types): New.
27867         * c-tree.h (comptypes_check_different_types): Declare.
27868
27869 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27870
27871         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
27872         * jump.c: Include basic-block.h.
27873         * profile.c: Likewise.
27874         * tree-profile.c: Likewise.
27875         * coverage.c: Likewise.
27876         * basic-block.h (optimize_function_for_size_p): Move to function.h.
27877         (optimize_function_for_speed_p): Likewise.
27878         * function.h (optimize_function_for_size_p,
27879         optimize_function_for_speed_p): Moved here from basic-block.h.
27880         * Makefile.in: Update dependencies.
27881
27882 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27883
27884         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
27885         before calling make; allow override through $MAKE.
27886         * doc/invoke.texi (Optimize Options): Document override.
27887
27888 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
27889
27890         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
27891         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27892         (rs6000_mode_dependent_address_ptr): Make static.
27893         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27894         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
27895         Remove.
27896
27897 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
27898
27899         PR target/43869
27900         * config/i386/i386.c: Make sure that the correct regparm is passed.
27901
27902 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27903
27904         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
27905         * sbitmap.c: ...to here to internalize sbitmap element access.
27906         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
27907         Explain why basic-block.h is included.
27908         * function.h: Include tm.h for CUMULATIVE_ARGS.
27909         * Makefile.in: Update dependencies.
27910
27911 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27912
27913         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
27914         New core types.
27915         * sbitmap.h (struct sbitmap_def): Do not typedef here.
27916         * sbitmap.c: Include sbitmap.h.
27917         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
27918         hard-reg-set.h.  Split everything related to regsets out from here...
27919         * regset.h: ...to here.  New file.
27920         * df.h: Include regset.h and sbitmap.h.
27921         * tree-flow.h: Likewise.
27922         * cfgloop.h: Likewise.
27923         * except.h: Do not include sbitmap.h.  Include hashtab.h.
27924         * cgraph.h: Include vec.h and function.h.
27925         * reload.h (struct insn_chain): Change types of live_throughout
27926         and dead_or_set from regset_head to bitmap_head.
27927         (compute_use_by_pseudos): Be defined also if regset.h is not included.
27928         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
27929         spilled_regs from regset_head to bitmap_head to avoid dependency
27930         in regset.h.
27931         * sel-sched-ir.h: Include regset.h.
27932         * reload.c: Include df.h before reload.h.
27933         * caller-save.c: Likewise.
27934         * reload1.c: Likewise.
27935         * ira.c: Likewise.
27936         (mark_elimination): Update type of r to bitmap, consistent with
27937         DF_LR_IN.
27938         * dominance.c: Include bitmap.h.
27939         * modulo-sched.c: Include df.h.
27940         * cfganal.c: Include bitmap.h and sbitmap.h.
27941         * cfgbuild.c: Include sbitmap.h.
27942         * lcm.c: Include sbitmap.h.
27943         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
27944         * domwalk.c: Include sbitmap.h, exclude ggc.h.
27945         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
27946         * cselib.c: Include bitmap.h.
27947         * tree-optimize.c: Include regset.h.
27948         * stmt.c: Include bitmap.h.
27949         * Makefile.in: Update dependencies.
27950
27951 2010-05-22  Jan Hubicka  <jh@suse.cz>
27952
27953         * cgraph.h (struct varpool_node): Add same_comdat_group.
27954         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
27955         pointer.
27956         (output_varpool): Update call of lto_output_varpool_node.
27957         (input_varpool): Read same_comdat_group pointer.
27958         (input_varpool_1): Fixup same_comdat_group pointer.
27959         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
27960         group is needed, all are.
27961         * varpool.c (varpool_remove_node): Remove node from same comdat group
27962         linklist too.
27963         (varpool_analyze_pending_decls): Walk same comdat groups.
27964
27965 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27966
27967         * rtl.h (union rtunion_def): Remove rt_bit member.
27968         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
27969         * print-rtl (print_rtx): Do not print the member.
27970         * gengtype.c (adjust_field_rtx_def): Do not handle it.
27971         * gengenrtl.c (type_from_format): Likewise.
27972         (accessor_from_format): Likewise.
27973
27974 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
27975
27976         * dbgcnt.c: Include toplev.h instead of errors.h.
27977         * ira-emit.c: Don't include errors.h.
27978         * ira.c: Include toplev.h instead of errors.h.
27979         * lto-compress.c: Include toplev.h instead of errors.h.
27980         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
27981         ira.o, dbgcnt.o): Update dependencies.
27982
27983 2010-05-22  Richard Guenther  <rguenther@suse.de>
27984
27985         * gimple.c (gimple_types_compatible_p): Check type qualifications
27986         before merging pointer to complete and pointer to incomplete type.
27987         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
27988         we use our own resolution algorithm.  The gold linker plugin
27989         doesn't do the job we want it to do here.
27990
27991 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
27992
27993         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27994         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27995         (sparc_mode_dependent_address_p): New function.
27996
27997 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27998
27999         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28000
28001         * timevar.c: Do not include any core headers.
28002         (timevar_print): De-i18n-ize.
28003         (print_time): Likewise.
28004         * timevar.h (timevar_push, timevar_pop): Make inline functions.
28005
28006 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
28007
28008         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28009         langhooks-def.h.
28010         (diagnostic_initialize): Initialize x_data not last_function.
28011         (diagnostic_report_current_function): Move to tree-diagnostic.c.
28012         (default_diagnostic_starter): Call
28013         diagnostic_report_current_module not
28014         diagnostic_report_current_function.
28015         (diagnostic_report_diagnostic): Initialize x_data not
28016         abstract_origin.
28017         (verbatim): Likewise.
28018         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28019         x_data.
28020         (struct diagnostic_context): Change last_function to x_data.
28021         (diagnostic_auxiliary_data): Replace with
28022         diagnostic_context_auxiliary_data and
28023         diagnostic_info_auxiliary_data.
28024         (diagnostic_last_function_changed, diagnostic_set_last_function,
28025         diagnostic_report_current_function): Move to tree-diagnostic.h.
28026         (print_declaration, dump_generic_node, print_generic_stmt,
28027         print_generic_stmt_indented, print_generic_expr,
28028         print_generic_decl, debug_c_tree, dump_omp_clauses,
28029         print_call_name, debug_generic_expr, debug_generic_stmt,
28030         debug_tree_chain, default_tree_printer): Move to
28031         tree-pretty-print.h.
28032         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28033         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28034         gimple-pretty-print.h.
28035         * pretty-print.c: Don't include tree.h
28036         (pp_base_format): Don't handle %K here.
28037         (pp_base_tree_identifier): Move to tree-pretty-print.c.
28038         * pretty-print.h (text_info): Change abstract_origin to x_data.
28039         (pp_tree_identifier, pp_unsupported_tree,
28040         pp_base_tree_identifier): Move to tree-pretty-print.h.
28041         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28042         tree-pretty-print.h: New files.
28043         * tree-pretty-print.c: Include tree-pretty-print.h.
28044         (percent_K_format): New.  Moved from pretty-print.c.
28045         (pp_base_tree_identifier): Move from pretty-print.c.
28046         * c-objc-common.c: Include tree-pretty-print.h.
28047         (c_tree_printer): Handle %K here.
28048         * langhooks.c: Include tree-diagnostic.h.
28049         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28050         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28051         (default_tree_printer): Handle %K using percent_K_format.
28052         (general_init): Use default_tree_diagnostic_starter.
28053         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28054         (free_lang_data): Use default_tree_diagnostic_starter.
28055         * c-pretty-print.c: Include tree-pretty-print.h.
28056         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28057         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28058         * dwarf2out.c: Include tree-pretty-print.h.
28059         * except.c: Include tree-pretty-print.h.
28060         * gimple-pretty-print.c: Include tree-pretty-print.h and
28061         gimple-pretty-print.h.
28062         * gimplify.c: Include tree-pretty-print.h.
28063         * graphite-poly.c: Include tree-pretty-print.h and
28064         gimple-pretty-print.h.
28065         * ipa-cp.c: Include tree-pretty-print.h.
28066         * ipa-inline.c: Include gimple-pretty-print.h.
28067         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28068         * ipa-pure-const.c: Include gimple-pretty-print.h.
28069         * ipa-struct-reorg.c: Include tree-pretty-print.h and
28070         gimple-pretty-print.h.
28071         * ipa-type-escape.c: Include tree-pretty-print.h.
28072         * print-rtl.c: Include tree-pretty-print.h.
28073         * print-tree.c: Include gimple-pretty-print.h.
28074         * sese.c: Include tree-pretty-print.h.
28075         * tree-affine.c: Include tree-pretty-print.h.
28076         * tree-browser.c: Include tree-pretty-print.h.
28077         * tree-call-cdce.c: Include gimple-pretty-print.h.
28078         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28079         * tree-chrec.c: Include tree-pretty-print.h.
28080         * tree-data-ref.c: Include tree-pretty-print.h and
28081         gimple-pretty-print.h.
28082         * tree-dfa.c: Include tree-pretty-print.h.
28083         * tree-if-conv.c: Include tree-pretty-print.h and
28084         gimple-pretty-print.h.
28085         * tree-inline.c: Include tree-pretty-print.h.
28086         * tree-into-ssa.c: Include tree-pretty-print.h and
28087         gimple-pretty-print.h.
28088         * tree-nrv.c: Include tree-pretty-print.h.
28089         * tree-object-size.c: Include tree-pretty-print.h and
28090         gimple-pretty-print.h.
28091         * tree-outof-ssa.c: Include tree-pretty-print.h and
28092         gimple-pretty-print.h.
28093         * tree-parloops.c: Include tree-pretty-print.h and
28094         gimple-pretty-print.h.
28095         * tree-predcom.c: Include tree-pretty-print.h and
28096         gimple-pretty-print.h.
28097         * tree-scalar-evolution.c: Include tree-pretty-print.h and
28098         gimple-pretty-print.h.
28099         * tree-sra.c: Include tree-pretty-print.h.
28100         * tree-ssa-address.c: Include tree-pretty-print.h.
28101         * tree-ssa-alias.c: Include tree-pretty-print.h.
28102         * tree-ssa-ccp.c: Include tree-pretty-print.h and
28103         gimple-pretty-print.h.
28104         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
28105         * tree-ssa-copy.c: Include tree-pretty-print.h and
28106         gimple-pretty-print.h.
28107         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
28108         * tree-ssa-dce.c: Include tree-pretty-print.h and
28109         gimple-pretty-print.h.
28110         * tree-ssa-dom.c: Include tree-pretty-print.h and
28111         gimple-pretty-print.h.
28112         * tree-ssa-dse.c: Include gimple-pretty-print.h.
28113         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
28114         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
28115         * tree-ssa-live.c: Include tree-pretty-print.h and
28116         gimple-pretty-print.h.
28117         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
28118         gimple-pretty-print.h.
28119         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
28120         gimple-pretty-print.h.
28121         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
28122         gimple-pretty-print.h.
28123         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
28124         gimple-pretty-print.h.
28125         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
28126         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
28127         * tree-ssa-operands.c: Include tree-pretty-print.h and
28128         gimple-pretty-print.h.
28129         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
28130         gimple-pretty-print.h.
28131         * tree-ssa-pre.c: Include tree-pretty-print.h and
28132         gimple-pretty-print.h.
28133         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
28134         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
28135         gimple-pretty-print.h.
28136         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
28137         gimple-pretty-print.h.
28138         * tree-ssa-sink.c: Include gimple-pretty-print.h.
28139         * tree-ssa-ter.c: Include tree-pretty-print.h and
28140         gimple-pretty-print.h.
28141         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
28142         * tree-ssa.c: Include tree-pretty-print.h and
28143         gimple-pretty-print.h.
28144         * tree-stdarg.c: Include gimple-pretty-print.h.
28145         * tree-switch-conversion.c: Include gimple-pretty-print.h.
28146         * tree-tailcall.c: Include tree-pretty-print.h and
28147         gimple-pretty-print.h.
28148         * tree-vect-data-refs.c: Include tree-pretty-print.h and
28149         gimple-pretty-print.h.
28150         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
28151         gimple-pretty-print.h.
28152         * tree-vect-loop.c: Include tree-pretty-print.h and
28153         gimple-pretty-print.h.
28154         * tree-vect-patterns.c: Include gimple-pretty-print.h.
28155         * tree-vect-slp.c: Include tree-pretty-print.h and
28156         gimple-pretty-print.h.
28157         * tree-vect-stmts.c: Include tree-pretty-print.h and
28158         gimple-pretty-print.h.
28159         * tree-vectorizer.c: Include tree-pretty-print.h.
28160         * tree-vrp.c: Include tree-pretty-print.h and
28161         gimple-pretty-print.h.
28162         * value-prof.c: Include tree-pretty-print.h and
28163         gimple-pretty-print.h.
28164         * var-tracking.c: Include tree-pretty-print.h.
28165         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
28166         (tree-diagnostic.o): New dependencies.
28167         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
28168         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
28169         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
28170         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
28171         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
28172         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
28173         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
28174         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
28175         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
28176         tree-ssa-address.o, tree-ssa-loop-niter.o,
28177         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
28178         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
28179         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
28180         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
28181         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
28182         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
28183         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
28184         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
28185         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
28186         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
28187         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
28188         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
28189         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
28190         tree-switch-conversion.o, var-tracking.o, value-prof.o,
28191         cfgexpand.o, pretty-print.o): Update dependencies.
28192
28193 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
28194
28195         * tree-ssa-structalias.c: Remove tm_p.h from include.
28196
28197 2010-05-21  Jeff Law  <law@redhat.com>
28198
28199         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
28200
28201 2010-05-21  Jason Merrill  <jason@redhat.com>
28202
28203         * tree-eh.c (cleanup_is_dead_in): New.
28204         (lower_try_finally): Don't generate a dead cleanup region.
28205         (lower_cleanup): Likewise.
28206
28207 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28208
28209         PR debug/44223
28210         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
28211         unchain each use from the cyclic next_regno_use chain first.
28212
28213 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28214
28215         * real: Do not include gmp.h, mpfr.h, and mpc.h.
28216         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
28217         (real_value_negate, real_value_abs): New prototypes.
28218         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
28219         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
28220         new include file for interface between MPFR and REAL_VALUE_TYPE.
28221         * real.c: Include realmpfr.h.
28222         (real_arithmetic2): Remove legacy function.
28223         (real_value_negate): New.
28224         (real_value_abs): New.
28225         (mfpr_from_real, real_from_mpfr): Move from here...
28226         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
28227         * builtins.c: Include realmpfr.h.
28228         * fold-const.c: Include realmpfr.h.
28229         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
28230         (fold_negate_const): Likewise.
28231         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
28232         * toplev.c: Include realmpfr.h.
28233         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
28234         and real_value_negate.
28235         * fixed-value.c (check_real_for_fixed_mode): Likewise.
28236         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
28237         (vfp3_const_double_index): Likewise.
28238         (arm_print_operand): Likewise.
28239         * Makefile.in: Update dependencies.
28240
28241 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28242
28243         * config/s390/s390.c (override_options): Increase the default
28244         of max-completely-peel-times.
28245
28246 2010-05-21  Julian Brown  <julian@codesourcery.com>
28247             Mark Mitchell  <mark@codesourcery.com>
28248
28249         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
28250         sibling calls for Thumb-1.
28251         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
28252         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
28253         Thumb-2.
28254         (*call_insn, *call_value_insn): Don't use for Thumb-2.
28255         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
28256         for Thumb-2.
28257         (return): New expander.
28258         (*arm_return): New name for ARM return insn.
28259         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
28260
28261 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
28262
28263         * config.gcc (sparc64-*-rtems*): New target.
28264
28265 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28266
28267         * tree.c (build_function_decl_skip_args): Fix grammar.
28268         (build_function_type_list_1): Fix typos, adjust formatting.
28269
28270 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28271
28272         * tree.h: Include real.h and fixed-value.h as basic datatypes.
28273         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
28274         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
28275         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
28276         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
28277         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
28278         tree-pretty-print.c, tree-loop-distribution.c,
28279         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
28280         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
28281         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
28282         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
28283         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
28284         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
28285         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
28286         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
28287         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
28288         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
28289         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
28290         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
28291         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
28292         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
28293         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
28294         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
28295         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
28296         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
28297         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
28298         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
28299         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
28300         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
28301         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
28302         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
28303         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
28304         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
28305         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
28306         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
28307         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
28308         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
28309         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
28310         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
28311         config/score/score7.c, config/score/score.c, config/arm/arm.c,
28312         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
28313         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
28314         config/bfin/bfin.c: Clean up redundant includes.
28315         * Makefile.in: Update accordingly.
28316
28317 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28318
28319         PR middle-end/44204
28320         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
28321         statement has no arguments.
28322
28323 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
28324
28325         PR/44139
28326         * varasm.c (emutls_decl): Merge attributes to new decl.
28327
28328 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
28329
28330         PR middle-end/44101
28331         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
28332         around the uniquized constructor if its type requires a conversion.
28333
28334 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28335
28336         PR debug/44205
28337         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
28338         at -O0 goto_locus of any of the incoming edges differs from
28339         goto_locus of outgoing edge, or gimple_location of any of the
28340         labels differs.
28341
28342 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
28343
28344         * ira.c (ira_non_ordered_class_hard_regs): Define.
28345         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
28346         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
28347         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
28348         cost of unaligned hard regs when allocating multi-reg pseudos.
28349
28350 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
28351
28352         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
28353         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
28354         for TARGET_NO_FLOAT.
28355         * config/mips/mips.c (mips_file_start): Expand conditional expression
28356         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
28357         (mips_override_options): Move -mno-float override -msoft-float and
28358         -mhard-float.
28359         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
28360         Condition(TARGET_SUPPORTS_NO_FLOAT).
28361         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
28362         __mips_no_float here.
28363         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
28364         (TARGET_SUPPORTS_NO_FLOAT): Define.
28365         * config/mips/sdemtk.opt: Delete.
28366
28367 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
28368
28369         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
28370
28371 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
28372
28373         PR target/43733
28374         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
28375         * configure: Regenerate.
28376         * config.in: Regenerate.
28377         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
28378         instead of sahf only for 64bit targets.
28379
28380 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28381
28382         PR debug/44178
28383         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
28384         setup_ref_regs for DEBUG_INSNs.
28385
28386 2010-05-20  Jan Hubicka  <jh@suse.cz>
28387
28388         PR middle-end/44197
28389         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
28390
28391 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
28392
28393         PR bootstrap/43870
28394         * df-scan.c (df_ref_compare): Stabilize sort.
28395
28396 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28397
28398         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
28399         argument.  Don't use DW_OP_piece if offset is non-zero,
28400         put offset into second DW_OP_bit_piece argument.
28401         (dw_sra_loc_expr): Adjust callers.  For memory expressions
28402         compute offset.
28403
28404 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
28405
28406         PR target/44202
28407         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
28408         settings for 16-bit-constant "addo" alternative.
28409
28410 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
28411
28412         * config/mips/mips-dsp.md (add<DSPV:mode>3,
28413         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
28414
28415         PR target/43764
28416         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
28417         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
28418         Use it.
28419
28420 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
28421
28422         * diagnostic.c (FLOAT, FFS): Don't undefine.
28423         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
28424         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
28425         include ordering.
28426
28427 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
28428
28429         * combine.c (propagate_for_debug): Call make_compound_operation
28430         on the source value.
28431         (try_combine): When implementing a split chosen by find_split_point,
28432         either copy i2src or set it to null.  Assert that i2src is not null
28433         before substituting into CALL_INSN_FUNCTION_USAGE.
28434
28435 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
28436
28437         * double-int.h (double_int_ior): New function.
28438         * tree.h (build_int_cst_wide_type): Remove.
28439         * tree.c (build_int_cst_wide_type): Remove.
28440         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
28441         of build_int_cst_wide_type.
28442         * stor-layout.c (set_sizetype): (Ditto.).
28443         * dojump.c (do_jump): Use build_int_cstu instead of
28444         build_int_cst_wide_type.
28445
28446 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28447
28448         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
28449         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
28450         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
28451         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
28452         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
28453         propagate the 'data' argument to copy_tree_r.
28454         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
28455         Propagate 'data' argument to walk_tree.
28456         (copy_if_shared): New function.
28457         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
28458         (unmark_visited): New function.
28459         (unshare_body): Call copy_if_shared instead of doing it manually.
28460         (unvisit_body): Call unmark_visited instead of doing it manually.
28461
28462 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
28463
28464         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
28465         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
28466         * hooks.c: Likewise.
28467         * target-def.h (TARGET_FOLD_BUILTIN): Define to
28468         hook_tree_tree_int_treep_bool_null.
28469         * target.h (struct gcc_target): Update signature of fold_builtin
28470         field.
28471         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
28472         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
28473         instead of the call expression.
28474         (fold_builtin_call_array): Pass n and argarray directly.
28475         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
28476         consing a list.
28477         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
28478         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
28479         `i' and use it in place of `arity'.
28480         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
28481         Dereference `args' directly.
28482         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
28483
28484 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28485
28486         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28487         3dnow, sse3, sse2.
28488         (Directives): Document optional dg-require-effective-target
28489         selector.
28490
28491 2010-05-19  Richard Guenther  <rguenther@suse.de>
28492
28493         PR lto/44196
28494         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
28495
28496 2010-05-19  Richard Guenther  <rguenther@suse.de>
28497
28498         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
28499         * common.opt (fwhopr=): New.
28500         * opts.c (common_handle_option): Handle OPT_fwhopr.
28501         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
28502         * collect2.c (main): Match -fwhopr*.
28503         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
28504         Execute ltrans stage in parallel when jobs is bigger than 1.
28505
28506 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28507
28508         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
28509         pentiumpro on Solaris 8/x86 with Sun as.
28510         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
28511         hidden alias bug.
28512         (gcc_cv_as_ix86_quad): Check for .quad directive.
28513         * configure: Regenerate.
28514         * config.in: Regenerate.
28515         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
28516
28517 2010-05-19  Martin Jambor  <mjambor@suse.cz>
28518
28519         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
28520         also for indirect edges.  Actual printing moved...
28521         (ipa_print_node_jump_functions_for_edge): ...here.
28522         (ipa_compute_jump_functions): Renamed to
28523         ipa_compute_jump_functions_for_edge and made static.
28524         (ipa_compute_jump_functions): New function.
28525         (make_edge_direct_to_target): Check if the number of arguments on
28526         the newly direct edge is the same as the number of parametrs of
28527         the callee.
28528         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
28529         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
28530         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
28531         analysis functions unconditionally, call the new
28532         ipa_analyze_params_uses on the node instead of every edge.
28533
28534 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
28535
28536         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
28537         to tree.
28538         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
28539         also checks for a constant int vs.  non-constant but
28540         loop-invariant steps.
28541         (find_or_create_group): Change the sort algorithm to only consider
28542         steps that are constant ints.
28543         (idx_analyze_ref): Adopt code to handle a tree instead of a
28544         HOST_WIDE_INT for step.
28545         (gather_memory_references_ref): Handle tree instead of int and be
28546         prepared to see a NULL_TREE.
28547         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
28548         prefetches if the step cannot be calculated at compile time.
28549         (issue_prefetch_ref): Issue prefetches for non-constant but
28550         loop-invariant steps.
28551
28552 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28553
28554         Revert:
28555         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28556
28557         * tree.h (build_call_list): Remove.
28558         * tree.c (build_call_list): Remove.
28559
28560 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28561
28562         * tree.h (build_call_list): Remove.
28563         * tree.c (build_call_list): Remove.
28564
28565 2010-05-18  Jan Hubicka  <jh@suse.cz>
28566
28567         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
28568
28569 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
28570
28571         PR rtl-optimization/43332
28572         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
28573
28574 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
28575
28576         * tree.h (build_int_cstu): Implement as static inline.
28577         * tree.c (build_int_cstu): Remove function.
28578         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
28579         sign extended.
28580
28581 2010-05-18  Richard Guenther  <rguenther@suse.de>
28582
28583         PR lto/44143
28584         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
28585         (debug): Initialize from -save-temps.
28586         (collect_execute): Print command-line when verbose.
28587         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
28588         for ltrans invocation.  Produce -dumpbase flag again.
28589         (process_args): Remove.
28590         (main): Simplify.
28591         * collect2.c (maybe_run_lto_and_relink): Only pass object
28592         files to lto-wrapper.
28593         * gcc.c (LINK_COMMAND_SPEC): Likewise.
28594
28595 2010-05-18  Jan Hubicka  <jh@suse.cz>
28596
28597         * opts.c (decode_options): Do not disable whopr at ipa_cp.
28598         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
28599
28600 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28601
28602         PR lto/44184
28603         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
28604         in a GIMPLE_ASM.
28605         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
28606         in a GIMPLE_ASM.
28607
28608 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
28609
28610         PR debug/41371
28611         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
28612         rtx_equal_p inline.
28613
28614 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28615
28616         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
28617         lto-macho as lto_binary_reader.
28618
28619         * darwin.c (darwin_asm_named_section): Do not add assembler comment
28620         after .section directive; just print it before the directive instead.
28621
28622 2010-05-17  Jan Hubicka  <jh@suse.cz>
28623
28624         * cgraph.c (cgraph_create_virtual_clone): Only check
28625         versionable_function_p when not in wpa and checking is enabled.
28626         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
28627         there are no more functions to materialize.
28628
28629 2010-05-17  Jan Hubicka  <jh@suse.cz>
28630
28631         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
28632         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
28633         New functions.
28634         (output_cgraph): Call output_cgraph_opt_summary.
28635         (input_cgrpah): Call input_cgraph_opt_summary.
28636         (output_cgraph_opt_summary_p, output_node_opt_summary,
28637         input_node_opt_summary, input_cgraph_opt_section): New functions.
28638         * lto-section-in.c (lto_section_name): Add cgraphopt.
28639         * tree-inline.c (tree_function_versioning): Handle parm_num.
28640         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
28641         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
28642
28643 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28644
28645         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
28646         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
28647         the insn to prefetch ratio heuristic to loops with known trip count.
28648
28649 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28650
28651         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
28652         (schedule_prefetches): Do not generate a prefetch if the unroll factor
28653         is far from what is required by the prefetch.
28654
28655 2010-05-17  Jan Hubicka  <jh@suse.cz>
28656
28657         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
28658         (ipcp_estimate_growth): Likewise.
28659         (ipcp_const_param_count): Likewise.
28660         (ipcp_insert_stage): Likewise.
28661         * ipa-prop.c (visit_load_for_mod_analysis): New function.
28662         (visit_store_addr_for_mod_analysis): Set used flag.
28663         (ipa_detect_param_modifications): Set used flag for SSE params;
28664         update use of walk_stmt_load_store_addr_ops.
28665         (ipa_print_node_params): Print used flag.
28666         (ipa_write_node_info): Stream used flag.
28667         (ipa_read_node_info): Likewise.
28668         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
28669         (ipa_is_param_used): New function.
28670         (lto_ipa_fixup_call_notes): Remove unused declaration.
28671
28672 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28673
28674         PR target/44074
28675         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
28676         * configure: Regenerate.
28677         * config.in: Regenerate.
28678         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
28679         !HAVE_AS_IX86_REP_LOCK_PREFIX.
28680         Don't emit whitespace.
28681         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
28682         (*rep_movsi): Likewise.
28683         (*rep_movsi_rex64): Likewise.
28684         (*rep_movqi): Likewise.
28685         (*rep_movqi_rex64): Likewise.
28686         (*rep_stosdi_rex64): Likewise.
28687         (*rep_stossi): Likewise.
28688         (*rep_stossi_rex64): Likewise.
28689         (*rep_stosqi): Likewise.
28690         (*rep_stosqi_rex64): Likewise.
28691         (*cmpstrnqi_nz_1): Use {%;} after repz.
28692         (*cmpstrnqi_nz_rex_1): Likewise.
28693         (*cmpstrnqi_1): Likewise.
28694         (*cmpstrnqi_rex_1): Likewise.
28695         (*strlenqi_1): Use {%;} after repnz.
28696         (*strlenqi_rex_1): Likewise.
28697         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
28698         (*sync_compare_and_swap<mode>): Likewise.
28699         (sync_double_compare_and_swap<mode>): Likewise.
28700         (*sync_double_compare_and_swapdi_pic): Likewise.
28701         (sync_old_add<mode>): Likewise.
28702         (sync_add<mode>): Likewise.
28703         (sync_sub<mode>): Likewise.
28704         (sync_<code><mode>): Likewise.
28705
28706 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28707
28708         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
28709         otr_token and polymorphic.
28710         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
28711         (cgraph_clone_edge): Copy the above fields.
28712         * tree.c (get_binfo_at_offset): New function.
28713         * tree.h (get_binfo_at_offset): Declare.
28714         * ipa-prop.h (enum jump_func_type): Added known_type jump function
28715         type, reordered items, updated comments.
28716         (union jump_func_value): Added base_type field, reordered fields.
28717         (enum ipa_lattice_type): Moved down in the file.
28718         (struct ipa_param_descriptor): New field polymorphic.
28719         (ipa_is_param_polymorphic): New function.
28720         * ipa-prop.c: Include gimple.h and gimple-fold.h.
28721         (ipa_print_node_jump_functions): Print known type jump functions.
28722         (compute_complex_pass_through): Renamed to...
28723         (compute_complex_assign_jump_func): this.
28724         (compute_complex_ancestor_jump_func): New function.
28725         (compute_known_type_jump_func): Likewise.
28726         (compute_scalar_jump_functions): Create known type and complex ancestor
28727         jump functions.
28728         (ipa_note_param_call): New parameter polymorphic, set the corresponding
28729         flag in the call note accordingly.
28730         (ipa_analyze_call_uses): Renamed to...
28731         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
28732         variable var only in the block where it is used.
28733         (ipa_analyze_virtual_call_uses): New function.
28734         (ipa_analyze_call_uses): Likewise.
28735         (combine_known_type_and_ancestor_jfs): Likewise.
28736         (update_jump_functions_after_inlining): Implemented handling of a
28737         number of new jump function types combination.
28738         (print_edge_addition_message): Removed.
28739         (make_edge_direct_to_target): New function.
28740         (try_make_edge_direct_simple_call): Likewise.
28741         (try_make_edge_direct_virtual_call): Likewise.
28742         (update_call_notes_after_inlining): Renamed to...
28743         (update_indirect_edges_after_inlining): this.  Moved edge creation for
28744         indirect calls to try_make_edge_direct_simple_call, also calls
28745         try_make_edge_direct_virtual_call for virtual calls.
28746         (ipa_print_node_params): Changed the header message.
28747         (ipa_write_jump_function): Stream also known type jump functions.
28748         (ipa_read_jump_function): Likewise.
28749         (ipa_write_indirect_edge_info): Stream new fields in
28750         cgraph_indirect_call_info.
28751         (ipa_read_indirect_edge_info): Likewise.
28752         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
28753         GIMPLE_FOLD_H.
28754
28755 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28756
28757         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
28758
28759 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28760
28761         * tree.h (CALL_EXPR_ARGS): Delete.
28762         (call_expr_arglist): Delete.
28763         * tree.c (call_expr_arglist): Delete.
28764         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
28765         targetm.fold_builtin.
28766         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
28767         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
28768         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
28769         arglist parameter.  Use CALL_EXPR_ARG.
28770         (picochip_expand_builtin_3op): Likewise.
28771         (picochip_expand_builtin_2opvoid): Likewise.
28772         (picochip_expand_array_get): Likewise.
28773         (picochip_expand_array_put): Likewise.
28774         (picochip_expand_array_testport): Likewise.
28775         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
28776         rather than arglist.
28777         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
28778         CALL_EXPR_ARGS.
28779         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
28780         than TREE_VALUE and TREE_CHAIN.
28781         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
28782         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
28783         the arglist.
28784
28785 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28786
28787         PR bootstrap/42347
28788         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
28789         to have no fallthru edge.
28790
28791         PR middle-end/44102
28792         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
28793         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
28794         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
28795         add BARRIER after previous bb if needed.
28796
28797 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28798
28799         * tree.c (build_function_type_list_1): Remove bogus assert condition.
28800
28801 2010-05-17  Alan Modra  <amodra@gmail.com>
28802
28803         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
28804         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
28805         with copy_reg rtx param.
28806         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
28807         Correct cases where code for ABI_V4 did not initialise the reg
28808         used to access frame.  Also leave frame_reg_rtx as sp for large
28809         frames that save no regs.
28810
28811 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28812
28813         PR middle-end/44133
28814         * tree-sra.c (create_access_replacement): New parameter rename, mark
28815         the replaement for renaming only when it is true.
28816         (get_access_replacement): Pass true in the rename parameter of
28817         create_access_replacement.
28818         (get_unrenamed_access_replacement): New function.
28819         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
28820         replacement declaration from it.
28821
28822 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
28823
28824         * function.c (try_fit_stack_local, add_frame_space): New static
28825         functions.
28826         (assign_stack_local_1): Use them.  Look for opportunities to use
28827         space previously wasted on alignment.
28828         * function.h (struct frame_space): New.
28829         (struct rtl_data): Add FRAME_SPACE_LIST member.
28830         * reload1.c (something_was_spilled): New static variable.
28831         (alter_reg): Set it.
28832         (reload): Test it in addition to testing if the frame size changed.
28833
28834 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
28835
28836         * config/s390/s390.c: Define sane prefetch settings and activate
28837         flag_prefetch_loop_arrays on -O3.
28838         * config/s390/s390.h: Declare that read can use write prefetch.
28839
28840 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28841
28842         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
28843         build.
28844
28845 2010-05-16  Jan Hubicka  <jh@suse.cz>
28846
28847         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
28848         function body; do not check stdarg field of struct function.
28849
28850 2010-05-16  Jan Hubicka  <jh@suse.cz>
28851
28852         * cgraph.c (dump_cgraph_node): Dump versionable flag.
28853         * cgraph.h (cgraph_local_info): Add versionable flag.
28854         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
28855         (ipcp_versionable_function_p): Use it.
28856         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28857         versionable flag.
28858
28859 2010-05-16  Jan Hubicka  <jh@suse.cz>
28860
28861         * cgraph.c (cgraph_clone_node): Take decl argument and insert
28862         clone into hash when it is different from orig.
28863         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
28864         * cgraph.h (cgraph_clone_node): Update prototype.
28865         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
28866         (lto_cgraph_encoder_delete): Delete body map.
28867         (lto_cgraph_encoder_size): Move to header.
28868         (lto_cgraph_encoder_encode_body_p,
28869         lto_set_cgraph_encoder_encode_body): New.
28870         (lto_output_node): Do not take written_decls argument; output clone_of
28871         pointer.
28872         (add_node_to): Add include_body_argument; call
28873         lto_set_cgraph_encoder_encode_body on master of the clone.
28874         (add_references): Update use of add_node_to.
28875         (compute_ltrans_boundary): Likewise.
28876         (output_cgraph): Do not create written_decls bitmap.
28877         (input_node): Take nodes argument; stream in clone_of correctly.
28878         (input_cgraph_1): Update use of input_node.
28879         * lto-streamer-out.c (lto_output): Use encoder info to decide
28880         what bodies to output.
28881         * ipa-inline.c (cgraph_clone_inlined_nodes,
28882         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
28883         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
28884         (lto_cgraph_encoder_size): Define here.
28885         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
28886         Declare.
28887
28888 2010-05-16  Richard Guenther  <rguenther@suse.de>
28889
28890         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
28891         -fipa-type-escape.
28892         * ipa-type-escape.c (gate_type_escape_vars): Run when
28893         -fipa-struct-reorg runs.
28894         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
28895         * common.opt (fipa-type-escape): Remove.
28896
28897 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28898
28899         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
28900         (decode_options): Likewise.
28901         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
28902
28903 2010-05-16  Jan Hubicka  <jh@suse.cz>
28904
28905         * ipa.c (function_and_variable_visibility): Also bring local all
28906         aliases.
28907
28908 2010-05-16  Richard Guenther  <rguenther@suse.de>
28909
28910         * alias.c (nonoverlapping_memrefs_p): Remove use of
28911         IPA type-escape information.
28912
28913 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
28914
28915         * c-common.c (c_common_reswords): Add _Static_assert for C.
28916         * c-parser.c (c_token_starts_declaration,
28917         c_parser_next_token_starts_declaration,
28918         c_parser_static_assert_declaration_no_semi,
28919         c_parser_static_assert_declaration): New.
28920         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
28921         Handle static assertions if static_assert_ok.
28922         (c_parser_external_declaration, c_parser_declaration_or_fndef,
28923         c_parser_compound_statement_nostart, c_parser_label,
28924         c_parser_for_statement, c_parser_objc_methodprotolist,
28925         c_parser_omp_for_loop): All callers of
28926         c_parser_declaration_or_fndef changed.
28927         (c_parser_struct_declaration): Handle static assertions.
28928         (c_parser_compound_statement_nostart): Use
28929         c_parser_next_token_starts_declaration and
28930         c_token_starts_declaration to detect start of declarations.
28931         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
28932         Likewise.
28933
28934 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
28935
28936         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28937         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28938         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28939         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28940         (mmix_function_outgoing_value): Rename to...
28941         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
28942         (mmix_function_value_regno_p): Make static.
28943         (mmix_libcall_value): New function.
28944         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
28945         mmix_function_value_regno_p): Remove declaration.
28946
28947 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28948
28949         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
28950         BUILT_IN_ALLOCA if stack checking is enabled.
28951
28952 2010-05-16  Richard Guenther  <rguenther@suse.de>
28953
28954         * var-tracking.c (vars_copy_1): Inline ...
28955         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28956         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
28957         (variable_merge_over_cur): Adjust.  Merge asserts.
28958         (variable_merge_over_src): Likewise.
28959         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
28960         (variable_post_merge_new_vals): Merge asserts.
28961         (variable_post_merge_perm_vals): Likewise.
28962         (find_mem_expr_in_1pdv): Likewise.
28963         (dataflow_set_different_value): Remove.
28964         (onepart_variable_different_p): Merge asserts.
28965         (variable_different_p): Likewise.
28966         (dataflow_set_different_1): Inline ...
28967         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28968         (emit_notes_for_differences_1): Merge asserts.
28969
28970 2010-05-16  Richard Guenther  <rguenther@suse.de>
28971
28972         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
28973         * optabs.c (libfunc_decl_hash): Likewise.
28974         * varasm.c (emutls_decl): Likewise.
28975
28976 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
28977
28978         * c-decl.c: Don't include gimple.h.
28979         (merge_decls): Do not copy gimple_body.
28980
28981 2010-05-15  Jason Merrill  <jason@redhat.com>
28982
28983         * c.opt: Add -fnothrow-opt.
28984
28985 2010-05-15  Jan Hubicka  <jh@suse.cz>
28986
28987         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
28988         analyzed.
28989         * passes.c (ipa_write_summaries): Write all analyzed nodes.
28990
28991 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
28992
28993         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
28994         * Makefile.in: Add it.
28995         Fix all other Makefile dependencies for changes below.
28996         * tree.h: Include it instead of defining VEC primitives here.
28997         * gimple.h: Likewise.
28998         * rtl.h: Likewise.
28999         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29000         * except.h: Include vecir.h, break dependence on tree.h.
29001
29002         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29003         Move from here...
29004         * tree-iterator.c: ...to here.
29005         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
29006
29007         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
29008         tm_p.h.
29009         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29010         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29011         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29012         tree-mudflap.h, and target.h.
29013         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29014         predict.h, tree-inline.h, gimple.h, and langhooks.h.
29015         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29016         Add FIXME for why gimple.h is still included (should be unnecessary
29017         since GCC 4.5 gimplification unit-at-a-time).
29018         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29019         * c-pragma.c: Add FIXME for why function.h needs to be included just
29020         for cfun, at front-end level.
29021         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29022         Do not include ggc.h, but include vecprim.h for VEC(char).
29023         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29024         Explain why target.h is included.
29025         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29026         Explain why gimple.h is included.
29027         * c-ppoutput.c: Do not include tm.h.
29028         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
29029         * c-parses.c: Explain why rtl.h is included, and that this (and only
29030         this) is also why tm.h must be included.
29031         Do not include except.h.
29032         * c-lang.c: Do not include ggc.h.
29033
29034 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
29035
29036         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29037
29038 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
29039
29040         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29041         unions by default if those structs and unions have no tags.  Do
29042         not condition anonymous struct and unions handling on flag_iso.
29043         Allow anonymous structs and unions for C1X.
29044         (finish_struct): Do not diagnose lack of named fields when
29045         anonymous structs and unions present for C1X.  Accept flexible
29046         array members in structure with anonymous structs or unions but no
29047         directly named fields.
29048         * doc/extend.texi (Unnamed Fields): Update.
29049
29050 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
29051
29052         * gimple.h (compare_field_offset): Rename into...
29053         (gimple_compare_field_offset): ...this.
29054         * gimple.c (compare_field_offset): Rename into...
29055         (gimple_compare_field_offset): ...this.  Compare the full access if
29056         the offset is self-referential.
29057         (gimple_types_compatible_p): Adjust for above renaming.
29058         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
29059         DECL_NONADDRESSABLE_P flag of fields before merging them.
29060
29061 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
29062
29063         * tree.h (ctor_to_list): Delete.
29064         * tree.c (ctor_to_list): Delete.
29065
29066 2010-05-15  Jan Hubicka  <jh@suse.cz>
29067
29068         * ipa-reference.c: Include toplev.h
29069         (is_proper_for_analysis): Only add to all_module_statics
29070         if it is allocated.
29071         (write_node_summary_p, stream_out_bitmap,
29072         ipa_reference_write_optimization_summary,
29073         ipa_reference_read_optimization_summary): New.
29074         (struct ipa_opt_pass_d pass_ipa_reference): Add
29075         optimization summary streaming.
29076         * lto-cgraph.c (referenced_from_this_partition_p,
29077         reachable_from_this_partition_p): New functions.
29078         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29079         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29080         * opts.c (decode_options): Enable ipa_reference.
29081         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29082         * lto-streamer.h (referenced_from_this_partition_p,
29083         reachable_from_this_partition_p): Declare.
29084
29085 2010-05-15  Richard Guenther  <rguenther@suse.de>
29086
29087         PR tree-optimization/44038
29088         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
29089         taking the address of a V_C_E of a constant.
29090
29091 2010-05-14  Jan Hubicka  <jh@suse.cz>
29092
29093         * tree.h (memory_identifier_string): Remove.
29094         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
29095         (ipa_reference_global_vars_info_d): Remove statics_not_read and
29096         statics_not_written.
29097         (ipa_reference_optimization_summary_d): New structure.
29098         (ipa_reference_optimization_summary_t): New type and vector.
29099         (ipa_reference_vars_info_d): Embedd structures instead of using
29100         pointers.
29101         (reference_vars_to_consider): Remove out of GGC space.
29102         (module_statics_escape): Remove.
29103         (global_info_obstack): Rename to ...
29104         (optimization_summary_obstack): ... this one.
29105         (initialization_status_t): Remove.
29106         (memory_identifier_string): Remove.
29107         (get_reference_vars_info): Fix indenting.
29108         (set_reference_vars_info): Likewise.
29109         (get_reference_optimization_summary): New.
29110         (set_reference_optimization_summary): New.
29111         (get_global_reference_vars_info): Remove.
29112         (ipa_reference_get_read_global): Remove.
29113         (ipa_reference_get_written_global): Remove.
29114         (ipa_reference_get_not_read_global): Update.
29115         (ipa_reference_get_not_written_global): Update.
29116         (is_proper_for_analysis): Outlaw addressable.
29117         (propagate_bits): Update for new datastructures.
29118         (analyze_variable): Remove.
29119         (init_function_info): Update for new datastructures.
29120         (clean_function_local_data): Remove.
29121         (clean_function): Remove.
29122         (copy_global_bitmap): Use optimizations_summary_obstack.
29123         (duplicate_node_data): Duplicate optimization summary only.
29124         (remove_node_data): Remove optimization summary only.
29125         (generate_summary): Do not analyze variables; do not compute
29126         module_statics_escape; do not prune solutions by it.
29127         (read_write_all_from_decl): Fix typos in comments.
29128         (propagate): Doscover readonly and nonaddressable first;
29129         update for new datastructures; share global bitmaps.
29130         * ipa-reference.h (ipa_reference_get_read_global,
29131         ipa_reference_get_written_global): Remove.
29132         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
29133         * Makefile.in: Remove ipa-refereference from GT files.
29134
29135 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29136
29137         PR debug/44112
29138         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
29139         for all SYMBOL_REF_DECLs.
29140
29141 2010-05-14  Jan Hubicka  <jh@suse.cz>
29142
29143         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
29144         (varpool_all_refs_explicit_p): New inline function.
29145         * ipa-reference.c: Update comment.
29146         (module_statics_written): Remove.
29147         (get_static_decl): Remove.
29148         (ipa_init): Do not initialize module_statics_written.
29149         (analyze_function): Likewise.
29150         (generate_summary): Likewise; do not compute module_statics_readonly
29151         and do not update variable flags.
29152         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
29153         * ipa.c: Inlucde flags.h
29154         (cgraph_local_node_p): New.
29155         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
29156         promote functions to local.
29157         (ipa_discover_readonly_nonaddressable_vars): New function.
29158         (function_and_variable_visibility): Use cgraph_local_node_p.
29159         * varpool.c (varpool_finalize_decl): Set force_output for
29160         DECL_PRESERVE_P vars.
29161
29162 2010-05-14  Jan Hubicka  <jh@suse.cz>
29163
29164         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
29165
29166 2010-05-14  Richard Guenther  <rguenther@suse.de>
29167
29168         PR tree-optimization/44119
29169         * tree-ssa-pre.c (eliminate): Properly mark replacement of
29170         a PHI node necessary.
29171
29172 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
29173
29174         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
29175
29176 2010-05-14  Jason Merrill  <jason@redhat.com>
29177
29178         PR c++/44127
29179         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
29180         (gimple_call_set_nothrow): New.
29181         * gimple.c (gimple_build_call_from_tree): Call it.
29182         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
29183
29184         PR c++/44127
29185         * gimplify.c (gimplify_seq_add_stmt): No longer static.
29186         * gimple.h: Declare it.
29187         * gimple.c (gimple_build_eh_filter): No ops.
29188
29189 2010-05-14  Jan Hubicka  <jh@suse.cz>
29190
29191         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
29192         nodes already in queue.
29193         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
29194         re-enqueueing node.
29195
29196 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29197
29198         PR debug/44136
29199         * cfgexpand.c (expand_debug_expr): If non-memory op0
29200         has BLKmode, return NULL.
29201
29202 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
29203
29204         * config.gcc: Add support for --with-cpu option for bdver1.
29205         * config/i386/i386.h (TARGET_BDVER1): New macro.
29206         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
29207         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29208         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
29209         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29210         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
29211         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
29212         (processor_type): Add PROCESSOR_BDVER1.
29213         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
29214         processor_type in config/i386/i386.h.
29215         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
29216         movaps <reg, reg> instead of movapd <reg, reg> when replacing
29217         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
29218         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
29219         to emit packed xor instead of packed double/packed integer
29220         xor for SSE and AVX when moving a zero value.
29221         * config/i386/sse.md: Add check for
29222         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
29223         movapd/movdqa for SSE and AVX.
29224         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
29225         single logical operations i.e and, or and xor instead of packed double
29226         logical operations for SSE and AVX.
29227         * config/i386/i386-c.c (ix86_target_macros_internal):
29228         Add PROCESSOR_BDVER1.
29229         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
29230         (has_fma4, has_xop): New.
29231         * config/i386/i386.c (bdver1_cost): New variable.
29232         (m_BDVER1): New macro.
29233         (m_AMD_MULTIPLE): Add m_BDVER1.
29234         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
29235         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
29236         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
29237         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
29238         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
29239         x86_tune_sse_partial_reg_dependency,
29240         x86_tune_sse_unaligned_load_optimal,
29241         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
29242         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
29243         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
29244         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
29245         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
29246         Enable/disable for bdver1.
29247         (processor_target_table): Add bdver1_cost.
29248         (cpu_names): Add bdver1.
29249         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
29250          processor_alias_table.
29251         (ix86_expand_vector_move_misalign): Change.
29252         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
29253         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
29254         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
29255         of movupd/movdqu for SSE and AVX.
29256         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
29257         (ix86_tune_adjust_cost): Add code for bdver1.
29258         (standard_sse_constant_opcode): Add check for
29259         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
29260         of packed double xor for SSE and AVX.
29261
29262 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
29263
29264         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
29265         result to unsigned.
29266
29267 2010-05-14  Tristan Gingold  <gingold@adacore.com>
29268
29269         * toplev.c (default_debug_hooks): Remove this variable.
29270         (process_options): Remove assignments to default_debug_hooks.
29271
29272 2010-05-14  Martin Jambor  <mjambor@suse.cz>
29273
29274         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
29275         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
29276         * langhooks.h (struct lang_hooks_for_decls): Removed field
29277         fold_obj_type_ref.
29278         * tree.c (free_lang_data): Remove assignment to
29279         lang_hooks.fold_obj_type_ref.
29280         * tree.def (OBJ_TYPE_REF): Update comment.
29281
29282 2010-05-14  Richard Guenther  <rguenther@suse.de>
29283
29284         PR tree-optimization/44124
29285         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
29286
29287 2010-05-14  Alan Modra  <amodra@gmail.com>
29288
29289         PR target/44075
29290         * config/rs6000/rs6000.c (struct machine_function): Reorder
29291         fields for better packing.  Add lr_save_state.
29292         (rs6000_ra_ever_killed): Return lr_save_state if set.
29293         (rs6000_emit_eh_reg_restore): Set lr_save_state.
29294
29295 2010-05-13  Jan Hubicka  <jh@suse.cz>
29296
29297         * varpool.c (decide_is_variable_needed): Drop code checking
29298         TREE_SYMBOL_REFERENCED.
29299
29300 2010-05-13  Jan Hubicka  <jh@suse.cz>
29301
29302         * final.c (output_addr_const): Do not call mark_decl_referenced.
29303         * cgraphunit.c (process_function_and_variable_attributes): Use
29304         mark_needed_node dirrectly.
29305         (assemble_thunk): Do not call mark_decl_referenced.
29306
29307 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
29308
29309         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
29310
29311 2010-05-13  Jeff Law  <law@redhat.com>
29312
29313         * ira-conflicts.c (print_allocno_conflicts): New function broken out
29314         from...
29315         (print_conflicts): Call print_allocno_conflicts.
29316
29317 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29318
29319         PR debug/44104
29320         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
29321         if it is NULL.
29322
29323 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
29324
29325         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
29326         t-mingw-w64 or t-mingw-w32 for multilib configuration.
29327         * config/i386/t-mingw-w32: New.
29328         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
29329
29330 2010-05-13  Martin Jambor  <mjambor@suse.cz>
29331
29332         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
29333         gimple-fold.c).
29334         * gimple-fold.c (get_base_binfo_for_type): New function.
29335         (gimple_get_relevant_ref_binfo): Likewise.
29336         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29337         (gimple_fold_obj_type_ref): Likewise.
29338         (fold_gimple_call): Simplify condition for folding virtual calls
29339         and call gimple_fold_obj_type_ref.
29340         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
29341         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29342
29343 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
29344
29345         * config/rs6000/rs6000-protos.h
29346         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
29347         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
29348         (rs6000_debug_mode_dependent_address)
29349         (rs6000_mode_dependent_address_ptr): Likewise.
29350
29351 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29352
29353         PR debug/43983
29354         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
29355         by SRA.
29356         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
29357         * tree-sra.c (create_access_replacement): Call unshare_expr before
29358         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
29359         * dwarf2out.c: Include tree-flow.h.
29360         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
29361         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
29362         Handle DW_OP_bit_piece.
29363         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
29364         construct_piece_list, adjust_piece_list): New functions.
29365         (add_var_loc_to_decl): Handle SRA optimized variables.
29366         Adjust for var_loc_note to loc field renaming.
29367         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
29368         in VAR_LOCATION note.
29369         (new_loc_descr_op_bit_piece): New function.
29370         (dw_sra_loc_expr): New function.
29371         (dw_loc_list): Use it.  Don't handle the last range after the
29372         loop, handle it inside of the loop.  Adjust for var_loc_note
29373         to loc field renaming.
29374         (add_location_or_const_value_attribute): Only special case
29375         single entry loc lists if loc is NOTE_P.  Adjust for
29376         var_loc_note to loc field renaming.
29377         (dwarf2out_var_location): Don't set newloc->var_loc_note
29378         and newloc->next here.
29379
29380 2010-05-12  Jan Hubicka  <jh@suse.cz>
29381
29382         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
29383         flag.
29384         * cgraph.h (cgraph_only_called_directly_p,
29385         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
29386         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
29387         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
29388         (assemble
29389         * ipa.c (cgraph_remove_unreachable_nodes): Use
29390         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
29391         flags.
29392         * tree-inline.c (copy_bb): Check address_taken flag.
29393         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
29394         externally_visible flag.
29395
29396 2010-05-12  Jason Merrill  <jason@redhat.com>
29397
29398         PR bootstrap/44048
29399         PR target/44099
29400         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
29401         * sdbout.c (plain_type_1): Likewise.
29402         * dwarf2out.c (is_base_type): Likewise.
29403         (gen_type_die_with_usage): Likewise.  Generate
29404         DW_TAG_unspecified_type for any LANG_TYPE.
29405
29406 2010-05-12  Jan Hubicka  <jh@suse.cz>
29407
29408         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
29409         indrect edges too.
29410         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
29411         (cgraph_clone_edge): Update.
29412         (cgraph_node_remove_callees): Remove indirect calls too.
29413         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
29414         (cgraph_create_indirect_edge): Update prototype.
29415         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
29416         is_proper_for_analysis.
29417         (add_new_function, visited_nodes, function_insertion_hook_holder,
29418         get_local_reference_vars_info, mark_address_taken, mark_address,
29419         mark_load, mark_store, check_asm_memory_clobber, check_call,
29420         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
29421         (ipa_init): Do not initialize visited_nodes;
29422         function_insertion_hook_holder.
29423         (analyze_variable): Rewrite.
29424         (analyze_function): Rewrite.
29425         (copy_local_bitmap): Remove.
29426         (duplicate_node_dat): Do not duplicate local info.
29427         (generate_summary): Simplify to only walk cgraph.
29428         (write_node_summary_p, ipa_reference_write_summary,
29429         ipa_reference_read_summary): Remove.
29430         (propagate): Do not remove function insertion;
29431         generate summary.
29432         (pass_ipa_reference): NULLify summary handling fields.
29433         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
29434         (input_edge): Input ecf_flags.
29435         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
29436         (update_indirect_edges_after_inlining): Ignore edges with unknown
29437         param.
29438
29439 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
29440
29441         * implicit-zee.c: New file.
29442         * tree-pass.h (pass_implicit_zee): Declare.
29443         * passes.c (init_optimization_passes): Add zee pass.
29444         * common.opt (fzee): New flag.
29445         * timevar.def (TV_ZEE): Define.
29446         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
29447         and beyond.
29448         * Makefile.in (implicit-zee.o): Add new build file.
29449
29450 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29451             Nathan Froyd  <froydnj@codesourcery.com>
29452
29453         * c-common.c (sync_resolve_params): Remove write-only variable.
29454
29455 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
29456
29457         * target.h (struct gcc_target): Add mode_dependent_address_p field.
29458         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29459         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
29460         * targhooks.c (default_mode_dependent_address_p): New function.
29461         * targhooks.h (default_mode_dependent_address_p): Declare function.
29462         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29463         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
29464         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
29465         target hook. Change return type to bool.
29466         * recog.h (mode_dependent_address_p): Change return type to bool.
29467
29468 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29469             Nathan Froyd  <froydnj@codesourcery.com>
29470
29471         * tree-mudflap.c (build_function_type_0, build_function_type_1,
29472         build_function_type_2, build_function_type_3): Remove.
29473         (mudflap_init): Use build_function_type_list.
29474
29475 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29476             Nathan Froyd  <froydnj@codesourcery.com>
29477
29478         * coverage.c (build_fn_info_value): Call build_constructor instead of
29479         build_constructor_from_list.
29480         (build_ctr_info_value): Likewise.
29481         (build_gcov_info): Likewise.
29482
29483 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
29484
29485         * tree.c (build_constructor): Compute TREE_CONSTANT for the
29486         resultant constructor.
29487         (build_constructor_single): Don't set TREE_CONSTANT.
29488         (build_constructor_from_list): Don't compute TREE_CONSTANT.
29489
29490 2010-05-12  Jan Hubicka  <jh@suse.cz>
29491
29492         * cgraph.h (struct varpool_node): Add aux.
29493         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
29494         * varpool.c (varpool_remove_node): Do not remove initializer.
29495         (varpool_reset_queue): Export.
29496         (varpool_finalize_decl): Volatile vars are forced to be output.
29497         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
29498         replaced decl.
29499         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
29500         process_references, varpool_can_remove_if_no_refs): New functions.
29501         (cgraph_remove_unreachable_nodes): Handle variables too.
29502
29503 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
29504
29505         PR target/44088
29506         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
29507
29508 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
29509
29510         PR middle-end/44085
29511         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
29512         change value of ORT_TASK.
29513         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
29514         (omp_notice_threadprivate_variable): New function.
29515         (omp_notice_variable): Call it for threadprivate variables.
29516         If enclosing ctx is a task, print enclosing task rather than
29517         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
29518         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
29519         if task has untied clause.
29520
29521         PR debug/42278
29522         * dwarf2out.c (base_type_die): Don't add name attribute here.
29523         (modified_type_die): Instead of sizetype use
29524         its underlying original type.  If a DW_TAG_base_type doesn't
29525         have name added, add __unknown__.
29526         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
29527         always call force_type_die instead.
29528
29529 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
29530
29531         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
29532         for __stack_chk_guard.
29533
29534 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29535
29536         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
29537         don't call start_source_file debug hook here...
29538         (finish_options): ... but here, after outputting predefined and
29539         command line defines and undefs.
29540
29541         PR middle-end/44071
29542         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
29543         no fallthru edge.
29544         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
29545         optimizing away empty bb with no successors, move over its
29546         footer chain to fallthru predecessor.
29547         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
29548         (rtl_split_edge): For asm goto call patch_jump_insn even if
29549         splitting fallthru edge.
29550
29551         PR c++/44059
29552         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
29553         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
29554         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
29555         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
29556         on DW.ref.* decls.
29557
29558         PR c++/44062
29559         * c-parser.c (c_parser_expression): Mark LHS of a comma
29560         expression as read if it is a decl, handled component or
29561         COMPOUND_EXPR with that on the RHS.
29562         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
29563         if it is a decl or handled component.
29564
29565 2010-05-11  Jan Hubicka  <jh@suse.cz>
29566
29567         * lto-symtab.c (lto_symtab_free): New function.
29568         * lto-streamer.h (lto_symtab_free): Declare.
29569
29570 2010-05-11  Jan Hubicka  <jh@suse.cz>
29571
29572         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
29573         that if function is needed it is reachable.
29574         (lto_output_node): See if it the function is reachable or referenced.
29575         (output_cgraph): Update call of lto_output_node.
29576         * lto-streamer.h (reachable_from_other_partition_p): Declare.
29577
29578 2010-05-11  Jan Hubicka  <jh@suse.cz>
29579
29580         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
29581         Mark as used.
29582
29583 2010-05-11  Jan Hubicka  <jh@suse.cz>
29584
29585         PR tree-optimize/44063
29586         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
29587         queue.
29588         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
29589         limits.
29590         (estimate_function_body_sizes): Compute sizes even when disregarding.
29591
29592 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
29593
29594         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
29595
29596 2010-05-11  Jan Hubicka  <jh@suse.cz>
29597
29598         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
29599         into every boundary.
29600
29601 2010-05-11  Jan Hubicka  <jh@suse.cz>
29602
29603         * matrix-reorg.c (matrix_reorg): Rebuild edges.
29604
29605 2010-05-11  Jan Hubicka  <jh@suse.cz>
29606
29607         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
29608         lto_streamer_cache_delete): Put nodes into heap.
29609         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
29610         heap.
29611
29612 2010-05-11  Jan Hubicka  <jh@suse.cz>
29613
29614         * cgraphbuild.c (cgraph_rebuild_references): New.
29615         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
29616         out extern inlines.
29617         * cgraph.h (cgraph_rebuild_references): Declare.
29618         * tree-inline.c (tree_function_versioning): Use it.
29619         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
29620
29621 2010-05-11  Jan Hubicka  <jh@suse.cz>
29622
29623         * cgraph.c: Include ipa-utils.h
29624         (cgraph_create_virtual_clone): Update references.
29625         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
29626
29627 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29628
29629         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
29630         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
29631         cache size.
29632
29633 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29634
29635         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
29636
29637 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29638
29639         * gcc.c (execute): For -### don't quote arguments that
29640         contain just alphanumerics and _/-. characters.
29641         * doc/invoke.texi: Document that change for -###.
29642
29643         PR debug/44023
29644         * df-problems.c (struct dead_debug): Add to_rescan field.
29645         (dead_debug_init): Clear to_rescan field.
29646         (dead_debug_finish): Rescan all debug insns in to_rescan
29647         bitmap and free the bitmap.
29648         (dead_debug_insert_before): Instead of rescanning debug insns
29649         immediately queue their rescanning until dead_debug_finish.
29650         (df_note_bb_compute): After dead_debug_add do continue instead
29651         of break.
29652
29653 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
29654
29655         PR debug/44028
29656         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
29657         clear also INSN_REG_USE_LIST.
29658
29659 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29660
29661         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
29662
29663 2010-05-10  Jan Hubicka  <jh@suse.cz>
29664
29665         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
29666         commited change.
29667
29668 2010-05-10  Jan Hubicka  <jh@suse.cz>
29669
29670         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
29671         Allocate encoders.
29672         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
29673         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
29674         (lto_streamer_cache_create): Init alloc pool.
29675         (lto_streamer_cache_delete): Free alloc pool.
29676         * lto-streamer.h: Include alloc pool.
29677         (lto_streamer_cache_d): Use alloc pool.
29678         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
29679
29680 2010-05-10  Jan Hubicka  <jh@suse.cz>
29681
29682         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
29683         * cgraphbuild.c: Include except.h
29684         (record_type_list, record_eh_tables): New function.
29685         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
29686
29687 2010-05-10  Jan Hubicka  <jh@suse.cz>
29688
29689         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
29690         __frame_dummy_init_array_entry, force_to_data): Attribute as used
29691         rather than unused.
29692
29693 2010-05-10  Michael Matz  <matz@suse.de>
29694
29695         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
29696         (can_reassociate_p): Use FLOAT_TYPE_P.
29697         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
29698         (vect_force_simple_reduction): ... this.
29699         * tree-parloops.c (gather_scalar_reductions): Use
29700         vect_force_simple_reduction.
29701         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
29702         vect_is_simple_reduction, add modify argument, if true rewrite
29703         "a-b" into "a+(-b)".
29704         (vect_is_simple_reduction, vect_force_simple_reduction): New
29705         functions.
29706         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
29707
29708 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
29709             Vladimir Makarov  <vmakarov@redhat.com>
29710
29711         PR rtl-optimization/44012
29712         * ira-build.c (remove_unnecessary_allocnos): Nullify
29713         regno_allocno_map of the removed allocno.
29714
29715 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29716
29717         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
29718         to /dev/null.
29719         * configure: Regenerate.
29720
29721 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29722
29723         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
29724         unused.
29725         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
29726         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
29727         support in Sun ld.
29728         * configure: Regenerate.
29729
29730 2010-05-10  Richard Guenther  <rguenther@suse.de>
29731
29732         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
29733         marked if the entry identifier is marked.
29734
29735 2010-05-10  Richard Guenther  <rguenther@suse.de>
29736
29737         * c-common.c (struct c_common_attributes): Add fnspec attribute.
29738         (handle_fnspec_attribute): New function.
29739         * gimple.h (gimple_call_return_flags): Declare.
29740         (gimple_call_arg_flags): Likewise.
29741         * gimple.c (gimple_call_arg_flags): New function.
29742         (gimple_call_return_flags): Likewise.
29743         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
29744         New argument flags.
29745         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
29746         return value flags.
29747         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
29748         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
29749         main work to ...
29750         (make_heapvar_for): ... this new function.
29751         (handle_rhs_call): Handle fnspec attribute argument specifiers.
29752         (handle_lhs_call): Likewise.
29753         (find_func_aliases): Adjust.
29754
29755 2010-05-10  Richard Guenther  <rguenther@suse.de>
29756
29757         PR tree-optimization/44050
29758         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
29759
29760 2010-05-10  Wei Guozhi  <carrot@google.com>
29761
29762         PR target/42879
29763         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
29764
29765 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29766
29767         PR c/10676
29768         * c-typeck.c (lookup_field): Take a type directly.  Update
29769         recursive calls.
29770         (build_component_ref): Update call to lookup_field.
29771         (set_init_label): Use lookup_field to find initialized field.
29772         Handle returned list of fields like a sequence of designators.
29773
29774 2010-05-09  Richard Guenther  <rguenther@suse.de>
29775
29776         PR middle-end/44024
29777         * fold-const.c (tree_single_nonzero_warnv_p): Properly
29778         handle &FUNCTION_DECL.
29779
29780 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29781
29782         PR c/4784
29783         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
29784         structures and unions recursively.
29785         (detect_field_duplicates): Move duplicate detection with a hash to
29786         detect_field_duplicates_hash.  Always use a hash if anonymous
29787         structures or unions are present.
29788         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
29789         give errors.
29790
29791 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
29792
29793         PR target/44046
29794         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
29795         detect Atom, Core 2 and Core i7.
29796
29797 2010-05-09  Richard Guenther  <rguenther@suse.de>
29798
29799         * gcc.c (store_arg): Handle temporary file deletion for
29800         joined arguments.
29801
29802 2010-05-09  Richard Guenther  <rguenther@suse.de>
29803
29804         PR middle-end/44043
29805         * ipa-inline.c (estimate_function_body_sizes): Return after
29806         disregarding inline limits.
29807
29808 2010-05-09  Richard Guenther  <rguenther@suse.de>
29809
29810         * gcc.c (store_arg): Revert last change.
29811
29812 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
29813
29814         PR middle-end/28685
29815         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
29816         (optimize_ops_list): Call it.
29817
29818 2010-05-08  Richard Guenther  <rguenther@suse.de>
29819
29820         PR tree-optimization/44030
29821         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
29822         NECESSARY flag if we propagate from a inserted expression.
29823
29824 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
29825
29826         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
29827         domain types as equal if they are both PLACEHOLDER_EXPRs.
29828
29829 2010-05-08  Richard Guenther  <rguenther@suse.de>
29830
29831         * lto-wrapper.c (run_gcc): Remove linker output from
29832         command line for LTRANS invocation.
29833
29834 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29835
29836         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
29837         lto-macho as lto_binary_reader.
29838         * target.h (struct gcc_target): New hooks lto_start and lto_end.
29839         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
29840         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
29841         in lto_start and lto_end calls.
29842         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
29843         magic numbers.
29844         (scan_prog_file): Update is_elf_or_coff call.
29845         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
29846
29847         * collect2.c (main): Fix enum comparison.
29848
29849         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
29850         Add prototypes.
29851         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
29852         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
29853         and TARGET_ASM_LTO_END.
29854         * darwin.c: Include obstack.h and lto-streamer.h.
29855         (lto_section_names_offset, lto_section_names_obstack,
29856         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
29857         global variables.
29858         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
29859         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
29860         to a temporary file.
29861         (darwin_asm_lto_end): New function.  Restore asm_out_file.
29862         (darwin_asm_named_section): For LTO sections, replace the name with
29863         the offset of the section name in a string table, and build this
29864         table.
29865         (darwin_file_start): Initialize global vars for LTO support.
29866         (darwin_file_end): If output to asm_out_file was redirected, append it
29867         to the proper asm_out_file here.  Add the section names section.
29868
29869 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29870
29871         * c-pragma.c (pending_weak_d, pending_weak): New.
29872         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
29873         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
29874         handle_pragma_weak): Update the uses of pending_weaks.
29875
29876 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29877
29878         PR documentation/44016
29879         * doc/standards.texi (Standards): Link to unversioned
29880         cxx0x_status.html page.
29881
29882 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
29883
29884         PR target/43708
29885         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
29886         in addition to TREE_USED, to avoid "set but unused" warnings.
29887
29888 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29889
29890         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
29891         (is_loop_prefetching_profitable): Do not insert prefetches
29892         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
29893         times the prefetch ahead distance.
29894
29895 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29896
29897         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
29898         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
29899         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
29900         the unroll_factor.
29901
29902 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29903
29904         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
29905         a diagnostic info when the insn-to-mem ratio is too small.
29906
29907 2010-05-07  Richard Guenther  <rguenther@suse.de>
29908
29909         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
29910         the linker plugin.
29911         (store_arg): Queue temp_filename for deletion instead of
29912         the whole argument.
29913
29914 2010-05-07  Richard Guenther  <rguenther@suse.de>
29915
29916         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
29917         (run_gcc): Handle LTRANS phase invocation.
29918         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
29919
29920 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
29921
29922         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
29923         this is also meaningful on PARM_DECLs and RESULT_DECLs.
29924
29925 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29926
29927         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
29928
29929 2010-05-07  Richard Guenther  <rguenther@suse.de>
29930
29931         PR tree-optimization/44020
29932         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
29933         code when PRE is not yet initialized.
29934
29935 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29936
29937         * config/mips/dbxmdebug.h: Remove.
29938         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
29939
29940 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
29941
29942         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
29943         with null pointer and also warn about ordered comparison of zero with
29944         pointer if -Wextra.
29945
29946 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29947
29948         * graphite-blocking.c
29949         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
29950         * graphite-clast-to-gimple.c
29951         (clast_to_gcc_expression): Same.
29952         (precision_for_value): Same.
29953         (precision_for_interval): Same.
29954         (gcc_type_for_interval): Same.
29955         (graphite_create_new_guard): Same.
29956         (compute_bounds_for_level): Same.
29957         (graphite_create_new_loop_guard): Same.
29958         * graphite-interchange.c
29959         (build_linearized_memory_access): Same.
29960         (pdr_stride_in_loop): Same.
29961         (memory_strides_in_loop_1): Same.
29962         (memory_strides_in_loop): Same.
29963         (extend_scattering): Same.
29964         (psct_scattering_dim_for_loop_depth): Same.
29965         (pbb_number_of_iterations): Same.
29966         * graphite-poly.h
29967         (debug_iteration_domains): Same.
29968         * graphite-ppl.c
29969         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
29970         (ppl_set_inhomogeneous_gmp): Same.
29971         (ppl_strip_loop): Same.
29972         (ppl_lexico_compare_linear_expressions): Same.
29973         (ppl_read_polyhedron_matrix): Same.
29974         (ppl_max_for_le_pointset): Same.
29975         * graphite-ppl.h
29976         (ppl_read_polyhedron_matrix): Same.
29977         (tree_int_to_gmp): Same.
29978         (gmp_cst_to_tree): Same.
29979         (ppl_set_inhomogeneous): Same.
29980         (ppl_set_inhomogeneous_tree): Same.
29981         (ppl_set_coef): Same.
29982         (ppl_set_coef_tree): Same.
29983         * graphite-sese-to-poly.c
29984         (build_pbb_scattering_polyhedrons): Same.
29985         (build_scop_scattering): Same.
29986         (scan_tree_for_params_right_scev): Same.
29987         (scan_tree_for_params): Same.
29988         (find_params_in_bb): Same.
29989         (find_scop_parameters): Same.
29990         (add_upper_bounds_from_estimated_nit): Same.
29991         (build_loop_iteration_domains): Same.
29992         (add_condition_to_domain): Same.
29993         (pdr_add_memory_accesses): Same.
29994
29995 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29996
29997         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
29998         CLooG's value_* macros to their respective mpz_* counterparts.
29999         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30000         (graphite_create_new_loop_guard): Same.
30001         * graphite-interchange.c (build_linearized_memory_access): Same.
30002         (pdr_stride_in_loop): Same.
30003         (memory_strides_in_loop_1): Same.
30004         (1st_interchange_profitable_p): Same.
30005         * graphite-poly.c (extend_scattering): Same.
30006         (psct_scattering_dim_for_loop_depth): Same.
30007         (pbb_number_of_iterations): Same.
30008         (pbb_number_of_iterations_at_time): Same.
30009         * graphite-poly.h (new_1st_loop): Same.
30010         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30011         (oppose_constraint): Same.
30012         (insert_constraint_into_matrix): Same.
30013         (ppl_set_inhomogeneous_gmp): Same.
30014         (ppl_set_coef_gmp): Same.
30015         (ppl_strip_loop): Same.
30016         (ppl_lexico_compare_linear_expressions): Same.
30017         (ppl_max_for_le_pointset): Same.
30018         (ppl_min_for_le_pointset): Same.
30019         (ppl_build_realtion): Same.
30020         * graphite-ppl.h (gmp_cst_to_tree): Same.
30021         (ppl_set_inhomogeneous): Same.
30022         (ppl_set_inhomogeneous_tree): Same.
30023         (ppl_set_coef): Same.
30024         (ppl_set_coef_tree): Same.
30025         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30026         (build_scop_scattering): Same.
30027         (add_value_to_dim): Same.
30028         (scan_tree_for_params_right_scev): Same.
30029         (scan_tree_for_params_int): Same.
30030         (scan_tree_for_params): Same.
30031         (find_params_in_bb): Same.
30032         (find_scop_parameters): Same.
30033         (add_upper_bounds_from_estimated_nit): Same.
30034         (build_loop_iteration_domains): Same.
30035         (create_linear_expr_from_tree): Same.
30036         (add_condition_to_domain): Same.
30037         (pdr_add_memory_accesses): Same.
30038
30039 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
30040             Jason Merrill  <jason@redhat.com>
30041
30042         * c-common.c (c_common_reswords): Add nullptr.
30043         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
30044         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30045         (gen_type_die_with_usage): Likewise.
30046         * dbxout.c (dbxout_type): Likewise.
30047         * sdbout.c (plain_type_1): Likewise.
30048
30049 2010-05-06  Jason Merrill  <jason@redhat.com>
30050
30051         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30052         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
30053         ret appropriately.
30054         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30055
30056         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30057         stripping WITH_SIZE_EXPR.
30058         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30059         change.
30060
30061 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30062
30063         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30064         list of obsolete configurations.
30065         Disabled check for obsolete configurations.
30066         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30067         Removed support for previous versions.
30068         * config/mips/iris.h: Removed.
30069         * config/mips/iris5.h: Removed.
30070         * config/mips/iris6.h: Merged old iris.h contents.
30071         (TARGET_IRIX): Removed.
30072         (DRIVER_SELF_SPECS): Removed mabi=32.
30073         (IDENT_ASM_OP): Removed undef.
30074         (STARTFILE_SPEC): Removed mabi=32.
30075         (ENDFILE_SPEC): Likewise.
30076         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30077         (MACHINE_TYPE): Update for IRIX 6.5.
30078         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30079         TARGET_IRIX by TARGET_IRIX6.
30080         (mips_file_start): Likewise.
30081         (mips_output_external): Remove IRIX 5/6 O32 support.
30082         (mips_output_function_prologue): Likewise.
30083         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30084         TARGET_IRIX6.
30085         (TARGET_CPU_CPP_BUILTINS): Likewise.
30086         (TARGET_IRIX): Removed.
30087         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30088         (MULTILIB_DIRNAMES): Removed 32.
30089         (MULTILIB_OSDIRNAMES): Removed ../lib.
30090         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
30091         (Specific, mips-sgi-irix5): Document removal.
30092         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
30093         Remove references to older IRIX 6 releases and the O32 ABI.
30094
30095 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
30096
30097         PR bootstrap/43994
30098         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
30099         instead of DF_REF_REAL_REG.
30100
30101 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
30102
30103         PR target/43888
30104         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
30105         handling to still return true for x64 targets.
30106
30107 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30108
30109         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
30110
30111 2010-05-06  Jan Hubicka  <jh@suse.cz>
30112
30113         PR tree-optimization/43791
30114         * ipa-inline.c (update_caller_keys): Remove bogus
30115         disregard_inline_limits check.
30116
30117 2010-05-06  Michael Matz  <matz@suse.de>
30118
30119         PR tree-optimization/43984
30120         * tree-ssa-pre.c (inserted_phi_names): Remove.
30121         (inserted_exprs): Change to bitmap.
30122         (create_expression_by_pieces): Set bits, don't append to vector.
30123         (insert_into_preds_of_block): Don't handle inserted_phi_names.
30124         (eliminate): Don't look at inserted_phi_names, remove deleted
30125         insns from inserted_exprs.
30126         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
30127         (init_pre, fini_pre): Allocate and free bitmaps.
30128         (execute_pre): Insert insns on edges before elimination.
30129
30130 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30131
30132         * tree.c (initializer_zerop): Handle STRING_CST.
30133
30134 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30135
30136         PR 40989
30137         * doc/invoke.texi (Wimplicit): Document as C only.
30138         * opts.c (common_handle_option): Add argument kind.
30139         (handle_option): Rename as read_cmdline_option. Factor out code to...
30140         (handle_option): ... here. New.
30141         (handle_options): Rename as read_cmdline_options.
30142         (decode_options): Update call.
30143         (set_option): Use option index instead of option pointer. Classify
30144         diagnostics correctly.
30145         (enable_warning_as_error): Call handle_option.
30146         * opts.h (set_option): Update declaration.
30147         (handle_option): Declare.
30148         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
30149         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
30150         * c-opts.c (set_Wimplicit): Delete.
30151         (c_family_lang_mask): New static constant.
30152         (c_common_handle_option): Add argument kind. Use handle_option
30153         instead of set_Wimplicit.
30154         (c_common_post_options): warn_implicit and warn_implicit_int
30155         are disabled by default.
30156         * c-common.c (warn_implicit): Do not define here.
30157         * c-common.h (warn_implicit): Do not declare here.
30158         (c_common_handle_option): Update declaration.
30159         * lto-opts.c (lto_reissue_options): Update call to set_option.
30160
30161 2010-05-06  Richard Guenther  <rguenther@suse.de>
30162
30163         PR tree-optimization/43571
30164         * domwalk.c (walk_dominator_tree): Walk the dominator
30165         sons in more optimal order.
30166
30167 2010-05-06  Richard Guenther  <rguenther@suse.de>
30168
30169         PR tree-optimization/43934
30170         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
30171         (stmt_cost): Likewise.
30172         (extract_true_false_args_from_phi): New helper.
30173         (determine_max_movement): For PHI nodes verify we can hoist them
30174         and compute their cost.
30175         (determine_invariantness_stmt): Handle PHI nodes.
30176         (move_computations_stmt): Likewise.  Hoist PHI nodes in
30177         if-converted form using COND_EXPRs.
30178         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
30179         (tree_ssa_lim): Likewise.
30180         * tree-flow.h (tree_ssa_lim): Adjust prototype.
30181         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
30182
30183 2010-05-06  Richard Guenther  <rguenther@suse.de>
30184
30185         PR tree-optimization/43987
30186         * tree-ssa-structalias.c (could_have_pointers): For possibly
30187         address-taken variables force pointers to be recorded.
30188         (create_variable_info_for_1): Likewise.
30189         (push_fields_onto_fieldstack): Pass in wheter all fields
30190         must have pointers.
30191         (find_func_aliases): Query types instead of vars whether
30192         they contain pointers where appropriate.
30193
30194 2010-05-06  Jan Hubicka  <jh@suse.cz>
30195
30196         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
30197         (record_reference, mark_address, mark_load, mark_store): Record
30198         references.
30199         (record_references_in_initializer): Update call of record_references.
30200         (rebuild_cgraph_edges): Remove all references before rebuiding.
30201         * cgraph.c (cgraph_create_node): Clear ref list.
30202         (cgraph_remove_node): Remove references.
30203         (dump_cgraph_node): Dump references.
30204         (cgraph_clone_node): Clone references.
30205         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
30206         (struct cgraph_node, varpool_node): Add ref_lst.
30207         * ipa-ref.c: New file.
30208         * ipa-ref.h: New file.
30209         * ipa-ref-inline.h: New file.
30210         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
30211         (referenced_from_other_partition_p): New function.
30212         (lto_output_varpool_node): Take set arugment; call
30213         referenced_from_other_partition.
30214         (lto_output_ref): New.
30215         (add_references): New.
30216         (output_refs): New.
30217         (output_cgraph): Compute boundary based on references; output refs.
30218         (output_varpool): Accept cgraph_node_set argument.
30219         (input_ref): New.
30220         (input_refs): New.
30221         (input_cgraph): Call input_refs.
30222         * lto-section-in.c (lto_section_name): Add refs.
30223         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
30224         (ipa-ref.o): New file.
30225         * varpool.c (varpool_node): Clear ipa ref list.
30226         (varpool_remove_node): Remove references.
30227         (dump_varpool_node): Dump references.
30228         (varpool_assemble_decl): Only compile finalized ones.
30229         (varpool_extra_name_alias): Initialize ref list.
30230         * lto-streamer.c (lto-get_section_name): Add .refs section.
30231         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
30232         (referenced_from_other_partition_p): Declared.
30233
30234 2010-05-06  Ira Rosen  <irar@il.ibm.com>
30235
30236         PR tree-optimization/43901
30237         * tree-vect-stmts.c (vectorizable_call): Assert that vector
30238         type is not NULL if it's transformation phase, and return
30239         FALSE if it's analysis.
30240         (vectorizable_conversion, vectorizable_operation,
30241         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
30242
30243 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30244
30245         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30246         Delete.
30247         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30248         New define.
30249         * config/mips/mips-protos.h
30250         (mips_small_register_classes_for_mode_p): Delete prototype.
30251
30252 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
30253
30254         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
30255         * config/arm/arm.c (multiple_operation_profitable_p,
30256         compute_offset_order): New static functions.
30257         (load_multiple_sequence, store_multiple_sequence): Use them.
30258         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
30259         memory offsets, not register numbers.
30260         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
30261
30262 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
30263
30264         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
30265         (get_pending_sizes, put_pending_size, put_pending_sizes):
30266         Update the uses of pending_sizes.
30267         * c-decl.c (store_parm_decls): Likewise.
30268         * c-tree.h (struct c_arg_info): Likewise.
30269         * tree.h: Update the prototype for get_pending_sizes and
30270         put_pending_sizes.
30271
30272 2010-05-05  Jason Merrill  <jason@redhat.com>
30273
30274         PR debug/43370
30275         * c-common.c (handle_aligned_attribute): Respect
30276         ATTR_FLAG_TYPE_IN_PLACE.
30277
30278         PR testsuite/43758
30279         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
30280         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30281         (TARGET_INITIALIZER): Use it.
30282         * c-common.c (attribute_takes_identifier_p): Call it.
30283         * c-common.h: Update prototype.
30284         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
30285         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30286
30287 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30288
30289         PR debug/43950
30290         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
30291         DW_ID_down_case for Fortran compilation units.
30292
30293 2010-05-05  Jan Hubicka  <jh@suse.cz>
30294
30295         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
30296         handle aliases.
30297
30298 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
30299
30300         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
30301         a variable-sized RESULT_DECL.
30302
30303 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
30304
30305         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
30306
30307 2010-05-05  Jason Merrill  <jason@redhat.com>
30308
30309         PR c++/43787
30310         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
30311         returns GS_OK.
30312         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
30313
30314 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
30315             Jakub Jelinek  <jakub@redhat.com>
30316
30317         PR debug/43478
30318         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
30319         (dead_debug_init, dead_debug_finish): New functions.
30320         (dead_debug_add, dead_debug_insert_before): Likewise.
30321         (df_note_bb_compute): Initialize a dead_debug object, add dead
30322         debug uses to it, insert debug bind insns before death insns,
30323         reset debug insns that refer to pending uses at the end.
30324         * rtl.h (make_debug_expr_from_rtl): New prototype.
30325         * varasm.c (make_debug_expr_from_rtl): New function.
30326
30327 2010-05-05  Jan Hubicka  <jh@suse.cz>
30328
30329         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
30330         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
30331         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
30332         lto_varpool_encoder_deref, lto_varpool_encoder_size,
30333         lto_varpool_encoder_encode_initializer_p,
30334         lto_set_varpool_encoder_encode_initializer): New functions.
30335         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
30336         call output_varpool.
30337         (input_varpool_node): Do not always set analyzed.
30338         (input_cgraph_1): Return vector of cgraph nodes.
30339         (input_varpool_1): Return vector of varpools.
30340         (input_cgraph): Free the vectors.
30341         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
30342         output only initializers needed.
30343         (lto_output): Only call output_cgraph.
30344         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
30345         * lto-section-out.c (lto_new_out_decl_state): Initialize
30346         state->varpool_node_encoder.
30347         * lto-streamer.h (lto_varpool_encoder_d): New.
30348         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
30349         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
30350         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
30351         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
30352         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
30353         Declare.
30354         (output_varpool, input_varpool): Remove declarations.
30355
30356 2010-05-05  Jan Hubicka  <jh@suse.cz>
30357
30358         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
30359         with body can prevail.
30360
30361 2010-05-05  Jan Hubicka  <jh@suse.cz>
30362
30363         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
30364         size.
30365
30366 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30367
30368         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
30369
30370         * gengtype.h (erro_at_line): Constify pos argument.
30371
30372         * gengtype.c: Include hashtab.h.
30373         (enum gc_used): Document GC_MAYBE_POINTED_TO.
30374         (error_at_line): Constify pos argument.
30375         (do_typedef): Initialize p->opt field.
30376         (get_file_gtfilename): Fix comment typo.
30377         (struct walk_type_data): Constify line field.
30378         (get_output_file_for_structure): New function.
30379         (write_local_func_for_structure): Constify orig_s argument.
30380         Use get_output_file_for_structure.
30381         (write_func_for_structure): Use get_output_file_for_structure.
30382         (INDENT): New define.
30383         (dump_pair, dump_type, dump_type_list, dump_typekind)
30384         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
30385         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
30386         functions.
30387         (seen_types): New variable.
30388         (main): New variable do_dump.  Process "-d" command line option.
30389         Call dump_everything if dump requested.
30390
30391 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30392
30393         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
30394         in a temporary instead of invoking the macro multiple times.
30395         (track_expr_p): Likewise.
30396
30397 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
30398
30399         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
30400         per new semantics.
30401         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
30402         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
30403         conditions for printing notes.
30404         * common.opt (-Wcoverage-mismatch): Allow negative, default to
30405         true, update documentation.
30406         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
30407
30408 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
30409
30410         PR c/43981
30411         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
30412         on dimen.
30413
30414 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30415
30416         PR target/43799
30417         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
30418         (*sse_prologue_save_insn1): Likewise.
30419         (SSE prologue save splitter): Likewise.
30420
30421 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
30422
30423         * tree.c (free_lang_data_in_one_sizepos): New inline function.
30424         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
30425         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
30426         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
30427         all decls.  Call it on DECL_FIELD_OFFSET of fields.
30428         (find_decls_types_r): Follow DECL_VALUE_EXPR.
30429         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
30430
30431 2010-05-04  Martin Jambor  <mjambor@suse.cz>
30432
30433         * tree-sra.c (build_access_from_expr_1): The first parameter type
30434         changed to simple tree.
30435         (build_access_from_expr): Likewise, gsi parameter was eliminated.
30436         (scan_assign_result): Renamed to assignment_mod_result, enum elements
30437         renamed as well.
30438         (build_accesses_from_assign): Removed all parameters except for a
30439         simple gimple statement.  Now returns a simple bool.
30440         (scan_function): All non-analysis parts moved to separate functions
30441         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
30442         parameters and updated both callers.
30443         (sra_modify_expr): Removed parameter data.
30444         (sra_modify_function_body): New function.
30445         (perform_intra_sra): Call sra_modify_function_body to modify the
30446         function body.
30447         (replace_removed_params_ssa_names): Parameter data changed into
30448         adjustments vector.
30449         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
30450         changed the parameter dont_convert to convert with the opposite
30451         meaning.
30452         (sra_ipa_modify_assign): Parameter data changed into adjustments
30453         vector, return value changed to bool.
30454         (ipa_sra_modify_function_body): New function.
30455         (sra_ipa_reset_debug_stmts): Updated a comment.
30456         (modify_function): Use ipa_sra_modify_function_body to modify function
30457         body.
30458
30459 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30460
30461         PR middle-end/43671
30462         * alias.c (true_dependence): Handle the same VALUE in x and mem.
30463         (canon_true_dependence): Likewise.
30464         (write_dependence_p): Likewise.
30465
30466 2010-05-04  Jan Hubicka  <jh@suse.cz>
30467
30468         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
30469         * cgraphbuild.c: Include ipa-utils.h
30470         (record_reference_ctx): New struct.
30471         (record_reference): Simplify to work on initializers; not statements.
30472         (mark_address, mark_load, mark_store): New.
30473         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30474         walk PHI nodes too.
30475         (record_references_in_initializer): Update use of record_reference.
30476         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30477         walk PHI nodes too.
30478
30479 2010-05-04  Jan Hubicka  <jh@suse.cz>
30480
30481         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
30482         node will be removed anyway.
30483         (lto_varpool_replace_node): Allow also unanalyzed nodes;
30484         relink aliases of node into prevailing node.
30485         * varpool.c (varpool_remove_node): Remove aliases properly;
30486         when removing node, remove all its aliases too; remove DECL_INITIAL
30487         of removed node; ggc_free the varpool node.
30488
30489 2010-05-04  Richard Guenther  <rguenther@suse.de>
30490
30491         PR tree-optimization/43879
30492         * tree-ssa-structalias.c (alias_get_name): Use
30493         DECL_ASSEMBLER_NAME if available.
30494         (create_function_info_for): Return the varinfo node.
30495         (ipa_pta_execute): Associate same-body aliases and extra names
30496         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
30497
30498 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30499
30500         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
30501
30502 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
30503
30504         PR bootstrap/43964
30505         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
30506         only if HONOR_REG_ALLOC_ORDER is not defined.
30507
30508 2010-05-04  Richard Guenther  <rguenther@suse.de>
30509
30510         PR tree-optimization/43949
30511         * tree-vrp.c (extract_range_from_binary_expr): Only handle
30512         TRUNC_MOD_EXPR.
30513
30514 2010-04-26  Jason Merrill  <jason@redhat.com>
30515
30516         * c.opt (-fstrict-enums): New.
30517         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
30518
30519 2010-05-03  David Ung  <davidu@mips.com>
30520             James E. Wilson  <wilson@codesourcery.com>
30521
30522         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
30523         emit the trap instruction before the divide for TUNE_74K.
30524
30525 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
30526
30527         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
30528         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
30529         based on the above, for new target hook.
30530
30531         * hooks.c (hook_bool_mode_true): New generic hook.
30532         * hooks.h (hook_bool_mode_true): Add prototype.
30533
30534         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
30535         target hook.
30536         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
30537         target hook, set to hook_bool_mode_false.
30538         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
30539         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
30540         with targetm.small_register_classes_for_mode_p.
30541         (find_reusable_reload): Likewise.
30542         (combine_reloads): Likewise.
30543         * reload1.c (reload_as_needed): Likewise.
30544         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
30545         * ifcvt.c (noce_process_if_block, check_cond_move_block,
30546         dead_or_predicable): Likewise.
30547         * regmove.c (optimize_reg_copy_1): Likewise.
30548         * calls.c (prepare_call_address): Likewise.
30549         (precompute_register_parameters): Likewise.
30550
30551         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
30552         hook definition.
30553         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
30554         implementation of the hook that considers all register classes
30555         small except for SH64.
30556         (sh_override_options): Use the new hook.
30557         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
30558         Add prototype.
30559
30560         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
30561         hook definition.
30562         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
30563         implementation of the hook that considers all register classes
30564         small for THUMB1.
30565         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
30566         Add prototype.
30567
30568         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
30569         hook definition.
30570         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
30571         implementation of the hook that considers all register classes
30572         small for MIPS16.
30573         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
30574         Add prototype.
30575
30576         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
30577         hook definition.
30578         * config/m32c/m32c.h: Likewise.
30579         * config/pdp11/pdp11.h: Likewise.
30580         * config/avr/avr.h: Likewise.
30581         * config/xtensa/xtensa.h: Likewise.
30582         * config/m68hc11/m68hc11.h: Likewise.
30583         * config/mn10300/mn10300.h: Likewise.
30584         * config/mcore/mcore.h: Likewise.
30585         * config/h8300/h8300.h: Likewise.
30586         * config/bfin/bfin.h: Likewise.
30587
30588         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
30589         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
30590
30591 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
30592
30593         * double-int.h (tree_to_double_int): Remove macro.
30594         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
30595         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30596         (tree_to_double_int): New function.
30597         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
30598         Move ...
30599         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30600
30601 2010-05-03  Richard Guenther  <rguenther@suse.de>
30602
30603         PR tree-optimization/43971
30604         * tree-ssa-structalias.c (get_constraint_for_1): Fix
30605         constraints in the !flag_delete_null_pointer_checks case.
30606
30607 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
30608
30609         PR debug/43972
30610         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
30611         result mode matches original rtl mode.
30612
30613 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
30614
30615         PR target/43888
30616         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
30617
30618 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30619
30620         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
30621         when processing flag options.
30622
30623 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30624
30625         * gcov-iov.c (main): Change format string placeholder
30626         from %#08x to 0x%08x.
30627         * genchecksum.c (dosum): Change format string placeholder
30628         from %#02x to 0x%02x.
30629
30630 2010-05-02  Richard Guenther  <rguenther@suse.de>
30631
30632         PR tree-optimization/43879
30633         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
30634
30635 2010-05-02  Bruno Haible  <bruno@clisp.org>
30636
30637         * doc/extend.texi (Function Attributes): Fix a typo.
30638
30639 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30640
30641         Revert:
30642         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
30643         placeholder from 0x%x to %#x.
30644         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30645         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30646         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30647         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30648         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30649         * config/i386/i386.c (ix86_target_string): Ditto.
30650         * config/i386/i386.c (output_pic_addr_const): Ditto.
30651         (print_operand): Ditto.
30652
30653 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30654
30655         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
30656         placeholder from 0x%x to %#x.
30657         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
30658         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
30659         (ASM_OUTPUT_DEBUG_DATA): Ditto.
30660         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
30661         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
30662         * optc-gen.awk: Ditto.
30663         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
30664         (HOST_WIDE_INT_PRINT_HEX): Ditto.
30665         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
30666         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30667
30668 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30669
30670         * target.h (struct calls): Add function_value_regno_p field.
30671         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
30672         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
30673         * targhooks.c (default_function_value_regno_p): New function.
30674         * targhooks.h (default_function_value_regno_p): Declare function.
30675         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
30676         * builtins.c. (apply_result_size): (Ditto.).
30677         * combine.c. (likely_spilled_retval_p): (Ditto.).
30678         * mode-switching.c. Include 'target.h'.
30679         (create_pre_exit): Use function_value_regno_p hook.
30680         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
30681         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
30682         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
30683
30684         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
30685         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
30686         (ix86_function_value_regno_p): Declare as static, change argument
30687         type to const unsigned int.
30688         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
30689
30690 2010-05-01  Richard Guenther  <rguenther@suse.de>
30691
30692         PR tree-optimization/43949
30693         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
30694         types.
30695         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
30696
30697 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30698
30699         * rtl.h (CONST_DOUBLE_P): Define.
30700         (rtx_to_double_int): Declare.
30701         * emit-rtl.c (rtx_to_double_int): New function.
30702         * dwarf2out.c (insert_double): New function.
30703         (loc_descriptor, add_const_value_attribute): Clean up, use
30704         rtx_to_double_int and insert_double functions.
30705
30706 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
30707
30708         * doc/extend.texi (Inline): Add missing return keyword to examples.
30709         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
30710         "command-line".
30711
30712 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
30713
30714         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
30715         the variable part of the offset as well.  Use highest_pow2_factor for
30716         all alignment checks.
30717
30718 2010-04-30  Richard Guenther  <rguenther@suse.de>
30719
30720         PR tree-optimization/43879
30721         * tree-ssa-structalias.c (type_could_have_pointers): Functions
30722         can have pointers.
30723
30724 2010-04-30  Jan Hubicka  <jh@suse.cz>
30725
30726         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
30727         varpool.
30728         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
30729
30730 2010-04-30  Jan Hubicka  <jh@suse.cz>
30731
30732         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
30733         New.
30734         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
30735         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
30736         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
30737         cgraph_node_set_needs_ltrans_p): Remove.
30738
30739 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30740
30741         * sdbout.c: Include vec.h, do not include varray.h.
30742         (deferred_global_decls, sdbout_global_decl,
30743         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
30744         * toplev.c: Do not include varray.h.
30745         (dump_memory_report): Do not dump VARRAY statistics.
30746         * gengtype.c (open_base_file): Ignore varray.h.
30747         * Makefile.in: Update for abovementioned changes.
30748         Remove all traces of varray.c and varray.h.
30749         * varray.c: Remove file.
30750         * varray.h: Remove file.
30751
30752 2010-04-30  Jan Hubicka  <jh@suse.cz>
30753
30754         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
30755         references.
30756
30757 2010-04-30  Jan Hubicka  <jh@suse.cz>
30758
30759         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
30760         needed.
30761
30762 2010-04-30  Richard Guenther  <rguenther@suse.de>
30763
30764         * tree-ssa-structalias.c (get_constraint_for_1): Generate
30765         constraints for CONSTRUCTOR.
30766
30767 2010-04-30  Richard Guenther  <rguenther@suse.de>
30768
30769         PR lto/43946
30770         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
30771         first after all lowering passes.
30772
30773 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30774
30775         * toplev.c: Include varray.h for statistics dumping.
30776         * tree.h: Do not declare varray_head_tag.
30777         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
30778         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
30779         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
30780         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
30781         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
30782         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
30783         c-common.c, c-common.h, reg-stack.c, basic-block.h,
30784         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
30785         include varray.h.
30786         * Makefile.in: Update for abovementioned changes.
30787
30788 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
30789
30790         PR debug/43942
30791         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
30792
30793 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
30794
30795         * config/picochip/picochip.c (picochip_legitimize_address): Define.
30796         Use this function to do machine-specific conversion.
30797         (picochip_legitimize_reload_address): Likewise.
30798         (picochip_legitimate_address_p): Check valid base register only if
30799         strict.
30800         (picochip_check_conditional_copy): Check for modw only if opnd is
30801         register.
30802         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
30803         to call the function in c.
30804         * config/picochip/picochip-protos.h
30805         (picochip_legitimize_reload_address): Define.
30806         * config/picochip/picochip.md (supported_compare1): Define.
30807
30808 2010-04-30  Jan Hubicka  <jh@suse.cz>
30809
30810         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
30811         (cgraph_global_info): Remove inlined.
30812         (LTO_cgraph_tag_names): Remove.
30813         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
30814         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
30815         simplify cgraph tags and document.
30816         (lto_output_node): Use only LTO_cgraph_unavail_node and
30817         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
30818         for_functions_valid, global info, process and output flags.
30819         (input_overwrite_node): Initialize estimated stack size and
30820         estimated growth.  Do not read flags we no longer store.
30821         (input_node): Likewise do not read info no longer stored.
30822         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
30823         flag.
30824
30825 2010-04-30  Richard Guenther  <rguenther@suse.de>
30826
30827         PR tree-optimization/43879
30828         * tree-ssa-structalias.c (get_constraint_for_1): Properly
30829         handle non-zero initializers.
30830
30831 2010-04-30  Richard Guenther  <rguenther@suse.de>
30832
30833         * builtins.c (fold_builtin_1): Delete free (0).
30834
30835 2010-04-29  Jan Hubicka  <jh@suse.cz>
30836
30837         * gengtype.c (open_base_files): Add lto-streamer.h
30838         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
30839         (pass_ipa_cp): GGC collect.
30840         * toplev. (compile_file): Do not output symbols.
30841         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
30842         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
30843         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
30844         * lto-section-in.c: Include ggc.h
30845         (lto_new_in_decl_state): Alloc in GGC.
30846         (lto_delete_in_decl_state): Likewise.
30847         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
30848         Collect.
30849
30850 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30851
30852         PR target/42895
30853         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
30854         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
30855         (HONOR_REG_ALLOC_ORDER): Describe new macro.
30856         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
30857         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
30858         account only if HONOR_REG_ALLOC_ORDER is not defined.
30859         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
30860         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
30861
30862 2010-04-29  Jon Grant  <04@jguk.org>
30863
30864         * collect2.c (vflag): Change type from int to bool.
30865         (debug): Likewise.
30866         (helpflag): New global bool.
30867         (main): Set vflag and debug with boolean, not integer truth values.
30868         Accept new "--help" option and output usage text if found.
30869         * collect2.h (vflag): Update prototype.
30870         (debug): Likewise.
30871
30872 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30873
30874         PR bootstrap/43936
30875         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
30876
30877 2010-04-29  Richard Guenther  <rguenther@suse.de>
30878
30879         PR bootstrap/43935
30880         * plugin.h (invoke_plugin_callbacks): Annotate arguments
30881         with ATTRIBUTE_UNUSED.
30882
30883 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30884
30885         PR target/43921
30886         * config/i386/i386.c (get_some_local_dynamic_name): Replace
30887         INSN_P with NONDEBUG_INSN_P.
30888         (distance_non_agu_define): Likewise.
30889         (distance_agu_use): Likewise.
30890
30891 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30892
30893         From Dominique d'Humieres  <dominiq@lps.ens.fr>
30894         PR bootstrap/43858
30895         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
30896         test_set.
30897
30898 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
30899
30900         * plugin.h (invoke_plugin_callbacks): New inline function.
30901         * plugin.c (flag_plugin_added): New global flag.
30902         (add_new_plugin): Initialize above flag.
30903         (invoke_plugin_callbacks): Rename to ...
30904         (invoke_plugin_callbacks_full): ... this.
30905
30906 2010-04-28  Jan Hubicka  <jh@suse.cz>
30907
30908         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
30909         (lto_varpool_replace_node): New.
30910         (lto_symtab_resolve_symbols): Resolve varpool nodes.
30911         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
30912         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
30913         * cgraph.h (varpool_node_ptr): New type.
30914         (varpool_node_ptr): New vector.
30915         (varpool_node_set_def): New structure.
30916         (varpool_node_set): New type.
30917         (varpool_node_set): New vector.
30918         (varpool_node_set_element_def): New structure.
30919         (varpool_node_set_element, const_varpool_node_set_element): New types.
30920         (varpool_node_set_iterator): New type.
30921         (varpool_node): Add prev pointers, add used_from_other_partition,
30922         in_other_partition.
30923         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
30924         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
30925         varpool_get_node, varpool_remove_node): Declare.
30926         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
30927         varpool_node_set_size): New inlines.
30928         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
30929         * tree-pass.h (varpool_node_set_def): Forward declare.
30930         (ipa_opt_pass_d): Summary writting takes vnode sets too.
30931         (ipa_write_optimization_summaries): Update prototype.
30932         * ipa-cp.c (ipcp_write_summary): Update.
30933         * ipa-reference.c (ipa_reference_write_summary): Update.
30934         * lto-cgraph.c (lto_output_varpool_node): New static function.
30935         (output_varpool): New function.
30936         (input_varpool_node): New static function.
30937         (input_varpool_1): New function.
30938         (input_cgraph): Input varpool.
30939         * ipa-pure-const.c (pure_const_write_summary): Update.
30940         * lto-streamer-out.c (lto_output): Update, output varpool too.
30941         (write_global_stream): Kill WPA hack.
30942         (produce_asm_for_decls): Update.
30943         (output_alias_pair_p): Handle variables.
30944         (output_unreferenced_globals): Output only needed partition of varpool.
30945         * ipa-inline.c (inline_write_summary): Update.
30946         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
30947         cgraph.
30948         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
30949         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
30950         varpool_node_set_new, varpool_node_set_add,
30951         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
30952         debug_varpool_node_set): New functions.
30953         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
30954         (execute_one_pass): Process new decls too.
30955         (ipa_write_summaries_2): Pass around vsets.
30956         (ipa_write_summaries_1): Likewise.
30957         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
30958         to add.
30959         (ipa_write_optimization_summaries_1): Pass around vsets.
30960         (ipa_write_optimization_summaries): Likewise.
30961         * varpool.c (varpool_get_node): New.
30962         (varpool_node): Update doubly linked lists.
30963         (varpool_remove_node): New.
30964         (dump_varpool_node): More dumping.
30965         (varpool_enqueue_needed_node): Update doubly linked lists.
30966         (decide_is_variable_needed): Kill ltrans hack.
30967         (varpool_finalize_decl): Kill lto hack.
30968         (varpool_assemble_decl): Skip decls in other partitions.
30969         (varpool_assemble_pending_decls): Update doubly linkes lists.
30970         (varpool_empty_needed_queue): Likewise.
30971         (varpool_extra_name_alias): Likewise.
30972         * lto-streamer.c (lto_get_section_name): Add vars section.
30973         * lto-streamer.h (lto_section_type): Update.
30974         (output_varpool, input_varpool): Declare.
30975
30976 2010-04-28  Mike Stump  <mikestump@comcast.net>
30977
30978         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
30979
30980 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30981
30982         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
30983         record or union type with RECORD_OR_UNION_TYPE_P predicate.
30984         (lto_input_ts_type_tree_pointers): Likewise.
30985         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
30986         (lto_output_ts_type_tree_pointers): Likewise.
30987
30988 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30989
30990         Uniquization of constants at the Tree level
30991         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
30992         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
30993         bit to the end.
30994         (tree_output_constant_def): Declare.
30995         * gimplify.c (gimplify_init_constructor): When using block copy, first
30996         uniquize the constant constructor on the RHS.
30997         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
30998         DECL_IN_CONSTANT_POOL flag.
30999         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31000         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31001         constant pool.
31002         (assemble_variable): Deal with symbols belonging to the tree constant
31003         pool.
31004         (get_constant_section): Add ALIGN parameter and simplify.
31005         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31006         (assemble_constant_contents): Use the expression of the VAR_DECL.
31007         (output_constant_def_contents): Use the alignment of the VAR_DECL.
31008         (tree_output_constant_def): New global function.
31009         (mark_constant): Use the expression of the VAR_DECL.
31010         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31011         its expression.
31012         (output_object_block): Likewise and assemble the expression.
31013
31014 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31015
31016         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31017         hash_tree, eq_tree): New tree hash table.
31018         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31019         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31020         lto_orig_address_remove): Reimplement.
31021
31022 2010-04-28  Xinliang David Li  <davidxl@google.com>
31023
31024         PR c/42643
31025         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31026         (compute_uninit_opnds_pos): New function.
31027         (is_non_loop_exit_postdominating): New function.
31028         (compute_control_dep_chain): New function.
31029         (find_pdom): New function.
31030         (convert_control_dep_chain_into_preds): New function.
31031         (find_predicates): New function.
31032         (find_control_equiv_block): New function.
31033         (collect_phi_def_edges): New function.
31034         (find_def_preds): New function.
31035         (find_dom): New function.
31036         (dump_predicates): New function.
31037         (get_cmp_code): New function.
31038         (is_value_included_in): New function.
31039         (find_matching_predicate_in_rest_chains): New function.
31040         (use_pred_not_overlap_with_undef_path_pred): New function.
31041         (is_use_properly_guarded): New function.
31042         (normalize_cond_1): New function.
31043         (is_and_or_or): New function.
31044         (normalize_cond): New function.
31045         (is_gcond_subset_of): New function.
31046         (is_subset_of_any): New function.
31047         (is_or_set_subset_of): New function.
31048         (is_and_set_subset_of): New function.
31049         (is_norm_cond_subset_of): New function.
31050         (is_pred_expr_subset_of): New function.
31051         (is_pred_chain_subset_of): New function.
31052         (is_included_in): New function.
31053         (is_superset_of): New function.
31054         (find_uninit_use): New function.
31055         (warn_uninitialized_phi): New function.
31056         (compute_possibly_undefined_names): New function.
31057         (ssa_undefined_value_p): New function.
31058         (execute_late_warn_uninitialized): New function.
31059         * tree-ssa.c (ssa_undefined_value_p): Removed.
31060         (warn_uninit): Changed to extern.
31061         (warn_uninitialized_phi): Removed.
31062         (warn_uninitialized_vars): Changed to extern.
31063         (execute_late_warn_uninitialized): Removed
31064         * tree-flow.h: Add new prototypes.
31065         * timevar.def: Add new time variable.
31066         * Makefile.in: Add new build file.
31067
31068 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
31069
31070         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31071         type if available.
31072
31073 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31074
31075         PR target/22224
31076         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31077
31078 2010-04-28  Martin Jambor  <mjambor@suse.cz>
31079
31080         * cgraph.h (struct cgraph_node): New field indirect_calls.
31081         (struct cgraph_indirect_call_info): New type.
31082         (struct cgraph_edge): Removed field indirect_call. New fields
31083         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31084         (cgraph_create_indirect_edge): Declare.
31085         (cgraph_make_edge_direct): Likewise.
31086         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31087         * ipa-prop.h (struct ipa_param_call_note): Removed.
31088         (struct ipa_node_params): Removed field param_calls.
31089         (ipa_create_all_structures_for_iinln): Declare.
31090         * cgraph.c: Described indirect edges and uids in initial comment.
31091         (cgraph_add_edge_to_call_site_hash): New function.
31092         (cgraph_edge): Search also among the indirect edges, use
31093         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
31094         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
31095         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
31096         site hash.
31097         (initialize_inline_failed): Assign a reason to indirect edges.
31098         (cgraph_create_edge_1): New function.
31099         (cgraph_create_edge): Moved some functionality to
31100         cgraph_create_edge_1.
31101         (cgraph_create_indirect_edge): New function.
31102         (cgraph_edge_remove_callee): Add an assert checking for
31103         non-indirectness.
31104         (cgraph_edge_remove_caller): Special-case indirect edges.
31105         (cgraph_remove_edge): Likewise.
31106         (cgraph_set_edge_callee): New function.
31107         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
31108         (cgraph_make_edge_direct): New function.
31109         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
31110         the declaration of the call statement matches.
31111         (cgraph_node_remove_callees): Special-case indirect edges.
31112         (cgraph_clone_edge): Likewise.
31113         (cgraph_clone_node): Clone also the indirect edges.
31114         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
31115         indirect_call, dump count of indirect_calls edges.
31116         * ipa-prop.c (iinlining_processed_edges): New variable.
31117         (ipa_note_param_call): Create indirect edges instead of
31118         creating notes.  New parameter node.
31119         (ipa_analyze_call_uses): New parameter node, pass it on to
31120         ipa_note_param_call.
31121         (ipa_analyze_stmt_uses): Likewise.
31122         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
31123         (print_edge_addition_message): Work on edges rather than on notes.
31124         (update_call_notes_after_inlining): Likewise, renamed to
31125         update_indirect_edges_after_inlining.
31126         (ipa_create_all_structures_for_iinln): New function.
31127         (ipa_free_node_params_substructures): Do not free notes.
31128         (ipa_edge_duplication_hook): Propagate bits within
31129         iinlining_processed_edges bitmap.
31130         (ipa_node_duplication_hook): Do not duplicate notes.
31131         (free_all_ipa_structures_after_ipa_cp): Renamed to
31132         ipa_free_all_structures_after_ipa_cp.
31133         (free_all_ipa_structures_after_iinln): Renamed to
31134         ipa_free_all_structures_after_iinln.
31135         (ipa_write_param_call_note): Removed.
31136         (ipa_read_param_call_note): Removed.
31137         (ipa_write_indirect_edge_info): New function.
31138         (ipa_read_indirect_edge_info): Likewise.
31139         (ipa_write_node_info): Do not stream notes, do stream information
31140         in indirect edges.
31141         (ipa_read_node_info): Likewise.
31142         (lto_ipa_fixup_call_notes): Removed.
31143         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
31144         * ipa-inline.c (pass_ipa_inline): Likewise.
31145         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
31146         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
31147         * tree-inline.c (copy_bb): Removed an unnecessary double check for
31148         is_gimple_call.
31149         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
31150         edges.
31151         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
31152         (output_cgraph): Stream also indirect edges.
31153         (lto_output_edge): Added capability to stream indirect edges.
31154         (input_edge): Likewise.
31155         (input_cgraph_1): Likewise.
31156         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
31157         of indirect edges.
31158
31159 2010-04-28  Richard Guenther  <rguenther@suse.de>
31160
31161         PR tree-optimization/43879
31162         PR tree-optimization/43909
31163         * tree-ssa-structalias.c (struct variable_info): Add
31164         only_restrict_pointers flag.
31165         (new_var_info): Initialize it.  Increment stats.total_vars here.
31166         (create_function_info_for): Do not increment stats.total_vars here.
31167         (get_function_part_constraint): Fix build with C++.
31168         (insert_into_field_list): Remove.
31169         (push_fields_onto_fieldstack): Properly merge fields.
31170         (create_variable_info_for): Split and simplify.
31171         (create_variable_info_for_1): New piece.
31172         (intra_create_variable_infos): Properly make restrict constraints
31173         from parameters.
31174
31175 2010-04-28  Richard Guenther  <rguenther@suse.de>
31176
31177         PR c++/43880
31178         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
31179
31180 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31181             Jan Hubicka  <hubicka@ucw.cz>
31182
31183         * doc/invoke.texi (-Wsuggest-attribute=const,
31184         -Wsuggest-attribute=pure): Document.
31185         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
31186         (function_always_visible_to_compiler_p,
31187         suggest_attribute, warn_function_pure, warn_function_const):
31188         New functions.
31189         (check_call): Improve debug info.
31190         (analyze_function): Do not check availability.
31191         (add_new_function): Check availability.
31192         (propagate): Output warnings.
31193         (skip_function_for_local_pure_const): New function.
31194         (local_pure_const): Use it; output warnings.
31195         * common.opt (Wsuggest-attribute=const,
31196         Wsuggest-attribute=pure): New.
31197
31198 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31199
31200         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
31201         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
31202         or DW_CFA_def_cfa_offset{,_sf}.
31203
31204 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31205
31206         * tree.h: Fix truncated long macros.
31207
31208 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
31209
31210         * collect2.c (TARGET_64BIT): Redefine to target's default.
31211         * tlink.c: Likewise.
31212         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
31213         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
31214         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
31215         for underscoring __USER_LABEL_PREFIX__.
31216         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
31217         (SUB_LINK_ENTRY32): New.
31218         (SUB_LINK_ENTRY64): New.
31219         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
31220         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
31221         (SUB_LINK_ENTRY64): New.
31222         (SUB_LINK_ENTRY): New.
31223         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
31224         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
31225         x64 target is choosen.
31226         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
31227         * configure: Regenerated.
31228         * configure.ac (leading-mingw64-underscores): Option added.
31229
31230 2010-04-27  Jan Hubicka  <jh@suse.cz>
31231
31232         * doc/invoke.texi (-fipa-profile): Document.
31233         * opts.c (decode_options): Enable ipa-profile at -O1.
31234         * timevar.def (TV_IPA_PROFILE): Define.
31235         * common.opt (fipa-profile): Add.
31236         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
31237         flag for clones.
31238         (cgraph_propagate_frequency): Handle only local ones.
31239         * tree-pass.h (pass_ipa_profile): Declare.
31240         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
31241         (pass_ipa_profile): Use TV_IPA_PROFILE.
31242         * ipa.c (ipa_profile): New function.
31243         (gate_ipa_profile): Likewise.
31244         (pass_ipa_profile): New global variable.
31245         * passes.c (pass_ipa_profile): New.
31246
31247 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
31248
31249         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
31250
31251 2010-04-27  Martin Jambor  <mjambor@suse.cz>
31252
31253         PR middle-end/43812
31254         * ipa.c (dissolve_same_comdat_group_list): New function.
31255         (function_and_variable_visibility): Call
31256         dissolve_same_comdat_group_list when comdat group contains external or
31257         newly local nodes.
31258         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
31259         lists are circular and that they contain only DECL_ONE_ONLY nodes.
31260
31261 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31262
31263         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
31264         (const_hash_1) <VECTOR_CST>: New case.
31265         (compare_constant) <VECTOR_CST>: Likewise.
31266         <ADDR_EXPR>: Deal with LABEL_REFs.
31267         (copy_constant) <VECTOR_CST>: New case.
31268
31269 2010-04-27  Jan Hubicka  <jh@suse.cz>
31270
31271         * cgraph.c (cgraph_propagate_frequency): New function.
31272         * cgraph.h (cgraph_propagate_frequency): Declare.
31273         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
31274         cgraph_propagate_frequency.
31275
31276 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31277
31278         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
31279
31280 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
31281
31282         PR target/40657
31283         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
31284         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
31285         here to determine which regs to push and how much stack to reserve.
31286
31287 2010-04-27  Jie Zhang  <jie@codesourcery.com>
31288
31289         * doc/gimple.texi (gimple_statement_with_ops): Remove
31290         addresses_taken field.
31291         (gimple_statement_with_memory_ops): Likewise.
31292
31293 2010-04-27  Jan Hubicka  <jh@suse.cz>
31294
31295         * tree-inline.c (eni_inlining_weights): Remove.
31296         (estimate_num_insns): Special case more builtins.
31297
31298 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
31299
31300         PR c/32207
31301         * c-typeck.c (build_binary_op): Move forward check for comparison
31302         pointer with null pointer constant and adjust the diagnostic message.
31303
31304 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
31305
31306         PR lto/42776
31307         * configure.ac (gcc_cv_as_section_has_align): Set if installed
31308         binutils supports extended .section directive needed by LTO, or
31309         warn if older binutils found.
31310         (LTO_BINARY_READER): New AC_SUBST'd variable.
31311         (LTO_USE_LIBELF): Likewise.
31312         * config.gcc (lto_binary_reader): New target-specific configure
31313         variable.
31314         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
31315         (LTO_USE_LIBELF): Likewise.
31316         * configure: Regenerate.
31317
31318         * collect2.c (is_elf): Rename from this ...
31319         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
31320          object files in addition to ELF-formatted ones.
31321         (scan_prog_file): Caller updated.  Also allow for LTO info marker
31322         symbol to be prefixed or not by an extra underscore.
31323
31324         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
31325         * config/i386/winnt.c: Also #include lto-streamer.h
31326         (i386_pe_asm_named_section): Specify 1-byte section alignment for
31327         LTO named sections.
31328         (i386_pe_asm_output_aligned_decl_common): Add comment.
31329         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
31330
31331 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
31332
31333         PR target/43889
31334         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
31335         Add missing earlyclobber for second alternative.
31336
31337 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
31338
31339         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
31340         bits for artificial defs at the top of the block.
31341         * fwprop.c (single_def_use_enter_block): Don't call it.
31342
31343 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
31344
31345         PR 43715
31346         * configure.ac: Use "$gcc_cv_nm -g" on darwin
31347         instead of "$gcc_cv_objdump -T".
31348         Use "-undefined dynamic_lookup" on darwin.
31349         * configure: Regenerate.
31350
31351 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
31352
31353         PR c/43893
31354         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
31355
31356 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31357
31358         * c-parser.c (struct c_token): Move location field up.
31359         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
31360         (struct c_declspecs): Convert typespec_word, storage_class, and
31361         default_int_p into bitfields.
31362         (struct c_declarator): Move loc field up.
31363
31364 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31365
31366         * cfgloop.h (struct loop): Move can_be_parallel field up.
31367         * ipa-prop.h (struct ip_node_params): Move bitfields up.
31368         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
31369         down.
31370         (struct iv_cand): Convert pos field into a bitfield.
31371         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
31372         field up.
31373         (struct _stmt_vec_info): Shuffle fields for better packing.
31374
31375 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31376
31377         * varasm.c (IN_NAMED_SECTION): Remove guard.
31378         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
31379         (IN_NAMED_SECTION_P): ...this.
31380         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
31381         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
31382
31383 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31384
31385         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
31386         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
31387         of shadowing it.  Fix comments.
31388
31389 2010-04-26  Jan Hubicka  <jh@suse.cz>
31390
31391         * cgraph.c (cgraph_create_node): Set node frequency to normal.
31392         (cgraph_clone_node): Copy function frequency.
31393         * cgraph.h (node_frequency): New enum
31394         (struct cgraph_node): Add.
31395         * final.c (rest_of_clean_state): Update.
31396         * lto-cgraph.c (lto_output_node): Output node frequency.
31397         (input_overwrite_node): Input node frequency.
31398         * tre-ssa-loop-ivopts (computation_cost): Update.
31399         * lto-streamer-out.c (output_function): Do not output function
31400         frequency.
31401         * predict.c (maybe_hot_frequency_p): Update and handle functions
31402         executed once.
31403         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
31404         attribute lookup.
31405         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
31406         (compute_function_frequency): Set noreturn functions to be executed
31407         once.
31408         (choose_function_section): Update.
31409         * lto-streamer-in.c (input_function): Do not input function frequency.
31410         * function.c (allocate_struct_function): Do not initialize function
31411         frequency.
31412         * function.h (function_frequency): Remove.
31413         (struct function): Remove function frequency.
31414         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
31415         (try_update): Update.
31416         * tree-inline.c (initialize_cfun): Do not update function frequency.
31417         * passes.c (pass_init_dump_file): Update.
31418         * i386.c (ix86_compute_frame_layout): Update.
31419         (ix86_pad_returns): Update.
31420
31421 2010-04-26  Jie Zhang  <jie@codesourcery.com>
31422
31423         PR tree-optimization/43833
31424         * tree-vrp.c (range_int_cst_p): New.
31425         (range_int_cst_singleton_p): New.
31426         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
31427         when both operands are constants.  Use range_int_cst_p in
31428         BIT_IOR_EXPR case.
31429
31430 2010-04-26  Jan Hubicka  <jh@suse.cz>
31431
31432         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
31433
31434 2010-04-26  Richard Guenther  <rguenther@suse.de>
31435
31436         PR lto/43080
31437         * gimple.c (gimple_decl_printable_name): Deal gracefully
31438         with a NULL DECL_NAME.
31439
31440 2010-04-26  Richard Guenther  <rguenther@suse.de>
31441
31442         PR lto/42425
31443         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
31444         if emitting debug information and it is either a function
31445         or a namespace decl.
31446
31447 2010-04-26  Ira Rosen  <irar@il.ibm.com>
31448
31449         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
31450         determine if the statement is vectorizable, and a macro to access it.
31451         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31452         Skip statements that can't be vectorized. If the analysis fails,
31453         mark the statement as unvectorizable if vectorizing basic block.
31454         (vect_compute_data_refs_alignment): Likewise.
31455         (vect_verify_datarefs_alignment): Skip statements marked as
31456         unvectorizable. Add print.
31457         (vect_analyze_group_access): Skip statements that can't be
31458         vectorized. If the analysis fails, mark the statement as
31459         unvectorizable if vectorizing basic block.
31460         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
31461         * tree-vect-stmts.c (vectorizable_store): Fix the number of
31462         generated stmts for SLP.
31463         (new_stmt_vec_info): Initialize the new field.
31464         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
31465         statements marked as unvectorizable.
31466
31467 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
31468
31469         * c-common.c (flag_isoc1x): New.
31470         (flag_isoc99): Update comment.
31471         * c-common.h (flag_isoc1x): New.
31472         (flag_isoc99): Update comment.
31473         * c-cppbuiltin.c (builtin_define_float_constants): Also define
31474         __<type>_DECIMAL_DIG__.
31475         * c-opts.c (set_std_c1x): New.
31476         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
31477         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
31478         * c.opt (-std=c1x, -std=gnu1x): New options.
31479         * doc/cpp.texi: Mention -std=c1x.
31480         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
31481         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
31482         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
31483         * doc/standards.texi: Mention C1X.
31484         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
31485         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
31486         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
31487         Define for C1X.
31488
31489 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
31490
31491         * config/i386/gmon-sol2.c (_mcleanup): Change format string
31492         placeholder from 0x%x to %#x.
31493         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31494         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31495         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31496         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31497         * config/i386/i386.c (ix86_target_string): Ditto.
31498         (output_pic_addr_const): Ditto.
31499         (print_operand): Ditto.
31500
31501 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
31502
31503         * combine.c (find_split_point): Add third argument.  Use it
31504         to find nested multiply-accumulate instructions.  Adjust calls.
31505         (try_combine): Adjust call to find_split_point.
31506
31507 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
31508
31509         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
31510
31511 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
31512
31513         PR tree-optimization/41442
31514         * fold-const.c (merge_truthop_with_opposite_arm): New function.
31515         (fold_binary_loc): Call it.
31516
31517 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31518
31519         * toplev.c (general_init): Set default for fdiagnostics-show-option.
31520         * opts.c (common_handle_option): Allow disabling it.
31521         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
31522
31523 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
31524
31525         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
31526         between modes if both types are integral.
31527
31528 2010-04-23  Richard Guenther  <rguenther@suse.de>
31529
31530         PR tree-optimization/43572
31531         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
31532
31533 2010-04-23  Richard Guenther  <rguenther@suse.de>
31534
31535         PR lto/43455
31536         * tree-inline.c (tree_can_inline_p): Also check compatibility
31537         of return types.
31538
31539 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31540
31541         PR tree-optimization/43846
31542         * tree-sra.c (struct access): New flag grp_assignment_read.
31543         (build_accesses_from_assign): Set grp_assignment_read.
31544         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
31545         (enum mark_read_status): New type.
31546         (analyze_access_subtree): Propagate grp_assignment_read, create
31547         accesses also if both direct_read and root->grp_assignment_read.
31548
31549 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31550
31551         PR middle-end/43835
31552         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
31553         function does not have type attributes.
31554
31555 2010-04-23  Richard Guenther  <rguenther@suse.de>
31556
31557         PR lto/42653
31558         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
31559         of FUNCTION_DECLs.
31560
31561 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31562
31563         * sese.h (create_if_region_on_edge): Remove.
31564
31565         * sese.c (create_if_region_on_edge): Make static.
31566
31567         * tree-inline.c: Do not include ggc.h.
31568
31569         * expr.c: Do not include ggc.h.
31570
31571         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
31572         dependencies.
31573
31574 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
31575
31576         PR target/43744
31577         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31578         in the middle of insns for casesi_worker_2.
31579
31580 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
31581
31582         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
31583
31584 2010-04-22  Ira Rosen  <irar@il.ibm.com>
31585
31586         PR tree-optimization/43842
31587         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
31588         loop unrolling in update of exit phis. Fix comment.
31589         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
31590         least two reduction statements in the loop before starting SLP
31591         analysis.
31592
31593 2010-04-22  Nick Clifton  <nickc@redhat.com>
31594
31595         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
31596
31597 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
31598
31599         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
31600         to simplify a + ~a.
31601
31602 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31603
31604         * tree-parloops.c (loop_parallel_p): New argument
31605         parloop_obstack.  Pass it down.
31606         (parallelize_loops): New variable parloop_obstack.  Initialize it,
31607         pass it down, free it.
31608
31609         * tree-loop-linear.c (linear_transform_loops): Pass down
31610         lambda_obstack.
31611
31612         * tree-data-ref.h (lambda_compute_access_matrices): New argument
31613         of type struct obstack *.
31614
31615         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
31616         scratch_obstack.  Initialize it, pass down, free it.
31617
31618         * lambda.h (lambda_loop_new): Remove.
31619         (lambda_matrix_new, lambda_matrix_inverse)
31620         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
31621         argument of type struct obstack *.
31622
31623         * lambda-trans.c (lambda_trans_matrix_new): New argument
31624         lambda_obstack.  Pass it down, use obstack allocation for ret.
31625         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
31626         it down.
31627
31628         * lambda-mat.c (lambda_matrix_get_column)
31629         (lambda_matrix_project_to_null): Remove.
31630         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
31631         allocation for mat.
31632         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
31633         lambda_obstack.
31634
31635         * lambda-code.c (lambda_loop_new): New function.
31636         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
31637         (lambda_compute_auxillary_space, lambda_compute_target_space)
31638         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
31639         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
31640         (build_access_matrix): New argument lambda_obstack.  Use obstack
31641         allocation for am.
31642         (lambda_compute_step_signs, lambda_compute_access_matrices): New
31643         argument lambda_obstack.  Pass it down.
31644
31645 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31646
31647         * optabs.h (expand_widening_mult): Declare.
31648
31649 2010-04-22  Richard Guenther  <rguenther@suse.de>
31650
31651         PR tree-optimization/43845
31652         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
31653         lookup the CALL_EXPR function and arguments.
31654
31655 2010-04-22  Nick Clifton  <nickc@redhat.com>
31656
31657         * config/stormy16/stormy16.c
31658         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
31659         * config/stormy16/stormy16.h: Tidy up formatting.
31660         (DONT_USE_BUILTIN_SETJMP): Remove definition.
31661         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
31662         (ineqbranchsi): Delete pattern.
31663         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
31664         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
31665         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
31666         stormy16-lib2-ucmpsi2.c.
31667
31668 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31669
31670         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
31671         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
31672         extra set merge_set_noclobber, and use it to relax the final test
31673         slightly.
31674         * df.h (df_simulate_find_noclobber_defs): Declare.
31675         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
31676         conditional defs.
31677         (df_simulate_find_noclobber_defs): New function.
31678
31679 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
31680
31681         * config/i386/i386.md: Use {} around multi-line preparation statements.
31682
31683 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31684
31685         * c-tree.h (push_init_level, pop_init_level, set_init_index)
31686         (process_init_element): New argument of type struct obstack *.
31687
31688         * c-typeck.c (push_init_level, pop_init_level, set_designator)
31689         (set_init_index, set_init_label, set_nonincremental_init)
31690         (set_nonincremental_init_from_string, find_init_member)
31691         (output_init_element, output_pending_init_elements)
31692         (process_init_element): New argument braced_init_obstack.  Pass it
31693         down.
31694         (push_range_stack, add_pending_init): New argument
31695         braced_init_obstack.  Use obstack allocation.
31696
31697         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
31698         braced_init_obstack.  Pass it down.
31699         (c_parser_braced_init): New variables ret, braced_init_obstack.
31700         Initialize obstack, pass it down and finally free it.
31701
31702 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31703
31704         PR middle-end/29274
31705         * tree-pass.h (pass_optimize_widening_mul): Declare.
31706         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
31707         gate_optimize_widening_mul): New static functions.
31708         (pass_optimize_widening_mul): New.
31709         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
31710         <case MULT_EXPR>: Remove support for widening multiplies.
31711         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
31712         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
31713         simplify_gen_unary rather than directly building extensions.
31714         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
31715         WIDEN_MULT_EXPR.
31716         * expmed.c (expand_widening_mult): New function.
31717         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
31718
31719 2010-04-21  Jan Hubicka  <jh@suse.cz>
31720
31721         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
31722         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
31723         * lto-wpa-fixup.c: Remove.
31724         * Makefile.in (lto-wpa-fixup.o): Remove.
31725         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
31726         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
31727         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
31728
31729 2010-04-21  Jan Hubicka  <jh@suse.cz>
31730
31731         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
31732         add write_optimization_summary, read_optimization_summary.
31733         (ipa_write_summaries_of_cgraph_node_set): Remove.
31734         (ipa_write_optimization_summaries): Declare.
31735         (ipa_read_optimization_summaries): Declare.
31736         * ipa-cp.c (pass_ipa_cp): Update.
31737         * ipa-reference.c (pass_ipa_reference): Update.
31738         * ipa-pure-const.c (pass_ipa_pure_const): Update.
31739         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
31740         Update.
31741         * ipa-inline.c (pass_ipa_inline): Update.
31742         * ipa.c (pass_ipa_whole_program): Update.
31743         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
31744         * passes.c (ipa_write_summaries_1): Do not test wpa.
31745         (ipa_write_optimization_summaries_1): New.
31746         (ipa_write_optimization_summaries): New.
31747         (ipa_read_summaries): Do not test ltrans.
31748         (ipa_read_optimization_summaries_1): New.
31749         (ipa_read_optimization_summaries): New.
31750
31751 2010-04-21  Jan Hubicka  <jh@suse.cz>
31752
31753         * lto-cgraph.c (lto_output_node): Do not output comdat groups
31754         for boundary nodes.
31755         (output_cgraph): Do not arrange comdat groups for boundary nodes.
31756
31757 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31758
31759         PR debug/40040
31760         * dwarf2out.c (add_name_and_src_coords_attributes): Add
31761         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
31762
31763 2010-04-21  Jan Hubicka  <jh@suse.cz>
31764
31765         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
31766
31767 2010-04-21  Jan Hubicka  <jh@suse.cz>
31768
31769         * varpool.c (decide_is_variable_needed): Variable is always needed
31770         during ltrans.
31771
31772 2010-04-21  Jan Hubicka  <jh@suse.cz>
31773
31774         * opts.c (decode_options): Enable pure-const pass for whopr.
31775
31776 2010-04-21  Jan Hubicka  <jh@suse.cz>
31777
31778         * cgraph.c (dump_cgraph_node): Dump also assembler name.
31779         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
31780         at WPA dumping.
31781         (cgraph_decide_inlining): Do not expect callee to be removed in all
31782         cases.
31783
31784 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
31785
31786         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
31787
31788 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31789
31790         * config/i386/i386.md (x86_shrd): Add athlon_decode and
31791         amdfam10_decode attributes.
31792
31793 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31794
31795         PR middle-end/43570
31796         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
31797         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
31798         (lower_copyprivate_clauses): Use private var in outer
31799         context instead of original var.  Make sure the types
31800         are correct for VLAs.
31801
31802 2010-04-21  Richard Guenther  <rguenther@suse.de>
31803
31804         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
31805         to non-pointer objects.
31806
31807 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31808
31809         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
31810         last chain entry if it starts with the still current label.
31811         (add_location_or_const_value_attribute): Check that
31812         loc_list->first->next is NULL instead of comparing ->first with ->last.
31813         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
31814         to add_var_loc_to_decl.
31815
31816         * dwarf2out.c (output_call_frame_info): For dw_cie_version
31817         >= 4 add also address size and segment size fields into CIE header.
31818
31819         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
31820         long as address size is the same as sizeof (void *) and
31821         segment size is 0.
31822         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
31823         address size or segment size is unexpected, return DW_EH_PE_omit.
31824         (classify_object_over_fdes): If get_cie_encoding returned
31825         DW_EH_PE_omit, return -1.
31826         (init_object): If classify_object_over_fdes returned -1,
31827         pretend there were no FDEs at all.
31828
31829 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31830
31831         * config/i386/i386.md (bswap<mode>2): Macroize expander from
31832         bswap{si,di}2 using SWI48 mode iterator.
31833         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
31834         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
31835         set modrm attribute of bswap insn to 0 and remove length attribute.
31836         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
31837         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
31838         set mode attribute to <MODE> and remove length attribute.
31839
31840 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
31841
31842         PR rtl-optimization/43520
31843         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
31844         zero available registers.
31845
31846 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31847
31848         * builtins.c (fold_builtin_cproj): Fold more cases.
31849
31850 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31851
31852         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
31853         (fold_builtin_1): Fold builtin cproj.
31854         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
31855         Use ATTR_CONST_NOTHROW_LIST.
31856
31857 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
31858
31859         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
31860         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
31861         ffsi2_no_cmove for !TARGET_CMOVE.
31862         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
31863         (ffssi2): Remove expander.
31864         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
31865         mode iterator.
31866         (ctz<mode>2): Ditto from ctz{si,di}2.
31867         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
31868         mode iterator.
31869         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
31870         mode iterator.
31871
31872 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31873
31874         * dwarf2out.c (AT_linkage_name): Define.
31875         (clone_as_declaration): Handle DW_AT_linkage_name.
31876         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
31877         of DW_AT_MIPS_linkage_name.
31878         (move_linkage_attr): Likewise.
31879         (dwarf2out_finish): Likewise.
31880
31881 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
31882
31883         PR middle-end/41952
31884         * fold-const.c (fold_comparison): New folding rule.
31885
31886 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
31887
31888         * double-int.h (double_int_setbit): Declare.
31889         * double-int.c (double_int_setbit): New function.
31890         * rtl.h (immed_double_int_const): Declare.
31891         * emit-rtl.c (immed_double_int_const): New function.
31892         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
31893         and immed_double_int_const functions.
31894         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
31895         expand_copysign_bit): (Ditto.).
31896         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
31897         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
31898         * dojump.c (prefer_and_bit_test): (Ditto.).
31899         * expr.c (convert_modes, reduce_to_bit_field_precision,
31900         const_vector_from_tree): (Ditto.).
31901         * expmed.c (mask_rtx, lshift_value): (Ditto.).
31902
31903 2010-04-20  Jan Hubicka  <jh@suse.cz>
31904
31905         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
31906         (dump_cgraph_node): Dump new flags.
31907         * cgraph.h (struct cgraph_node): Add flags
31908         reachable_from_other_partition and in_other_partition.
31909         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
31910         other partition can not be removed.
31911         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
31912         the other partition must be output; silence sanity checking on
31913         leaking functions bodies from other paritition.
31914         * lto-cgraph.c (reachable_from_other_partition_p): New function.
31915         (lto_output_node): Output new flags; do not sanity check that inline
31916         clones are output; drop lto_forced_extern_inline_p code; do not mock
31917         visibility flags at partition boundaries.
31918         (add_node_to): New function.
31919         (output_cgraph): Use it to sort functions so masters appear before
31920         clones.
31921         (input_overwrite_node): Input new flags.
31922         * passes.c (ipa_write_summaries): Do not call
31923         lto_new_extern_inline_states.
31924         * lto-section-out.c (forced_extern_inline,
31925         lto_new_extern_inline_states lto_delete_extern_inline_states,
31926         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
31927         * lto-streamer.h (lto_new_extern_inline_states,
31928         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
31929         lto_forced_extern_inline_p): Kill.
31930
31931 2010-04-20  Richard Guenther  <rguenther@suse.de>
31932
31933         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
31934         from vars that can have pointers.
31935         (process_constraint): Dump useless constraints.
31936
31937 2010-04-20  Richard Guenther  <rguenther@suse.de>
31938
31939         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
31940         (dump_sa_points_to_info): Remove asserts.
31941         (init_base_vars): nothing_id isn't an escape point nor does it
31942         have pointers.
31943
31944 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31945
31946         * tree.h (TYPE_REF_IS_RVALUE): Define.
31947         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
31948         should_move_die_to_comdat, prune_unused_types_walk): Handle
31949         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
31950         (modified_type_die, gen_reference_type_die): Emit
31951         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
31952         if TYPE_REF_IS_RVALUE and -gdwarf-4.
31953
31954 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31955
31956         PR target/43635
31957         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
31958         calls for -fpic -m31 if they have been sibcall optimized.
31959
31960 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
31961
31962         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
31963         ar.lc fixed and call-used.
31964
31965         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
31966
31967 2010-04-19  Jan Hubicka  <jh@suse.cz>
31968
31969         * opts.c (decode_options): Disable whpr incompatible passes.
31970         * lto/lto.c (lto_1_to_1_map): Skip clones.
31971         (read_cgraph_and_symbols): Do not mark everything as needed.
31972         (do_whole_program_analysis): Do map only after optimizing;
31973         set proper cgraph_state; use passmanager.
31974
31975 2010-04-19  DJ Delorie  <dj@redhat.com>
31976
31977         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
31978         POINTER_PLUS_EXPR and fix them.
31979
31980 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
31981
31982         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
31983         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
31984         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
31985         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
31986         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
31987         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
31988         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
31989         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
31990         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
31991         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
31992         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
31993
31994 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
31995
31996         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
31997         (check_cond_move_block): Likewise.
31998         (cond_move_process_if_block): Likewise.
31999         (noce_find_if_block): Improve formatting.
32000         (find_if_header): Pass 0 to memset and tweak conditions.
32001         (cond_exec_find_if_block): Fix long lines and tweak conditions.
32002
32003 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32004
32005         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32006         for -gdwarf-4.
32007
32008         PR middle-end/43337
32009         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32010         with non-local decl doesn't need chain.
32011
32012 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32013
32014         * ira-color.c (allocno_reload_assign): Avoid accumulating
32015         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32016
32017 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32018
32019         * gimple.h (create_tmp_reg): Declare.
32020         * gimplify.c (create_tmp_reg): New function.
32021         (gimplify_return_expr): Use create_tmp_reg.
32022         (gimplify_omp_atomic): Likewise.
32023         (gimple_regimplify_operands): Likewise.
32024         * tree-dfa.c (make_rename_temp): Likewise.
32025         * tree-predcom.c (predcom_tmp_var): Likewise.
32026         (reassociate_to_the_same_stmt): Likewise.
32027         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32028         (get_replaced_param_substitute): Likewise.
32029         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32030         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32031         * tree-ssa-pre.c (get_representative_for): Likewise.
32032         (create_expression_by_pieces): Likewise.
32033         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32034         (create_tailcall_accumulator): Likewise.
32035
32036 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32037
32038         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32039         new_stmt.
32040         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32041
32042 2010-04-19  Richard Guenther  <rguenther@suse.de>
32043
32044         PR tree-optimization/43796
32045         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32046         from SCEV in the lattice.
32047         (vrp_visit_phi_node): Dump change.
32048
32049 2010-04-19  Richard Guenther  <rguenther@suse.de>
32050
32051         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32052         * configure: Re-generated.
32053
32054 2010-04-19  Richard Guenther  <rguenther@suse.de>
32055
32056         PR tree-optimization/43783
32057         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32058         constant ARRAY_REF operands two and three if possible.
32059
32060 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
32061
32062         PR target/43766
32063         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32064
32065 2010-04-19  Jie Zhang  <jie@codesourcery.com>
32066
32067         PR target/43662
32068         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32069
32070 2010-04-19  Ira Rosen  <irar@il.ibm.com>
32071
32072         PR tree-optimization/37027
32073         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32074         and macro to access it.
32075         (vectorizable_reduction): Add argument.
32076         (vect_get_slp_defs): Likewise.
32077         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32078         statements for possible use in SLP.
32079         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32080         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32081         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32082         add new argument.
32083         (vectorizable_reduction): Likewise.
32084         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32085         vect_get_slp_defs.
32086         (vectorizable_type_demotion, vectorizable_type_promotion,
32087         vectorizable_store): Likewise.
32088         (vect_analyze_stmt): Update call to vectorizable_reduction.
32089         (vect_transform_stmt): Likewise.
32090         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
32091         (vect_build_slp_tree): Fix indentation. Check that there are no loads
32092         from different interleaving chains in same node.
32093         (vect_slp_rearrange_stmts): New function.
32094         (vect_supported_load_permutation_p): Allow load permutations for
32095         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
32096         inside SLP nodes if necessary.
32097         (vect_analyze_slp_instance): Handle reductions.
32098         (vect_analyze_slp): Try to build SLP instances originating from groups
32099         of reductions.
32100         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
32101         (vect_get_constant_vectors): Create initial vectors for reductions
32102         according to reduction code. Add new argument.
32103         (vect_get_slp_defs): Add new argument, pass it to
32104         vect_get_constant_vectors.
32105         (vect_schedule_slp_instance): Remove SLP tree root statements.
32106
32107 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32108
32109         * tree.h (ENUM_IS_SCOPED): Define.
32110         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
32111         for ENUM_IS_SCOPED enums.
32112
32113 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
32114
32115         * fold-const.c (fold_comparison): Use ssizetype.
32116         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
32117         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
32118         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
32119         * tree-object-size.c (compute_object_sizes): Use size_type_node.
32120
32121         * tree.h (initialize_sizetypes): Remove parameter.
32122         (build_common_tree_nodes): Remove second parameter.
32123         * stor-layout.c (initialize_sizetypes): Remove parameter.
32124         Always create an unsigned type.
32125         (set_sizetype): Assert that the passed type is unsigned and simplify.
32126         * tree.c (build_common_tree_nodes): Remove second parameter.
32127         Adjust call to initialize_sizetypes.
32128         * c-decl.c (c_init_decl_processing): Remove second argument in call to
32129         build_common_tree_nodes.
32130
32131 2010-04-18  Matthias Klose  <doko@ubuntu.com>
32132
32133         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
32134
32135 2010-04-18  Ira Rosen  <irar@il.ibm.com>
32136
32137         PR tree-optimization/43771
32138         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
32139         load permutation doesn't have gaps.
32140
32141 2010-04-18  Jan Hubicka  <jh@suse.cz>
32142
32143         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
32144         (sse_prologue_save_insn expander): Use new pattern.
32145         (sse_prologue_save_insn1): New pattern and splitter.
32146         (sse_prologue_save_insn): Update to deal also with 64bit aligned
32147         blocks.
32148         * i386.c (setup_incoming_varargs_64): Do not compute jump
32149         destination here.
32150         (ix86_gimplify_va_arg): Update alignment needed.
32151         (ix86_local_alignment): Do not align all local arrays to 128bit.
32152
32153 2010-04-17  Jan Hubicka  <jh@suse.cz>
32154
32155         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
32156
32157 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32158
32159         * arm.md (negdi2): Remove redundant code to force values into a
32160         register.
32161
32162 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32163
32164         * arm/bpabi.S: Add EABI alignment attributes to objects.
32165         * arm/bpabi-v6m.S: Likewise.
32166         * arm/crti.asm: Likewise.
32167         * arm/crtn.asm: Likewise.
32168         * arm/lib1funcs.asm: Likewise.
32169         * arm/libunwind.S: Likewise.
32170
32171 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32172
32173         * arm-protos.h (tune_params): New structure.
32174         * arm.c (current_tune): New variable.
32175         (arm_constant_limit): Delete.
32176         (struct processors): Add pointer to the tune parameters.
32177         (arm_slowmul_tune): New tuning option.
32178         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
32179         (all_cores): Adjust to pick up the tuning model.
32180         (arm_constant_limit): New function.
32181         (arm_override_options): Select the appropriate tuning model.  Delete
32182         initialization of arm_const_limit.
32183         (arm_split_constant): Use the new constant-limit model.
32184         (arm_rtx_costs): Pick up the current tuning model.
32185         * arm.md (is_strongarm, is_xscale): Delete.
32186         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
32187         for Xscale variant architectures.
32188         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
32189
32190 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32191
32192         * config/arm/arm.c (arm_gen_constant): Remove unused variable
32193         can_shift.
32194         (arm_rtx_costs_1): Remove unused variable extra_cost.
32195         (arm_unwind_emit_set): Use variable offset.
32196         (thumb1_output_casesi): Remove unused variable flags.
32197
32198 2010-04-16  Jeff Law  <law@redhat.com>
32199
32200         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
32201         needing assignment rather than doing a two-phase assignment.  Remove
32202         unused variable 'm'.
32203
32204 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32205
32206         PR bootstrap/43767
32207         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
32208
32209 2010-04-16  Doug Kwan  <dougkwan@google.com>
32210
32211         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
32212         (next_operand_entry_id): New static variable.
32213         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
32214         (add_to_ops_vec): Assigned unique ID to operand entry.
32215         (struct oecount_s): New field ID.
32216         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
32217         (undistribute_ops_list): Assign unique IDs to oecounts.
32218         (init_reassoc): reset next_operand_entry_id.
32219
32220 2010-04-16  Doug Kwan  <dougkwan@google.com>
32221
32222         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
32223         missing left parenthesis.
32224
32225 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
32226
32227         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
32228         *btdi_rex64 using SWI48 mode iterator.
32229         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
32230         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
32231         *jcc_btdi_mask_rex64.
32232
32233 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
32234
32235         * double-int.h (tree_to_double_int): Convert to macro.
32236         * double-int.c (tree_to_double_int): Remove.
32237
32238 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32239
32240         PR debug/43762
32241         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
32242         with want_address 2 and in case a single element list might be
32243         possible, call it again with want_address 0.
32244
32245 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32246
32247         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
32248         case 'W' print operands for HI mode.
32249         * config/h8300/h8300.h (Y0, Y2) : New constraints.
32250         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
32251         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
32252         * config/h8300/predicate.md (bit_register_indirect_operand): New.
32253
32254         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
32255
32256         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
32257         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
32258         #xx:3 and #xx:4 mode.
32259
32260         * config/h8300/h8300.md (inverted load with HImode dest): Add
32261         support for H8300SX.
32262
32263         * config/h8300/predicate.md (bit_operand): Allow immediate values that
32264         satisfy 'U' constraint.
32265
32266 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32267
32268         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
32269         * configure: Regenerate.
32270         * config.in: Regenerate.
32271         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
32272         works.
32273
32274 2010-04-16  Richard Guenther  <rguenther@suse.de>
32275
32276         * tree.h (struct tree_decl_minimal): Move pt_uid ...
32277         (struct tree_decl_common): ... here.
32278         (DECL_PT_UID): Adjust.
32279         (SET_DECL_PT_UID): Likewise.
32280         (DECL_PT_UID_SET_P): Likewise.
32281
32282 2010-04-16  Richard Guenther  <rguenther@suse.de>
32283
32284         PR tree-optimization/43572
32285         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
32286         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
32287         * tree-flow.h (is_call_clobbered): Remove.
32288         * tree-flow-inline.h (is_call_clobbered): Likewise.
32289         * tree-dfa.c (dump_variable): Do not dump call clobber state.
32290         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
32291         (execute_return_slot_opt): Adjust.
32292         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
32293         check for call clobbered vars here.
32294         (find_tail_calls): Move tailcall verification to the
32295         proper place.
32296
32297 2010-04-16  Diego Novillo  <dnovillo@google.com>
32298
32299         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
32300
32301 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32302
32303         PR target/40603
32304         * config/arm/arm.md (cbranchqi4): New pattern.
32305         * config/arm/predicates.md (const0_operand,
32306         cbranchqi4_comparison_operator): New predicates.
32307
32308 2010-04-16  Richard Guenther  <rguenther@suse.de>
32309
32310         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
32311         (dump_gimple_stmt): Likewise.
32312
32313 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32314
32315         * recog.h (struct recog_data): New field is_operator.
32316         (struct insn_operand_data): New field is_operator.
32317         * recog.c (extract_insn): Set recog_data.is_operator.
32318         * genoutput.c (output_operand_data): Emit code to set the
32319         is_operator field.
32320         * reload.c (find_reloads): Use it rather than testing for an
32321         empty constraint string.
32322
32323         PR target/41514
32324         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
32325         If the previous insn is a cbranchsi4_insn with the same arguments,
32326         omit the compare instruction.
32327
32328         * config/arm/arm.md (addsi3_cbranch): If destination is a high
32329         register, inputs must be low registers and we need a low register
32330         scratch.  Handle alternative 2 like alternative 3.
32331
32332 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32333
32334         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
32335         don't call get_addr on both.  If one expression is a VALUE and
32336         the other a REG, check VALUE's locs if the REG isn't among them.
32337
32338 2010-04-16  Christian Bruel  <christian.bruel@st.com>
32339
32340         * config/sh/sh.h (sh_frame_pointer_required): New function.
32341         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
32342         (flag_omit_frame_pointer) Set.
32343         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
32344         (rounded_frame_size): Adjust size with outgoing_args_size.
32345         (sh_set_return_address): Must return from stack pointer.
32346         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
32347         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
32348         (ACCUMULATE_OUTGOING_ARGS): Define.
32349         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
32350         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
32351
32352 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32353
32354         PR target/43471
32355         * config/sh/sh.c (sh_legitimize_reload_address): Use
32356         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
32357         Remove a unneeded check for offset_base.
32358
32359 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
32360
32361         * configure: Regenerated.
32362
32363 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32364
32365         * config/s390/s390.c (s390_call_save_register_used): Switch back
32366         to HARD_REGNO_NREGS.
32367
32368 2010-04-15  Richard Guenther  <rguenther@suse.de>
32369
32370         * alias.c (alias_set_subset_of): Handle alias-set zero
32371         child properly.
32372
32373 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
32374             Julian Brown  <julian@codesourcery.com>
32375
32376         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
32377         alternatives according to use of high and low regs.
32378         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
32379         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
32380         optimizing for size on Thumb-2.
32381
32382 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
32383
32384         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
32385
32386 2010-04-15  Richard Guenther  <rguenther@suse.de>
32387
32388         * tree-ssa-structalias.c (struct variable_info): Add
32389         is_fn_info flag.
32390         (new_var_info): Initialize it.
32391         (dump_constraints): Support printing last added constraints.
32392         (debug_constraints): Adjust.
32393         (dump_constraint_graph): Likewise.
32394         (make_heapvar_for): Check for NULL cfun.
32395         (get_function_part_constraint): New function.
32396         (get_fi_for_callee): Likewise.
32397         (find_func_aliases): Properly implement IPA PTA constraints.
32398         (process_ipa_clobber): New function.
32399         (find_func_clobbers): Likewise.
32400         (insert_into_field_list_sorted): Remove.
32401         (create_function_info_for): Properly allocate vars for IPA mode.
32402         Do not use insert_into_field_list_sorted.
32403         (create_variable_info_for): Properly generate constraints for
32404         global vars in IPA mode.
32405         (dump_solution_for_var): Always dump the solution.
32406         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
32407         (find_what_var_points_to): Adjust.
32408         (pt_solution_set): Change.
32409         (pt_solution_ior_into): New function.
32410         (pt_solution_empty_p): Export.
32411         (pt_solution_includes_global): Adjust.
32412         (pt_solution_includes_1): Likewise.
32413         (pt_solutions_intersect_1): Likewise.
32414         (dump_sa_points_to_info): Check some invariants.
32415         (solve_constraints): Move constraint dumping ...
32416         (compute_points_to_sets): ... here.
32417         (ipa_pta_execute): ... and here.
32418         (compute_may_aliases): Do not re-compute points-to info
32419         locally if IPA info is available.
32420         (ipa_escaped_pt): New global var.
32421         (ipa_pta_execute): Properly implement IPA PTA.
32422         * tree-into-ssa.c (dump_decl_set): Support dumping
32423         decls not in referenced-vars.
32424         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
32425         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
32426         (dump_points_to_solution): Likewise.
32427         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
32428         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
32429         (remap_gimple_stmt): Reset call clobber/use information if necessary.
32430         (copy_decl_to_var): Copy DECL_PT_UID.
32431         (copy_result_decl_to_var): Likewise.
32432         * tree.c (make_node_stat): Initialize DECL_PT_UID.
32433         (copy_node_stat): Copy it.
32434         * tree.h (DECL_PT_UID): New macro.
32435         (SET_DECL_PT_UID): Likewise.
32436         (DECL_PT_UID_SET_P): Likewise.
32437         (struct tree_decl_minimal): Add pt_uid member.
32438         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
32439         (pt_solution_empty_p): Declare.
32440         (pt_solution_set): Adjust.
32441         (ipa_escaped_pt): Declare.
32442         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
32443         * gimple-pretty-print.c (pp_points_to_solution): New function.
32444         (dump_gimple_call): Dump call clobber/use information.
32445         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
32446         * tree-pass.h (TDF_ALIAS): New dump option.
32447         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
32448         * doc/invoke.texi (-fipa-pta): Update documentation.
32449
32450 2010-04-15  Richard Guenther  <rguenther@suse.de>
32451
32452         * Makefile.in (OBJS-common): Add gimple-fold.o.
32453         (gimple-fold.o): New rule.
32454         * tree.h (maybe_fold_offset_to_reference,
32455         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
32456         prototypes ...
32457         * gimple.h: ... here.
32458         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
32459         may_propagate_address_into_dereference): Move prototypes ...
32460         * gimple.h: ... here.
32461         * tree-ssa-ccp.c (get_symbol_constant_value,
32462         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
32463         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
32464         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
32465         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
32466         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
32467         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
32468         gimplify_and_update_call_from_tree): Move ...
32469         * gimple-fold.c: ... here.  New file.
32470         (ccp_fold_builtin): Rename to ...
32471         (gimple_fold_builtin): ... this.
32472         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
32473
32474 2010-04-15  Richard Guenther  <rguenther@suse.de>
32475
32476         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
32477         fit_double_type, force_fit_type_double, add_double_with_sign,
32478         neg_double, mul_double_with_sign, lshift_double, rshift_double,
32479         lrotate_double, rrotate_double, div_and_round_double): Move ...
32480         * double-int.c: ... here.
32481         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
32482         add_double, neg_double, mul_double_with_sign, mul_double,
32483         lshift_double, rshift_double, lrotate_double, rrotate_double,
32484         div_and_round_double): Move prototypes ...
32485         * double-int.h: ... here.
32486
32487 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
32488
32489         PR target/43742
32490         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
32491         matching constraints to ensure inputs match the output.
32492
32493 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32494
32495         PR target/43742
32496         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
32497         in an input-only operand.
32498
32499 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
32500
32501         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
32502         (double_int_not, double_int_lshift, double_int_rshift): Declare.
32503         (double_int_negative_p): Convert to static inline function.
32504         * double-int.c (double_int_lshift, double_int_lshift): New functions.
32505         (double_int_negative_p): Remove.
32506         * tree.h (lshift_double, rshift_double):
32507         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
32508         * fold-const.c (fold_convert_const_int_from_real,
32509         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
32510         (lshift_double): Change type of arith argument to bool.
32511         (rshift_double): Change type of arith argument to bool. Correct
32512         comment.
32513         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32514
32515 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
32516
32517         PR target/21803
32518         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
32519         at the start and end of the then/else blocks, and omit them from the
32520         conversion.
32521         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
32522         argument; all callers changed.  Pass zero to old_insns_match_p instead.
32523         (flow_find_head_matching_sequence): New function.
32524         (old_insns_match_p): Check REG_EH_REGION notes for calls.
32525         * basic-block.h (flow_find_cross_jump,
32526         flow_find_head_matching_sequence): Declare functions.
32527
32528 2010-04-14  Jason Merrill  <jason@redhat.com>
32529
32530         PR c++/36625
32531         * c-common.c (attribute_takes_identifier_p): New fn.
32532         * c-common.h: Declare it.
32533
32534 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32535
32536         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
32537         splitter condition.
32538         (*udivmod<mode>4): Ditto.
32539
32540 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32541
32542         * config/i386/i386.md (maxmin_int): Rename code attribute from
32543         maxminiprefix and update all users.
32544         (maxmin_float): Ditto from maxminfprefix.
32545         (logic): Ditto from logicprefix.
32546         (absneg_mnemonic): Ditto from absnegprefix.
32547         * config/i386/mmx.md: Update all users of maxminiprefix,
32548         maxminfprefix and logicprefix for rename.
32549         * config/i386/sse.md: Ditto.
32550         * config/i386/sync.md (sync_<code><mode>): Update for
32551         logicprefix rename.
32552
32553 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32554
32555         PR 42966
32556         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
32557         warnings converted to errors.
32558
32559 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32560
32561         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
32562         used insn_type variable.
32563         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
32564         to avoid set-but-not-used warning.
32565
32566 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32567
32568         * df-core.c (df_ref_debug): Change format string placeholder
32569         from 0x%x to %#x.
32570         * dwarf2asm.c (dw2_asm_output_data_raw,
32571         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
32572         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
32573         * dwarf2out.c (output_cfi, output_cfi_directive,
32574         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
32575         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
32576         Ditto.
32577         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
32578         * print-rtl.c (print_rtx): Ditto.
32579
32580 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32581
32582         PR middle-end/42694
32583         * builtins.c (expand_builtin_pow_root): New function to expand pow
32584         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
32585         series of sqrt and cbrt calls under -ffast-math.
32586         (expand_builtin_pow): Call it.
32587
32588 2010-04-14  Michael Matz  <matz@suse.de>
32589
32590         PR tree-optimization/42963
32591         * tree-cfg.c (touched_switch_bbs): New static variable.
32592         (group_case_labels_stmt): New function broken out from ...
32593         (group_case_labels): ... here, use the above.
32594         (start_recording_case_labels): Allocate touched_switch_bbs.
32595         (end_recording_case_labels): Deallocate it, call
32596         group_case_labels_stmt.
32597         (gimple_redirect_edge_and_branch): Remember index of affected BB.
32598
32599 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32600
32601         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
32602         from insn template.
32603
32604 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32605
32606         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
32607
32608 2010-04-13  Jan Hubicka  <jh@suse.cz>
32609
32610         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
32611         of optimized out static functions.
32612         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
32613         cost computation.  Also sanity check for overflows.
32614         (update_caller_keys): Update cgraph_edge_badness call; properly
32615         update fibheap and sanity check that it is up to date.
32616         (add_new_edges_to_heap): Update cgraph_edge_badness.
32617         (cgraph_decide_inlining_of_small_function): Likewise;
32618         add sanity checking that badness in heap is up to date;
32619         improve dumping of reason; Update badness of calls to the
32620         offline copy of function currently inlined; dump badness
32621         of functions not inlined because of unit growth limits.
32622
32623 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32624
32625         PR middle-end/32628
32626         * c-common.c (pointer_int_sum): Disregard overflow that occured only
32627         because of sign-extension change when converting to sizetype here...
32628         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
32629
32630         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
32631         the folding to constants.  Remove redundant final conversion.
32632         (fold_binary) <associate>: Do not associate if the re-association of
32633         constants alone overflows.
32634         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
32635         to the end of the list.
32636         (multiple_of_p) <COND_EXPR>: New case.
32637
32638 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32639
32640         * opt-functions.awk (opt_sanitized_name): New.
32641         (opt_enum): New.
32642         * optc-gen.awk: Use it
32643         * opth-gen.awk: Use it.
32644
32645 2010-04-13  Martin Jambor  <mjambor@suse.cz>
32646
32647         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
32648         (sra_modify_assign): Delete stmts loading dead data even if racc has no
32649         children.  Call replace_uses_with_default_def_ssa_name to handle
32650         SSA_NAES on lhs.
32651
32652 2010-04-13  Michael Matz  <matz@suse.de>
32653
32654         PR middle-end/43730
32655         * builtins.c (expand_builtin_interclass_mathfn): Also create
32656         a register if the predicate doesn't match.
32657
32658 2010-04-13  Diego Novillo  <dnovillo@google.com>
32659
32660         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
32661         * c-pch.c: Include timevar.h.
32662         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
32663         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
32664         * ggc-common.c: Include timevar.h.
32665         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
32666         * timevar.def (TV_PCH_SAVE): Define.
32667         (TV_PCH_CPP_SAVE): Define.
32668         (TV_PCH_PTR_REALLOC): Define.
32669         (TV_PCH_PTR_SORT): Define.
32670         (TV_PCH_RESTORE): Define.
32671         (TV_PCH_CPP_RESTORE): Define.
32672
32673 2010-04-13  Michael Matz  <matz@suse.de>
32674
32675         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
32676         into MINUS_EXPRs.
32677         (can_reassociate_p): New function.
32678         (break_up_subtract_bb, reassociate_bb): Use it.
32679
32680 2010-04-13  Richard Guenther  <rguenther@suse.de>
32681
32682         PR bootstrap/43737
32683         * builtins.c (c_readstr): Fix assert.
32684
32685 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
32686
32687         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
32688         when generating cltd insn.
32689
32690         (*ashl<mode>3_1): Remove special handling for register operand 2.
32691         (*ashlsi3_1_zext): Ditto.
32692         (*ashlhi3_1): Ditto.
32693         (*ashlhi3_1_lea): Ditto.
32694         (*ashlqi3_1): Ditto.
32695         (*ashlqi3_1_lea): Ditto.
32696         (*<shiftrt_insn><mode>3_1): Ditto.
32697         (*<shiftrt_insn>si3_1_zext): Ditto.
32698         (*<shiftrt_insn>qi3_1_slp): Ditto.
32699         (*<rotate_insn><mode>3_1): Ditto.
32700         (*<rotate_insn>si3_1_zext): Ditto.
32701         (*<rotate_insn>qi3_1_slp): Ditto.
32702
32703 2010-04-13  Richard Guenther  <rguenther@suse.de>
32704
32705         * tree-ssa-structalias.c (callused_id): Remove.
32706         (call_stmt_vars): New.
32707         (get_call_vi): Likewise.
32708         (lookup_call_use_vi): Likewise.
32709         (lookup_call_clobber_vi): Likewise.
32710         (get_call_use_vi): Likewise.
32711         (get_call_clobber_vi): Likewise.
32712         (make_transitive_closure_constraints): Likewise.
32713         (handle_const_call): Adjust to do per-call call-used handling.
32714         (handle_pure_call): Likewise.
32715         (find_what_var_points_to): Remove general callused handling.
32716         (init_base_vars): Likewise.
32717         (init_alias_vars): Initialize call_stmt_vars.
32718         (compute_points_to_sets): Process call-used and call-clobbered
32719         vars for call statements.
32720         (delete_points_to_sets): Free call_stmt_vars.
32721
32722 2010-04-13  Richard Guenther  <rguenther@suse.de>
32723
32724         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32725         Only add RW dependence for dependence distance zero.
32726         Adjust maximal vectorization factor according to dependences.
32727         Move alignment handling ...
32728         (vect_find_same_alignment_drs): ... here.  New function.
32729         (vect_analyze_data_ref_dependences): Adjust.
32730         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
32731         (vect_analyze_data_refs): Adjust minimal vectorization factor
32732         according to data references.
32733         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
32734         dependences before determining the vectorization factor.
32735         Analyze alignment after determining the vectorization factor.
32736         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
32737         dependences before alignment.
32738         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
32739         Adjust prototype.
32740         (vect_analyze_data_refs): Likewise.
32741         (MAX_VECTORIZATION_FACTOR): New define.
32742
32743 2010-04-13  Duncan Sands  <baldrick@free.fr>
32744
32745         * except.h (lang_eh_type_covers): Remove.
32746         * except.c (lang_eh_type_covers): Likewise.
32747
32748 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32749             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32750
32751         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
32752         * config/s390/s390.c: Replace UNTIS_PER_WORD with
32753         UNITS_PER_LONG where it is ABI relevant.
32754         (s390_return_addr_rtx): Likewise.
32755         (s390_back_chain_rtx): Likewise.
32756         (s390_frame_area): Likewise.
32757         (s390_frame_info): Likewise.
32758         (s390_initial_elimination_offset): Likewise.
32759         (save_gprs): Likewise.
32760         (s390_emit_prologue): Likewise.
32761         (s390_emit_epilogue): Likewise.
32762         (s390_function_arg_advance): Likewise.
32763         (s390_function_arg): Likewise.
32764         (s390_va_start): Likewise.
32765         (s390_gimplify_va_arg): Likewise.
32766         (s390_function_profiler): Likewise.
32767         (s390_optimize_prologue): Likewise.
32768         (s390_rtx_costs): Likewise.
32769         (s390_secondary_reload): Likewise.
32770         (s390_promote_function_mode): Likewise.
32771         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
32772         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
32773         registers available.
32774         (s390_unwind_word_mode): New function.
32775         (s390_function_value): Split 64 bit values into register pair if
32776         used as return value.
32777         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
32778         function call parameters.  Handle parallels.
32779         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
32780         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
32781         (DWARF_CIE_DATA_ALIGNMENT): New macro.
32782         (s390_expand_setmem): Remove unused variable src_addr.
32783         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
32784         deal with 64 bit registers.
32785         * config/s390/s390.h: Define __zarch__ predefined macro.
32786         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
32787         (UNITS_PER_LONG): New macro.
32788         * libjava/include/s390-signal.h: Define extended ucontext
32789         structure containing the upper halfs of the 64 bit registers.
32790
32791 2010-04-13  Simon Baldwin  <simonb@google.com>
32792
32793         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
32794
32795 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32796
32797         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
32798         rvalue on the RHS if the LHS is of a non-renamable type.
32799         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
32800
32801 2010-04-13  Matthias Klose  <doko@ubuntu.com>
32802
32803         * gcc.c (cc1_options): Handle -iplugindir before processing
32804         the cc1 spec. Only add -iplugindir once.
32805         (cpp_unique_options): Add -iplugindir option if -fplugin* options
32806         found.
32807         * common.opt (iplugindir): Remove `Separate' property, initialize.
32808         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
32809         option.
32810         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
32811         (distclean): Remove plugin dir.
32812         * doc/invoke.texi: Document -iplugindir.
32813
32814 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
32815
32816         * doc/plugins.texi (Loading Plugins): Document short
32817         -fplugin=foo option.
32818         (Plugin API): Mention default_plugin_dir_name function.
32819
32820         * gcc.c (find_file_spec_function): Add new declaration.
32821         (static_spec_func): Use it for "find-file".
32822         (find_file_spec_function): Add new function.
32823         (cc1_options): Add -iplugindir option if -fplugin* options found.
32824
32825         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
32826
32827         * plugin.c (add_new_plugin): Updated comment, and handle short
32828         plugin name.
32829         (default_plugin_dir_name): Added new function.
32830
32831         * common.opt (iplugindir): New option to set the plugin directory.
32832
32833 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
32834
32835         * config/i386/i386.md (any_rotate): New code iterator.
32836         (rotate_insn): New code attribute.
32837         (rotate): Ditto.
32838         (SWIM124): New mode iterator.
32839         (<rotate_insn>ti3): New expander.
32840         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
32841         any_rotate code iterator.
32842         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
32843         using any_rotate code iterator and SWIM124 mode iterator.
32844         (ix86_rotlti3): New insn_and_split pattern.
32845         (ix86_rotrti3): Ditto.
32846         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
32847         ix86_rotl{di,ti}3 patterns.
32848         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
32849         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
32850         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
32851         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
32852         code iterator and SWI mode iterator.
32853         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
32854         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
32855         code iterator.
32856         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
32857         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
32858         (bswap rotatert splitter): Add splitter.
32859         (bswap splitter): Macroize splitter using any_rotate code iterator.
32860         Add insn predicate to split only for TARGET_USE_XCHGB or when
32861         optimizing function for size.
32862
32863 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32864
32865         * config/pa/pa.c (emit_move_sequence): Remove use of
32866         deleted variable flag_argument_noalias.
32867
32868 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32869
32870         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
32871         configurations.
32872         Add to unsupported targets list.
32873         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
32874         sparc*-sun-solaris2.[567]* from target lists.
32875         * configure: Regenerate.
32876         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
32877         removal.
32878         Remove Solaris 7 patch references.
32879         (Specific, sparc-sun-solaris2.7): Removed.
32880         (sparc-sun-solaris2*): Update Solaris 7 example.
32881         (sparc64-*-solaris2*): Likewise.
32882
32883 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32884
32885         * config.build (alpha*-dec-osf4*): Remove.
32886         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
32887         of obsolete configurations.
32888         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
32889         support.
32890         * config/alpha/t-osf4: Renamed to ...
32891         * config/alpha/t-osf5: ... this.
32892         * config/alpha/osf.h: Renamed to ...
32893         * config/alpha/osf5.h: ... this.
32894         Merged old osf5.h contents.
32895         Update comments.
32896         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
32897         (EXTRA_SPECS): Removed.
32898         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
32899         reflect removal of Tru64 UNIX V4.0/V5.0 support.
32900         Document that.
32901
32902 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32903
32904         * doc/contrib.texi (Contributors, Rainer Orth): Update.
32905
32906 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
32907
32908         PR/43702
32909         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
32910         __thiscall convention.
32911
32912 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32913
32914         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
32915         orig_base.
32916         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
32917
32918 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32919
32920         * function.c (assign_parms_initialize_all): Add unused attribute
32921         to fntype.
32922
32923 2010-04-12  Richard Guenther  <rguenther@suse.de>
32924
32925         * gsstruct.def (GSS_CALL): New.
32926         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
32927         * gimple.h: Include tree-ssa-alias.h.
32928         (struct gimple_statement_call): New.
32929         (union gimple_statement_struct_d): Add gimple_call member.
32930         (gimple_call_reset_alias_info): Declare.
32931         (gimple_call_use_set): New function.
32932         (gimple_call_clobber_set): Likewise.
32933         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
32934         * gimple.c (gimple_call_reset_alias_info): New function.
32935         (gimple_build_call_1): Call it.
32936         * lto-streamer-in.c (input_gimple_stmt): Likewise.
32937         * tree-inline.c (remap_gimple_stmt): Likewise.
32938         (expand_call_inline): Remove callused handling.
32939         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
32940         * tree-dfa.c (dump_variable): Likewise.
32941         * tree-parloops.c (parallelize_loops): Likewise.
32942         * tree-ssa.c (init_tree_ssa): Likewise.
32943         (delete_tree_ssa): Likewise.
32944         * tree-flow-inline.h (is_call_used): Remove.
32945         * tree-flow.h (struct gimple_df): Remove callused member.
32946         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
32947         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
32948         (ref_maybe_used_by_call_p_1): Simplify.
32949         (call_may_clobber_ref_p_1): Likewise.
32950         * tree-ssa-structalias.c (compute_points_to_sets): Set
32951         the call stmt used and clobbered sets.
32952         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
32953         (find_tail_calls): Verify the tail call.
32954
32955 2010-04-12  Richard Guenther  <rguenther@suse.de>
32956
32957         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
32958         single-iteration always-inline inlining.
32959         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
32960         (cgraph_decide_inlining): Do not handle always-inline specially.
32961         (try_inline): Remove always-inline cycle detection special case.
32962         Do not recurse on always-inlines.
32963         (cgraph_early_inlining): Do not iterate if not optimizing.
32964         (cgraph_gate_early_inlining): remove.
32965         (pass_early_inline): Run unconditionally.
32966         (gate_cgraph_decide_inlining): New function.
32967         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
32968         not inlining or optimizing.
32969         (cgraph_decide_inlining_of_small_functions): Also consider
32970         always-inline functions.
32971         (cgraph_default_inline_p): Return true for nodes which should
32972         disregard inline limits.
32973         (estimate_function_body_sizes): Assume zero size and time for
32974         nodes which are marked as disregarding inline limits.
32975         (cgraph_decide_recursive_inlining): Do not perform recursive
32976         inlining on always-inline nodes.
32977
32978 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
32979
32980         PR bootstrap/43699
32981         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
32982         for exprs satisfying handled_component_p.
32983
32984 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
32985
32986         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
32987         non-constant aggregate elements.
32988
32989         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
32990         is a real initialization.
32991
32992 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
32993
32994         PR c/36774
32995         * c-decl.c (start_function): Move forward check for nested function.
32996
32997 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
32998
32999         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33000         * config/sh/sh.c: Include reload.h.
33001         (sh_legitimize_reload_address): New.
33002         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33003         sh_legitimize_reload_address.
33004
33005 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33006
33007         * config/sh/sh.md (*movqi_pop): New insn pattern.
33008         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33009
33010 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33011
33012         * config/i386/i386.md (any_shiftrt): New code iterator.
33013         (shiftrt_insn): New code attribute.
33014         (shiftrt): Ditto.
33015         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33016         using any_shiftrt code iterator.
33017         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33018         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33019         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33020         pattern from corresponding peephole2 patterns.
33021         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33022         using any_shiftrt code iterator.
33023         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33024         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33025         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33026         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33027         *{ashr,lshr}<mode>3_cmp_zext.
33028         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33029
33030 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33031
33032         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33033         scratch register.
33034         (*lshr<mode>3_cconly): Ditto.
33035
33036 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33037
33038         * config/i386/i386.md (lshr<mode>3): Macroize expander from
33039         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33040         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33041         pattern from *lshr{di,ti}3_1 and corresponding splitters using
33042         DWI mode iterator.
33043         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33044         from corresponding peephole2 patterns.
33045         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33046         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33047         and *lshrdi3_1_rex64 using SWI mode iterator.
33048         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33049         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33050         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33051         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33052         and *lshrdi3_cmp_rex64 using SWI mode iterator.
33053         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33054         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33055         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33056         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33057         SWI mode iterator.
33058
33059 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
33060
33061         * config/i386/i386.md (ashr<mode>3): Macroize expander from
33062         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33063         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33064         pattern from *ashr{di,ti}3_1 and corresponding splitters using
33065         DWI mode iterator.
33066         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33067         from corresponding peephole2 patterns.
33068         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33069         (ashrsi3_cvt): Rename from ashrsi3_31.
33070         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33071         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33072         and x86_64_shift_adj_3 using SWI48 mode iterator.
33073         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33074         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33075         and *ashrdi3_1_rex64 using SWI mode iterator.
33076         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33077         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33078         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33079         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33080         and *ashrdi3_cmp_rex64 using SWI mode iterator.
33081         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33082         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33083         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33084         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33085         SWI mode iterator.
33086         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33087         * config/i386/i386.c (ix86_split_ashr): Update for renamed
33088         x86_shift<mode>_adj_3 expanders.
33089
33090 2010-04-10  Wei Guozhi  <carrot@google.com>
33091
33092         PR target/42601
33093         * config/arm/arm.c (arm_pic_static_addr): New function.
33094         (legitimize_pic_address): Call arm_pic_static_addr when it detects
33095         a static symbol.
33096         (arm_output_addr_const_extra): Output expression for new pattern.
33097         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
33098
33099 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
33100
33101         * ira-costs.c (record_reg_classes): Ignore alternatives that are
33102         not enabled.
33103
33104         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
33105         * web.c: Include "insn-config.h" and "recog.h".
33106         (union_match_dups): New function.
33107         (web_main): Call it.
33108         (union_defs): Don't try to recognize match_dups.
33109
33110         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
33111         if doing so would replace the entire pattern.
33112
33113 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33114
33115         PR target/43707
33116         PR target/43709
33117         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
33118         and splitter pattern.  Change splitter operand 1 predicate to
33119         nonmemory_operand.
33120
33121 2010-04-09  Martin Jambor  <mjambor@suse.cz>
33122
33123         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
33124         lattices are addresses of CONST_DECLs with the same initial value.
33125         (ipcp_print_all_lattices): Print values of CONST_DECLs.
33126         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
33127
33128 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
33129             Bernd Schmidt  <bernds@codesourcery.com>
33130
33131         * loop-invariant.c (replace_uses): New static function.
33132         (move_invariant_reg): Use it to ensure we can replace the uses.
33133
33134 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
33135
33136         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
33137         function template.
33138         (picochip_override_options): Enable section anchors only above -O1.
33139         (picochip_reorg): Fixed a couple of build warnings.
33140
33141 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33142
33143         * configure.ac (plugin -rdynamic test): Log result.
33144         * configure: Regenerate.
33145         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
33146         (RDYNAMIC_SPEC): Define.
33147         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
33148
33149 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33150
33151         * configure.ac: Determine Sun ld version numbers.
33152         (comdat_group): Restrict GNU ld version checks to gld.
33153         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
33154         (enable_comdat): Support --enable-comdat.
33155         * configure: Regenerate.
33156         * doc/install.texi (Configuration): Document --enable-comdat.
33157
33158 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33159
33160         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
33161         * config/sol2-gld.h: ... here.
33162         * config.gcc (sparc*-*-solaris2*): Reflect this.
33163         (i[34567]86-*-solaris2*): Use it.
33164
33165 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
33166
33167         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
33168         setup_clocks_p.
33169         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
33170
33171 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33172
33173         PR 42965
33174         * diagnostic.c (diagnostic_initialize): Initialize
33175         some_warnings_are_errors.
33176         (diagnostic_finish): New.
33177         (diagnostic_action_after_output): Call it before exiting.
33178         (diagnostic_report_diagnostic): Do not print message here. Set
33179         some_warnings_are_errors.
33180         * diagnostic.h (diagnostic_context): Delete
33181         issue_warnings_are_errors_message. Add some_warnings_are_errors.
33182         (diagnostic_finish): Declare.
33183         * toplev.c (toplev_main): Call it before exit.
33184
33185 2010-04-09  Jason Merrill  <jason@redhat.com>
33186
33187         PR c++/42623
33188         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
33189         for incomplete type.
33190
33191         PR c++/41788
33192         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
33193         based on a warning flag.
33194
33195 2010-04-09  Richard Guenther  <rguenther@suse.de>
33196
33197         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
33198
33199 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
33200
33201         PR bootstrap/43684
33202         * varasm.c (default_assemble_visibility): Wrap vars that are
33203         set, but unused, by targets without GAS.
33204         * config/rs6000/rs6000.c (paired_emit_vector_compare):
33205         Remove set, but unused, vars.
33206         (rs6000_legitimize_tls_address): Likewise.
33207         (altivec_expand_dst_builtin): Likewise.
33208         * config/darwin.c (machopic_classify_symbol): Likewise.
33209         (machopic_indirection_name): Likewise.
33210
33211 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33212
33213         * config/i386/i386.md (DWI): New mode iterator.
33214         (S): New mode attribute.
33215         (shift_operand): Ditto.
33216         (shift_immediate_operand): Ditto.
33217         (ashl_input_operand): Ditto.
33218         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
33219         using SDWIM mode iterator.
33220         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33221         pattern from *ashl{di,ti}3_1 and corresponding splitters using
33222         DWI mode iterator.
33223         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
33224         from corresponding peephole2 patterns.
33225         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
33226         and x86_64_shift_adj_1 using SWI48 mode iterator.
33227         (x86_shift<mode>_adj_2): Ditto.
33228         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
33229         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
33230         using SWI48 mode iterator.
33231         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
33232         *ashldi3_cmp_rex64 using SWI mode iterator.
33233         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
33234         *ashldi3_cconly_rex64 using SWI mode iterator.
33235         * config/i386/i386.c (ix86_split_ashl): Update for renamed
33236         x86_shift<mode>_adj_{1,2}.
33237         (ix86_split_ashr): Ditto.
33238         (ix86_split_lshr): Ditto.
33239
33240 2010-04-09  Richard Guenther  <rguenther@suse.de>
33241
33242         * target.h (builtin_conversion): Pass in input and output types.
33243         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
33244         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
33245         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
33246         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
33247
33248         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
33249         Handle AVX modes.
33250         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
33251
33252 2010-04-09  Richard Guenther  <rguenther@suse.de>
33253
33254         PR target/43152
33255         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
33256
33257 2010-04-09  Richard Guenther  <rguenther@suse.de>
33258
33259         * tree-vectorizer.h (struct _stmt_vec_info): Document
33260         that vectype is the type of the LHS.
33261         (supportable_widening_operation, supportable_narrowing_operation):
33262         Get both input and output vector types as arguments.
33263         (vect_is_simple_use_1): Declare.
33264         (get_same_sized_vectype): Likewise.
33265         * tree-vect-loop.c (vect_determine_vectorization_factor):
33266         Set STMT_VINFO_VECTYPE to the vector type of the def.
33267         (vectorizable_reduction): Adjust.
33268         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
33269         Adjust.  Specify the output vector type.
33270         (vect_pattern_recog_1): Adjust.
33271         * tree-vect-stmts.c (get_same_sized_vectype): New function.
33272         (vectorizable_call): Adjust.
33273         (vectorizable_conversion): Likewise.
33274         (vectorizable_operation): Likewise.
33275         (vectorizable_type_demotion): Likewise.
33276         (vectorizable_type_promotion): Likewise.
33277         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
33278         the def.
33279         (vect_is_simple_use_1): New function.
33280         (supportable_widening_operation): Get both input and output
33281         vector types.
33282         (supportable_narrowing_operation): Likewise.
33283         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
33284
33285 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
33286
33287         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
33288         __thiscall and _thiscall as predefined macros.
33289         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
33290         thiscall attribute handling.
33291         (ix86_comp_type_attributes): Likewise.
33292         (ix86_function_regparm): Likewise.
33293         (ix86_return_pops_args): Likewise.
33294         (init_cumulative_args): Likewise.
33295         (find_drap_reg): Likewise.
33296         (ix86_static_chain): Likewise.
33297         (x86_this_parameter): Likewise.
33298         (x86_output_mi_thunk): Likewise.
33299         (ix86_attribute_table): Add description for thiscall attribute.
33300         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
33301         * doc/extend.texi: Add documentation for thiscall.
33302
33303 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33304
33305         PR c++/28584
33306         * c.opt (Wint-to-pointer-cast): Available in C++.
33307         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
33308
33309 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
33310
33311         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
33312         * calls.c (expand_call): Pass the function type to aggregate_value_p.
33313         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
33314         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
33315         function type instead.  Reorder and simplify checks.
33316
33317         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
33318
33319 2010-04-08  Jing Yu  <jingyu@google.com>
33320             Zdenek Dvorak  <ook@ucw.cz>
33321
33322         PR tree-optimization/42720
33323         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
33324         loop unswitch conditions here from ...
33325         (tree_unswitch_single_loop): ... here.
33326
33327 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33328
33329         * tree-if-conv.c: Fix comments and simplify logic.
33330
33331 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33332
33333         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
33334         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
33335         (main_tree_if_conversion): Update call to tree_if_conversion.
33336
33337 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33338
33339         PR 42485
33340         * doc/invoke.texi (-b,-V): Delete.
33341         * doc/tm.texi: Do not mention -b.
33342         * gcc.c (display_help): Delete -b and -V.
33343         (process_command): Delete -b and -V.
33344         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
33345
33346 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
33347             Wolfgang Gellerich  <gellerich@de.ibm.com>
33348
33349         Implement target hook for loop unrolling
33350         * target.h (loop_unroll_adjust): Add a new target hook function.
33351         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
33352         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
33353         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
33354         (s390_loop_unroll_adjust): Implement the new target hook for s390.
33355         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
33356         target hook.
33357         (decide_unroll_stupid): Likewise.
33358
33359 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33360
33361         PR target/43643
33362         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
33363
33364 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33365
33366         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
33367         (Specific, *-*-solaris2*): Likewise.
33368         Don't prefer Sun as over GNU as.
33369
33370 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
33371
33372         * config/s390/s390.c (override_options): Adjust the z10 defaults
33373         for max-unroll-times, max-completely-peeled-insns
33374         and max-completely-peel-times.
33375
33376 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33377
33378         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
33379         instructions for z10.
33380         (s390_expand_setmem): Likewise.
33381         (s390_expand_cmpmem): Likewise.
33382
33383 2010-04-08  Richard Guenther  <rguenther@suse.de>
33384
33385         PR tree-optimization/43679
33386         * tree-ssa-pre.c (eliminate): Only propagate copies.
33387
33388 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33389
33390         PR bootstrap/43681
33391         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
33392         set but not used variable warning.
33393
33394 2010-04-08  Wei Guozhi  <carrot@google.com>
33395
33396         PR target/41653
33397         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
33398         (arm_size_rtx_costs): Call the new function when optimized for size.
33399
33400 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33401
33402         PR debug/43670
33403         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
33404         op0 is not a MEM, just return NULL instead of assertion
33405         failure.
33406         (discover_nonconstant_array_refs): Don't walk debug stmts.
33407
33408 2010-04-08  Doug Kwan  <dougkwan@google.com>
33409
33410         * configure.ac: Recognize gold and do not use its version number
33411         to test ld features.
33412         * configure: Regenerate.
33413
33414 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
33415
33416         PR middle-end/40815
33417         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
33418         (negate_value): Move code to push elements to broken_up_substracts ...
33419         (eliminate_plus_minus_pair): ... here.  Push operands that have no
33420         negative pair to plus_negates.
33421         (repropagate_negates, init_reassoc, fini_reassoc): Update.
33422
33423 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33424
33425         * doc/install.texi (Configuration): Move description of
33426         --enable-lto, --with-libelf*, --enable-gold from Java section to
33427         general section.
33428
33429         * doc/generic.texi (Working with declarations)
33430         (Function Properties, C and C++ Trees): Fix typos.
33431         * doc/sourcebuild.texi (Top Level): Likewise.
33432
33433 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33434
33435         PR c/18624
33436         * tree.h (DECL_READ_P): Define.
33437         (struct tree_decl_common): Add decl_read_flag.
33438         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
33439         a set but not used warning.
33440         (merge_decls): Merge DECL_READ_P flag.
33441         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
33442         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
33443         * c-common.c (handle_used_attribute, handle_unused_attribute):
33444         Likewise.
33445         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
33446         New prototypes.
33447         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
33448         New functions.
33449         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
33450         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
33451         c_parser_binary_expression, c_parser_cast_expression,
33452         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
33453         Call default_function_array_read_conversion instead of
33454         default_function_array_conversion where needed.
33455         (c_parser_unary_expression, c_parser_conditional_expression,
33456         c_parser_postfix_expression_after_primary, c_parser_initelt):
33457         Likewise.  Call mark_exp_read where needed.
33458         (c_parser_statement_after_labels, c_parser_asm_operands,
33459         c_parser_typeof_specifier, c_parser_sizeof_expression,
33460         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
33461         where needed.
33462         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
33463         New.
33464         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
33465         (warn_unused_but_set_parameter): Default to warn_unused
33466         && extra_warnings.
33467         * doc/invoke.texi: Document -Wunused-but-set-variable and
33468         -Wunused-but-set-parameter.
33469
33470         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
33471         used count variable.
33472         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
33473         when operandN variables aren't used in the body of the expander
33474         or splitter.
33475         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
33476         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
33477         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
33478         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
33479         FOR_EACH_IMM_USE_ON_STMT): Likewise.
33480         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
33481         * tree.c (PROCESS_ARG): Likewise.
33482
33483 2010-04-07  Simon Baldwin  <simonb@google.com>
33484
33485         * diagnostic.h (diagnostic_override_option_index): New macro to
33486         set a diagnostic's option_index.
33487         * c-tree.h (c_cpp_error): Add warning reason argument.
33488         * opts.c (_warning_as_error_callback): New.
33489         (register_warning_as_error_callback): Store callback for
33490         warnings enabled via enable_warning_as_error.
33491         (enable_warning_as_error): Call callback, minor code tidy.
33492         * opts.h (register_warning_as_error_callback): Declare.
33493         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
33494         response to -Werror=.
33495         (c_common_init_options): Register warning_as_error_callback in opts.c.
33496         * common.opt: Add -Wno-cpp option.
33497         * c-common.c (struct reason_option_codes_t): Map cpp warning
33498         reason codes to gcc option indexes.
33499         * (c_option_controlling_cpp_error): New function, lookup the gcc
33500         option index for a cpp warning reason code.
33501         * (c_cpp_error): Add warning reason argument, call
33502         c_option_controlling_cpp_error for diagnostic_override_option_index.
33503         * doc/invoke.texi: Document -Wno-cpp.
33504
33505 2010-04-07  Richard Guenther  <rguenther@suse.de>
33506
33507         * ipa-reference.c (mark_load): Use get_base_address.
33508         (mark_store): Likewise.
33509
33510         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
33511         inserting GIMPLE_NOPs into the IL.
33512         * tree-ssa-structalias.c (get_constraint_for_component_ref):
33513         Explicitly strip handled components and indirect references.
33514
33515         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
33516         folding address expressions.
33517         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
33518         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
33519         operand_equal_p to compare decls.
33520         (ptr_deref_may_alias_decl_p): Likewise.
33521         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
33522         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
33523         Handle reversed comparison ops.
33524         * tree-sra.c (asm_visit_addr): Use get_base_address.
33525         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
33526         * ipa-reference.c (mark_address): Use get_base_address.
33527
33528 2010-04-07  Richard Guenther  <rguenther@suse.de>
33529
33530         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
33531         Propagate constants everywhere.
33532
33533 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33534
33535         PR debug/43516
33536         * tree.c (MAX_INT_CACHED_PREC): Define.
33537         (nonstandard_integer_type_cache): New array.
33538         (build_nonstandard_integer_type): Cache results for precision
33539         <= MAX_INT_CACHED_PREC.
33540
33541 2010-04-07  Richard Guenther  <rguenther@suse.de>
33542
33543         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
33544         -fargument-noalias-global, -fargument-noalias-anything): Remove.
33545         * common.opt: Likewise.
33546         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
33547         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
33548         (nonoverlapping_memrefs_p): Likewise.
33549         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33550         * opts.c (common_handle_option): Handle OPT_fargument_alias,
33551         OPT_fargument_noalias, OPT_fargument_noalias_anything and
33552         OPT_fargument_noalias_global for backward compatibility.
33553
33554 2010-04-07  Richard Guenther  <rguenther@suse.de>
33555
33556         PR tree-optimization/43270
33557         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
33558         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
33559         * tree-ssa-pre.c (phi_translate_1): Adjust.
33560         (fully_constant_expression): Split out vn_reference handling to ...
33561         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
33562         Fold reads from constant strings.
33563         (vn_reference_lookup): Handle fully constant references.
33564         (vn_reference_lookup_pieces): Likewise.
33565         * Makefile.in (expmed.o-warn): Add -Wno-error.
33566
33567 2010-04-07  Martin Jambor  <mjambor@suse.cz>
33568
33569         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
33570
33571 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
33572
33573         PR driver/41594
33574         * gcc.c: Add -static-libstdc++ to list of recognized options.
33575
33576 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33577
33578         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
33579
33580 2010-04-07  Richard Guenther  <rguenther@suse.de>
33581
33582         PR middle-end/42617
33583         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
33584         bases build simple mem attributes to retain points-to information.
33585
33586 2010-04-07  Richard Guenther  <rguenther@suse.de>
33587
33588         PR middle-end/42617
33589         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
33590         preserve points-to related information.
33591
33592 2010-04-07  Richard Guenther  <rguenther@suse.de>
33593
33594         PR middle-end/42617
33595         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
33596         discard plain indirect references.
33597         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
33598         * tree.c (tree_nop_conversion): Likewise.
33599
33600 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
33601
33602         PR debug/43628
33603         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
33604
33605 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
33606
33607         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
33608         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
33609
33610 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33611
33612         * tree-if-conv.c: Fix indentation and comments.
33613
33614 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33615
33616         * tree-if-conv.c: Sort static functions in topological order.
33617
33618 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33619
33620         * tree-if-conv.c: Fix indentation and comments.
33621
33622 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33623
33624         PR middle-end/43519
33625         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
33626         lang_hooks.types.type_for_size instead of
33627         build_nonstandard_integer_type.
33628         When converting an unsigned type to signed, double its precision.
33629         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
33630         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
33631         (graphite_create_new_loop_guard): When ub + 1 wraps around,
33632         use lb <= ub.
33633
33634 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33635
33636         PR middle-end/43519
33637         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
33638         POINTER_PLUS_EXPR for pointer types.
33639
33640 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33641
33642         PR middle-end/43519
33643         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
33644         * graphite-clast-to-gimple.c: Include langhooks.h.
33645         (max_signed_precision_type): New.
33646         (max_precision_type): Takes two types as arguments.
33647         (precision_for_value): New.
33648         (precision_for_interval): New.
33649         (gcc_type_for_interval): New.
33650         (gcc_type_for_value): New.
33651         (gcc_type_for_clast_term): New.
33652         (gcc_type_for_clast_red): New.
33653         (gcc_type_for_clast_bin): New.
33654         (gcc_type_for_clast_expr): Split up into several functions.
33655         (gcc_type_for_clast_eq): Rewritten.
33656         (compute_bounds_for_level): New.
33657         (compute_type_for_level_1): New.
33658         (compute_type_for_level): New.
33659         (gcc_type_for_cloog_iv): Removed.
33660         (gcc_type_for_iv_of_clast_loop): Rewritten.
33661         (graphite_create_new_loop): Compute the lower and upper bound types
33662         with gcc_type_for_clast_expr.
33663         (graphite_create_new_loop_guard): Same.
33664         (find_cloog_iv_in_expr): Removed.
33665         (compute_cloog_iv_types_1): Removed.
33666         (compute_cloog_iv_types): Removed.
33667         (gloog): Do not call compute_cloog_iv_types.
33668         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
33669         GBB_CLOOG_IV_TYPES.
33670         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
33671         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
33672         (GBB_CLOOG_IV_TYPES): Removed.
33673
33674 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33675
33676         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
33677         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
33678         (detect_commutative_reduction): Same.
33679
33680 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33681
33682         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
33683         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
33684         argument.
33685         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
33686         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
33687         (rewrite_commutative_reductions_out_of_ssa): Same.
33688         * passes.c (execute_function_todo): Call verify_ssa for every pass
33689         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
33690         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
33691         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
33692         with an extra argument.
33693         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
33694         verify_ssa only when the extra argument is true.
33695         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
33696         with an extra argument.
33697         (tree_transform_and_unroll_loop): Same.
33698
33699 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33700
33701         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
33702         for all the passes of the LNO having LOOP_CLOSED_SSA.
33703         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
33704         * tree-loop-distribution.c (pass_loop_distribution): Same.
33705         * tree-pass.h (TODO_verify_loops): Removed.
33706         * tree-ssa-loop.c (pass_tree_loop_init): Same.
33707         (pass_lim): Same.
33708         (pass_tree_unswitch): Same.
33709         (pass_predcom): Same.
33710         (pass_vectorize): Same.
33711         (pass_linear_transform): Same.
33712         (pass_graphite_transforms): Same.
33713         (pass_iv_canon): Same.
33714         (pass_complete_unroll): Same.
33715         (pass_complete_unrolli): Same.
33716         (pass_parallelize_loops): Same.
33717         (pass_loop_prefetch): Same.
33718         (pass_iv_optimize): Same.
33719
33720 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
33721
33722         PR middle-end/32824
33723         * passes.c (init_optimization_passes): Move pass_lim before
33724         pass_copy_prop and pass_dce_loop.
33725
33726 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33727
33728         PR target/43667
33729         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
33730         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
33731         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
33732         MULTI_* defines for 4 argument vpermil2p* builtins.
33733
33734 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33735
33736         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
33737         * config/i386/i386.c (x86_maybe_negate_const_int): New.
33738         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
33739         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
33740         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
33741         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
33742         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
33743         Use x86_maybe_negate_const_int to output insn mnemonic.
33744         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
33745         check from instruction predicate.  Update comments.
33746         * config/i386/sync.md (sync_add<mode>): Use
33747         x86_maybe_negate_const_int to output insn mnemonic.
33748
33749 2010-04-06  Jan Hubicka  <jh@suse.cz>
33750
33751         PR tree-optimization/42906
33752         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
33753         IGNORE_SELF argument.  Set visited_control_parents for fully
33754         processed BBs.
33755         (find_obviously_necessary_stmts): Update call of
33756         mark_control_dependent_edges_necessary.
33757         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
33758
33759 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33760
33761         * config/i386/i386.md: Remove comment about 'e' and 'E'
33762         operand modifier.
33763
33764 2010-04-06  Richard Guenther  <rguenther@suse.de>
33765
33766         PR tree-optimization/43627
33767         * tree-vrp.c (extract_range_from_unary_expr): Widenings
33768         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
33769         not varying.
33770
33771 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33772
33773         * BASE-VER: Change to 4.6.0.
33774
33775         PR target/43638
33776         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
33777         handling.
33778
33779 2010-04-06  Richard Guenther  <rguenther@suse.de>
33780
33781         PR middle-end/43661
33782         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
33783
33784 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33785
33786         * doc/invoke.texi (Optimize Options): Document that LTO
33787         won't remove object access purely due to incompatible
33788         declarations.
33789
33790 2010-04-04  Matthias Klose  <doko@ubuntu.com>
33791
33792         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
33793         Initialize variable.
33794
33795 2010-04-03  Richard Guenther  <rguenther@suse.de>
33796
33797         PR middle-end/42509
33798         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
33799         require a non-NULL MEM_OFFSET.
33800
33801 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
33802
33803         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
33804         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
33805         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
33806         config/alpha/predicates.md, config/arm/arm.md,
33807         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
33808         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
33809         config/darwin9.h, config/darwin.c, config/darwin.h,
33810         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
33811         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
33812         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
33813         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
33814         config/mips/mips.md, config/mn10300/mn10300.c,
33815         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
33816         config/rs6000/aix.h, config/rs6000/dfp.md,
33817         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
33818         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
33819         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
33820         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
33821         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
33822         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
33823         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
33824         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
33825         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
33826         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
33827         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
33828         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
33829         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
33830         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
33831         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
33832         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
33833         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
33834         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
33835         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
33836         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
33837         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
33838         opt-functions.awk, opth-gen.awk, params.def, passes.c,
33839         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
33840         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
33841         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
33842         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
33843         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
33844         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
33845         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
33846         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
33847         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
33848         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
33849         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
33850         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
33851         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
33852         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
33853
33854 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33855
33856         PR other/43620
33857         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
33858         * aclocal.m4: Regenerate.
33859
33860 2010-04-02  Richard Guenther  <rguenther@suse.de>
33861
33862         PR tree-optimization/43629
33863         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
33864         if we have seen a constant value.
33865
33866 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
33867
33868         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
33869
33870 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
33871
33872         PR target/43469
33873         * arm.c (legitimize_tls_address): Adjust call to
33874         gen_tls_load_dot_plus_four.
33875         (arm_note_pic_base): New function.
33876         (arm_cannot_copy_insn_p): Use it.
33877         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
33878         constraint.
33879
33880 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33881
33882         PR bootstrap/43531
33883
33884         Revert:
33885         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33886
33887         * Makefile.in ($(out_object_file)): Depend on
33888         gt-$(basename $(notdir $(out_file))).h.
33889
33890 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
33891
33892         * config.gcc (lm32-*-rtems*): Add t-lm32.
33893
33894 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
33895
33896         * config.gcc: Add lm32-*-rtems*.
33897         * config/lm32/rtems.h: New file.
33898
33899 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
33900
33901         PR target/42609
33902         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
33903
33904 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
33905
33906         * dwarf2out.c (output_compilation_unit_header): For
33907         -gdwarf-4 use version 4 instead of version 3.
33908         (output_line_info): For version 4 and above emit additional
33909         maximum ops per insn header field.
33910         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
33911
33912         * dwarf2out.c (is_c_family, is_java): Remove.
33913         (lower_bound_default): New function.
33914         (add_bound_info, gen_descr_array_type_die): Use it.
33915
33916 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
33917
33918         PR debug/43325
33919         * dwarf2out.c (gen_variable_die): Allow debug info for variable
33920         re-declaration when it happens in a function.
33921
33922 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
33923
33924         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
33925         (cgraph_remove_function_insertion_hook): Same.
33926         (cgraph_call_function_insertion_hooks): Same.
33927
33928 2010-04-01  Richard Guenther  <rguenther@suse.de>
33929
33930         PR middle-end/43614
33931         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
33932         and TREE_THIS_VOLATILE.
33933         (copy_ref_info): Likewise.
33934         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
33935         * tree.c (build6_stat): Ignore side-effects of all but arg5
33936         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
33937         TARGET_MEM_REF.
33938
33939 2010-04-01  Richard Guenther  <rguenther@suse.de>
33940
33941         PR tree-optimization/43607
33942         * ipa-type-escape.c (check_call): Do not access non-existing
33943         arguments.
33944
33945 2010-04-01  Richard Guenther  <rguenther@suse.de>
33946
33947         PR middle-end/43602
33948         Revert
33949         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
33950                     Jack Howarth  <howarth@bromo.med.uc.edu>
33951
33952         * tree-profile.c (tree_init_ic_make_global_vars): Make static
33953         variables TLS.
33954
33955 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33956
33957         * doc/install.texi (Prerequisites): Document libelf usability on
33958         IRIX 5/6 and Solaris 2.
33959         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
33960         Update GNU as, GNU ld requirements.
33961         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
33962         Document Sun Studio compiler download.
33963         Update and simplify as, ld recommendations.
33964         (Specific, *-*-solaris2.7): Note obsoletion, removal.
33965
33966 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33967
33968         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
33969         with_tune_32 to pentium4.
33970
33971 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
33972
33973         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
33974
33975 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33976
33977         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
33978         obsoletion, removal.
33979         Update IDO URL.
33980         Document GNU as requirement.
33981         Update configure requirements.
33982         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
33983         Recomment IRIX 6.5.18+.
33984         Document IDF/IDL requirement.
33985         Document GNU as requirement.
33986         Document GNU ld bootstrap failure.
33987         Remove freeware.sgi.com reference.
33988
33989 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33990
33991         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
33992         UNIX V4.0, V5.0 obsoletion, removal.
33993         Remove --with-gc=simple reference.
33994         Update VM requirements during bootstrap.
33995         Remove -oldas bootstrap description.
33996         Update binutils reference.
33997         Remove comparison failure note.
33998
33999 2010-03-31  Richard Guenther  <rguenther@suse.de>
34000             Zdenek Dvorak  <ook@ucw.cz>
34001             Sebastian Pop  <sebastian.pop@amd.com>
34002
34003         PR middle-end/43464
34004         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34005         with multiple arguments.
34006         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34007
34008 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34009
34010         * graphite-dependences.c (print_pddr): Call print_pdr with an
34011         extra argument.
34012         * graphite-poly.c (debug_pdr): Add an extra argument for the
34013         verbosity level.
34014         (print_pdr): Same.
34015         (print_pbb_domain): Same.
34016         (print_pbb): Same.
34017         (print_scop_context): Same.
34018         (print_scop): Same.
34019         (print_cloog): Same.
34020         (debug_pbb_domain): Same.
34021         (debug_pbb): Same.
34022         (print_pdrs): Same.
34023         (debug_pdrs): Same.
34024         (debug_scop_context): Same.
34025         (debug_scop): Same.
34026         (debug_cloog): Same.
34027         (print_scop_params): Same.
34028         (debug_scop_params): Same.
34029         (print_iteration_domain): Same.
34030         (print_iteration_domains): Same.
34031         (debug_iteration_domain): Same.
34032         (debug_iteration_domains): Same.
34033         (print_scattering_function): Same.
34034         (print_scattering_functions): Same.
34035         (debug_scattering_function): Same.
34036         (debug_scattering_functions): Same.
34037         * graphite-poly.h (debug_pdr): Update declaration.
34038         (print_pdr): Same.
34039         (print_pbb_domain): Same.
34040         (print_pbb): Same.
34041         (print_scop_context): Same.
34042         (print_scop): Same.
34043         (print_cloog): Same.
34044         (debug_pbb_domain): Same.
34045         (debug_pbb): Same.
34046         (print_pdrs): Same.
34047         (debug_pdrs): Same.
34048         (debug_scop_context): Same.
34049         (debug_scop): Same.
34050         (debug_cloog): Same.
34051         (print_scop_params): Same.
34052         (debug_scop_params): Same.
34053         (print_iteration_domain): Same.
34054         (print_iteration_domains): Same.
34055         (debug_iteration_domain): Same.
34056         (debug_iteration_domains): Same.
34057         (print_scattering_function): Same.
34058         (print_scattering_functions): Same.
34059         (debug_scattering_function): Same.
34060         (debug_scattering_functions): Same.
34061
34062 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34063
34064         * graphite-poly.c (print_scattering_function_1): New.
34065         (print_scattering_function): Call it.
34066         (print_scop_params): Remove spaces at the end of lines.
34067         (print_cloog): New.
34068         (debug_cloog): New.
34069         * graphite-poly.h (print_cloog): Declared.
34070         (debug_cloog): Declared.
34071
34072 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34073
34074         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34075         in loop->header.
34076         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34077         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34078         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34079         to switch between adding the IV bump in loop->latch or in loop->header.
34080
34081 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34082
34083         * graphite-poly.c (print_scattering_function): Pretty print following
34084         the scoplib format.
34085         (print_pdr): Same.
34086         (print_pbb_domain): Same.
34087         (dump_gbb_cases): Same.
34088         (dump_gbb_conditions): Same.
34089         (print_pdrs): Same.
34090         (print_pbb): Same.
34091         (print_scop_params): Same.
34092         (print_scop_context): Same.
34093         (print_scop): Same.
34094         (print_pbb_body): New.
34095         (lst_indent_to): New.
34096         (print_lst): Start new lines with a #.
34097         * graphite-poly.h (pbb_bb): New.
34098         (pbb_index): Use pbb_bb.
34099         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
34100         disjuncts.
34101         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
34102
34103 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34104
34105         * dwarf2out.c (size_of_die): For -gdwarf-4 use
34106         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
34107         and 0 instead of 1 for dw_val_class_flag.
34108         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
34109         dw_val_class_range_list, dw_val_class_loc_list,
34110         dw_val_class_lineptr and dw_val_class_macptr, use
34111         DW_FORM_flag_present for dw_val_class_flag and
34112         DW_FORM_exprloc for dw_val_class_loc.
34113         (output_die): For -gdwarf-4 print dw_val_class_loc
34114         size as uleb128 instead of 1 or 2 bytes and don't print
34115         anything for dw_val_class_flag.
34116
34117         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
34118         instead of cselib_lookup following by tweaking locs->setting_insn.
34119
34120         PR bootstrap/43596
34121         * cselib.c (cselib_process_insn): Clear cselib_current_insn
34122         even before returning from label, setjmp call or volatile asm
34123         handling.
34124
34125 2010-03-31  Richard Guenther  <rguenther@suse.de>
34126
34127         PR middle-end/43600
34128         * cgraphunit.c (cgraph_output_in_order): Do not allocate
34129         temporary data on stack.
34130
34131 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34132
34133         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
34134         (PUSHSECTION_ASM_OP): Remove.
34135         (POPSECTION_ASM_OP): Remove.
34136         (PUSHSECTION_FORMAT): Remove.
34137         * config/sol2.h (PUSHSECTION_FORMAT): Define.
34138         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
34139         * config/sol2.c (solaris_output_init_fini): Use it.
34140
34141 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34142
34143         PR 43574
34144         * opt-functions.awk (var_type_struct): Use signed char type
34145         for simple variables.
34146
34147 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34148
34149         * config/sol2.c: Include output.h.
34150         (solaris_assemble_visibility): New function.
34151         * config/t-sol2 (sol2.o): Add output.h dependency.
34152         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
34153         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
34154         Redefine.
34155
34156 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34157
34158         PR target/43580
34159         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
34160         V2SImode or XFmode on PRE_DEC.
34161
34162         PR debug/43557
34163         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
34164         BLKmode.
34165
34166 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34167
34168         PR 43562
34169         * reload.h (caller_save_initialized_p): Declare.
34170         * toplev.c (backend_init_target): Don't call
34171         init_caller_save but set caller_save_initialized_p to false.
34172         * caller-save.c (caller_save_initialized_p): Define.
34173         (init_caller_save): Check caller_save_initialized_p.
34174         * ira.c (ira): Call init_caller_save if flag_caller_saves.
34175
34176 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34177
34178         PR target/39048
34179         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
34180         and soft-fp/t-softfp to tmake_file.
34181         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
34182         (LIBGCC2_TF_CEXT): Define.
34183         (TF_SIZE): Define.
34184
34185 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
34186
34187         PR debug/42977
34188         * cselib.c (n_useless_values): Document handling of debug locs.
34189         (n_useless_debug_values, n_debug_values): New variables.
34190         (new_elt_loc_list): Don't add to debug values, keep count.
34191         (promote_debug_loc): New.
34192         (cselib_reset_table): Zero new variables.
34193         (entry_and_rtx_equal_p): Promote debug locs.
34194         (discard_useless_locs): Increment n_useless_debug_values for
34195         debug values.
34196         (remove_useless_values): Adjust n_useless_values and n_debug_values
34197         with n_useless_debug_values.
34198         (add_mem_for_addr): Promote debug locs.
34199         (cselib_lookup_mem): Likewise.
34200         (cselib_lookup_addr): Renamed to...
34201         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
34202         (cselib_log_lookup): ... this.  Turn into...
34203         (cselib_lookup_addr): ... new wrapper.
34204         (cselib_lookup_from_insn): New.
34205         (cselib_invalidate_regno): Increment n_useless_debug_values for
34206         debug values.
34207         (cselib_invalidate_mem): Likewise.
34208         (cselib_process_insn): Take n_deleted and n_debug_values into
34209         account to guard remove_useless_value call.
34210         (cselib_finish): Zero n_useless_debug_values.
34211         * cselib.h (cselib_lookup_from_insn): Declare.
34212         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
34213         (sched_analyze_2): Likewise.
34214
34215 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
34216
34217         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
34218         functions.
34219         (adjust_mems): Replace narrowing SUBREG of expression containing
34220         just PLUS, MINUS, MULT and ASHIFT of registers and constants
34221         with operations in the narrower mode.
34222
34223         PR debug/43593
34224         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
34225         regs_invalidated_by_call instead all call_used_reg_set registers.
34226
34227 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
34228
34229         PR middle-end/43430
34230         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
34231         pointer comparisons with types_compatible_p.
34232         * tree-vect-stmts.c (vectorizable_call): Same.
34233         (vectorizable_condition): Same.
34234
34235 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34236
34237         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
34238         stack check if the mask would be zero.
34239
34240 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34241             Jack Howarth  <howarth@bromo.med.uc.edu>
34242
34243         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34244         variables TLS.
34245
34246 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
34247
34248         PR other/25232
34249         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
34250         and __unordtf2.
34251         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
34252         Include ___unordxf2 and ___unordtf2.
34253         * config/i386/libgcc-glibc.ver: Do not define inheritance from
34254         GCC_4.4.0 here.
34255
34256 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
34257
34258         * config/lm32/t-lm32: New file.
34259         * config.gcc: Use the above file when targetting lm32.
34260
34261 2010-03-28  Duncan Sands  <baldrick@free.fr>
34262
34263         * Makefile.in (PLUGIN_HEADERS): Add except.h.
34264
34265 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34266
34267         PR middle-end/43431
34268         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
34269         Improve vectorization cost model diagnostic.
34270
34271 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34272
34273         PR middle-end/43436
34274         * tree-vect-data-refs.c (vect_analyze_data_refs): When
34275         compute_data_dependences_for_loop returns false, early exit
34276         and output an extra diagnostic for the failed data reference
34277         analysis.
34278
34279 2010-03-29  Richard Guenther  <rguenther@suse.de>
34280
34281         PR tree-optimization/43560
34282         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
34283         (can_sm_ref_p): Treat stores to readonly locations as trapping.
34284
34285 2010-03-29  Jie Zhang  <jie@codesourcery.com>
34286
34287         PR 43564
34288         * toplev.c (process_options): Set optimization_default_node
34289         and optimization_current_node.
34290         * opts.c (decode_options): Don't set optimization_default_node
34291         and optimization_current_node.
34292
34293 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
34294
34295         * config/rtems.h: Abandon -qrtems_debug.
34296
34297 2010-03-28  Jan Hubicka  <jh@suse.cz>
34298
34299         PR tree-optimization/43505
34300         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
34301         map should not be copied.
34302
34303 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34304
34305         PR middle-end/41674
34306         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
34307         cdtors, set DECL_PRESERVE_P.
34308         * ipa.c (cgraph_externally_visible_p): Return true if declaration
34309         should be preseved.
34310
34311 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
34312
34313         PR tree-optimization/43528
34314         * stor-layout.c (place_field): Check that constant fits into
34315         unsigned HWI when skipping calculation of MS bitfield layout.
34316
34317 2010-03-27  Jan Hubicka  <jh@suse.cz>
34318
34319         PR middle-end/43391
34320         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
34321         notice_global_symbol work.
34322
34323 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
34324
34325         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
34326         instead of dwarf2out_decl.
34327         (struct var_loc_node): Remove section_label field.
34328         (dwarf2out_function_decl): New function.
34329         (dwarf2out_var_location): Don't set section_label field.
34330         (dwarf2out_begin_function): Don't empty decl_loc_table here.
34331
34332 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
34333
34334         PR tree-optimization/43544
34335         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34336         First argument for builtin vectorized function hook is now a
34337         tree to be able to distinguish between machine specific and
34338         standard builtins.
34339         * targhooks.c (default_builtin_vectorized_function): Ditto.
34340         * targhooks.h (default_builtin_vectorized_function): Ditto.
34341         * target.h (struct gcc_target): Ditto.
34342         * tree-vect-stmts.c (vectorizable_function): Ditto.
34343         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
34344         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
34345         Ditto.
34346
34347 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
34348
34349         PR c/43381
34350         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
34351         nested binding iff it is a FUNCTION_DECL.
34352         (store_parm_decls_newstyle): Pass nested=true to bind for
34353         FUNCTION_DECLs amongst parameters.
34354
34355 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34356
34357         * var-tracking.c (vt_expand_loc_callback): Don't run
34358         cselib_expand_value_rtx_cb in dummy mode if
34359         cselib_dummy_expand_value_rtx_cb returned false.
34360
34361         * var-tracking.c (emit_note_insn_var_location): For one part
34362         notes with offset 0, don't add EXPR_LIST around the location.
34363         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
34364         add_location_or_const_value_attribute): Adjust for that change.
34365
34366         PR debug/43540
34367         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
34368         into first operand and location into second.
34369         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
34370         dw_cfi_oprnd_loc for DW_CFA_expression.
34371         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
34372         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
34373         assume first argument is regnum and second argument is location.
34374
34375 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34376
34377         PR target/42113
34378         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
34379         of scratch register to DImode.  Split to DImode comparison operator.
34380         Use SImode subreg of scratch register in the multiplication.
34381         (*cmp_sadd_sidi): Ditto.
34382         (*cmp_ssub_si): Ditto.
34383         (*cmp_ssub_sidi): Ditto.
34384
34385 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34386
34387         PR target/43524
34388         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
34389         Remove invalid assert and wrong comment.
34390
34391 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34392
34393         PR debug/43516
34394         * flags.h (final_insns_dump_p): New extern.
34395         * final.c (final_insns_dump_p): New variable.
34396         (rest_of_clean_state): Set it before -fdump-final-insns=
34397         dumping, clear afterwards.
34398         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
34399         MEM_ALIAS_SET on MEMs.
34400
34401 2010-03-26  David S. Miller  <davem@davemloft.net>
34402
34403         * configure.ac: Fix sparc GOTDATA_OP bug check.
34404         * configure: Rebuild.
34405
34406 2010-03-26  Alan Modra  <amodra@gmail.com>
34407
34408         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
34409
34410 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34411
34412         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
34413         TLS_SECTION_ASM_FLAG.
34414
34415 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
34416
34417         PR bootstrap/43511
34418         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
34419         Clear first_function_block_is_cold.
34420
34421         PR c/43385
34422         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
34423         argument if the argument is truth_value_p.
34424
34425 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
34426
34427         * config/rs6000/constraints.md: Update copyright year for my changes.
34428
34429         PR target/43484
34430         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
34431         used in reg+reg addressing, swap registers.
34432
34433 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34434
34435         PR debug/43293
34436         * target.h (struct gcc_target): Add code_end hook.
34437         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
34438         if not yet defined.
34439         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
34440         * toplev.c (compile_file): Call targetm.asm_out.code_end
34441         hook before unwind info/debug info output.
34442         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
34443         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
34444         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34445         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
34446         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34447         * config/i386/i386.c (ix86_file_end): Renamed to...
34448         (ix86_code_end): ... this.  Make static.  Don't call
34449         file_end_indicate_exec_stack.  Emit unwind info using
34450         final_start_function/final_end_function.
34451         (darwin_x86_file_end): Remove.
34452         (TARGET_ASM_CODE_END): Define.
34453         * config/i386/i386.h (TARGET_ASM_FILE_END,
34454         NEED_INDICATE_EXEC_STACK): Don't define.
34455         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
34456         (TARGET_ASM_FILE_END): Define to darwin_file_end.
34457         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
34458         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
34459
34460         PR target/43498
34461         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
34462         at the beginning and final_end_function at the end.
34463         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
34464
34465 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34466
34467         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
34468         and Sun as TLS syntax.
34469         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
34470         * configure: Regenerate.
34471         * config.in: Regenerate.
34472         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
34473         (default_elf_asm_named_section): Use it.
34474         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
34475         (i386_output_dwarf_dtprel): Likewise.
34476         (output_addr_const_extra): Likewise.
34477         (output_pic_addr_const): Lowercase @GOTTPOFF.
34478         (output_addr_const_extra): Likewise.
34479         (output_pic_addr_const): Lowercase @GOTNTPOFF.
34480         (output_addr_const_extra): Likewise.
34481         (output_pic_addr_const): Lowercase @INDNTPOFF.
34482         (output_addr_const_extra): Likewise.
34483         (output_pic_addr_const): Lowercase @NTPOFF.
34484         (output_addr_const_extra): Likewise.
34485         (output_pic_addr_const): Lowercase @TPOFF.
34486         (output_addr_const_extra): Likewise.
34487         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
34488         (*tls_global_dynamic_64): Likewise.
34489         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
34490         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
34491
34492         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
34493         (ASM_OUTPUT_TLS_COMMON): Use it.
34494         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
34495
34496         PR target/38118
34497         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
34498         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
34499         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
34500         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
34501         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34502         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
34503
34504 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34505
34506         * config/i386/i386.c (override_options): Don't accept
34507         -mtls-dialect=sun any longer.
34508         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
34509         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
34510         (*tls_local_dynamic_base_32_sun): Likewise.
34511         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34512
34513 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34514
34515         PR debug/43508
34516         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34517         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
34518
34519         PR debug/43479
34520         * ira.c (adjust_cleared_regs): New function.
34521         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
34522
34523         PR debug/19192
34524         PR debug/43479
34525         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
34526         from gimple_block.
34527         * expr.c (expand_expr_real): Restore previous
34528         curr_insn_source_location and curr_insn_block after
34529         expand_expr_real_1 call.
34530         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
34531         instead of expand_expr_real_1.
34532
34533 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
34534
34535         PR rtl-optimization/43413
34536         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
34537         hard regs too.
34538
34539 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
34540
34541         PR target/43348
34542         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
34543         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
34544
34545 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34546
34547         * config/i386/i386.c (ix86_target_string): Add -mfma.
34548         Fix a typo in comment.
34549
34550 2010-03-22  Mike Stump  <mikestump@comcast.net>
34551
34552         PR target/23071
34553         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
34554         Don't overly align based upon packed packed fields.
34555
34556 2010-03-22  Jason Merrill  <jason@redhat.com>
34557
34558         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
34559         Use () rather than [], and move before the element type.
34560
34561 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34562
34563         * doc/configfiles.texi (Configuration Files): Removed
34564         fixinc/Makefile*, intl/Makefile.*.
34565         * doc/makefile.texi: Fixed markup. Abstract from version
34566         control system used.
34567         (Makefile): Removed obsolete java/parse.y example.
34568         * doc/sourcebuild.texi: Likewise.
34569         (Top Level): Added config, gnattools, libdecnumber, libgcc,
34570         libgomp, libssp.  Removed fastjar.
34571         (Miscellaneous Docs): Clarify location.
34572         Added COPYING3, COPYING3.LIB.
34573         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
34574
34575 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34576
34577         PR target/38085
34578         * config/i386/i386.c (x86_function_profiler)
34579         [!NO_PROFILE_COUNTERS]: Fix typo.
34580         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
34581         instead of callq.
34582
34583 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
34584             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34585
34586         * doc/sourcebuild.texi (Test Directives): Split into six
34587         subsections, with most of the current text in new subsections
34588         Directives, Selectors, and Final Actions.
34589         (Directives): Split list of test directives into multiple
34590         subsubsections.
34591         (Selectors): Describe use and syntax of selectors.
34592         (Effective-Target Keywords): Describe all existing keywords.
34593         (Add Options): Describe features for dg-add-options.
34594         (Require Support): Describe variants of dg-require-support.
34595         (Final Actions): Describe commands to use in dg-final.
34596
34597 2010-03-22  Michael Matz  <matz@suse.de>
34598
34599         PR middle-end/43475
34600         * recog.c (validate_replace_rtx_group): Replace also in
34601         REG_EQUAL and REG_EQUIV notes.
34602
34603 2010-03-22  Richard Guenther  <rguenther@suse.de>
34604
34605         PR tree-optimization/43390
34606         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
34607         sure vector extracts are type correct.
34608
34609 2010-03-22  Richard Guenther  <rguenther@suse.de>
34610
34611         PR middle-end/40106
34612         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
34613         x * sqrt (x) even when optimizing for size if the target
34614         has native support for sqrt.
34615
34616 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
34617
34618         * varasm.c (make_decl_rtl_for_debug): Also clear
34619         flag_mudflap for the duration of make_decl_rtl call.
34620
34621         PR debug/43443
34622         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
34623         locs from preserved VALUEs.
34624
34625 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34626
34627         PR middle-end/42718
34628         * pa.md (movmemsi): Set align to one if zero.
34629         (movmemdi): Likewise.
34630
34631 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
34632
34633         PR target/42321
34634         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
34635         with their corresponding prologue pushes.
34636
34637 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
34638
34639         PR target/43156
34640         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
34641         at the begining or end.
34642         (spu_expand_epilogue): Likewise.
34643
34644 2010-03-20  Richard Guenther  <rguenther@suse.de>
34645
34646         PR rtl-optimization/43438
34647         * combine.c (make_extraction): Properly zero-/sign-extend an
34648         extraction of the low part of a CONST_INT.  Also handle
34649         CONST_DOUBLE.
34650
34651 2010-03-19  Mike Stump  <mikestump@comcast.net>
34652
34653         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
34654         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
34655         (override_options): Use SUBTARGET32_DEFAULT_CPU.
34656
34657 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
34658
34659         PR c/43211
34660         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
34661         an error.
34662
34663 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
34664
34665         PR rtl-optimization/42258
34666         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
34667         use that may match DEF.
34668
34669         PR target/40697
34670         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
34671         the cost of loading the constant rather than assuming
34672         COSTS_N_INSNS (1).
34673         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
34674         outer code is AND, do the same tests as the andsi3 expander and
34675         return COSTS_N_INSNS (1) if and is cheap.
34676
34677         * optabs.c (avoid_expensive_constant): Fix formatting.
34678
34679 2010-03-19  Michael Matz  <matz@suse.de>
34680
34681         PR c++/43116
34682         * attribs.c (decl_attributes): When rebuilding a function pointer
34683         type use the same qualifiers as the original pointer type.
34684
34685 2010-03-19  Martin Jambor  <mjambor@suse.cz>
34686
34687         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
34688         and is_gimple_ip_invariant_address.
34689
34690 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34691
34692         Revert
34693         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34694
34695         * config/arm/arm.c (arm_override_options): Turn off
34696         flag_dwarf2_cfi_asm for AAPCS variants.
34697
34698 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34699
34700         PR target/43399
34701         * config/arm/arm.c (emit_multi_reg_push): Update comments.
34702         Use PRE_MODIFY instead of PRE_DEC.
34703         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
34704         (vfp_emit_fstmd): Likewise.
34705
34706 2010-03-19  Michael Matz  <matz@suse.de>
34707
34708         PR target/43305
34709         * builtins.c (expand_builtin_interclass_mathfn,
34710         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
34711         if that fails.
34712
34713 2010-03-19  Richard Guenther  <rguenther@suse.de>
34714
34715         PR tree-optimization/43415
34716         * tree-ssa-pre.c (phi_translate): Split out worker to ...
34717         (phi_translate_1): ... this.
34718         (phi_translate): Move all caching here.  Cache all NARY
34719         and REFERENCE translations.
34720
34721 2010-03-19  David S. Miller  <davem@davemloft.net>
34722
34723         With help from Eric Botcazou.
34724         * config/sparc/sparc.c: Include dwarf2out.h.
34725         (emit_pic_helper): Delete.
34726         (pic_helper_symbol_name): Delete.
34727         (pic_helper_emitted_p): Delete.
34728         (pic_helper_needed): New.
34729         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
34730         (get_pc_thunk_name): New.
34731         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
34732         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
34733         Set pic_helper_needed to true.  Don't call emit_pic_helper.
34734         (sparc_expand_prologue): Update load_pic_register call.
34735         (sparc_output_mi_thunk): Likewise.
34736         (sparc_file_end): Emit a hidden comdat symbol for the PIC
34737         thunk if possible.  Output CFI information as needed.
34738
34739 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34740             Jack Howarth  <howarth@bromo.med.uc.edu>
34741
34742         PR target/36399
34743         * config/i386/i386.h: Fix ABI on darwin x86-32.
34744
34745 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
34746
34747         * tree.h: Declare make_decl_rtl_for_debug.
34748         * varasm.c (make_decl_rtl_for_debug): New.
34749         * dwarf2out.c (rtl_for_decl_location): Call it.
34750         * cfgexpand.c (expand_debug_expr): Call it.
34751
34752 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34753
34754         PR bootstrap/43399
34755         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
34756         mem_mode.
34757
34758         PR bootstrap/43403
34759         * var-tracking.c (vt_init_cfa_base): Do nothing if
34760         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
34761
34762 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
34763
34764         PR debug/42873
34765         * var-tracking.c (canonicalize_vars_star): New.
34766         (dataflow_post_merge_adjust): Use it.
34767
34768 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34769
34770         PR debug/43058
34771         * var-tracking.c (non_suitable_const): New function.
34772         (add_uses): For DEBUG_INSNs with constants, don't record any
34773         value, instead just the constant value itself.
34774         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
34775         is not VAR_LOC_UNKNOWN_P, set var to the constant.
34776         (emit_notes_in_bb): Likewise.
34777         (emit_note_insn_var_location): For onepart variables if
34778         cur_loc is a VOIDmode constant, use DECL_MODE.
34779
34780 2010-03-18  Martin Jambor  <mjambor@suse.cz>
34781
34782         PR middle-end/42450
34783         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
34784         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
34785         all non-clones.  Moved call redirection...
34786         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
34787         (cgraph_materialize_all_clones): Dispose of all
34788         combined_args_to_skip bitmaps.
34789         (verify_cgraph_node): Do not check for edges pointing to wrong
34790         nodes in inline clones.
34791         * tree-inline.c (copy_bb): Call
34792         cgraph_redirect_edge_call_stmt_to_callee.
34793         * ipa.c (cgraph_remove_unreachable_nodes): Call
34794         cgraph_node_remove_callees even when there are used clones.
34795
34796 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34797
34798         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
34799
34800 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34801
34802         PR target/43383
34803         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
34804         for 32bit.
34805
34806 2010-03-18  Michael Matz  <matz@suse.de>
34807
34808         PR middle-end/43419
34809         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
34810         into sqrt(x) if we need to preserve signed zeros.
34811
34812 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
34813             Eric Botcazou  <ebotcazou@adacore.com>
34814
34815         PR rtl-optimization/43360
34816         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
34817         note if we don't know its invariant status.
34818
34819 2010-03-18  Michael Matz  <matz@suse.de>
34820
34821         PR tree-optimization/43402
34822         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
34823         PHI chains of ssa names registered for update.
34824
34825 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
34826
34827         PR target/42427
34828         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
34829         non-offsettable and pre_modify update addressing.
34830         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
34831         and "2" alternatives "#".
34832         (*movdd_softfloat32): Make all alternatives "#";
34833         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
34834         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
34835         (*movdf_softfloat32): Make all alternatives "#";
34836         (movdi): Use the new DIFD mode iterator to create a common splitter
34837         for movdi, movdf and movdd patterns.
34838
34839 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
34840
34841         * common.opt (dumpdir): Remove redundant tab.
34842
34843 2010-03-17  Martin Jambor  <mjambor@suse.cz>
34844
34845         PR tree-optimization/43347
34846         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
34847         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
34848
34849 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
34850
34851         PR rtl-optimization/42216
34852         * regrename.c (create_new_chain): New function, broken out from...
34853         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
34854         appending a use to an empty chain.
34855         (build_def_use): Remove previous changes that convert OP_INOUT to
34856         OP_OUT operands; instead detect the case where an OP_INOUT operand
34857         uses a previously untracked register and create an empty chain for it.
34858
34859 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34860
34861         * doc/extend.texi (Function Attributes): Rewrite unfinished
34862         sentence in ms_abi documentation.
34863
34864 2010-03-17  Alan Modra  <amodra@gmail.com>
34865
34866         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
34867         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
34868         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
34869         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
34870
34871 2010-03-16  Richard Henderson  <rth@redhat.com>
34872
34873         PR middle-end/43365
34874         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
34875         (lower_try_finally): Save and restore eh_seq around the expansion
34876         of the try-finally.
34877
34878 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34879
34880         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
34881         statements before splitting block.
34882
34883 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34884
34885         * doc/sourcebuild.texi (Testsuites): Fix markup.
34886         Use pathnames relative to gcc/testsuite.
34887         (Test Directives): Move description of how timeout is determined.
34888         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
34889         (C Tests): Correct gcc.misc-tests directory.
34890         Framework tests now live in gcc.test-framework.
34891
34892 2010-03-16  Richard Guenther  <rguenther@suse.de>
34893
34894         PR middle-end/43379
34895         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
34896         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
34897
34898 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34899             Alexandre Oliva  <aoliva@redhat.com>
34900
34901         PR tree-optimization/42917
34902         * lambda-code.c (remove_iv): Skip debug statements.
34903         (lambda_loopnest_to_gcc_loopnest): Likewise.
34904         (not_interesting_stmt): Debug statements are not interesting.
34905
34906 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
34907
34908         PR debug/43051
34909         PR debug/43092
34910         * cselib.c (cselib_preserve_constants,
34911         cfa_base_preserved_val): New static variables.
34912         (preserve_only_constants): New function.
34913         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
34914         clear its REG_VALUES.  If cselib_preserve_constants, don't
34915         empty the whole hash table, but preserve there VALUEs with constants,
34916         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
34917         (cselib_preserve_cfa_base_value): New function.
34918         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
34919         (cselib_init): Change argument to int bitfield.  Set
34920         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
34921         is in it.
34922         (cselib_finish): Clear cselib_preserve_constants and
34923         cfa_base_preserved_val.
34924         * cselib.h (enum cselib_record_what): New enum.
34925         (cselib_init): Change argument to int.
34926         (cselib_preserve_cfa_base_value): New prototype.
34927         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
34928         * dse.c (dse_step1): Likewise.
34929         * cfgcleanup.c (thread_jump): Likewise.
34930         * sched-deps.c (sched_analyze): Likewise.
34931         * gcse.c (local_cprop_pass): Likewise.
34932         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
34933         If FN is non-NULL, call the callback always and whenever it returns
34934         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
34935         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
34936         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
34937         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
34938         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
34939         * var-tracking.c: Include recog.h.
34940         (bb_stack_adjust_offset): Remove.
34941         (vt_stack_adjustments): Don't call it, instead just gather the
34942         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
34943         (adjust_stack_reference): Remove.
34944         (compute_cfa_pointer): New function.
34945         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
34946         (struct adjust_mem_data): New type.
34947         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
34948         functions.
34949         (get_address_mode): New function.
34950         (replace_expr_with_values): Use it.
34951         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
34952         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
34953         (adjust_sets): Remove.
34954         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
34955         Use get_address_mode.
34956         (get_adjusted_src): Remove.
34957         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
34958         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
34959         (add_with_sets): Don't call adjust_sets.
34960         (fp_setter, vt_init_cfa_base): New functions.
34961         (vt_initialize): Change return type to bool.  Move most of pool etc.
34962         initialization to the beginning of the function from end.  Pass
34963         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
34964         If !frame_pointer_needed, call vt_stack_adjustment before mos
34965         vector is filled, call vt_init_cfa_base if argp/framep has been
34966         eliminated to sp.  If frame_pointer_needed and argp/framep has
34967         been eliminated to hard frame pointer, set
34968         hard_frame_pointer_adjustment and call vt_init_cfa_base after
34969         encountering fp setter in the prologue.  For MO_ADJUST, call
34970         log_op_type before pusing the op into mos vector, not afterwards.
34971         Call adjust_insn before cselib_process_insn/add_with_sets,
34972         call cancel_changes (0) afterwards.
34973         (variable_tracking_main_1): Adjust for vt_initialize calling
34974         vt_stack_adjustments and returning whether it succeeded or not.
34975
34976 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
34977
34978         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
34979         debug statements.
34980
34981 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
34982
34983         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
34984         has been set.
34985         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
34986         drap_reg has not been set.
34987
34988 2010-03-15  Michael Matz  <matz@suse.de>
34989
34990         PR middle-end/43300
34991         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
34992         use it to expand block copies.
34993         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
34994         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
34995         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
34996
34997 2010-03-15  Richard Guenther  <rguenther@suse.de>
34998
34999         PR tree-optimization/43367
35000         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35001         elimination check.
35002
35003 2010-03-15  Richard Guenther  <rguenther@suse.de>
35004
35005         PR tree-optimization/43317
35006         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35007
35008 2010-03-15  Martin Jambor  <mjambor@suse.cz>
35009
35010         PR tree-optimization/43141
35011         * tree-sra.c (create_abstract_origin): New function.
35012         (modify_function): Call create_abstract_origin.
35013
35014 2010-03-15  Chris Demetriou  <cgd@google.com>
35015
35016         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35017         wasn't copied.
35018
35019 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35020
35021         PR middle-end/43354
35022         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35023         call insert_out_of_ssa_copy for default definitions.
35024
35025 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35026
35027         * graphite-clast-to-gimple.c (my_long_long): Defined.
35028         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35029         * graphite-sese-to-poly.c (my_long_long): Defined.
35030         (scop_ivs_can_be_represented): Use it.
35031
35032 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35033
35034         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35035         graphite-max-bbs-per-function, and loop-block-tile-size.
35036         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35037         with "maximum".
35038         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35039
35040 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35041
35042         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35043         forward declaration.
35044         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35045         (add_upper_bounds_from_estimated_nit): New.
35046         (build_loop_iteration_domains): Use it.
35047
35048 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35049
35050         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35051
35052 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35053
35054         PR middle-end/43306
35055         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35056         should be an INTEGER_CST.  Also handle CASE_CONVERT.
35057
35058 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35059
35060         * graphite.c (graphite_initialize): To bound the number of bbs per
35061         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35062         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35063         * doc/invoke.texi: Document it.
35064
35065 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35066
35067         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35068         * graphite-sese-to-poly.h (build_poly_scop): Same.
35069
35070 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35071
35072         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35073         the number of parameters in the scop.  Use as an upper bound
35074         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35075         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35076         * doc/invoke.texi: Document it.
35077
35078 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
35079
35080         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35081         * doc/c-tree.texi: Remove.
35082         * doc/generic.texi: Merge c-tree.texi here.
35083         * doc/gccint.texi (Trees): Remove menu entry.
35084         (c-tree.texi): Remove @include.
35085         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35086         * doc/languages.texi (Reading RTL): Ditto.
35087
35088 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
35089
35090         PR target/42869
35091         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
35092
35093 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
35094
35095         PR middle-end/42431
35096         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
35097         code added to work around reload clobbering CONST insns.
35098
35099 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
35100
35101         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
35102         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
35103         (cselib_preserve_only_values): Remove retain argument, don't
35104         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
35105         * cselib.h (cselib_preserve_only_values): Remove retain argument.
35106         * var-tracking.c (micro_operation): Move insn field before union.
35107         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
35108         (struct variable_tracking_info_def): Remove n_mos field, change
35109         mos into a vector of micro_operations.
35110         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
35111         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
35112         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
35113         changing into a vector.
35114         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
35115         come before all other uops generated by add_stores.
35116         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
35117         argument removal.
35118         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
35119         a vector.  Run just one pass over the bbs instead of separate counting
35120         and computation phase.
35121         (vt_finalize): Free VTI (bb)->mos vector instead of array.
35122
35123         PR debug/43329
35124         * tree-inline.c (remap_decls): Put old_var rather than origin_var
35125         into *nonlocalized_list vector.
35126         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
35127         even if origin is non-NULL.
35128         (gen_variable_die): Likewise.
35129         (process_scope_var): Don't change origin.
35130         (gen_decl_die): Likewise.
35131         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
35132         before adding new edges instead of after it, fix moving over
35133         debug stmts.
35134
35135 2010-03-11  David S. Miller  <davem@davemloft.net>
35136
35137         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
35138         of four.
35139         * configure: Rebuild.
35140
35141 2010-03-11  Martin Jambor  <mjambor@suse.cz>
35142
35143         PR tree-optimization/43257
35144         * tree.c (assign_assembler_name_if_neeeded): New function.
35145         (free_lang_data_in_cgraph): Assembler name assignment moved to the
35146         above new function.
35147         * tree.h (assign_assembler_name_if_neeeded): Declare.
35148         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
35149         the function if needed.
35150
35151 2010-03-11  Chris Demetriou  <cgd@google.com>
35152
35153         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
35154         include/stdint-gcc.h, and include/stdint.h world-readable.
35155
35156 2010-03-11  Richard Guenther  <rguenther@suse.de>
35157
35158         PR tree-optimization/43255
35159         * tree-vrp.c (process_assert_insertions_for): Do not insert
35160         asserts for trivial conditions.
35161
35162 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35163
35164         PR tree-optimization/43280
35165         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
35166         generation.  Move calculation of size out of the if branch.
35167         (find_bswap): Modify compare number generation.
35168
35169 2010-03-11  Richard Guenther  <rguenther@suse.de>
35170
35171         PR lto/43200
35172         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
35173         (input_gimple_stmt): Fixup handled component types during
35174         operand read.  Also fix up decls in ADDR_EXPRs.
35175
35176 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
35177
35178         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
35179         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
35180
35181 2010-03-10  Jan Hubicka  <jh@suse.cz>
35182
35183         PR c/43288
35184         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
35185         * varasm.c (get_variable_section): Don't do that here...
35186         (make_decl_rtl): ... and here.
35187         (do_assemble_alias): Produce decl RTL.
35188         (assemble_alias): Likewise.
35189
35190 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35191
35192         PR debug/43290
35193         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
35194         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
35195         of fde->vdrap_reg.
35196         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
35197         (based_loc_descr): Only express drap or vdrap regno based expressions
35198         using DW_OP_fbreg when not optimizing.
35199         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
35200         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
35201         REG_CFA_SET_VDRAP note.
35202
35203 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
35204
35205         PR tree-optimization/43236
35206         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
35207         error in calculation of base address in reverse iteration case.
35208         (generate_builtin): Take number of latch executions if the statement
35209         is in the latch.
35210
35211 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
35212
35213         PR middle-end/42859
35214         * tree-eh.c: Include pointer-set.h.
35215         (lower_eh_dispatch): Filter out duplicate case labels and
35216         remove the unneeded edge when the label is unused.  Return
35217         true when some edges are removed.
35218         (execute_lower_eh_dispatch): When any lowering resulted in
35219         removing an edge, also delete unreachable blocks.
35220
35221 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35222
35223         PR bootstrap/43287
35224         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35225         UNSPEC_MACHOPIC_OFFSET.
35226
35227 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
35228
35229         PR target/43294
35230         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
35231         (m68k_delegitimize_address): New function.
35232
35233 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
35234
35235         PR debug/43299
35236         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
35237
35238         PR debug/43299
35239         * var-tracking.c (adjust_sets): New function.
35240         (count_with_sets, add_with_sets): Use it.
35241         (get_adjusted_src): New inline function.
35242         (add_stores): Use it.
35243
35244         PR debug/43304
35245         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
35246         call cselib_dummy_expand_value_rtx_cb instead of
35247         cselib_expand_value_rtx_cb.
35248
35249         PR debug/43293
35250         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
35251         * config/i386/i386.c: Include debug.h and dwarf2out.h.
35252         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
35253         and .cfi_endproc around the pic thunks.
35254         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
35255         all queued unwind info register saves are saved before the call.
35256         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
35257         considered as sp-=4 for unwind info and the pop as sp+=4 which
35258         also clobbers dest, but doesn't actually restore it.
35259
35260         PR debug/43290
35261         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
35262         RTX_FRAME_RELATED_P.
35263
35264 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35265
35266         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
35267         whitespaces in output template.
35268
35269 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35270
35271         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
35272         out array boundary.
35273
35274 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35275
35276         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
35277         builtins.exp in a separate job.
35278
35279 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35280
35281         * graphite-sese-to-poly.c (add_param_constraints): Use
35282         lower_bound_in_type and upper_bound_in_type.
35283
35284 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35285
35286         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
35287         instead of unsigned_type_node.
35288
35289 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35290             Reza Yazdani  <reza.yazdani@amd.com>
35291
35292         PR middle-end/43065
35293         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
35294         on pointer type parameters.
35295
35296 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35297
35298         PR middle-end/42644
35299         PR middle-end/42130
35300         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
35301         handle conversions from pointer to integers.
35302         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
35303         induction variable, to be able to work with code generated by CLooG.
35304         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
35305         (build_poly_scop): Bail out if we cannot codegen a loop.
35306
35307 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35308
35309         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
35310         code generation with gloog_error.
35311
35312 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35313
35314         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
35315         Call fold_convert on all the returned values.
35316         (expand_scalar_variables_expr): Pass to
35317         expand_scalar_variables_ssa_name the type of the resulting expression.
35318
35319 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35320
35321         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
35322         ppl_min_for_le_pointset.
35323         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
35324         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
35325
35326 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35327
35328         * graphite-dependences.c (map_into_dep_poly): Removed.
35329         (dependence_polyhedron_1): Use combine_context_id_scat.
35330
35331 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35332
35333         * graphite-poly.h (struct poly_scattering): Add layout documentation.
35334         (struct poly_bb): Same.
35335         (combine_context_id_scat): New.
35336
35337 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35338
35339         PR middle-end/42326
35340         * sese.c (name_defined_in_loop_p): Return false for default
35341         definitions.
35342
35343 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35344
35345         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
35346         and clean up the logic.
35347
35348 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35349
35350         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
35351         early return.
35352
35353 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35354
35355         * var-tracking.c (remove_cselib_value_chains): Define only for
35356         ENABLE_CHECKING.
35357         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
35358         delete_slot_part, emit_notes_for_differences_1): Don't call
35359         remove_cselib_value_chains here.
35360         (set_slot_part, emit_notes_for_differences_2): Don't call
35361         add_cselib_value_chains here.
35362         (preserved_values): New vector.
35363         (preserve_value): New function.
35364         (add_uses, add_stores, vt_add_function_parameters): Use it
35365         instead of cselib_preserve_value.
35366         (changed_values_stack): New vector.
35367         (check_changed_vars_0): New function.
35368         (check_changed_vars_1, check_changed_vars_2): Use it.
35369         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
35370         changed_values_stack VALUEs.
35371         (vt_emit_notes): For all preserved_values call
35372         add_cselib_value_chains.  If ENABLE_CHECKING call
35373         remove_cselib_value_chains before verifying value_chains is empty.
35374         Initialize and free changed_values_stack.
35375         (vt_initialize): Initialize preserved_values.
35376         (vt_finalize): Free preserved_values.
35377
35378 2010-03-08  Richard Guenther  <rguenther@suse.de>
35379
35380         PR tree-optimization/43269
35381         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
35382         region detection.
35383
35384 2010-03-08  Martin Jambor  <mjambor@suse.cz>
35385
35386         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
35387         (ipa_is_param_called): Removed.
35388         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
35389         (ipa_print_node_params): Do not print the called flag.
35390         (ipa_write_node_info): Do not stream the called flag.
35391         (ipa_read_node_info): Likewise.
35392
35393 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
35394
35395         PR debug/43176
35396         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
35397         * cselib.c (struct expand_value_data): Add dummy field.
35398         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
35399         dummy to false.
35400         (cselib_dummy_expand_value_rtx_cb): New function.
35401         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
35402         any rtl.
35403         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
35404         * var-tracking.c: Include pointer-set.h.
35405         (variable): Change n_var_parts to char from int.  Add
35406         cur_loc_changed and in_changed_variables fields.
35407         (variable_canonicalize): Remove.
35408         (shared_var_p): New inline function.
35409         (unshare_variable): Maintain cur_loc_changed and
35410         in_changed_variables fields.  If var was in changed_variables,
35411         replace it there with new_var.  Just copy cur_loc instead of
35412         resetting it to something else.
35413         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
35414         (dataflow_set_union): Don't call variable_canonicalize.
35415         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
35416         of their DEBUG_EXPR_TREE_DECLs.
35417         (canonicalize_loc_order_check): Verify that cur_loc is NULL
35418         and in_changed_variables and cur_loc_changed is false.
35419         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
35420         and cur_loc_changed.  Don't update cur_loc here.
35421         (variable_merge_over_src): Don't call variable_canonicalize.
35422         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
35423         removing loc that is equal to cur_loc, clear cur_loc,
35424         set cur_loc_changed and ensure variable_was_changed is called.
35425         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
35426         compare pointers in cur_loc check, if it is equal to loc,
35427         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
35428         (variable_different_p): Remove compare_current_location argument,
35429         don't compare cur_loc.
35430         (dataflow_set_different_1): Adjust variable_different_p caller.
35431         (variable_was_changed): If dv had some var in changed_variables
35432         already, reset in_changed_variables flag for it and propagate
35433         cur_loc_changed over to the new variable.  On empty var
35434         always set cur_loc_changed.  Set in_changed_variables on whatever
35435         var is added to changed_variables.
35436         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
35437         Use shared_var_p.  When removing loc that is equal to cur_loc,
35438         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
35439         end, don't set it to something else, just call variable_was_changed.
35440         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
35441         loc being removed, clear cur_loc and set cur_loc_changed.
35442         Set cur_loc_changed if all locations have been removed.
35443         (struct expand_loc_callback_data): New type.
35444         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
35445         allocated.  Always create SUBREGs if simplify_subreg failed.
35446         Prefer to use cur_loc, when that fails and still in
35447         changed_variables (and seen first time) recompute it.  Set
35448         cur_loc_changed of variables which had to change cur_loc and
35449         compute elcd->cur_loc_changed if any of the subexpressions used
35450         had to change cur_loc.
35451         (vt_expand_loc): Adjust to pass arguments in
35452         expand_loc_callback_data structure.
35453         (vt_expand_loc_dummy): New function.
35454         (emitted_notes): New variable.
35455         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
35456         that weren't used for any other decl in current
35457         emit_notes_for_changes call call vt_expand_loc_dummy to update
35458         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
35459         first loc_chain location if NULL before.  Always use just
35460         cur_loc instead of first loc_chain location.  When cur_loc_changed
35461         is false, when not --enable-checking=rtl just don't emit any note.
35462         When rtl checking, compute the note and assert it is the same
35463         as previous note.  Clear cur_loc_changed and in_changed_variables
35464         at the end before removing from changed_variables.
35465         (check_changed_vars_3): New function.
35466         (emit_notes_for_changes): Traverse changed_vars to call
35467         check_changed_vars_3 on each changed var.
35468         (emit_notes_for_differences_1): Clear cur_loc_changed and
35469         in_changed_variables.  Recompute cur_loc of new_var.
35470         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
35471         (vt_emit_notes): Initialize and destroy emitted_notes.
35472
35473 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
35474
35475         PR rtl-optimization/42220
35476         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
35477         Use verify_reg_tracked to determine if we should use OP_OUT rather
35478         than OP_INOUT.
35479         (build_def_use): If we see an in-out operand for a register that we
35480         know nothing about, treat is an output if possible, fail the block if
35481         not.
35482
35483 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35484
35485         PR debug/42897
35486         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
35487         permanently.
35488
35489 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35490
35491         PR debug/42897
35492         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
35493         uses of relevant DEFs that are dead outside the loop too.
35494
35495 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35496
35497         * var-tracking.c (dataflow_set_merge): Swap src and src2.
35498         Reverted:
35499         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
35500         PR debug/41371
35501         * var-tracking.c (values_to_unmark): New variable.
35502         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35503         values_to_unmark vector.  Moved body to...
35504         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35505         instead queue it into values_to_unmark vector.
35506         (vt_find_locations): Free values_to_unmark vector.
35507
35508 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
35509
35510         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
35511         (site.exp): Export them when plugins are enabled.
35512
35513 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
35514
35515         PR middle-end/42326
35516         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
35517         that contain scevs.
35518         (chrec_fold_multiply): Same.
35519
35520 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
35521
35522         PR c/43248
35523         * c-decl.c (build_compound_literal): Return early if init is
35524         an error_mark_node.
35525
35526 2010-03-04  Martin Jambor  <mjambor@suse.cz>
35527
35528         PR tree-optimization/43164
35529         PR tree-optimization/43191
35530         * tree-sra.c (type_consists_of_records_p): Reject records with
35531         zero-size bit-fields at the end.
35532
35533 2010-03-04  Mike Stump  <mikestump@comcast.net>
35534
35535         * Makefile.in (TAGS): Remove *.y.
35536
35537 2010-03-04  Richard Guenther  <rguenther@suse.de>
35538
35539         PR tree-optimization/40761
35540         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
35541         in reverse order.
35542         (my_rev_post_order_compute): New function.
35543         (init_pre): Call it.
35544
35545 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
35546
35547         PR middle-end/43209
35548         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
35549         decrease the cost of an IV candidate when the cost is infinite.
35550
35551 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35552
35553         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
35554         Use '3DNow!' for the extension of that name, ensure normal space
35555         after the string.
35556         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
35557
35558 2010-03-03  Jeff Law  <law@redhat.com>
35559
35560         * PR middle-end/32693
35561         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
35562         than gen_rtx_SUBREG.
35563         (extract_bit_field_1): Likewise.
35564
35565 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
35566
35567         * doc/sourcebuild.texi (Test directives): Document that arguments
35568         include-opts and exclude-opts are now optional for dg-skip-if,
35569         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
35570
35571 2010-03-03  Jason Merrill  <jason@redhat.com>
35572
35573         PR c++/12909
35574         * cgraph.h (varpool_node): Add extra_name field.
35575         * varpool.c (varpool_extra_name_alias): New.
35576         (varpool_assemble_decl): Emit extra name aliases.
35577         (varpool_mark_needed_node): Look past an extra name alias.
35578         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
35579         * lto-streamer-in.c (lto_input_tree): Read it.
35580         * lto-streamer-out.c (output_unreferenced_globals): Write it.
35581
35582 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35583
35584         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
35585         (sparc*-*-solaris2*): ...this.
35586
35587 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
35588
35589         PR debug/43229
35590         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
35591         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
35592         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
35593         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
35594
35595         PR debug/43237
35596         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
35597         fallthrough to default handling, just with want_address 0 instead of 2.
35598         For single element lists, add_AT_loc directly, otherwise create an
35599         artificial variable DIE and stick location list to it.
35600
35601         PR debug/43177
35602         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
35603         (VAL_EXPR_HAS_REVERSE): Define.
35604         (reverse_op): New function.
35605         (add_stores): For reversible operations add an extra MO_VAL_USE.
35606
35607 2010-03-02  Jason Merrill  <jason@redhat.com>
35608
35609         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
35610
35611 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
35612
35613         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
35614         (sparc64-*-linux*): Likewise.
35615         (sparc64-*-solaris2*): Include assembler files before linker ones.
35616         (sparc-*-solaris2*): Simplify and reorder to match previous case.
35617         * config/sparc/gas.h: Delete.
35618         * config/sparc/sol2-64.h: Add copyright notice.
35619         * config/sparc/sol2-gas-bi.h: Likewise.
35620         * config/sparc/sol2-gld.h: Likewise.
35621         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
35622         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
35623         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
35624         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
35625         (sparc_elf_asm_named_section): Rename into...
35626         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
35627
35628 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
35629
35630         * config/alpha/alpha.c (override_options): Fix -mtune error message.
35631
35632 2010-03-02  Jeff Law  <law@redhat.com>
35633
35634         PR middle-end/42431
35635         * reload1.c (rtx_p, substitute_stack): Declare.
35636         (substitute): Record addresses of changed rtxs.
35637         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
35638         Restore the original rtx when complete.
35639         (reload): Free subsitute_stack when complete.
35640
35641 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
35642
35643         * doc/gccint.texi (menu): Add Testsuites as a chapter.
35644         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
35645         new chapter.
35646         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
35647         LTO Testing, gcov Testing, profopt Testing, compat Testing,
35648         Torture Tests): Change from subsection to section.
35649
35650 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
35651             Steven Bosscher  <steven@gcc.gnu.org>
35652
35653         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
35654         instead of bb.
35655
35656 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
35657
35658         PR middle-end/42640
35659         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
35660         the assignment from the new induction variable to the assignment
35661         of the value from the original loop PHI function.
35662
35663 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
35664             Daniel Jacobowitz  <dan@codesourcery.com>
35665
35666         * doc/sourcebuild.texi (Test directives): Clarify options to
35667         dg-skip-if.
35668
35669 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35670
35671         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
35672         Disable cfi directives unless GCC and gas agree on using read-only
35673         .eh_frame sections for 64-bit.
35674         * configure: Regenerate.
35675
35676 2010-03-01  Richard Guenther  <rguenther@suse.de>
35677
35678         PR tree-optimization/43220
35679         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
35680         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
35681
35682 2010-03-01  Richard Guenther  <rguenther@suse.de>
35683             Martin Jambor  <mjambor@suse.cz>
35684
35685         PR middle-end/41250
35686         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
35687         gimplified parameters.
35688
35689 2010-03-01  Christian Bruel  <christian.bruel@st.com>
35690
35691         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
35692
35693 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
35694
35695         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
35696
35697 2010-03-01  Richard Guenther  <rguenther@suse.de>
35698
35699         PR middle-end/43213
35700         * expr.c (expand_assignment): Use the alias-oracle to tell
35701         if the rhs aliases the result decl.
35702
35703 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35704
35705         PR pch/14940
35706         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
35707         to sol_gt_pch_get_address.
35708         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
35709         64-bit, SPARC and x86.
35710         (sol_gt_pch_get_address): New function.
35711
35712 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
35713
35714         * toplev.h (inform_n, error_n): Declare.
35715         * diagnostic.c (inform_n, error_n): New function.
35716
35717 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
35718
35719         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
35720         has no rtl yet when processing local_decls, queue it and recheck
35721         if deferred stack allocation hasn't assigned it rtl.
35722
35723 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
35724
35725         * config/sh/sh.c (unspec_bbr_uid): New.
35726         (gen_block_redirect): Use it instead of INSN_UID.
35727         (gen_far_branch): Likewise.
35728
35729 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
35730
35731         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
35732         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
35733
35734 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35735
35736         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
35737         (Warning Options): -Wno-conversion-null is valid for
35738         Objective-C++ as well.
35739         * doc/tm.texi (Named Address Spaces): Likewise.
35740         * doc/plugins.texi (Plugins): Replace TABs with spaces.
35741         * doc/tree-ssa.texi (Tree SSA): Likewise.
35742
35743 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35744
35745         PR bootstrap/43202
35746         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
35747         by default.  Don't set the default arch for
35748         i[34567]86-*-darwin*|x86_64-*-darwin*.
35749
35750 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35751
35752         PR bootstrap/43202
35753         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
35754         default.  Set the default 32bit/64bit archs with $with_arch
35755         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
35756
35757 2010-02-27  Richard Guenther  <rguenther@suse.de>
35758
35759         PR tree-optimization/43186
35760         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
35761         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
35762         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
35763         unroller iterations.
35764
35765 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35766
35767         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
35768         required and i[34567]86-*-* targets don't support 64bit ISA.
35769
35770 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
35771
35772         PR ada/43096
35773         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35774         the same alias set.
35775
35776 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35777
35778         * config.gcc: Set the default arch at least to Prescott for
35779         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
35780         if SSE math is enabled.
35781
35782 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35783
35784         * diagnostic.c (diagnostic_initialize): Update.
35785         (diagnostic_report_diagnostic): Test inhibit_notes_p for
35786         informative notes.
35787         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
35788         (diagnostic_inhibit_notes): New.
35789         * toplev.c (process_options): inhibit notes with -fcompare-debug.
35790
35791 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35792
35793         PR c/20631
35794         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
35795         * doc/standards.texi: Likewise.
35796         * doc/extend.texi: Likewise.
35797         * doc/trouble.texi: Likewise.
35798         * doc/cppopts.texi: Likewise.
35799         * doc/install.texi: Likewise.
35800         * c.opt (std=c90,std=gnu90): New options.
35801         * c-opts.c (c_common_handle_option): Handle them.
35802
35803 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35804
35805         PR c/24577
35806         * c-decl.c (undeclared_variable): Use an informative note.
35807
35808 2010-02-26  Richard Guenther  <rguenther@suse.de>
35809
35810         PR tree-optimization/43186
35811         * gimple.h (gimple_fold): Remove.
35812         * gimple.c (gimple_fold): Remove.  Inline into single user ...
35813         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
35814         Try harder for conditions.
35815
35816 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35817
35818         PR debug/43190
35819         * function.c (used_types_insert): Don't skip through named pointer
35820         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
35821         and it is different from the main variant's type.
35822
35823 2010-02-26  Nick Clifton  <nickc@redhat.com>
35824
35825         * config/rx/rx.md (sminsi3): Remove bogus alternative.
35826
35827 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35828
35829         * config.gcc: Support --with-fpmath=sse for x86.
35830
35831         * config/i386/ssemath.h: New.
35832
35833         * doc/install.texi (--with-fpmath=sse): Documented.
35834
35835 2010-02-26  Richard Guenther  <rguenther@suse.de>
35836
35837         PR tree-optimization/43188
35838         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
35839         vector types of over-aligned element type.
35840
35841 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
35842
35843         PR target/43175
35844         * config/i386/i386.c (expand_vec_perm_blend): Use correct
35845         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
35846
35847 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
35848
35849         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
35850
35851 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35852
35853         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
35854         * var-tracking.c: Include diagnostic.h.
35855         (debug_dv): New function.
35856         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
35857
35858         PR debug/43160
35859         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
35860         (add_value_chain, add_value_chains, remove_value_chain,
35861         remove_value_chains): Handle DEBUG_EXPRs.
35862         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
35863
35864         PR debug/43161
35865         * regcprop.c (struct queued_debug_insn_change): New type.
35866         (struct value_data_entry): Add debug_insn_changes field.
35867         (struct value_data): Add n_debug_insn_changes field.
35868         (debug_insn_changes_pool): New variable.
35869         (free_debug_insn_changes, apply_debug_insn_changes,
35870         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
35871         (kill_value_one_regno): Call free_debug_insn_changes if needed.
35872         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
35873         fields.
35874         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
35875         changes for them.
35876         (copyprop_hardreg_forward_1): Don't call apply_change_group for
35877         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
35878         changes, call cprop_find_used_regs via note_stores.
35879         (copyprop_hardreg_forward): When copying vd from predecessor
35880         which has any queued DEBUG_INSN changes, make sure the pointers are
35881         cleared.  At the end call df_analyze and then if there are any
35882         DEBUG_INSN changes queued at the end of some basic block for still
35883         live registers, apply them.
35884         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
35885
35886 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
35887
35888         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
35889         (arm*-*-*): Ditto.
35890
35891 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
35892
35893         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
35894         targets.  Set the default with_cpu/with_arch from arch/cpu.
35895         Allow x86-64 and native for with_cpu/with_arch.
35896
35897 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
35898
35899         * ebitmap.c: Change calls to verify_popcount with calls to
35900         sbitmap_verify_popcount.
35901         (ebitmap_clear_bit): Fixed map->cacheindex test and
35902         map>cache update when bit clearing results in an empty
35903         element.
35904
35905 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35906
35907         PR target/43154
35908         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
35909         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
35910         and support both V2DF and V2DI modes.
35911         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
35912         support both V2DF and V2DI modes.
35913         (general): Delete trailing whitespace from a few patterns.
35914
35915         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
35916         V2DF/V2DI interleave high/low builtins.
35917
35918         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
35919         new VSX builtins.
35920
35921         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
35922         interleave high/low functions.
35923
35924 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
35925
35926         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
35927         #pragma extern_prefix.
35928
35929 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
35930
35931         PR debug/43166
35932         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
35933         BLKmode, assert op0 is a MEM and just adjust its mode.
35934
35935         PR debug/43165
35936         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
35937         if bitpos isn't multiple of mode's bitsize.
35938
35939 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35940
35941         * c.opt (-ftemplate-depth=): New.
35942         (-ftemplate-depth-): Deprecate.
35943         * optc-gen.awk: Handle -ftemplate-depth=.
35944         * opth-gen.awk: Likewise.
35945         * c-opts.c (c_common_handle_option): Likewise.
35946         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
35947
35948 2010-02-24  Jason Merrill  <jason@redhat.com>
35949
35950         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
35951
35952 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35953
35954         * cfg.c (alloc_aux_for_block): Remove inline.
35955         (alloc_aux_for_edge): Likewise.
35956
35957 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35958
35959         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
35960
35961 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35962
35963         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
35964         * config/i386/sol2-gas.h: New file.
35965         * config.gcc (i[34567]86-*-solaris2*): Use it.
35966
35967 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35968
35969         PR c/43128
35970         * c-typeck.c (ep_convert_and_check): New.
35971         (build_conditional_expr): Use it.
35972         (build_binary_op): Likewise.
35973
35974 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
35975
35976         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
35977
35978         PR debug/43150
35979         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
35980         bounds even for -O+.
35981         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
35982         expr needs to have DECL_NAME set.
35983
35984 2010-02-24  Nick Clifton  <nickc@redhat.com>
35985
35986         * config/mep/mep.c: Include gimple.h.
35987         (mep_function_uses_sp): Delete unused function.
35988         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
35989         parameters.  Use unsigned integers to count args.  Return a
35990         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
35991
35992 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
35993
35994         PR target/43107
35995         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
35996         greater or equal to nelt instead of 2 * nelt.
35997         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
35998         with nelt - 1.
35999
36000 2010-02-23  Jason Merrill  <jason@redhat.com>
36001
36002         PR debug/42800
36003         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36004         in cfun->local_decls even if they have register types.
36005
36006         PR c++/42837
36007         * stor-layout.c (place_field): Don't warn about unnecessary
36008         DECL_PACKED if the type is packed.
36009
36010 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36011
36012         PR target/43139
36013         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36014         GOTOFF relocs, even when the base reg isn't pic pointer.
36015
36016 2010-02-23  Michael Matz  <matz@suse.de>
36017
36018         PR debug/43077
36019         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36020         (expand_gimple_basic_block): Generate and use debug temps if there
36021         are debug uses left after the last real use of TERed ssa names.
36022         Unlink debug immediate uses when they are expanded.
36023
36024 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36025
36026         PR 43123
36027         * config/i386/i386.c (override_options): Reorganise to provide
36028         better error messages.
36029
36030 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36031
36032         PR middle-end/43083
36033         * graphite-scop-detection.c (create_single_exit_edge): Move
36034         the call to find_single_exit_edge to....
36035         (create_sese_edges): ...here.  Don't handle multiple edges
36036         exiting the function.
36037         (build_graphite_scops): Don't handle multiple edges
36038         exiting the function.
36039
36040 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36041
36042         PR middle-end/43097
36043         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36044         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36045
36046 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36047
36048         PR middle-end/43026
36049         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36050
36051 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36052
36053         PR c++/43126
36054         * c-typeck.c (convert_arguments): Print declaration location.
36055         * c-common.c (validate_nargs): Rename as
36056         builtin_function_validate_nargs.
36057         (check_builtin_function_arguments): Update.
36058
36059 2010-02-22  Richard Guenther  <rguenther@suse.de>
36060
36061         PR lto/43045
36062         * tree-inline.c (declare_return_variable): Use the type of
36063         the call stmt lhs if available.
36064
36065 2010-02-22  Duncan Sands  <baldrick@free.fr>
36066
36067         * passes.c (register_pass): Always consider all pass lists when
36068         ref_pass_instance_number is zero.
36069
36070 2010-02-22  Richard Guenther  <rguenther@suse.de>
36071
36072         PR tree-optimization/42749
36073         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36074         parameter.  Do arithmetic in the original type.
36075         (update_accumulator_with_ops): Likewise.
36076         (adjust_accumulator_values): Adjust.
36077
36078 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36079
36080         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36081         (QI to BLKmode splitter): New splitter.
36082
36083 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
36084
36085         * config/i386/i386.c (initial_ix86_tune_features): Turn on
36086         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36087
36088 2010-02-22  Richard Guenther  <rguenther@suse.de>
36089
36090         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
36091
36092 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
36093
36094         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
36095         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
36096         ($(T)crti.o, $(T)crtn.o): Remove rules.
36097
36098 2010-02-21  Tobias Burnus  <burnus@net-b.de>
36099
36100         PR fortran/35259
36101         * doc/invoke.texi (-fassociative-math): Document that this
36102         option is automatically enabled for Fortran.
36103
36104 2010-02-20  David S. Miller  <davem@davemloft.net>
36105
36106         * configure.ac: Test if linker and assembler properly support
36107         GOTDATA_OP relocations.
36108         * configure: Rebuild.
36109         * config.in: Likewise.
36110         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
36111         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
36112         (movsi_high_pic): Likewise.
36113         (movdi_lo_sum_pic): Likewise.
36114         (movdi_high_pic): Likewise.
36115         (movsi_pic_gotdata_op): New pattern.
36116         (movdi_pic_gotdata_op): Likewise.
36117         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
36118         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
36119
36120 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
36121
36122         PR target/43067
36123         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
36124         attribute to ssemul.
36125         (xop_mulv2div2di3_high): Ditto.
36126
36127 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36128
36129         PR c++/35669
36130         * c.opt (Wconversion-null): New option.
36131         * doc/invoke.texi (Wconversion-null): Document.
36132
36133 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36134
36135         * common.opt (Wlarger-than-): Add Undocumented.
36136
36137 2010-02-19  Mike Stump  <mikestump@comcast.net>
36138
36139         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
36140
36141 2010-02-19  Jason Merrill  <jason@redhat.com>
36142
36143         PR target/40332
36144         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
36145         * configure: Likewise.
36146
36147 2010-02-20  Alan Modra  <amodra@gmail.com>
36148
36149         PR middle-end/42344
36150         * cgraph.h (cgraph_make_decl_local): Declare.
36151         * cgraph.c (cgraph_make_decl_local): New function.
36152         (cgraph_make_node_local): Use it.
36153         * cgraphunit.c (cgraph_function_versioning): Likewise.
36154         * ipa.c (function_and_variable_visibility): Likewise.
36155
36156 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36157
36158         PR bootstrap/43121
36159         * except.c (sjlj_emit_function_enter): Don't call
36160         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
36161         directly.
36162         * rtl.h (add_reg_br_prob_note): Remove prototype.
36163
36164 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36165
36166         PR 41779
36167         * c-common.c (conversion_warning): Remove widening conversions
36168         before checking the conversion of integers to reals.
36169
36170 2010-02-19  Mike Stump  <mikestump@comcast.net>
36171
36172         PR middle-end/43125
36173         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
36174
36175         PR objc/43061
36176         * cgraphunit.c (process_function_and_variable_attributes): Check
36177         DECL_PRESERVE_P instead of looking up attribute "used".
36178         * ipa-pure-const.c (check_decl): Likewise.
36179         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
36180         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
36181         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
36182         instead of attribute "used".
36183         * config/sol2-c.c (solaris_pragma_init): Likewise.
36184         (solaris_pragma_fini): Likewise.
36185
36186 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36187
36188         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
36189         Use XCNEW instead of xcalloc.
36190         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
36191         XNEW instead of xmalloc.
36192         (get_fields): Use XNEWVEC instead of xmalloc.
36193
36194         PR debug/43084
36195         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
36196         populate vars array.
36197         (create_new_general_access): For debug stmts just reset value.
36198         (get_stmt_accesses): For accesses within debug stmts just record them
36199         using add_access_to_acc_sites instead of preventing the peeling or
36200         counting them as accesses.
36201
36202         PR middle-end/42233
36203         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
36204
36205 2010-02-19  Richard Guenther  <rguenther@suse.de>
36206
36207         PR tree-optimization/42916
36208         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
36209         instructions.
36210
36211 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
36212
36213         * configure.ac: Replace all uses of changequote in macro arguments
36214         with proper quoting.
36215
36216 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36217
36218         PR middle-end/42233
36219         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
36220
36221 2010-02-19  Richard Guenther  <rguenther@suse.de>
36222
36223         PR tree-optimization/42944
36224         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
36225         test for aliasing with errno.
36226
36227 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36228
36229         PR middle-end/42233
36230         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
36231         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
36232         * dojump.c: Include output.h.
36233         (inv): New inline function.
36234         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
36235         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
36236         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
36237         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
36238         argument, pass it down to other calls.
36239         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
36240         add REG_BR_PROB note to the conditional jump.
36241         * cfgexpand.c (add_reg_br_prob_note): Removed.
36242         (expand_gimple_cond): Don't call it, add the probability
36243         as last argument to jumpif_1/jumpifnot_1.
36244         * Makefile.in (dojump.o): Depend on output.h.
36245         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
36246         callers.
36247         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
36248         * stmt.c (do_jump_if_equal): Likewise.
36249         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
36250         * loop-unswitch.c (compare_and_jump_seq): Likewise.
36251         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
36252         Likewise.
36253         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
36254         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
36255         jumpifnot_1 callers.
36256         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
36257         callers.
36258         (store_expr): Adjust jumpifnot caller.
36259         (store_constructor): Adjust jumpif caller.
36260
36261         PR middle-end/42233
36262         * gimplify.c (gimple_boolify): For __builtin_expect call
36263         gimple_boolify also on its first argument.
36264
36265 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
36266
36267         * configure.ac (gnu-unique-object): Wrap regexps using [] in
36268         changequote block.
36269         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
36270         * configure: Regenerated.
36271
36272 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36273
36274         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
36275         lang_hooks.types_compatible_p instead of comptypes.
36276
36277 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36278
36279         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
36280         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
36281         if __prefer_thumb__ is defined.
36282
36283 2010-02-18  Martin Jambor  <mjambor@suse.cz>
36284
36285         PR tree-optimization/43066
36286         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
36287         array with zero-sized element type.
36288
36289 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
36290
36291         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
36292         rtx, allocate struct var_loc_node here and return it to the
36293         caller, and only if it is actually needed.
36294         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
36295         move it earlier and return immediately if it returns NULL.
36296
36297 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
36298
36299         * config/sparc/gas.h: New file.  Restore
36300         TARGET_ASM_NAMED_SECTION to its ELF default.
36301         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
36302         check !HAVE_GNU_AS.
36303         * config/sparc/sparc.c (sparc_elf_asm_named_section):
36304         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
36305         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
36306         after sparc/sysv4.h.
36307
36308 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
36309
36310         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
36311
36312 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
36313
36314         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
36315         patterns from predicated pattern.
36316
36317 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
36318
36319         PR target/43103
36320         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
36321         for insn mnemonic suffix.
36322
36323 2010-02-17  Richard Guenther  <rguenther@suse.de>
36324
36325         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
36326         to loop PHI nodes.
36327
36328 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
36329
36330         PR debug/42918
36331         * caller-save.c (save_call_clobbered_regs): If BB ends with
36332         a DEBUG_INSN, move any notes in between last real insn and the last
36333         DEBUG_INSN after the last DEBUG_INSN.
36334
36335 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
36336
36337         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
36338         Fix return type.  Fix argument type.  Explain meaning of return value.
36339
36340 2010-02-16  Richard Guenther  <rguenther@suse.de>
36341
36342         PR tree-optimization/41043
36343         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
36344         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
36345         statements ...
36346         (vrp_visit_phi_node): ... but only for loop PHI nodes.
36347
36348 2010-02-16  Ira Rosen  <irar@il.ibm.com>
36349
36350         PR tree-optimization/43074
36351         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
36352         * tree-vect-loop.c (vect_analyze_loop_operations): Add
36353         vectorizable cycles in hybrid SLP check.
36354         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
36355
36356 2010-02-16  Richard Guenther  <rguenther@suse.de>
36357
36358         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
36359         (true_dependence): If memrefs_conflict_p computes must-alias
36360         trust it.  Move TBAA check after offset-based disambiguation.
36361         (canon_true_dependence): Likewise.
36362
36363 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
36364
36365         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
36366         * doc/invoke.texi: Document it.
36367         * var-tracking.c: Include toplev.h and params.h.
36368         (vt_find_locations): Return bool indicating success.  Compute
36369         hash sizes unconditionally.  Check new parameter, report.
36370         (variable_tracking_main_1): Check vt_find_locations results and
36371         retry.  Renamed from...
36372         (variable_tracking_main): ... this.  New wrapper to preserve
36373         flag_var_tracking_assignments.
36374         * Makefile.in (var-tracking.o): Adjust dependencies.
36375
36376 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
36377             Jakub Jelinek  <jakub@redhat.com>
36378
36379         PR target/42854
36380         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
36381         if weak_import attribute is present.
36382         * config/darwin.c (machopic_select_section): Likewise.
36383
36384 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
36385
36386         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
36387         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
36388         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
36389         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
36390
36391         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
36392         types.
36393
36394         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
36395         Fix argument types.
36396
36397         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
36398         Rewrite text to refer to the names.
36399
36400 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
36401
36402         * config/i386/i386-builtin-types.def
36403         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
36404         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
36405         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
36406         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
36407         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
36408         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
36409         IX86_BUILTIN_VPERMIL2PS256.
36410         (MULTI_ARG_4_DF2_DI_I): Defined.
36411         (MULTI_ARG_4_DF2_DI_I1): Defined.
36412         (MULTI_ARG_4_SF2_SI_I): Defined.
36413         (MULTI_ARG_4_SF2_SI_I1): Defined.
36414         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
36415         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
36416         __builtin_ia32_vpermil2ps256.
36417         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36418         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36419         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
36420         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36421         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36422         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
36423         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
36424         CODE_FOR_xop_vpermil2v8sf3.
36425         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
36426         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
36427         * config/i386/xopintrin.h (_mm_permute2_pd): New.
36428         (_mm256_permute2_pd): New.
36429         (_mm_permute2_ps): New.
36430         (_mm256_permute2_ps): New.
36431
36432 2010-02-15  Nick Clifton  <nickc@redhat.com>
36433
36434         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
36435         boolean parameters.  Use emit_jump_insn when emitting a pop
36436         instruction containing a return insn.
36437         (push): Use 'true' rather than '1' as second parameter to F.
36438         (h8300_expand_prologue): Likewise.
36439         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
36440         (h8300_expand_epilogue): Likewise.
36441
36442 2010-02-15  Richard Guenther  <rguenther@suse.de>
36443
36444         PR middle-end/43068
36445         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
36446         if that is zero.
36447
36448 2010-02-15  Nick Clifton  <nickc@redhat.com>
36449
36450         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
36451         delta.
36452
36453 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
36454
36455         * intl.c (fake_ngettext): New function.
36456         * intl.h (fake_ngettext): Declare.
36457         (ngettext): Define macro.
36458         * collect2.c (notice_translated): New function.
36459         (main): Use notice_translated and ngettext.
36460         * collect2.h (notice_translated): Declare.
36461
36462 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
36463
36464         * reorg.c (delete_computation): Comment fixes.
36465         * caller-save.c (setup_save_areas): Idem.
36466         * sel-sched-dump.c (dump_lv_set): Idem.
36467         * rtl.def: Idem.
36468
36469 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36470
36471         * config/s390/s390.c (s390_sched_init): New function.
36472         (TARGET_SCHED_INIT): Target hook defined.
36473
36474 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
36475             Jack Howarth  <howarth@bromo.med.uc.edu>
36476             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
36477
36478         PR target/42982
36479         Partial revert of unintended change in fix for PR41605.
36480         * config/darwin.h: Fix typo.
36481         * config/darwin9.h: Same.
36482
36483 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36484
36485         * c-pch.c (pch_init): Clear v.
36486
36487 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36488
36489         PR middle-end/42930
36490         * graphite-scop-detection.c (graphite_can_represent_scev): Call
36491         graphite_can_represent_init for MULT_EXPR.
36492
36493 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36494
36495         PR middle-end/42914
36496         PR middle-end/42530
36497         * graphite-sese-to-poly.c (remove_phi): New.
36498         (translate_scalar_reduction_to_array): Call remove_phi.
36499
36500 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36501
36502         PR middle-end/42771
36503         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
36504         * graphite-clast-to-gimple.h (gloog): Update declaration.
36505         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
36506         * graphite-poly.h (struct poly_bb): Add missing comments.
36507         (struct scop): Add poly_scop_p field.
36508         (POLY_SCOP_P): New.
36509         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
36510         * graphite.c (graphite_transform_loops): Build the polyhedral
36511         representation for each scop before code generation.
36512         * sese.c (rename_variables_in_operand): Removed.
36513         (rename_variables_in_expr): Return the renamed expression.
36514         (rename_sese_parameters): New.
36515         * sese.h (rename_sese_parameters): Declared.
36516
36517 2010-02-11  Richard Guenther  <rguenther@suse.de>
36518
36519         PR tree-optimization/42998
36520         * tree-ssa-pre.c (create_expression_by_pieces): Treat
36521         POINTER_PLUS_EXPR properly.
36522
36523 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36524             Changpeng Fang  <changpeng.fang@amd.com>
36525
36526         PR middle-end/40886
36527         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
36528         the cost of an IV candidate when the IV is used in a test against zero.
36529
36530         * gcc.dg/tree-ssa/ivopts-3.c: New.
36531
36532 2010-02-11  Richard Guenther  <rguenther@suse.de>
36533
36534         PR lto/41664
36535         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
36536         pointer-vs-decl case by swapping refs.  Handle some cases
36537         of pointer-vs-decl disambiguations more conservatively.
36538         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
36539         to false after expanding.
36540
36541 2010-02-11  Richard Guenther  <rguenther@suse.de>
36542
36543         PR driver/43021
36544         * gcc.c (process_command): Handle LTO file@offset case more
36545         appropriately.
36546
36547 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36548
36549         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
36550         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
36551         of DEBUG_INSNs.
36552         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
36553
36554         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
36555         if MEM's mode size isn't DWARF2_ADDR_SIZE.
36556         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
36557         Optimize eq/ne comparisons when both arguments are known to be
36558         zero-extended.
36559         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
36560         Don't mask operands unnecessarily if they are known to be already
36561         zero-extended.
36562
36563 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
36564
36565         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
36566         instead of loop.
36567
36568 2010-02-10  Richard Guenther  <rguenther@suse.de>
36569
36570         PR tree-optimization/43017
36571         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
36572         for wrapping signed arithmetic.
36573
36574 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36575
36576         PR debug/43010
36577         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
36578         if no debug info should be emitted for it.
36579
36580 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
36581
36582         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
36583         note when flag_exceptions is set.
36584
36585 2010-02-10  Duncan Sands  <baldrick@free.fr>
36586
36587         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
36588
36589 2010-02-10  Richard Guenther  <rguenther@suse.de>
36590
36591         PR c/43007
36592         * tree.c (get_unwidened): Handle constants.
36593         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
36594
36595 2010-02-10  Martin Jambor  <mjambor@suse.cz>
36596
36597         PR lto/42985
36598         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
36599         check for variable argument counts independently.
36600
36601 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36602
36603         PR target/42841
36604         * config/sh/sh.c (find_barrier): Increase length for non delayed
36605         conditional branches.
36606
36607 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36608
36609         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
36610
36611 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36612
36613         * builtins.c (set_builtin_user_assembler_name): Also handle
36614         ffs if int is smaller than word.
36615
36616 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
36617
36618         PR middle-end/42973
36619         * ira-conflicts.c (get_dup): Remove.
36620         (process_reg_shuffles): Add new parameter.  Use it as an
36621         additional guard for copy generation.
36622         (add_insn_allocno_copies): Rewrite.
36623
36624 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
36625
36626         * common.opt (fsched2-use-traces): Preserved for backward
36627         compatibility.
36628         * doc/invoke.texi: Remove the documentation about option
36629         -fsched2-use-traces.
36630         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
36631         flag_sched2_use_traces.
36632         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
36633         the backward compatibility flag section.
36634
36635 2010-02-09  Richard Guenther  <rguenther@suse.de>
36636
36637         PR tree-optimization/43008
36638         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
36639         make HEAP variables initialized from global memory if they
36640         are not known builtin functions.
36641         (find_func_aliases): Adjust.
36642
36643 2010-02-09  Richard Guenther  <rguenther@suse.de>
36644
36645         PR tree-optimization/43000
36646         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
36647         arithmetic manually.
36648
36649 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
36650
36651         PR tree-optimization/42931
36652         * tree-loop-linear.c (try_interchange_loops): Don't call
36653         double_int_mul if estimated_loop_iterations failed.
36654
36655 2010-02-08  Martin Jambor  <mjambor@suse.cz>
36656
36657         PR middle-end/42898
36658         * tree-sra.c (build_accesses_from_assign): Do not mark in
36659         should_scalarize_away_bitmap if stmt has volatile ops.
36660         (sra_modify_assign): Do not process assigns piecemeal if if stmt
36661         has volatile ops.
36662
36663 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
36664
36665         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
36666
36667 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
36668
36669         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
36670         before the pattern.
36671
36672 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
36673
36674         PR middle-end/42946
36675         * df-core.c (df_finish_pass): Change type of saved_flags to int.
36676
36677 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36678
36679         PR middle-end/42988
36680         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
36681         to unknown_dependence.
36682         (graphite_legal_transform_dr): Handle the unknown_dependence.
36683         (graphite_carried_dependence_level_k): Same.
36684
36685 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36686
36687         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
36688
36689 2010-02-07  Richard Guenther  <rguenther@suse.de>
36690
36691         PR middle-end/42991
36692         * expr.c (get_inner_reference): Always initialize *pbitsize.
36693
36694 2010-02-07  Richard Guenther  <rguenther@suse.de>
36695
36696         PR middle-end/42956
36697         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
36698         new ARRAY_REFs on variable size element or minimal index arrays.
36699         Complete.
36700         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
36701         gimple_fold_indirect_ref.
36702
36703 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
36704
36705         PR target/42957
36706         * arm.c (arm_override_options): Just return if the user has specified
36707         an invalid fpu name.
36708
36709 2010-02-03  Jason Merrill  <jason@redhat.com>
36710
36711         PR c++/42870
36712         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
36713         i386_pe_maybe_record_exported_symbol.
36714
36715 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
36716
36717         PR target/42924
36718         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36719         (pa_delegitimize_address): New function.
36720
36721 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
36722
36723         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
36724         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
36725
36726 2010-02-05  Richard Guenther  <rguenther@suse.de>
36727
36728         PR lto/42762
36729         * lto-streamer-in.c (get_resolution): Deal with references
36730         to undefined functions.
36731
36732 2010-02-05  Richard Guenther  <rguenther@suse.de>
36733
36734         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
36735         (fold_const_aggregate_ref): Likewise.
36736         (ccp_fold_stmt): Substitute loads.
36737         (maybe_fold_reference): Verify types before substituting.
36738         Unshare properly.
36739         (fold_gimple_assign): Unshare properly.
36740         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
36741
36742 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
36743
36744         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
36745         for rs6000_gen_cell_microcode.
36746
36747 2010-02-04  Richard Guenther  <rguenther@suse.de>
36748
36749         PR rtl-optimization/42952
36750         * dse.c (const_or_frame_p): Remove MEM handling.
36751
36752 2010-02-04  Nick Clifton  <nickc@redhat.com>
36753
36754         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
36755         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36756         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
36757         (mn10300_asm_output_mi_thunk): New function.
36758         (mn10300_can_output_mu_thunk): New function.
36759         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
36760         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
36761         (FUNCTION_ARG): Delete incorrect comment.
36762
36763 2010-02-03  Jason Merrill  <jason@redhat.com>
36764
36765         PR c++/40138
36766         * fold-const.c (operand_equal_p): Handle erroneous types.
36767
36768 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
36769
36770         * config/h8300/h8300.md (can_delay): Fix attibute condition.
36771
36772 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
36773
36774         PR rtl-optimization/42941
36775         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
36776         of xmalloc.
36777
36778 2010-02-03  Jason Merrill  <jason@redhat.com>
36779
36780         PR c++/35652
36781         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
36782
36783 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
36784
36785         PR debug/42896
36786         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
36787         (cselib_reset_table): Renamed from...
36788         (cselib_reset_table_with_next_value): ... this.
36789         (cselib_get_next_uid): Renamed from...
36790         (cselib_get_next_unknown_value): ... this.
36791         * cselib.c (next_uid): Renamed from...
36792         (next_unknown_value): ... this.
36793         (cselib_clear_table): Adjust.
36794         (cselib_reset_table): Adjust.  Renamed from...
36795         (cselib_reset_table_with_next_value): ... this.
36796         (cselib_get_next_uid): Adjust.  Renamed from...
36797         (cselib_get_next_unknown_value): ... this.
36798         (get_value_hash): Use hash.
36799         (cselib_hash_rtx): Likewise.
36800         (new_cselib_val): Adjust.  Set and dump uid.
36801         (cselib_lookup_mem): Pass next_uid as hash.
36802         (cselib_subst_to_values): Likewise.
36803         (cselib_log_lookup): Dump uid.
36804         (cselib_lookup): Pass next_uid as hash.  Adjust.
36805         (cselib_process_insn): Adjust.
36806         (cselib_init): Initialize next_uid.
36807         (cselib_finish): Adjust.
36808         (dump_cselib_table): Likewise.
36809         * dse.c (canon_address): Dump value uid.
36810         * print-rtl.c (print_rtx): Print value uid.
36811         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
36812         (dvuid): New type.
36813         (dv_uid): New function, sort of renamed from...
36814         (dv_htab_hash): ... this, reimplemented in terms of it and...
36815         (dv_uid2hash): ... this.  New.
36816         (variable_htab_eq): Drop excess assertions.
36817         (tie_break_pointers): Removed.
36818         (canon_value_cmp): Compare uids.
36819         (variable_post_merge_New_vals): Print uids.
36820         (vt_add_function_parameters): Adjust.
36821         (vt_initialize): Reset table.  Adjust.
36822
36823 2010-02-03  Richard Guenther  <rguenther@suse.de>
36824
36825         PR tree-optimization/42944
36826         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
36827         (call_may_clobber_ref_p_1): Likewise.  Properly handle
36828         malloc and calloc clobbering errno.
36829
36830 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
36831
36832         * doc/invoke.texi: Fix name of sched1 dump.
36833
36834         * opts.c (decode_options): Set flag_tree_switch_conversion
36835         only conditionally on optimize >= 2.
36836
36837         * gcse.c: Assorted comment fixes in pass description.
36838
36839 2010-02-03  Anthony Green  <green@moxielogic.com>
36840
36841         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
36842         nop padding in order to maintain alignment of storage location of
36843         target function address.
36844         (moxie_trampoline_init): Store target function address at newly
36845         aligned location.
36846         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
36847         to 32.
36848         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
36849
36850 2010-02-03  Richard Guenther  <rguenther@suse.de>
36851
36852         PR middle-end/42927
36853         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
36854
36855 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36856
36857         * config.gcc: Reenable check for obsolete targets.
36858         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
36859         mips-sgi-irix6.[0-4]*.
36860
36861 2010-02-02  Nick Clifton  <nickc@redhat.com>
36862
36863         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
36864         constant size of 4 as being the same as 0.
36865         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
36866         can take values in the range 0..4.
36867
36868 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
36869
36870         PR java/41991
36871         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
36872         as _darwin10_Unwind_FindEnclosingFunction().
36873         * libgcc-libsystem.ver: New.
36874
36875 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
36876
36877         PR target/41399
36878         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
36879         implicitly set registers.
36880
36881 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
36882
36883         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
36884         (arm_override_options): Allow automatic selection of the thread
36885         pointer register if thumb2.
36886         (legitimize_pic_address): Improve code sequences for Thumb2.
36887         (arm_call_tls_get_addr): Likewise.
36888         (legitimize_tls_address): Likewise.
36889         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
36890         (pic_load_addr_32bit): ... this.  New named pattern.
36891         * thumb2.md (pic_load_addr_thumb2): Delete.
36892         (pic_load_dot_plus_four): Delete.
36893         (tls_load_dot_plus_four): New named pattern.
36894
36895 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36896
36897         PR libgomp/29986
36898         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
36899         Document fix for TLS bug.
36900
36901 2010-01-31  Richard Guenther  <rguenther@suse.de>
36902
36903         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
36904         conservatively correct.
36905
36906 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36907
36908         PR target/42850
36909         Revert:
36910         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36911
36912         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36913
36914 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36915
36916         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
36917
36918 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
36919
36920         * config.gcc: Adjust order of makefile fragments for mingw targets.
36921
36922 2010-01-31  Richard Guenther  <rguenther@suse.de>
36923
36924         PR middle-end/42898
36925         * gimplify.c (gimplify_init_constructor): For volatile LHS
36926         initialize a temporary.
36927
36928 2010-01-31  Matthias Klose  <doko@ubuntu.com>
36929
36930         * configure.ac: Fix __stack_chk_fail check for cross builds configured
36931         --with-headers
36932         * configure: Regenerate.
36933
36934 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
36935
36936         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36937         the same alias set and their sizes different constantness.
36938         (aliasing_component_refs_p): Revert 2009-10-24 change.
36939
36940 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36941
36942         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
36943         unused.
36944
36945 2010-01-29  Richard Guenther  <rguenther@suse.de>
36946
36947         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
36948         Assert we successfully updated the call.
36949
36950 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
36951
36952         PR rtl-optimization/42889
36953         * df.h (df_set_bb_dirty_nonlr): New prototype.
36954         * df-core.c (df_set_bb_dirty_nonlr): New function.
36955         * df-scan.c (df_insn_rescan): Call it instead of
36956         df_set_bb_dirty for DEBUG_INSNs.
36957
36958 2010-01-29  Richard Guenther  <rguenther@suse.de>
36959
36960         PR middle-end/37448
36961         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
36962         quadratic behavior in most cases.
36963
36964 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
36965
36966         PR target/42891
36967         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
36968         in the call to gen_x86_movsicc_0_m1.
36969
36970 2010-01-28  Richard Guenther  <rguenther@suse.de>
36971
36972         PR tree-optimization/42871
36973         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
36974
36975 2010-01-28  Richard Guenther  <rguenther@suse.de>
36976
36977         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
36978         into call arguments.
36979
36980 2010-01-28  Richard Guenther  <rguenther@suse.de>
36981
36982         PR middle-end/42883
36983         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
36984         the forwarder if the destination is an EH landing pad.
36985
36986 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
36987
36988         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
36989         block list passed to gimple_duplicate_sese_tail.
36990         (parallelize_loops): Avoid parallelization when the function
36991         has_nonlocal_label.
36992         Avoid parallelization when the preheader is IRREDUCIBLE.
36993         Try to optimize when estimated_loop_iterations_int is unresolved.
36994         Add the loop's location to the dump file.
36995         * tree-cfg.c (add_phi_args_after_redirect): Remove.
36996         (gimple_duplicate_sese_tail): Remove the check for the latch.
36997         Redirect nexits to the exit block.
36998         Remove handling of the incoming edges to the latch.
36999         Redirect the backedge from the copied latch to the exit bb.
37000
37001 2010-01-28  Michael Matz  <matz@suse.de>
37002
37003         PR target/42881
37004         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37005         Wrap force_reg into a sequence, emit it before user.
37006
37007 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
37008
37009         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37010         (arm_rev): New.
37011         (arm_legacy_rev): Likewise.
37012         (thumb_legacy_rev): Likewise.
37013
37014 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37015
37016         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37017         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
37018         on MEM's address failed, try avoid_constant_pool_reference and
37019         recurse if it returned something different.
37020         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37021         address, try avoid_constant_pool_reference and recurse if it
37022         returned something different.
37023         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37024         address and avoid_constant_pool_reference returned something
37025         different, don't set have_address.
37026
37027 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
37028
37029         PR debug/42861
37030         * var-tracking.c (val_store): Add modified argument, obey it.
37031         Adjust callers.
37032         (count_uses): Move down logging of main.
37033         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37034         don't need resolution.
37035         (emit_notes_in_bb): Likewise.
37036
37037 2010-01-27  Richard Guenther  <rguenther@suse.de>
37038
37039         PR middle-end/42878
37040         * tree-inline.c (remap_decl): Delay remapping of SSA name
37041         default definitions until we need them.
37042
37043 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37044
37045         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37046         (rs6000_delegitimize_address): New function.
37047
37048         * config/s390/s390.c (s390_delegitimize_address): Call
37049         delegitimize_mem_from_attrs.
37050
37051         PR middle-end/42874
37052         * tree-inline.c (cannot_copy_type_1): Removed.
37053         (copy_forbidden): Don't forbid copying of functions containing
37054         records/unions with variable length fields.
37055
37056 2010-01-27  Christian Bruel  <christian.bruel@st.com>
37057
37058         Revert:
37059         PR target/42841
37060         * config/sh/sh.c (find_barrier): Increase length for non delayed
37061         conditional branches.
37062
37063 2010-01-27  Matthias Klose  <doko@ubuntu.com>
37064
37065         * configure.ac (gnu-unique-object): Fix ldd version check.
37066         * configure: Regenerate.
37067
37068 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37069
37070         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37071         HAVE_GNU_AS value.
37072         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37073         Test for HAVE_GNU_AS value.
37074
37075 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37076
37077         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37078         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37079         INT64_TYPE): Define.
37080         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37081         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37082         INT_LEAST64_TYPE): Define.
37083         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37084         UINT_LEAST64_TYPE): Define.
37085         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37086         INT_FAST64_TYPE): Define.
37087         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37088         UINT_FAST64_TYPE): Define.
37089         (INTMAX_TYPE, UINTMAX_TYPE): Define.
37090         (INTPTR_TYPE, UINTPTR_TYPE): Define.
37091         (SIG_ATOMIC_TYPE): Define.
37092
37093 2010-01-26  Richard Guenther  <rguenther@suse.de>
37094
37095         * df-scan.c (df_scan_set_bb_info): Remove assert.
37096         (df_insn_rescan_debug_internal): Merge asserts.
37097         (df_install_ref): Likewise.
37098         (df_mark_reg): Use bitmap_set_range.
37099         (df_hard_reg_used_p): Remove assert.
37100         (df_hard_reg_used_count): Likewise.
37101
37102 2010-01-26  Richard Guenther  <rguenther@suse.de>
37103
37104         PR rtl-optimization/42685
37105         * web.c (web_main): Ignore DEBUG_INSNs.
37106
37107 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
37108
37109         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
37110
37111         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
37112         Fix types of fndecl and arglist parameters.
37113
37114 2010-01-26  Richard Guenther  <rguenther@suse.de>
37115
37116         PR middle-end/42806
37117         * tree-eh.c (unsplit_eh): Skip debug insns.
37118
37119 2010-01-26  Richard Guenther  <rguenther@suse.de>
37120
37121         PR tree-optimization/42250
37122         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
37123
37124 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
37125
37126         PR fortran/42866
37127         * omp-low.c (expand_omp_sections): Only use single_pred if
37128         l2_bb is single_pred_p.
37129
37130 2010-01-25  Christian Bruel  <christian.bruel@st.com>
37131
37132         PR target/42841
37133         * config/sh/sh.c (find_barrier): Increase length for non delayed
37134         conditional branches.
37135         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
37136
37137 2010-01-24  David S. Miller  <davem@davemloft.net>
37138
37139         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
37140         define if not using GAS.
37141         * config/sparc/sparc.c (sparc_elf_asm_named_section):
37142         Likewise.  Delete SECTION_MERGE code, which is only applicable
37143         when using GAS.
37144
37145 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
37146
37147         PR c++/42748
37148         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
37149         mangling of va_list in system headers.
37150
37151 2010-01-23  Toon Moene  <toon@moene.org>
37152
37153         * tree-predcom.c (combine_chains): Return NULL, not false.
37154
37155 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
37156
37157         * tree-loop-distribution.c (distribute_loop): Fix declaration and
37158         initialization of variable res to agree with return type.
37159
37160 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
37161
37162         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
37163         * tree-sra.c: Add include of expr.h.
37164
37165 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
37166
37167         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
37168         insert the debug stmt on the single non-EH edge from the stmt.
37169
37170 2010-01-22  Richard Henderson  <rth@redhat.com>
37171
37172         PR tree-opt/42833
37173         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
37174         the RHS until after generate_subtree_copies has insertted its
37175         code before the current statement.
37176
37177 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
37178
37179         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
37180
37181         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
37182
37183 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37184
37185         PR tree-optimization/42585
37186         * tree-sra.c (struct access): New field grp_total_scalarization.
37187         (dump_access): Dump the new field.
37188         (should_scalarize_away_bitmap): New variable.
37189         (cannot_scalarize_away_bitmap): Likewise.
37190         (sra_initialize): Allocate new bitmaps.
37191         (sra_deinitialize): Free new bitmaps.
37192         (create_access_1): New function.
37193         (create_access): Parts moved to create_access_1.
37194         (type_consists_of_records_p): New function.
37195         (completely_scalarize_record): Likewise.
37196         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
37197         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
37198         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
37199         access.
37200         (analyze_all_variable_accesses): Completely scalarize small eligible
37201         records.
37202
37203 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37204
37205         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
37206
37207 2010-01-21  Andrew Haley  <aph@redhat.com>
37208
37209         * gcc.c (process_command): Move lang_specific_driver before
37210         setting cc_libexec_prefix.
37211
37212 2010-01-21  Richard Guenther  <rguenther@suse.de>
37213
37214         PR middle-end/19988
37215         * fold-const.c (negate_expr_p): Pretend only negative
37216         real constants are easily negatable.
37217
37218 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
37219             Jason Merrill  <jason@redhat.com>
37220
37221         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
37222         (TYPE_TRANSPARENT_AGGR): this, for union and record.
37223         * calls.c (initialize argument_information): Handle it.
37224         * c-common.c (handle_transparent_union_attribute): Use new name.
37225         * c-decl.c (finish_struct): Ditto.
37226         * c-typeck.c (type_lists_compatible_p): Ditto.
37227         (convert_for_assignment): Use new name and also handle record.
37228         * function.c (aggregate_value_p): Handle it.
37229         (pass_by_reference): Ditto.
37230         (assign_parm_data_types): Ditto.
37231         * print-tree.c (print_node): Ditto.
37232         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
37233         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
37234         * tree.c (first_field): New fn.
37235
37236 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
37237
37238         PR target/42818
37239         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
37240         even when linking statically, for now.
37241
37242 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37243
37244         PR debug/42715
37245         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
37246         without a cselib val.
37247         (count_uses): Accept MO_VAL_SET with no val on stores.
37248         (add_stores): Likewise.
37249
37250 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37251
37252         * var-tracking.c (check_value_val): Add a compile time assertion.
37253         (dv_is_decl_p): Simplify.
37254         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
37255         gcc_assert if ENABLE_CHECKING.
37256
37257 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37258
37259         PR debug/42782
37260         * var-tracking.c: Include tree-flow.h.
37261         (mem_dies_at_call): New.
37262         (dataflow_set_preserve_mem_locs): Use it.
37263         (dataflow_set_remove_mem_locs): Likewise.
37264         (dump_var): Renamed from dump_variable.  Adjust all callers.
37265         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
37266         * Makefile.in (var-tracking.o): Adjust deps.
37267
37268 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
37269
37270         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
37271
37272 2010-01-20  Richard Guenther  <rguenther@suse.de>
37273
37274         PR tree-optimization/42717
37275         * tree-ssa-dce.c (get_live_post_dom): Remove.
37276         (forward_edge_to_pdom): Take an arbitrary edge to copy
37277         degenerate PHI args from.
37278         (remove_dead_stmt): Use the first post-dominator even if it
37279         does not contain live statements as redirection destination.
37280
37281 2010-01-20  Richard Guenther  <rguenther@suse.de>
37282
37283         * tree-inline.c (estimate_num_insns): Handle EH builtins.
37284
37285 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37286
37287         * sel-sched.c (create_speculation_check): Remove set but not used
37288         variable twin.
37289         (try_transformation_cache): Remove set but not used variable ds.
37290         (calculate_privileged_insns): Remove set but not used variables
37291         cur_insn and min_spec_insn.
37292         (find_best_expr): Remove set but not used variable avail_n.
37293         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
37294         variable e.
37295         * cgraphunit.c (assemble_thunk): Remove set but not used variable
37296         false_label.
37297         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
37298         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
37299         new_scop_exit_edge.
37300
37301 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
37302
37303         PR bootstrap/42786
37304         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
37305         cpu types.  Add support for *-sse3 cpu types.
37306         (x86_64-*-*): Ditto.
37307
37308 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37309
37310         PR middle-end/42803
37311         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
37312         argument, call initializer_constant_valid_p_1 instead of
37313         initializer_constant_valid_p, pass CACHE to it, return NULL
37314         immediately if first call returns NULL.
37315         (initializer_constant_valid_p_1): New function.
37316         (initializer_constant_valid_p): Use it.
37317
37318 2010-01-20  Thomas Quinot  <quinot@adacore.com>
37319
37320         * tree.def (PLACEHOLDER_EXPR): Fix comment.
37321
37322 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37323
37324         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
37325         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
37326         (loc_list_from_tree): Don't handle unsigned division.  Handle
37327         signed modulo using DW_OP_{over,over,div,mul,minus}.
37328         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
37329         modulo instead of signed.
37330
37331 2010-01-20  DJ Delorie  <dj@redhat.com>
37332
37333         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
37334         (Fpa): Pass it
37335         (h8300_emit_stack_adjustment): Propogate it.
37336         (push): Pass it.
37337         (h8300_expand_prologue): Likewise.
37338         (h8300_expand_epilogue): Likewise.
37339
37340 2010-01-19  Michael Matz  <matz@suse.de>
37341
37342         PR tree-optimization/41783
37343         * tree-data-ref.c (toplevel): Include flags.h.
37344         (dump_data_dependence_relation):  Also dump the inputs if the
37345         result will be unknown.
37346         (split_constant_offset_1): Look through some conversions.
37347         * tree-predcom.c (determine_roots_comp): Restart a new chain if
37348         the offset from last element is too large.
37349         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
37350         (reassociate_to_the_same_stmt): Handle vector registers.
37351         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
37352         (e.g. conversions).
37353         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
37354         wide_prolog_niters argument, emit widening instructions.
37355         (vect_do_peeling_for_alignment): Adjust caller, use widened
37356         variant of the iteration cound.
37357         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
37358
37359 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37360
37361         PR target/38697
37362         * config/arm/neon-testgen.m (emit_automatics): New parameter
37363         features. Adjust for Fixed_return_reg feature.
37364         (test_intrinsic): Call emit_automatics with new feature.
37365         * config/arm/neon.ml: Update copyright years.
37366         (features): New Fixed_return_reg feature.
37367         (ops): Update feature for Vget_low.
37368
37369 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
37370
37371         PR tree-optimization/42719
37372         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
37373         stmt uses.
37374
37375         PR debug/42728
37376         * fwprop.c (all_uses_available_at): Return false if def_set dest
37377         is a REG that is used in def_insn.
37378
37379 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
37380
37381         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
37382
37383         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
37384         Add argument names.
37385
37386         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
37387
37388         * target.h (struct gcc_target) <secondary_reload>: Change type
37389         of last argument to secondary_reload_info *.
37390
37391 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
37392
37393         PR target/42774
37394         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
37395         memory references with unaligned offsets.  Remove CQImode handling.
37396         (unaligned_memory_operand): Return 1 for memory references with
37397         unaligned offsets.  Remove CQImode handling.
37398
37399 2010-01-18  Richard Guenther  <rguenther@suse.de>
37400
37401         PR middle-end/39954
37402         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
37403         builtin calls.
37404
37405 2010-01-18  Richard Guenther  <rguenther@suse.de>
37406
37407         PR tree-optimization/42781
37408         * tree-ssa-structalias.c (find_what_var_points_to): Skip
37409         restrict processing only if the original variable was artificial.
37410
37411 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
37412
37413         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
37414         find number of popped argument bytes.
37415
37416         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
37417         Fix the text that describes the return value for invalid insns.
37418
37419         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
37420
37421         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
37422         Clarify what 'cost of the -dependence' is.  Fix quoting.
37423
37424         * toplev.c (default_get_pch_validity): Rename argument to "sz".
37425         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
37426
37427 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
37428
37429         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
37430         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
37431
37432 2010-01-17  Richard Guenther  <rguenther@suse.de>
37433
37434         PR middle-end/42248
37435         * function.c (split_complex_args): Take a VEC to modify.
37436         (assign_parms_augmented_arg_list): Build a VEC instead of
37437         a chain of PARM_DECLs.
37438         (assign_parms_unsplit_complex): Take a VEC of arguments.
37439         Do not fixup unmodified parms.
37440         (assign_parms): Deal with the VEC.
37441         (gimplify_parameters): Likewise.
37442
37443 2010-01-17  Richard Guenther  <rguenther@suse.de>
37444
37445         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
37446         node existence check.
37447         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
37448         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
37449         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
37450         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
37451         (gimple_execute_on_growing_pred): Likewise.
37452
37453 2010-01-17  Richard Guenther  <rguenther@suse.de>
37454
37455         PR tree-optimization/42773
37456         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
37457         (compute_antic_aux): Likewise.
37458         (compute_partial_antic_aux): Likewise.
37459
37460 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
37461
37462         PR debug/42767
37463         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
37464         and US_TRUNCATE.
37465
37466 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
37467
37468         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
37469         appearance.
37470
37471         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
37472         Fix markup for strict argument.
37473
37474         (TARGET_SCHED_REORDER2): Fix argument types.
37475
37476         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
37477         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
37478
37479         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
37480         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
37481
37482         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
37483         Add argument name.
37484
37485         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
37486         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
37487         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
37488         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
37489         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
37490
37491         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
37492
37493         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
37494
37495         (TARGET_ASM_RELOC_RW_MASK): Add return type.
37496         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
37497
37498         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
37499
37500         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
37501         Use prototype.
37502
37503         (TARGET_ASM_NAMED_SECTION): Fix argument list.
37504
37505         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
37506         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
37507
37508         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
37509
37510         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
37511
37512         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
37513         referring to it.  Fix language.
37514
37515         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
37516
37517         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
37518
37519         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
37520
37521         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
37522
37523         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
37524         '@var{stream}.  Remove stray 'and'.
37525
37526         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
37527
37528         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
37529
37530         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
37531
37532         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
37533         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
37534
37535         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
37536         Fix description of return value.
37537         Rename argument "sz" to "len."
37538
37539         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
37540         Clarify meaning of 'true' return value.
37541
37542         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
37543
37544         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
37545         rep_mode versus mode_rep.
37546
37547         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
37548
37549         (TARGET_BUILTIN_DECL): Fix name.
37550
37551         (TARGET_COMMUTATIVE_P): Fix type of first argument.
37552
37553         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
37554
37555         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
37556
37557         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
37558
37559         (TARGET_RELAXED_ORDERING): Use @deftypevr.
37560
37561         (TARGET_GET_DRAP_RTX): Note that this is a hook.
37562         Clarify language.
37563
37564         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
37565         Rename argument tm_fn to md_fn.
37566
37567         (TARGET_OPTION_PRINT): Fix argument list.
37568
37569 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
37570
37571         PR target/42664
37572         * config/i386/i386.c (ix86_fixup_binary_operands):
37573         Revert FMA4 fixup of operands.
37574
37575 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37576
37577         PR other/42525
37578         * Makefile.in (write_entries_to_file, install-plugin):
37579         Use \012 instead of \n with tr.
37580
37581 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
37582
37583         * configure.ac (HAVE_AS_REF): New C macro.
37584         * configure: Regenerate.
37585         * config.in: Likewise.
37586         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
37587         if HAVE_AS_REF.
37588         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
37589         if HAVE_AS_REF.
37590
37591 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
37592
37593         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
37594
37595         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
37596
37597         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
37598
37599         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
37600
37601         (TARGET_IN_SMALL_DATA_P): Fix argument type.
37602
37603         (TARGET_BINDS_LOCAL_P): Fix argument type.
37604
37605         (TARGET_ASM_FILE_END): Use prototype.
37606
37607         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
37608
37609         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
37610
37611         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
37612
37613         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
37614
37615         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
37616         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
37617
37618         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
37619         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
37620
37621         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
37622         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
37623         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
37624         (TARGET_ADDR_SPACE_CONVERT): Likewise.
37625
37626         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
37627
37628         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
37629
37630         (TARGET_INIT_BUILTINS): Use prototype.
37631
37632         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
37633         Put 'const char *' in braces.  Fix parameter types.
37634         (TARGET_INVALID_CONVERSION): Fix parameter types.
37635         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
37636         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
37637
37638         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
37639         Fix argument type.
37640
37641         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
37642
37643         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
37644
37645 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
37646
37647         * doc/tm.texi (TARGET_HELP): Fix return type.
37648
37649         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
37650         in braces.  Fix argument types.
37651
37652         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
37653
37654         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
37655
37656         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
37657
37658         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
37659         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
37660
37661         (TARGET_MANGLE_TYPE): Fix argument types.
37662
37663         (TARGET_IRA_COVER_CLASSES): Use prototype.
37664
37665         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
37666
37667         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
37668
37669         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
37670
37671         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
37672
37673         (TARGET_CALLEE_COPIES): Fix argument types.
37674
37675         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
37676
37677         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
37678
37679         (TARGET_FUNCTION_VALUE): Fix argument types.
37680
37681         (TARGET_RETURN_IN_MSB): Fix argument type.
37682
37683         (TARGET_RETURN_IN_MEMORY): Fix argument types.
37684
37685         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
37686
37687         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
37688
37689         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
37690         agree with return type.
37691
37692         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
37693
37694 2010-01-15  Jing Yu  <jingyu@google.com>
37695
37696         PR rtl-optimization/42691
37697         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
37698         a pseudo to a constant and are merged, and adjust comments.
37699
37700 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37701
37702         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
37703
37704 2010-01-15  Richard Guenther  <rguenther@suse.de>
37705
37706         PR middle-end/42739
37707         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
37708         labels of computed or non-local gotos to the destination.
37709         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
37710         landing pad label is the first label.
37711
37712 2010-01-15  Richard Guenther  <rguenther@suse.de>
37713
37714         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
37715
37716 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
37717
37718         PR target/42747
37719         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
37720         to allow generation of the xssqrtdp instruction on power7.
37721         (sqrtdf2_fpr): Ditto.
37722
37723 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37724
37725         PR middle-end/42674
37726         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
37727         functions with noreturn attribute.
37728
37729         PR c++/42608
37730         * varasm.c (declare_weak): Add weak attribute to decl if it
37731         doesn't have one already.
37732         (assemble_external): Only add decls to weak_decls if they also
37733         have weak attribute.
37734
37735 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
37736
37737         * var-tracking.c (var_reg_delete): Don't delete the association
37738         between REGs and values or one-part variables if the register
37739         isn't clobbered.
37740
37741 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37742
37743         PR debug/42657
37744         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
37745         because its first operand is a non-localized variable.
37746
37747 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37748
37749         PR tree-optimization/42706
37750         * tree-sra.c (encountered_recursive_call): New variable.
37751         (encountered_unchangable_recursive_call): Likewise.
37752         (sra_initialize): Initialize both new variables.
37753         (callsite_has_enough_arguments_p): New function.
37754         (scan_function): Call decl and flags check only for IPA-SRA, check
37755         whether there is a recursive call and whether it has enough arguments.
37756         (all_callers_have_enough_arguments_p): New function.
37757         (convert_callers): Look for recursive calls only when
37758         encountered_recursive_call is set.
37759         (ipa_early_sra): Bail out either if
37760         !all_callers_have_enough_arguments_p or
37761         encountered_unchangable_recursive_call.
37762
37763 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37764
37765         * sel-sched.c: Add 2010 to copyright years.
37766         * sel-sched-ir.c: Likewise.
37767         * sel-sched-ir.h: Likewise.
37768
37769 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37770
37771         PR tree-optimization/42714
37772         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
37773         constructors specially.
37774
37775 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37776
37777         * config/i386/drivers-i386.c (detect_caches_intel):
37778         Add l2sizekb parameter and fill in.
37779         (host_detect_local_cpu): Add l2sizekb, fill in.
37780         Add Atom small cache heuristic.
37781
37782 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37783
37784         * config/i386/drivers-i386.c (detect_caches_cpuid4):
37785         Add level3 parameter and fill in.
37786         (detect_caches_intel): Handle level3 cache.
37787
37788 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37789
37790         * config/i386/drivers-i386.c (host_detect_local_cpu):
37791         Fix core duo detection.
37792
37793 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37794
37795         * config/i386/drivers-i386.c (host_detect_local_cpu):
37796         Fix Atom detection.
37797
37798 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37799
37800         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
37801         (rs6000_variable_issue_1): this.  Use...
37802         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
37803
37804 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37805
37806         * sel-sched-ir.c (sel_restore_other_notes): Rename to
37807         sel_restore_notes.  Update all callers.  Call reemit_notes
37808         for all insns.
37809
37810 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37811
37812         PR rtl-optimization/42246
37813         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
37814         loops.
37815
37816 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37817
37818         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
37819         all successors is the same as number of successors in current region.
37820
37821 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37822
37823         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
37824         to rename is not separable.  Otherwise check that its LHS is not NULL.
37825
37826 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37827
37828         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
37829
37830 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37831
37832         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
37833         available registers when failed to discover LHS register class.
37834         Fix indentation.  Update comment.
37835
37836 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37837             Alexander Monakov  <amonakov@ispras.ru>
37838
37839         PR rtl-optimization/42389
37840         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
37841         to can_issue_more.
37842         (advance_state_on_fence): Likewise.
37843         (sel_target_adjust_priority): Print debug output only when
37844         sched_verbose >= 4, not 2.
37845         (get_expr_cost): Do not issue all unique insns on the next cycle.
37846         (fill_insns): Initialize can_issue_more from the value saved
37847         with the fence.
37848         * sel-sched-ir.c (flist_add): New parameter issue_more.
37849         Init FENCE_ISSUE_MORE with it.
37850         (merge_fences): Likewise.
37851         (init_fences): Update call to flist_add.
37852         (add_to_fences, add_clean_fence_to_fences)
37853         (add_dirty_fence_to_fences): Likewise.
37854         (move_fence_to_fences): Update call to merge_fences.
37855         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
37856         sched groups.
37857         * sel-sched-ir.h (struct _fence): New field issue_more.
37858         (FENCE_ISSUE_MORE): New accessor macro.
37859
37860 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37861
37862         PR rtl-optimization/42388
37863         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
37864         that have no predecessors nor successors.  Do not call move_bb_info
37865         for empty blocks outside of current region.
37866
37867 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37868
37869         PR rtl-optimization/42294
37870         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
37871         * sel-sched.c (move_exprs_to_boundary): Transitively add all
37872         originators' originators.
37873
37874 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37875
37876         PR rtl-optimization/39453
37877         PR rtl-optimization/42246
37878         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
37879         for pipelining_p.
37880         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
37881
37882 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37883             Alexander Monakov  <amonakov@ispras.ru>
37884
37885         PR middle-end/42245
37886         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
37887         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
37888         argument.  Update all callers.
37889         (tidy_control_flow): ... and here.  Recompute topological order
37890         of basic blocks in region if necessary.
37891         (sel_redirect_edge_and_branch): Change return type.  Return true
37892         if topological order might have been invalidated.
37893         (purge_empty_blocks): Export and move from...
37894         * sel-sched.c (purge_empty_blocks): ... here.
37895         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
37896         (maybe_tidy_empty_bb): Delete prototype.
37897         (purge_empty_blocks): Declare.
37898
37899 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37900
37901         PR rtl-optimization/42249
37902         * sel-sched.c (try_replace_dest_reg): When chosen register
37903         and original register is the same, do not bail out early, but
37904         still check all original insns for validity of replacing destination
37905         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
37906         in this case.
37907
37908 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37909
37910         PR c/42721
37911         Port from no-undefined-overflow branch:
37912         2009-03-09  Richard Guenther  <rguenther@suse.de>
37913
37914         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
37915
37916 2010-01-14  Richard Guenther  <rguenther@suse.de>
37917
37918         PR lto/42665
37919         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
37920
37921 2010-01-14  Ira Rosen  <irar@il.ibm.com>
37922
37923         PR tree-optimization/42709
37924         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
37925         as scalar type in creation of constant vector operand.
37926
37927 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37928
37929         PR testsuite/42414
37930         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
37931         (check-parallel-%): Match `testsuite' directory component only
37932         at the end.
37933
37934 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
37935
37936         PR translation/39521
37937         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
37938         strings with _().
37939
37940 2010-01-13  Richard Guenther  <rguenther@suse.de>
37941
37942         PR tree-optimization/42730
37943         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
37944         offset zero.
37945
37946 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
37947
37948         PR target/pr42542
37949         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
37950         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
37951         them signed.
37952
37953 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
37954
37955         * config/bfin/libgcc-bfin.ver: Regenerate based on current
37956         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
37957         ___umulsi3_highpart.
37958
37959         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
37960         rather than schedule_insns if the pass is enabled.
37961
37962 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37963
37964         PR tree-optimization/42704
37965         * tree-sra.c (sra_modify_assign): Do not delete assignments to
37966         SSA_NAMEs.
37967
37968 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37969
37970         PR tree-optimization/42703
37971         * tree-sra.c (analyze_access_subtree): Check that we can build a
37972         reference to the original data within the aggregate.
37973
37974 2010-01-13  Richard Guenther  <rguenther@suse.de>
37975
37976         PR tree-optimization/42705
37977         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
37978
37979 2010-01-13  Richard Guenther  <rguenther@suse.de>
37980
37981         PR middle-end/42716
37982         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
37983
37984 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
37985
37986         PR debug/41371
37987         * var-tracking.c (values_to_unmark): New variable.
37988         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37989         values_to_unmark vector.  Moved body to...
37990         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
37991         instead queue it into values_to_unmark vector.
37992         (vt_find_locations): Free values_to_unmark vector.
37993
37994 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
37995
37996         * config/s390/s390.c (override_options): Set
37997         default of max-pending-list-length to 256
37998
37999 2010-01-13  Richard Guenther  <rguenther@suse.de>
38000
38001         PR lto/42678
38002         * tree-pass.h (PROP_gimple_lcx): New.
38003         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38004         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38005         before the final cleanup_eh.
38006         (dump_properties): Dump PROP_gimple_lcx.
38007         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38008         (tree_lower_complex_O0): Remove.
38009         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38010         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
38011         tree_lower_complex, schedule TODO_update_ssa.
38012         * lto-streamer-out.c (output_function): Stream the functions
38013         properties.
38014         * lto-streamer-in.c (input_function): Likewise.
38015         (lto_read_body): Do not override them here.
38016
38017 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
38018
38019         PR c/42708
38020         * c-typeck.c (build_c_cast): Fold value cast to union type before
38021         wrapping it in a CONSTRUCTOR.
38022
38023 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38024
38025         PR rtl-optimization/42699
38026         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38027         involved.
38028
38029 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38030
38031         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38032         SUBTARGET_WARN_UNUSED_SPEC): Move ...
38033         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38034         SUBTARGET_WARN_UNUSED_SPEC): ... here
38035         * config/mips/iris5.h (LIBGCC_SPEC): Define.
38036
38037 2010-01-12  Julian Brown  <julian@codesourcery.com>
38038
38039         * config/arm/neon-schedgen.ml (Utils): Don't try to
38040         open missing module.
38041         (find_with_result): New.
38042
38043 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38044
38045         PR debug/42662
38046         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38047         sharing when canonicalizing ({lt,ge}u (plus a b) b).
38048
38049         PR tree-optimization/42645
38050         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
38051         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38052         decl_map, set processing_debug_stmt to -1 and return name without
38053         any remapping.
38054
38055 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
38056
38057         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38058         binutils version, and reword target configuration description.
38059
38060 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38061
38062         * config/avr/avr.h (LINKER_NAME): Remove.
38063
38064 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
38065
38066         PR target/42416
38067         * config/rs6000/rs6000.c (rs6000_override_options): On targets
38068         that support VSX, warn for -mno-altivec if vsx is not disabled,
38069         and disable vsx.
38070
38071 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
38072             Shujing Zhao  <pearly.zhao@oracle.com>
38073
38074         PR translation/42469
38075         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38076         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38077         character between option name and help text.
38078         * c.opt (imultilib): Likewise.
38079
38080 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
38081
38082         * lto-streamer-out.c (output_unreferenced_globals): Output static
38083         variables.
38084
38085 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
38086
38087         PR rtl-optimization/42621
38088         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
38089         optimizing for size.
38090         (duplicate_computed_gotos): Remove now-redundant check.
38091
38092 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
38093
38094         PR target/37454
38095         * configure.ac: Save and restore LDFLAGS and LIBS
38096         * configure: Regenerate.
38097
38098 2010-01-10  Richard Guenther  <rguenther@suse.de>
38099
38100         PR middle-end/42667
38101         * builtins.c (fold_builtin_strlen): Add type argument and
38102         convert the resulting length to it.
38103         (fold_builtin_1): Adjust.
38104
38105 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38106
38107         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
38108         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
38109         1 insn.
38110         (num_insns_constant_wide): Adjust for that change.
38111
38112 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38113
38114         PR debug/42631
38115         * web.c (union_defs): Add used argument, to combine uses of
38116         uninitialized regs.
38117         (entry_register): Adjust type and tests of used argument.
38118         (web_main): Widen used for new use.  Pass it to union_defs.
38119         * df.h (union_defs): Adjust prototype.
38120
38121 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38122
38123         PR debug/42630
38124         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
38125         uses in new incoming argument.  Free body.
38126         (reset_debug_uses_in_loop): New.
38127         (analyze_insn_to_expand_var): Call the latter if the former found
38128         anything.  Fix whitespace.  Reject invalid dest overlaps before
38129         going through all insns in the loop.
38130
38131 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38132
38133         PR debug/42629
38134         * haifa-sched.c (dying_use_p): Debug insns don't count.
38135
38136 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38137
38138         PR middle-end/42363
38139         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
38140         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
38141         (verify_gimple_call): Reject LHS in noreturn calls.
38142
38143 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38144
38145         PR debug/42604
38146         PR debug/42395
38147         * tree-vect-loop-manip.c (adjust_info): New type.
38148         (adjust_vec): New pointer to vector.
38149         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
38150         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
38151         (slpeel_update_phis_for_duplicate_loop): Use them.
38152         (slpeel_update_phi_nodes_for_guard1): Likewise.
38153         (slpeel_update_phi_nodes_for_guard2): Likewise.
38154         (slpeel_tree_peel_loop_to_edge): Likewise.
38155         (vect_update_ivs_after_vectorizer): Likewise.
38156
38157 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38158
38159         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
38160         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
38161
38162 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38163
38164         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
38165         bogus uninitialized warning.
38166
38167 2010-01-09  Richard Guenther  <rguenther@suse.de>
38168
38169         PR middle-end/42512
38170         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
38171         the evolution is compatible with the initial condition.
38172
38173 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38174
38175         * gcc.c (process_command): Update copyright notice dates.
38176         * gcov.c (print_version): Likewise.
38177         * gcov-dump.c (print_version): Likewise.
38178         * mips-tfile.c (main): Likewise.
38179         * mips-tdump.c (main): Likewise.
38180
38181 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38182
38183         PR target/41885
38184         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
38185         (rotlhi3): Delete.
38186         (rotlhi3_8): Delete.
38187         (rotlsi3): Delete.
38188         (rotlsi3_8): Delete.
38189         (rotlsi3_16): Delete.
38190         (rotlsi3_24): Delete.
38191         (rotl<mode>3): New.
38192         (*rotw<mode>3): New.
38193         (*rotb<mode>3): New.
38194         * config/avr/avr.c (avr_rotate_bytes): New function.
38195         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
38196
38197 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
38198
38199         PR target/37454
38200         * configure.ac: Modify -rdynamic check.
38201         * configure: Regenerate.
38202
38203 2010-01-08  DJ Delorie  <dj@redhat.com>
38204
38205         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
38206         register popping order.
38207
38208 2010-01-08  Richard Guenther  <rguenther@suse.de>
38209
38210         PR lto/42528
38211         * c.opt (fsigned-char): Also let LTO handle this option.
38212         (funsigned-char): Likewise.
38213
38214 2010-01-07  Richard Guenther  <rguenther@suse.de>
38215
38216         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
38217         (gimple_op): Likewise.
38218         (gimple_op_ptr): Likewise.
38219         (gimple_assign_set_lhs): Remove gcc_assert.
38220         (gimple_assign_set_rhs1): Likewise.
38221         (gimple_assign_set_rhs2): Likewise.
38222         (gimple_call_set_lhs): Likewise.
38223         (gimple_call_set_fn): Likewise.
38224         (gimple_call_set_fndecl): Likewise.
38225         (gimple_call_fndecl): Likewise.
38226         (gimple_call_return_type): Likewise.
38227         (gimple_call_set_chain): Likewise.
38228         (gimple_call_num_args): Likewise.
38229         (gimple_call_set_arg): Likewise.
38230         (gimple_cond_set_code): Likewise.
38231         (gimple_cond_set_lhs): Likewise.
38232         (gimple_cond_set_rhs): Likewise.
38233         (gimple_cond_set_true_label): Likewise.
38234         (gimple_cond_set_false_label): Likewise.
38235         (gimple_label_set_label): Likewise.
38236         (gimple_goto_set_dest): Likewise.
38237         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
38238         (gimple_debug_bind_get_value): Likewise.
38239         (gimple_debug_bind_get_value_ptr): Likewise.
38240         (gimple_debug_bind_set_var): Likewise.
38241         (gimple_debug_bind_set_value): Likewise.
38242         (gimple_debug_bind_reset_value): Likewise.
38243         (gimple_debug_bind_has_value_p): Likewise.
38244         (gimple_return_retval_ptr): Remove gcc_assert.
38245         (gimple_return_retval): Likewise.
38246         (gimple_return_set_retval): Likewise.
38247         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
38248         (safe_referenced_var_iterator): Remove.
38249         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
38250         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
38251         (fill_referenced_var_vec): Remove.
38252         (first_readonly_imm_use): Remove redundant gcc_assert.
38253         (phi_arg_index_from_use): Combine gcc_asserts.
38254         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
38255         (first_imm_use_stmt): Remove redundant gcc_assert.
38256         * tree-cfg.c (verify_gimple_call): Verify function and chain
38257         operands.  Verify arguments.
38258         (verify_types_in_gimple_stmt): Verify condition code and labels.
38259
38260 2010-01-07  Richard Guenther  <rguenther@suse.de>
38261
38262         PR tree-optimization/42641
38263         * sese.c (rename_map_elt_info): Use the SSA name version, do
38264         not hash pointers.
38265
38266 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
38267
38268         PR tree-optimization/42625
38269         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
38270         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
38271
38272 2010-01-07  Duncan Sands  <baldrick@free.fr>
38273
38274         * Makefile.in (PLUGIN_HEADERS): Add version.h.
38275
38276 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
38277
38278         PR target/42511
38279         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
38280         note itself is not function_invariant_p.
38281
38282 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
38283
38284         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
38285         Do not add the DF_NOTE problem.
38286         * store-motion.c (execute_rtl_store_motion): Likewise.
38287
38288 2010-01-07  Martin Jambor  <mjambor@suse.cz>
38289
38290         PR tree-optimization/42157
38291         * tree-sra.c (compare_access_positions): Stabilize sort if both
38292         accesses have integer types, return zero immediately if they are the
38293         same.
38294
38295 2010-01-06  Richard Henderson  <rth@redhat.com>
38296
38297         PR middle-end/41883
38298         * haifa-sched.c (add_to_note_list): Merge into ...
38299         (concat_note_lists): ... here, and ...
38300         (unlink_other_notes, rm_other_notes): Merge into...
38301         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
38302         NOTE_INSN_EPILOGUE_BEG.
38303
38304 2010-01-06  Richard Guenther  <rguenther@suse.de>
38305
38306         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
38307         not inline regular functions into always-inline functions.
38308
38309 2010-01-06  Nick Clifton  <nickc@redhat.com>
38310
38311         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
38312         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
38313         used together.
38314         (OVERRIDE_OPTIONS): Delete.
38315         (OPTIMIZATION_OPTIONS): Define.
38316         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
38317         * config/rx/rx.c (rx_handle_option): Issue an error message if
38318         -mcpu=rx200 and -fpu are used together.
38319         (rx_set_optimization_options): New function.  Issue an error
38320         message if an optimization attribute attempts to reset the FPU/
38321         math optimization pairing.
38322         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
38323         * config/rx/rx.opt: Set the default to 32-bit doubles.
38324         * config/rx/t-rx: Add multilibs for -nofpu option.
38325         * doc/invoke.texi: Update documentation of RX options.
38326
38327 2010-01-06  Richard Guenther  <rguenther@suse.de>
38328
38329         * tree-ssa-pre.c (name_to_id): New global.
38330         (alloc_expression_id): Simplify SSA name handling.
38331         (lookup_expression_id): Likewise.
38332         (init_pre): Zero name_to_id.
38333         (fini_pre): Free it.
38334
38335 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
38336
38337         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
38338
38339 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
38340
38341         PR target/42542
38342         * config/i386/sse.md (smaxv2di3): New.
38343         (umaxv2di3): Likewise.
38344         (sminv2di3): Likewise.
38345         (uminv2di3): Likewise.
38346
38347 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38348
38349         PR target/42564
38350         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
38351         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
38352         (legitimize_tls_address): Likewise.
38353         (sparc_tls_referenced_p): Likewise.
38354         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
38355         and adjust calls to legitimize_pic_address.
38356         (legitimate_constant_p) Use sparc_tls_referenced_p.
38357         (legitimate_pic_operand_p): Likewise.
38358         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
38359         (sparc_tls_symbol_ref_1): Delete.
38360         (sparc_tls_referenced_p): Make static, recognize specific patterns.
38361         (legitimize_tls_address): Make static, handle CONST patterns.
38362         (legitimize_pic_address): Make static, remove unused parameter and
38363         adjust recursive calls.
38364         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
38365         and adjust call to legitimize_pic_address.
38366         (sparc_output_mi_thunk): Likewise.
38367
38368 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
38369             H.J. Lu  <hongjiu.lu@intel.com>
38370
38371         PR target/42542
38372         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
38373         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
38374         operands to make them signed.
38375
38376         Revert:
38377         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38378
38379         PR target/42542
38380         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38381         GTU to GT for V4SI and V2DI.
38382
38383         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38384         (umin<mode>3): Removed.
38385         (uminv8hi3): New.
38386         (uminv4si3): Likewise.
38387
38388 2010-01-05  Martin Jambor  <mjambor@suse.cz>
38389
38390         PR tree-optimization/42462
38391         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
38392         current_function_decl to helper functions and macros.
38393
38394 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38395
38396         PR bootstrap/41771
38397         * flags.h: Don't include real.h.
38398         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
38399         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
38400         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
38401         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
38402         * dominance.c: Update copyright.
38403         * gimple.c (walk_gimple_op): Remove inline.
38404         * tree-ssa-reassoc.c: Include real.h.
38405         * Makefile.in (FLAGS_H): Remove $(REAL_H).
38406         (tree-ssa-reassoc.o): Depend on $(REAL_H).
38407
38408 2010-01-05  Nick Clifton  <nickc@redhat.com>
38409
38410         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
38411         register to push into the stack frame when the accumulator has to
38412         be saved during interrupts.
38413
38414 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
38415
38416         * doc/invoke.texi: Remove the documentation about option
38417         -Wunreachable-code.
38418         * common.opt (Wunreachable-code):  Preserved for backward
38419         compatibility.
38420         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
38421         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
38422         the backward compatibility flag section.
38423
38424 2010-01-05  Richard Guenther  <rguenther@suse.de>
38425
38426         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
38427
38428 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
38429
38430         PR other/42611
38431         * cfgexpand.c (expand_one_var): Diagnose too large variables.
38432
38433         PR tree-optimization/42508
38434         * tree-sra.c (convert_callers): Check for recursive call
38435         by comparing cgraph nodes instead of decls.
38436         (modify_function): Call ipa_modify_formal_parameters also
38437         on all same_body aliases.
38438
38439         * cgraphunit.c (cgraph_materialize_all_clones): Compare
38440         cgraph nodes when checking for same_body aliases.
38441
38442 2010-01-05  Richard Guenther  <rguenther@suse.de>
38443
38444         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
38445         allocation and lookup.
38446         (get_or_alloc_expr_for_constant): Likewise.
38447         (phi_translate): Sink allocation.
38448
38449 2010-01-04  Richard Guenther  <rguenther@suse.de>
38450
38451         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
38452         a new entry only if needed.
38453         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
38454         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
38455         hashtable lookup.
38456         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
38457         the result array.
38458         (phi_translate): Handle CONSTANTs early.
38459
38460 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38461
38462         PR tree-optimization/42398
38463         * tree-sra.c (struct access): Removed flag grp_different_types.
38464         (dump_access): Do not dump the removed flag.
38465         (sort_and_splice_var_accesses): Do not set the removed flag.
38466         (sra_modify_expr): Check for type compatibility directly.
38467
38468 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38469
38470         PR tree-optimization/42366
38471         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
38472         edges with variable number of parameters.
38473         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
38474         flag instead of asserting it.
38475         (ipa_read_node_info): Read uses_analysis_done flag.
38476
38477 2010-01-04  Richard Guenther  <rguenther@suse.de>
38478
38479         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
38480         iterative_hash_* as intended.
38481         (vn_reference_compute_hash): Likewise.  Simplify hashing
38482         SSA names.
38483         (vn_reference_lookup_2): Likewise.
38484         (vn_nary_op_compute_hash): Likewise.
38485         (vn_phi_compute_hash): Likewise.
38486         (expressions_equal_p): Remove strange code.
38487         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
38488         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
38489         (bitmap_insert_into_set_1): Take value-id as parameter.
38490         (add_to_value): Pass it.
38491         (bitmap_insert_into_set): Likewise.
38492         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
38493
38494 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
38495
38496         PR driver/42442
38497         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
38498         (do_self_spec): For switches with SWITCH_IGNORE set set also
38499         SWITCH_IGNORE_PERMANENTLY.
38500         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
38501         of SWITCH_IGNORE.
38502
38503 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
38504
38505         * lto-streamer-out.c (output_unreferenced_globals): Output the full
38506         tree of an unreferenced global var.
38507
38508 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38509
38510         PR target/42542
38511         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38512         GTU to GT for V4SI and V2DI.
38513
38514         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38515         (umin<mode>3): Removed.
38516         (uminv8hi3): New.
38517         (uminv4si3): Likewise.
38518
38519 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38520
38521         PR lto/42581
38522         * collect2.c (main): Turn on trace in collect2 if -v is passed
38523         to gcc with LTO.
38524
38525 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
38526
38527         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
38528         description of expression operand.
38529
38530 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
38531
38532         * configure.ac: Add install-html to target_list for Make-hooks.
38533         * configure: Regenerate.
38534         * fortran/Make-lang.in (F95_HTMLFILES): New.
38535         (fortran.html): Use it.
38536         (fortran.install-html): New.
38537         * Makefile.in (install-html): Add lang.install-html.
38538         * java/Make-lang.in (JAVA_HTMLFILES): New.
38539         (java.html): Use it.
38540         (java.install-html): New.
38541         * objc/Make-lang.in (objc.install-html): New.
38542         * objcp/Make-lang.in (obj-c++.install-html): New.
38543         * cp/Make-lang.in (c++.install-html): New.
38544         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
38545         * lto/Make-lang.in (lto.install-html): New.
38546
38547 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38548
38549         PR lto/42520
38550         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
38551
38552 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38553
38554         PR rtl-optimization/41862
38555         * store-motion.c (store_killed_in_insn, compute_store_table,
38556         remove_reachable_equiv_notes, replace_store_insn,
38557         build_store_vectors): Ignore all DEBUG_INSNs.
38558
38559 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38560
38561         PR lto/41564
38562         * common.opt: Add dumpdir.
38563
38564         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
38565         isn't specified.
38566         (option_map): Add --dumpdir.
38567
38568         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
38569
38570         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
38571
38572         * opts.c (decode_options): Try dump_dir_name first if
38573         dump_base_name isn't an absolute path.
38574         (common_handle_option): Handle OPT_dumpdir.
38575
38576         * toplev.c (dump_dir_name): New.
38577         (print_switch_values): Also ignore -dumpdir.
38578
38579         * toplev.h (dump_dir_name): New.
38580
38581 2010-01-03  Richard Guenther  <rguenther@suse.de>
38582
38583         PR tree-optimization/42589
38584         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
38585         double-word expansion of bswap32.
38586
38587 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38588
38589         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
38590         with BLOCK_FOR_INSN.
38591         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
38592         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
38593         noce_process_if_block): Likewise.
38594         * gcse.c (compute_local_properties, insert_expr_in_table,
38595         insert_set_in_table, canon_list_insert, find_avail_set,
38596         pre_insert_copy_insn): Likewise.
38597
38598         * basic-block.h (BLOCK_NUM): Move from here...
38599         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
38600
38601 2010-01-03  Richard Guenther  <rguenther@suse.de>
38602
38603         PR tree-optimization/42438
38604         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
38605         contains_may_not_return_call flag.
38606         (BB_MAY_NOTRETURN): New.
38607         (valid_in_sets): Trapping nary operations are not valid
38608         in blocks that may not return.
38609         (insert_into_preds_of_block): Remove check for trapping expressions.
38610         (compute_avail): Compute also BB_MAY_NOTRETURN.
38611
38612 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
38613
38614         * doc/invoke.texi: Add 2010 to copyright years.
38615
38616 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
38617
38618         * config/sparc/sparc.c: Fix formatting nits.
38619
38620 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
38621             Alexander Monakov  <amonakov@ispras.ru>
38622
38623         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
38624
38625 2010-01-02  Richard Guenther  <rguenther@suse.de>
38626
38627         PR middle-end/42577
38628         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
38629         (simplify_switch_using_ranges): Mark to be removed edges
38630         as non-executable.
38631
38632 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38633
38634         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38635
38636         * collect2.c (scan_libraries): Add missing argument in call to
38637         scan_prog_file.
38638
38639 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
38640
38641         PR target/42448
38642         * config/alpha/predicates.md (aligned_memory_operand): Return false
38643         for CQImode.
38644         (unaligned_memory_operand): Return true for CQImode.
38645         * config/alpha/alpha.c (get_aligned_mem): Assert that location
38646         doesn not cross aligned SImode word boundary.
38647
38648 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
38649
38650         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
38651         Remove.
38652         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
38653         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
38654
38655 2010-01-02  Richard Guenther  <rguenther@suse.de>
38656
38657         PR lto/41597
38658         * toplev.c (compile_file): Emit LTO marker properly.  Change
38659         it to __gnu_lto_v1.
38660         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
38661
38662 2010-01-01  Richard Guenther  <rguenther@suse.de>
38663
38664         PR debug/42455
38665         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
38666
38667 2010-01-01  Richard Guenther  <rguenther@suse.de>
38668
38669         PR c/42570
38670         * c-decl.c (grokdeclarator): For zero-size arrays force
38671         structural equality checks as layout_type does.
38672
38673 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38674
38675         * builtins.c: Update copyright to 2010.
38676
38677 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38678
38679         PR lto/42531
38680         * lto-streamer-out.c (produce_asm): Revert the last change.
38681         (copy_function): Likewise.
38682
38683         * lto-streamer.c (lto_get_section_name): Skip any leading
38684         asterisk in name.
38685
38686 2010-01-01  Richard Guenther  <rguenther@suse.de>
38687
38688         PR middle-end/42559
38689         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
38690         for LABEL_DECLs.
38691
38692 \f
38693 Copyright (C) 2010 Free Software Foundation, Inc.
38694
38695 Copying and distribution of this file, with or without modification,
38696 are permitted in any medium without royalty provided the copyright
38697 notice and this notice are preserved.