OSDN Git Service

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