OSDN Git Service

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