OSDN Git Service

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