OSDN Git Service

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