OSDN Git Service

2010-12-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-02  Richard Guenther  <rguenther@suse.de>
2
3         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
4         the case we need to split the edge and not the block.
5
6 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
7
8         DFA model for Core 2 and Core i7 scheduling.
9
10         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
11         * config/i386/i386.c (ix86_option_override_internal): Update entries
12         for Core 2 and Core i7.
13         (ix86_issue_rate): Set issue rate to 3 [be realistic].
14         * config/i386/i386.md: Include "core2.md".
15         (define_attr cpu): Add "corei7".
16
17 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
18
19         Define tuning for Core 2 and Core i7.
20
21         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
22         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
23         (m_CORE2): Replace with m_CORE2_{32,64}.
24         (m_CORE2I7{,_32,_64}): New macros.
25         (m_GENERIC32, m_GENERIC64): Update.
26         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
27         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
28         set m_CORE2I7_64 iff m_GENERIC64.
29         (processor_target_table): Use generic costs for Core 2 and Core i7.
30         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
31         (ix86_issue_rate): Remove entry for Core 2.
32         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
33         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
34         (TARGET_CORE2): Update.
35         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
36         (PROCESSOR_CORE2): Remove.
37
38 2010-12-02  Richard Guenther  <rguenther@suse.de>
39
40         * lto-streamer.h (LTO_major_version): Bump to 2.
41
42 2010-12-02  Richard Guenther  <rguenther@suse.de>
43
44         PR lto/44871
45         * gimple.c (canonical_type_hash_cache): New hashtable.
46         (gimple_type_hash): Make a wrapper around ...
47         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
48         (gimple_canonical_type_hash): Likewise.
49         (gtc_visit): Take a gtc_mode argument.
50         (gimple_types_compatible_p_1): Likewise. Do not compare struct
51         tag names or field names when computing canonical types.
52         (gimple_types_compatible_p): Adjust.
53         (visit): Take a gtc_mode argument.
54         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
55         names or field names when computing hashes of canonical types.
56         (gimple_register_canonical_type): Use gimple_canonical_type_hash
57         for the hash.
58         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
59         (free_gimple_type_tables): Free canonical_type_hash_cache.
60
61 2010-12-02  Richard Guenther  <rguenther@suse.de>
62             Ira Rosen  <irar@il.ibm.com>
63
64         PR tree-optimization/46663
65         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
66         FUNCTION_DECL exists and that it's a builtin.
67
68 2010-12-02  Jie Zhang  <jie@codesourcery.com>
69
70         PR middle-end/46674
71         * varasm.c (compute_visible_aliases): Handle user set
72         assembler name.
73
74 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
75
76         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
77         thinko regarding setting -mno-<xxx> debug switches.
78         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
79
80 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
81
82         * intl.c: Don't include tm.h.
83         * Makefile.in (intl.o): Don't depend on $(TM_H).
84
85 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
86
87         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
88         unused warning.
89         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
90
91 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
92
93         * graphite-sese-to-poly.c (analyze_drs): Removed.
94         (build_scop_drs): Do not call analyze_drs.
95         (analyze_drs_in_stmts): New.
96         (insert_stmts): New.
97         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
98         (insert_out_of_ssa_copy_on_edge): Same.
99         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
100         (rewrite_phi_out_of_ssa): Same.
101         (rewrite_cross_bb_scalar_dependence): Same.
102         (split_reduction_stmt): Move data references in the new basic blocks.
103         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
104
105 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
106
107         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
108
109 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
110
111         PR middle-end/45297
112         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
113         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
114         * graphite-poly.h (new_poly_bb): Update declaration.
115         (gbb_from_bb): Moved here...
116         (pbb_from_bb): New.
117         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
118         Removed.
119         (graphite_stmt_p): Removed.
120         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
121         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
122         new_poly_bb.
123         (build_scop_bbs_1): Do not pass in sbitmap reductions.
124         (build_scop_bbs): Same.
125         (gbb_from_bb): ... from here.
126         (add_conditions_to_constraints): Moved up.
127         (analyze_drs): New.
128         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
129         not contain data references.
130         (new_pbb_from_pbb): New.
131         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
132         block is split.
133         (rewrite_close_phi_out_of_ssa): Update call to
134         insert_out_of_ssa_copy_on_edge.
135         (rewrite_reductions_out_of_ssa): Now static.
136         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
137         (split_pbb): New.
138         (split_reduction_stmt): Call split_pbb.
139         (translate_scalar_reduction_to_array): Pass in the scop, do not
140         pass in the sbitmap reductions.
141         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
142         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
143         (rewrite_commutative_reductions_out_of_ssa): Same.
144         (build_poly_scop): Call build_scop_bbs,
145         rewrite_commutative_reductions_out_of_ssa,
146         rewrite_reductions_out_of_ssa, and
147         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
148         before scop_to_lst.
149         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
150         Removed declaration.
151         (rewrite_reductions_out_of_ssa): Same.
152         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
153         (build_scop_bbs): Same.
154         * graphite.c (graphite_transform_loops): Do not initialize reductions.
155         Do not call build_scop_bbs,
156         rewrite_commutative_reductions_out_of_ssa,
157         rewrite_reductions_out_of_ssa, and
158         rewrite_cross_bb_scalar_deps_out_of_ssa.
159         * sese.h (struct gimple_bb): Add field pbb.
160         (GBB_PBB): New.
161
162 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
163
164         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
165         New.
166         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
167         handle_scalar_deps_crossing_scop_limits.
168         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
169         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
170
171 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
172
173         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
174         when replacing a constant in an ADDR_EXPR.
175
176 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
177
178         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
179         for the stride.
180         (lst_do_strip_mine): Same.
181         (scop_do_strip_mine): Same.
182         * graphite-poly.c (apply_poly_transforms): Update call to
183         scop_do_strip_mine.
184         * graphite-poly.h (scop_do_strip_mine): Update declaration.
185
186 2010-12-01  Jan Hubicka  <jh@suse.cz>
187
188         * tree.c (build_common_builtin_nodes): Do not initialize
189         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
190         * builtins.c (expand_builtin_profile_func): Remove.
191         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
192         BUILT_IN_PROFILE_FUNC_EXIT.
193         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
194         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
195         * gimplify.c (gimplify_function_tree): Reorganize code calling
196         profiling functions.
197
198 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
199
200         * opts.c: Expand comment on tm.h include.
201
202 2010-12-01  Yao Qi  <yao@codesourcery.com>
203
204         * config/arm/predicates.md ("vfp_register_operand"): Return true for
205         VFP_D0_D7_REGS classes.
206
207 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
208
209         * common.opt (flag_stack_check): New Variable entry.
210         (fcompare-debug-second): Use Var.
211         * flags.h (flag_compare_debug, flag_stack_check): Remove.
212         * opts.c (flag_compare_debug): Remove.
213         (common_handle_option): Don't handle OPT_fcompare_debug_second.
214         Set opts->x_flag_stack_check for OPT_fstack_check_.
215         * toplev.c (flag_stack_check): Remove.
216
217 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
218
219         * common.opt (main_input_filename, main_input_basename,
220         main_input_baselength): New Variable entries.  From toplev.c.
221         * final.c (output_quoted_string): Move from toplev.c.
222         * output.h (output_quoted_string): Move from toplev.h.
223         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
224         access main_input_filename, main_input_baselength and
225         main_input_basename.
226         * targhooks.c: Include intl.h and opts.h.
227         (option_affects_pch_p, default_get_pch_validity): Move from
228         toplev.c.
229         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
230         Move from toplev.h.
231         * toplev.c (main_input_filename, main_input_basename,
232         main_input_baselength): Move to common.opt.
233         (output_quoted_string): Move to final.c.
234         (warn_deprecated_use): Move to tree.c.
235         (option_affects_pch_p, default_get_pch_validity,
236         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
237         * toplev.h (skip_leading_substring): Move to tree-dump.c.
238         (warn_deprecated_use): Move to tree.h.
239         (output_quoted_string): Move to output.h.
240         (main_input_filename, main_input_basename, main_input_baselength):
241         Move to common.opt.
242         (default_get_pch_validity, default_pch_valid_p): Move to
243         targhooks.c.
244         * tree-dump.c (skip_leading_substring): Move from toplev.h.
245         * tree.c (warn_deprecated_use): Move from toplev.c.
246         * tree.h (warn_deprecated_use): Move from toplev.h.
247         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
248         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
249         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
250         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
251         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
252         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
253         config/mcore/mcore.c, config/mep/mep.c,
254         config/microblaze/microblaze.c, config/mips/mips.c,
255         config/mmix/mmix.c, config/mn10300/mn10300.c,
256         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
257         config/picochip/picochip.c, config/s390/s390.c,
258         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
259         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
260         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
261         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
262         varasm.c, xcoffout.c: Don't include toplev.h.
263         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
264         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
265         varasm.o, xcoffout.o): Update dependencies.
266         * config/arm/t-arm (arm.o): Update dependencies.
267         * config/spu/t-spu-elf (spu.o): Update dependencies.
268
269 2010-12-01  Richard Guenther  <rguenther@suse.de>
270
271         PR tree-optimization/46730
272         * value-prof.c (gimple_ic): Always generate a separate merge BB.
273
274 2010-11-30  Ian Lance Taylor  <iant@google.com>
275
276         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
277         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
278         * config/i386/linux64.h (ASM_SPEC): Likewise.
279         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
280         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
281         * config/i386/vxworks.h (ASM_SPEC): Likewise.
282         * config/i386/x86-64.h (ASM_SPEC): Likewise.
283         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
284         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
285
286 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
287
288         * c-decl.c (finish_function): Call objc_finish_function in
289         Objective-C.
290         * c-typeck.c (convert_for_assignment): Do not call
291         objc_type_quals_match().
292
293 2010-11-30  Richard Guenther  <rguenther@suse.de>
294
295         PR tree-optimization/46722
296         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
297         operands as arguments.
298         (execute_optimize_widening_mul): Also handle power of two as
299         multiplication.
300
301 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
302
303         PR middle-end/46709
304         * cgraphunit.c (process_function_and_variable_attributes): Fix
305         cut'n'pasteo.
306
307 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
308
309         * hwint.c:  New.  Extracted from toplev.c.
310         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
311         Move from toplev.h.
312         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
313         Move to hwint.c.
314         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
315         Move to hwint.h.
316         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
317         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
318         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
319         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
320         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
321         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
322         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
323         tree-vrp.c: Don't include toplev.h.
324         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
325         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
326         toplev.h in generated output.
327         * Makefile.in (OBJS-common): Add hwint.o.
328         Dependencies for above files changed to remove toplev.h.
329         (hwint.o): New.
330         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
331         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
332         toplev.h.
333         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
334         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
335
336 2010-11-30  Richard Guenther  <rguenther@suse.de>
337
338         PR tree-optimization/46717
339         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
340         call.  Manually create EH edges for the direct call and update
341         target PHI nodes.
342
343 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
344
345         * diagnostic-core.h: Include bversion.h.
346         * toplev.h: Don't include input.h or bversion.h.
347         (parse_optimize_options): Don't declare here.
348         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
349         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
350         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
351         config/host-darwin.c, config/i386/host-cygwin.c,
352         config/i386/host-mingw32.c, config/i386/msformat-c.c,
353         config/i386/netware.c, config/i386/nwld.c,
354         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
355         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
356         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
357         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
358         config/score/score3.c, config/score/score7.c,
359         config/sh/symbian-base.c, config/sh/symbian-c.c,
360         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
361         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
362         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
363         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
364         graphite-blocking.c, graphite-clast-to-gimple.c,
365         graphite-dependences.c, graphite-flattening.c,
366         graphite-interchange.c, graphite-poly.c,
367         graphite-scop-detection.c, graphite.c, haifa-sched.c,
368         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
369         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
370         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
371         lto-opts.c, lto-section-in.c, lto-section-out.c,
372         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
373         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
374         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
375         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
376         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
377         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
378         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
379         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
380         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
381         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
382         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
383         include toplev.h.
384         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
385         toplev.h.  Dependencies for above files and c-family files changed
386         to remove $(TOPLEV_H) or toplev.h.
387         (C_TREE_H): Don't include $(TOPLEV_H).
388         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
389         bversion.h.
390         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
391         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
392         config/t-darwin, config/t-sol2,
393         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
394         Dependencies for above files changed to remove $(TOPLEV_H) or
395         toplev.h.
396
397 2010-11-30  Richard Guenther  <rguenther@suse.de>
398
399         PR lto/44986
400         * gcc.c (main): Use the first input with a compiler as infile
401         for link spec processing.
402
403 2010-11-30  Richard Guenther  <rguenther@suse.de>
404
405         PR lto/45949
406         * cgraphunit.c (ipa_passes): Stop after errors from
407         small IPA passes.
408
409 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
410
411         * gcc-plugin.h: Include coretypes.h.
412         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
413
414 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
415
416         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
417         * ggc-none.c (ggc_internal_alloc_zone_stat)
418         (ggc_internal_cleared_alloc_zone_stat): New.
419
420 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
421
422         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
423         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
424         (rs6000_emit_prologue): Don't set PIC register if
425         TARGET_SINGLE_PIC_BASE.
426         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
427         * doc/invoke.texi (msingle-pic-base): Document.
428
429 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
430
431         PR driver/46712
432         * exec-tool.in (id): New.
433         Check and export LT_RCU_$id instead of LT_RCU.
434
435 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
436
437         PR tree-optimization/46675
438         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
439         in offset calculation.
440
441 2010-11-29  Jan Hubicka  <jh@suse.cz>
442
443         * collect2.c (main): Do not imply verbose output with
444         LTO and linker plugin.
445
446 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
447
448         * dwarf2out.c (print_die): Print the address of the current DIE or
449         of any DIE referenced by the current one.
450
451 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
452
453         PR debug/46101
454         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
455         function.
456         (scope_die_for, gen_type_die_for_member): Replace uses of
457         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
458
459 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
460
461         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
462         (darwin_asm_declare_object_name): Correct spelling.
463         (darwin_output_aligned_bss): Likewise.
464
465 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
466             Mike Stump  <mrs@gcc.gnu.org>
467
468         PR target/26427
469         PR target/33120
470         PR testsuite/35710
471         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
472         (ASM_OUTPUT_LOCAL): Likewise.
473         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
474         (darwin_output_aligned_bss): Likewise.
475         (darwin_asm_output_aligned_decl_local): Likewise.
476         (darwin_asm_output_aligned_decl_common): Likewise.
477         (darwin_use_anchors_for_symbol_p): Likewise.
478         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
479         (TARGET_ASM_OUTPUT_ANCHOR): Define.
480         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
481         (DARWIN_SECTION_ANCHORS): Set to 1.
482         * config/darwin.c (emit_aligned_common): New var.
483         (darwin_init_sections): Check that the Darwin private zero-size section
484         marker is in range.
485         (darwin_text_section): Check for zero-sized objects.
486         (darwin_mergeable_string_section): Likewise.
487         (darwin_mergeable_constant_section): Likewise.
488         (machopic_select_section): Adjust to check for zero-sized objects.
489         Assert that OBJC meta data are non-zero sized.
490         (darwin_asm_declare_object_name): New.
491         (darwin_asm_declare_constant_name): Adjust for zero-sized
492         object sections.
493         (BYTES_ZFILL): Define.
494         (darwin_emit_weak_or_comdat): New.
495         (darwin_emit_local_bss): New.
496         (darwin_emit_common): New.
497         (darwin_output_aligned_bss): New.
498         (darwin_asm_output_aligned_decl_common): New.
499         (darwin_asm_output_aligned_decl_local): New.
500         (darwin_file_end): Disable subsections_via_symbols when section
501         anchoring is active.
502         (darwin_asm_output_anchor): Re-enable.
503         (darwin_use_anchors_for_symbol_p): New.
504         (darwin_override_options): Check for versions that can emit
505         aligned common.  Update usage of flags to current.
506         * config/darwin-sections.def: Update comments and flags for
507         non-anchor sections.  zobj_const_section, zobj_data_section,
508         zobj_bss_section, zobj_const_data_section: New.
509         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
510         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
511         (L2_MAX_OFILE_ALIGNMENT): Define.
512         (ASM_OUTPUT_ALIGNED_BSS): Define.
513         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
514         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
515         (SECTION_NO_ANCHOR): Define.
516         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
517         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
518
519 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
520
521         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
522         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
523         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
524         Conditionally define.
525         (GET_ENVIRONMENT): Poison.
526         * configure.ac: Don't test for mincore.
527         * configure: Regenerate.
528         * config.in: Regenerate.
529         * collect2-aix.c: Don't include <sys/mman.h>.
530         * collect2.c: Don't include <signal.h>.
531         (SIGCHLD): Don't define.
532         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
533         * config/alpha/alpha.c: Include "splay-tree.h" instead of
534         <splay-tree.h>.
535         * config/arm/arm.c (arm_target_help): Use getenv instead of
536         GET_ENVIRONMENT.
537         * config/avr/driver-avr.c: Don't include <stdlib.h>.
538         * config/frv/frv.c: Don't include <ctype.h>.
539         * config/host-darwin.c: Don't include <sys/mman.h>.
540         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
541         (MAP_FAILED): Don't define.
542         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
543         * config/host-solaris.c: Don't include <sys/mman.h>.
544         * config/i386/cygming.h: Don't include <stdio.h>.
545         * config/i386/driver-i386.c: Don't include <stdlib.h>.
546         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
547         * config/iq2000/iq2000.c: Don't include <signal.h>.
548         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
549         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
550         * config/mep/mep-pragma.c: Don't include <stdio.h>.
551         * config/microblaze/microblaze.c: Don't include <signal.h>.
552         * config/mips/mips.c: Don't include <signal.h>.
553         * config/rs6000/host-darwin.c: Don't include <signal.h>.
554         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
555         * defaults.h (GET_ENVIRONMENT): Don't define.
556         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
557         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
558         (SIGCHLD, MAP_FAILED, kill): Don't define.
559         (process_command): Use getenv instead of GET_ENVIRONMENT.
560         * genhooks.c: Don't include <string.h>.
561         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
562         <sys/types.h>.
563         (MAP_FAILED): Don't define.
564         * ggc-page.c Don't include <sys/mman.h>.
565         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
566         * ggc-zone.c: Don't include <sys/mman.h>.
567         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
568         * graph.c: Include "config.h" instead of <config.h>.
569         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
570         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
571         (SIGCHLD, kill): Don't define.
572         * mips-tfile.c: Don't include <signal.h>.
573         * opts.c: Don't include <signal.h> or <sys/resource.h>.
574         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
575         * passes.c: Don't include <signal.h>, <sys/resource.h> or
576         <sys/times.h>.
577         * sparseset.h: Don't include <assert.h>.
578         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
579         * tlink.c: Don't include "libiberty.h".
580         * toplev.c: Don't include <signal.h> or <sys/times.h>.
581         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
582         * tree-switch-conversion.c: Don't include <signal.h>.
583         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
584
585 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
586
587         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
588         c_parser_objc_try_catch_finally_statement for consistency with the
589         C++ parser.  Parse @catch(...) and pass NULL_TREE to
590         objc_begin_catch_clause() in that case.  Improved error recovery.
591         Reorganized code to be almost identical to
592         cp_parser_objc_try_catch_finally_statement.
593
594 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
595
596         PR tree-optimization/46621
597         * gimple.h: Don't include tm.h or hard-reg-set.h .
598         * Makefile.in (GIMPLE_H): Remove $(TM_H).
599
600         PR bootstrap/44756
601         * cppbuiltin.c: Include target.h .
602         (define_builtin_macros_for_type_sizes):
603         Use targetm.float_words_big_endian.
604
605 2010-11-27  Jan Hubicka  <jh@suse.cz>
606
607         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
608         and output cold_text_section_label.
609         (dwarf2out_init): Don't do that there.
610         (dwarf2out_finish): Handle cold section end label only if cold
611         section was used.
612
613 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
614
615         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
616         VLA variables.
617
618 2010-11-27  Richard Guenther  <rguenther@suse.de>
619
620         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
621         (gimple_assign_ssa_name_copy_p): Likewise.
622         (gimple_assign_unary_nop_p): Use is_gimple_assign.
623         (is_gimple_cast): Remove.
624         (gimple_assign_single_p): Move ...
625         * gimple.h (gimple_assign_single_p): ... here.
626         (is_gimple_cast): Remove.
627         (gimple_assign_rhs_code): Simplify.
628         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
629         instead of is_gimple_cast.
630         * ipa-type-escape.c (look_for_casts): Likewise.
631
632 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
633
634         * doc/options.texi (Enum, EnumValue): Document new record types.
635         (Enum): Document new option flag.
636         * opt-functions.awk
637         * optc-gen.awk: Handle enumerated option arguments.
638         * opth-gen.awk: Handle enumerated option arguments.
639         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
640         enum_value_to_arg): New.
641         (decode_cmdline_option): Handle enumerated arguments.
642         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
643         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
644         * opts.c (print_filtered_help, print_specific_help): Take
645         lang_mask arguments.
646         (print_filtered_help): Handle printing values of enumerated
647         options.  Print possible arguments for enumerated options.
648         (print_specific_help): Update call to print_filtered_help.
649         (common_handle_option): Update calls to print_specific_help.  Use
650         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
651         handle OPT_ffp_contract_, OPT_fexcess_precision_,
652         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
653         OPT_fira_region_ here.
654         * opts.h (enum cl_var_type): Add CLVC_ENUM.
655         (struct cl_option): Add var_enum.
656         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
657         struct cl_enum, cl_enums, cl_enums_count): New.
658         (CL_ERR_ENUM_ARG): Define.
659         (CL_ERR_NEGATIVE): Update value.
660         (enum_value_to_arg): Declare.
661         * common.opt (flag_ira_algorithm, flag_ira_region,
662         flag_fp_contract_mode, flag_excess_precision_cmdline,
663         default_visibility, flag_tls_default): Remove Variable entries.
664         (help_enum_printed): New Variable.
665         (fdiagnostics-show-location=): Use Enum.  Add associated
666         SourceInclude, Enum and EnumValue entries.
667         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
668         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
669         associated Enum and EnumValue entries.
670
671 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
672
673         PR target/46623
674         * config/microblaze/microblaze.c (microblaze_block_move_straight):
675         Use XALLOCAVEC.
676         (microblaze_option_override): Don't use C++ style comments.
677         (save_restore_insns): Remove unused variable base_offset.
678         (microblaze_expand_prologue): Remove unused variable insn.
679         (microblaze_secondary_reload): Adjust type to match target.h .
680         (microblaze_elf_in_small_data_p): Move declarations to start of block.
681         (microblaze_expand_move): Likewise.
682         * config/microblaze/microblaze.h (LARGE_INT):
683         Avoid signed / unsigned comparisons.
684         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
685         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
686         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
687
688 2010-11-26  Michael Matz  <matz@suse.de>
689
690         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
691
692         * passes.c (init_optimization_passes): Remove superfluous
693         copy-prop pass.
694
695 2010-11-26  Richard Guenther  <rguenther@suse.de>
696
697         PR lto/46648
698         * gimple.c (gtc_visit): Do not return true for members of an
699         SCC still being processed but the current lattice value of
700         the member.  Treat SCC members comparison state as lattice,
701         starting at equal, eventually dropping to unequal.
702         (gimple_types_compatible_p_1): Likewise.
703
704 2010-11-26  Richard Guenther  <rguenther@suse.de>
705
706         PR middle-end/46559
707         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
708         for location list processing.
709
710 2010-11-26  Richard Guenther  <rguenther@suse.de>
711
712         PR lto/46560
713         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
714         flags manually.
715
716 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
717
718         * config/s390/s390.c (print_operand_address): Replace assert with
719         error message.
720         (print_operand): Replace assertions, gcc_unreachable and
721         fatal_insn with error messages.
722
723 2010-11-26  Richard Guenther  <rguenther@suse.de>
724
725         PR tree-optimization/46665
726         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
727
728 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
729
730         * config/arm/arm.c (arm_option_override): enable loop array
731         prefetching at -O3 for suitable targets, and configure params.
732         * config/arm/arm-protos.h (struct tune_params): Add fields for
733         configuring loop array prefetching.
734
735 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
736
737         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
738
739 2010-11-26  Richard Guenther  <rguenther@suse.de>
740
741         PR tree-optimization/46664
742         * tree-affine.c (aff_combination_to_tree): Add rest last.
743
744 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
745
746         PR target/33637
747         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
748         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
749         * configure: Regenerated.
750         * exec-tool.in: Not quoting command, may have extra arguments.
751
752 2010-11-26  Richard Guenther  <rguenther@suse.de>
753
754         PR tree-optimization/46528
755         PR debug/46338
756         * profile.c (branch_prob): Do not split blocks based on locations
757         from debug statements.
758
759 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
760
761         PR middle-end/46647
762         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
763         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
764
765         PR bootstrap/45700
766         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
767         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
768         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
769         build6_loc): Define.
770         * fold-const.c (protected_set_expr_location_unshare): New inline.
771         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
772         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
773         pedantic_omit_one_operand_loc, omit_two_operands_loc,
774         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
775         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
776         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
777         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
778         instead of buildN followed by SET_EXPR_LOCATION or
779         protected_set_expr_location.
780         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
781         Use buildN_stat_loc instead of buildN_stat followed by
782         SET_EXPR_LOCATION.
783
784 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
785
786         * Makefile.in (s-tm-texi): Remove spurous tab.
787
788 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
789
790         PR debug/46258
791         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
792         debug stmts.
793
794 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
795
796         * toplev.c (finalize): Add no_backend parameter.  Don't finish
797         passes when preprocessing only.  Adjust...
798         (do_compile): ... caller.
799
800 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
801
802         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
803         flag_unsafe_math_optimizations.
804         (negsf2): Likewise.
805         Move fnegabs related patterns together.  Only use fmpynfadd instruction
806         to negate a multiply if !flag_signed_zeros is true.
807
808 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
809
810         * gengtype-state.c (read_state_structures): Initialize "previous".
811
812 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
813             Jeremie Salvucci  <jeremie.salvucci@free.fr>
814
815         * gengtype-state.c: Add new file.
816
817         * gengtype.c (type count): New variable.
818         (new_structure, find_param_structure, create_pointer)
819         (create_array): Use it to set state_number in types.
820         (dump_everything): Improve comment.
821         (main): Call read_state and write_state. Print type_count.
822
823         * gengtype.h (type_lineloc): New function.
824         (read_state, write_state): New declarations.
825
826         * Makefile.in (GENGTYPE_FLAGS): New variable.
827         (s-gtype): Run gengtype twice and generate gtype.state.
828         (build/gengtype-state.o): New rule.
829         (build/gengtype$(build_exeext)): Link gengtype-state.o.
830         (mostlyclean): Update comment.  Remove gtype.state.
831
832 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
833
834         PR middle-end/46637
835         * combine.c (try_combine): When substing i2dest for i2src, pass
836         1 as last argument even if
837         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
838
839 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
840
841         PR middle-end/46647
842         * builtins.c (target_char_cast): Check INTEGER_CST instead of
843         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
844
845 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
846
847         * target.def (supports_split_stack, except_unwind_info): Take
848         gcc_options parameters.
849         * targhooks.c (default_except_unwind_info,
850         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
851         gcc_options parameters.
852         * targhooks.h (default_except_unwind_info,
853         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
854         prototypes.
855         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
856         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
857         Document that hooks must not be modified.
858         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
859         * doc/tm.texi: Regenerate.
860         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
861         &global_options to targetm.except_unwind_info.
862         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
863         dwarf2out_begin_prologue, dwarf2out_frame_init,
864         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
865         &global_options to targetm.except_unwind_info.
866         * except.c (init_eh, finish_eh_generation,
867         gate_convert_to_eh_region_ranges,
868         output_one_function_exception_table): Pass &global_options to
869         targetm.except_unwind_info.
870         * expr.c (build_personality_function): Pass &global_options to
871         targetm.except_unwind_info.
872         * function.c (expand_function_end): Pass &global_options to
873         targetm.except_unwind_info.
874         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
875         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
876         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
877         and targetm.supports_split_stack.  Remove assertions about opts
878         and opts_set.
879         (common_handle_option): Remove assertions about opts, opts_set and dc.
880         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
881         &global_options to targetm.except_unwind_info.
882         * tree.c (build_common_builtin_nodes: Pass &global_options to
883         targetm.except_unwind_info.
884         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
885         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
886         thumb1_expand_prologue, thumb1_output_function_prologue,
887         arm_unwind_emit, arm_output_fn_unwind): Update calls to
888         arm_except_unwind_info.
889         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
890         parameter.
891         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
892         parameter.
893         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
894         ia64_reorg, ia64_asm_unwind_emit): Update calls to
895         ia64_except_unwind_info.
896         * config/pa/pa.c (pa_option_override): Pass &global_options to
897         targetm.except_unwind_info.
898         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
899         Remove prototype.
900
901 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
902
903         * cgraphunit.c (process_function_and_variable_attributes):
904         Mark dllexport-ed function/variables as needed.
905         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
906         as externally visible.
907
908 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
909
910         PR rtl-optimization/46585
911         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
912         (vinsn_init): Skip computation of dependencies for local NOPs.
913         (vinsn_delete): Don't try to free regsets for local NOPs.
914         (setup_nop_and_exit_insns): Change definition of nop_pattern.
915
916 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
917
918         PR rtl-optimization/46602
919         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
920         (tidy_control_flow): Here.
921
922 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
923             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
924
925         PR bootstrap/45888
926         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
927         Fix target.def pathname in timestamp comparison.
928
929 2010-11-24  Richard Henderson  <rth@redhat.com>
930
931         * config/ia64/predicates.md (pmpyshr_operand): New.
932         * config/ia64/ia64.c (ia64_expand_unpack): New.
933         (ia64_expand_widen_mul_v4hi): New.
934         (ia64_expand_widen_sum): Update for pattern renames.
935         (ia64_expand_dot_prod_v8qi): Likewise.
936         * config/ia64/ia64-protos.h: Update.
937         * config/ia64/vect.md (vecwider): New mode attribute.
938         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
939         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
940         (pmpyshr2, pmpyshr2_u): New.
941         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
942         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
943         (mulv2si3): New.
944         (vec_pack_ssat_v4hi): Rename from pack2_sss.
945         (vec_pack_usat_v4hi): Rename from *pack2_uss.
946         (vec_pack_ssat_v2si): Rename from pack4_sss.
947         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
948         vec_select operation.
949         (vec_interleave_highv8qi): Similarly.
950         (mux1_alt): Rename from *mux1_alt.
951         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
952         (vec_interleave_lowv4hi): Rename from unpack2_l.
953         (vec_interleave_highv4hi): Rename from unpack2_h.
954         (mix2_r): Rename from *mix2_r.
955         (mix2_l): Similarly.
956         (vec_extract_evenodd_helper): New.
957         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
958         (vec_interleave_lowv2si): Rename from *unpack4_l.
959         (vec_interleave_highv2si): Rename from *unpack4_h.
960         (vec_extract_evenv2si, vec_extract_oddv2si): New.
961         (vec_interleave_lowv2sf): Rename from fmix_r.
962         (vec_interleave_highv2sf): Rename from *fmix_l.
963         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
964         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
965         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
966         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
967
968 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
969
970         * targhooks.c (default_except_unwind_info): Remove
971         MUST_USE_SJLJ_EXCEPTIONS case.
972         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
973         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
974         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
975         * doc/tm.texi: Regenerate.
976         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
977
978 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
979
980         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
981         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
982         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
983         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
984         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
985
986 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
987
988         PR target/46519
989         * config/i386/i386.c (ix86_expand_call): Don't check
990         TREE_THIS_VOLATILE.
991
992 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
993
994         PR target/46519
995         * config/i386/i386.c (upper_128bits_state): New.
996         (block_info_def): Remove upper_128bits_set and done.  Add state,
997         referenced, count, processed and rescanned.
998         (check_avx256_stores): Updated.
999         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1000         Call note_stores only if needed.  Set referenced and count.
1001         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1002         (rescan_move_or_delete_vzeroupper): New.
1003         (move_or_delete_vzeroupper):  Process and rescan all all basic
1004         blocks instead of predecessor blocks of all exit points.
1005         (ix86_option_override_internal): Enable vzeroupper optimization
1006         only for -fexpensive-optimizations and not optimizing for size.
1007         (use_avx256_p): Removed.
1008         (init_cumulative_args): Don't set use_avx256_p.
1009         (ix86_function_arg): Likewise.
1010         (ix86_expand_move): Likewise.
1011         (ix86_expand_vector_move_misalign): Likewise.
1012         (ix86_local_alignment): Likewise.
1013         (ix86_minimum_alignment): Likewise.
1014         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1015         vzeroupper.
1016         (ix86_expand_call): Likewise.
1017
1018         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1019         and use_avx256_p.  Add rescan_vzeroupper_p.
1020
1021 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1022
1023         * toplev.c: Include <signal.h>.
1024
1025 2010-11-24  Richard Guenther  <rguenther@suse.de>
1026
1027         PR lto/43218
1028         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1029         conflicting function signatures as non-inlineable.
1030
1031 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1032
1033         PR rtl-optimization/46614
1034         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1035          (deps_analyze_insn): Mark JUMP_INSNs in
1036         last_pending_memory_flush that weren't added through
1037         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1038         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1039         on INSN_LIST instead of JUMP_P check on its operand.
1040         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1041
1042 2010-11-24  Richard Guenther  <rguenther@suse.de>
1043
1044         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1045
1046 2010-11-24  Richard Guenther  <rguenther@suse.de>
1047
1048         PR lto/46606
1049         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1050         a FIELD_DECL that is type correct issue a warning and fixup
1051         with a VIEW_CONVERT_EXPR.
1052
1053 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1054
1055         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1056         Explain static numbering of dump files.
1057
1058 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1059
1060         * common.opt (user_vect_verbosity_level): New Variable entry.
1061         (ftree-vectorizer-verbose=): Mark as UInteger.
1062         * flag-types.h (enum vect_verbosity_levels): Move from enum
1063         verbosity_levels in tree-vectorizer.h.
1064         * opts.c: Don't include tree.h.
1065         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1066         gcc_options parameter; take integer option argument.
1067         (common_handle_option): Update call to vect_set_verbosity_level.
1068         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1069         (vect_set_verbosity_level): Move to opts.c.
1070         (vect_verbosity_level, vect_print_dump_info): Update for change of
1071         enum name.
1072         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1073         (vect_print_dump_info): Update for change of enum name.
1074         * tree.h (vect_set_verbosity_level): Remove.
1075         * Makefile.in (opts.o): Update dependencies.
1076
1077 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1078
1079         PR middle-end/46629
1080         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1081         instead of insn with any_condjump_p.
1082
1083 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1084
1085         * config/mips/loongson.md: Change the description comment of the file
1086         and update the copyright years.
1087         (define_insn "<u>div<mode>3): Add loongson3a support.
1088         (define_insn "<u>mod<mode>3"): Likewise.
1089         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1090         mul<mode>3_mul3_loongson.
1091         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1092         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1093
1094 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1095
1096         * common.opt (initial_max_fld_align, flag_debug_asm,
1097         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1098         flag_print_asm_name, graph_dump_format, help_printed,
1099         help_columns, flag_opts_finished): New Variable entries.
1100         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1101         frandom-seed=): Mark deferred.
1102         (fsched-verbose=): Use UInteger and Var.
1103         * flags.h (set_struct_debug_option, flag_print_asm_name,
1104         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1105         graph_dump_format): Don't declare here.
1106         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1107         * opts-global.c: Include dbgcnt.h and debug.h.
1108         (decode_options): Pass location to finish_options.
1109         (handle_common_deferred_options): Check flag_dump_all_passed.
1110         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1111         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1112         OPT_fstack_limit.
1113         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1114         (set_struct_debug_option): Add location_t parameter.  Update
1115         recursive call.  Use error_at.
1116         (default_options_optimization): Use error_at.
1117         (finish_options): Add location_t parameter.  Use
1118         opts->x_flag_opts_finished instead of first_time_p.  Use
1119         opts->x_optimize instead of optimize.  Use error_at.  Pass
1120         location to inform.
1121         (print_filtered_help): Use opts->x_help_printed to track what
1122         options have been printed.
1123         (print_specific_help): Use opts->x_help_columns to track number of
1124         columns.
1125         (common_handle_option): Pass locations and gcc_options pointers to
1126         more functions.  Use warning_at instead of fnotice and warning.
1127         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1128         OPT_fdebug_prefix_map_.  Use error_at.  Set
1129         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1130         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1131         OPT_fsched_verbose_.
1132         (handle_param): Add location_r parameter.  Use error_at.
1133         (set_debug_level): Add location_r parameter.  Use error_at and
1134         warning_at.
1135         (setup_core_dumping): Add diagnostic_context parameter.
1136         (decode_d_option): Add gcc_options, location_t and
1137         diagnostic_context parameters and use them instead of global
1138         state.  Use warning_at.
1139         (enable_warning_as_error): Use error_at.
1140         * opts.h (finish_options): Update prototype.
1141         (set_struct_debug_option): Declare here.
1142         * rtl.h (fix_sched_param): Remove.
1143         * stor-layout.c (initial_max_fld_align): Remove.
1144         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1145         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1146         (process_options): Set maximum_field_alignment.
1147         * tree.h (initial_max_fld_align) Don't declare here.
1148         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1149
1150 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1151
1152         * flag-types.h (struct visibility_flags): Don't declare here.
1153         * flags.h (strip_off_ending, fast_math_flags_set_p,
1154         fast_math_flags_struct_set_p): Declare here.
1155         (visibility_options): Don't declare here.
1156         * opts-common.c (option_enabled, get_option_state): Move from
1157         opts.c.
1158         * opts-global.c: Include diagnostic.h instead of
1159         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
1160         and toplev.h.
1161         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1162         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1163         print_ignored_options, unknown_option_callback,
1164         post_handling_callback, lang_handle_option, add_input_filename,
1165         read_cmdline_options, initial_lang_mask, init_options_once,
1166         decode_cmdline_options_to_array_default_mask,
1167         set_default_handlers, decode_options): Move from opts.c.
1168         (print_ignored_options): Use warning_at instead of saving and
1169         restoring input_location.
1170         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
1171         instead of expr.h.  Don't include langhooks.h, except.h or
1172         lto-streamer.h.  Add more comments on includes.
1173         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
1174         toplev.c.
1175         (visibility_options): Move to c-family/c-common.c.
1176         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1177         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1178         print_ignored_options, unknown_option_callback,
1179         post_handling_callback, lang_handle_option, add_input_filename,
1180         read_cmdline_options, initial_lang_mask, init_options_once,
1181         decode_cmdline_options_to_array_default_mask,
1182         set_default_handlers, decode_options): Move to opts-global.c.
1183         (target_handle_option, default_options_optimization,
1184         finish_options, common_handle_option): Remove static.
1185         (option_enabled, get_option_state): Move to opts-common.c.
1186         * opts.h (common_handle_option, target_handle_option,
1187         finish_options, default_options_optimization): Declare.
1188         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1189         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1190         opts.c.
1191         * toplev.h (strip_off_ending, decode_d_option,
1192         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1193         declare here.
1194         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1195
1196 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1197
1198         PR driver/42690
1199         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1200         options, replace by call of pass-through-libs spec function to process
1201         link_gcc_c_sequence spec.
1202         (lto_libgcc_spec): Delete variable.
1203         (static_specs[]): Remove related entry.
1204         (static_spec_functions[]): Add new entry for pass-through-libs.
1205         (main): Don't generate deleted lto_libgcc_spec.
1206         (pass_through_libs_spec_func): New function to implement the new
1207         pass-through-libs spec function.
1208         * doc/invoke.texi (pass-through-libs): Document new spec function.
1209
1210 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1211
1212         * doc/options.texi (Warning, Optimization): Document.
1213
1214 2010-11-23  Jan Hubicka  <jh@suse.cz>
1215
1216         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1217         (tree_decl_with_vis): Add implicit_section_name_p.
1218         * targhooks.h (default_function_section): Declare.
1219         * target.def (function_section): New hook.
1220         * defaults.h (HOT_TEXT_SECTION_NAME,
1221         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1222         * predict.c (choose_function_section): Remove.
1223         (estimate_bb_frequencies): Do not use choose_function_section.
1224         * coretypes.h (enum node_frequency): Move here from cgraph.h
1225         * cgraph.h (enum node_frequency): Remove.
1226         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1227         unlikely_text_section_p): Remove.
1228         (named_subsection_entry): New structure.
1229         (get_text_section): New function.
1230         (default_function_section): New function.
1231         (function_section_1): Break out from ...; handle profile info.
1232         (function_section): ... here.
1233         (unlikely_text_section): Remove.
1234         (unlikely_text_section_p): Use function_section_1.
1235         (assemble_start_function): Do not initialize cold section.
1236         (default_section_type_flags): Do not special case cold subsection.
1237         (switch_to_section): Likewise.
1238         * output.h (get_text_section): Define.
1239         * config/i386/winnt.c: Do not special case cold section.
1240         * config/darwin-protos.h (darwin_function_section): Declare.
1241         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1242         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1243         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1244         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1245         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1246         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1247         * config/darwin.c (machopic_select_section): Use
1248         darwin_function_section.
1249         (darwin_function_section): New function.
1250         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1251         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1252         (TARGET_ASM_FUNCTION_SECTION): Define.
1253         * system.h (HOT_TEXT_SECTION_NAME,
1254         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1255
1256 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1257
1258         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1259         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1260
1261 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1262
1263         PR middle-end/46499
1264         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1265         following unconditional jumps.
1266
1267 2010-11-23  Richard Guenther  <rguenther@suse.de>
1268
1269         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1270
1271 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1272             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1273
1274         * gengtype.c (enum typekind, struct options)
1275         (struct nested_ptr_data, struct pair, NUM_PARAM)
1276         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1277         Move to gengtype.h.
1278         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1279         Remove static, add zero state_number.
1280         (typedefs, structures, param_structs, variables): Remove static.
1281         (create_option): Remove.
1282         (create_string_option, create_type_option, create_nested_option):
1283         New functions.
1284         (create_nested_ptr_option): Use create_nested_option.
1285         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1286         new create*option functions.
1287         (process_gc_options): Adjust for discriminated option.
1288         (output_mangled_typename): Handle TYPE_NONE.
1289         (walk_type): Test option kinds.
1290         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1291         (write_func_for_structure, write_type, write_local, write_root)
1292         (write_roots, note_def_vec, dump_options): Adjust for
1293         discriminated option.
1294
1295         * gengtype.h (typedefs, structures, param_structs, variables
1296         enum typekind): Move from gengtype.c
1297         (enum option_kind): New discriminating enumeration.
1298         (struct options): Becomes discriminated.
1299         (struct nested_ptr_data): Nove from gengtype.c
1300         (create_string_option, create_type_option, create_nested_option)
1301         (create_nested_ptr_option): New functions
1302         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1303         (UNION_OR_STRUCT_P): Move from gengtype.c
1304
1305         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1306         discriminated options.
1307
1308 2010-11-23  Richard Guenther  <rguenther@suse.de>
1309
1310         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1311         twice.  Avoid re-allocating the ops vector all the time.
1312
1313 2010-11-23  Richard Guenther  <rguenther@suse.de>
1314
1315         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1316         is_gimple_min_invariant, group tree code checks to allow
1317         combining them.
1318         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1319         of is_gimple_reg.
1320
1321 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1322
1323         * config.gcc (sparc*-*-*): Reorder.
1324
1325 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1326
1327         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1328         Remove ENABLE_CHECKING around DBGPRINTF.
1329
1330 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1331
1332         * common.opt (exit_after_options, write_symbols, debug_info_level,
1333         use_gnu_debug_info_extensions): New Variable entries.
1334         (fprofile-dir=): Use Var.
1335         * flag-types.h (enum debug_info_level): Rename to enum
1336         debug_info_levels.
1337         * flags.h (write_symbols, debug_info_level,
1338         use_gnu_debug_info_extensions): Remove declarations.
1339         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1340         (set_struct_debug_option): Make static variables const.
1341         (use_gnu_debug_info_extensions): Remove.
1342         (set_debug_level, print_filtered_help, print_specific_help,
1343         fast_math_flags_set_p): Take gcc_options parameters and use them
1344         in place of global variables.
1345         (print_filtered_help): Make new_help non-static.
1346         (print_specific_help): Update call to print_filtered_help.
1347         (common_handle_option): Update calls to print_specific_help.  Use
1348         gcc_options structure for more settings.  Make --help table
1349         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1350         set_debug_level.
1351         * toplev.c (profile_data_prefix): Remove.
1352         * toplev.h (profile_data_prefix, exit_after_options): Remove
1353         declarations.
1354         (fast_math_flags_set_p): Update prototype.
1355         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1356         Update call to fast_math_flags_set_p.
1357
1358 2010-11-22  Richard Henderson  <rth@redhat.com>
1359
1360         PR target/46434
1361         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1362         return the address register extracted.
1363         (crx_decompose_address): Update the extracted address register.
1364
1365 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1366
1367         PR driver/43335
1368         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1369
1370 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1371
1372         PR target/46608
1373         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1374         * config/picochip/picochip-protos.h: Don't include "target.h" .
1375         (picochip_secondary_reload): Don't declare.
1376
1377         PR target/46613
1378         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1379         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1380         static.
1381
1382 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1383
1384         PR bootstrap/46609
1385         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1386         (source_dot_c_frul): Likewise.
1387
1388 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1389
1390         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1391
1392 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1393
1394         PR bootstrap/44970
1395         * Makefile.in (fwprop.o) Add sparseset.h.
1396         * fwprop.c: Include sparseset.h
1397         (struct find_occurrence_data, find_occurrence_callback,
1398         find_occurrence): Remove.
1399         (active_defs, active_defs_check, register_active_defs,
1400         update_df_init, update_uses): New.
1401         (update_df): Rewrite.
1402         (try_fwprop_subst, forward_propagate_asm): Add calls to
1403         update_df_init and update_df.
1404         (fwprop_init): Allocate active_defs and active_defs_check.
1405         (fwprop_done): Free them.
1406         (fwprop, fwprop_addr): Adjust comments.
1407         * df.h (df_uses_create): Declare.
1408         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1409         (df_ref_create): Return result of df_ref_create_structure directly.
1410         (df_ref_create_structure): Call df_install_ref_incremental when
1411         no collection_rec is passed.
1412         (df_ref_record): Do not create multiword hard reg info when no
1413         collection_rec is passed.
1414         (df_uses_create): New.
1415
1416 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1417
1418         PR middle-end/43057
1419         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1420         setting location.
1421
1422 2010-11-22  Richard Guenther  <rguenther@suse.de>
1423
1424         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1425         MEM_REFs, preserve volatileness.
1426         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1427         addresses.
1428
1429 2010-11-22  Richard Guenther  <rguenther@suse.de>
1430
1431         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1432
1433 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1434
1435         PR rtl-optimization/45652
1436         * alias.c (get_reg_base_value): New.
1437         * rtl.h (get_reg_base_value): Add prototype.
1438         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1439         non-null REG_BASE_VALUE for renaming.
1440
1441 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1442             Basile Starynkevitch  <basile@starynkevitch.net>
1443
1444         * gengtype.c: Include xregex.h and obstack.h
1445         Added comments about role of get_output_file_with_visibility and
1446         our regexpr machinery.
1447         (frul_actionrout_t, struct file_rule_st): New.
1448         (hader_dot_h_frul, source_dot_c_frul): New functions.
1449         (NULL_REGEX,  NULL_FRULACT): New.
1450         (files_rules): New.
1451         (matching_file_name_substitute): New function.
1452         (get_output_file_with_visibility): Updated comments and rewritten
1453         to use the new files_rules machinery.
1454
1455         * Makefile.in (XREGEX_H): Added variable.
1456         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1457
1458 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1459
1460         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1461
1462 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1463
1464         * target.def (conditional_register_usage): Define.
1465         * reginfo.c (init_reg_sets_1): Call
1466         targetm.conditional_register_usage.
1467         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1468         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1469         for making it a hook.
1470         * doc/tm.texi: Regenerate.
1471         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1472         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1473         New function.
1474         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1475         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1476         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1477         New function.
1478         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1479         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1480         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1481         New function.
1482         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1483         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1484         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1485         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1486         (bfin_conditional_register_usage): ...here.  New function.
1487         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1488         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1489         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1490         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1491         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1492         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1493         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1494         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1495         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1496         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1497         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1498         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1499         New function.
1500         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1501         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1502         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1503         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1504         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1505         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1506         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1507         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1508         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1509         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1510         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1511         New function.
1512         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1513         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1514         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1515         Delete.
1516         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1517         static.
1518         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1519         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1520         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1521         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1522         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1523         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1524         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1525         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1526         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1527         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1528         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1529         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1530         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1531         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1532         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1533         ...here.  New function.
1534         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1535         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1536         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1537         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1538         New function.
1539         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1540         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1541         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1542         New function.
1543         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1544         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1545         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1546         Delete.
1547         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1548         static.
1549         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1550         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1551         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1552         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1553         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1554         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1555         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1556         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1557         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1558         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1559         * config/score/score.c (score_conditional_register_usage): ...here.
1560         New function.
1561         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1562         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1563         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1564         New function.
1565         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1566         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1567         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1568         New function.
1569         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1570         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1571         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1572         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1573         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1574         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1575         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1576         New function.
1577         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1578
1579 2010-11-21  Jan Hubicka  <jh@suse.cz>
1580             Dominique d'Humieres <dominiq@lps.ens.ft>
1581
1582         PR target/46510
1583         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
1584         finalize external decls.
1585
1586 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * system.h (strerror): Poison.
1589
1590 2010-11-21  Richard Henderson  <rth@redhat.com>
1591
1592         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
1593         for infq/huge_valq.
1594
1595 2010-11-21  Richard Henderson  <rth@redhat.com>
1596
1597         PR rtl-optimization/46571
1598         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
1599         (compute_hash_table_work): Use NONDEBUG_INSN_P.
1600
1601 2010-11-21  Paul Koning  <ni1d@arrl.net>
1602
1603         * config/mips/pdp11.md (negsi2): Fix wrong code.
1604
1605 2010-11-21  Paul Koning  <ni1d@arrl.net>
1606
1607         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
1608         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1609
1610 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1611
1612         * config/mips/mips.c (machine_function): Rename load_label_length to
1613         load_label_num_insns.
1614         (mips_load_label_length): Rename to...
1615         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
1616         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
1617
1618 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1619
1620         PR target/46533
1621         * config/alpha/predicates.md (direct_call_operand): Return false
1622         for !TARGET_SMALL_TEXT targets.
1623
1624 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1625
1626         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
1627         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
1628         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
1629         * doc/tm.texi: Regenerate.
1630         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
1631         HANDLE_PRAGMA_WEAK): Poison.
1632         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1633         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1634         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
1635         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
1636         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1637         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1638         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1639         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
1640         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1641         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
1642         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1643         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
1644         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1645         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1646         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1647         (HANDLE_PRAGMA_WEAK): Don't undefine.
1648         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1649         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
1650         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1651         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
1652         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1653         (HANDLE_PRAGMA_WEAK): Don't undefine.
1654         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1655         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
1656         (HANDLE_PRAGMA_PACK): Don't undefine.
1657         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
1658         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1659         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1660         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1661         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
1662         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1663         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1664         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1665         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
1666         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1667         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
1668         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1669         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1670         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1671         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1672         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
1673         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1674
1675 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1676
1677         PR target/31100
1678         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
1679         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
1680         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
1681
1682 2010-11-20  Jan Hubicka  <jh@suse.cz>
1683
1684         * cgraph.c (ld_plugin_symbol_resolution_names): New.
1685         (dump_cgraph_node): Dump resolution.
1686         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
1687         (cgraph_comdat_can_be_unshared_p): Dclare.
1688         * lto-streamer-out.c (produce_symtab): Use
1689         cgraph_comdat_can_be_unshared_p.
1690         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
1691         (cgraph_comdat_can_be_unshared_p): New function based on logic
1692         in cgraph_externally_visible_p.
1693         (cgraph_externally_visible_p): Use it.
1694         (varpool_externally_visible_p): Virtual tables can be unshared.
1695         * varpool.c (dump_varpool_node): Dump resolution.
1696
1697 2010-11-20  Jan Hubicka  <jh@suse.cz>
1698
1699         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
1700
1701 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1702
1703         PR other/46202
1704         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
1705         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
1706         shell quoting.
1707         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
1708         (install-strip): New target.
1709         (STRIPPROG): New variable, exported if STRIP is set.
1710         * doc/install.texi (Final install): Minor markup and code style
1711         fixes.  Document install-strip target.
1712
1713 2010-11-20  Paul Koning  <ni1d@arrl.net>
1714
1715         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
1716         pdp11_regno_reg_class): New functions.
1717         * config/pdp11/pdp11.md (define_constants): Add register numbers.
1718         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
1719         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
1720         functions.
1721         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
1722         frame pointer and argument pointer pseudo-registers.
1723         (ARG_POINTER_REGNUM): Define.
1724         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
1725         argument pointer.
1726         (FIRST_PARM_OFFSET): Update for argument pointer.
1727         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1728         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
1729         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
1730         frame pointer and argument pointer.
1731
1732 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
1733
1734         PR debug/46561
1735         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
1736         when looking for immediate uses.
1737
1738         PR tree-optimization/45830
1739         * stmt.c (expand_switch_using_bit_tests_p): New function.
1740         (expand_case): Use it.
1741         * tree.h (expand_switch_using_bit_tests_p): New prototype.
1742         * tree-switch-conversion.c (struct switch_conv_info): Add
1743         bit_test_uniq, bit_test_count and bit_test_bb fields.
1744         (check_range): Fix a comment.
1745         (check_process_case): Compute bit_test_uniq and bit_test_count.
1746         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
1747         allocation.
1748         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
1749         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
1750         (array_value_type): New function.
1751         (build_one_array): Use it, if it returned different type,
1752         fold_convert all constructor fields and convert back to the
1753         wider type in the generated code.
1754         (process_switch): Initialize bit_test_uniq, bit_test_count and
1755         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
1756         returned true.
1757
1758 2010-11-19  Michael Matz  <matz@suse.de>
1759
1760         PR tree-optimization/46077
1761         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
1762
1763 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
1764
1765         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1766         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
1767         function.
1768         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1769
1770 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1771
1772         * mode-switching.c (optimize_mode_switching): Use
1773         FOR_BB_INSNS instead of open-coded loop.
1774         * cfgrtl.c (redirect_branch_edge): Ditto.
1775
1776 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
1777
1778         PR target/46436
1779         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
1780         to accomodate 32 bit HOST_WIDE_INT.
1781         (m68hc11_emit_logical): Remove unused variable insn.
1782         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
1783         this_insn_uses_iy before use.
1784
1785         PR target/46434
1786         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
1787
1788 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1789
1790         PR c/46547
1791         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
1792         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
1793
1794 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1795
1796         * doc/extend.texi (Function attributes): Document PowerPC target
1797         attributes that are supported.
1798         (Pragmas): Document that PowerPC now supports target pragmas.
1799
1800         * doc/options.texi (TargetVariable): Document TargetVariable,
1801         HeaderInclude, and SourceInclude.
1802
1803         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
1804         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
1805         -ffp-contract=off.
1806
1807         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
1808         SourceInclude directives.  Fix a cut+paste error with target save
1809         enum variables.  Sort enums in the structures after ints and
1810         before shorts.
1811         * opth-gen.awk: Ditto.
1812
1813         * configure.ac: Add support for HeaderInclude and SourceInclude option
1814         directives to add the appropriate files to the dependency lists.
1815         * configure: Regenerate.
1816         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
1817         (OPTIONS_C_EXTRA): New variable for SourceInclude.
1818         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
1819         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
1820         (gcc-options.o): Ditto.
1821         * opt-include.awk: New awk script to handle HeaderInclude and
1822         TargetInclude.
1823
1824         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
1825         gets saved in the target options.
1826         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
1827         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1828         (-mprototype): Ditto.
1829         (-mbit-word): ditto.
1830         (-mregnames): Ditto.
1831         (-msecure-plt): Ditto.
1832         (-mbss-plt): Ditto.
1833         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
1834         (-mpowerpc-gfxopt): Ditto.
1835         (-mmfcrf): Ditto.
1836         (-mpopcntb): Ditto.
1837         (-mfprnd): Ditto.
1838         (-mcmpb): Ditto.
1839         (-mmmfpgpr): Ditto.
1840         (-maltivec): Ditto.
1841         (-mhard-dfp): Ditto.
1842         (-mmulhw): Ditto.
1843         (-mdlmzb): Ditto.
1844         (-mmultiple): Ditto.
1845         (-mstring): Ditto.
1846         (-mpopcntd): Ditto.
1847         (-mfriz): Ditto.
1848         (-mvsx): Ditto.
1849         (-mno-update): Ditto.
1850         (-mavoid-indexed-addresses): Ditto.
1851         (-mtls-markers): Ditto.
1852         (-msched-epilog): Ditto.
1853         (-msched-prolog): Ditto.
1854         (-maix-struct-return): Ditto.
1855         (-msvr4-struct-return): Ditto.
1856         (-mxl-compat): Ditto.
1857         (-mrecip-precision): Ditto.
1858         (-mfp-in-toc): Ditto.
1859         (-msum-in-toc): Ditto.
1860         (-mvrsave): Ditto.
1861         (-mblock-move-inline-limit=): Ditto.
1862         (-misel): Ditto.
1863         (-mpaired): Ditto.
1864         (-mlongcall): Ditto.
1865         (-mgen-cell-microcode): Ditto.
1866         (-mwarn-cell-microcode): Ditto.
1867         (-mwarn-altivec-long): Ditto.
1868         (-mprioritize-restricted-insns=): Ditto.
1869         (-msingle-float): Ditto.
1870         (-mdouble-float): Ditto.
1871         (-msimple-fpu): Ditto.
1872         (-mxilinx-fpu): Ditto.
1873         * config/rs6000/aix64.opt (-mpe): Ditto.
1874
1875         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
1876         (rs6000_cpu): Move variable to be a target variable.  Rename
1877         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
1878         -mdebug=<xxx> variables into a single int.
1879         (rs6000_always_hint): Ditto.
1880         (rs6000_sched_groups): Ditto.
1881         (rs6000_align_branch_targets): Ditto.
1882         (rs6000_sched_costly_dep): Ditto.
1883         (rs6000_sched_insert_nops): Ditto.
1884         (rs6000_long_double_type_size): Ditto.
1885         (rs6000_ieeequad): Ditto.
1886         (rs6000_altivec_abi): Ditto.
1887         (rs6000_spe): Ditto.
1888         (rs6000_spe_abi): Ditto.
1889         (rs6000_float_gprs): Ditto.
1890         (rs6000_darwin64_abi): Ditto.
1891         (can_override_loop_align): Ditto.
1892         (rs6000_sdata): Ditto.
1893         (rs6000_tls_size): Ditto.
1894         (rs6000_current_abi): Ditto.
1895         (rs6000_traceback): Ditto.
1896         (rs6000_alignment_flags): Ditto.
1897         (rs6000_current_cmodel): Ditto.
1898         (rs6000_recip_control): Ditto.
1899         (rs6000_cpu_index): Ditto.
1900         (rs6000_tune_index): Ditto.
1901         (rs6000_debug): Ditto.
1902         (rs6000_target_flags_explict): Ditto.
1903
1904         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
1905         declaration.
1906
1907         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
1908         cmodel.  Change all uses.
1909
1910         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
1911         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
1912         Rename cmodel to rs6000_current_cmodel.
1913         (rs6000_sched_groups): Ditto.
1914         (rs6000_align_branch_targets): Ditto.
1915         (rs6000_sched_costly_dep): Ditto.
1916         (rs6000_sched_insert_nops): Ditto.
1917         (rs6000_long_double_type_size): Ditto.
1918         (rs6000_ieeequad): Ditto.
1919         (rs6000_altivec_abi): Ditto.
1920         (rs6000_spe): Ditto.
1921         (rs6000_spe_abi): Ditto.
1922         (rs6000_float_gprs): Ditto.
1923         (rs6000_darwin64_abi): Ditto.
1924         (can_override_loop_align): Ditto.
1925         (rs6000_sdata): Ditto.
1926         (rs6000_tls_size): Ditto.
1927         (rs6000_current_abi): Ditto.
1928         (rs6000_traceback): Ditto.
1929         (rs6000_alignment_flags): Ditto.
1930         (rs6000_current_cmodel): Ditto.
1931         (rs6000_recip_control): Ditto.
1932         (rs6000_cpu_index): Ditto.
1933         (rs6000_tune_index): Ditto.
1934         (rs6000_debug): Ditto.
1935         (rs6000_target_flags_explict): Ditto.
1936         (rs6000_sched_insert_nops_str): Make static.
1937         (rs6000_sched_costly_dep_str): Ditto.
1938         (rs6000_recip_name): Ditto.
1939         (rs6000_abi_name): Ditto.
1940         (rs6000_sdata_name): Ditto.
1941         (enum rs6000_traceback_name): Move to rs6000-opts.h.
1942         (rs6000_parse_tls_size_option): Delete.
1943         (rs6000_valid_attribute_p): New function for target attributes and
1944         pragmas.
1945         (rs6000_function_specific_save): Ditto.
1946         (rs6000_function_specific_restore): Ditto.
1947         (rs6000_function_specific_print): Ditto.
1948         (rs6000_can_inline_p): Ditto.
1949         (rs6000_set_current_function): Ditto.
1950         (rs6000_inner_target_options): Ditto.
1951         (rs6000_debug_target_options): Ditto.
1952         (rs6000_pragma_target_parse): Ditto.
1953         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
1954         attributes and pragmas.
1955         (TARGET_OPTION_SAVE): Ditto.
1956         (TARGET_OPTION_RESTORE): Ditto.
1957         (TARGET_OPTION_PRINT): Ditto.
1958         (TARGET_CAN_INLINE_P): Ditto.
1959         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1960         (POWER_MASKS): Move to file level scope from the
1961         rs6000_option_override_internal function.
1962         (POWERPC_MASKS): Ditto.
1963         (ISA_*_MASKS): Ditto.
1964         (struct rs6000_ptt): Ditto.
1965         (processor_target_table): Ditto.
1966         (rs6000_cpu_name_lookup): Map cpu name to an index in
1967         processor_target_table.
1968         (rs6000_debug_reg_global): Print more information on processor
1969         options for -mdebug=reg.
1970         (rs6000_init_hard_regno_mode_ok): Add support for target
1971         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
1972         Allow -mdebug=val1,val2.  Rename cmodel variable.
1973         (rs6000_option_override_internal): Ditto.
1974         (rs6000_option_override): Ditto.
1975         (rs6000_handle_option): Ditto.
1976         (rs6000_conditional_register_usage): Add debug trace message.
1977         (struct rs6000_opt_mask): New for target attribute/pragma support.
1978         (rs6000_opt_masks): Ditto.
1979         (struct rs6000_opt_var): Ditto.
1980         (rs6000_opt_vars): Ditto.
1981         (rs6000_previous_function): Ditto.
1982
1983         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
1984         wasn't already included.
1985         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
1986         (enum processor_type): Ditto.
1987         (rs6000_cpu): Ditto.
1988         (enum fpu_type_t): Ditto.
1989         (fpu_type): Ditto.
1990         (enum rs6000_dependence_cost): Ditto.
1991         (enum rs6000_nop_insertion): Ditto.
1992         (enum group_termination): Ditto.
1993         (rs6000_long_double_type_size): Ditto.
1994         (rs6000_ieeequad): Ditto.
1995         (rs6000_altivec_abi): Ditto.
1996         (rs6000_spe_abi): Ditto.
1997         (rs6000_spe): Ditto.
1998         (rs6000_float_gprs): Ditto.
1999         (rs6000_alignment_flags): Ditto.
2000         (rs6000_sched_insert_nops): Ditto.
2001         (enum rs6000_vector): Ditto.
2002         (enum rs6000_abi): Ditto.
2003         (rs6000_current_opt): Ditto.
2004         (rs6000_debug_*): Delete.
2005         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2006         (TARGET_DEBUG*): Ditto.
2007
2008         * config/rs6000/rs6000-opts.h: New header file to define the enums
2009         that are used in target variables that are now defined in rs6000.opt.
2010
2011         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2012         rs6000-opts.h.
2013         (rs6000_sdata): Ditto.
2014         (rs6000_abi_name): Delete.
2015         (rs6000_sdata_name): Ditto.
2016         (rs6000_tls_size_string): Ditto.
2017
2018 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2019
2020         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2021         Variable entries.
2022         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2023         should_emit_struct_debug): Move from opts.c.
2024         * flag-types.h (enum debug_struct_file): Move from opts.c.
2025         * flags.h (should_emit_struct_debug): Remove.
2026         (base_of_path): Declare.
2027         (set_struct_debug_option): Add gcc_options parameter.
2028         * optc-gen.awk, opth-gen.awk: Handle array variables.
2029         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2030         debug_struct_generic): Remove.
2031         (set_struct_debug_option): Add gcc_options parameter.
2032         (base_of_path): Remove static.
2033         (main_input_basename, main_input_baselength, matches_main_base,
2034         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2035         Remove.
2036         * toplev.c (main_input_basename, main_input_baselength): Define
2037         here.
2038         * toplev.h (main_input_basename, main_input_baselength): Declare
2039         here.
2040
2041 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2042
2043         * common.opt (flag_instrument_functions_exclude_functions,
2044         flag_instrument_functions_exclude_files): New Variable definitions.
2045         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2046         * gimplify.c (char_p): Declare type and vectors.
2047         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2048         * opts.c (flag_instrument_functions_exclude_functions,
2049         flag_instrument_functions_exclude_files): Remove.
2050         (add_comma_separated_to_vector): Take void **.
2051         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2052         (common_handle_option): Use options structure for
2053         -finstrument-functions-exclude- options.
2054
2055 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2056
2057         * doc/options.texi (Var): Document effects of Defer.
2058         (Defer): Document.
2059         * opt-functions.awk (var_type, var_set): Handle deferred options.
2060         * opts-common.c (set_option): Handle CLVC_DEFER.
2061         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2062         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2063         fstack-limit-symbol=): Mark as deferred.
2064         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2065         plugin.h.
2066         (print_filtered_help): Don't report state of CLVC_DEFER options.
2067         (common_handle_option): Move code for OPT_fcall_used_,
2068         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2069         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2070         OPT_fstack_limit_symbol_ to opts-global.c.
2071         (option_enabled, get_option_state): Handle CLVC_DEFER.
2072         * opts.h: Include vec.h.
2073         (enum cl_var_type): Add CLVC_DEFER.
2074         (cl_deferred_option): Define type and vectors.
2075         (handle_common_deferred_options): Declare.
2076         * opts-global.c: New.
2077         * toplev.c (toplev_main): Call handle_common_deferred_options
2078         * Makefile.in (OPTS_H): Include $(VEC_H).
2079         (OBJS-common): Include opts-global.o.
2080         (opts.o): Update dependencies.
2081         (opts-global.o): Add dependencies.
2082
2083 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2084
2085         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2086         to objc_declare_protocols.
2087
2088 2010-11-19  Richard Guenther  <rguenther@suse.de>
2089
2090         PR lto/45789
2091         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2092         IDENTIFIERs do not stream TREE_TYPE.
2093         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2094
2095 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2096
2097         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2098
2099 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2100
2101         PR target/45870
2102         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2103         non-delegitimized TLS UNSPECs.
2104
2105 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2106             Ian Lance Taylor  <iant@google.com>
2107
2108         * config/darwin-c.c (darwin_additional_format_types): Export.
2109
2110 2010-11-18  Paul Koning  <ni1d@arrl.net>
2111
2112         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2113         pointer.
2114
2115 2010-11-18  Paul Koning  <ni1d@arrl.net>
2116
2117         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2118         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2119         * config/pdp11/pdp11.opt (-mabshi): Delete.
2120
2121 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2122
2123         * resource.h (struct resources): Fix typo in the comment.
2124
2125 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2126
2127         PR target/46546
2128         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2129
2130 2010-11-18  Richard Henderson  <rth@redhat.com>
2131
2132         PR middle-end/46515
2133         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2134         maybe_copy_epilogue_insn; handle prologue insns as well.
2135         * rtl.h, cfglayout.c: Update for rename.
2136         * recog.c (peep2_attempt): Copy prologue/epilogue data for
2137         RTX_FRAME_RELATED_P insns.
2138
2139 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
2140
2141         PR middle-end/46534
2142         * builtins.c (fold_builtin_printf): Don't copy and modify string
2143         before build_string_literal, instead modify what
2144         build_string_literal returned.
2145
2146 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2147
2148         PR c/33193
2149         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2150         REALPART_EXPR and IMAGPART_EXPR.
2151
2152 2010-11-18  Richard Guenther  <rguenther@suse.de>
2153
2154         PR tree-optimization/46172
2155         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2156         function.
2157         (slpeel_tree_peel_loop_to_edge): Call it.
2158
2159 2010-11-18  Jeff Law  <law@redhat.com>
2160
2161         PR middle-end-optimization/46297
2162         * postreload.c (reload_combine_note_store): Deal with embedded
2163         side effects in MEM expressions.
2164
2165 2010-11-18  Richard Guenther  <rguenther@suse.de>
2166
2167         PR lto/45089
2168         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2169         when checking is not enabled.
2170
2171 2010-11-18  Richard Guenther  <rguenther@suse.de>
2172
2173         PR lto/46525
2174         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2175         type leaders.
2176         (gimple_register_canonical_type): Also cache the canoncial type
2177         for non type leaders.
2178
2179 2010-11-18  Richard Guenther  <rguenther@suse.de>
2180
2181         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2182
2183 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2184
2185         PR middle-end/46518
2186         * sel-sched-ir.c (init_expr): Use the correct type for
2187         target_available.
2188         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2189
2190 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2191
2192         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2193         as well as -mrelocatable at the same time.
2194
2195 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2196
2197         PR target/46422
2198         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2199         Call the clz builtin.
2200
2201 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2202             Steve Ellcey  <sje@cup.hp.com>
2203
2204         PR middle-end/31490
2205         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2206         if section attribute used.
2207
2208 2010-11-17  Jan Hubicka  <jh@suse.cz>
2209
2210         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2211         expand errno setting variant when optimizing for size.
2212
2213 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2214
2215         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2216         Reverse backward loop.  Fix formatting issues.
2217
2218 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2219
2220         * c-parser.c (c_token_is_qualifier,
2221         c_parser_next_token_is_qualifier): New.
2222         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2223         Improve error message on specs->tagdef_seen_p.
2224         (c_parser_struct_or_union_specifier): Improve error recovery.
2225         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2226         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2227         using c_parser_next_token_is_qualifier; extend it to cover
2228         a ctsk_tagdef typespec and !typespec_ok in general.
2229
2230 2010-11-17  Richard Guenther  <rguenther@suse.de>
2231
2232         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2233         (gimple_mod_pow2_value_transform): Likewise.
2234         (gimple_mod_subtract_transform): Likewise.
2235
2236 2010-11-17  Richard Guenther  <rguenther@suse.de>
2237
2238         PR lto/46504
2239         * gimple.c (gimple_register_canonical_type): Make sure to only
2240         make type leaders canonical types.
2241
2242 2010-11-17  Michael Matz  <matz@suse.de>
2243
2244         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2245         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2246         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2247         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2248         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2249         (pass_build_ssa): ... but here.
2250         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2251         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2252         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2253         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2254         * predict.c (rebuild_frequencies): Ditto.
2255         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2256         * emit-rtl.c (verify_rtl_sharing): Ditto.
2257         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2258         * tree-ssa-live.c (remove_unused_locals): Ditto.
2259         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2260         * tree-ssa.c (pass_early_warn_uninitialized,
2261         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2262         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2263         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2264         * passes.c (pass_postreload, execute_todo): Ditto.
2265         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2266
2267 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2268
2269         * doc/invoke.texi (-dy): Remove.
2270         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2271         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2272         * langhooks.c (lhd_do_nothing_i): Remove.
2273         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2274         * toplev.c (set_yydebug): Remove.
2275         (compile_file): Update call to lang_hooks.parse_file.
2276         (decode_d_option): Don't handle -dy.
2277
2278 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2279
2280         PR rtl-optimization/46440
2281         * combine.c (update_cfg_for_uncondjump): When changing
2282         an indirect jump into unconditional jump, remove BARRIERs
2283         from bb's footer.
2284
2285 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2286
2287         * opts.c (target_handle_option): Do not assert that loc ==
2288         UNKNOWN_LOCATION.
2289
2290 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2291             Richard Guenther  <rguenther@suse.de>
2292
2293         PR middle-end/45838
2294         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2295         call_may_clobber_ref_p_1): Return true for __sync_* and some
2296         OpenMP builtins that act as threading barriers.
2297
2298 2010-11-17  Richard Guenther  <rguenther@suse.de>
2299
2300         PR tree-optimization/46498
2301         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2302
2303 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2304
2305         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2306         (xtensa_function_arg_boundary): ...this.
2307         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2308         thinko in declaration.
2309         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2310         number of parameters to picochip_function_arg_boundary.
2311         (picochip_arg_advance): Likewise.
2312
2313 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2314
2315         PR target/46512
2316         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2317         under check for type.
2318
2319 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2320
2321         * ifcvt.c (dead_or_predicable): Fix typo.
2322
2323 2010-11-16  Richard Henderson  <rth@redhat.com>
2324
2325         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2326         * config/s390/s390.opt (mfused-madd): Remove.
2327         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2328         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2329         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2330         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2331
2332 2010-11-16  Richard Henderson  <rth@redhat.com>
2333
2334         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2335         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2336         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2337         (*altivec_vmaddfp_1): Remove.
2338         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2339         (altivec_mulv4sf3): Expand to FMA directly.
2340         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2341         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2342         * config/rs6000/paired.md (paired_madds0): Use FMA.
2343         (paired_madds1): Likewise.
2344         (*paired_madd): Rename from paired_madd; use FMA.
2345         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2346         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2347         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2348         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2349         (rs6000_emit_madd): Use fma_optab.
2350         (rs6000_emit_msub): Use fms_optab.
2351         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2352         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2353         (*fmasf4_fpr): Rename from fmasf4_fpr.
2354         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2355         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2356         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2357         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2358         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2359         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2360         (*fmadf4_fpr): Rename from fmadf4_fpr.
2361         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2362         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2363         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2364         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2365         (fmasf4, fmadf4): Macroize into...
2366         (fma<FMA_F>4): ... here.
2367         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2368         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2369         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2370         TARGET_FUSED_MADD.
2371         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2372         (*vsx_fmadd<mode>4_1): Remove.
2373         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2374         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2375         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2376         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2377         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2378         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2379         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2380
2381 2010-11-16  Richard Henderson  <rth@redhat.com>
2382
2383         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2384         (fmasf4, fnmadf4, fnmasf4): Likewise.
2385         (unnamed plus+mult insns and splitters): Delete.
2386
2387 2010-11-16  Richard Henderson  <rth@redhat.com>
2388
2389         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2390         (fnma<VSF>4): Rename from fnms_<VSF>.
2391         (fms<VSF>4): Rename from fms_<VSF>.
2392         (fma<VDF>4): Rename from fma_<VDF>.
2393         (fms<VDF>4): Rename from fms_<VDF>.
2394         (nfma<VDF>4): Rename from fnma_<VDF>.
2395         (nfms<VDF>4): Rename from fnms_<VDF>.
2396         (fnma<VDF>4, fnms<VDF>4): New expanders.
2397         (floatunsdisf2): Update for the renames.
2398         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2399         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2400
2401 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2402
2403         PR rtl-optimization/46490
2404         * combine.c (expand_compound_operation): Fix thinko.
2405
2406 2010-11-16  Richard Henderson  <rth@redhat.com>
2407
2408         PR target/46470
2409         * recog.c (peep2_attempt): Convert frame-related info when possible.
2410         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2411         (peephole2_optimize): Allow peep2_attempt to fail.
2412
2413 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2414
2415         PR rtl-optimization/46315
2416         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2417         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2418         extracted from...
2419         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2420         (remove_reg_equal_equiv_notes_for_defs): ...this.
2421         (delete_unmarked_insns): Adjust to above renaming.
2422         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2423         referring to registers set in the insns being moved, if any.
2424
2425         * df-core.c (df_ref_dump): New function extracted from...
2426         (df_refs_chain_dump): ...here.  Call it.
2427         (df_regs_chain_dump): Likewise.
2428         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2429         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2430
2431 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2432
2433         PR rtl-optimization/46395
2434         * postreload.c (reload_combine): Invalidate register use
2435         information on all control flow insns.
2436
2437         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2438         LABEL_REF in UNSPEC operand.
2439
2440 2010-11-16  Jan Hubicka  <jh@suse.cz>
2441
2442         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2443         when !flag_toplevel_reorder do not remove unless variable is
2444         COMDAT or ARTIFICIAL.
2445         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2446         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2447         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2448         * varpool.c (decide_is_variable_needed): Do not handle visibility
2449         issues.
2450         (varpool_finalize_decl): Likewise.
2451         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2452         update outdated comment on DECL_RTL_SET_P check.
2453
2454 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2455
2456         * config/sol2.h (NM_FLAGS): Define.
2457         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2458         * doc/tm.texi: Update.
2459
2460 2010-11-16  Nick Clifton  <nickc@redhat.com>
2461
2462         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2463         (msubsf4): Rename to fmssf4, and use fma.
2464         (nmaddsf4): Rename to fnmasf4 and use fma.
2465         (nmsubsf4): Rename to fnmssf4 and use fma.
2466
2467 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2468
2469         PR target/44762
2470         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2471         (score3_in_small_data_p, score3_function_value): Likewise.
2472         (score3_trampoline_init): Use LCT_NORMAL.
2473         (score3_print_operand): Initialize code as UNKNOWN.
2474         * config/score/predicates.md (score_load_multiple_operation):
2475         Remove unused variable.
2476         (score_store_multiple_operation): Likewise.
2477         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2478         (score7_in_small_data_p, score7_function_value): Likewise.
2479         (score7_trampoline_init): Use LCT_NORMAL.
2480         (score7_print_operand): Initialize code as UNKNOWN.
2481         * config/score/score3.h (score3_return_in_memory): Update prototype.
2482         (score3_in_small_data_p, score3_function_value): Likewise.
2483         * config/score/score-protos.h (score_function_value): Likewise.
2484         * config/score/score7.h (score7_return_in_memory): Update prototype.
2485         (score7_in_small_data_p, score7_function_value): Likewise.
2486         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2487         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2488         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2489         (score_function_epilogue, score_in_small_data_p): Likewise.
2490         (score_option_override, score_asm_trampoline_template): Likewise.
2491         (score_trampoline_init, score_print_operand): Likewise.
2492         (score_print_operand_address, score_prologue): Likewise.
2493         (score_epilogue, score_call, score_call_value): Likewise.
2494         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2495         (score_function_arg_advance): Likewise. Make static.
2496         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2497         (score_function_arg, score_legitimate_address_p): Make static.
2498         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2499         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2500         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2501         Allow (W) == HOST_BITS_PER_WIDE_INT.
2502
2503         PR java/46386
2504         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2505         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2506
2507 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2508
2509         * config/arc/arc.c: Delete pasto.
2510         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2511
2512 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2513
2514         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2515         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2516         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2517         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2518         (mn10300_preferred_reload_class,
2519         mn10300_preferred_output_reload_class): New functions.
2520
2521 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2522
2523         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2524         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2525         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2526         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2527
2528 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2529
2530         * builtins.c (std_gimplify_va_arg_expr): Use
2531         targetm.calls.function_arg_boundary.
2532         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2533         * calls.c (struct arg_data): Update comment.
2534         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2535         * target.def (function_arg_boundary): Define.
2536         * targhooks.h (default_function_arg_boundary): Declare.
2537         * targhooks.c (default_function_arg_boundary): Define.
2538         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2539         TARGET_FUNCTION_ARG_BOUNDARY.
2540         (FUNCTION_ARG_BOUNDARY): Delete.
2541         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2542         * doc/tm.texi: Regenerate.
2543         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2544         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2545         * config/arc/arc.c (arc_function_arg_boundary): Define.
2546         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2547         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2548         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2549         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2550         (arm_function_arg_boundary): Define.
2551         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2552         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2553         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2554         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2555         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2556         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2557         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2558         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2559         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2560         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2561         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2562         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2563         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2564         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2565         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2566         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2567         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2568         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2569         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2570         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2571         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2572         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2573         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2574         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2575         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2576         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2577         * config/pa/pa.c (pa_function_arg_boundary): Define.
2578         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2579         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
2580         * config/picochip/picochip-protos.h
2581         (picochip_get_function_arg_boundary): Delete.
2582         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
2583         Rename to...
2584         (picochip_function_arg_boundary): ...this.  Make static.
2585         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
2586         (picochip_arg_advance): Adjust.
2587         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2588         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
2589         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
2590         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
2591         (rs6000_function_arg_boundary): ...this.  Make static.
2592         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
2593         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2594         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
2595         * config/rx/rx.c (rx_function_arg_boundary): Define.
2596         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2597         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
2598         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
2599         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2600         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
2601         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
2602         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
2603         (xtensa_function_arg_boundary): ...this.  Make static.
2604         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2605
2606 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2607
2608         * expr.c (alignment_for_piecewise_move): New function.
2609         (widest_int_mode_for_size): New function.
2610         (move_by_pieces, move_by_pieces_ninsns): Call them.
2611         (can_store_by_pieces, store_by_pieces_1): Likewise.
2612
2613 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2614
2615         * gcc.c (char_p): Define.  Define a VEC of it.
2616         (n_linker_options, n_assembler_options, n_preprocessor_options):
2617         Delete.
2618         (linker_options, assembler_options, preprocessor_options): Convert
2619         to a VEC.
2620         (add_preprocessor_option): Adjust.
2621         (add_assembler_option): Adjust.
2622         (add_linker_option): Adjust.
2623         (do_specs_vec): New function.
2624         (do_spec_1): Call it.  Adjust for new types.
2625
2626 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2627
2628         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
2629         (sreal.o, statistics.o, stringpool.o): Likewise.
2630
2631 2010-11-16  Richard Guenther  <rguenther@suse.de>
2632
2633         PR tree-optimization/44545
2634         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
2635         statements are not reassociatable.
2636         (reassociate_bb): Likewise.
2637
2638 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2639
2640         * bitmap.c: Delete unnecessary includes.
2641         * ebitmap.c: Likewise.
2642         * et-forest.c: Likewise.
2643         * sreal.c: Likewise.
2644         * statistics.c: Likewise.
2645         * stringpool.c: Likewise.
2646         * double-int.c: Add comment for inclusion of tm.h.
2647
2648 2010-11-16  Richard Guenther  <rguenther@suse.de>
2649
2650         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
2651         (visit_nary_op): ... this.
2652         (visit_binary_op): Remove.
2653         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
2654
2655 2010-11-16  Richard Guenther  <rguenther@suse.de>
2656
2657         PR middle-end/45172
2658         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
2659
2660 2010-11-16  Nick Clifton  <nickc@redhat.com>
2661
2662         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
2663         record is packed.
2664
2665 2010-11-15  Richard Henderson  <rth@redhat.com>
2666
2667         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
2668         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
2669         DOT_PROD_EXPR.
2670
2671 2010-11-15  Richard Henderson  <rth@redhat.com>
2672
2673         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
2674         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
2675         fma rtx_code.
2676
2677 2010-11-15  Richard Henderson  <rth@redhat.com>
2678
2679         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
2680         and *mulsubsf4 respectively.  Use fma rtx_code.
2681
2682 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
2683
2684         * gcc.c: Include "vec.h".
2685         (argbuf): Make into a VEC.
2686         (argbuf_length, argbuf_index): Remove.
2687         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
2688         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
2689         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
2690         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
2691         (gcc.o): Depend on $(VEC_H).
2692
2693 2010-11-15  Richard Henderson  <rth@redhat.com>
2694
2695         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
2696         via FMA if unsafe math.
2697         (insert_var_expansion_initialization): Handle FMA.
2698         (combine_var_copies_in_loop_exit): Likewise.
2699
2700 2010-11-15  Richard Henderson  <rth@redhat.com>
2701
2702         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
2703         * config/ia64/ia64.opt: Remove mfused-madd.
2704         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
2705         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
2706         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
2707         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
2708         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
2709         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
2710         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
2711         (fmav2sf4): Rename from fpma; use FMA code.
2712         (fmsv2sf4): Rename from fpms; use FMA code.
2713         (fnmav2sf4): Rename from *fpnma; use FMA code.
2714         * config/ia64/ia64.md (MODE_SDF): New iterator.
2715         (suffix): New mode attribute.
2716         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
2717         (fmssf4): Rename from *fmssf4.
2718         (fnmasf4): Rename from *nfmasf4.
2719         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
2720         (*nmadddf4, *nmadddf4_truncsf): Remove.
2721         (fmsdf4): Rename from *fmsdf4.
2722         (fnmadf4): Rename from *nfmadf4.
2723         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
2724         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
2725         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
2726         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
2727         (fmsxf4): Rename from *fmsxf4.
2728         (fnmaxf4): Rename from *nfmaxf4.
2729         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
2730         (*fnmaxf_trunc_<MODE_SDF>): New.
2731
2732 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2733
2734         PR tree-optimization/46461
2735         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
2736         a gimple val.
2737
2738 2010-11-15  Ian Lance Taylor  <iant@google.com>
2739
2740         * godump.c: New file.
2741         * common.opt (fdump-go-spec=): New option.
2742         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
2743         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
2744         (TYPE_SYMTAB_IS_DIE): Define.
2745         (struct tree_type): Change GTY for symtab field to use
2746         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
2747         to pick the union field.
2748         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
2749         (dump_go_spec_init): Declare.
2750         * toplev.c (process_options): Handle flag_dump_go_spec.
2751         * debug.c: Include "tree.h".
2752         (do_nothing_debug_hooks): Set tree_type_symtab_field.
2753         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2754         * dbxout.c (dbx_debug_hooks): Likewise.
2755         (xcoff_debug_hooks): Likewise.
2756         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2757         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
2758         SDB_DEBUGGING_INFO is not defined.
2759         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
2760         (Overall Options): Document -fdump-go-spec.
2761         * Makefile.in (OBJS-common): Add godump.o.
2762         (debug.o): Add dependency on $(TREE_H).
2763         (godump.o): New target.
2764         (GTFILES): Add $(srcdir)/godump.c.
2765
2766 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2767
2768         PR debug/46095
2769         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
2770         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
2771         style < 0, add REG_FRAME_RELATED_EXPR.
2772
2773         PR debug/46387
2774         * rtl.h (vt_equate_reg_base_value): New prototype.
2775         * alias.c (vt_equate_reg_base_value): New function.
2776         * var-tracking.c (vt_init_cfa_base): Use it.
2777
2778 2010-11-15  Jan Hubicka  <jh@suse.cz>
2779             Diego Novillo  <dnovillo@google.com>
2780
2781         PR lto/41528
2782         * doc/lto.texi: Add.
2783         * doc/gccint.texi: Add reference to lto.texi.
2784         * doc/invoke.texi: Update user documentation for LTO.
2785         Move internal flags to lto.texi
2786
2787 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2788
2789         * c-typeck.c (build_unary_op): Use
2790         objc_build_incr_expr_for_property_ref to build the pre/post
2791         increment/decrement of an Objective-C property ref, and skip the
2792         lvalue_or_else check in that case.
2793
2794 2010-11-15  Martin Jambor  <mjambor@suse.cz>
2795
2796         PR tree-optimization/46349
2797         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
2798         (contains_vce_or_bfcref_p): Likewise.
2799         (sra_modify_assign): Use them.
2800
2801 2010-11-15  Richard Guenther  <rguenther@suse.de>
2802
2803         PR tree-optimization/46467
2804         * tree-ssa-structalias.c (do_structure_copy): Properly treat
2805         variables without subvars.
2806
2807 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
2808
2809         * config/picochip/picochip.c (file header): Picochip name change.
2810         * config/picochip/picochip.md (file header): Likewise.
2811         * config/picochip/predicates.md (file header): Likewise.
2812         * config/picochip/dfa_space.md (file header): Likewise.
2813         * config/picochip/dfa_speed.md (file header): Likewise.
2814         * config/picochip/picochip.h(file header): Likewise.
2815         * config/picochip/constraints.md (file header): Likewise.
2816         * config/picochip/picochip-protos.h (file header): Likewise.
2817         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
2818         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
2819         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
2820         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
2821         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
2822         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
2823         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
2824         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
2825         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
2826         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
2827         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
2828         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
2829         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
2830         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
2831
2832 2010-11-15  Richard Guenther  <rguenther@suse.de>
2833
2834         PR bootstrap/46474
2835         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2836
2837 2010-11-15  Nick Clifton  <nickc@redhat.com>
2838
2839         * config/stormy16/stormy16.c (direct_return): Do not generate a
2840         direct return for interrupt handlers.
2841
2842 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
2843
2844         * Makefile.in (tm.texi): Replace with rule for:
2845         ($(srcdir)/doc/tm.texi).
2846         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
2847         $(srcdir)/doc/tm.texi .
2848         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
2849         tm.texi .
2850
2851         PR target/46427
2852         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
2853
2854         PR bootstrap/45444
2855         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
2856         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2857
2858         PR target/46432
2859         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2860
2861 2010-11-15  Richard Guenther  <rguenther@suse.de>
2862
2863         PR lto/44150
2864         * lto-opts.c (lto_write_options): Write -fexceptions even if
2865         not set by the user.
2866
2867 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2868
2869         PR c/46462
2870         * c-decl.c (declspecs_add_type): Make variables with error types
2871         integers.
2872         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
2873         do not start a declaration before an Objective-C foreach.
2874         (c_parser_declaration_or_fndef): Improve recovery after unknown
2875         type name.
2876         (c_parser_for_statement): Hoist entrance of "foreach context"
2877         before ifs, add corresponding reset where it was missing.  Do
2878         not set objc_could_be_foreach_context for C.
2879
2880 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
2881
2882         PR tree-optimization/45722
2883         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
2884         this is a reference to a component.
2885         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
2886         (ipa_note_param_call): Adjust comment.
2887
2888 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
2889
2890         * config/mips/mips.c (machine_function): Remove
2891         initialized_mips16_gp_pseudo_p.
2892         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
2893         detect whether a pseudo has already been created.  Unconditionally
2894         create a new one if not.
2895         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
2896         expanding to rtl.  Create a new pseudo otherwise, if allowed.
2897
2898 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
2899
2900         PR target/43440
2901         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
2902         * tm.texi: Regenerated.
2903         * output.h (decode_reg_name_and_count): Declare.
2904         * varasm.c (decode_reg_name_and_count): New function.
2905         (decode_reg_name): Reimplement using decode_reg_name_and_count.
2906         * reginfo.c (fix_register): Use decode_reg_name_and_count and
2907         iterate over all regs used.
2908         * stmt.c (expand_asm_operands): Likewise.
2909         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
2910         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
2911         multiple machine registers.
2912
2913 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2914
2915         * stor-layout.c (place_union_field): Do not put location information
2916         on offset expressions.
2917         (place_field): Likewise.
2918         (finalize_record_size): Likewise on size expressions.
2919         (finalize_type_size): Likewise.
2920         (layout_type): Likewise.
2921
2922 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
2923
2924         PR debug/42889
2925         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
2926         * df-core.c (df_set_bb_dirty_nonrl): Remove.
2927         * df.h (df_set_bb_dirty_nonlr): Likewise.
2928
2929 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
2930
2931         * config/mips/mips.md (call_internal): Pass curr_insn to
2932         mips_split_call.
2933         (call_internal_direct): Ditto.
2934         (call_value_internal): Ditto.
2935         (call_value_internal_direct): Ditto.
2936         (call_value_multiple_internal): Ditto.
2937         * config/mips/mips.c (mips_split_call): Do not copy
2938         CALL_INSN_FUNCTION_USAGE here.
2939
2940 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
2941
2942         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
2943         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
2944         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
2945         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
2946         (TUNE_LOONGSON_3A): Define.
2947         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
2948         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
2949         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
2950         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
2951         (mips_rtx_cost_data): Add Loongson-3A.
2952
2953 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2954
2955         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
2956         switches.
2957
2958 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2959
2960         * dwarf2out.c (macinfo_entry): New struct.
2961         (output_comp_unit): Emit the section start label here and flag that we
2962         will emit an info section.
2963         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
2964         emitting directly.
2965         (dwarf2out_end_source_file): Likewise.
2966         (dwarf2out_define): Likewise.
2967         (dwarf2out_undef): Likewise.
2968         (output_macinfo): New.
2969         (dwarf2out_init): Do not emit debug section switches here, allocate a
2970         vec for macinfo, when required.
2971         (dwarf2out_finish): First switch to debug_abbrev_section here.
2972         debug_line_section,  debug_macinfo_section, Likewise.
2973         Check that the pubtypes table has at least one unpruned entry before
2974         trying to emit it.
2975
2976 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2977
2978         PR c/20385
2979         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
2980         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
2981         token lookahead.
2982         (c_parser_compound_statement_nostart, c_parser_label,
2983         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
2984         (c_parser_declaration_or_fndef): Detect the case now matched by
2985         c_parser_next_tokens_start_declaration, give error and correct it.
2986
2987 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2988
2989         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
2990         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
2991         with typespec_kind.
2992         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
2993         (shadow_tag_warned, check_compound_literal_type): Adjust
2994         uses of tag_defined_p.
2995         (declspecs_add_type): Set typespec_kind.
2996         * c-parser.c (c_parser_declaration_or_fndef,
2997         c_parser_declspecs, c_parser_struct_declaration,
2998         c_parser_parameter_declaration, c_parser_type_name,
2999         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3000         of type_seen_p.
3001         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3002         tag_defined_p, pass ctsk_firstref through.
3003
3004 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3005
3006         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3007         (struct format_wanted_type): Replace field "name" with "kind", add
3008         "format_start" and "format_length".
3009         (check_format_info_main): Fill in new fields.  Fill in
3010         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
3011         after the final NUL outside the while loop.  Do not include
3012         width and precision modifiers in the format_start/format_length
3013         of the main format.
3014         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3015         arguments.  Compute WANTED_TYPE first so that format_type_warning
3016         can be called for missing arguments.  Adjust calls to
3017         format_type_warning.
3018         (format_type_warning): Fetch as much information as possible
3019         from format_wanted_type.  Adjust printing now that every
3020         warning has a "descr", as well as for missing argument warnings
3021         and to include % sign for format specifiers.
3022
3023 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
3024
3025         PR rtl-optimization/46204
3026         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3027         Update all callers.  Do not recompute topological order.  Adjust
3028         fallthrough edges following a degenerate conditional jump.
3029
3030 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3031
3032         * opts-common.c (control_warning_option): New.
3033         * opts.c (set_default_handlers): New.
3034         (decode_options): Use set_default_handlers and
3035         control_warning_option.
3036         (common_handle_option): Update call to enable_warning_as_error.
3037         (enable_warning_as_error): Take gcc_options parameters.  Use
3038         control_warning_option.
3039         * opts.h (set_default_handlers, control_warning_option): Declare.
3040
3041 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3042
3043         * Makefile.in (OPTS_H): Define.
3044         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
3045         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
3046         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
3047         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
3048         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
3049         * gcc.c (driver_handle_option): Take location_t parameter.
3050         (process_command, do_self_spec): Update calls to
3051         read_cmdline_option.
3052         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
3053         * langhooks.c (lhd_handle_option): Take location_t parameter.
3054         * langhooks.h (handle_option): Take location_t parameter.
3055         * lto-opts.c (lto_reissue_options): Update call to set_option.
3056         * opts-common.c (handle_option): Make static.  Take location_t
3057         parameter and pass it to other functions.
3058         (handle_generated_option): Take location_t parameter and pass it
3059         to other functions.
3060         (read_cmdline_option): Take location_t parameter and pass it to
3061         other functions.  Use warning_at and error_at.
3062         (set_option): Take location_t parameter and pass it to other
3063         functions.
3064         * opts.c (common_handle_option): Take location_t parameter and
3065         pass it to other functions.
3066         (enable_warning_as_error): Make static.  Take location_t parameter
3067         and pass it to other functions.
3068         (lang_handle_option): Take location_t parameter and pass it to
3069         other functions.
3070         (target_handle_option): Take location_t parameter.
3071         (read_cmdline_options, maybe_default_option,
3072         maybe_default_options, default_options_optimization,
3073         decode_options): Take location_t parameter and pass it to other
3074         functions.
3075         * opts.h: Include input.h.
3076         (struct cl_option_handler_func, decode_options, set_option,
3077         handle_generated_option, read_cmdline_option): Take location_t
3078         parameters.
3079         (handle_option, enable_warning_as_error): Remove.
3080         * toplev.c (toplev_main): Update call to decode_options.
3081
3082 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
3083
3084         * graphite-cloog-util.c (oppose_constraint,
3085         cloog_matrix_to_ppl_constraint,
3086         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
3087         CLooG isl uses unsigned integers.  This triggered a warning.
3088
3089 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3090
3091         PR target/46438
3092         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
3093         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
3094         (xtensa_function_arg_1): De-constify cum.
3095         (xtensa_expand_prologue): Use add_reg_note.
3096
3097         PR target/46435
3098         * config/cris/cris.c (saved_regs_mentioned): Delete.
3099         (cris_reload_address_legitimized): Cast itype to enum reload_type.
3100         Remove unused variable op0p.
3101         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
3102         (cris_emit_movem_store): Use add_reg_note.
3103
3104         PR bootstrap/46456
3105         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
3106
3107 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3108
3109         * function.c (expand_function_end): Set the locator of the prologue on
3110         the stack checking insns.
3111
3112 2010-11-12  Richard Henderson  <rth@redhat.com>
3113
3114         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
3115         * config/xtensa/xtensa.opt (mfused-madd): Remove.
3116         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3117         MASK_FUSED_MADD.
3118         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
3119         (fnmasf4): Rename from mulsubsf3; use fma.
3120
3121 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3122             Richard Henderson  <rth@redhat.com>
3123
3124         PR target/46428
3125         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
3126         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
3127         comparison.
3128
3129 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
3130
3131         * opts-common.c (decode_cmdline_option): Initialize separate_args.
3132
3133 2010-11-12  Jan Hubicka  <jh@suse.cz>
3134
3135         * doc/invoke.texi (early-inlining-insns): Update default.
3136         * params.def (early-inlining-insns): Default to 10.
3137
3138 2010-11-12  Olivier Hainque  <hainque@adacore.com>
3139
3140         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
3141
3142 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3143
3144         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
3145         (SUPPORTS_INIT_PRIORITY): Define.
3146
3147 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3148
3149         PR target/46430
3150         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
3151         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
3152         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3153         (avr_device_to_devicelib): Likewise.
3154         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
3155         into block.
3156         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
3157         (zero_extendhidi2, zero_extendsidi2): Likewise.
3158         * config/avr/avr.c (avr_num_arg_regs): Constify type.
3159         (avr_return_addr_rtx): De-constify tem.
3160         (avr_rotate_bytes): Move declarations to start of block.
3161         Don't use variable length array.  Put nested if/else into block.
3162
3163         PR rtl-optimization/46433
3164         * var-tracking.c: Include tm_p.h .
3165
3166         PR bootstrap/44756
3167         PR build/44767
3168         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
3169         should be unsigned.
3170         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
3171         * doc/tm.texi: Regenerate.
3172
3173         PR target/46412
3174         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
3175         * config/bfin/bfin.c: Include sel-sched.h .
3176         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
3177         (expand_interrupt_handler_prologue): Remove unused variable insn.
3178         (bfin_load_pic_reg): Likewise.
3179         (bfin_rtx_costs): Make code / outer_code variables of type
3180         enum rtx_code, copied from re-named parameters.
3181         (bfin_local_alignment): Change align argument and return type
3182         to unsigned.
3183         (bfin_adjust_cost): Remove unused variable insn_type.
3184         Declare variables at start of block.
3185         (struct loop_info): Rename to...
3186         (struct loop_info_d).
3187         (workaround_rts_anomaly): Change type of icode to int.
3188         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
3189         with int-typed variable.
3190         (note_np_check_stores): Likewise.
3191         (trapping_loads_p): Remove unused variable pat.
3192         (bfin_expand_binop_builtin): Use expand_normal.
3193         (bfin_expand_unop_builtin): Likewise.
3194         (bfin_expand_builtin): Likewise.  Set tmode before use.
3195
3196         PR middle-end/44769
3197         * final.c (split_double): Don't use BITS_PER_WORD directly in
3198         shift count.
3199
3200         PR target/46431
3201         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
3202         assignment.
3203
3204         PR target/46450
3205         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
3206         Use add_reg_note.
3207         (xstormy16_function_arg): Dereference cum.
3208         (xstormy16_expand_builtin): Use expand_normal.
3209         Change type of omode to enum machine_mode.
3210         (combine_bnp): Rename and to and_insn.
3211
3212         PR target/46437
3213         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
3214         localreg.
3215
3216 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3217
3218         PR debug/46375
3219         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
3220
3221 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3222
3223         PR lto/46376
3224         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
3225
3226 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
3227
3228         PR c/44782
3229         * common.opt (fmax-errors=): New option.
3230         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
3231         * diagnostic.h (struct diagnostic_context): Add max_errors field.
3232         * diagnostic.c (diagnostic_initialize): Initialize it.
3233         (diagnostic_action_after_output): Exit if more than max_errors
3234         have been output.
3235         * doc/invoke.texi (Warning Options): Add -fmax-errors.
3236         (-fmax-errors): Document.
3237
3238 2010-11-11  Richard Henderson  <rth@redhat.com>
3239
3240         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
3241
3242 2010-11-11  Richard Henderson  <rth@redhat.com>
3243
3244         * config/fused-madd.opt: New file.
3245         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
3246         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
3247         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3248         * config/i386/i386.opt (mfused-madd): Remove.
3249         * config/i386/sse.md (split_fma): Remove.
3250         (split_fms, split_fnma, split_fnms): Remove.
3251
3252 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
3253
3254         PR target/46088
3255         * config/i386/i386.md (*ashl<mode>3_cconly,
3256         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
3257         change nonimmediate_operand predicate to register_operand.
3258
3259 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
3260
3261         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
3262
3263 2010-11-11  Jan Hubicka  <jh@suse.cz>
3264
3265         * opts.c (finish_options): Do not error on -flto-partition alone.
3266
3267         * doc/invoke.texi (-fwhopr): Merge into -flto section.
3268         (-flto-partition): Document none.
3269         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
3270         * lto-wrapper.c: Update comment.
3271         (run_gcc): Update LTO option parsing.
3272         * opts.c (finish_options): add support -flto-partition=none
3273         (common_handle_option): Remove fwhopr.
3274         * common.opt: Turn fwhopr into flto.
3275         * collect2.c (main): Update option handling.
3276         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
3277         * ipa-split.c (execute_split_functions): Remove flag_whopr.
3278         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
3279         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
3280         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
3281
3282 2010-11-11  Jan Hubicka  <jh@suse.cz>
3283
3284         PR tree-optimize/40436
3285         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
3286         (eliminated_by_inlining_prob): ... this one; return 50% probability
3287         for SRA.
3288         (estimate_function_body_sizes): Update use of
3289         eliminated_by_inlining_prob; estimate static function size
3290         for 2 instructions.
3291
3292 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
3293
3294         PR target/44749
3295         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
3296         declare.  Change type of argument four to type int.
3297         (mep_secondary_input_reload_class): Returns enum reg_class.
3298         (mep_secondary_output_reload_class): Likewise.
3299         (mep_function_value): Change types of arguments to cont_tree.
3300         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3301         argument four to type int.
3302         (mep_secondary_input_reload_class): Returns enum reg_class.
3303         (mep_secondary_output_reload_class): Likewise.
3304         (mep_function_value): Change types of arguments to cont_tree.
3305         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3306         mep_regno_reg_class to enum reg_class.
3307
3308 2010-11-11  Richard Henderson  <rth@redhat.com>
3309
3310         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3311         that the target has the exact fma operation that we matched.
3312
3313 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3314
3315         * reginfo.c (fix_register): Avoid inserting English word in
3316         diagnostic sentence.  Use %qs for quoting and %'.
3317
3318 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3319
3320         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3321         Intel processor family 6, model 0x2c.
3322
3323 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3324
3325         * opts.c (warning_as_error_callback,
3326         register_warning_as_error_callback): Remove.
3327         (enable_warning_as_error): Don't use warning_as_error_callback.
3328         * opts.h (register_warning_as_error_callback): Remove.
3329
3330 2010-11-11  Richard Henderson  <rth@redhat.com>
3331
3332         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3333         in between the MULT and the PLUS/MINUS.
3334
3335 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3336
3337         PR middle-end/46388
3338         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3339         BLKmode mode for it.
3340         (expand_expr_real_1): Similarly for op0.
3341
3342 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3343
3344         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3345         Document optional target selector.
3346
3347 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3348
3349         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3350         assembling high and low parts of size if not using 32-bit HWINT; else
3351         use DECL_SIZE_UNITS, not DECL_SIZE.
3352
3353 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3354
3355         PR tree-optimization/46383
3356         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3357         offsets.
3358         (compute_complex_ancestor_jump_func): Likewise.
3359         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3360
3361 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3362
3363         PR debug/46150
3364         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3365         true if expr1->hash != expr2->hash.
3366
3367 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3368
3369         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3370         diagnostics with lowercase letters.
3371         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3372         lowercase letters.
3373         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3374         diagnostic.
3375         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3376         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3377         lowercase letters.
3378         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3379         Remove trailing ' ' from diagnostic.
3380         * config/avr/avr.c (print_operand_address): Start diagnostic with
3381         a lowercase letter and remove trailing '.'.
3382         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3383         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3384         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3385         '.' from diagnostics.
3386         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3387         * config/cris/cris.c (cris_split_movdx,
3388         cris_expand_pic_call_address): Start diagnostics with lowercase
3389         letters.
3390  &n