system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
2
3         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
4         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and
5         <sys/times.h>.
6         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
7         Conditionally define.
8         (GET_ENVIRONMENT): Poison.
9         * configure.ac: Don't test for mincore.
10         * configure: Regenerate.
11         * config.in: Regenerate.
12         * collect2-aix.c: Don't include <sys/mman.h>.
13         * collect2.c: Don't include <signal.h>.
14         (SIGCHLD): Don't define.
15         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
16         * config/alpha/alpha.c: Include "splay-tree.h" instead of
17         <splay-tree.h>.
18         * config/arm/arm.c (arm_target_help): Use getenv instead of
19         GET_ENVIRONMENT.
20         * config/avr/driver-avr.c: Don't include <stdlib.h>.
21         * config/frv/frv.c: Don't include <ctype.h>.
22         * config/host-darwin.c: Don't include <sys/mman.h>.
23         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
24         (MAP_FAILED): Don't define.
25         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
26         * config/host-solaris.c: Don't include <sys/mman.h>.
27         * config/i386/cygming.h: Don't include <stdio.h>.
28         * config/i386/driver-i386.c: Don't include <stdlib.h>.
29         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
30         * config/iq2000/iq2000.c: Don't include <signal.h>.
31         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
32         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
33         * config/mep/mep-pragma.c: Don't include <stdio.h>.
34         * config/microblaze/microblaze.c: Don't include <signal.h>.
35         * config/mips/mips.c: Don't include <signal.h>.
36         * config/rs6000/host-darwin.c: Don't include <signal.h>.
37         * cppdefault.c (cpp_relocated): Use getenv instead of
38         GET_ENVIRONMENT.
39         * defaults.h (GET_ENVIRONMENT): Don't define.
40         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
41         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
42         (SIGCHLD, MAP_FAILED, kill): Don't define.
43         (process_command): Use getenv instead of GET_ENVIRONMENT.
44         * genhooks.c: Don't include <string.h>.
45         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
46         <sys/types.h>.
47         (MAP_FAILED): Don't define.
48         * ggc-page.c Don't include <sys/mman.h>.
49         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
50         * ggc-zone.c: Don't include <sys/mman.h>.
51         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
52         * graph.c: Include "config.h" instead of <config.h>.
53         * incpath.c (add_env_var_paths): Use getenv instead of
54         GET_ENVIRONMENT.
55         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or
56         "libiberty.h".
57         (SIGCHLD, kill): Don't define.
58         * mips-tfile.c: Don't include <signal.h>.
59         * opts.c: Don't include <signal.h> or <sys/resource.h>.
60         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
61         * passes.c: Don't include <signal.h>, <sys/resource.h> or
62         <sys/times.h>.
63         * sparseset.h: Don't include <assert.h>.
64         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
65         * tlink.c: Don't include "libiberty.h".
66         * toplev.c: Don't include <signal.h> or <sys/times.h>.
67         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
68         * tree-switch-conversion.c: Don't include <signal.h>.
69         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
70
71 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
72
73         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
74         c_parser_objc_try_catch_finally_statement for consistency with the
75         C++ parser.  Parse @catch(...) and pass NULL_TREE to
76         objc_begin_catch_clause() in that case.  Improved error recovery.
77         Reorganized code to be almost identical to
78         cp_parser_objc_try_catch_finally_statement.
79         
80 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
81
82         PR tree-optimization/46621
83         * gimple.h: Don't include tm.h or hard-reg-set.h .
84         * Makefile.in (GIMPLE_H): Remove $(TM_H).
85
86         PR bootstrap/44756
87         * cppbuiltin.c: Include target.h .
88         (define_builtin_macros_for_type_sizes):
89         Use targetm.float_words_big_endian.
90
91 2010-11-27  Jan Hubicka  <jh@suse.cz>
92
93         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
94         and output cold_text_section_label.
95         (dwarf2out_init): Don't do that there.
96         (dwarf2out_finish): Handle cold section end label only if cold
97         section was used.
98
99 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
100
101         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
102         VLA variables.
103
104 2010-11-27  Richard Guenther  <rguenther@suse.de>
105
106         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
107         (gimple_assign_ssa_name_copy_p): Likewise.
108         (gimple_assign_unary_nop_p): Use is_gimple_assign.
109         (is_gimple_cast): Remove.
110         (gimple_assign_single_p): Move ...
111         * gimple.h (gimple_assign_single_p): ... here.
112         (is_gimple_cast): Remove.
113         (gimple_assign_rhs_code): Simplify.
114         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
115         instead of is_gimple_cast.
116         * ipa-type-escape.c (look_for_casts): Likewise.
117
118 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
119
120         * doc/options.texi (Enum, EnumValue): Document new record types.
121         (Enum): Document new option flag.
122         * opt-functions.awk
123         * optc-gen.awk: Handle enumerated option arguments.
124         * opth-gen.awk: Handle enumerated option arguments.
125         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
126         enum_value_to_arg): New.
127         (decode_cmdline_option): Handle enumerated arguments.
128         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
129         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
130         * opts.c (print_filtered_help, print_specific_help): Take
131         lang_mask arguments.
132         (print_filtered_help): Handle printing values of enumerated
133         options.  Print possible arguments for enumerated options.
134         (print_specific_help): Update call to print_filtered_help.
135         (common_handle_option): Update calls to print_specific_help.  Use
136         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
137         handle OPT_ffp_contract_, OPT_fexcess_precision_,
138         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
139         OPT_fira_region_ here.
140         * opts.h (enum cl_var_type): Add CLVC_ENUM.
141         (struct cl_option): Add var_enum.
142         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
143         struct cl_enum, cl_enums, cl_enums_count): New.
144         (CL_ERR_ENUM_ARG): Define.
145         (CL_ERR_NEGATIVE): Update value.
146         (enum_value_to_arg): Declare.
147         * common.opt (flag_ira_algorithm, flag_ira_region,
148         flag_fp_contract_mode, flag_excess_precision_cmdline,
149         default_visibility, flag_tls_default): Remove Variable entries.
150         (help_enum_printed): New Variable.
151         (fdiagnostics-show-location=): Use Enum.  Add associated
152         SourceInclude, Enum and EnumValue entries.
153         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
154         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
155         associated Enum and EnumValue entries.
156
157 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
158
159         PR target/46623
160         * config/microblaze/microblaze.c (microblaze_block_move_straight):
161         Use XALLOCAVEC.
162         (microblaze_option_override): Don't use C++ style comments.
163         (save_restore_insns): Remove unused variable base_offset.
164         (microblaze_expand_prologue): Remove unused variable insn.
165         (microblaze_secondary_reload): Adjust type to match target.h .
166         (microblaze_elf_in_small_data_p): Move declarations to start of block.
167         (microblaze_expand_move): Likewise.
168         * config/microblaze/microblaze.h (LARGE_INT):
169         Avoid signed / unsigned comparisons.
170         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
171         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
172         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
173
174 2010-11-26  Michael Matz  <matz@suse.de>
175
176         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
177
178         * passes.c (init_optimization_passes): Remove superfluous
179         copy-prop pass.
180
181 2010-11-26  Richard Guenther  <rguenther@suse.de>
182
183         PR lto/46648
184         * gimple.c (gtc_visit): Do not return true for members of an
185         SCC still being processed but the current lattice value of
186         the member.  Treat SCC members comparison state as lattice,
187         starting at equal, eventually dropping to unequal.
188         (gimple_types_compatible_p_1): Likewise.
189
190 2010-11-26  Richard Guenther  <rguenther@suse.de>
191
192         PR middle-end/46559
193         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
194         for location list processing.
195
196 2010-11-26  Richard Guenther  <rguenther@suse.de>
197
198         PR lto/46560
199         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
200         flags manually.
201
202 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
203
204         * config/s390/s390.c (print_operand_address): Replace assert with
205         error message.
206         (print_operand): Replace assertions, gcc_unreachable and
207         fatal_insn with error messages.
208
209 2010-11-26  Richard Guenther  <rguenther@suse.de>
210
211         PR tree-optimization/46665
212         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
213
214 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
215
216         * config/arm/arm.c (arm_option_override): enable loop array
217         prefetching at -O3 for suitable targets, and configure params.
218         * config/arm/arm-protos.h (struct tune_params): Add fields for
219         configuring loop array prefetching.
220
221 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
222
223         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
224
225 2010-11-26  Richard Guenther  <rguenther@suse.de>
226
227         PR tree-optimization/46664
228         * tree-affine.c (aff_combination_to_tree): Add rest last.
229
230 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
231
232         PR target/33637
233         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
234         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
235         * configure: Regenerated.
236         * exec-tool.in: Not quoting command, may have extra arguments.
237
238 2010-11-26  Richard Guenther  <rguenther@suse.de>
239
240         PR tree-optimization/46528
241         PR debug/46338
242         * profile.c (branch_prob): Do not split blocks based on locations
243         from debug statements.
244
245 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
246
247         PR middle-end/46647
248         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
249         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
250
251         PR bootstrap/45700
252         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
253         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
254         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
255         build6_loc): Define.
256         * fold-const.c (protected_set_expr_location_unshare): New inline.
257         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
258         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
259         pedantic_omit_one_operand_loc, omit_two_operands_loc,
260         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
261         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
262         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
263         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
264         instead of buildN followed by SET_EXPR_LOCATION or
265         protected_set_expr_location.
266         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
267         Use buildN_stat_loc instead of buildN_stat followed by
268         SET_EXPR_LOCATION.
269
270 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
271
272         * Makefile.in (s-tm-texi): Remove spurous tab.
273
274 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
275
276         PR debug/46258
277         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
278         debug stmts.
279
280 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
281
282         * toplev.c (finalize): Add no_backend parameter.  Don't finish
283         passes when preprocessing only.  Adjust...
284         (do_compile): ... caller.
285
286 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
287
288         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
289         flag_unsafe_math_optimizations.
290         (negsf2): Likewise.
291         Move fnegabs related patterns together.  Only use fmpynfadd instruction
292         to negate a multiply if !flag_signed_zeros is true.
293
294 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
295
296         * gengtype-state.c (read_state_structures): Initialize "previous".
297
298 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
299             Jeremie Salvucci  <jeremie.salvucci@free.fr>
300
301         * gengtype-state.c: Add new file.
302
303         * gengtype.c (type count): New variable.
304         (new_structure, find_param_structure, create_pointer)
305         (create_array): Use it to set state_number in types.
306         (dump_everything): Improve comment.
307         (main): Call read_state and write_state. Print type_count.
308
309         * gengtype.h (type_lineloc): New function.
310         (read_state, write_state): New declarations.
311
312         * Makefile.in (GENGTYPE_FLAGS): New variable.
313         (s-gtype): Run gengtype twice and generate gtype.state.
314         (build/gengtype-state.o): New rule.
315         (build/gengtype$(build_exeext)): Link gengtype-state.o.
316         (mostlyclean): Update comment.  Remove gtype.state.
317
318 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
319
320         PR middle-end/46637
321         * combine.c (try_combine): When substing i2dest for i2src, pass
322         1 as last argument even if
323         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
324
325 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
326
327         PR middle-end/46647
328         * builtins.c (target_char_cast): Check INTEGER_CST instead of
329         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
330
331 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
332
333         * target.def (supports_split_stack, except_unwind_info): Take
334         gcc_options parameters.
335         * targhooks.c (default_except_unwind_info,
336         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
337         gcc_options parameters.
338         * targhooks.h (default_except_unwind_info,
339         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
340         prototypes.
341         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
342         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
343         Document that hooks must not be modified.
344         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
345         * doc/tm.texi: Regenerate.
346         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
347         &global_options to targetm.except_unwind_info.
348         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
349         dwarf2out_begin_prologue, dwarf2out_frame_init,
350         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
351         &global_options to targetm.except_unwind_info.
352         * except.c (init_eh, finish_eh_generation,
353         gate_convert_to_eh_region_ranges,
354         output_one_function_exception_table): Pass &global_options to
355         targetm.except_unwind_info.
356         * expr.c (build_personality_function): Pass &global_options to
357         targetm.except_unwind_info.
358         * function.c (expand_function_end): Pass &global_options to
359         targetm.except_unwind_info.
360         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
361         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
362         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
363         and targetm.supports_split_stack.  Remove assertions about opts
364         and opts_set.
365         (common_handle_option): Remove assertions about opts, opts_set and dc.
366         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
367         &global_options to targetm.except_unwind_info.
368         * tree.c (build_common_builtin_nodes: Pass &global_options to
369         targetm.except_unwind_info.
370         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
371         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
372         thumb1_expand_prologue, thumb1_output_function_prologue,
373         arm_unwind_emit, arm_output_fn_unwind): Update calls to
374         arm_except_unwind_info.
375         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
376         parameter.
377         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
378         parameter.
379         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
380         ia64_reorg, ia64_asm_unwind_emit): Update calls to
381         ia64_except_unwind_info.
382         * config/pa/pa.c (pa_option_override): Pass &global_options to
383         targetm.except_unwind_info.
384         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
385         Remove prototype.
386
387 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
388
389         * cgraphunit.c (process_function_and_variable_attributes):
390         Mark dllexport-ed function/variables as needed.
391         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
392         as externally visible.
393
394 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
395
396         PR rtl-optimization/46585
397         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
398         (vinsn_init): Skip computation of dependencies for local NOPs.
399         (vinsn_delete): Don't try to free regsets for local NOPs.
400         (setup_nop_and_exit_insns): Change definition of nop_pattern.
401
402 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
403
404         PR rtl-optimization/46602
405         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
406         (tidy_control_flow): Here.
407
408 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
409             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
410
411         PR bootstrap/45888
412         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
413         Fix target.def pathname in timestamp comparison.
414
415 2010-11-24  Richard Henderson  <rth@redhat.com>
416
417         * config/ia64/predicates.md (pmpyshr_operand): New.
418         * config/ia64/ia64.c (ia64_expand_unpack): New.
419         (ia64_expand_widen_mul_v4hi): New.
420         (ia64_expand_widen_sum): Update for pattern renames.
421         (ia64_expand_dot_prod_v8qi): Likewise.
422         * config/ia64/ia64-protos.h: Update.
423         * config/ia64/vect.md (vecwider): New mode attribute.
424         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
425         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
426         (pmpyshr2, pmpyshr2_u): New.
427         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
428         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
429         (mulv2si3): New.
430         (vec_pack_ssat_v4hi): Rename from pack2_sss.
431         (vec_pack_usat_v4hi): Rename from *pack2_uss.
432         (vec_pack_ssat_v2si): Rename from pack4_sss.
433         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
434         vec_select operation.
435         (vec_interleave_highv8qi): Similarly.
436         (mux1_alt): Rename from *mux1_alt.
437         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
438         (vec_interleave_lowv4hi): Rename from unpack2_l.
439         (vec_interleave_highv4hi): Rename from unpack2_h.
440         (mix2_r): Rename from *mix2_r.
441         (mix2_l): Similarly.
442         (vec_extract_evenodd_helper): New.
443         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
444         (vec_interleave_lowv2si): Rename from *unpack4_l.
445         (vec_interleave_highv2si): Rename from *unpack4_h.
446         (vec_extract_evenv2si, vec_extract_oddv2si): New.
447         (vec_interleave_lowv2sf): Rename from fmix_r.
448         (vec_interleave_highv2sf): Rename from *fmix_l.
449         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
450         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
451         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
452         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
453
454 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
455
456         * targhooks.c (default_except_unwind_info): Remove
457         MUST_USE_SJLJ_EXCEPTIONS case.
458         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
459         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
460         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
461         * doc/tm.texi: Regenerate.
462         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
463
464 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
465
466         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
467         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
468         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
469         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
470         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
471
472 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
473
474         PR target/46519
475         * config/i386/i386.c (ix86_expand_call): Don't check
476         TREE_THIS_VOLATILE.
477
478 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
479
480         PR target/46519
481         * config/i386/i386.c (upper_128bits_state): New.
482         (block_info_def): Remove upper_128bits_set and done.  Add state,
483         referenced, count, processed and rescanned.
484         (check_avx256_stores): Updated.
485         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
486         Call note_stores only if needed.  Set referenced and count.
487         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
488         (rescan_move_or_delete_vzeroupper): New.
489         (move_or_delete_vzeroupper):  Process and rescan all all basic
490         blocks instead of predecessor blocks of all exit points.
491         (ix86_option_override_internal): Enable vzeroupper optimization
492         only for -fexpensive-optimizations and not optimizing for size.
493         (use_avx256_p): Removed.
494         (init_cumulative_args): Don't set use_avx256_p.
495         (ix86_function_arg): Likewise.
496         (ix86_expand_move): Likewise.
497         (ix86_expand_vector_move_misalign): Likewise.
498         (ix86_local_alignment): Likewise.
499         (ix86_minimum_alignment): Likewise.
500         (ix86_expand_epilogue): Don't check use_avx256_p when generating
501         vzeroupper.
502         (ix86_expand_call): Likewise.
503
504         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
505         and use_avx256_p.  Add rescan_vzeroupper_p.
506
507 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
508
509         * toplev.c: Include <signal.h>.
510
511 2010-11-24  Richard Guenther  <rguenther@suse.de>
512
513         PR lto/43218
514         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
515         conflicting function signatures as non-inlineable.
516
517 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
518
519         PR rtl-optimization/46614
520         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
521          (deps_analyze_insn): Mark JUMP_INSNs in
522         last_pending_memory_flush that weren't added through
523         flush_pending_lists with NON_FLUSH_JUMP_KIND.
524         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
525         on INSN_LIST instead of JUMP_P check on its operand.
526         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
527
528 2010-11-24  Richard Guenther  <rguenther@suse.de>
529
530         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
531
532 2010-11-24  Richard Guenther  <rguenther@suse.de>
533
534         PR lto/46606
535         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
536         a FIELD_DECL that is type correct issue a warning and fixup
537         with a VIEW_CONVERT_EXPR.
538
539 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
540
541         * doc/invoke.texi (Options for Debugging Your Program or GCC):
542         Explain static numbering of dump files.
543
544 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
545
546         * common.opt (user_vect_verbosity_level): New Variable entry.
547         (ftree-vectorizer-verbose=): Mark as UInteger.
548         * flag-types.h (enum vect_verbosity_levels): Move from enum
549         verbosity_levels in tree-vectorizer.h.
550         * opts.c: Don't include tree.h.
551         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
552         gcc_options parameter; take integer option argument.
553         (common_handle_option): Update call to vect_set_verbosity_level.
554         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
555         (vect_set_verbosity_level): Move to opts.c.
556         (vect_verbosity_level, vect_print_dump_info): Update for change of
557         enum name.
558         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
559         (vect_print_dump_info): Update for change of enum name.
560         * tree.h (vect_set_verbosity_level): Remove.
561         * Makefile.in (opts.o): Update dependencies.
562
563 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
564
565         PR middle-end/46629
566         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
567         instead of insn with any_condjump_p.
568
569 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
570
571         * config/mips/loongson.md: Change the description comment of the file
572         and update the copyright years.
573         (define_insn "<u>div<mode>3): Add loongson3a support.
574         (define_insn "<u>mod<mode>3"): Likewise.
575         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
576         mul<mode>3_mul3_loongson.
577         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
578         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
579
580 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
581
582         * common.opt (initial_max_fld_align, flag_debug_asm,
583         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
584         flag_print_asm_name, graph_dump_format, help_printed,
585         help_columns, flag_opts_finished): New Variable entries.
586         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
587         frandom-seed=): Mark deferred.
588         (fsched-verbose=): Use UInteger and Var.
589         * flags.h (set_struct_debug_option, flag_print_asm_name,
590         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
591         graph_dump_format): Don't declare here.
592         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
593         * opts-global.c: Include dbgcnt.h and debug.h.
594         (decode_options): Pass location to finish_options.
595         (handle_common_deferred_options): Check flag_dump_all_passed.
596         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
597         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
598         OPT_fstack_limit.
599         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
600         (set_struct_debug_option): Add location_t parameter.  Update
601         recursive call.  Use error_at.
602         (default_options_optimization): Use error_at.
603         (finish_options): Add location_t parameter.  Use
604         opts->x_flag_opts_finished instead of first_time_p.  Use
605         opts->x_optimize instead of optimize.  Use error_at.  Pass
606         location to inform.
607         (print_filtered_help): Use opts->x_help_printed to track what
608         options have been printed.
609         (print_specific_help): Use opts->x_help_columns to track number of
610         columns.
611         (common_handle_option): Pass locations and gcc_options pointers to
612         more functions.  Use warning_at instead of fnotice and warning.
613         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
614         OPT_fdebug_prefix_map_.  Use error_at.  Set
615         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
616         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
617         OPT_fsched_verbose_.
618         (handle_param): Add location_r parameter.  Use error_at.
619         (set_debug_level): Add location_r parameter.  Use error_at and
620         warning_at.
621         (setup_core_dumping): Add diagnostic_context parameter.
622         (decode_d_option): Add gcc_options, location_t and
623         diagnostic_context parameters and use them instead of global
624         state.  Use warning_at.
625         (enable_warning_as_error): Use error_at.
626         * opts.h (finish_options): Update prototype.
627         (set_struct_debug_option): Declare here.
628         * rtl.h (fix_sched_param): Remove.
629         * stor-layout.c (initial_max_fld_align): Remove.
630         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
631         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
632         (process_options): Set maximum_field_alignment.
633         * tree.h (initial_max_fld_align) Don't declare here.
634         * Makefile.in (opts.o, opts-global.o): Update dependencies.
635
636 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
637
638         * flag-types.h (struct visibility_flags): Don't declare here.
639         * flags.h (strip_off_ending, fast_math_flags_set_p,
640         fast_math_flags_struct_set_p): Declare here.
641         (visibility_options): Don't declare here.
642         * opts-common.c (option_enabled, get_option_state): Move from
643         opts.c.
644         * opts-global.c: Include diagnostic.h instead of
645         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
646         and toplev.h.
647         (const_char_p, ignored_options, in_fnames, num_in_fnames,
648         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
649         print_ignored_options, unknown_option_callback,
650         post_handling_callback, lang_handle_option, add_input_filename,
651         read_cmdline_options, initial_lang_mask, init_options_once,
652         decode_cmdline_options_to_array_default_mask,
653         set_default_handlers, decode_options): Move from opts.c.
654         (print_ignored_options): Use warning_at instead of saving and
655         restoring input_location.
656         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
657         instead of expr.h.  Don't include langhooks.h, except.h or
658         lto-streamer.h.  Add more comments on includes.
659         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
660         toplev.c.
661         (visibility_options): Move to c-family/c-common.c.
662         (const_char_p, ignored_options, in_fnames, num_in_fnames,
663         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
664         print_ignored_options, unknown_option_callback,
665         post_handling_callback, lang_handle_option, add_input_filename,
666         read_cmdline_options, initial_lang_mask, init_options_once,
667         decode_cmdline_options_to_array_default_mask,
668         set_default_handlers, decode_options): Move to opts-global.c.
669         (target_handle_option, default_options_optimization,
670         finish_options, common_handle_option): Remove static.
671         (option_enabled, get_option_state): Move to opts-common.c.
672         * opts.h (common_handle_option, target_handle_option,
673         finish_options, default_options_optimization): Declare.
674         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
675         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
676         opts.c.
677         * toplev.h (strip_off_ending, decode_d_option,
678         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
679         declare here.
680         * Makefile.in (opts.o, opts-global.o): Update dependencies.
681
682 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
683
684         PR driver/42690
685         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
686         options, replace by call of pass-through-libs spec function to process
687         link_gcc_c_sequence spec.
688         (lto_libgcc_spec): Delete variable.
689         (static_specs[]): Remove related entry.
690         (static_spec_functions[]): Add new entry for pass-through-libs.
691         (main): Don't generate deleted lto_libgcc_spec.
692         (pass_through_libs_spec_func): New function to implement the new
693         pass-through-libs spec function.
694         * doc/invoke.texi (pass-through-libs): Document new spec function.
695
696 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
697
698         * doc/options.texi (Warning, Optimization): Document.
699
700 2010-11-23  Jan Hubicka  <jh@suse.cz>
701
702         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
703         (tree_decl_with_vis): Add implicit_section_name_p.
704         * targhooks.h (default_function_section): Declare.
705         * target.def (function_section): New hook.
706         * defaults.h (HOT_TEXT_SECTION_NAME,
707         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
708         * predict.c (choose_function_section): Remove.
709         (estimate_bb_frequencies): Do not use choose_function_section.
710         * coretypes.h (enum node_frequency): Move here from cgraph.h
711         * cgraph.h (enum node_frequency): Remove.
712         * varasm.c (initialize_cold_section_name, unlikely_text_section,
713         unlikely_text_section_p): Remove.
714         (named_subsection_entry): New structure.
715         (get_text_section): New function.
716         (default_function_section): New function.
717         (function_section_1): Break out from ...; handle profile info.
718         (function_section): ... here.
719         (unlikely_text_section): Remove.
720         (unlikely_text_section_p): Use function_section_1.
721         (assemble_start_function): Do not initialize cold section.
722         (default_section_type_flags): Do not special case cold subsection.
723         (switch_to_section): Likewise.
724         * output.h (get_text_section): Define.
725         * config/i386/winnt.c: Do not special case cold section.
726         * config/darwin-protos.h (darwin_function_section): Declare.
727         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
728         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
729         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
730         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
731         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
732         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
733         * config/darwin.c (machopic_select_section): Use
734         darwin_function_section.
735         (darwin_function_section): New function.
736         * config/darwin.h (HOT_TEXT_SECTION_NAME,
737         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
738         (TARGET_ASM_FUNCTION_SECTION): Define.
739         * system.h (HOT_TEXT_SECTION_NAME,
740         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
741
742 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
743
744         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
745         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
746
747 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
748
749         PR middle-end/46499
750         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
751         following unconditional jumps.
752
753 2010-11-23  Richard Guenther  <rguenther@suse.de>
754
755         * doc/md.texi (386 constraints): Clarify A constraint documentation.
756
757 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
758             Jeremie Salvucci  <jeremie.salvucci@free.fr>
759
760         * gengtype.c (enum typekind, struct options)
761         (struct nested_ptr_data, struct pair, NUM_PARAM)
762         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
763         Move to gengtype.h.
764         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
765         Remove static, add zero state_number.
766         (typedefs, structures, param_structs, variables): Remove static.
767         (create_option): Remove.
768         (create_string_option, create_type_option, create_nested_option):
769         New functions.
770         (create_nested_ptr_option): Use create_nested_option.
771         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
772         new create*option functions.
773         (process_gc_options): Adjust for discriminated option.
774         (output_mangled_typename): Handle TYPE_NONE.
775         (walk_type): Test option kinds.
776         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
777         (write_func_for_structure, write_type, write_local, write_root)
778         (write_roots, note_def_vec, dump_options): Adjust for
779         discriminated option.
780
781         * gengtype.h (typedefs, structures, param_structs, variables
782         enum typekind): Move from gengtype.c
783         (enum option_kind): New discriminating enumeration.
784         (struct options): Becomes discriminated.
785         (struct nested_ptr_data): Nove from gengtype.c
786         (create_string_option, create_type_option, create_nested_option)
787         (create_nested_ptr_option): New functions
788         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
789         (UNION_OR_STRUCT_P): Move from gengtype.c
790
791         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
792         discriminated options.
793
794 2010-11-23  Richard Guenther  <rguenther@suse.de>
795
796         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
797         twice.  Avoid re-allocating the ops vector all the time.
798
799 2010-11-23  Richard Guenther  <rguenther@suse.de>
800
801         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
802         is_gimple_min_invariant, group tree code checks to allow
803         combining them.
804         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
805         of is_gimple_reg.
806
807 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
808
809         * config.gcc (sparc*-*-*): Reorder.
810
811 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
812
813         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
814         Remove ENABLE_CHECKING around DBGPRINTF.
815
816 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
817
818         * common.opt (exit_after_options, write_symbols, debug_info_level,
819         use_gnu_debug_info_extensions): New Variable entries.
820         (fprofile-dir=): Use Var.
821         * flag-types.h (enum debug_info_level): Rename to enum
822         debug_info_levels.
823         * flags.h (write_symbols, debug_info_level,
824         use_gnu_debug_info_extensions): Remove declarations.
825         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
826         (set_struct_debug_option): Make static variables const.
827         (use_gnu_debug_info_extensions): Remove.
828         (set_debug_level, print_filtered_help, print_specific_help,
829         fast_math_flags_set_p): Take gcc_options parameters and use them
830         in place of global variables.
831         (print_filtered_help): Make new_help non-static.
832         (print_specific_help): Update call to print_filtered_help.
833         (common_handle_option): Update calls to print_specific_help.  Use
834         gcc_options structure for more settings.  Make --help table
835         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
836         set_debug_level.
837         * toplev.c (profile_data_prefix): Remove.
838         * toplev.h (profile_data_prefix, exit_after_options): Remove
839         declarations.
840         (fast_math_flags_set_p): Update prototype.
841         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
842         Update call to fast_math_flags_set_p.
843
844 2010-11-22  Richard Henderson  <rth@redhat.com>
845
846         PR target/46434
847         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
848         return the address register extracted.
849         (crx_decompose_address): Update the extracted address register.
850
851 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
852
853         PR driver/43335
854         * gcc.c (main): Don't crash when lto-wrapper program is not found.
855
856 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
857
858         PR target/46608
859         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
860         * config/picochip/picochip-protos.h: Don't include "target.h" .
861         (picochip_secondary_reload): Don't declare.
862
863         PR target/46613
864         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
865         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
866         static.
867
868 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
869
870         PR bootstrap/46609
871         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
872         (source_dot_c_frul): Likewise.
873
874 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
875
876         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
877
878 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
879
880         PR bootstrap/44970
881         * Makefile.in (fwprop.o) Add sparseset.h.
882         * fwprop.c: Include sparseset.h
883         (struct find_occurrence_data, find_occurrence_callback,
884         find_occurrence): Remove.
885         (active_defs, active_defs_check, register_active_defs,
886         update_df_init, update_uses): New.
887         (update_df): Rewrite.
888         (try_fwprop_subst, forward_propagate_asm): Add calls to
889         update_df_init and update_df.
890         (fwprop_init): Allocate active_defs and active_defs_check.
891         (fwprop_done): Free them.
892         (fwprop, fwprop_addr): Adjust comments.
893         * df.h (df_uses_create): Declare.
894         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
895         (df_ref_create): Return result of df_ref_create_structure directly.
896         (df_ref_create_structure): Call df_install_ref_incremental when
897         no collection_rec is passed.
898         (df_ref_record): Do not create multiword hard reg info when no
899         collection_rec is passed.
900         (df_uses_create): New.
901
902 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
903
904         PR middle-end/43057
905         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
906         setting location.
907
908 2010-11-22  Richard Guenther  <rguenther@suse.de>
909
910         * gimple-fold.c (maybe_fold_reference): When canonicalizing
911         MEM_REFs, preserve volatileness.
912         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
913         addresses.
914
915 2010-11-22  Richard Guenther  <rguenther@suse.de>
916
917         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
918
919 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
920
921         PR rtl-optimization/45652
922         * alias.c (get_reg_base_value): New.
923         * rtl.h (get_reg_base_value): Add prototype.
924         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
925         non-null REG_BASE_VALUE for renaming.
926
927 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
928             Basile Starynkevitch  <basile@starynkevitch.net>
929
930         * gengtype.c: Include xregex.h and obstack.h
931         Added comments about role of get_output_file_with_visibility and
932         our regexpr machinery.
933         (frul_actionrout_t, struct file_rule_st): New.
934         (hader_dot_h_frul, source_dot_c_frul): New functions.
935         (NULL_REGEX,  NULL_FRULACT): New.
936         (files_rules): New.
937         (matching_file_name_substitute): New function.
938         (get_output_file_with_visibility): Updated comments and rewritten
939         to use the new files_rules machinery.
940
941         * Makefile.in (XREGEX_H): Added variable.
942         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
943
944 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
945
946         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
947
948 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
949
950         * target.def (conditional_register_usage): Define.
951         * reginfo.c (init_reg_sets_1): Call
952         targetm.conditional_register_usage.
953         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
954         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
955         for making it a hook.
956         * doc/tm.texi: Regenerate.
957         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
958         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
959         New function.
960         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
961         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
962         * config/arc/arc.c (arc_conditional_register_usage): ...here.
963         New function.
964         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
965         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
966         * config/arm/arm.c (arm_conditional_register_usage): ...here.
967         New function.
968         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
969         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
970         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
971         * config/bfin/bfin.c (conditional_register_usage): Move code into...
972         (bfin_conditional_register_usage): ...here.  New function.
973         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
974         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
975         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
976         * config/cris/cris.c (cris_conditional_register_usage): Make static.
977         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
978         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
979         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
980         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
981         * config/frv/frv.c (frv_conditional_register_usage): Make static.
982         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
983         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
984         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
985         New function.
986         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
987         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
988         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
989         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
990         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
991         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
992         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
993         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
994         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
995         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
996         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
997         New function.
998         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
999         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1000         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1001         Delete.
1002         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1003         static.
1004         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1005         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1006         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1007         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1008         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1009         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1010         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1011         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1012         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1013         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1014         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1015         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1016         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1017         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1018         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1019         ...here.  New function.
1020         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1021         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1022         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1023         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1024         New function.
1025         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1026         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1027         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1028         New function.
1029         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1030         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1031         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1032         Delete.
1033         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1034         static.
1035         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1036         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1037         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1038         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1039         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1040         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1041         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1042         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1043         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1044         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1045         * config/score/score.c (score_conditional_register_usage): ...here.
1046         New function.
1047         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1048         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1049         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1050         New function.
1051         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1052         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1053         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1054         New function.
1055         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1056         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1057         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1058         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1059         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1060         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1061         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1062         New function.
1063         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1064
1065 2010-11-21  Jan Hubicka  <jh@suse.cz>
1066             Dominique d'Humieres <dominiq@lps.ens.ft>
1067
1068         PR target/46510
1069         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
1070         finalize external decls.
1071
1072 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
1073
1074         * system.h (strerror): Poison.
1075
1076 2010-11-21  Richard Henderson  <rth@redhat.com>
1077
1078         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
1079         for infq/huge_valq.
1080
1081 2010-11-21  Richard Henderson  <rth@redhat.com>
1082
1083         PR rtl-optimization/46571
1084         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
1085         (compute_hash_table_work): Use NONDEBUG_INSN_P.
1086
1087 2010-11-21  Paul Koning  <ni1d@arrl.net>
1088
1089         * config/mips/pdp11.md (negsi2): Fix wrong code.
1090
1091 2010-11-21  Paul Koning  <ni1d@arrl.net>
1092
1093         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
1094         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1095
1096 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1097
1098         * config/mips/mips.c (machine_function): Rename load_label_length to
1099         load_label_num_insns.
1100         (mips_load_label_length): Rename to...
1101         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
1102         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
1103
1104 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1105
1106         PR target/46533
1107         * config/alpha/predicates.md (direct_call_operand): Return false
1108         for !TARGET_SMALL_TEXT targets.
1109
1110 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1111
1112         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
1113         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
1114         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
1115         * doc/tm.texi: Regenerate.
1116         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
1117         HANDLE_PRAGMA_WEAK): Poison.
1118         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1119         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1120         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
1121         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
1122         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1123         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1124         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1125         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
1126         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1127         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
1128         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1129         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
1130         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1131         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1132         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1133         (HANDLE_PRAGMA_WEAK): Don't undefine.
1134         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1135         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
1136         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1137         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
1138         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1139         (HANDLE_PRAGMA_WEAK): Don't undefine.
1140         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1141         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
1142         (HANDLE_PRAGMA_PACK): Don't undefine.
1143         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
1144         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1145         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1146         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1147         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
1148         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1149         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1150         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1151         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
1152         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1153         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
1154         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1155         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1156         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1157         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1158         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
1159         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1160
1161 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1162
1163         PR target/31100
1164         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
1165         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
1166         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
1167
1168 2010-11-20  Jan Hubicka  <jh@suse.cz>
1169
1170         * cgraph.c (ld_plugin_symbol_resolution_names): New.
1171         (dump_cgraph_node): Dump resolution.
1172         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
1173         (cgraph_comdat_can_be_unshared_p): Dclare.
1174         * lto-streamer-out.c (produce_symtab): Use
1175         cgraph_comdat_can_be_unshared_p.
1176         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
1177         (cgraph_comdat_can_be_unshared_p): New function based on logic
1178         in cgraph_externally_visible_p.
1179         (cgraph_externally_visible_p): Use it.
1180         (varpool_externally_visible_p): Virtual tables can be unshared.
1181         * varpool.c (dump_varpool_node): Dump resolution.
1182
1183 2010-11-20  Jan Hubicka  <jh@suse.cz>
1184
1185         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
1186
1187 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1188
1189         PR other/46202
1190         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
1191         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
1192         shell quoting.
1193         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
1194         (install-strip): New target.
1195         (STRIPPROG): New variable, exported if STRIP is set.
1196         * doc/install.texi (Final install): Minor markup and code style
1197         fixes.  Document install-strip target.
1198
1199 2010-11-20  Paul Koning  <ni1d@arrl.net>
1200
1201         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
1202         pdp11_regno_reg_class): New functions.
1203         * config/pdp11/pdp11.md (define_constants): Add register numbers.
1204         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
1205         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
1206         functions.
1207         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
1208         frame pointer and argument pointer pseudo-registers.
1209         (ARG_POINTER_REGNUM): Define.
1210         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
1211         argument pointer.
1212         (FIRST_PARM_OFFSET): Update for argument pointer.
1213         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1214         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
1215         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
1216         frame pointer and argument pointer.
1217
1218 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
1219
1220         PR debug/46561
1221         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
1222         when looking for immediate uses.
1223
1224         PR tree-optimization/45830
1225         * stmt.c (expand_switch_using_bit_tests_p): New function.
1226         (expand_case): Use it.
1227         * tree.h (expand_switch_using_bit_tests_p): New prototype.
1228         * tree-switch-conversion.c (struct switch_conv_info): Add
1229         bit_test_uniq, bit_test_count and bit_test_bb fields.
1230         (check_range): Fix a comment.
1231         (check_process_case): Compute bit_test_uniq and bit_test_count.
1232         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
1233         allocation.
1234         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
1235         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
1236         (array_value_type): New function.
1237         (build_one_array): Use it, if it returned different type,
1238         fold_convert all constructor fields and convert back to the
1239         wider type in the generated code.
1240         (process_switch): Initialize bit_test_uniq, bit_test_count and
1241         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
1242         returned true.
1243
1244 2010-11-19  Michael Matz  <matz@suse.de>
1245
1246         PR tree-optimization/46077
1247         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
1248
1249 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
1250
1251         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1252         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
1253         function.
1254         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1255
1256 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1257
1258         * mode-switching.c (optimize_mode_switching): Use
1259         FOR_BB_INSNS instead of open-coded loop.
1260         * cfgrtl.c (redirect_branch_edge): Ditto.
1261
1262 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
1263
1264         PR target/46436
1265         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
1266         to accomodate 32 bit HOST_WIDE_INT.
1267         (m68hc11_emit_logical): Remove unused variable insn.
1268         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
1269         this_insn_uses_iy before use.
1270
1271         PR target/46434
1272         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
1273
1274 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1275
1276         PR c/46547
1277         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
1278         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
1279
1280 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1281
1282         * doc/extend.texi (Function attributes): Document PowerPC target
1283         attributes that are supported.
1284         (Pragmas): Document that PowerPC now supports target pragmas.
1285
1286         * doc/options.texi (TargetVariable): Document TargetVariable,
1287         HeaderInclude, and SourceInclude.
1288
1289         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
1290         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
1291         -ffp-contract=off.
1292
1293         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
1294         SourceInclude directives.  Fix a cut+paste error with target save
1295         enum variables.  Sort enums in the structures after ints and
1296         before shorts.
1297         * opth-gen.awk: Ditto.
1298
1299         * configure.ac: Add support for HeaderInclude and SourceInclude option
1300         directives to add the appropriate files to the dependency lists.
1301         * configure: Regenerate.
1302         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
1303         (OPTIONS_C_EXTRA): New variable for SourceInclude.
1304         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
1305         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
1306         (gcc-options.o): Ditto.
1307         * opt-include.awk: New awk script to handle HeaderInclude and
1308         TargetInclude.
1309
1310         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
1311         gets saved in the target options.
1312         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
1313         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1314         (-mprototype): Ditto.
1315         (-mbit-word): ditto.
1316         (-mregnames): Ditto.
1317         (-msecure-plt): Ditto.
1318         (-mbss-plt): Ditto.
1319         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
1320         (-mpowerpc-gfxopt): Ditto.
1321         (-mmfcrf): Ditto.
1322         (-mpopcntb): Ditto.
1323         (-mfprnd): Ditto.
1324         (-mcmpb): Ditto.
1325         (-mmmfpgpr): Ditto.
1326         (-maltivec): Ditto.
1327         (-mhard-dfp): Ditto.
1328         (-mmulhw): Ditto.
1329         (-mdlmzb): Ditto.
1330         (-mmultiple): Ditto.
1331         (-mstring): Ditto.
1332         (-mpopcntd): Ditto.
1333         (-mfriz): Ditto.
1334         (-mvsx): Ditto.
1335         (-mno-update): Ditto.
1336         (-mavoid-indexed-addresses): Ditto.
1337         (-mtls-markers): Ditto.
1338         (-msched-epilog): Ditto.
1339         (-msched-prolog): Ditto.
1340         (-maix-struct-return): Ditto.
1341         (-msvr4-struct-return): Ditto.
1342         (-mxl-compat): Ditto.
1343         (-mrecip-precision): Ditto.
1344         (-mfp-in-toc): Ditto.
1345         (-msum-in-toc): Ditto.
1346         (-mvrsave): Ditto.
1347         (-mblock-move-inline-limit=): Ditto.
1348         (-misel): Ditto.
1349         (-mpaired): Ditto.
1350         (-mlongcall): Ditto.
1351         (-mgen-cell-microcode): Ditto.
1352         (-mwarn-cell-microcode): Ditto.
1353         (-mwarn-altivec-long): Ditto.
1354         (-mprioritize-restricted-insns=): Ditto.
1355         (-msingle-float): Ditto.
1356         (-mdouble-float): Ditto.
1357         (-msimple-fpu): Ditto.
1358         (-mxilinx-fpu): Ditto.
1359         * config/rs6000/aix64.opt (-mpe): Ditto.
1360
1361         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
1362         (rs6000_cpu): Move variable to be a target variable.  Rename
1363         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
1364         -mdebug=<xxx> variables into a single int.
1365         (rs6000_always_hint): Ditto.
1366         (rs6000_sched_groups): Ditto.
1367         (rs6000_align_branch_targets): Ditto.
1368         (rs6000_sched_costly_dep): Ditto.
1369         (rs6000_sched_insert_nops): Ditto.
1370         (rs6000_long_double_type_size): Ditto.
1371         (rs6000_ieeequad): Ditto.
1372         (rs6000_altivec_abi): Ditto.
1373         (rs6000_spe): Ditto.
1374         (rs6000_spe_abi): Ditto.
1375         (rs6000_float_gprs): Ditto.
1376         (rs6000_darwin64_abi): Ditto.
1377         (can_override_loop_align): Ditto.
1378         (rs6000_sdata): Ditto.
1379         (rs6000_tls_size): Ditto.
1380         (rs6000_current_abi): Ditto.
1381         (rs6000_traceback): Ditto.
1382         (rs6000_alignment_flags): Ditto.
1383         (rs6000_current_cmodel): Ditto.
1384         (rs6000_recip_control): Ditto.
1385         (rs6000_cpu_index): Ditto.
1386         (rs6000_tune_index): Ditto.
1387         (rs6000_debug): Ditto.
1388         (rs6000_target_flags_explict): Ditto.
1389
1390         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
1391         declaration.
1392
1393         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
1394         cmodel.  Change all uses.
1395
1396         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
1397         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
1398         Rename cmodel to rs6000_current_cmodel.
1399         (rs6000_sched_groups): Ditto.
1400         (rs6000_align_branch_targets): Ditto.
1401         (rs6000_sched_costly_dep): Ditto.
1402         (rs6000_sched_insert_nops): Ditto.
1403         (rs6000_long_double_type_size): Ditto.
1404         (rs6000_ieeequad): Ditto.
1405         (rs6000_altivec_abi): Ditto.
1406         (rs6000_spe): Ditto.
1407         (rs6000_spe_abi): Ditto.
1408         (rs6000_float_gprs): Ditto.
1409         (rs6000_darwin64_abi): Ditto.
1410         (can_override_loop_align): Ditto.
1411         (rs6000_sdata): Ditto.
1412         (rs6000_tls_size): Ditto.
1413         (rs6000_current_abi): Ditto.
1414         (rs6000_traceback): Ditto.
1415         (rs6000_alignment_flags): Ditto.
1416         (rs6000_current_cmodel): Ditto.
1417         (rs6000_recip_control): Ditto.
1418         (rs6000_cpu_index): Ditto.
1419         (rs6000_tune_index): Ditto.
1420         (rs6000_debug): Ditto.
1421         (rs6000_target_flags_explict): Ditto.
1422         (rs6000_sched_insert_nops_str): Make static.
1423         (rs6000_sched_costly_dep_str): Ditto.
1424         (rs6000_recip_name): Ditto.
1425         (rs6000_abi_name): Ditto.
1426         (rs6000_sdata_name): Ditto.
1427         (enum rs6000_traceback_name): Move to rs6000-opts.h.
1428         (rs6000_parse_tls_size_option): Delete.
1429         (rs6000_valid_attribute_p): New function for target attributes and
1430         pragmas.
1431         (rs6000_function_specific_save): Ditto.
1432         (rs6000_function_specific_restore): Ditto.
1433         (rs6000_function_specific_print): Ditto.
1434         (rs6000_can_inline_p): Ditto.
1435         (rs6000_set_current_function): Ditto.
1436         (rs6000_inner_target_options): Ditto.
1437         (rs6000_debug_target_options): Ditto.
1438         (rs6000_pragma_target_parse): Ditto.
1439         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
1440         attributes and pragmas.
1441         (TARGET_OPTION_SAVE): Ditto.
1442         (TARGET_OPTION_RESTORE): Ditto.
1443         (TARGET_OPTION_PRINT): Ditto.
1444         (TARGET_CAN_INLINE_P): Ditto.
1445         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1446         (POWER_MASKS): Move to file level scope from the
1447         rs6000_option_override_internal function.
1448         (POWERPC_MASKS): Ditto.
1449         (ISA_*_MASKS): Ditto.
1450         (struct rs6000_ptt): Ditto.
1451         (processor_target_table): Ditto.
1452         (rs6000_cpu_name_lookup): Map cpu name to an index in
1453         processor_target_table.
1454         (rs6000_debug_reg_global): Print more information on processor
1455         options for -mdebug=reg.
1456         (rs6000_init_hard_regno_mode_ok): Add support for target
1457         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
1458         Allow -mdebug=val1,val2.  Rename cmodel variable.
1459         (rs6000_option_override_internal): Ditto.
1460         (rs6000_option_override): Ditto.
1461         (rs6000_handle_option): Ditto.
1462         (rs6000_conditional_register_usage): Add debug trace message.
1463         (struct rs6000_opt_mask): New for target attribute/pragma support.
1464         (rs6000_opt_masks): Ditto.
1465         (struct rs6000_opt_var): Ditto.
1466         (rs6000_opt_vars): Ditto.
1467         (rs6000_previous_function): Ditto.
1468
1469         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
1470         wasn't already included.
1471         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
1472         (enum processor_type): Ditto.
1473         (rs6000_cpu): Ditto.
1474         (enum fpu_type_t): Ditto.
1475         (fpu_type): Ditto.
1476         (enum rs6000_dependence_cost): Ditto.
1477         (enum rs6000_nop_insertion): Ditto.
1478         (enum group_termination): Ditto.
1479         (rs6000_long_double_type_size): Ditto.
1480         (rs6000_ieeequad): Ditto.
1481         (rs6000_altivec_abi): Ditto.
1482         (rs6000_spe_abi): Ditto.
1483         (rs6000_spe): Ditto.
1484         (rs6000_float_gprs): Ditto.
1485         (rs6000_alignment_flags): Ditto.
1486         (rs6000_sched_insert_nops): Ditto.
1487         (enum rs6000_vector): Ditto.
1488         (enum rs6000_abi): Ditto.
1489         (rs6000_current_opt): Ditto.
1490         (rs6000_debug_*): Delete.
1491         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
1492         (TARGET_DEBUG*): Ditto.
1493
1494         * config/rs6000/rs6000-opts.h: New header file to define the enums
1495         that are used in target variables that are now defined in rs6000.opt.
1496
1497         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
1498         rs6000-opts.h.
1499         (rs6000_sdata): Ditto.
1500         (rs6000_abi_name): Delete.
1501         (rs6000_sdata_name): Ditto.
1502         (rs6000_tls_size_string): Ditto.
1503
1504 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1505
1506         * common.opt (debug_struct_ordinary, debug_struct_generic): New
1507         Variable entries.
1508         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
1509         should_emit_struct_debug): Move from opts.c.
1510         * flag-types.h (enum debug_struct_file): Move from opts.c.
1511         * flags.h (should_emit_struct_debug): Remove.
1512         (base_of_path): Declare.
1513         (set_struct_debug_option): Add gcc_options parameter.
1514         * optc-gen.awk, opth-gen.awk: Handle array variables.
1515         * opts.c (enum debug_struct_file, debug_struct_ordinary,
1516         debug_struct_generic): Remove.
1517         (set_struct_debug_option): Add gcc_options parameter.
1518         (base_of_path): Remove static.
1519         (main_input_basename, main_input_baselength, matches_main_base,
1520         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
1521         Remove.
1522         * toplev.c (main_input_basename, main_input_baselength): Define
1523         here.
1524         * toplev.h (main_input_basename, main_input_baselength): Declare
1525         here.
1526
1527 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1528
1529         * common.opt (flag_instrument_functions_exclude_functions,
1530         flag_instrument_functions_exclude_files): New Variable definitions.
1531         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
1532         * gimplify.c (char_p): Declare type and vectors.
1533         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
1534         * opts.c (flag_instrument_functions_exclude_functions,
1535         flag_instrument_functions_exclude_files): Remove.
1536         (add_comma_separated_to_vector): Take void **.
1537         (flag_instrument_functions_exclude_p): Move to gimplify.c.
1538         (common_handle_option): Use options structure for
1539         -finstrument-functions-exclude- options.
1540
1541 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1542
1543         * doc/options.texi (Var): Document effects of Defer.
1544         (Defer): Document.
1545         * opt-functions.awk (var_type, var_set): Handle deferred options.
1546         * opts-common.c (set_option): Handle CLVC_DEFER.
1547         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
1548         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
1549         fstack-limit-symbol=): Mark as deferred.
1550         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
1551         plugin.h.
1552         (print_filtered_help): Don't report state of CLVC_DEFER options.
1553         (common_handle_option): Move code for OPT_fcall_used_,
1554         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
1555         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
1556         OPT_fstack_limit_symbol_ to opts-global.c.
1557         (option_enabled, get_option_state): Handle CLVC_DEFER.
1558         * opts.h: Include vec.h.
1559         (enum cl_var_type): Add CLVC_DEFER.
1560         (cl_deferred_option): Define type and vectors.
1561         (handle_common_deferred_options): Declare.
1562         * opts-global.c: New.
1563         * toplev.c (toplev_main): Call handle_common_deferred_options
1564         * Makefile.in (OPTS_H): Include $(VEC_H).
1565         (OBJS-common): Include opts-global.o.
1566         (opts.o): Update dependencies.
1567         (opts-global.o): Add dependencies.
1568
1569 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1570
1571         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
1572         to objc_declare_protocols.
1573
1574 2010-11-19  Richard Guenther  <rguenther@suse.de>
1575
1576         PR lto/45789
1577         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
1578         IDENTIFIERs do not stream TREE_TYPE.
1579         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
1580
1581 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
1582
1583         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
1584
1585 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
1586
1587         PR target/45870
1588         * dwarf2out.c (const_ok_for_output_1): Don't complain about
1589         non-delegitimized TLS UNSPECs.
1590
1591 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
1592             Ian Lance Taylor  <iant@google.com>
1593
1594         * config/darwin-c.c (darwin_additional_format_types): Export.
1595
1596 2010-11-18  Paul Koning  <ni1d@arrl.net>
1597
1598         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
1599         pointer.
1600
1601 2010-11-18  Paul Koning  <ni1d@arrl.net>
1602
1603         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
1604         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
1605         * config/pdp11/pdp11.opt (-mabshi): Delete.
1606
1607 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
1608
1609         * resource.h (struct resources): Fix typo in the comment.
1610
1611 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1612
1613         PR target/46546
1614         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
1615
1616 2010-11-18  Richard Henderson  <rth@redhat.com>
1617
1618         PR middle-end/46515
1619         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
1620         maybe_copy_epilogue_insn; handle prologue insns as well.
1621         * rtl.h, cfglayout.c: Update for rename.
1622         * recog.c (peep2_attempt): Copy prologue/epilogue data for
1623         RTX_FRAME_RELATED_P insns.
1624
1625 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
1626
1627         PR middle-end/46534
1628         * builtins.c (fold_builtin_printf): Don't copy and modify string
1629         before build_string_literal, instead modify what
1630         build_string_literal returned.
1631
1632 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
1633
1634         PR c/33193
1635         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
1636         REALPART_EXPR and IMAGPART_EXPR.
1637
1638 2010-11-18  Richard Guenther  <rguenther@suse.de>
1639
1640         PR tree-optimization/46172
1641         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
1642         function.
1643         (slpeel_tree_peel_loop_to_edge): Call it.
1644
1645 2010-11-18  Jeff Law  <law@redhat.com>
1646
1647         PR middle-end-optimization/46297
1648         * postreload.c (reload_combine_note_store): Deal with embedded
1649         side effects in MEM expressions.
1650
1651 2010-11-18  Richard Guenther  <rguenther@suse.de>
1652
1653         PR lto/45089
1654         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
1655         when checking is not enabled.
1656
1657 2010-11-18  Richard Guenther  <rguenther@suse.de>
1658
1659         PR lto/46525
1660         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
1661         type leaders.
1662         (gimple_register_canonical_type): Also cache the canoncial type
1663         for non type leaders.
1664
1665 2010-11-18  Richard Guenther  <rguenther@suse.de>
1666
1667         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
1668
1669 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
1670
1671         PR middle-end/46518
1672         * sel-sched-ir.c (init_expr): Use the correct type for
1673         target_available.
1674         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
1675
1676 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
1677
1678         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
1679         as well as -mrelocatable at the same time.
1680
1681 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
1682
1683         PR target/46422
1684         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
1685         Call the clz builtin.
1686
1687 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
1688             Steve Ellcey  <sje@cup.hp.com>
1689
1690         PR middle-end/31490
1691         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1692         if section attribute used.
1693
1694 2010-11-17  Jan Hubicka  <jh@suse.cz>
1695
1696         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
1697         expand errno setting variant when optimizing for size.
1698
1699 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1700
1701         * postreload.c (reload_combine): Call control_flow_insn_p only once.
1702         Reverse backward loop.  Fix formatting issues.
1703
1704 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
1705
1706         * c-parser.c (c_token_is_qualifier,
1707         c_parser_next_token_is_qualifier): New.
1708         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
1709         Improve error message on specs->tagdef_seen_p.
1710         (c_parser_struct_or_union_specifier): Improve error recovery.
1711         (c_parser_declspecs): Move exit condition on C_ID_ID early.
1712         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
1713         using c_parser_next_token_is_qualifier; extend it to cover
1714         a ctsk_tagdef typespec and !typespec_ok in general.
1715
1716 2010-11-17  Richard Guenther  <rguenther@suse.de>
1717
1718         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
1719         (gimple_mod_pow2_value_transform): Likewise.
1720         (gimple_mod_subtract_transform): Likewise.
1721
1722 2010-11-17  Richard Guenther  <rguenther@suse.de>
1723
1724         PR lto/46504
1725         * gimple.c (gimple_register_canonical_type): Make sure to only
1726         make type leaders canonical types.
1727
1728 2010-11-17  Michael Matz  <matz@suse.de>
1729
1730         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
1731         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
1732         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
1733         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
1734         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
1735         (pass_build_ssa): ... but here.
1736         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
1737         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
1738         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
1739         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
1740         * predict.c (rebuild_frequencies): Ditto.
1741         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
1742         * emit-rtl.c (verify_rtl_sharing): Ditto.
1743         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
1744         * tree-ssa-live.c (remove_unused_locals): Ditto.
1745         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
1746         * tree-ssa.c (pass_early_warn_uninitialized,
1747         execute_update_addresses_taken, pass_update_address_taken): Ditto.
1748         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
1749         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
1750         * passes.c (pass_postreload, execute_todo): Ditto.
1751         * tree-ssanames.c (pass_release_ssa_names): Ditto.
1752
1753 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
1754
1755         * doc/invoke.texi (-dy): Remove.
1756         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
1757         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
1758         * langhooks.c (lhd_do_nothing_i): Remove.
1759         * langhooks.h (lang_hooks.parse_file): Take no arguments.
1760         * toplev.c (set_yydebug): Remove.
1761         (compile_file): Update call to lang_hooks.parse_file.
1762         (decode_d_option): Don't handle -dy.
1763
1764 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
1765
1766         PR rtl-optimization/46440
1767         * combine.c (update_cfg_for_uncondjump): When changing
1768         an indirect jump into unconditional jump, remove BARRIERs
1769         from bb's footer.
1770
1771 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
1772
1773         * opts.c (target_handle_option): Do not assert that loc ==
1774         UNKNOWN_LOCATION.
1775
1776 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
1777             Richard Guenther  <rguenther@suse.de>
1778
1779         PR middle-end/45838
1780         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1781         call_may_clobber_ref_p_1): Return true for __sync_* and some
1782         OpenMP builtins that act as threading barriers.
1783
1784 2010-11-17  Richard Guenther  <rguenther@suse.de>
1785
1786         PR tree-optimization/46498
1787         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
1788
1789 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1790
1791         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
1792         (xtensa_function_arg_boundary): ...this.
1793         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
1794         thinko in declaration.
1795         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
1796         number of parameters to picochip_function_arg_boundary.
1797         (picochip_arg_advance): Likewise.
1798
1799 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1800
1801         PR target/46512
1802         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
1803         under check for type.
1804
1805 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1806
1807         * ifcvt.c (dead_or_predicable): Fix typo.
1808
1809 2010-11-16  Richard Henderson  <rth@redhat.com>
1810
1811         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
1812         * config/s390/s390.opt (mfused-madd): Remove.
1813         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
1814         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1815         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
1816         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
1817
1818 2010-11-16  Richard Henderson  <rth@redhat.com>
1819
1820         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
1821         * config/rs6000/rs6000.opt (mfused-madd): Remove.
1822         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
1823         (*altivec_vmaddfp_1): Remove.
1824         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
1825         (altivec_mulv4sf3): Expand to FMA directly.
1826         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
1827         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
1828         * config/rs6000/paired.md (paired_madds0): Use FMA.
1829         (paired_madds1): Likewise.
1830         (*paired_madd): Rename from paired_madd; use FMA.
1831         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
1832         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1833         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
1834         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
1835         (rs6000_emit_madd): Use fma_optab.
1836         (rs6000_emit_msub): Use fms_optab.
1837         (rs6000_emit_nmsub): Expand the FMA pattern directly.
1838         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
1839         (*fmasf4_fpr): Rename from fmasf4_fpr.
1840         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
1841         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
1842         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
1843         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
1844         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
1845         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
1846         (*fmadf4_fpr): Rename from fmadf4_fpr.
1847         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
1848         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
1849         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
1850         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
1851         (fmasf4, fmadf4): Macroize into...
1852         (fma<FMA_F>4): ... here.
1853         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
1854         (nfma<FMA_F>4, nfms<FMA_F>4): New.
1855         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
1856         TARGET_FUSED_MADD.
1857         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
1858         (*vsx_fmadd<mode>4_1): Remove.
1859         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
1860         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
1861         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
1862         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
1863         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
1864         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
1865         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
1866
1867 2010-11-16  Richard Henderson  <rth@redhat.com>
1868
1869         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
1870         (fmasf4, fnmadf4, fnmasf4): Likewise.
1871         (unnamed plus+mult insns and splitters): Delete.
1872
1873 2010-11-16  Richard Henderson  <rth@redhat.com>
1874
1875         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
1876         (fnma<VSF>4): Rename from fnms_<VSF>.
1877         (fms<VSF>4): Rename from fms_<VSF>.
1878         (fma<VDF>4): Rename from fma_<VDF>.
1879         (fms<VDF>4): Rename from fms_<VDF>.
1880         (nfma<VDF>4): Rename from fnma_<VDF>.
1881         (nfms<VDF>4): Rename from fnms_<VDF>.
1882         (fnma<VDF>4, fnms<VDF>4): New expanders.
1883         (floatunsdisf2): Update for the renames.
1884         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
1885         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
1886
1887 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1888
1889         PR rtl-optimization/46490
1890         * combine.c (expand_compound_operation): Fix thinko.
1891
1892 2010-11-16  Richard Henderson  <rth@redhat.com>
1893
1894         PR target/46470
1895         * recog.c (peep2_attempt): Convert frame-related info when possible.
1896         (peep2_fill_buffer): Allow frame-related insns into the buffer.
1897         (peephole2_optimize): Allow peep2_attempt to fail.
1898
1899 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
1900
1901         PR rtl-optimization/46315
1902         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
1903         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
1904         extracted from...
1905         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
1906         (remove_reg_equal_equiv_notes_for_defs): ...this.
1907         (delete_unmarked_insns): Adjust to above renaming.
1908         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
1909         referring to registers set in the insns being moved, if any.
1910
1911         * df-core.c (df_ref_dump): New function extracted from...
1912         (df_refs_chain_dump): ...here.  Call it.
1913         (df_regs_chain_dump): Likewise.
1914         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
1915         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
1916
1917 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
1918
1919         PR rtl-optimization/46395
1920         * postreload.c (reload_combine): Invalidate register use
1921         information on all control flow insns.
1922
1923         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
1924         LABEL_REF in UNSPEC operand.
1925
1926 2010-11-16  Jan Hubicka  <jh@suse.cz>
1927
1928         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
1929         when !flag_toplevel_reorder do not remove unless variable is
1930         COMDAT or ARTIFICIAL.
1931         * ipa.c (varpool_can_remove_if_no_refs): ... here.
1932         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
1933         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
1934         * varpool.c (decide_is_variable_needed): Do not handle visibility
1935         issues.
1936         (varpool_finalize_decl): Likewise.
1937         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
1938         update outdated comment on DECL_RTL_SET_P check.
1939
1940 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1941
1942         * config/sol2.h (NM_FLAGS): Define.
1943         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
1944         * doc/tm.texi: Update.
1945
1946 2010-11-16  Nick Clifton  <nickc@redhat.com>
1947
1948         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
1949         (msubsf4): Rename to fmssf4, and use fma.
1950         (nmaddsf4): Rename to fnmasf4 and use fma.
1951         (nmsubsf4): Rename to fnmssf4 and use fma.
1952
1953 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
1954
1955         PR target/44762
1956         * config/score/score3.c (score3_return_in_memory): Constify arguments.
1957         (score3_in_small_data_p, score3_function_value): Likewise.
1958         (score3_trampoline_init): Use LCT_NORMAL.
1959         (score3_print_operand): Initialize code as UNKNOWN.
1960         * config/score/predicates.md (score_load_multiple_operation):
1961         Remove unused variable.
1962         (score_store_multiple_operation): Likewise.
1963         * config/score/score7.c (score7_return_in_memory): Constify arguments.
1964         (score7_in_small_data_p, score7_function_value): Likewise.
1965         (score7_trampoline_init): Use LCT_NORMAL.
1966         (score7_print_operand): Initialize code as UNKNOWN.
1967         * config/score/score3.h (score3_return_in_memory): Update prototype.
1968         (score3_in_small_data_p, score3_function_value): Likewise.
1969         * config/score/score-protos.h (score_function_value): Likewise.
1970         * config/score/score7.h (score7_return_in_memory): Update prototype.
1971         (score7_in_small_data_p, score7_function_value): Likewise.
1972         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
1973         (score_return_in_memory, score_pass_by_reference): Constify arguments.
1974         (score_output_mi_thunk, score_function_prologue): Don't return a value.
1975         (score_function_epilogue, score_in_small_data_p): Likewise.
1976         (score_option_override, score_asm_trampoline_template): Likewise.
1977         (score_trampoline_init, score_print_operand): Likewise.
1978         (score_print_operand_address, score_prologue): Likewise.
1979         (score_epilogue, score_call, score_call_value): Likewise.
1980         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
1981         (score_function_arg_advance): Likewise. Make static.
1982         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
1983         (score_function_arg, score_legitimate_address_p): Make static.
1984         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
1985         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
1986         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
1987         Allow (W) == HOST_BITS_PER_WIDE_INT.
1988
1989         PR java/46386
1990         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
1991         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
1992
1993 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
1994
1995         * config/arc/arc.c: Delete pasto.
1996         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
1997
1998 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
1999
2000         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2001         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2002         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2003         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2004         (mn10300_preferred_reload_class,
2005         mn10300_preferred_output_reload_class): New functions.
2006
2007 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2008
2009         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2010         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2011         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2012         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2013
2014 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2015
2016         * builtins.c (std_gimplify_va_arg_expr): Use
2017         targetm.calls.function_arg_boundary.
2018         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2019         * calls.c (struct arg_data): Update comment.
2020         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2021         * target.def (function_arg_boundary): Define.
2022         * targhooks.h (default_function_arg_boundary): Declare.
2023         * targhooks.c (default_function_arg_boundary): Define.
2024         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2025         TARGET_FUNCTION_ARG_BOUNDARY.
2026         (FUNCTION_ARG_BOUNDARY): Delete.
2027         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2028         * doc/tm.texi: Regenerate.
2029         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2030         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2031         * config/arc/arc.c (arc_function_arg_boundary): Define.
2032         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2033         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2034         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2035         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2036         (arm_function_arg_boundary): Define.
2037         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2038         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2039         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2040         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2041         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2042         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2043         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2044         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2045         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2046         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2047         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2048         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2049         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2050         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2051         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2052         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2053         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2054         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2055         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2056         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2057         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2058         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2059         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2060         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2061         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2062         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2063         * config/pa/pa.c (pa_function_arg_boundary): Define.
2064         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2065         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
2066         * config/picochip/picochip-protos.h
2067         (picochip_get_function_arg_boundary): Delete.
2068         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
2069         Rename to...
2070         (picochip_function_arg_boundary): ...this.  Make static.
2071         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
2072         (picochip_arg_advance): Adjust.
2073         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2074         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
2075         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
2076         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
2077         (rs6000_function_arg_boundary): ...this.  Make static.
2078         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
2079         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2080         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
2081         * config/rx/rx.c (rx_function_arg_boundary): Define.
2082         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2083         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
2084         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
2085         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2086         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
2087         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
2088         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
2089         (xtensa_function_arg_boundary): ...this.  Make static.
2090         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2091
2092 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2093
2094         * expr.c (alignment_for_piecewise_move): New function.
2095         (widest_int_mode_for_size): New function.
2096         (move_by_pieces, move_by_pieces_ninsns): Call them.
2097         (can_store_by_pieces, store_by_pieces_1): Likewise.
2098
2099 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2100
2101         * gcc.c (char_p): Define.  Define a VEC of it.
2102         (n_linker_options, n_assembler_options, n_preprocessor_options):
2103         Delete.
2104         (linker_options, assembler_options, preprocessor_options): Convert
2105         to a VEC.
2106         (add_preprocessor_option): Adjust.
2107         (add_assembler_option): Adjust.
2108         (add_linker_option): Adjust.
2109         (do_specs_vec): New function.
2110         (do_spec_1): Call it.  Adjust for new types.
2111
2112 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2113
2114         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
2115         (sreal.o, statistics.o, stringpool.o): Likewise.
2116
2117 2010-11-16  Richard Guenther  <rguenther@suse.de>
2118
2119         PR tree-optimization/44545
2120         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
2121         statements are not reassociatable.
2122         (reassociate_bb): Likewise.
2123
2124 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2125
2126         * bitmap.c: Delete unnecessary includes.
2127         * ebitmap.c: Likewise.
2128         * et-forest.c: Likewise.
2129         * sreal.c: Likewise.
2130         * statistics.c: Likewise.
2131         * stringpool.c: Likewise.
2132         * double-int.c: Add comment for inclusion of tm.h.
2133
2134 2010-11-16  Richard Guenther  <rguenther@suse.de>
2135
2136         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
2137         (visit_nary_op): ... this.
2138         (visit_binary_op): Remove.
2139         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
2140
2141 2010-11-16  Richard Guenther  <rguenther@suse.de>
2142
2143         PR middle-end/45172
2144         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
2145
2146 2010-11-16  Nick Clifton  <nickc@redhat.com>
2147
2148         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
2149         record is packed.
2150
2151 2010-11-15  Richard Henderson  <rth@redhat.com>
2152
2153         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
2154         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
2155         DOT_PROD_EXPR.
2156
2157 2010-11-15  Richard Henderson  <rth@redhat.com>
2158
2159         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
2160         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
2161         fma rtx_code.
2162
2163 2010-11-15  Richard Henderson  <rth@redhat.com>
2164
2165         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
2166         and *mulsubsf4 respectively.  Use fma rtx_code.
2167
2168 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
2169
2170         * gcc.c: Include "vec.h".
2171         (argbuf): Make into a VEC.
2172         (argbuf_length, argbuf_index): Remove.
2173         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
2174         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
2175         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
2176         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
2177         (gcc.o): Depend on $(VEC_H).
2178
2179 2010-11-15  Richard Henderson  <rth@redhat.com>
2180
2181         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
2182         via FMA if unsafe math.
2183         (insert_var_expansion_initialization): Handle FMA.
2184         (combine_var_copies_in_loop_exit): Likewise.
2185
2186 2010-11-15  Richard Henderson  <rth@redhat.com>
2187
2188         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
2189         * config/ia64/ia64.opt: Remove mfused-madd.
2190         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
2191         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
2192         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
2193         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
2194         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
2195         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
2196         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
2197         (fmav2sf4): Rename from fpma; use FMA code.
2198         (fmsv2sf4): Rename from fpms; use FMA code.
2199         (fnmav2sf4): Rename from *fpnma; use FMA code.
2200         * config/ia64/ia64.md (MODE_SDF): New iterator.
2201         (suffix): New mode attribute.
2202         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
2203         (fmssf4): Rename from *fmssf4.
2204         (fnmasf4): Rename from *nfmasf4.
2205         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
2206         (*nmadddf4, *nmadddf4_truncsf): Remove.
2207         (fmsdf4): Rename from *fmsdf4.
2208         (fnmadf4): Rename from *nfmadf4.
2209         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
2210         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
2211         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
2212         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
2213         (fmsxf4): Rename from *fmsxf4.
2214         (fnmaxf4): Rename from *nfmaxf4.
2215         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
2216         (*fnmaxf_trunc_<MODE_SDF>): New.
2217
2218 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2219
2220         PR tree-optimization/46461
2221         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
2222         a gimple val.
2223
2224 2010-11-15  Ian Lance Taylor  <iant@google.com>
2225
2226         * godump.c: New file.
2227         * common.opt (fdump-go-spec=): New option.
2228         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
2229         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
2230         (TYPE_SYMTAB_IS_DIE): Define.
2231         (struct tree_type): Change GTY for symtab field to use
2232         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
2233         to pick the union field.
2234         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
2235         (dump_go_spec_init): Declare.
2236         * toplev.c (process_options): Handle flag_dump_go_spec.
2237         * debug.c: Include "tree.h".
2238         (do_nothing_debug_hooks): Set tree_type_symtab_field.
2239         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2240         * dbxout.c (dbx_debug_hooks): Likewise.
2241         (xcoff_debug_hooks): Likewise.
2242         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2243         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
2244         SDB_DEBUGGING_INFO is not defined.
2245         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
2246         (Overall Options): Document -fdump-go-spec.
2247         * Makefile.in (OBJS-common): Add godump.o.
2248         (debug.o): Add dependency on $(TREE_H).
2249         (godump.o): New target.
2250         (GTFILES): Add $(srcdir)/godump.c.
2251
2252 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2253
2254         PR debug/46095
2255         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
2256         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
2257         style < 0, add REG_FRAME_RELATED_EXPR.
2258
2259         PR debug/46387
2260         * rtl.h (vt_equate_reg_base_value): New prototype.
2261         * alias.c (vt_equate_reg_base_value): New function.
2262         * var-tracking.c (vt_init_cfa_base): Use it.
2263
2264 2010-11-15  Jan Hubicka  <jh@suse.cz>
2265             Diego Novillo  <dnovillo@google.com>
2266
2267         PR lto/41528
2268         * doc/lto.texi: Add.
2269         * doc/gccint.texi: Add reference to lto.texi.
2270         * doc/invoke.texi: Update user documentation for LTO.
2271         Move internal flags to lto.texi
2272
2273 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2274
2275         * c-typeck.c (build_unary_op): Use
2276         objc_build_incr_expr_for_property_ref to build the pre/post
2277         increment/decrement of an Objective-C property ref, and skip the
2278         lvalue_or_else check in that case.
2279
2280 2010-11-15  Martin Jambor  <mjambor@suse.cz>
2281
2282         PR tree-optimization/46349
2283         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
2284         (contains_vce_or_bfcref_p): Likewise.
2285         (sra_modify_assign): Use them.
2286
2287 2010-11-15  Richard Guenther  <rguenther@suse.de>
2288
2289         PR tree-optimization/46467
2290         * tree-ssa-structalias.c (do_structure_copy): Properly treat
2291         variables without subvars.
2292
2293 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
2294
2295         * config/picochip/picochip.c (file header): Picochip name change.
2296         * config/picochip/picochip.md (file header): Likewise.
2297         * config/picochip/predicates.md (file header): Likewise.
2298         * config/picochip/dfa_space.md (file header): Likewise.
2299         * config/picochip/dfa_speed.md (file header): Likewise.
2300         * config/picochip/picochip.h(file header): Likewise.
2301         * config/picochip/constraints.md (file header): Likewise.
2302         * config/picochip/picochip-protos.h (file header): Likewise.
2303         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
2304         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
2305         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
2306         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
2307         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
2308         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
2309         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
2310         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
2311         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
2312         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
2313         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
2314         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
2315         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
2316         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
2317
2318 2010-11-15  Richard Guenther  <rguenther@suse.de>
2319
2320         PR bootstrap/46474
2321         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2322
2323 2010-11-15  Nick Clifton  <nickc@redhat.com>
2324
2325         * config/stormy16/stormy16.c (direct_return): Do not generate a
2326         direct return for interrupt handlers.
2327
2328 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
2329
2330         * Makefile.in (tm.texi): Replace with rule for:
2331         ($(srcdir)/doc/tm.texi).
2332         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
2333         $(srcdir)/doc/tm.texi .
2334         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
2335         tm.texi .
2336
2337         PR target/46427
2338         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
2339
2340         PR bootstrap/45444
2341         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
2342         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2343
2344         PR target/46432
2345         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2346
2347 2010-11-15  Richard Guenther  <rguenther@suse.de>
2348
2349         PR lto/44150
2350         * lto-opts.c (lto_write_options): Write -fexceptions even if
2351         not set by the user.
2352
2353 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2354
2355         PR c/46462
2356         * c-decl.c (declspecs_add_type): Make variables with error types
2357         integers.
2358         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
2359         do not start a declaration before an Objective-C foreach.
2360         (c_parser_declaration_or_fndef): Improve recovery after unknown
2361         type name.
2362         (c_parser_for_statement): Hoist entrance of "foreach context"
2363         before ifs, add corresponding reset where it was missing.  Do
2364         not set objc_could_be_foreach_context for C.
2365
2366 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
2367
2368         PR tree-optimization/45722
2369         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
2370         this is a reference to a component.
2371         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
2372         (ipa_note_param_call): Adjust comment.
2373
2374 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
2375
2376         * config/mips/mips.c (machine_function): Remove
2377         initialized_mips16_gp_pseudo_p.
2378         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
2379         detect whether a pseudo has already been created.  Unconditionally
2380         create a new one if not.
2381         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
2382         expanding to rtl.  Create a new pseudo otherwise, if allowed.
2383
2384 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
2385
2386         PR target/43440
2387         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
2388         * tm.texi: Regenerated.
2389         * output.h (decode_reg_name_and_count): Declare.
2390         * varasm.c (decode_reg_name_and_count): New function.
2391         (decode_reg_name): Reimplement using decode_reg_name_and_count.
2392         * reginfo.c (fix_register): Use decode_reg_name_and_count and
2393         iterate over all regs used.
2394         * stmt.c (expand_asm_operands): Likewise.
2395         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
2396         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
2397         multiple machine registers.
2398
2399 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2400
2401         * stor-layout.c (place_union_field): Do not put location information
2402         on offset expressions.
2403         (place_field): Likewise.
2404         (finalize_record_size): Likewise on size expressions.
2405         (finalize_type_size): Likewise.
2406         (layout_type): Likewise.
2407
2408 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
2409
2410         PR debug/42889
2411         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
2412         * df-core.c (df_set_bb_dirty_nonrl): Remove.
2413         * df.h (df_set_bb_dirty_nonlr): Likewise.
2414
2415 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
2416
2417         * config/mips/mips.md (call_internal): Pass curr_insn to
2418         mips_split_call.
2419         (call_internal_direct): Ditto.
2420         (call_value_internal): Ditto.
2421         (call_value_internal_direct): Ditto.
2422         (call_value_multiple_internal): Ditto.
2423         * config/mips/mips.c (mips_split_call): Do not copy
2424         CALL_INSN_FUNCTION_USAGE here.
2425
2426 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
2427
2428         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
2429         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
2430         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
2431         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
2432         (TUNE_LOONGSON_3A): Define.
2433         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
2434         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
2435         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
2436         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
2437         (mips_rtx_cost_data): Add Loongson-3A.
2438
2439 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2440
2441         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
2442         switches.
2443
2444 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2445
2446         * dwarf2out.c (macinfo_entry): New struct.
2447         (output_comp_unit): Emit the section start label here and flag that we
2448         will emit an info section.
2449         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
2450         emitting directly.
2451         (dwarf2out_end_source_file): Likewise.
2452         (dwarf2out_define): Likewise.
2453         (dwarf2out_undef): Likewise.
2454         (output_macinfo): New.
2455         (dwarf2out_init): Do not emit debug section switches here, allocate a
2456         vec for macinfo, when required.
2457         (dwarf2out_finish): First switch to debug_abbrev_section here.
2458         debug_line_section,  debug_macinfo_section, Likewise.
2459         Check that the pubtypes table has at least one unpruned entry before
2460         trying to emit it.
2461
2462 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2463
2464         PR c/20385
2465         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
2466         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
2467         token lookahead.
2468         (c_parser_compound_statement_nostart, c_parser_label,
2469         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
2470         (c_parser_declaration_or_fndef): Detect the case now matched by
2471         c_parser_next_tokens_start_declaration, give error and correct it.
2472
2473 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2474
2475         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
2476         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
2477         with typespec_kind.
2478         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
2479         (shadow_tag_warned, check_compound_literal_type): Adjust
2480         uses of tag_defined_p.
2481         (declspecs_add_type): Set typespec_kind.
2482         * c-parser.c (c_parser_declaration_or_fndef,
2483         c_parser_declspecs, c_parser_struct_declaration,
2484         c_parser_parameter_declaration, c_parser_type_name,
2485         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
2486         of type_seen_p.
2487         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
2488         tag_defined_p, pass ctsk_firstref through.
2489
2490 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2491
2492         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
2493         (struct format_wanted_type): Replace field "name" with "kind", add
2494         "format_start" and "format_length".
2495         (check_format_info_main): Fill in new fields.  Fill in
2496         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
2497         after the final NUL outside the while loop.  Do not include
2498         width and precision modifiers in the format_start/format_length
2499         of the main format.
2500         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
2501         arguments.  Compute WANTED_TYPE first so that format_type_warning
2502         can be called for missing arguments.  Adjust calls to
2503         format_type_warning.
2504         (format_type_warning): Fetch as much information as possible
2505         from format_wanted_type.  Adjust printing now that every
2506         warning has a "descr", as well as for missing argument warnings
2507         and to include % sign for format specifiers.
2508
2509 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
2510
2511         PR rtl-optimization/46204
2512         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
2513         Update all callers.  Do not recompute topological order.  Adjust
2514         fallthrough edges following a degenerate conditional jump.
2515
2516 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2517
2518         * opts-common.c (control_warning_option): New.
2519         * opts.c (set_default_handlers): New.
2520         (decode_options): Use set_default_handlers and
2521         control_warning_option.
2522         (common_handle_option): Update call to enable_warning_as_error.
2523         (enable_warning_as_error): Take gcc_options parameters.  Use
2524         control_warning_option.
2525         * opts.h (set_default_handlers, control_warning_option): Declare.
2526
2527 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2528
2529         * Makefile.in (OPTS_H): Define.
2530         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
2531         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
2532         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
2533         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
2534         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
2535         * gcc.c (driver_handle_option): Take location_t parameter.
2536         (process_command, do_self_spec): Update calls to
2537         read_cmdline_option.
2538         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
2539         * langhooks.c (lhd_handle_option): Take location_t parameter.
2540         * langhooks.h (handle_option): Take location_t parameter.
2541         * lto-opts.c (lto_reissue_options): Update call to set_option.
2542         * opts-common.c (handle_option): Make static.  Take location_t
2543         parameter and pass it to other functions.
2544         (handle_generated_option): Take location_t parameter and pass it
2545         to other functions.
2546         (read_cmdline_option): Take location_t parameter and pass it to
2547         other functions.  Use warning_at and error_at.
2548         (set_option): Take location_t parameter and pass it to other
2549         functions.
2550         * opts.c (common_handle_option): Take location_t parameter and
2551         pass it to other functions.
2552         (enable_warning_as_error): Make static.  Take location_t parameter
2553         and pass it to other functions.
2554         (lang_handle_option): Take location_t parameter and pass it to
2555         other functions.
2556         (target_handle_option): Take location_t parameter.
2557         (read_cmdline_options, maybe_default_option,
2558         maybe_default_options, default_options_optimization,
2559         decode_options): Take location_t parameter and pass it to other
2560         functions.
2561         * opts.h: Include input.h.
2562         (struct cl_option_handler_func, decode_options, set_option,
2563         handle_generated_option, read_cmdline_option): Take location_t
2564         parameters.
2565         (handle_option, enable_warning_as_error): Remove.
2566         * toplev.c (toplev_main): Update call to decode_options.
2567
2568 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
2569
2570         * graphite-cloog-util.c (oppose_constraint,
2571         cloog_matrix_to_ppl_constraint,
2572         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
2573         CLooG isl uses unsigned integers.  This triggered a warning.
2574
2575 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2576
2577         PR target/46438
2578         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
2579         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
2580         (xtensa_function_arg_1): De-constify cum.
2581         (xtensa_expand_prologue): Use add_reg_note.
2582
2583         PR target/46435
2584         * config/cris/cris.c (saved_regs_mentioned): Delete.
2585         (cris_reload_address_legitimized): Cast itype to enum reload_type.
2586         Remove unused variable op0p.
2587         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
2588         (cris_emit_movem_store): Use add_reg_note.
2589
2590         PR bootstrap/46456
2591         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
2592
2593 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2594
2595         * function.c (expand_function_end): Set the locator of the prologue on
2596         the stack checking insns.
2597
2598 2010-11-12  Richard Henderson  <rth@redhat.com>
2599
2600         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
2601         * config/xtensa/xtensa.opt (mfused-madd): Remove.
2602         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2603         MASK_FUSED_MADD.
2604         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
2605         (fnmasf4): Rename from mulsubsf3; use fma.
2606
2607 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2608             Richard Henderson  <rth@redhat.com>
2609
2610         PR target/46428
2611         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
2612         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
2613         comparison.
2614
2615 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
2616
2617         * opts-common.c (decode_cmdline_option): Initialize separate_args.
2618
2619 2010-11-12  Jan Hubicka  <jh@suse.cz>
2620
2621         * doc/invoke.texi (early-inlining-insns): Update default.
2622         * params.def (early-inlining-insns): Default to 10.
2623
2624 2010-11-12  Olivier Hainque  <hainque@adacore.com>
2625
2626         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
2627
2628 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2629
2630         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
2631         (SUPPORTS_INIT_PRIORITY): Define.
2632
2633 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2634
2635         PR target/46430
2636         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
2637         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
2638         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2639         (avr_device_to_devicelib): Likewise.
2640         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
2641         into block.
2642         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
2643         (zero_extendhidi2, zero_extendsidi2): Likewise.
2644         * config/avr/avr.c (avr_num_arg_regs): Constify type.
2645         (avr_return_addr_rtx): De-constify tem.
2646         (avr_rotate_bytes): Move declarations to start of block.
2647         Don't use variable length array.  Put nested if/else into block.
2648
2649         PR rtl-optimization/46433
2650         * var-tracking.c: Include tm_p.h .
2651
2652         PR bootstrap/44756
2653         PR build/44767
2654         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
2655         should be unsigned.
2656         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
2657         * doc/tm.texi: Regenerate.
2658
2659         PR target/46412
2660         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
2661         * config/bfin/bfin.c: Include sel-sched.h .
2662         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
2663         (expand_interrupt_handler_prologue): Remove unused variable insn.
2664         (bfin_load_pic_reg): Likewise.
2665         (bfin_rtx_costs): Make code / outer_code variables of type
2666         enum rtx_code, copied from re-named parameters.
2667         (bfin_local_alignment): Change align argument and return type
2668         to unsigned.
2669         (bfin_adjust_cost): Remove unused variable insn_type.
2670         Declare variables at start of block.
2671         (struct loop_info): Rename to...
2672         (struct loop_info_d).
2673         (workaround_rts_anomaly): Change type of icode to int.
2674         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
2675         with int-typed variable.
2676         (note_np_check_stores): Likewise.
2677         (trapping_loads_p): Remove unused variable pat.
2678         (bfin_expand_binop_builtin): Use expand_normal.
2679         (bfin_expand_unop_builtin): Likewise.
2680         (bfin_expand_builtin): Likewise.  Set tmode before use.
2681
2682         PR middle-end/44769
2683         * final.c (split_double): Don't use BITS_PER_WORD directly in
2684         shift count.
2685
2686         PR target/46431
2687         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
2688         assignment.
2689
2690         PR target/46450
2691         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
2692         Use add_reg_note.
2693         (xstormy16_function_arg): Dereference cum.
2694         (xstormy16_expand_builtin): Use expand_normal.
2695         Change type of omode to enum machine_mode.
2696         (combine_bnp): Rename and to and_insn.
2697
2698         PR target/46437
2699         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
2700         localreg.
2701
2702 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2703
2704         PR debug/46375
2705         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
2706
2707 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
2708
2709         PR lto/46376
2710         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
2711
2712 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
2713
2714         PR c/44782
2715         * common.opt (fmax-errors=): New option.
2716         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
2717         * diagnostic.h (struct diagnostic_context): Add max_errors field.
2718         * diagnostic.c (diagnostic_initialize): Initialize it.
2719         (diagnostic_action_after_output): Exit if more than max_errors
2720         have been output.
2721         * doc/invoke.texi (Warning Options): Add -fmax-errors.
2722         (-fmax-errors): Document.
2723
2724 2010-11-11  Richard Henderson  <rth@redhat.com>
2725
2726         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
2727
2728 2010-11-11  Richard Henderson  <rth@redhat.com>
2729
2730         * config/fused-madd.opt: New file.
2731         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
2732         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
2733         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2734         * config/i386/i386.opt (mfused-madd): Remove.
2735         * config/i386/sse.md (split_fma): Remove.
2736         (split_fms, split_fnma, split_fnms): Remove.
2737
2738 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
2739
2740         PR target/46088
2741         * config/i386/i386.md (*ashl<mode>3_cconly,
2742         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
2743         change nonimmediate_operand predicate to register_operand.
2744
2745 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
2746
2747         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
2748
2749 2010-11-11  Jan Hubicka  <jh@suse.cz>
2750
2751         * opts.c (finish_options): Do not error on -flto-partition alone.
2752
2753         * doc/invoke.texi (-fwhopr): Merge into -flto section.
2754         (-flto-partition): Document none.
2755         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
2756         * lto-wrapper.c: Update comment.
2757         (run_gcc): Update LTO option parsing.
2758         * opts.c (finish_options): add support -flto-partition=none
2759         (common_handle_option): Remove fwhopr.
2760         * common.opt: Turn fwhopr into flto.
2761         * collect2.c (main): Update option handling.
2762         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
2763         * ipa-split.c (execute_split_functions): Remove flag_whopr.
2764         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
2765         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
2766         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
2767
2768 2010-11-11  Jan Hubicka  <jh@suse.cz>
2769
2770         PR tree-optimize/40436
2771         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
2772         (eliminated_by_inlining_prob): ... this one; return 50% probability
2773         for SRA.
2774         (estimate_function_body_sizes): Update use of
2775         eliminated_by_inlining_prob; estimate static function size
2776         for 2 instructions.
2777
2778 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
2779
2780         PR target/44749
2781         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
2782         declare.  Change type of argument four to type int.
2783         (mep_secondary_input_reload_class): Returns enum reg_class.
2784         (mep_secondary_output_reload_class): Likewise.
2785         (mep_function_value): Change types of arguments to cont_tree.
2786         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
2787         argument four to type int.
2788         (mep_secondary_input_reload_class): Returns enum reg_class.
2789         (mep_secondary_output_reload_class): Likewise.
2790         (mep_function_value): Change types of arguments to cont_tree.
2791         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
2792         mep_regno_reg_class to enum reg_class.
2793
2794 2010-11-11  Richard Henderson  <rth@redhat.com>
2795
2796         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
2797         that the target has the exact fma operation that we matched.
2798
2799 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
2800
2801         * reginfo.c (fix_register): Avoid inserting English word in
2802         diagnostic sentence.  Use %qs for quoting and %'.
2803
2804 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
2805
2806         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2807         Intel processor family 6, model 0x2c.
2808
2809 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
2810
2811         * opts.c (warning_as_error_callback,
2812         register_warning_as_error_callback): Remove.
2813         (enable_warning_as_error): Don't use warning_as_error_callback.
2814         * opts.h (register_warning_as_error_callback): Remove.
2815
2816 2010-11-11  Richard Henderson  <rth@redhat.com>
2817
2818         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
2819         in between the MULT and the PLUS/MINUS.
2820
2821 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
2822
2823         PR middle-end/46388
2824         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
2825         BLKmode mode for it.
2826         (expand_expr_real_1): Similarly for op0.
2827
2828 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2829
2830         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
2831         Document optional target selector.
2832
2833 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
2834
2835         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
2836         assembling high and low parts of size if not using 32-bit HWINT; else
2837         use DECL_SIZE_UNITS, not DECL_SIZE.
2838
2839 2010-11-11  Martin Jambor  <mjambor@suse.cz>
2840
2841         PR tree-optimization/46383
2842         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
2843         offsets.
2844         (compute_complex_ancestor_jump_func): Likewise.
2845         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
2846
2847 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
2848
2849         PR debug/46150
2850         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
2851         true if expr1->hash != expr2->hash.
2852
2853 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
2854
2855         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
2856         diagnostics with lowercase letters.
2857         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
2858         lowercase letters.
2859         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
2860         diagnostic.
2861         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2862         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
2863         lowercase letters.
2864         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2865         Remove trailing ' ' from diagnostic.
2866         * config/avr/avr.c (print_operand_address): Start diagnostic with
2867         a lowercase letter and remove trailing '.'.
2868         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
2869         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
2870         with lowercase letters.  Use %' in diagnostics.  Remove trailing
2871         '.' from diagnostics.
2872         (bfin_handle_longcall_attribute): Use %' in diagnostic.
2873         * config/cris/cris.c (cris_split_movdx,
2874         cris_expand_pic_call_address): Start diagnostics with lowercase
2875         letters.
2876         (cris_asm_output_label_ref): Use %' in diagnostic.
2877         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
2878         letter.
2879         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
2880         lowercase letter.
2881         * config/darwin-c.c (version_as_macro): Start diagnostic with a
2882         lowercase letter.
2883         * config/darwin-driver.c (darwin_default_min_version): Use %' in
2884         diagnostic.
2885         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
2886         diagnostic.
2887         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2888         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
2889         diagnostics.
2890         * config/i386/i386.c (ix86_option_override_internal): Write
2891         diagnostic as a single sentence without trailing '.'.  Use %' in
2892         diagnostics.
2893         (ix86_function_sseregparm, classify_argument): Start diagnostics
2894         with lowercase letters.
2895         (ix86_expand_prologue): Use %' in diagnostic.
2896         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
2897         diagnostic.
2898         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
2899         lowercase letter.
2900         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
2901         diagnostic.
2902         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2903         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
2904         '`' in help text.
2905         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
2906         lowercase letter.
2907         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
2908         lowercase letters.
2909         * config/microblaze/microblaze.c (microblaze_handle_option):
2910         Remove trailing '.' from diagnostic.
2911         (print_operand): Start diagnostic with a lowercase letter.
2912         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
2913         lowercase letters.  Avoid '`' in diagnostics.
2914         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
2915         lowercase letters.  Avoid '`' in diagnostics.
2916         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
2917         lowercase letters.  Avoid '`' in diagnostics.
2918         * config/picochip/picochip.c (picochip_option_override,
2919         picochip_emit_save_register, picochip_function_arg,
2920         picochip_output_label, picochip_output_internal_label,
2921         picochip_asm_output_opcode, picochip_output_cbranch,
2922         picochip_output_compare, picochip_output_branch,
2923         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
2924         diagnostics. Start diagnostics with lowercase letters.  Use %' in
2925         diagnostics.
2926         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2927         "SPE" capitalization.  Start diagnostic with a lowercase letter.
2928         (rs6000_handle_option): Start diagnostics with lowercase letters.
2929         (def_builtin): Remove trailing '.' from diagnostic.
2930         (rs6000_savres_routine_name): Start diagnostic with a lowercase
2931         letter.
2932         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
2933         diagnostic.
2934         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
2935         lowercase letter.
2936         * config/s390/s390.c (s390_option_override) Start diagnostics with
2937         lowercase letters.  Use %' in diagnostic.
2938         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
2939         lowercase letters.
2940         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
2941         diagnostic.
2942         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
2943         diagnostic.
2944         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
2945         diagnostic.
2946         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2947         * config/spu/spu.c (spu_option_override): Start diagnostics with
2948         lowercase letters.  Use %qs for quoting in diagnostics.
2949         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
2950         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
2951         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
2952         from diagnostic.
2953         * convert.c (convert_to_integer, convert_to_vector): Use %' in
2954         diagnostics.
2955         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
2956         letter and use "cannot" spelling.
2957         * expmed.c (extract_fixed_bit_field): Start diagnostic with
2958         lowercase letter and format as a single sentence without '.'.
2959         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
2960         Use %' in diagnostics.
2961         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2962         Use %' in diagnostics.
2963         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2964         Use %' in diagnostics.
2965         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
2966         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
2967         with lowercase letters and remove tailing '.' and '\n'.
2968         * lto-cgraph.c (input_profile_summary): Start diagnostic with
2969         lowercase letter and remove trailing '.'.
2970         (input_cgraph): Start diagnostics with lowercase letters and
2971         remove trailing '\n'.
2972         * opts.c (finish_options, common_handle_option): Start diagnostics
2973         with lowercase letters and remove trailing '.'.  Fix typo in
2974         diagnostic.
2975         * passes.c (position_pass): Start diagnostic with lowercase letter.
2976         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
2977         register_callback, try_init_one_plugin): Start diagnostics with
2978         lowercase letters.
2979         * reload1.c (spill_failure): Use %' in diagnostic.
2980         (gen_reload): Start diagnostic with a lowercase letter.
2981         * stor-layout.c (place_field): Start diagnostic with a lowercase
2982         letter.
2983         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
2984         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
2985         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
2986         Start diagnostics with lowercase letters, remove trailing '.' and
2987         use %' in diagnostics.
2988         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
2989         (verify_ssa): Don't split diagnostic across two error calls.
2990         Spell out "number" and use %' in diagnostic.
2991         * value-prof.c (visit_hist, check_counter): Start diagnostics with
2992         lowercase letters.
2993
2994 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
2995
2996         PR middle-end/46419
2997         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
2998         (_mm_cvtpu16_ps): Ditto.
2999
3000 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3001
3002         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3003         warn_larger_than, larger_than_size, warn_frame_larger_than,
3004         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3005         default_visibility, flag_tls_default): New Variable declarations.
3006         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3007         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3008         (v): Declare as Common and document here.
3009         * flags.h (default_visibility, flag_generate_lto,
3010         warn_larger_than, larger_than_size, warn_frame_larger_than,
3011         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3012         flag_shlib, flag_excess_precision_cmdline): Remove.
3013         (set_Wstrict_aliasing): Update prototype.
3014         * gcc.c (verbose_flag): Remove.
3015         (driver_handle_option): Add diagnostic_context parameter.  Don't
3016         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3017         incrementing it.
3018         * opts-common.c (handle_option): Pass dc to handler.
3019         * opts.c (warn_larger_than, larger_than_size,
3020         warn_frame_larger_than, frame_larger_than_size,
3021         default_visibility): Remove.
3022         (common_handle_option): Add diagnostic_context parameter.
3023         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3024         gcc_options parameters.
3025         (lang_handle_option, target_handle_option, read_cmdline_options,
3026         decode_options): Add diagnostic_context parameters.
3027         (finish_options): Access option state through opts pointer where
3028         possible.
3029         (common_handle_option): Access option state through opts pointer
3030         where possible.  Do not set local static variable verbose.  Do not
3031         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3032         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3033         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3034         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3035         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3036         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3037         (set_Wstrict_aliasing): Add gcc_options parameter.
3038         * opts.h (struct cl_option_handler_func): Add diagnostic_context
3039         parameter to handler.
3040         (decode_options): Add diagnostic_context parameter.
3041         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
3042         asm_file_name, flag_generate_lto, flag_gen_aux_info,
3043         aux_info_file_name, flag_shlib, flag_tls_default,
3044         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
3045         (toplev_main): Pass global_dc to decode_options.
3046         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
3047         aux_info_file_name, asm_file_name): Remove.
3048         * tree.h (flag_tls_default): Remove.
3049
3050 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3051
3052         PR target/45986
3053         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
3054         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
3055
3056 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3057
3058         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
3059         (x86_64-*-*): Likewise.
3060         * config/i386/cpuid.h: Define TBM bit.
3061         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3062         and set has_tbm.
3063         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3064         isa_flag for TBM.
3065         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
3066         (OPTION_MASK_ISA_TBM_UNSET): New.
3067         (ix86_handle_option): Handle -mtbm.
3068         (isa_opts): Add -mtbm.
3069         (enum pta_flags): Add PTA_TBM.
3070         (ix86_option_override_internal): Add TBM support.
3071         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
3072         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
3073         (IX86_BUILTIN_BEXTRI64): Likewise.
3074         (bdesc_args): Add TBM intrinsics.
3075         (ix86_expand_builtin): Add TBM specific case.
3076         * config/i386/i386.h (TARGET_TBM): New for TBM.
3077         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
3078         (tbm_bextri_<mode>): Likewise.
3079         (*tbm_blcfill_<mode>): Likewise.
3080         (*tbm_blci_<mode>): Likewise.
3081         (*tbm_blcic_<mode>): Likewise.
3082         (*tbm_blcmsk_<mode>): Likewise.
3083         (*tbm_blcs_<mode>): Likewise.
3084         (*tbm_blsfill_<mode>): Likewise.
3085         (*tbm_blsic_<mode>): Likewise.
3086         (*tbm_t1mskc_<mode>): Likewise.
3087         (*tbm_tzmsk_<mode>): Likewise.
3088         * config/i386/i386.opt: Add -mtbm.
3089         * config/i386/tbmintrin.h (__bextri_u32): New.
3090         (__blcfill_u32): Likewise.
3091         (__blci_u32): Likewise.
3092         (__blcic_u32): Likewise.
3093         (__blcmsk_u32): Likewise.
3094         (__blcs_u32): Likewise.
3095         (__blsfill_u32): Likewise.
3096         (__blsic_u32): Likewise.
3097         (__t1mskc_u32): Likewise.
3098         (__tzmsk_u32): Likewise.
3099         (__bextri_u64): Likewise.
3100         (__blcfill_u64): Likewise.
3101         (__blci_u64): Likewise.
3102         (__blcic_u64): Likewise.
3103         (__blcmsk_u64): Likewise.
3104         (__blcs_u64): Likewise.
3105         (__blsfill_u64): Likewise.
3106         (__blsic_u64): Likewise.
3107         (__t1mskc_u64): Likewise.
3108         (__tzmsk_u64): Likewise.
3109         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
3110         * doc/invoke.texi: Document -mtbm.
3111         * doc/extend.texi: Document TBM built-in functions.
3112
3113 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3114
3115         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
3116         (x86_64-*-*): Likewise.
3117         * config/i386/cpuid.h: Define BMI bit.
3118         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3119         and set has_bmi.
3120         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3121         isa_flag for BMI.
3122         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
3123         (OPTION_MASK_ISA_BMI_UNSET): New.
3124         (ix86_handle_option): Handle -mbmi.
3125         (isa_opts): Add -mbmi.
3126         (enum pta_flags): Add PTA_BMI.
3127         (ix86_option_override_internal): Add BMI support.
3128         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
3129         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
3130         (IX86_BUILTIN_BEXTR64): Likewise.
3131         (IX86_BUILTIN_CTZS): Likewise.
3132         (bdesc_args): Add BMI intrinsics.
3133         (ix86_expand_args_builtin): Add BMI specific cases.
3134         * config/i386/i386.h (TARGET_BMI): New for BMI.
3135         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
3136         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
3137         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
3138         (UNSPEC_TZCNT): Likewise.
3139         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
3140         (bmi_andn_<mode>): New for BMI.
3141         (bmi_bextr_<mode>): Likewise.
3142         (bmi_blsi_<mode>): Likewise.
3143         (bmi_blsmsk_<mode>): Likewise.
3144         (bmi_blsr_<mode>): Likewise.
3145         * config/i386/i386.opt: Add -mbmi.
3146         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
3147         * config/i386/bmiintrin.h (__lzcnt_u16): New.
3148         (__tzcnt_u16): Likewise.
3149         (__andn_u32): Likewise.
3150         (__bextr_u32): Likewise.
3151         (__blsi_u32): Likewise.
3152         (__blsmsk_u32): Likewise.
3153         (__blsr_u32): Likewise.
3154         (__lzcnt_u32): Likewise.
3155         (__tzcnt_u32): Likewise.
3156         (__andn_u64): Likewise.
3157         (__bextr_u64): Likewise.
3158         (__blsi_u64): Likewise.
3159         (__blsmsk_u64): Likewise.
3160         (__blsr_u64): Likewise.
3161         (__lzcnt_u64): Likewise.
3162         (__tzcnt_u64): Likewise.
3163         * doc/invoke.texi: Document -mbmi and -mno-bmi.
3164         * doc/extend.texi: Document BMI built-in functions.
3165
3166 2010-11-10  Jan Hubicka  <jh@suse.cz>
3167
3168         PR tree-optimize/46228
3169         * doc/invoke.texi (comdat-sharing-probability): Document.
3170         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
3171         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
3172
3173 2010-11-10  Jan Hubicka  <jh@suse.cz>
3174
3175         PR tree-optimize/46228
3176         * cgraph.c (cgraph_propagate_frequency): Fix typo.
3177
3178 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
3179
3180         PR tree-optimization/46414
3181         * tree-inline.c (estimate_move_cost): Check preferred vector
3182         mode for vector type.
3183
3184 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3185
3186         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
3187
3188 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
3189
3190         PR tree-optimization/45971
3191         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
3192         for phi nodes analyzable by scev.
3193
3194 2010-11-10  Richard Guenther  <rguenther@suse.de>
3195
3196         PR tree-optimization/44964
3197         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
3198
3199 2010-11-10  Martin Jambor  <mjambor@suse.cz>
3200
3201         PR tree-optimization/46351
3202         PR tree-optimization/46377
3203         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
3204         aggregate bit-fields.
3205
3206 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3207
3208         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3209         * doc/tm.texi: Regenerate.
3210         * opts-common.c (tm.h): Don't include.
3211         (target_option_translations): Remove.
3212         (decode_cmdline_options_to_array): Don't handle translating options.
3213         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
3214         * config/darwin-driver.c: Don't condition includes on
3215         CROSS_DIRECTORY_STRUCTURE.
3216         (darwin_default_min_version): Make static.
3217         (darwin_driver_init): New.  Call darwin_default_min_version if not
3218         CROSS_DIRECTORY_STRUCTURE.
3219         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3220         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
3221         (ASM_SPEC): Add %{static}.
3222         (darwin_default_min_version): Don't declare.
3223         (darwin_driver_init): Declare.
3224         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
3225         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
3226         * config/darwin.opt (all_load, allowable_client,
3227         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
3228         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
3229         exported_symbols_list, filelist, findirect-virtual-calls,
3230         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
3231         framework, fterminated-vtables, gfull, gused, image_base, init,
3232         install_name, multi_module, multiply_defined,
3233         multiply_defined_unused, no_dead_strip_inits_and_terms,
3234         seg_addr_table, seg_addr_table_filename, segaddr,
3235         segs_read_only_addr, segs_read_write_addr, single_module,
3236         umbrella, unexported_symbols_list, weak_reference_mismatches,
3237         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
3238         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
3239         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
3240         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
3241         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
3242         (ASM_SPEC): Add %{static}.
3243         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3244         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3245         (DRIVER_SELF_SPECS): Handle options formerly in
3246         TARGET_OPTION_TRANSLATE_TABLE.
3247         * config/mep/mep.opt (mfar): New.
3248         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3249         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
3250         TARGET_OPTION_TRANSLATE_TABLE.
3251         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
3252         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3253         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
3254         ffix-and-continue, findirect-data): New.
3255         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3256         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
3257         (mnofpu): Define mask and use Report here.
3258
3259 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3260
3261         * config/s390/s390.c (s390_emit_prologue): Report the stack
3262         size if -fstack-usage is used.
3263
3264 2010-11-10  Richard Guenther  <rguenther@suse.de>
3265
3266         PR tree-optimization/46398
3267         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
3268
3269 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
3270
3271         PR target/44760
3272         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
3273         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
3274         GP_REG_OR_PSEUDO_STRICT_P.
3275         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
3276         unexpected alternative.
3277         (*movsf_internal): Likewise.
3278         (indirect_jump): Replace call to non-existant function with call to
3279         internal_error.
3280         (tablejump): Likewise.
3281         * config/iq2000/iq2000.c: Include df.h .
3282         (iq2000_function_arg_advance): Use CONST_CAST2.
3283         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
3284         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
3285         a non-zero function address.
3286         (iq2000_initial_elimination_offset): Add gcc_unreachable for
3287         unexpected value of FROM.
3288         (symbolic_expression_p): Delete.
3289         (iq2000_function_value): Constify func.
3290         (expand_one_builtin): Use expand_normal.
3291         (iq2000_print_operand): Don't print VALUE if calculating it failed.
3292
3293         PR rtl-optimization/44764
3294         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
3295
3296         PR target/46407
3297         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
3298         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
3299         with ATTRIBUTE_UNUSED.
3300         (valid_psw_flag): Constify parameter which.
3301         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
3302
3303         PR target/46415
3304         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
3305         (mmix_dbx_register_number): Likewise.
3306         * config/mmix/mmix.c: Include df.h .
3307         (mmix_local_alignment): Change argument basic_align and return type
3308         to unsigned.
3309         (mmix_dbx_register_number): Change argument and return type to
3310         unsigned.
3311         (mmix_expand_prologue): Use add_reg_note.
3312
3313         PR target/46417
3314         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
3315         (spu_split_store): Use aform.
3316         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
3317
3318 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3319
3320         PR/46268
3321         * doc/gty.texi (GTY Options): Clarify that variable_size produces
3322         allocators taking size in bytes, compare with length option.  Add
3323         size calculation example.
3324         (Invoking the garbage collector): Ensure that sentences are
3325         followed by two spaces.  Describe that pointer fields must be
3326         initialized at ggc_collect call.
3327         (Troubleshooting): New section.
3328
3329 2010-11-09  Jan Hubicka  <jh@suse.cz>
3330
3331         PR tree-optimization/40436
3332         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
3333         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
3334         normal instructions; be sure bultin is not implemented in this file;
3335         compute non-zero return cost.
3336         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
3337         * tree-inline.h (eni_weights_d): Add return cost.
3338
3339 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
3340
3341         * c-parser.c (c_parser_struct_declaration): Handle declaration
3342         specifiers followed by CPP_CLOSE_BRACE.
3343
3344 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3345
3346         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
3347         split occurs before reload, and we allocate memory at the time of
3348         the split, not during expansion.  Add attributes.
3349         (floatsi<mode>2_lfiwax_mem): Ditto.
3350         (floatunssi<mode>2_lfiwzx): Ditto.
3351         (floatunssi<mode>2_lfiwzx_mem): Ditto.
3352         (floatsidf2): Ditto.
3353         (floatunssisf2): Ditto.
3354         (floatunssidf2): Ditto.
3355         (fix_trunc<mode>si2): Ditto.
3356         (fix_trunc<mode>si2_stfiwx): Ditto.
3357         (fix_trunc<mode>si2_internal): Ditto.
3358         (fix_trunc<mode>si2): Ditto.
3359         (fix_trunc<mode>di2): Ditto.
3360         (fixuns_trunc<mode>si2_stfiwx): Ditto.
3361         (floatsisf2): Ditto.
3362         (floatdidf2_mem): Ditto.
3363         (floatunsdidf2_mem): Ditto.
3364         (floatunsdidf2): Ditto.
3365         (floatdisf2_internal1): Ditto.
3366         (floatdisf2_mem): Ditto.
3367         (floatunsdisf2_mem): Ditto.
3368         (floatsi<mode>2_lfiwax_mem2): Delete.
3369         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
3370         (fix_trunc<mode>si2_mem): Ditto.
3371         (fixuns_trunc<mode>si2_mem): Ditto.
3372         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
3373         type operations to reduce copying the values to multiple memory slots.
3374         (roundu32<mode>2_fprs): Ditto.
3375
3376         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
3377         PRE_INC, PRE_DEC, PRE_MODIFY.
3378         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
3379
3380         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
3381         Delete prototype.
3382
3383 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3384
3385         PR target/43808
3386         * cfgexpand.c (partition_stack_vars): Call
3387         update_alias_info_with_stack_vars unconditionally.
3388         (update_alias_info_with_stack_vars): Allow unused
3389         unreferenced vars when not optimizing.
3390
3391 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
3392
3393         PR tree-optimization/46036
3394         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
3395         add_to_dst_predicate_list.
3396
3397 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3398
3399         PR debug/46171
3400         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
3401         earlier.
3402         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
3403         argument, call dead_debug_reset when adding REG_UNUSED note.
3404         (dead_debug_reset): New function.
3405         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
3406         df_create_unused_note callers.
3407
3408 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
3409
3410         * config/fr30/fr30.c: Include "df.h".
3411
3412 2010-11-09  Richard Guenther  <rguenther@suse.de>
3413
3414         PR tree-optimization/46355
3415         * tree-loop-distribution.c (tree_loop_distribution): Do not
3416         distribute loops without a single exit.
3417
3418 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3419
3420         PR rtl-optimization/46237
3421         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
3422         saved hard regs if they might get partially clobbered.
3423
3424 2010-11-09  Paul Koning  <ni1d@arrl.net>
3425
3426         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
3427
3428 2010-11-09  Richard Guenther  <rguenther@suse.de>
3429
3430         PR tree-optimization/46177
3431         * tree-loop-distribution.c (prop_phis): Remove.
3432         (generate_builtin): Re-use the old loop exit edge to avoid
3433         needing to update PHI nodes.
3434
3435 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
3436
3437         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
3438         type of args_size to unsigned HOST_WIDE_INT.
3439
3440         PR target/44755
3441         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
3442         * config/t-pnt16-warn: New file.
3443         * config/picochip/picochip.c (picochip_emit_stack_allocate):
3444         Use add_reg_note.
3445         (picochip_emit_save_register): Likewise.
3446         (picochip_emit_restore_register): Remove variable insn.
3447         (picochip_legitimize_address): Don't use C++ style comments.
3448         (picochip_legitimize_reload_address): Likewise.
3449         (reorder_var_tracking_notes): Remove variable vliw_start.
3450         (picochip_reorg): Cast first arguemnt to emit_note_after to
3451         enum insn_note.
3452         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
3453         (picochip_expand_builtin_3op): Likewise.
3454         (picochip_expand_builtin_2opvoid): Likewise.
3455         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
3456         (picochip_expand_array_testport): Likewise.
3457         (picochip_init_builtins): Remove unused variables.
3458         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
3459         to unsigned long, and output it as such.
3460         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
3461         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
3462         (schedType): Cast result of picochip_schedule_type to
3463         enum attr_schedType.
3464
3465         PR target/44759
3466         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
3467         conditional to type of S.
3468         (mn10300_function_arg): Remove unused variable align.
3469         (mn10300_arg_partial_bytes): Likewise.
3470         * config/mn10300/mn10300.md (attribute cpu): Cast value to
3471         enum attr_cpu.
3472
3473 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3474
3475         PR bootstrap/46392
3476         * gengtype-parse.c (type): Call get_input_file_name to get file name.
3477
3478 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3479
3480         * tree.h (contains_placeholder_p): Fix comment.
3481         (type_contains_placeholder_p): Adjust comment.
3482         * tree.c (contains_placeholder_p): Fix comment.
3483         (type_contains_placeholder_1): Do not recurse on pointed-to types and
3484         adjust comment.
3485         (type_contains_placeholder_p): Add comment.
3486
3487 2010-11-09  Paul Koning  <ni1d@arrl.net>
3488
3489         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
3490         output of byte values.
3491
3492 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3493
3494         PR middle-end/46360
3495         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
3496         not in SSA mode.
3497
3498 2010-11-09  Richard Guenther  <rguenther@suse.de>
3499
3500         PR middle-end/46221
3501         * varasm.c (compute_visible_aliases): New function.
3502         (remove_unreachable_alias_pairs): Aliases make a target available
3503         even though we reclaimed the cgraph node.
3504         (finish_aliases_1): Likewise.
3505         * Makefile.in (varasm.o): Add pointer-set.h dependency.
3506
3507 2010-11-09  Nick Clifton  <nickc@redhat.com>
3508
3509         * config/mn10300/mn10300-modes.def: New file.
3510
3511 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
3512             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3513
3514         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
3515         (plugin_files, get_file_basename, get_file_realbasename)
3516         (get_file_langdir, error_at_line, gt_files, this_file)
3517         (system_h_file, read_input_list, create_field_all)
3518         (get_file_srcdir_relative_path, get_file_basename)
3519         (get_file_langdir, get_file_gtfilename)
3520         (get_output_file_with_visibility, get_output_file_name)
3521         (struct flist, put_mangled_filename, walk_type)
3522         (put_mangled_filename, finish_root_table, write_roots): Use
3523         input_file-s.
3524         (lang_dir_names, num_lang_dirs): Remove static.
3525         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
3526         (main): Use input_file-s.
3527
3528         * gengtype.h: (struct input_file_st, input_file): New type.
3529         (struct fileloc): Use it.
3530         (gt_files, num_gt_files, this_file, system_h_file)
3531         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
3532         (get_input_file_name): New function.
3533         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
3534         use input_file.
3535         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
3536         (get_output_file_name): Ditto.
3537
3538         * gengtype-lex.l (yybegin): Use input_file.
3539
3540         * gengtype-parse.c (parse_error): Use input_file.
3541
3542 2010-11-08  Xinliang David Li  <davidxl@google.com>
3543
3544         PR tree-optimization/46316
3545         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
3546         * double-int.h (double_int_mul_with_sign): New function.
3547         * double-int.c (double_int_mul_with_sign): New function.
3548
3549 2010-11-08  Paul Koning  <ni1d@arrl.net>
3550
3551         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
3552
3553 2010-11-08  Paul Koning  <ni1d@arrl.net>
3554
3555         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
3556
3557 2010-11-08  Paul Koning  <ni1d@arrl.net>
3558
3559         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
3560         to 8 bits.
3561
3562 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3563
3564         PR target/46378
3565         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3566         turn on ISA 2.04 rounding instructions for power5.
3567
3568         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
3569         not ISA 2.02.
3570
3571         PR target/45585
3572         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
3573         in FPR registers.
3574         (movdi_low_st): Ditto.
3575
3576 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
3577             Richard Henderson  <rth@redhat.com>
3578
3579         PR target/44758
3580         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
3581         (attribute acc_group): Cast value to enum attr_acc_group.
3582         (*movdi_nodouble+6): Use gen_int_mode.
3583         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
3584         if RTX_CODE is defined or not.
3585         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
3586         struct frv_io.
3587         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
3588         (frv_frame_access, frv_expand_prologue): Remove unused variables.
3589         (frv_expand_block_clear): Likewise.
3590         (frv_trampoline_init): Use LCT_NORMAL.
3591         (struct frv_packet_group): New struct, broken out of type of
3592         frv_packet.
3593         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
3594         use cast in loop counter increment.
3595         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
3596         assigning to io->type.
3597         (bdesc_set): Use rtx_code UNKNOWN in initializer.
3598         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
3599         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
3600         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
3601         (frv_read_argument): Use expand_normal.
3602
3603         PR target/44757
3604         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
3605         lm32_legitimate_constant_p.
3606         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3607         * config/lm32/lm32.c (gen_int_relational): Make new block for
3608         LE / LT / LEU / LTU case.  Declare variables at start of block.
3609         (lm32_block_move_inline): Use XALLOCAVEC.
3610
3611 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3612
3613         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
3614
3615 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
3616
3617         * gengtype (get_output_file_for_structure): Ensure type is union
3618         or struct.
3619         (write_splay_tree_allocator_def): Use
3620         get_output_file_with_visibility.
3621
3622 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3623
3624         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
3625         to defined values in case of an error.
3626         (s390_option_override): Skip further processing if the -march
3627         parameter wasn't recognized.
3628
3629 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
3630
3631         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
3632         assert that REG is a hard register number before using it as an index.
3633
3634         PR bootstrap/46358
3635         * config/i386/i386.c (ix86_expand_split_stack_prologue):
3636         Avoid warnings when HOST_WIDE_INT is 32 bit.
3637
3638 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3639
3640         PR target/46208
3641         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
3642         (sparc_promote_prototypes): Likewise.
3643         (sparc_promote_function_mode): Promote in 32-bit mode as well.
3644         (sparc_return_in_memory): Remove superfluous parentheses.
3645         (sparc_struct_value_rtx): Fix long lines.
3646         (sparc_function_value_1): Promote in 32-bit mode as well.
3647
3648 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
3649
3650         PR rtl-optimization/45352
3651         * sel-sched.c (find_best_expr): Do not set pneed_stall when
3652         the variable_issue hook is not implemented.
3653         (fill_insns): Remove dead variable stall_iterations.
3654         (init_seqno_1): Force EBB start for resetting sched cycles on any
3655         successor blocks of the rescheduled region.
3656         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
3657         (reset_sched_cycles_in_current_ebb): Add debug printing.
3658         New variable issued_insns.  Advance state when we have issued
3659         issue_rate insns.
3660
3661 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
3662
3663         * gengtype (main): Get here's position using POS_HERE macro for
3664         do*typedef calls.
3665
3666 2010-11-07  Ian Lance Taylor  <iant@google.com>
3667
3668         PR target/46089
3669         * config/i386/i386.c (split_stack_fn_large): New static variable.
3670         (ix86_expand_split_stack_prologue): Handle large model.
3671
3672 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
3673
3674         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
3675         all possible addressing modes.
3676
3677 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
3678
3679         PR tree-optimization/46346
3680         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
3681
3682 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
3683
3684         * config/mips/mips.c: Revert previous patch.
3685         * config/mips/mips.md: Likewise.
3686
3687 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
3688
3689         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
3690         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
3691         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
3692         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
3693         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
3694         to use FMA.
3695         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
3696         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
3697         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
3698         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
3699
3700 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
3701
3702         PR c/43384
3703         * c-decl.c (lookup_label): Labels can only be referenced in a
3704         function's scope.
3705         (store_parm_decls_oldstyle): Skip erroneous parameters.
3706
3707 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
3708
3709         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3710         LIBCALL_VALUE): Remove macros.
3711         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3712         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3713         (fr30_function_value_regno_p, fr30_function_value,
3714         fr30_libcall_value): New functions.
3715
3716 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
3717
3718         PR middle-end/46314
3719         * target.def (generate_internal_label): New asm_out hook.
3720         * output.h (default_generate_internal_label): Declare.
3721         * varasm.c (default_generate_internal_label): Define.
3722
3723 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3724
3725         PR target/44981
3726         * doc/extend.tex (format): Document NSString extension.
3727         (format_arg): Likewise.
3728         (Darwin Format Checks): New section.
3729         * doc/tm.texi: Document string object hooks (generated).
3730         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
3731         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3732         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3733         * target.def (objc_construct_string_object): Rename, amend
3734         documentation.
3735         (string_object_ref_type_p): New hook.
3736         (check_string_object_format_arg): New hook.
3737         * c-parser.c (c_parser_attributes): Allow objective-c class names as
3738         attribute identifiers.
3739         * config/darwin-c.c (darwin_cfstring_ref_p): New.
3740         (darwin_check_cfstring_format_arg): New.
3741         (darwin_additional_format_types): New.
3742         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
3743         (darwin_check_cfstring_format_arg): New.
3744         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
3745         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3746         (TARGET_N_FORMAT_TYPES): New.
3747         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3748
3749 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3750             Pascal Obry  <obry@adacore.com>
3751
3752         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
3753         in 64-bit mode and 17 otherwise.
3754
3755 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3756
3757         PR debug/45939
3758         * var-tracking.c (emit_note_insn_var_location): Make sure that
3759         call related var location notes come before the normal ones.
3760
3761 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
3762
3763         PR target/46326
3764         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
3765         in the last change.
3766
3767 2010-11-05  Ian Lance Taylor  <iant@google.com>
3768
3769         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
3770
3771 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
3772
3773         PR c/44772
3774         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
3775         pointer_set_contains if DECL_NAME is NULL.
3776
3777 2010-11-05  Ian Lance Taylor  <iant@google.com>
3778
3779         PR target/46084
3780         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
3781         request enough additional space for alignment, and force alignment.
3782
3783 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
3784
3785         * config/i386/i386.c (legitimate_pic_address_disp_p):
3786         Handle UNSPEC_PCREL.
3787         (ix86_legitimate_address_p): Likewise.
3788         (legitimize_pic_address): Likewise.
3789         (output_pic_addr_const): Likewise.
3790         (ix86_delegitimize_address): Likewise.
3791         (ix86_find_base_term): Likewise.
3792         (memory_address_length): Likewise.
3793         (x86_output_mi_thunk): Handle special case x64
3794         for non local binding.
3795         * config/i386/i386.md (UNSPEC_PCREL): New.
3796         * config/i386/winnt.c (i386_pe_binds_local_p):
3797         Allow weak symbol for x64 windows with non-local binding.
3798
3799 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
3800
3801         PR target/45670
3802         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
3803         instead of EXPAND_NORMAL for base expansion.
3804
3805 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
3806
3807         * config.gcc: Support --with-fpmath=avx for x86.
3808         * config/i386/avxmath.h: New.
3809         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
3810
3811 2010-11-05  Ian Lance Taylor  <iant@google.com>
3812
3813         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
3814         * gengtype.c (walk_type): Don't recognize descbits option.
3815
3816 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
3817
3818         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
3819         WORD_SWITCH_TAKES_ARG): Remove.
3820         * doc/options.texi (Args): Document.
3821         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
3822         * doc/tm.texi: Regenerate.
3823         * opt-functions.awk (switch_flags): Handle Args.
3824         * opts-common.c: Update comment on tm.h include.
3825         (decode_cmdline_option): Handle options with multiple arguments.
3826         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
3827         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
3828         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3829         CL_COMMON): Update values.
3830         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
3831         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
3832         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
3833         sectobjectsymbols, sectorder, segcreate, segprot): New.
3834
3835 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
3836             Uros Bizjak  <ubizjak@gmail.com>
3837
3838         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
3839         256bit AVX register is used.
3840         (ix86_expand_vector_move_misalign): Likewise.
3841         (ix86_expand_vector_move): Replace use_avx256_p with
3842         VALID_AVX256_REG_MODE.
3843
3844 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
3845
3846          PR target/44750
3847         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
3848         change.  Set $@-warn.o to -Wno-error.
3849
3850         PR bootstrap/44756
3851         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
3852         comparing it to a signed value.
3853
3854         PR middle-end/44766
3855         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
3856         PR bootstrap/44770
3857         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
3858         to i.
3859
3860         PR target/44754
3861         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
3862         (m32c_function_arg).  Add comma between arguments two and three.
3863         (m32c_promote_prototypes): Remove declaration.
3864         (current_function_special_page_vector): Likewise.
3865         (m32c_regno_reg_class): Change return type to enum reg_class.
3866         (m32c_pushm_popm): Use add_reg_note.
3867         (m32c_push_rounding): Change return type to unsigned int.
3868         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
3869         enum reload_type.
3870         (m32c_insert_attributes): Constify variable name.
3871         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
3872         (m32c_prepare_shift): Remove variable lref.
3873         (m32c_expand_movcc): Remove variable cmp.
3874         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
3875         (m32c_compare_redundant): Remove variable op2.
3876         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
3877         (m32c_pragma_memregs): Assign the number to target_memregs.
3878         (m32c_pragma_address): Remove variable var_str.
3879         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
3880         enum reg_class.
3881         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
3882         * config/m32c/bitops.md (andsi3): Add default case to switch.
3883         (iorsi3, xorsi3): Likewise.
3884         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
3885         * config/m32c/jump.md (call, call_value): Likewise.
3886         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
3887         (m32c_regno_reg_class): Likewise.
3888         (current_function_special_page_vector): Declare.
3889
3890 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
3891
3892         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
3893
3894         PR tree-optimization/46099
3895         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
3896         if it is NULL and uid wasn't found in the hash table.  Just fold the
3897         result if it is NULL otherwise.  Insert other potentially needed
3898         stmts right before current stmt instead of on the entry edge.
3899         (struct elv_data): Add gsi and reset fields.
3900         (eliminate_local_variables_1): Adjust caller.  If take_address_of
3901         failed for debug stmt, set dta->reset and return.
3902         (eliminate_local_variables_stmt): Change STMT argument for GSI,
3903         pass GSI through to the callback, handle resetting of debug stmts.
3904         (eliminate_local_variables): Adjust caller.  Process debug stmts
3905         in second phase.
3906
3907         PR middle-end/43690
3908         * gimplify.c (gimplify_asm_expr): If a "m" input is a
3909         {pre,post}{in,de}crement, fail.
3910
3911         PR debug/46307
3912         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
3913         * tree-pretty-print.c (dump_generic_node): Likewise.
3914         (op_code_prio): Likewise.
3915         * cfgexpand.c (expand_debug_expr): Likewise.
3916
3917 2010-11-04  Paul Koning  <ni1d@arrl.net>
3918
3919         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
3920         constraints.
3921
3922 2010-11-04  Chao-ying Fu  <fu@mips.com>
3923
3924         * configure.ac: Test assembler support for DSP Rev1 mult.
3925         * configure: Regenerate.
3926         * config.in: Regenerate.
3927         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
3928         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
3929         (CODE_FOR_mips_multu): New define.
3930         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
3931         dspr2_32 to dsp_32.
3932         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
3933         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
3934         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
3935         New define_expand patterns.
3936         * config/mips/constraints.md (ka): Update the constraint to test
3937         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
3938         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
3939         mips_multu): Delete.
3940         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
3941         Change target constraint to "ka".
3942         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
3943         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
3944         Emit the accumulator destination when ISA_HAS_DSP_MULT.
3945         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
3946         Emit the accumulator destination when ISA_HAS_DSP_MULT.
3947         (<u>maddsidi4): Likewise.
3948         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
3949         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
3950
3951 2010-11-04  Paul Koning  <ni1d@arrl.net>
3952
3953         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
3954
3955 2010-11-04  Paul Koning  <ni1d@arrl.net>
3956
3957         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
3958
3959 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
3960
3961         Fixed using the Objective-C 2.0 dot-syntax with class names.
3962         * c-parser.c (c_parser_next_token_starts_declspecs): In
3963         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
3964         (c_parser_next_token_starts_declaration): Same.
3965         (c_parser_postfix_expression): Parse the Objective-C 2.0
3966         dot-syntax with a class name.
3967
3968 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
3969
3970         * final.c (compute_alignments): Compute/free loop info all the time.
3971         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
3972         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
3973         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
3974         * config/rs6000/rs6000.c (cfgloop.h): Include.
3975         (can_override_loop_align): New.
3976         (rs6000_option_override_internal): Set it.
3977         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
3978         (rs6000_loop_align): New function.
3979         (rs6000_loop_align_max_skip): Likewise.
3980
3981 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3982
3983         PR driver/45703
3984         * collect2.c (main): Print --help output to stdout.  Do not
3985         exit right away, so ld --help is appended.  Add empty lines
3986         to separate output suitably.
3987
3988 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
3989
3990         PR tree-optimization/46233
3991         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
3992         after calling analyze_function, not before.
3993
3994         PR target/46234
3995         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
3996         instead of build_va_arg_indirect_ref.
3997         * config/spu/spu.c (spu_va_start): Likewise.
3998         * config/s390/s390.c (s390_va_start): Likewise.
3999
4000 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
4001
4002         PR middle-end/46292
4003         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
4004         if the innermode is not vector mode, determine the mode of a subreg
4005         by using mode_for_size of inner_size.
4006
4007 2010-11-04  Richard Guenther  <rguenther@suse.de>
4008
4009         PR rtl-optimization/46183
4010         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
4011         (execute_rtl_pre): Likewise.
4012         (execute_rtl_hoist): Likewise.
4013
4014 2010-11-04  Richard Guenther  <rguenther@suse.de>
4015
4016         PR tree-optimization/46068
4017         * ipa-split.c (consider_split): Remove gcc_unreachable.
4018
4019 2010-11-04  Richard Guenther  <rguenther@suse.de>
4020
4021         * tree-nested.c (build_addr): Use build_fold_addr_expr.
4022
4023 2010-11-04  Richard Guenther  <rguenther@suse.de>
4024
4025         PR tree-optimization/45991
4026         * gimplify.c (force_gimple_operand_1): Use the provded test
4027         function in the initial test.
4028
4029 2010-11-04  Jeff Law  <law@redhat.com>
4030
4031         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
4032         of readonly memory equivalances for const/pure calls.
4033
4034 2010-11-04  Richard Guenther  <rguenther@suse.de>
4035
4036         PR tree-optimization/45733
4037         * tree-vect-stmts.c (reverse_vec_elements): Honor the
4038         permute builtins function return type.
4039
4040 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
4041
4042         PR middle-end/44765
4043         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
4044         as an index, check it is not INVALID_REGNUM.
4045
4046         PR bootstrap/44756
4047         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
4048         unsignedp.
4049         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
4050
4051         PR bootstrap/44756
4052         * function.c (thread_prologue_and_epilogue_insns): Add
4053         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
4054
4055         PR bootstrap/44756
4056         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
4057
4058         PR target/44750
4059         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
4060         (pdp11_preferred_reload_class): Rename class to rclass.
4061         (pdp11_preferred_output_reload_class): Likewise.
4062         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
4063         ALL_COMPILERFLAGS .
4064         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
4065
4066         PR bootstrap/44756
4067         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
4068         iteration variables to enum machine_mode.
4069
4070         PR target/44751
4071         * config/h8300/h8300.c: Include df.h.
4072         (push, pop): Use add_reg_note.
4073         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
4074         (compute_a_shift_cc): Likewise.
4075         (expand_a_shift): Argument code has type enum rtx_code.
4076         (struct shift_insn): Member cc_valid has type enum attr_cc.
4077         (struct shift_info) <cc_inline, cc_special>: Likewise.
4078         enum attr_cc.
4079         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
4080         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
4081
4082 2010-11-04  Ira Rosen  <irar@il.ibm.com>
4083
4084         PR tree-optimization/46213
4085         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
4086         MINUS_EXPR only if the first operand is reduction operand.
4087
4088 2010-11-04  Richard Guenther  <rguenther@suse.de>
4089             Richard Henderson  <rth@redhat.com>
4090
4091         * tree.def (FMA_EXPR): New tree code.
4092         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
4093         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
4094         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
4095         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
4096         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4097         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
4098         (execute_optimize_widening_mul): Call it.  Reorganize to allow
4099         dead stmt removal.  Move TODO flags ...
4100         (pass_optimize_widening_mul): ... here.
4101         * flag-types.h (enum fp_contract_mode): New enum.
4102         * common.opt (flag_fp_contract_mode): New variable.
4103         (-ffp-contract): New option.
4104         * opts.c (common_handle_option): Handle it.
4105         * doc/invoke.texi (-ffp-contract): Document.
4106         * tree.h (fold_fma): Declare.
4107         * builtins.c (fold_fma): New function.
4108         (fold_builtin_fma): Likewise.
4109         (fold_builtin_3): Call it for fma.
4110         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
4111         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
4112         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
4113         New expanders.
4114         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
4115         named patterns.
4116         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
4117         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
4118         (fms_optab, fnma_optab, fnms_optab): New defines.
4119         * gimplify.c (gimplify_expr): Handle binary truth expressions
4120         explicitly.  Handle FMA_EXPR.
4121         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
4122         operations.
4123
4124 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4125             Richard Guenther  <rguenther@suse.de>
4126
4127         * passes.c (init_optimization_passes): Move veclower after SSA.
4128         * tree-vect-generic.c (uniform_vector_p): New function.
4129         (expand_vector_operations_1): Handle conversion.
4130         (pass_lower_vector): Update SSA form.
4131
4132 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
4133
4134         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
4135         plugin capabilities.
4136         * configure: Regenerate.
4137
4138 2010-11-03  Xinliang David Li  <davidxl@google.com>
4139
4140         PR target/46200
4141         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
4142         Adjust cbase if the use stmt is after iv update.
4143
4144 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4145
4146         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
4147
4148 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4149
4150         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
4151         comment.  Pass true to the last argument of output_stack_adjust.
4152
4153 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4154
4155         PR target/46295
4156         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
4157         if 256bit AVX register is used.
4158
4159 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4160
4161         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
4162         xsmindp/xsmaxdp on VSX for single precision min/max.
4163         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
4164         (vsx_sminsf3): Ditto.
4165
4166 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4167
4168         * combine.c (try_combine): Fix formatting issues, improve comments and
4169         fix a pasto.
4170
4171 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4172
4173         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
4174         of the result before building binary expressions.
4175
4176 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4177
4178         PR rtl-optimization/45865
4179         * Makefile.in (df-problems.o): Revert revision 164552.
4180         * basic-block.h (enum bb_flags): Likewise.
4181         * cfgcleanup.c (block_was_dirty): Likewise.
4182         (try_forward_edges): Likewise.
4183         (try_crossjump_bb): Likewise.
4184         (try_head_merge_bb): Likewise.
4185         (try_optimize_cfg): Likewise.
4186         (cleanup_cfg): Likewise.
4187         * df-core.c (df_set_bb_dirty): Likewise.
4188         * df-problems.c: Likewise.
4189         (df_simulate_find_uses): Likewise.
4190         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
4191         (find_memory, find_memory_store): Likewise.
4192         (can_move_insns_across): Likewise.
4193         * df.h (can_move_insns_across): Likewise.
4194         * ifcvt.c (find_memory): Likewise.
4195         (dead_or_predicable): Likewise.
4196
4197 2010-11-03  Richard Guenther  <rguenther@suse.de>
4198
4199         PR middle-end/46288
4200         * predict.c (strip_predict_hints): Simply DCE builtin expect if
4201         the result is unused.
4202
4203 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4204
4205         PR tree-optimization/46009
4206         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
4207         cond_if_else_store_replacement if bb1 and bb2 have the same
4208         single successor.
4209         (cond_store_replacement): Use gimple_assign_single_p, don't
4210         check if rhs is SSA_NAME or invariant.  Call release_defs for
4211         assign.
4212         (cond_if_else_store_replacement): New function.
4213
4214 2010-11-03  Richard Guenther  <rguenther@suse.de>
4215
4216         * opts.c (finish_options): Properly check for all WHOPR
4217         flags before complaining about -flto-partition.
4218
4219 2010-11-04  Alan Modra  <amodra@gmail.com>
4220
4221         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
4222         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
4223         TARGET_SECURE_PLT.
4224         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
4225         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
4226         on input, "r" on output.
4227
4228 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4229
4230         Implemented -fobjc-std=objc1 flag.
4231         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
4232         option.
4233         * doc/standards.texi (Standards): Updated the section on
4234         Objective-C; mention support for Objective-C 2.0 features and the
4235         new -fstd-objc=objc1 flag to disable them.
4236
4237 2010-11-03  Richard Guenther  <rguenther@suse.de>
4238
4239         PR middle-end/46241
4240         * dwarf2out.c (scope_die_for): Properly detect global scope.
4241
4242 2010-11-03  Richard Guenther  <rguenther@suse.de>
4243
4244         PR tree-optimization/46190
4245         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4246         Properly compute peel iterations.
4247
4248 2010-11-03  Richard Guenther  <rguenther@suse.de>
4249
4250         PR tree-optimization/46286
4251         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
4252         re-allocated vector data.
4253
4254 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4255
4256         PR target/46285
4257         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
4258         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
4259         is completed.
4260
4261 2010-11-03  Richard Guenther  <rguenther@suse.de>
4262
4263         PR tree-optimization/46217
4264         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
4265         flag matches.
4266         (execute_update_addresses_taken): Likewise.
4267
4268 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4269
4270         PR bootstrap/44335
4271         * targhooks.c (targhook_words_big_endian): New function.
4272         (targhook_float_words_big_endian): Likewise.
4273         * targhooks.h (targhook_words_big_endian): Declare.
4274         (targhook_float_words_big_endian): Likewise.
4275         * target.def (words_big_endian, float_words_big_endian): New hooks.
4276
4277 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4278
4279         PR tree-optimization/46165
4280         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
4281         a normal call into noreturn call.
4282
4283 2010-11-03  Richard Guenther  <rguenther@suse.de>
4284
4285         PR middle-end/46251
4286         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
4287         not INDIRECT_REFs.
4288
4289 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4290
4291         PR tree-optimization/46107
4292         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
4293         if cfg_hook_duplicate_loop_to_header_edge failed.
4294
4295 2010-11-03  Ian Lance Taylor  <iant@google.com>
4296
4297         PR lto/46273
4298         * config.gcc: Don't set lto_binary_reader.
4299         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4300         (Configuration): Mention --disable-lto.  Remove --with-libelf
4301         paragraph.
4302
4303 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4304
4305         PR debug/46252
4306         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
4307         prev_real_insn.
4308         * gcse.c (insert_insn_end_basic_block): Likewise.
4309
4310         PR rtl-optimization/46034
4311         PR rtl-optimization/46212
4312         PR rtl-optimization/46248
4313         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
4314         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
4315         before i0dest -> i0src substitution and pass 1 instead of 0 as last
4316         argument to subst on i2pat.
4317
4318 2010-11-02  Ian Lance Taylor  <iant@google.com>
4319
4320         * configure.ac: Use AC_SYS_LARGEFILE.
4321         * configure: Rebuild.
4322         * config.in: Rebuild.
4323
4324 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
4325
4326         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
4327         fold_convert.
4328         * c-typeck.c (build_function_call_vec): Likewise.
4329         * cfgexpand.c (expand_debug_expr): Likewise.
4330         * cgraphunit.c (assemble_thunk): Likewise.
4331         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
4332         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
4333         (fold_binary_loc, fold_ternary_loc): Likewise.
4334         * gimple-fold.c (get_symbol_constant_value): Likewise.
4335         * gimple-low.c (lower_builtin_setjmp): Likewise.
4336         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
4337         * gimplify.c (gimplify_init_constructor): Likewise.
4338         * lambda.h (build_linear_expr): Likewise.
4339         * omp-low.c (omp_reduction_init): Likewise.
4340         * tree-inline.c (remap_ssa_name): Likewise.
4341         * tree-object-size.c (compute_object_sizes): Likewise.
4342         * tree-sra.c (init_subtree_with_zero): Likewise.
4343         (sra_ipa_modify_assign): Likewise.
4344         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
4345         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
4346         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
4347         (undistribute_ops_list): Likewise.
4348         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4349         * tree-vect-stmts.c (vectorizable_call): Likewise.
4350         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
4351         (build_zero_cst): Handle more cases directly.  Update comment.
4352
4353 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4354
4355         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
4356         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
4357
4358         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
4359         and call ix86_split_call_vzeroupper instead of
4360         ix86_split_call_pop_vzeroupper.
4361         (*call_pop_1_vzeroupper): Likewise.
4362         (*sibcall_pop_1_vzeroupper): Likewise.
4363         (*call_value_pop_0_vzeroupper): Likewise.
4364         (*call_value_pop_1_vzeroupper): Likewise.
4365         (*sibcall_value_pop_1_vzeroupper): Likewise.
4366
4367 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4368
4369         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
4370
4371 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
4372
4373         * basic-block.h (insert_insn_end_bb_new): Delete.
4374         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
4375
4376 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
4377             H.J. Lu  <hongjiu.lu@intel.com>
4378
4379         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
4380         (ix86_split_call_pop_vzeroupper): Likewise.
4381
4382         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
4383         (ix86_expand_call): Conditionally decorate calls with
4384         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
4385         (ix86_split_call_vzeroupper): New.
4386         (ix86_split_call_pop_vzeroupper): Likewise.
4387
4388         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
4389         (*call_pop_0_vzeroupper): New insn_and_split pattern.
4390         (*call_pop_1_vzeroupper): Likewise.
4391         (*sibcall_pop_1_vzeroupper): Likewise.
4392         (*call_0_vzeroupper): Likewise.
4393         (*call_1_vzeroupper): Likewise.
4394         (*sibcall_1_vzeroupper): Likewise.
4395         (*call_1_rex64_vzeroupper): Likewise.
4396         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
4397         (*call_1_rex64_large_vzeroupper): Likewise.
4398         (*sibcall_1_rex64_vzeroupper): Likewise.
4399         (*call_value_pop_0_vzeroupper): Likewise.
4400         (*call_value_pop_1_vzeroupper): Likewise.
4401         (*sibcall_value_pop_1_vzeroupper): Likewise.
4402         (*call_value_0_vzeroupper): Likewise.
4403         (*call_value_0_rex64_vzeroupper): Likewise.
4404         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
4405         (*call_value_1_vzeroupper): Likewise.
4406         (*sibcall_value_1_vzeroupper): Likewise.
4407         (*call_value_1_rex64_vzeroupper): Likewise.
4408         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
4409         (*call_value_1_rex64_large_vzeroupper): Likewise.
4410         (*sibcall_value_1_rex64_vzeroupper): Likewise.
4411
4412 2010-11-02  Ian Lance Taylor  <iant@google.com>
4413
4414         PR lto/46273
4415         * config.gcc: Revert last patch: set lto_binary_reader.
4416
4417 2010-11-02  Richard Guenther  <rguenther@suse.de>
4418
4419         PR tree-optimization/46149
4420         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
4421         non-indirect MEM_REF variants.
4422
4423 2010-11-02  Richard Guenther  <rguenther@suse.de>
4424
4425         PR tree-optimization/46216
4426         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4427         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
4428
4429 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4430
4431         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
4432         (*-*-osf*): Likewise.
4433         * configure: Regenerate.
4434
4435 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4436
4437         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
4438         for Intel Core 2 and Core i7.
4439
4440 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
4441
4442         Model decoder of Core 2/i7 for multipass scheduling.
4443
4444         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
4445         New type to hold target-specific data for multipass scheduling.
4446         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4447         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
4448         Core 2/i7.
4449         (core2i7_secondary_decoder_max_insn_size,)
4450         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
4451         New static variables.
4452         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
4453         ([_]ix86_first_cycle_multipass_data): New static variable.
4454         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
4455         Implement targetm.sched hooks.
4456         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
4457         of ...
4458         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
4459         Implement new targetm.sched hooks.
4460         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
4461         targetm.sched hook to install multipass scheduling hooks on demand.
4462
4463         * doc/tm.texi.in: Document new targetm.sched hooks.
4464         * doc/tm.texi: Regenerate.
4465
4466         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4467         (first_cycle_multipass_data_t): New typedef.
4468         (struct choice_entry: target_data): New field.
4469         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
4470         to allow target model restrictions not represented in DFA.
4471         (choose_ready, schedule_block): Update.
4472         (sched_extend_ready_list, sched_finish_ready_list): Call new target
4473         hooks to initialize target-specific data for multipass scheduling.
4474         * sched-int.h (max_issue): Update declaration.
4475         * sel-sched.c (choose_best_insn): Update.
4476         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
4477         (first_cycle_multipass_{init, fini}): Define and document new
4478         targetm.sched hooks.
4479
4480 2010-11-02  Richard Guenther  <rguenther@suse.de>
4481
4482         PR tree-optimization/46184
4483         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
4484         input vector type from the reduction operand as well.
4485
4486 2010-11-02  Richard Guenther  <rguenther@suse.de>
4487
4488         PR tree-optimization/46177
4489         * tree-loop-distribution.c (prop_phis): Use
4490         mark_virtual_phi_result_for_renaming.
4491
4492 2010-11-02  Martin Jambor  <mjambor@suse.cz>
4493
4494         PR middle-end/46120
4495         * tree.c (get_binfo_at_offset): Bail out on artificial
4496         fields.  Identify primary bases according to their offsets.
4497
4498 2010-11-02  Martin Jambor  <mjambor@suse.cz>
4499
4500         PR tree-optimization/45875
4501         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
4502         (gimple_get_relevant_ref_binfo): Detect primary bases according to
4503         their field offset.
4504
4505 2010-11-02  Ian Lance Taylor  <iant@google.com>
4506
4507         * doc/install.texi (Configuration): Note in two places that Java
4508         is not enabled by default.
4509
4510 2010-11-02  Ian Lance Taylor  <iant@google.com>
4511
4512         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4513         (Configuration): Mention --disable-lto.  Remove --with-libelf
4514         paragraph.
4515
4516 2010-11-02  Ian Lance Taylor  <iant@google.com>
4517
4518         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
4519         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
4520         LIBELFINC.  Remove HAVE_libelf.
4521         * config.gcc: Don't set lto_binary_reader.
4522         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
4523         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
4524         (LIBS): Remove $(LIBELFLIBS).
4525         (INCLUDES): Remove $(LIBELFINC).
4526         * configure: Rebuild.
4527         * config.in: Rebuild.
4528
4529 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
4530
4531         * config/microblaze/microblaze-protos.h (function_arg): Delete.
4532         (function_arg_advance): Delete.
4533         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
4534         (FUNCTION_ARG): Delete.
4535         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
4536         (microblaze_function_arg_advance): ...this.  Make static.  Take a
4537         const_tree and a bool.
4538         (function-arg): Rename to...
4539         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
4540         and a bool.
4541         (microblaze_expand_prologue): Call targetm.calls.function_arg and
4542         targetm.calls.function_arg_advance.
4543         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4544
4545 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
4546
4547         Merge from FSF "apple/trunk" branch.
4548
4549         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
4550         * config/darwin.opt: .. to here.
4551         (matt-stubs): New option.
4552         * config/i386/darwin.opt: Delete.
4553         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
4554         (MACHO_DYNAMIC_NO_PIC_P): New.
4555         (MACHOPIC_INDIRECT): New.
4556         (MACHOPIC_PURE): New.
4557         * config/i386/darwin.h (DARWIN_X86) Define to 1.
4558         (MACHOPIC_ATT_STUB): New.
4559         (CC1_SPEC): Do not remove mdynamic-no-pic.
4560         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4561         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4562         (FUNCTION_PROFILER): Correct over-length line.
4563         (SUBTARGET_OVERRIDE_OPTIONS): New.
4564         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4565         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
4566         (legitimate_constant_p): Handle mdynamic-no-pic.
4567         (ix86_legitimate_address_p): Likewise.
4568         (ix86_legitimize_address): Likewise.
4569         (ix86_expand_move): Likewise.
4570         (machopic_output_stub): Update for ATT-style stubs and
4571         mdynamic-no-pic.
4572         * config/darwin-protos.h (machopic_symbol_defined_p): New.
4573         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
4574         TARGET_DYNAMIC_NO_PIC: Remove.
4575         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4576         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4577         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
4578         Remove handling of mdynamic-no-pic.
4579         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
4580         Define if required.
4581         (machopic_symbol_defined_p): Do not try to use current_function_decl
4582         when generating _get_pc thunks within stubs.
4583         (machopic_indirect_data_reference): Rework for direct conditionals
4584         rather than #ifdefs, add x86 mdynamic-no-pic
4585         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
4586         defined value.
4587         (darwin_override_options): Handle mdynamic-no-pic here.
4588         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
4589         (machopic_lazy_symbol_ptr3_section): New.
4590         (machopic_picsymbol_stub2_section): New.
4591         (machopic_picsymbol_stub3_section): New.
4592         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
4593         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4594         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4595         Moved common definition from x86 and rs6000.
4596         (MACHO_DYNAMIC_NO_PIC_P): Override value.
4597         (MACHOPIC_INDIRECT): Likewise.
4598         (MACHOPIC_PURE): Likewise.
4599         * config.gcc (x86-darwin-*): Remove darwin.opt.
4600
4601 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
4602
4603         PR debug/46255
4604         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
4605         instead of gsi_last_bb.
4606
4607 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4608             Maxim Kuvyrkov  <maxim@codesourcery.com>
4609
4610         * config/i386/i386.c (cpu_names): Add "corei7".
4611         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
4612
4613 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4614             Maxim Kuvyrkov  <maxim@codesourcery.com>
4615
4616         Tune alignment for Intel Core i7
4617
4618         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
4619         (enum processor_type): Update comment.  Add entries for Core i7.
4620         * config/i386-c.c (ix86_target_macros_internal): Update.
4621         * config/i386.c (m_COREI7{_32,_64}): New macros.
4622         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
4623         (processor_target_table): Tune alignment for Core i7.
4624         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
4625
4626         * doc/invoke.texi: Document "corei7" option value.
4627
4628 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4629             Maxim Kuvyrkov  <maxim@codesourcery.com>
4630             H.J. Lu  <hjl.tools@gmail.com>
4631
4632         Basic support for Intel Core i7
4633
4634         * i386.c (ix86_option_override_internal): Add entry for corei7, use
4635         generic tuning.  Use generic32 when compiling for 32-bit ABI.
4636
4637 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
4638
4639         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
4640         sections and call darwin_asm_dwarf_section() to handle them.
4641         (darwin_asm_dwarf_section): New.
4642         (darwin_file_start): Remove code emitting dwarf section symbols.
4643
4644 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
4645
4646         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
4647         explicitly disable stack protection when building libgcc.
4648         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
4649
4650 2010-11-01  Jason Merrill  <jason@redhat.com>
4651
4652         * fold-const.c (fold_indirect_ref_1): Handle folding
4653         POINTER_PLUS_EXPR to ARRAY_REF.
4654
4655 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
4656
4657         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
4658         (sh_delegitimize_address): New function.
4659
4660 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
4661
4662         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
4663         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
4664         (CC1_SPEC): Don't handle -target.
4665         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
4666         options.
4667         * config/darwin.opt (Zallowable_client, Zbundle_loader,
4668         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
4669         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
4670         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
4671         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
4672         Zweak_reference_mismatches, client_name, compatibility_version,
4673         current_version, dylinker_install_name, pagezero_size,
4674         read_only_relocs, seg1addr, segs_read_only_addr,
4675         segs_read_write_addr, sub_library, sub_umbrella): New.
4676         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
4677         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
4678         * config/freebsd.opt: New.
4679         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
4680         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
4681         * config/rpath.opt: New.
4682         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
4683         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
4684         Use rpath.opt.
4685
4686 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
4687
4688         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
4689         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
4690         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
4691         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
4692         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
4693         Document that options in .opt files do not need to be included.
4694         * doc/tm.texi: Regenerate.
4695         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
4696         * opts-common.c: Update comment on tm.h include.
4697         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
4698         * system.h (SWITCH_TAKES_ARG): Poison.
4699         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
4700         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
4701         in darwin.opt.
4702         (LINK_COMMAND_SPEC_A): Don't include %{x}.
4703         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4704         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
4705         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
4706         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4707         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
4708         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
4709         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
4710         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
4711         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4712         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
4713         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
4714         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
4715         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
4716         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
4717         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
4718         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
4719         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
4720         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
4721         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
4722         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
4723         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
4724         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
4725         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4726
4727 2010-11-01  Paul Koning  <ni1d@arrl.net>
4728
4729         * config/pdp11/pdp11.md: Use iterators.
4730         (addqi3, subqi3, iorsi3, xorsi3): Delete.
4731
4732 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
4733
4734         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
4735         GCC_INSN_FLAGS_H.
4736         * libgcov.c (__gcov_indirect_call_profiler): Set
4737         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
4738         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
4739
4740 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
4741
4742         PR tree-optimization/46259
4743
4744         Revert:
4745         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4746         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4747         build_vector_from_val.
4748
4749 2010-11-01  DJ Delorie  <dj@redhat.com>
4750
4751         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
4752         as well as an assertion.
4753
4754 2010-11-01  Paul Koning  <ni1d@arrl.net>
4755
4756         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
4757         complex modes in memory.
4758
4759 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
4760
4761         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
4762
4763 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
4764
4765         PR target/45250
4766         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
4767         (cfa_base_offset): New variable.
4768         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
4769         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
4770         is NULL.
4771         (vt_init_cfa_base): Initialize cfa_base_offset.
4772
4773 2010-11-01  Alan Modra  <amodra@gmail.com>
4774
4775         PR target/46030
4776         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
4777         and savres_strategy.
4778         (stack_info): New file scope var.
4779         (rs6000_init_machine_status): Init stack_info.
4780         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
4781         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
4782         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
4783         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
4784         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
4785         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
4786         (rs6000_savres_strategy): Rewrite.
4787         (rs6000_stack_info): Use "stack_info" in place of local "info".
4788         Return cached stack info when reload_completed unless ENABLE_CHECKING
4789         in which case confirm newly calculated stack info matches old info.
4790         Delay calculation of lr_save_p, set it for out of line gp save/restore
4791         as well as fp.  Call rs6000_savres_strategy from here..
4792         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
4793         (rs6000_output_function_prologue): Use info->savres_strategy to
4794         determine whether fp save/restore externs need to be emitted.
4795
4796 2010-10-31  Jason Merrill  <jason@redhat.com>
4797
4798         * tree.h (EXPR_LOC_OR_HERE): New macro.
4799         * builtins.c (c_strlen): Use it.
4800         * c-decl.c (build_enumerator): Likewise.
4801         * gimplify.c (internal_get_tmp_var): Likewise.
4802         (shortcut_cond_expr): Likewise.
4803         (gimplify_one_sizepos): Likewise.
4804
4805 2010-10-31  Richard Henderson  <rth@redhat.com>
4806
4807         * config/i386/cygming.h (TARGET_SEH): New.
4808         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
4809         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
4810         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
4811         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
4812         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
4813         (ASM_DECLARE_FUNCTION_SIZE): New.
4814         * config/i386/i386-protos.h: Update.
4815         * config/i386/i386.c (ix86_option_override_internal): Enable
4816         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
4817         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
4818         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
4819         (ix86_compute_frame_layout): For SEH, disable
4820         use_fast_prologue_epilogue, move frame pointer to the end of
4821         the frame.  Initialize hfp_save_offset.
4822         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
4823         at end of prologue for SEH.
4824         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
4825         emit blockage at beginning of epilogue.
4826         (ix86_expand_binary_operator): After reload, emit LEA if needed.
4827         (ix86_output_call_insn): New.
4828         * config/i386/i386.h (TARGET_SEH): New.
4829         (struct machine_function): Add member seh.
4830         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
4831         * config/i386/winnt.c (struct seh_frame_state): New.
4832         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
4833         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
4834         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
4835         i386_pe_start_function, i386_pe_end_function): New.
4836
4837         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
4838         as CFA_STORE in rules 12 and 13.
4839
4840 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
4841
4842         PR tree-optimization/46142
4843         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
4844         accommodate third function argument.
4845
4846 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4847
4848         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
4849
4850 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4851
4852         * fold-const.c (build_zero_vector): Use build_vector_from_val.
4853         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4854         (get_initial_def_for_reduction): Likewise.
4855         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4856         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
4857         * tree.c (build_one_cst): Likewise.
4858         (build_vector_from_val): Use types_compatible_p for assert.
4859
4860 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4861
4862         * emit-rtl.c (mark_used_flags): New function.
4863         (set_used_flags, reset_used_flags): Call it.
4864
4865 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
4866
4867         PR middle-end/44569
4868         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
4869         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
4870
4871 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4872
4873         PR target/46195
4874         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
4875         (ix86_compat_aligned_value_p): This.
4876         (ix86_old_function_arg_boundary): Renamed to ...
4877         (ix86_compat_function_arg_boundary): This.  Updated.
4878         (ix86_contains_aligned_value_p): New.
4879         (ix86_function_arg_boundary): Align long double parameters on
4880         stack to 4byte in 32bit.
4881
4882 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4883
4884         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4885         * c-parser.c (c_parser_objc_at_property_declaration): Removed
4886         parsing of RID_COPIES and RID_IVAR.  Updated call to
4887         objc_add_property_declaration.
4888         * c-typecheck.c (build_component_ref): Call
4889         objc_maybe_build_component_ref instead of objc_build_setter_call.
4890         Use objc_is_property_ref to improve Objective-C checks.
4891         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
4892         of objc_build_getter_call.
4893
4894 2010-10-29  Paul Koning  <ni1d@arrl.net>
4895
4896         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
4897         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
4898         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
4899         (REG_OK_STRICT): Move description.
4900
4901 2010-10-29  Paul Koning  <ni1d@arrl.net>
4902
4903         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
4904
4905 2010-10-29  Paul Koning  <ni1d@arrl.net>
4906
4907         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
4908
4909 2010-10-29  Paul Koning  <ni1d@arrl.net>
4910
4911         PR/41822
4912         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
4913
4914 2010-10-29  Richard Henderson  <rth@redhat.com>
4915
4916         PR rtl-opt/46226
4917         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
4918         for asm goto.
4919
4920 2010-10-29  Paul Koning  <ni1d@arrl.net>
4921
4922         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
4923         register to register move.
4924
4925 2010-10-29  Paul Koning  <ni1d@arrl.net>
4926
4927         * config/pdp11/pdp11.c (print_operand_address): Correct handling
4928         of integer constant addresses, delete vax-only logic.
4929
4930 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4931
4932         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
4933         a conditional expression.
4934
4935 2010-10-29  Paul Koning  <ni1d@arrl.net>
4936
4937         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
4938         instruction encoding.
4939
4940 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4941             Andrew Pinski  <pinskia@gmail.com>
4942
4943         * tree.h (build_vector_from_val): Declare.
4944         * tree.c (build_vector_from_val): New function.
4945         * c-typeck.c (build_binary_op): Handle vector shifting.
4946         * doc/extend.texi: Description of the vector shifting operation.
4947
4948 2010-10-29  Paul Koning  <pkoning@equallogic.com>
4949
4950         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
4951         pdp11_secondary_memory_needed): Declare.
4952         * config/pdp11/predicates.md (float_operand): New predicate.
4953         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
4954         (cbranchdf4, movdf): Change predicate.
4955         (movsf): Handle FPU register case.
4956         (truncdfsf2, extendsfdf2): Add FPU register case.
4957         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
4958         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
4959         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4960         (pdp11_register_move_cost): Update cost matrix.
4961         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
4962         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
4963         pdp11_secondary_memory_needed): New function.
4964         (pdp11_return_in_memory): Add other float types.
4965         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
4966         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
4967         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
4968         REGISTER_MOVE_COST): Delete.
4969         (BASE_RETURN_VALUE_REG): Add other float types.
4970
4971 2010-10-29  Nick Clifton  <nickc@redhat.com>
4972
4973         * doc/invoke.texi: Document -mam34 and -mtune options.
4974         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
4975         (mn10300_tune_cpu): New variable.
4976         (mn10300_handle_option): Handle -mam34 and -mtune options.
4977         (mn10300_option_override): Convert tune string into tune cpu variable.
4978         (mn10300_legitimate_constant_p): Delete unused local variable.
4979         (is_load_insn): New function.
4980         (is_store_insn): New function.
4981         (mn10300_adjust_schedule_cost): New function.
4982         (TARGET_SCHED_ADJUST_COST): Define.
4983         * config/mn10300/mn10300.opt (mam34): New option.
4984         (mtune): New option.
4985         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
4986         (enum processor_type): Add AM34.
4987         (TARGET_AM34): Define.
4988         * config/mn10300/mn10300.md (attr cpu): Add am34.
4989         Add pipeline description.
4990         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
4991         Remove unneeded alternatives.  Add timing attribute.
4992         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
4993         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
4994         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
4995         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
4996         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
4997         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
4998         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
4999         float_conditional_branch, jump, indirect_jump, tablejump,
5000         call_internal, call_value_internal, zero_extendqisi2_am33,
5001         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
5002         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
5003         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
5004         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
5005         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
5006         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
5007         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
5008         return_internal_regs, store_movm, return, call_next_insn):
5009         Add timing attribute.
5010         (am33_subsi3): Add missing clobber of CC_REG.
5011         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
5012         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
5013         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
5014         extendqisi2): Fix predicates.
5015         (call_internal, call_internal_value): Separate alternatives.
5016         * config/mn10300/t-mn10300: Add AM34 multilib.
5017
5018 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
5019
5020         * config/sh/sh.c (sh_promote_function_mode): Use
5021         default_promote_function_mode if !sh_promote_prototypes.
5022
5023 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
5024
5025         * recog.c (split_all_insns): Remove dead code.
5026
5027 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5028
5029         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5030
5031 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5032
5033         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5034         (FUNCTION_ARG_ADVANCE): Delete.
5035         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
5036         functions.
5037         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
5038         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5039         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5040
5041 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5042
5043         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
5044         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5045         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5046         Take a const_tree and a bool.
5047         (mcore_function_arg_advance): New function.
5048         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5049
5050 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5051
5052         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
5053         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5054         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5055         Take a const_tree and a bool.
5056         (mcore_function_arg_advance): New function.
5057         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5058
5059 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5060
5061         * config/h8300/h8300-protos.h (function_arg): Delete.
5062         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5063         * config/h8300/h8300.c (function_arg): Rename to...
5064         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
5065         a bool.
5066         (h8300_function_arg_advance): New function.
5067         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5068
5069 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5070
5071         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
5072         to...
5073         * config/arc/arc.c (arc_function_arg): ...here and...
5074         (arc_function_arg_advance): ...here.  New functions.
5075         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5076
5077 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5078
5079         * config/crx/crx-protos.h (crx_function_arg): Delete.
5080         (crx_function_arg_advance): Delete.
5081         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5082         * config/crx/crx.c (crx_function_arg): Make static.  Take a
5083         const_tree and a bool.
5084         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
5085         (enough_regs_for_param): Take a const_tree.
5086         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5087
5088 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5089
5090         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
5091         (m68hc11_function_arg_advance): Delete.
5092         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
5093         (FUNCTION_ARG_ADVANCE): Delete.
5094         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
5095         Take a const_tree and a bool.
5096         (m68hc11_function_arg_advance): Likewise.
5097         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5098
5099 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5100
5101         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
5102         (xstormy16_function_arg_advance): Delete.
5103         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
5104         (FUNCTION_ARG_ADVANCE): Delete.
5105         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
5106         Take a const_tree and a bool.
5107         (xstormy16_function_arg_advance): Likewise.  Return void, updating
5108         the CUM parameter instead.
5109         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5110
5111 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5112
5113         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
5114         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5115         (MOXIE_FUNCTION_ARG_SIZE): Move to...
5116         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
5117         (moxie_function_arg): Make static.  Take a const_tree and a bool.
5118         (moxie_function_arg_advance): New function.
5119         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5120
5121 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5122
5123         * config/mn10300/mn10300-protos.h (function_arg): Delete.
5124         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
5125         (FUNCTION_ARG_ADVANCE): Delete.
5126         * config/mn10300/mn10300.c (function_arg): Rename to...
5127         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
5128         and a bool.
5129         (mn10300_function_arg_advance): New function.
5130         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5131
5132 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5133
5134         * config/iq2000/iq2000-protos.h (function_arg): Delete.
5135         (function_arg_advance): Delete.
5136         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5137         * config/iq2000/iq2000.c (function_arg): Rename to...
5138         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
5139         a bool.
5140         (function_arg_advance): Rename to...
5141         (iq2000_function_arg_advance): ...this.  Make static.  Take a
5142         const_tree and a bool.
5143         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
5144         iq2000_function_arg.
5145         (iq2000_pass_by_reference): Call iq2000_function_arg).
5146         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5147
5148 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5149
5150         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
5151         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5152         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
5153         const_tree.
5154         (fr30_function_arg): New function.
5155         (fr30_function_arg_advance): New function.
5156         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5157
5158 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5159
5160         * config/frv/frv-protos.h (frv_function_arg): Delete.
5161         (frv_function_arg_advance): Delete.
5162         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5163         * config/frv/frv.c (frv_function_arg): Rename to...
5164         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
5165         (frv_function_arg, frv_function_incoming_arg): New functions.
5166         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
5167         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5168         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5169
5170 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
5171
5172         PR target/46153
5173         * config/i386/sse.md (sse_movhlps_exp): Use destination
5174         returned from ix86_fixup_binary_operands to expand insn.
5175         (sse_movlhps_exp): Ditto.
5176         (sse_loadhps_exp): Ditto.
5177         (sse_loadlps_exp): Ditto.
5178         (sse2_loadhpd_exp): Ditto.
5179         (sse2_loadlpd_exp): Ditto.
5180
5181 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
5182
5183         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
5184         constants in thumb2.
5185
5186 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5187
5188         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
5189         arithmetics in masking operations.
5190         (contains_muldiv): Likewise.
5191         (try_combine): Likewise.
5192         (find_split_point): Likewise.
5193         (combine_simplify_rtx): Likewise.
5194         (simplify_if_then_else): Likewise.
5195         (simplify_set): Likewise.
5196         (expand_compound_operation): Likewise.
5197         (expand_field_assignment): Likewise.
5198         (make_extraction): Likewise.
5199         (extract_left_shift): Likewise.
5200         (make_compound_operation): Likewise.
5201         (force_to_mode): Likewise.
5202         (make_field_assignment): Likewise.
5203         (reg_nonzero_bits_for_combine): Likewise.
5204         (simplify_shift_const_1): Likewise.
5205         (simplify_comparison): Likewise.
5206
5207 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
5208
5209         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
5210         (ia64_function_arg_advance): Delete.
5211         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5212         (FUNCTION_ARG_ADVANCE): Delete.
5213         * config/ia64/ia64.c (ia64_function_arg): Rename to...
5214         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
5215         bool arguments.
5216         (ia64_function_arg, ia64_function_incoming_arg): New functions.
5217         (ia64_function_arg_advance): Make static.  Take a const_tree and
5218         a bool.
5219         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5220         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5221
5222 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
5223
5224         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
5225         (TARGET_GET_RAW_ARG_MODE): New.
5226         * doc/tm.texi: Regenerate.
5227         * target.def (get_raw_result_mode): New.
5228         (get_raw_arg_mode): New.
5229         * targhooks.c (default_get_reg_raw_mode): New.
5230         * targhooks.h (default_get_reg_raw_mode): New.
5231         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
5232         (apply_result_size): Ditto.
5233         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
5234         (TARGET_GET_RAW_RESULT_MODE): Define.
5235         (TARGET_GET_RAW_ARG_MODE): Ditto.
5236
5237 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5238
5239         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
5240         for newer Solaris 10 release.
5241         (sparc_fallback_frame_state): Likewise.
5242
5243 2010-10-27  Jason Merrill  <jason@redhat.com>
5244
5245         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
5246         variables sooner.
5247
5248 2010-10-27  Jie Zhang  <jie@codesourcery.com>
5249             Maxim Kuvyrkov  <maxim@codesourcery.com>
5250
5251         * haifa-sched.c (ISSUE_POINTS): Remove.
5252         (max_issue): Don't issue more than issue_rate instructions.
5253
5254 2010-10-27  Ian Lance Taylor  <iant@google.com>
5255
5256         PR target/46197
5257         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
5258         (split_stack_return): Replace UNSPEC_STACK_CHECK with
5259         UNSPECV_SPLIT_STACK_RETURN.
5260
5261 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5262
5263         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
5264
5265         * config/i386/i386.c (block_info): New.
5266         (BLOCK_INFO): Likewise.
5267         (call_avx256_state): Likewise.
5268         (check_avx256_stores): Likewise.
5269         (move_or_delete_vzeroupper_2): Likewise.
5270         (move_or_delete_vzeroupper_1): Likewise.
5271         (move_or_delete_vzeroupper): Likewise.
5272         (use_avx256_p): Likewise.
5273         (function_pass_avx256_p): Likewise.
5274         (flag_opts): Add -mvzeroupper.
5275         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
5276         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
5277         is disabled.
5278         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
5279         generate vzeroupper.
5280         (init_cumulative_args): Add an int to indicate caller.  Set
5281         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
5282         based on return type.
5283         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
5284         caller_pass_avx256_p based on argument type.
5285         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
5286         is used, but not returned by caller.
5287         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
5288         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
5289         is used.
5290         (ix86_minimum_alignment): Likewise.
5291         (ix86_expand_special_args_builtin): Set target to
5292         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
5293         (ix86_reorg): Run the vzeroupper optimization if needed.
5294
5295         * config/i386/i386.h (ix86_args): Add caller.
5296         (INIT_CUMULATIVE_ARGS): Updated.
5297         (machine_function): Add use_vzeroupper_p, use_avx256_p,
5298         caller_pass_avx256_p, caller_return_avx256_p,
5299         callee_pass_avx256_p and callee_return_avx256_p.
5300
5301         * config/i386/i386.opt (-mvzeroupper): New.
5302
5303         * config/i386/predicates.md (vzeroupper_operation): Removed.
5304
5305         * config/i386/sse.md (avx_vzeroupper): Removed.
5306         (*avx_vzeroupper): Removed.
5307         (avx_vzeroupper): New.
5308
5309         * doc/invoke.texi: Document -mvzeroupper.
5310
5311 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5312
5313         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
5314         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
5315         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
5316
5317 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5318             Olivier Hainque  <hainque@adacore.com>
5319
5320         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
5321         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
5322         fs->signal_frame instead.
5323
5324 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5325
5326         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
5327         parsing of RID_COPIES and RID_IVAR.
5328
5329 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5330
5331         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
5332         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
5333         Do not use objc_set_property_attr, but use local variables
5334         instead.  Detect repeated usage of setter, getter and ivar
5335         attributes.  Improved error processing when a setter name does not
5336         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
5337         that the token is a keyword.  Updated call to
5338         objc_add_property_declaration.
5339
5340 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5341
5342         * c-parser.c (c_parser_objc_at_property): Renamed to
5343         c_parser_objc_at_property_declaration.  Updated calls to
5344         objc_add_property_variable, now objc_add_property_declaration.
5345         Code rewritten to be much more robust in recovering from syntax
5346         errors.  Added comments.
5347         (c_parser_objc_property_attrlist): Removed.
5348         (c_parser_external_declaration): Updated calls to
5349         c_parser_objc_at_property, now
5350         c_parser_objc_at_property_declaration.
5351         (c_parser_objc_methodprotolist): Same change.
5352
5353 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5354
5355         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
5356
5357 2010-10-26  Jan Hubicka  <jh@suse.cz>
5358
5359         * ipa.c (process_references): Enqueue all referenced nodes;
5360         mark as reachable only non-external nodes.
5361         (cgraph_remove_unreachable_nodes): All referenced nodes should
5362         be enqueued; remove bogues node->needed check.
5363
5364 2010-10-26  Jan Hubicka  <jh@suse.cz>
5365
5366         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
5367         to represent OMP.
5368
5369 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         * config/i386/i386.md (split_stack_return): Replace
5372         unspec_volatile with unspec.
5373
5374 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
5375
5376         * doc/install.texi: Fix typo in --with-sysroot description.
5377
5378 2010-10-26  Jan Hubicka  <jh@suse.cz>
5379
5380         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5381         Use info provided by linker plugin.
5382
5383 2010-10-26  Jason Merrill  <jason@redhat.com>
5384
5385         * varasm.c (constructor_static_from_elts_p): Don't require a
5386         CONSTRUCTOR to have elements to be suitable for static
5387         initialization.  Allow ARRAY_TYPE as well.
5388
5389 2010-10-26  Jan Hubicka  <jh@suse.cz>
5390
5391         PR middle-end/45736
5392         * cgraph.c (cgraph_set_readonly_flag): Rename to...
5393         (cgraph_set_const_flags) ... this one; get also looping argument;
5394         clear constructor/destructor flags.
5395         (cgraph_set_pure_flag): Likewise.
5396         (cgraph_set_looping_const_or_pure_flag): Remove.
5397         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
5398         to optimize away static ctors/dtors; it does not work on inline clones;
5399         external functions can always be rmeoved.
5400         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
5401         inline clones; in LTO external functions always can go.
5402         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
5403         (cgraph_mark_address_taken_node): Assert that we are not taking
5404         address of inline clone.
5405         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
5406         external functions.
5407         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
5408         address taken.
5409         (ipcp_initialize_node_lattices): Only local functions can be
5410         handled without cloning.
5411         * cgraph.h (cgraph_set_readonly_flag,
5412         cgraph_set_looping_const_or_pure_flag): Remove.
5413         (cgraph_set_const_flag): Declare.
5414         (cgraph_set_pure_flag): Update.
5415         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
5416         flags setting code.
5417         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
5418         look at inline clones; fix handling of external definitions.
5419         (cgraph_postorder): Do not look at inline clones in the first pass.
5420         (function_and_variable_visibility): Drop constructors/destructor
5421         flags at pure and const functions.
5422         * tree-profile.c (tree_profiling): Update.
5423         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
5424         address taken; external functions do not account to whole program size.
5425         (cgraph_decide_inlining): Likewise; do not try to inline
5426         functions already inlined.
5427
5428 2010-10-26  Jie Zhang  <jie@codesourcery.com>
5429
5430         * doc/invoke.texi: Improve documentation of
5431         -fstrict-volatile-bitfields.
5432
5433 2010-10-26  Ira Rosen  <irar@il.ibm.com>
5434
5435         PR tree-optimization/46167
5436         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
5437         is basic block for the statement.
5438
5439 2010-10-26  Paul Koning  <ni1d@arrl.net>
5440
5441         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
5442         current definition of struct_real_format.
5443
5444 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5445
5446         PR target/44948
5447         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
5448         (ix86_function_arg_boundary): Always align parameters on stack
5449         in 64bit and align parameters with alignment >= 16byte on stack
5450         in 32bit.  Warn alignment change.
5451
5452 2010-10-26  Ian Lance Taylor  <iant@google.com>
5453
5454         PR middle-end/45687
5455         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
5456         offset.
5457
5458 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
5459
5460         Implement opaque-enum-specifiesr for C++0x
5461         * tree.h (ENUM_IS_OPAQUE): New.
5462         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
5463
5464 2010-10-26  Jie Zhang  <jie@codesourcery.com>
5465
5466         * stor-layout.c (layout_decl): Use the field's type to
5467         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
5468         * config/arm/arm.c (arm_override_options): Default to
5469         -fstrict-volatile-bitfields.
5470
5471 2010-10-25  Paul Koning  <ni1d@arrl.net>
5472
5473         * config/pdp11/pdp11.md: Add define_constants for register
5474         numbers, branch offset limits.
5475         * config/pdp11/pdp11.c: Use named constants instead of numbers.
5476         * config/pdp11.pdp11.h: Ditto.
5477
5478 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
5479
5480         * configure.ac: Use $cpu_type instead of $target to define the nop.
5481         * configure: Regenerate.
5482
5483 2010-10-25  Jie Zhang  <jie@codesourcery.com>
5484
5485         * combine.c (try_combine): If insns need to be kept around, check that
5486         they can be copied in the merged instruction.
5487
5488 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5489
5490         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
5491         has been modified.
5492         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
5493         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
5494         it has been modified.
5495
5496 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5497
5498         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
5499
5500 2010-10-24  Paul Koning  <ni1d@arrl.net>
5501
5502         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
5503         * config/pdp11/pdp11.c (output_jump): Ditto.
5504
5505 2010-10-24  Ian Lance Taylor  <iant@google.com>
5506
5507         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
5508
5509 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5510
5511         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
5512         least one insn with a locus corresponding to an edge's goto_locus,
5513         disregard non-fallthru edges to the exit block and merge the blocks
5514         created for the same goto_locus.
5515
5516 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * gcc.c (n_switches_alloc_debug_check): New.
5519         (set_option_handlers): New.
5520         (process_command): Use set_option_handlers.
5521         (do_self_spec): Pass spec-generated options through option handlers.
5522         (main): Also save and restore n_switches_alloc when swapping
5523         switch arrays.
5524
5525 2010-10-23  Richard Henderson  <rth@redhat.com>
5526
5527         PR target/46144
5528         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
5529         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
5530         Honor matching operands when splitting to XOR.
5531
5532 2010-10-23  Ian Lance Taylor  <iant@google.com>
5533
5534         * tree-vrp.c (extract_range_from_binary_expr): If
5535         flag_non_call_exceptions don't eliminate division by zero.
5536         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5537
5538 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
5539
5540         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
5541         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
5542         __ORDER_PDP_ENDIAN__.
5543         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5544         (struct DWstruct): Define based on __BYTE_ORDER__.
5545         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5546         (struct INTstruct): Define based on __BYTE_ORDER__.
5547         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5548         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
5549         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
5550         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5551         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5552         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5553         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5554         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5555         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5556         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5557         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5558         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5559         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5560         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5561         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5562         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5563         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5564         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5565         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5566         * doc/tm.texi: Regenerate.
5567         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
5568         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
5569
5570 2010-10-23  Jie Zhang  <jie@codesourcery.com>
5571
5572         PR rtl-optimization/37360
5573         * config/mips/mips.c (cached_can_issue_more): New local variable.
5574         (mips_sched_reorder_1): New.
5575         (mips_sched_reorder): Use mips_sched_reorder_1.
5576         (mips_sched_reorder2): New.
5577         (mips_variable_issue): Set cached_can_issue_more.
5578         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
5579         instead of mips_sched_reorder.
5580
5581         Revert:
5582         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5583         PR rtl-optimization/37360
5584         * haifa-sched.c (max_issue): Do not assert that we never issue more
5585         insns than issue_rate.  Add comment.
5586
5587 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
5588
5589         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
5590         location info of the expression.
5591
5592 2010-10-22  DJ Delorie  <dj@redhat.com>
5593
5594         * doc/extend.texi (Named Address Spaces): Document the M32C named
5595         address space.
5596
5597         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
5598         __far address space.
5599         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
5600         "__far" address space for R8C and M16C processor variants.
5601         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
5602         (far_addr_space_p): New.
5603         (encode_pattern_1): Add sign and zero extend support.
5604         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
5605         (m32c_extra_constraint_p2): Add SF constraint.
5606         (m32c_legitimate_address_p): Support __far addresses.
5607         (m32c_addr_space_pointer_mode): New.
5608         (m32c_addr_space_address_mode): New.
5609         (m32c_addr_space_legitimate_address_p): New.
5610         (m32c_addr_space_legitimize_address): New.
5611         (m32c_addr_space_subset_p): New.
5612         (m32c_addr_space_convert): New.
5613         (conversions): Add __far operand patterns.
5614         (m32c_prepare_move): Force constants into registers for __far moves.
5615         (m32c_split_move): __far moves are always split.
5616         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
5617         * config/m32c/mov.md (mov<mode>_far_op1): New.
5618         (mov<mode>_far_op2): New.
5619         (movqi_op): Add __far (SF) support.
5620         (movhi_op): Likewise.
5621         (movsi_splittable): Split A1A0 also.
5622
5623 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5624             Andrew Pinski  <pinskia@gmail.com>
5625
5626         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
5627         * doc/extend.texi: New paragraph
5628
5629 2010-10-22  Paul Koning  <ni1d@arrl.net>
5630
5631         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
5632
5633 2010-10-22  DJ Delorie  <dj@redhat.com>
5634
5635         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
5636
5637 2010-10-22  Paul Koning  <ni1d@arrl.net>
5638
5639         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
5640
5641 2010-10-22  Richard Henderson  <rth@redhat.com>
5642
5643         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
5644         cases for __builtin_fma and __builtin_fmaf.
5645
5646 2010-10-22  Richard Henderson  <rth@redhat.com>
5647
5648         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
5649         NEG+USE for vectors as well.
5650         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
5651         and splitter.
5652
5653 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
5654
5655         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
5656         SWITCH_CURTAILS_COMPILATION): Remove.
5657         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
5658         * doc/tm.texi: Regenerate.
5659         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
5660
5661 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
5662
5663         * config/i386/bdver1.md: New file.
5664         * config/i386/i386.md (include "bdver1.md"): Invoke the
5665         pipeline description for bdver1.
5666         (x86_sahf_1): Add "bdver1_decode" attribute.
5667         (*cmpfp_i_mixed): Likewise.
5668         (*cmpfp_i_sse): Likewise.
5669         (*cmpfp_i_i387): Likewise.
5670         (*cmpfp_iu_mixed): Likewise.
5671         (*cmpfp_iu_sse): Likewise.
5672         (*cmpfp_iu_387): Likewise.
5673         (*swap<mode>,*swap<mode>_1): Likewise.
5674         (fixuns_trunc<mode>hi2): Likewise.
5675         (fix_trunc<mode>si_sse): Likewise.
5676         (x86_fnstcw_1): Likewise.
5677         (x86_fldcw_1): Likewise.
5678         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
5679         (*floatsi<mode>2_vector_mixed): Likewise.
5680         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
5681         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
5682         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
5683         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
5684         (*floatsi<mode>2_vector_sse): Likewise.
5685         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
5686         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
5687         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
5688         (*mul<mode>3_1): Likewise.
5689         (*mulsi3_1_zext): Likewise.
5690         (*mulhi3_1): Likewise.
5691         (*mulqi3_1): Likewise.
5692         (*<u>mul<mode><dwi>3_1): Likewise.
5693         (*<u>mulqihi3_1): Likewise.
5694         (*<s>muldi3_highpart_1): Likewise.
5695         (*<s>mulsi3_highpart_1): Likewise.
5696         (*<s>mulsi3_highpart_zext): Likewise.
5697         (x86_64_shld): Likewise.
5698         (x86_shld): Likewise.
5699         (x86_64_shrd): Likewise.
5700         (x86_shrd): Likewise.
5701         (sqrtxf2): Likewise.
5702         (sqrt_extend<mode>xf2_i387): Likewise.
5703         (*sqrt<mode>2_sse): Likewise.
5704         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
5705         (sse_cvtsi2ssq): Likewise.
5706         (sse_cvtss2si): Likewise.
5707         (sse_cvtss2si_2): Likewise.
5708         (sse_cvtss2siq): Likewise.
5709         (sse_cvtss2siq_2): Likewise.
5710         (sse_cvttss2si): Likewise.
5711         (sse_cvttss2siq): Likewise.
5712         (sse2_cvtpi2pd): Likewise.
5713         (sse2_cvttpd2pi): Likewise.
5714         (sse2_cvtsi2sd): Likewise.
5715         (sse2_cvtsi2sdq): Likewise.
5716         (sse2_cvtsd2si): Likewise.
5717         (sse2_cvtsd2si_2): Likewise.
5718         (sse2_cvtsd2siq): Likewise.
5719         (sse2_cvtsd2siq_2): Likewise.
5720         (sse2_cvttsd2si): Likewise.
5721         (sse2_cvttsd2siq): Likewise.
5722         (*sse2_cvtpd2dq): Likewise.
5723         (*sse2_cvttpd2dq): Likewise.
5724         (sse2_cvtsd2ss): Likewise.
5725         (sse2_cvtss2sd): Likewise.
5726         (*sse2_cvtpd2ps): Likewise.
5727         (sse2_cvtps2pd): Likewise.
5728
5729 2010-10-22  Richard Guenther  <rguenther@suse.de>
5730
5731         PR middle-end/46137
5732         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
5733         remove the virtual operands if they are not needed.
5734
5735 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
5736
5737         * config/i386/i386.c (processor_costs bdver1_cost): Update
5738         insn costs and architectural parameters for bdver1.
5739
5740 2010-10-22  Richard Guenther  <rguenther@suse.de>
5741
5742         * gimple.h (gimple_register_canonical_type): Declare.
5743         * gimple.c (gimple_canonical_types): New global hashtable.
5744         (struct gimple_type_leader_entry_s): New type.
5745         (gimple_type_leader): New global cache.
5746         (gimple_lookup_type_leader): New function.
5747         (gtc_visit): Query the proper cache.
5748         (gimple_types_compatible_p): Likewise.
5749         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
5750         (gimple_canonical_type_eq): New function.
5751         (gimple_register_canonical_type): Likewise.
5752         (print_gimple_types_stats): Adjust for gimple_canonical_types.
5753         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
5754         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
5755         gimple_types_compatible_p for LTO.
5756
5757 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
5758
5759         PR target/46098
5760         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
5761         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
5762         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
5763         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
5764         (<sse>_movu<ssemodesuffix>): New expander.
5765         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
5766         (avx_movdqu<avxmodesuffix>): New expander.
5767         (*sse2_movdqu): Rename from sse2_movdqu.
5768         (sse2_movdqu): New expander.
5769
5770 2010-10-22  Richard Guenther  <rguenther@suse.de>
5771
5772         PR tree-optimization/45720
5773         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5774         Handle negative step.
5775         (vect_enhance_data_refs_alignment): Likewise.
5776         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
5777         (vect_create_cond_for_align_checks): Likewise.
5778         (vect_create_cond_for_alias_checks): Likewise.
5779
5780 2010-10-22  Ira Rosen  <irar@il.ibm.com>
5781
5782         PR tree-optimization/46126
5783         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
5784         vectorizable_shift in case of basic block vectorization.
5785
5786 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
5787
5788         * target.h (enum opt_levels, struct default_options): New.
5789         * target.def (handle_ofast): Remove hook.
5790         (target_option.optimization): Change to
5791         target_option.optimization_table.
5792         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
5793         TARGET_OPTION_OPTIMIZATION_TABLE.
5794         (CAN_DEBUG_WITHOUT_FP): Remove.
5795         * doc/tm.texi: Regenerate.
5796         * opts.c (maybe_default_option, maybe_default_options,
5797         default_options_table): New.
5798         (default_options_optimization): Take extra parameters.  Don't
5799         assert that global_options and global_options_set are in use.  Use
5800         maybe_default_options.
5801         (decode_options): Pass extra parameters to
5802         default_options_optimization.
5803         * common.opt (falign-loops): Use value 0 with Var.
5804         (frerun-cse-after-loop, ftree-ter): Remove Init.
5805         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
5806         TARGET_OPTION_OPTIMIZATION): Remove.
5807         * targhooks.c (empty_optimization_table): New.
5808         * targhooks.h (empty_optimization_table): Declare.
5809         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
5810         * config/alpha/alpha.c (alpha_option_optimization_table,
5811         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5812         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
5813         * config/arm/arm.c (arm_option_optimization: Change to
5814         arm_option_optimization_table.
5815         (TARGET_OPTION_OPTIMIZATION): Change to
5816         TARGET_OPTION_OPTIMIZATION_TABLE.
5817         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
5818         * config/avr/avr.c (avr_option_optimization_table,
5819         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5820         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
5821         * config/cris/cris.c (cris_option_optimization): Change to
5822         cris_option_optimization_table.
5823         (TARGET_OPTION_OPTIMIZATION): Change to
5824         TARGET_OPTION_OPTIMIZATION_TABLE.
5825         * config/crx/crx.c (crx_option_optimization): Change to
5826         crx_option_optimization_table.
5827         (TARGET_OPTION_OPTIMIZATION): Change to
5828         TARGET_OPTION_OPTIMIZATION_TABLE.
5829         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
5830         * config/fr30/fr30.c (fr30_option_optimization_table,
5831         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5832         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
5833         * config/frv/frv.c (frv_option_optimization_table,
5834         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5835         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
5836         * config/h8300/h8300.c (h8300_option_optimization): Change to
5837         h8300_option_optimization_table.
5838         (TARGET_OPTION_OPTIMIZATION): Change to
5839         TARGET_OPTION_OPTIMIZATION_TABLE.
5840         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
5841         * config/i386/i386.c (ix86_option_optimization): Change to
5842         ix86_option_optimization_table.
5843         (TARGET_OPTION_OPTIMIZATION): Change to
5844         TARGET_OPTION_OPTIMIZATION_TABLE.
5845         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
5846         as initializer.
5847         * config/ia64/ia64.c (ia64_option_optimization): Change to
5848         ia64_option_optimization_table.
5849         (TARGET_OPTION_OPTIMIZATION): Change to
5850         TARGET_OPTION_OPTIMIZATION_TABLE.
5851         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
5852         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
5853         initializer.
5854         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5855         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5856         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5857         * config/lm32/lm32.c (lm32_option_optimization_table,
5858         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5859         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
5860         * config/m32r/m32r.c (m32r_option_optimization): Change to
5861         m32r_option_optimization_table.
5862         (TARGET_OPTION_OPTIMIZATION): Change to
5863         TARGET_OPTION_OPTIMIZATION_TABLE.
5864         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
5865         CAN_DEBUG_WITHOUT_FP): Remove.
5866         * config/mcore/mcore.c (mcore_option_optimization): Change to
5867         mcore_option_optimization_table.
5868         (TARGET_OPTION_OPTIMIZATION): Change to
5869         TARGET_OPTION_OPTIMIZATION_TABLE.
5870         * config/mep/mep.c (mep_option_optimization): Change to
5871         mep_option_optimization_table.
5872         (TARGET_OPTION_OPTIMIZATION): Change to
5873         TARGET_OPTION_OPTIMIZATION_TABLE.
5874         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
5875         * config/microblaze/microblaze.c
5876         (microblaze_option_optimization_table,
5877         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5878         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
5879         * config/mips/mips.c (mips_option_optimization_table,
5880         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5881         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
5882         * config/mmix/mmix.c (mmix_option_optimization): Change to
5883         mmix_option_optimization_table.
5884         (TARGET_OPTION_OPTIMIZATION): Change to
5885         TARGET_OPTION_OPTIMIZATION_TABLE.
5886         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
5887         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5888         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5889         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
5890         * config/pa/pa.c (pa_option_optimization_table,
5891         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5892         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5893         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
5894         pdp11_option_optimization_table.
5895         (TARGET_OPTION_OPTIMIZATION): Change to
5896         TARGET_OPTION_OPTIMIZATION_TABLE.
5897         * config/picochip/picochip.c (picochip_option_optimization_table,
5898         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5899         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
5900         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
5901         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5902         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5903         * config/rx/rx.c (rx_option_optimization_table,
5904         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5905         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
5906         * config/s390/s390.c (s390_option_optimization): Change to
5907         s390_option_optimization_table.
5908         (s390_option_override): Update comment.
5909         (TARGET_OPTION_OPTIMIZATION): Change to
5910         TARGET_OPTION_OPTIMIZATION_TABLE.
5911         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
5912         * config/score/score.c (score_option_optimization_table,
5913         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5914         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
5915         * config/sh/sh.c (sh_option_optimization): Change to
5916         sh_option_optimization_table.
5917         (TARGET_OPTION_OPTIMIZATION): Change to
5918         TARGET_OPTION_OPTIMIZATION_TABLE.
5919         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
5920         (sh_option_override, expand_block_move, multcosts, find_barrier,
5921         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
5922         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
5923         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
5924         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
5925         instead of TARGET_SMALLCODE.
5926         * config/sh/sh.opt (mspace): Make into an alias for -Os.
5927         * config/sparc/sparc.c (sparc_option_optimization_table,
5928         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5929         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
5930         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5931         TARGET_OPTION_OPTIMIZATION_TABLE): New.
5932         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
5933         * config/v850/v850.c (v850_option_optimization): Change to
5934         v850_option_optimization_table.
5935         (TARGET_OPTION_OPTIMIZATION): Change to
5936         TARGET_OPTION_OPTIMIZATION_TABLE.
5937         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
5938         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
5939         xtensa_option_optimization_table.
5940         (TARGET_OPTION_OPTIMIZATION): Change to
5941         TARGET_OPTION_OPTIMIZATION_TABLE.
5942         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5943
5944 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
5945
5946         Based on the CFString implementation in FSF apple/trunk branch.
5947
5948         * target.def (objc_construct_string): New Hook.
5949         * doc/tm.texi (objc_construct_string): Document.
5950         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
5951         * config/t-darwin: Amend build rules for darwin.o.
5952         * config/darwin.opt: Add cfstrings flags.
5953         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
5954         (darwin_objc_construct_string): New.
5955         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
5956         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
5957         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
5958         (darwin_fold_builtin): Likewise.
5959         (darwin_build_constant_cfstring): Likewise.
5960         (darwin_objc_construct_string): Likewise.
5961         (darwin_cfstring_p): Likewise.
5962         (darwin_enter_string_into_cfstring_table): Likewise.
5963         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
5964         * config/darwin.c (darwin_running_cxx): New var.
5965         (machopic_select_section): Return cfstring_constant_object_section.
5966         (darwin_override_options): Set darwin_running_cxx.
5967         (add_builtin_field_decl): New.
5968         (darwin_init_cfstring_builtins): New.
5969         (darwin_build_constant_cfstring): New.
5970         (darwin_fold_builtin): New.
5971         (cfstring_hash): New.
5972         (cfstring_eq): New.
5973         (darwin_enter_string_into_cfstring_table): New.
5974         * config/darwin-sections.def (cfstring_constant_object_section): New.
5975         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
5976         (TARGET_OBJC_CONSTRUCT_STRING): Define.
5977
5978 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
5979
5980         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
5981         TYPE_STUB_DECL instead of TREE_CHAIN.
5982         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
5983         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
5984         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
5985         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
5986         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
5987         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
5988         Likewise.
5989         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
5990
5991 2010-10-22  Jie Zhang  <jie@codesourcery.com>
5992
5993         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
5994         (copy_blkmode_from_reg): Likewise.
5995         (read_complex_part): Likewise.
5996         (expand_expr_real_1): Calculate packedp and pass it to
5997         extract_bit_field.
5998         * expr.h (extract_bit_field): Update declaration.
5999         * calls.c (store_unaligned_arguments_into_pseudos): Update call
6000         to extract_bit_field.
6001         * expmed.c (extract_fixed_bit_field): Update calls to
6002         extract_fixed_bit_field.
6003         (store_split_bit_field): Likewise.
6004         (extract_bit_field_1): Add new argument packedp.
6005         (extract_bit_field): Add new argument packedp.
6006         (extract_fixed_bit_field): Add new argument packedp and let
6007         packed attribute override volatile.
6008         * stmt.c (expand_return): Update call to extract_bit_field.
6009
6010 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6011
6012         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
6013
6014 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6015
6016         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
6017         of gcc_checking_assert.
6018         * sel-sched.c (code_motion_process_successors): Likewise.
6019
6020 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6021
6022         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
6023         when stopping because of a different locus on edge or insn.
6024         (try_optimize_cfg): Add comment.
6025         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
6026         block is a forwarder block, propagate locus on the edge.
6027         (cfg_layout_merge_blocks): Likewise.
6028
6029 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
6030
6031         PR target/45946
6032         * config/i386/i386.md (*pushti2): New insn pattern.
6033         (pushti2 splitter): New insn splitter.
6034         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
6035         DWI mode iterator.
6036
6037 2010-10-21  Paul Koning  <ni1d@arrl.net>
6038
6039         * config/pdp11/pdp11-protos.md (arith_operand,
6040         const_immediate_operand, expand_shift_operand,
6041         immediate15_operand): Delete
6042         * config/pdp11/pdp11.c: Ditto.
6043         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
6044         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6045         EXTRA_CONSTRAINT): Delete.
6046         * config/pdp11/pdp11.md (various): Use standard constraints
6047         instead of removed ones.
6048         * config/pdp11/constraints.md: New file.
6049         * config/pdp11/predicates.md: New file.
6050
6051 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
6052
6053         PR c/45834
6054         * alias.c (true_dependence_1): Remove obsolete check for QImode.
6055         (may_alias_p): Ditto.
6056
6057 2010-10-21  Martin Jambor  <mjambor@suse.cz>
6058
6059         PR tree-optimization/45875
6060         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
6061
6062 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6063
6064         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
6065         variables.
6066         (create_new_def_for): Likewise.
6067
6068 2010-10-21  Nick Clifton  <nickc@redhat.com>
6069
6070         * config/mn10300/mn10300.c: Fold code to 80-character width.
6071         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6072         MEM, CONST_INT and CONST_DOUBLE.
6073         (targetm): Move initialization to end of file.
6074         (print_operand): Rename to mn10300_print_operand.
6075         (print_operand_address): Rename to mn10300_print_operand_address.
6076         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
6077         (expand_prologue): Rename to mn10300_expand_prologue.
6078         (expand_epilogue): Rename to mn10300_expand_epilogue.
6079         (initial_offset): Rename to mn10300_initial_offset.
6080         (function_arg): Rename to mn10300_function_arg.
6081         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
6082         (symbolic_operand): Rename to mn10300_symbolic_operand.
6083         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
6084         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
6085         * config/mn10300/mn10300-protos.h: Update prototypes.
6086         * config/mn10300/mn10300.h: Fold code to 80-character width.
6087         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6088         MEM, CONST_INT and CONST_DOUBLE.
6089         (CPP_SPEC): Move to...
6090         (TARGET_CPU_CPP_BUILTINS): ... here.
6091         * config/mn10300/mn10300.md: Fold code to 80-character width.
6092         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6093         MEM, CONST_INT and CONST_DOUBLE.
6094
6095 2010-10-21  Ira Rosen  <irar@il.ibm.com>
6096
6097         PR tree-optimization/46049
6098         PR tree-optimization/46052
6099         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
6100         (vect_get_slp_defs): Add arguments.
6101         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
6102         operands to vect_get_slp_defs.
6103         (vectorizable_reduction): Fix comment, pass scalar operands to
6104         vect_get_slp_defs.
6105         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
6106         type to determine number of units in the created vector.
6107         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
6108         (vectorizable_conversion): Fix comment.
6109         (vectorizable_shift): New function.
6110         (vectorizable_operation): Move code that handles shifts to
6111         vectorizable_shift.
6112         (vectorizable_type_demotion): Fix comment, pass scalar operands to
6113         vect_get_slp_defs.
6114         (vectorizable_type_promotion, vectorizable_store): Likewise.
6115         (vectorizable_condition): Fix comment.
6116         (vect_analyze_stmt): Call vectorizable_shift.
6117         (vect_transform_stmt): Likewise.
6118         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
6119         Use it as the operand to create vectors for, except reduction
6120         initial definition and store.  Use operands type.
6121         (vect_get_slp_defs): Add new arguments.  Pass them to
6122          vect_get_constant_vectors.
6123
6124 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6125
6126         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
6127         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
6128         * cfghooks.c (fixup_reorder_chain): Likewise.
6129         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
6130         * cgraph.c (cgraph_add_thunk): Likewise.
6131         (cgraph_create_edge_1): Likewise.
6132         (cgraph_create_virtual_clone): Likewise.
6133         * ddg.c (add_cross_iteration_register_deps): Likewise.
6134         * dwarf2out.c (modified_type_die): Likewise.
6135         * emit-rtl.c (set_mem_alias_set): Likewise.
6136         * ggc-zone.c (zone_allocate_marks): Likewise.
6137         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
6138         * gimple.c (iterative_hash_gimple_type): Likewise.
6139         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
6140         (create_single_exit_edge): Likewise.
6141         * haifa-sched.c (choose_ready): Likewise.
6142         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6143         * passes.c (execute_todo): Likewise.
6144         * sched-ebb.c (begin_schedule_ready): Likewise.
6145         * sel-sched.c (code_motion_process_successors): Likewise.
6146         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
6147         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
6148         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
6149         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
6150         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
6151         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
6152         (ssa_conflicts_add): Likewise.
6153         * tree-ssa-copy.c (replace_exp): Likewise.
6154         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
6155         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
6156         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6157         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
6158         (compute_antic): Likewise.
6159         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
6160         (add_dependence): Likewise.
6161         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
6162         * tree-vrp.c (supports_overflow_infinity): Likewise.
6163         (make_overflow_infinity, negative_overflow_infinity): Likewise.
6164         (avoid_overflow_infinity, register_new_assert_for): Likewise.
6165         (process_assert_insertions_for): Likewise.
6166         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
6167         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
6168         (intersect_loc_chains, variable_merge_over_cur): Likewise.
6169
6170 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6171
6172         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
6173         * reload1.c (has_nonexceptional_receiver): Likewise.
6174         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
6175         (create_new_def_for): Likewise.
6176         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
6177         (merge_phi_nodes): Likewise.
6178         (has_abnormal_incoming_edge_p): Delete.
6179
6180 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6181
6182         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
6183
6184 2010-10-21  Richard Guenther  <rguenther@suse.de>
6185             Michael Matz  <matz@suse.de>
6186
6187         PR tree-optimization/45764
6188         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6189         Adjust initial misalignment for negative DR_STEP.
6190         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
6191         do not have the same alignment over the whole iteration domain.
6192
6193 2010-10-21  Richard Guenther  <rguenther@suse.de>
6194
6195         PR tree-optimization/46111
6196         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
6197
6198 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6199
6200         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
6201
6202 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6203
6204         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
6205         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
6206
6207 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6208
6209         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
6210         signal_frame.
6211         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
6212
6213 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6214
6215         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
6216         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
6217
6218 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6219
6220         * basic-block.h (find_fallthru_edge): Define.
6221         * cfgcleanup.c (merge_blocks_move): Use it.
6222         (try_crossjump_bb): Likewise.
6223         * cfglayout.c (fixup_reorder_chains): Likewise.
6224         (fixup_fallthru_exit_predecessor): Likewise.
6225         * cfgrtl.c (rtl_split_edge): Likewise.
6226         (rtl_verify_flow_info): Likewise.
6227         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6228         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
6229         * ifcvt.c (block_fallthru): Likewise.
6230         * reload1.c (fixup_abnormal_edges): Likewise.
6231         * sched-ebb.c (being_schedule_ready): Likewise.
6232         (schedule_ebb): Likwise.
6233         * sched-rgn.c (find_single_block_region): Likewise.
6234         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
6235         * tree-complex.c (expand_complex_move): Likewise.
6236         * sched-int.h (find_fallthru_edge): Rename to...
6237         (find_fallthru_edge_from): ...this.
6238         * haifa-sched.c (find_fallthru_edge): Rename to...
6239         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
6240         (init_before_recovery): Call find_fallthru_edge_from.
6241         * sel-sched-ir.c (merge_fences): Likewise.
6242         * sel-sched.c (in_fallthru_bb_p): Likewise.
6243         (move_cond_jump): Likewise.
6244
6245 2010-10-20  Paul Koning  <ni1d@arrl.net>
6246
6247         * config/pdp11/pdp11.md (various): Fix conditions on a number of
6248         insn to check for target 11/40 or higher.
6249
6250 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6251
6252         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
6253         bool instead of a tree.
6254         (c_parser_objc_method_decl): Added bool argument.  Updated call to
6255         objc_build_method_signature.
6256         (c_parser_objc_method_definition): Do not call
6257         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
6258         c_parser_objc_method_decl and objc_start_method_definition.
6259         (c_parser_objc_methodproto): Do not call objc_set_method_type.
6260         Updated calls to c_parser_objc_method_type,
6261         c_parser_objc_method_decl and objc_add_method_declaration.
6262
6263 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
6264
6265         PR tree-optimization/45919
6266         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
6267         array members.
6268
6269         PR tree-optimization/46066
6270         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
6271         instead of gsi_last_bb.
6272
6273 2010-10-20  DJ Delorie  <dj@redhat.com>
6274
6275         * config/m32c/m32c.c (m32c_option_override): Always disable
6276         function-cse in 16-bit mode.  Indirect calls are always worse than
6277         direct calls as there is no 16-bit indirect call opcode.
6278         (m32c_override_options_after_change): New, likewise.
6279
6280 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6281
6282         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
6283         emitting the conditional move in the inner mode of the SUBREG.
6284
6285 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
6286
6287         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
6288         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
6289         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6290         (ia64_preferred_reload_class): Make static.  Change rclass argument
6291         and result types from enum reg_class to reg_class_t.
6292
6293 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
6294
6295         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
6296         call for single operand expression.
6297
6298 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6299
6300         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
6301         if there is a call statement to pure or const function in the block.
6302
6303 2010-10-20  Paul Koning  <pkoning@equallogic.com>
6304
6305         Fix several build errors for pdp11 target.
6306         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
6307         (cbranchdf4): Conditional on TARGET_FPU.
6308         (movdf): Ditto; correct alternatives check.
6309         (movmemhi): Fix predicate and constraint.
6310         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
6311
6312 2010-10-20  Richard Guenther  <rguenther@suse.de>
6313
6314         PR lto/45667
6315         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
6316         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
6317         (verify_gimple_assign_single): Disable ADDR_EXPR type check
6318         when in LTO.
6319
6320 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
6321
6322         PR fortran/42169
6323         * ira-emit.c (store_can_be_removed_p): Return false instead of
6324         gcc_unreachable.
6325
6326 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
6327
6328         * fold-const.c (fold_binary_loc): New transformation.
6329
6330 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6331
6332         PR target/46085
6333         * config/i386/sse.md (reduc_splus_v8sf): Updated.
6334         (reduc_splus_v4df): Likewise.
6335
6336 2010-10-20  Richard Guenther  <rguenther@suse.de>
6337
6338         PR tree-optimization/45860
6339         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
6340         conditional store replacement for non-register type stores.
6341
6342 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6343
6344         * stor-layout.c (skip_simple_constant_arithmetic): New function.
6345         (self_referential_size): Use it instead of skip_simple_arithmetic.
6346
6347 2010-10-20  Olivier Hainque  <hainque@adacore.com>
6348
6349         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
6350         If the current function calls eh_return, claim live all registers
6351         that we need to check for liveness otherwise.
6352
6353 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6354
6355         * c-decl.c (c_write_global_declarations): Call
6356         objc_write_global_declarations when compiling Objective-C.
6357         * c-lang.c (finish_file): Removed.
6358
6359 2010-10-19  DJ Delorie  <dj@redhat.com>
6360
6361         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
6362         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
6363         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
6364         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
6365         * doc/tm.texi: Regenerate.
6366         * targhooks.h (default_label_align_after_barrier_max_skip,
6367         default_loop_align_max_skip, default_label_align_max_skip,
6368         default_jump_align_max_skip): Declare.
6369         * target.def (label_align_after_barrier_max_skip): New.
6370         (loop_align_max_skip): New.
6371         (label_align_max_skip): New.
6372         (jump_align_max_skip): New.
6373         * system.h (poison): Add those macros to the list.
6374         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
6375         (LOOP_ALIGN_MAX_SKIP): Remove.
6376         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
6377         (JUMP_ALIGN_MAX_SKIP): Remove.
6378         (default_label_align_after_barrier_max_skip): New.
6379         (default_loop_align_max_skip): New.
6380         (default_label_align_max_skip): New.
6381         (default_jump_align_max_skip): New.
6382         (compute_alignments): Use the new hooks.
6383         (shorten_branches): Likewise.
6384
6385 2010-10-19  Richard Henderson  <rth@redhat.com>
6386
6387         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
6388         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
6389         (fma4i_fmadd_<mode>): New.
6390         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
6391         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
6392         standard fma patterns.
6393         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
6394         enable for FMA.
6395         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6396         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6397         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
6398
6399 2010-10-19  Paul Koning  <pkoning@equallogic.com>
6400
6401         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
6402         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
6403
6404 2010-10-19  Richard Henderson  <rth@redhat.com>
6405
6406         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
6407         (fmadf4, *fmsdf4, *nfmadf4): New.
6408         (fmaxf4, *fmsxf4, *nfmaxf4): New.
6409
6410 2010-10-19  Michael Eager  <eager@eagercon.com>
6411
6412         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
6413         Use sjlj unwind info for exceptions.
6414
6415 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
6416
6417         PR fortran/43414
6418         * dwarf2out.c (add_calling_convention_attribute): Flag main
6419         Fortran subroutine with DW_AT_main_subprogram.
6420
6421 2010-10-19  Nick Clifton  <nickc@redhat.com>
6422
6423         * config/rx/rx.c (rx_function_value): Small integer types are
6424         promoted to SImode.
6425         (rx_promote_function_mode): New function.
6426         (TARGET_PROMOTE_FUNCTION_MODE): Define.
6427
6428 2010-10-19  Nick Clifton  <nickc@redhat.com>
6429
6430         * config/mep/mep.c (mep_print_operand): Use
6431         targetm.strip_name_encoding.
6432         (mep_output_aligned_common): Likewise.
6433
6434 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
6435
6436         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
6437
6438 2010-10-18  Richard Henderson  <rth@redhat.com>
6439
6440         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
6441         (fma (neg a) (neg b) c) and (fma a (neg b) c).
6442
6443 2010-10-18  Richard Henderson  <rth@redhat.com>
6444
6445         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
6446         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
6447         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
6448         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
6449         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
6450         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
6451         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
6452         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
6453         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
6454         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
6455         (bdesc_multi_arg): Remove the corresponding builtins.
6456         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
6457         (UNSPEC_FMA4_FMSUBADD): Remove.
6458         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
6459         * config/i386/sse.md (FMA4MODEF4): Remove.
6460         (FMAMODE): Add.
6461         (fma<mode>4): New expander.
6462         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
6463         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
6464         (*fma4i_fmsub_<mode>): Similarly.
6465         (*fma4i_fnmadd_<mode>): Similarly.
6466         (*fma4i_fnmsub_<mode>): Similarly.
6467         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
6468         with the first operand.
6469         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
6470         of explicit arithmetic.  Macroize with AVXMODEF2P.
6471         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
6472         (xop_frcz<mode>2): Macroize with FMAMODE.
6473         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
6474         the first operand.
6475         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
6476         extra negations.
6477         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
6478         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
6479         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
6480         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
6481         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
6482         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
6483         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
6484         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
6485
6486 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
6487
6488         PR rtl-optimization/45966
6489         * combine.c (try_combine): If added_sets_2, deal with the case
6490         where i0 feeds i1 and i1 feeds i2.
6491
6492 2010-10-18  Jan Hubicka  <jh@suse.cz>
6493
6494         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
6495         preserve flags before trying to guess on visibility.
6496         (varpool_externally_visible_p): New function.
6497         (function_and_variable_visibility): Use it.
6498
6499 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6500
6501         Implemented parsing @synthesize and @dynamic for Objective-C.
6502         * c-parser.c (c_parser_external_declaration): Recognize
6503         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6504         (c_parser_objc_at_synthesize_declaration): New.
6505         (c_parser_objc_at_dynamic_declaration): New.
6506
6507 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6508
6509         * c-parser.c (c_parser_objc_class_declaration): After finding an
6510         error, parse the whole declaration then reset parser->error.
6511
6512 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6513
6514         PR target/46041
6515         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
6516         * builtins.c (mode_has_fma): Ditto.
6517
6518 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
6519
6520         PR target/36898
6521         PR middle-end/43760
6522         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
6523
6524 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
6525
6526         * config/i386/i386.c (ix86_option_override_internal): Define and
6527         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
6528         default.
6529         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6530         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
6531
6532 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6533
6534         Merge from 'apple/trunk' branch on FSF servers.
6535         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
6536         following Objective-C change:
6537
6538         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
6539
6540         Radar 4301047
6541         * c-parse.in (objc_quals): Build objc qualifier list same way
6542         as gcc-3.3
6543
6544 2010-10-18  Jan Hubicka  <jh@suse.cz>
6545
6546         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
6547         function_and_variable_visibility): Revert accidental commit.
6548
6549 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6550
6551         Merge from 'apple/trunk' branch on FSF servers.
6552         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
6553         the following Objective-C change:
6554
6555         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
6556
6557         Radar 4204796
6558         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
6559         'volatilized' type used in a typeof operator.
6560
6561 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6562
6563         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
6564         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
6565         rewrite modelled on gimple_purge_dead_eh_edges.
6566         (gimple_purge_all_dead_abnormal_call_edges): New function.
6567         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
6568         directly instead of through gimple_purge_dead_abnormal_call_edges.
6569         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
6570         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
6571         removed AB side-effects from one of its statements.
6572         (init_pre): Initialize need_ab_cleanup.
6573         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
6574         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
6575
6576 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
6577
6578         PR c/46015
6579         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
6580         on computed goto argument.
6581
6582 2010-10-18  Richard Guenther  <rguenther@suse.de>
6583
6584         PR tree-optimization/45967
6585         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
6586         (could_have_pointers): Likewise.
6587         (handle_rhs_call, handle_const_call, handle_pure_call,
6588         find_func_aliases, intra_create_variable_infos): Remove calls to them.
6589         (struct fieldoff): Add must_have_pointers field.
6590         (type_must_have_pointers): New function.
6591         (field_must_have_pointers): Likewise.
6592         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
6593         Adjust field merging.
6594         (create_function_info_for): May-have-pointers of varinfo is
6595         almost always true.
6596         (create_variable_info_for_1): Likewise.
6597
6598 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
6599
6600         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
6601         of operands to vec_concat.
6602
6603 2010-10-18  Richard Guenther  <rguenther@suse.de>
6604
6605         PR lto/44950
6606         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
6607         also clear references to entries of it.
6608
6609 2010-10-18  Andi Kleen  <ak@linux.intel.com>
6610
6611         PR other/43448
6612         * gccbug.in: Remove.
6613         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
6614         (doc, distclean, install-common): Remove reference to gccbug.
6615         * configure: Regenerate.
6616         * configure.ac (all_outputs): Remove gccbug.
6617         * doc/configfiles.texi: Remove references to gccbug.
6618         * doc/sourcebuild.texi: Dito.
6619
6620 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
6621
6622         PR middle-end/46019
6623         * fold-const.c (fold_binary_loc): If integer_pow2p has
6624         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
6625
6626 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
6627             Jeremie Salvucci  <jeremie.salvucci@free.fr>
6628
6629         * gengtype.c (verbosity_level): Add variable.
6630         (set_gc_used): Count variables for verbosity.
6631         (close_output_files): Backing up files, counting written ones
6632         verbosily.
6633         (write_types): Count emitted functions for verbosity. Added
6634         debug messages.
6635         (write_enum_defn): Count structures for verbosity. Added debug
6636         messages.
6637         (gengtype_long_options): Add "verbose" & "backupdir".
6638         (print_usage): Ditto.
6639         (main): Verbose display of parsed files.
6640
6641         * gengtype.h (verbosity_level): Add declaration.
6642
6643 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
6644
6645         * gengtype.c (parse_program_options): Add allocation of
6646         plugin_files, and correct test on nb_plugin_files.
6647
6648 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6649
6650         Merge from 'apple/trunk' branch on FSF servers.
6651
6652         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
6653
6654         Radar 4133425
6655         * c-decl.c (undeclared_variable): Issue diagnostic on
6656         private 'ivar' access.
6657
6658 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
6659
6660         PR target/46051
6661         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
6662         generated sequence to match *avx_vperm2f128<mode>_nozero.
6663         (vec_interleave_lowv4df): Ditto.
6664         (vec_interleave_highv8sf): Ditto.
6665         (vec_interleave_lowv8sf): Ditto.
6666
6667 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
6668
6669         * libgcov.c (create_file_directory): Enable it for win32 case.
6670         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
6671         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
6672         (GCOV_PREFIX_SKIP): Likewise.
6673
6674 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6675
6676         * doc/objc.texi (GNU Objective-C runtime API): New section.
6677         (Modern GNU Objective-C runtime API): New section.
6678         (Traditional GNU Objective-C runtime API): New section.
6679         (Executing code before main): Mention that this section is
6680         specific to the GNU Objective-C runtime.
6681         (Garbage Collection): Same.
6682
6683 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
6684
6685         * c-parser.c (c_parser_for_statement): Move initialization of
6686         cond and incr before if.
6687
6688 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
6689
6690         * target.def (preferred_output_reload_class): New hook.
6691         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
6692         * doc/tm.texi: Regenerate.
6693         * targhooks.c (default_preferred_output_reload_class): New function.
6694         * targhooks.h (default_preferred_output_reload_class): Declare.
6695         * reload.c (find_dummy_reload): Change rclass argument type from
6696         enum reg_class to reg_class_t. Change this_alternative array type
6697         from enum reg_class to reg_class_t.
6698         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6699         (push_reload): Change preferred_class variable type to reg_class_t.
6700         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6701         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
6702         argument type from enum reg_class to reg_class_t. Use
6703         HARD_REGISTER_NUM_P predicate.
6704         * recog.h (reg_fits_class_p): Update prototype.
6705
6706         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6707         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
6708         Remove.
6709         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
6710         static. Change regclass argument and result types from enum reg_class
6711         to reg_class_t.
6712         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6713
6714 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
6715
6716         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
6717         visibility enum, and handle @package.
6718
6719 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6720
6721         * doc/objc.texi (What you can and what you cannot do in +load):
6722         Document that sending messages to constant string objects in +load
6723         is not guaranteed to work.
6724
6725 2010-10-16  Jan Hubicka  <jh@suse.cz>
6726
6727         PR middle-end/44206
6728         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
6729         existence of refrences before removing the function.
6730
6731 2010-10-16  Jan Hubicka  <jh@suse.cz>
6732
6733         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
6734         only_called_at_startup and only_called_at_exit.
6735         (cgraph_propagate_frequency): Compute only_called_at_startup and
6736         only_called_at_exit.
6737         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
6738         only_called_at_exit.
6739         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
6740         flags.
6741         * predict.c (compute_function_frequency): Initialize the new flags.
6742
6743 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6744
6745         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
6746         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
6747         on the bounds of its domain.
6748         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
6749
6750 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
6751
6752         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
6753         * config/avr/avr-protos.h (preferred_reload_class): Remove.
6754         * config/avr/avr.c (preferred_reload_class): Remove.
6755         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
6756         * config/pa/pa.c (emit_move_sequence): Update comment
6757         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
6758         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
6759         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
6760         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
6761         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
6762         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
6763         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
6764         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
6765         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
6766         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
6767         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
6768         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
6769         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
6770
6771 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
6772
6773         * opts.c (set_fast_math_flags,
6774         set_unsafe_math_optimizations_flags): Make static.
6775         * toplev.h (set_fast_math_flags,
6776         set_unsafe_math_optimizations_flags): Remove prototypes.
6777
6778 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * config/arm/arm.c (arm_option_optimization): Set
6781         flag_section_anchors to 1 not 2.
6782         * config/i386/i386.c (ix86_option_override_internal): Check
6783         global_options_set.x_flag_zee and
6784         global_options_set.x_flag_omit_frame_pointer.
6785         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
6786         flag_zee to 2.
6787         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6788         global_options_set.x_flag_omit_frame_pointer.
6789         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
6790         opts->x_flag_section_anchors to 1 not 2.
6791         * config/sh/sh.c (sh_option_optimization): Don't set
6792         flag_schedule_insns to 2.
6793         (sh_option_override): Check
6794         global_options_set.x_flag_schedule_insns.
6795         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
6796
6797 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
6798
6799         * configure.ac: Make sure inhibit_libc remains false for mingw targets
6800         as cross.
6801         * configure: Regenerated.
6802
6803 2010-10-15  Xinliang David Li  <davidxl@google.com>
6804
6805         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
6806         function.
6807         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
6808         into a recursive function.
6809
6810 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
6811
6812         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
6813         (*movdfcc_1): ditto.
6814
6815 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6816
6817         * target.def (target_option.init_struct): New hook.
6818         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
6819         * doc/tm.texi: Regenerate.
6820         * hooks.c (hook_void_gcc_optionsp): New.
6821         * hooks.h (hook_void_gcc_optionsp): Declare.
6822         * langhooks-def.h (lhd_init_options_struct): Remove.
6823         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
6824         * langhooks.c (lhd_init_options_struct): Remove.
6825         * opts.c (init_options_struct): Also call
6826         targetm.target_option.init_struct.
6827         * config/i386/i386.c (ix86_option_init_struct,
6828         TARGET_OPTION_INIT_STRUCT): New.
6829         (ix86_option_optimization): Move some settings to
6830         ix86_option_init_struct.
6831         * config/pdp11/pdp11.c (pdp11_option_init_struct,
6832         TARGET_OPTION_INIT_STRUCT): New.
6833         (pdp11_option_optimization): Move some settings to
6834         pdp11_option_init_struct.
6835         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
6836         rs6000_option_init_struct.  Use options structure pointer.
6837         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
6838         * config/s390/s390.c (s390_option_init_struct,
6839         TARGET_OPTION_INIT_STRUCT): New.
6840         (s390_option_optimization): Don't set
6841         flag_asynchronous_unwind_tables here.
6842         * config/sh/sh.c (sh_option_init_struct,
6843         TARGET_OPTION_INIT_STRUCT): New.
6844         (sh_option_optimization): Don't set flag_finite_math_only here.
6845         * config/spu/spu.c (spu_option_optimization): Replace by
6846         spu_option_optimization.  Use options structure pointer.
6847         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
6848
6849 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6850
6851         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
6852
6853         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
6854         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
6855         (Standard names): Document fma.
6856
6857         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
6858         __FP_FAST_FMAF, __FP_FAST_FMAL.
6859
6860         * builitns.c (expand_builtin_mathfn_ternary): New function for
6861         expanding ternary math functions, like fma.
6862         (expand_builtin): Call it for the fma builtins.
6863
6864         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
6865         ops at present.
6866
6867         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
6868         vectorizable functions to support vectorizing fma.
6869
6870         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6871         Handle fma builtins.
6872
6873         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
6874         (UNSPEC_VSX_MSUB): Ditto.
6875         (UNSPEC_VSX_NMADD): Ditto.
6876         (UNSPEC_VSX_NMSUB): Ditto.
6877         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
6878         of UNSPEC. Renumber combiner patterns.
6879         (vsx_fmsub<mode>4*): Ditto.
6880         (vsx_fnmadd<mode>4*): Ditto.
6881         (vsx_fnmsub<mode>4*): Ditto.
6882
6883         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
6884         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
6885         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
6886         (altivec_vmaddfp_1): Ditto.
6887         (altivec_vmaddfp_2): Ditto.
6888         (atlivec_mulv4sf3): Ditto.
6889         (altivec_vnmsubfp): Ditto.
6890         (altivec_vnmsubfp_1): Ditto.
6891         (altivec_vnmsubfp_2): Ditto.
6892         (altivec_vnmsubfp_3): Delete.
6893
6894         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
6895         (fmasf4_fpr): Ditto.
6896         (fmssf4_fpr): Ditto.
6897         (fnmasf4_fpr): Ditto.
6898         (fnmssf4_fpr): Ditto.
6899         (fmadf4): Ditto.
6900         (fmadf4_fpr): Ditto.
6901         (fmsdf4_fpr): Ditto.
6902         (fnmadf4_fpr): Ditto.
6903         (fnmsdf4_fpr): Ditto.
6904
6905         * optabs.h (OTI_fma): Add fma optab.
6906         (fma_optab): Ditto.
6907
6908         * genopinit.c (optabs): Set fma optab.
6909
6910         * rtl.def (FMA): Add FMA rtl.
6911
6912         * tree.h (mode_has_fma): New function to return if MODE supports a
6913         fast multiply and add instruction.
6914         * builtins.c (mode_has_fma): Ditto.
6915
6916 2010-10-15  Jan Hubicka  <jh@suse.cz>
6917
6918         * lto-streamer-out.c (write_symbol): Use pointer set of seen
6919         objects instead of bitmap.
6920         (produce_symtab): Likewise; output defined symbols first.
6921
6922 2010-10-15  Jie Zhang  <jie@codesourcery.com>
6923
6924         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
6925         Option Summary and Index.
6926
6927 2010-10-15  Richard Guenther  <rguenther@suse.de>
6928
6929         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
6930         for automatic variables again.
6931
6932 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6933
6934         * doc/extend.texi (Variable Length): Don't refer to VLAs not
6935         conforming to C99.
6936
6937 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * config/rx/rx.c (rx_option_optimization): Change to
6940         rx_override_options_after_change.  Don't change
6941         flag_lto_compression_level.  Don't check for changes to whether
6942         FPU instructions can be used.  Check and set only
6943         flag_finite_math_only, not other fast-math flags.
6944         (rx_option_override): Call rx_override_options_after_change.
6945         (TARGET_OPTION_OPTIMIZATION): Remove.
6946         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6947
6948 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
6951         disable section anchors for lang_hooks.name[4] != 'O'.
6952
6953 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
6954
6955         * config/frv/frv.c (frv_option_optimization,
6956         TARGET_OPTION_OPTIMIZATION): Remove.
6957         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
6958
6959 2010-10-15  Michael Matz  <matz@suse.de>
6960
6961         * cgraphunit.c (clone_of_p): Define unconditionally.
6962
6963 2010-10-15  Richard Guenther  <rguenther@suse.de>
6964
6965         PR lto/45957
6966         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
6967
6968 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
6969
6970         * ifcvt.c (find_active_insn_before): New function.
6971         (find_active_insn_after): New function.
6972         (cond_exec_process_if_block): Use new functions to replace
6973         prev_active_insn() and next_active_insn().
6974
6975 2010-10-14  Yao Qi  <yao@codesourcery.com>
6976
6977         PR target/45447
6978         * config/arm/arm.c (arm_build_builtin_va_list): Assign
6979         va_list_name to TYPE_STUB_DECL (va_list_type).
6980
6981 2010-10-14  Jan Hubicka  <jh@suse.cz>
6982
6983         PR middle-end/45621
6984         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
6985         redirected to clone, be happy.
6986         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
6987         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
6988         former_clone_of unconditionally.
6989
6990 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
6991
6992         Merge from FSF apple 'trunk' branch.
6993         2006 Fariborz Jahanian  <fjahanian@apple.com>
6994
6995         Radars 4436866, 4505126, 4506903, 4517826
6996         * c-parser.c (c_parser, objc_property_attr_context) New flag.
6997         (c_lex_one_token): Handle property attributes.
6998         (c_parser_external_declaration): Handle @property.
6999         (c_parser_declaration_or_fndef): Warn on invalid attributes before
7000         @alias, @class, @end and @property objc keywords.
7001         (c_parser_objc_methodprotolist): Handle @property.
7002         (c_parser_objc_property_attrlist): New.
7003         (c_parser_objc_at_property): New.
7004         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
7005         (build_modify_expr): Likewise.
7006
7007 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7008
7009         PR tree-optimization/46008
7010         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
7011
7012 2010-10-14  Richard Guenther  <rguenther@suse.de>
7013
7014         PR tree-optimization/44913
7015         * tree-data-ref.c (disjoint_objects_p): Remove.
7016         (dr_may_alias_p): Simplify.  Only hand the base object to
7017         the alias-oracle.
7018         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7019         some more trees, bail out instead of asserting.
7020         (ptr_derefs_may_alias_p): Likewise.  Export.
7021         (refs_may_alias_p_1): Handle STRING_CSTs.
7022         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
7023
7024 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7025
7026         PR c/45969
7027         * c-typeck.c (build_binary_op): Don't try to compute a semantic
7028         type with excess precision for boolean operations.
7029
7030 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7031             Basile Starynkevitch  <basile@starynkevitch.net>
7032
7033         * gengtype.c:  Include getopt.h and version.h.
7034
7035         (lang_bitmap, struct outf, outf_p)
7036         (get_output_file_with_visibility, oprintf): Definitions moved to
7037         gengtype.h
7038         (output_files, header_file, srcdir, srcdir_len, this_file)
7039         (do_dump): No more static variables.
7040         (do_debug): New.
7041         (dbgprint_count_type_at): Added new function.
7042         (gengtype_long_options): New.
7043         (print_usage, print_version, parse_program_options): New.
7044         (main): Call parse_program_options, and removed old option
7045         handling code.  Added some debug output.
7046
7047         * gengtype.h:  Updated copyright year.
7048         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
7049         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
7050         Moved from gengtype.c to here.
7051         (do_debug, read_state_filename, write_state_filename): New variables.
7052         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
7053
7054         * Makefile.in:
7055         (REVISION): Always defined.
7056         (version.o): Removed ifdef REVISION_c.
7057         (s-gtype): Pass arguments to build/gengtype program.
7058         (build/version.o): Added building rule.
7059         (build/gengtype$(build_exeext)): Added build/version.o.
7060
7061 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7062
7063         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
7064         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
7065         __strong macros.
7066
7067 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7068
7069         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
7070         may_trap_or_fault_p instead of may_trap_p predicate.
7071         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
7072         (substitute_placeholder_in_expr): Likewise.
7073         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
7074         flag on MEM_REF nodes.
7075         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
7076         flags on INDIRECT_REF nodes.
7077
7078 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
7079
7080         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
7081         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
7082         (arm*-*-eabi*) <tm_file>: Likewise.
7083         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
7084         (frv-*-*linux*) <tm_file>: Likewise.
7085         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
7086         and associated helper macros.
7087         * config/frv/frv-abi.h: Delete.
7088
7089 2010-10-14  Richard Guenther  <rguenther@suse.de>
7090
7091         PR lto/44561
7092         * tree.def (NULLPTR_TYPE): New tree code.
7093         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
7094         * dwarf2out.c (is_base_type): Likewise.
7095         (gen_type_die_with_usage): Likewise.
7096         * sdbout.c (plain_type_1): Likewise.
7097         * tree.c (build_int_cst_wide): Likewise.
7098         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
7099
7100 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7101
7102         * params.c (params_finished): New.
7103         (add_params): Assert !params_finished.
7104         (finish_params): New.
7105         (set_param_value_internal): Take params and params_set
7106         parameters.  Assert params_finished.
7107         (set_param_value, maybe_set_param_value): Take params and
7108         params_set parameters.  Update calls to set_param_value_internal.
7109         (set_default_param_value): Assert !params_finished.  Don't use
7110         set_param_value_internal.
7111         (default_param_value, init_param_values): New.
7112         * params.h (struct param_info): Change value to default_value.
7113         Remove set.
7114         (set_param_value, maybe_set_param_value): Add params and
7115         params_set parameters.
7116         (PARAM_VALUE): Get parameters from global_options.
7117         (PARAM_SET_P): Remove.
7118         (finish_params, default_param_value, init_param_values): New.
7119         * common.opt (param_values): New Variable.
7120         * config/arm/arm.c (arm_option_override): Pass extra arguments to
7121         maybe_set_param_value.
7122         * config/i386/i386.c (ix86_option_override_internal): Pass extra
7123         arguments to maybe_set_param_value.
7124         * config/picochip/picochip.c (picochip_option_override): Pass
7125         extra arguments to maybe_set_param_value.
7126         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
7127         extra arguments to maybe_set_param_value.
7128         * config/s390/s390.c (s390_option_override): Use
7129         maybe_set_param_value instead of set_param_value.  Pass extra
7130         arguments to maybe_set_param_value.
7131         * config/sparc/sparc.c (sparc_option_override): Pass extra
7132         arguments to maybe_set_param_value.
7133         * config/spu/spu.c (spu_option_override): Pass extra arguments to
7134         maybe_set_param_value.
7135         * opts.c (handle_param): Take opts and opts_set parameters.
7136         Update call to set_param_value.
7137         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
7138         initial_loop_invariant_max_bbs_in_loop): Remove.
7139         (init_options_once): Don't set them.
7140         (init_options_struct): Initialize parameters structures.
7141         (default_options_optimization): Use default_param_value when
7142         restoring defaults.  Update calls to maybe_set_param_value.
7143         (finish_options): Update calls to maybe_set_param_value.
7144         (common_handle_option): Update calls to handle_param and
7145         set_param_value.
7146         * toplev.c (DEFPARAM): Update definition for changes to param_info.
7147         (general_init): Call finish_params.
7148
7149 2010-10-14  Nick Clifton  <nickc@redhat.com>
7150
7151         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
7152         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
7153         (FIRST_PSEUDO_REGISTER): Increase by one.
7154         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
7155         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
7156         (MODES_TIEABLE): Call mn10300_modes_tieable.
7157         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
7158         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
7159         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
7160         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
7161         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
7162         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
7163         (mn10300_cc_status_mdep): Delete.
7164         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
7165         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
7166         the combine-stack-adjust pass.
7167         (print_operand): Use the mode of the comparison operation to
7168         select the comparison suffix.
7169         (notice_update_cc): Delete.
7170         (mn10300_secondary_reload_class): Remove test for stack pointer
7171         based arithmetic.
7172         (output_tst): Rename to mn10300_output_cmp.
7173         (impossible_plus_operand): Move into predicates.md.
7174         (mn10300_legitimize_address): Make static.
7175         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
7176         constant pic operands.
7177         (mn10300_legitimate_constant_p): New function.
7178         (mn10300_case_values_threshold): Make static.
7179         (mn10300_hard_regno_mode_ok): New function.
7180         (mn10300_modes_tieable): New function.
7181         (mn10300_select_cc_mode): New function.
7182         * config/mn10300/predicates.md (impossible_plus_operand): Define.
7183         * config/mn10300/mn10300-protos.h: Tidy.
7184         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
7185         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
7186         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
7187         with clobbers or sets of CC_REG.
7188         (CC_REG): Define.
7189         (mov*): Remove use of CLR instruction.
7190         (cbranch_si4_<code>): New pattern/split.
7191         (integer_conditional_branch): New pattern.
7192         (cbranch_sf4_<code>): New pattern/split.
7193         (float_conditional_branch): New pattern.
7194         (casesi): Use addsi3 pattern instead of movsi pattern to add and
7195         move a value at the same time.
7196         (cc0 peepholes): Remove.
7197
7198 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7199
7200         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
7201         on RTX_FRAME_RELATED_P insns and the insn to which
7202         NOTE_INSN_EPILOGUE_BEG is attached.
7203         * sched-vis.c (print_value): Allow NULL value.
7204
7205 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7206
7207         PR rtl-optimization/45570
7208         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
7209         assert that we are pipelining outer loops.  Allow returning
7210         zero predecessors.
7211
7212 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7213
7214         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
7215         (tidy_control_flow): Tidy vertical space.
7216         (sel_remove_bb): New variable idx.  Use it to remember the basic
7217         block index before deleting the block.
7218         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
7219         (sel_merge_blocks): ... here.
7220         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
7221
7222 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7223
7224         * cse.c (is_dead_reg): Change into inline function that is not
7225         called through for_each_rtx.
7226         (set_live_p): Adjust caller.
7227         (insn_live_p): Don't reset DEBUG_INSNs here.
7228         (struct dead_debug_insn_data): New data.
7229         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
7230         (delete_trivially_dead_insns): If there is just one setter for the
7231         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
7232         and add DEBUG_INSN for it right before the removed setter and
7233         use the DEBUG_EXPR instead of the dead pseudo.
7234
7235 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
7236
7237         * et-forest.c (et_nca): Return NULL immediately when
7238         the dominance forest has disjoint components.
7239
7240 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
7241
7242         * ira.c (setup_class_hard_regs): Fix typo in indexing
7243         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
7244
7245 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
7246
7247         * graph.c (inbb): New variable.
7248         (start_bb): Set inbb to 1 if output is inside of a building block.
7249         (end_bb): Check if output is inside of a building block.
7250
7251 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7252
7253         PR rtl-optimization/45912
7254         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
7255         regno of registers instead of their index to compute the alignment.
7256
7257 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
7258
7259         * config/i386/i386.c (ix86_build_const_vector): Check vector
7260         mode instead of scalar mode.
7261         (ix86_build_signbit_mask): Likewise.
7262         (ix86_expand_fp_absneg_operator): Updated.
7263         (ix86_expand_copysign): Likewise.
7264         (ix86_expand_int_vcond): Likewise.
7265         (ix86_emit_swdivsf): Likewise.
7266         (ix86_sse_copysign_to_positive): Likewise.
7267         (ix86_expand_sse_fabs): Likewise.
7268         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
7269         * config/i386/sse.md (copysign<mode>3): Likewise.
7270         (sse2_cvtudq2ps): Likewise.
7271         (vec_unpacku_float_hi_v4si): Likewise.
7272         (vec_unpacku_float_lo_v4si): Likewise.
7273
7274         * config/i386/i386.c (ix86_builtins): Add
7275         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
7276         (bdesc_args): Likewise.
7277         (ix86_builtin_vectorized_function): Support
7278         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
7279         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
7280         and IX86_BUILTIN_CVTPS2DQ256.
7281         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
7282
7283         * config/i386/sse.md (STORENT_MODE): New.
7284         (VEC_FLOAT_MODE): Likewise.
7285         (VEC_EXTRACT_MODE): Likewise.
7286         (*avx_cvtdq2pd256_2): Likewise.
7287         (vec_pack_trunc_v4df): Likewise.
7288         (vec_interleave_highv8sf): Likewise.
7289         (vec_interleave_lowv8sf): Likewise.
7290         (storent<mode>): Macroized.
7291         (<code><mode>2: absneg): Likewise.
7292         (copysign<mode>3): Likewise.
7293         (vec_extract<mode>): Likewise.
7294
7295         PR target/44180
7296         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
7297         for V8SFmode.
7298
7299 2010-10-13  Richard Guenther  <rguenther@suse.de>
7300             H.J. Lu  <hongjiu.lu@intel.com>
7301
7302         * config/i386/sse.md (reduc_splus_v8sf): Add.
7303         (reduc_splus_v4df): Likewise.
7304         (vec_unpacks_hi_v8sf): Likewise.
7305         (vec_unpacks_lo_v8sf): Likewise.
7306         (*avx_cvtps2pd256_2): Likewise.
7307         (vec_unpacks_float_hi_v8si): Likewise.
7308         (vec_unpacks_float_lo_v8si): Likewise.
7309         (vec_interleave_highv4df): Likewise.
7310         (vec_interleave_lowv4df): Likewise.
7311
7312 2010-10-13  Richard Guenther  <rguenther@suse.de>
7313
7314         PR objc/45878
7315         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
7316         alone if there are no virtual methods.
7317
7318 2010-10-13  Richard Henderson  <rth@redhat.com>
7319
7320         * expr.c (build_personality_function): Take parameter LANG instead
7321         of parameter NAME.  Build the name based on the lang prefix and the
7322         unwind method in use.
7323         * tree.c (lhd_gcc_personality): Update call to
7324         build_personality_function.
7325
7326 2010-10-13  Richard Guenther  <rguenther@suse.de>
7327
7328         PR objc/45878
7329         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
7330
7331 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7332
7333         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
7334         Canonicalize input operands of ASM_OPERANDS insns.
7335
7336 2010-10-13  Richard Guenther  <rguenther@suse.de>
7337
7338         PR tree-optimization/45788
7339         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
7340         EH update until fixup-cfg.
7341
7342 2010-10-13  Julian Brown  <julian@codesourcery.com>
7343
7344         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
7345         from CORE_REGS and GENERAL_REGS classes.
7346         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
7347         final constraint for register preferencing.
7348
7349 2010-10-13  Richard Guenther  <rguenther@suse.de>
7350
7351         PR tree-optimization/45970
7352         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
7353         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
7354         (stmt_kills_ref_p): Likewise.
7355         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
7356
7357 2010-10-13  Richard Guenther  <rguenther@suse.de>
7358
7359         PR tree-optimization/45982
7360         * tree-ssa-structalias.c (make_constraints_to): New function.
7361         (make_constraint_to): Implement in terms of make_constraints_to.
7362         (find_func_aliases): Properly make return values of pure/const
7363         functions escape if they assign to sth that is not a pointer.
7364
7365 2010-10-13  Richard Guenther  <rguenther@suse.de>
7366
7367         PR middle-end/45874
7368         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
7369         Fixup the CFG when EH was fixed up.
7370
7371 2010-10-13  Ira Rosen  <irar@il.ibm.com>
7372
7373         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
7374         Use operand's type for POINTER_PLUS_EXPR.
7375
7376 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
7377
7378         * c-parser.c (c_parser_for_statement): Initialize incr.
7379
7380 2010-10-12  Xinliang David Li  <davidxl@google.com>
7381
7382         PR tree-optimization/45972
7383         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
7384         with too many arguments.
7385
7386 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
7387
7388         PR fortran/45636
7389         * tree-ssa-forwprop.c: Include expr.h.
7390         (constant_pointer_difference, simplify_builtin_call): New functions.
7391         (tree_ssa_forward_propagate_single_use_vars): Call
7392         simplify_builtin_call on builtin calls.
7393
7394 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
7395
7396         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
7397         (*adddi3_extend_sp32): Likewise.
7398         (*subdi3_insn_sp32): Likewise.
7399         (*subdi3_extend_sp32): Likewise.
7400         (*negdi2_sp32): Use negative test for consistency.
7401
7402 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
7403
7404         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
7405         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7406         * config/fixed-bit.h: Likewise.
7407         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7408         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7409         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
7410         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
7411         (DF_SIZE): Likewise.
7412         * doc/tm.texi: Regenerate.
7413
7414 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
7415
7416         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
7417         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
7418         (*isel_reversed_unsigned_<mode>): New.
7419         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
7420         as valid comparisons and adjust operands and output appropriately.
7421         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
7422
7423 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
7424
7425         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
7426         DATA_ALIGNMENT and add COND parameter. Update comments above.
7427         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
7428         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
7429
7430 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
7431
7432         PR bootstrap/45958
7433         * exec-tool.in: Support '-plugin' as the second option to the linker.
7434
7435 2010-10-12  Richard Henderson  <rth@redhat.com>
7436
7437         PR middle-end/45962
7438         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
7439         (expand_stack_vars): Assert large base allocated when used.
7440
7441 2010-10-12  Richard Guenther  <rguenther@suse.de>
7442
7443         * tree-ssa-structalias.c (get_constraint_for_1): Constants
7444         only point to nonlocal, not anything.
7445
7446 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
7447
7448         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
7449         unwind info for exceptions.
7450
7451 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7452
7453         PR testsuite/45851
7454         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
7455         Document optional target selector.
7456
7457 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
7458
7459         * flag-types.h: New.
7460         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
7461         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
7462         options.h.
7463         (OPTIONS_H): Define.
7464         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
7465         of options.h.
7466         * configure.ac (tm_include_list): Include options.h not flags.h.
7467         * configure: Regenerate.
7468         * flags.h: Include flag-types.h.  Include options.h at top of file
7469         again.
7470         (enum debug_info_type, enum debug_info_level, enum
7471         debug_info_usage, enum symbol_visibility, struct visibility_flags,
7472         enum ira_algorithm, enum ira_region, enum excess_precision, enum
7473         graph_dump_types, enum stack_check_type,
7474         enum warn_strict_overflow_code): Move to flag-types.h
7475         * opth-gen.awk: Include flag-types.h in options.h.
7476
7477 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
7478
7479         * expr.c (store_expr): Share code for STRING_CST and
7480         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
7481         check if target is a MEM.
7482
7483         * rtl.h: Include hashtab.h.
7484         (iterative_hash_rtx): New prototype.
7485         * rtl.c (iterative_hash_rtx): New function.
7486         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
7487         (output_loc_list): Return immediately if emitted is set, set it.
7488         (hash_loc_operands, hash_locs, hash_loc_list,
7489         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
7490         optimize_location_lists_1, optimize_location_lists): New function.
7491         (dwarf2out_finish): Call optimize_location_lists.
7492         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
7493
7494 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7495
7496         PR testsuite/45974
7497         Revert:
7498         * Makefile.in ($(lang_checks_parallel))
7499         ($(lang_checks_parallelized)): Use single quotes for
7500         $(RUNTESTFLAGS), to allow passing quoted content.
7501
7502 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7503
7504         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
7505         actual_oldval.  Use __builtin_expect.
7506         (SUBWORD_VAL_CAS): Likewise.
7507
7508 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
7509
7510         * recog.c (nonmemory_operand): Call immediate_operand for
7511         CONSTANT_P operands.
7512
7513 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
7514
7515         * config/i386/i386.md (movmem<mode>): Macroize expander from
7516         movmem{si,di} using SWI48 mode iterator.
7517         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
7518         *strmovsi_rex_1 using P mode iterator.
7519         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
7520         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
7521         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
7522         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
7523         (setmem<mode>): Macroize expander from setmem{si,di} using
7524         SWI48 mode iterator.
7525         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
7526         *strsetsi_rex_1 using P mode iterator.
7527         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
7528         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
7529         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
7530         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
7531         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
7532         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
7533         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
7534         mode iterator.
7535         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
7536         *strlenqi_rex_1 using P mode iterator.
7537
7538 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
7539
7540         PR bootstrap/45445
7541         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
7542         static functions.
7543         (mark_ref_live, mark_ref_dead): Use them.
7544         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
7545         Save the original reg, and use the new functions.
7546         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
7547         changed.
7548         (check_and_make_def_conflict): Save the original reg.
7549
7550 2010-10-11  Martin Jambor  <mjambor@suse.cz>
7551
7552         PR middle-end/45699
7553         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
7554         thunks.
7555
7556 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7557
7558         * Makefile.in ($(lang_checks_parallel))
7559         ($(lang_checks_parallelized)): Use single quotes for
7560         $(RUNTESTFLAGS), to allow passing quoted content.
7561
7562         PR bootstrap/35855
7563         * opt-functions.awk (BEGIN): New section.
7564         (lower, upper, digit, alnum): New variables.
7565         (static_var, opt_sanitized_name): Use alnum instead of character
7566         classes, for non-C locale.
7567         * optc-gen.awk: Likewise.
7568         * opth-gen.awk: Likewise.
7569
7570 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
7571
7572         * target.def (preferred_reload_class): New hook.
7573         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
7574         * doc/tm.texi: Regenerate.
7575         * targhooks.c (default_preferred_reload_class): New function.
7576         * targhooks.h (default_preferred_reload_class): Declare.
7577         * reload.c (find_dummy_reload): Change preferred_class variable type
7578         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
7579         target hook.
7580         (find_reloads): Change goal_alternative array type from int to
7581         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
7582         (push_reload, find_reloads_address_part): Use
7583         TARGET_PREFERRED_RELOAD_CLASS target hook.
7584         * reload1.c (emit_input_reload_insns): Ditto.
7585         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
7586         hook. Change rclass argument and secondary_class variable types from
7587         'enum reg_class' to reg_class_t.
7588
7589         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
7590         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
7591         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
7592         Change regclass argument and result types from enum reg_class to
7593         reg_class_t.
7594         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7595
7596 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
7597
7598         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
7599         in masking operations.
7600         (simplify_const_unary_operation): Likewise.
7601         (simplify_binary_operation_1): Likewise.
7602         (simplify_const_binary_operation): Likewise.
7603         (simplify_const_relational_operation): Likewise.
7604         (simplify_ternary_operation): Likewise.
7605         (simplify_immed_subreg): Likewise.
7606
7607 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7608
7609         PR middle-end/45862
7610         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
7611         (TARGET_SUPPORTS_WEAK): New.
7612         * doc/tm.texi: Regenerate.
7613         * defaults.h (SUPPORTS_WEAK): Update comment.
7614         (TARGET_SUPPORTS_WEAK): New.
7615         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
7616         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
7617         SUPPORTS_WEAK.
7618         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
7619         make_decl_one_only): Likewise.
7620         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
7621         TARGET_SUPPORTS_WEAK.
7622         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
7623         instead of SUPPORTS_WEAK.
7624
7625 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7626
7627         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
7628
7629 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
7630
7631         * vec.h (VEC_qsort): Define.
7632         * dbxout.c (output_used_types): Use it.
7633         * df-scan.c (df_sort_and_compress_refs): Likewise.
7634         (df_sort_and_compress_mws): Likewise.
7635         * genautomata.c (uniq_sort_alt_states): Likewise.
7636         (evaluate_equiv_classes): Likewise.
7637         (output_trans_table): Likewise.
7638         (output_state): Likewise.
7639         * gimplify.c (compare_case_labels): Likewise.
7640         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
7641         * ipa.c (build_cdtor_fns): Likewise.
7642         * lto.c (lto_wpa_write_files): Likewise.
7643         * sel-sched.c (fill_vec_av_set): Likewise.
7644         * tree-predcom.c (determine_roots_comp): Likewise.
7645         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
7646         (splice_param_accesses): Likewise.
7647         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
7648         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7649         (reassociate_bb): Likewise.
7650         * tree-ssa-sccvn.c (sort_scc): Likewise.
7651         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
7652
7653 2010-10-11  Ian Lance Taylor  <iant@google.com>
7654
7655         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
7656         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
7657         TREE_THIS_NOTRAP when appropriate.
7658         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
7659         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
7660         newly created MEM_REF.
7661
7662 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
7663
7664         Nathan Froyds patch to hooks FUNCTION_ARG etc.
7665         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
7666         (picochip_incoming_function_arg): Delete.
7667         (picochip_arg_advance): Delete.
7668         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
7669         (FUNCTION_INCOMING_ARG): Delete.
7670         (FUNCTION_ARG_ADVANCE): Delete.
7671         * config/picochip/picochip.c (picochip_function_arg): Take a
7672         const_tree and a bool.
7673         (picochip_incoming_function_arg): Likewise.
7674         (picochip_arg_advance): Likewise.
7675         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7676         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7677
7678 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7679
7680         PR middle-end/45955
7681         * ipa.c (build_cdtor): Delete endless loop.
7682
7683 2010-10-07  Andi Kleen  <ak@linux.intel.com>
7684
7685         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
7686         checksum-options.
7687         (checksum-options): Add.
7688         (cc1-dummy): Remove.
7689         (cc1-checksum): Change to run checksum over object files
7690         and options only.
7691         * dummy-checksum.c: Remove.
7692         * genchecksum.c: Update copyright.
7693         (usage): Allow multiple arguments.
7694         (BLOCKSIZE): Add.
7695         (dosum): Change for incremental checksum. Remove C output.
7696         (main): Iterate over all argument files. Add C output.
7697
7698 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
7699
7700         * params.c (set_param_value_internal): New.
7701         (set_param_value): Use set_param_value_internal.
7702         (maybe_set_param_value, set_default_param_value): New.
7703         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
7704         (maybe_set_param_value, set_default_param_value): Declare.
7705         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
7706         * config/i386/i386.c (ix86_option_override_internal): Use
7707         maybe_set_param_value.
7708         * config/ia64/ia64.c (ia64_option_default_params,
7709         TARGET_OPTION_DEFAULT_PARAMS): New.
7710         (ia64_option_optimization): Move some code to
7711         ia64_option_default_params.
7712         * config/picochip/picochip.c (picochip_option_override): Use
7713         maybe_set_param_value.
7714         * config/rs6000/rs6000.c (rs6000_option_default_params,
7715         TARGET_OPTION_DEFAULT_PARAMS): New.
7716         (rs6000_option_override_internal): Use maybe_set_param_value.
7717         (rs6000_option_optimization): Move some code to
7718         rs6000_option_default_params.
7719         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
7720         * config/sh/sh.c (sh_option_default_params,
7721         TARGET_OPTION_DEFAULT_PARAMS): New.
7722         (sh_option_optimization): Move some code to sh_option_default_params.
7723         * config/sparc/sparc.c (sparc_option_override): Use
7724         maybe_set_param_value.
7725         * config/spu/spu.c (spu_option_default_params,
7726         TARGET_OPTION_DEFAULT_PARAMS): New.
7727         (spu_option_optimization): Move some code to spu_option_default_params.
7728         (spu_option_override): Use maybe_set_param_value.
7729         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
7730         * doc/tm.texi: Regenerate.
7731         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
7732         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
7733         compiler_params.
7734         (default_options_optimization): Use maybe_set_param_value.
7735         (finish_options): Use maybe_set_param_value.
7736         * target.def (target_option.default_params): New hook.
7737         * toplev.c (general_init): Call targetm.target_option.default_params.
7738
7739 2010-10-11  Ira Rosen  <irar@il.ibm.com>
7740
7741         PR tree-optimization/45902
7742         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
7743         vector type for constants, unless it's a pointer.
7744
7745 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7746
7747         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
7748
7749 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
7750
7751         PR target/45870
7752         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
7753         (ix86_delegitimize_address): Use it.
7754
7755 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
7756
7757         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
7758
7759 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
7760
7761         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
7762         to cum struct in the call to function_arg_advance.
7763         (alpha_function_arg_advance): Mark named as unused.
7764
7765 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
7766
7767         * config/mips/mips.c (mips_handle_option): Make "value" with
7768         ATTRIBUTE_UNUSED.
7769
7770 2010-10-09  Richard Henderson  <rth@redhat.com>
7771
7772         PR rtl-opt/33721
7773         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
7774         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
7775         required_align, tidy the code a bit.  Emit split_stack code in the
7776         right place.  Mark the return value with the alignment properly.
7777         * expr.h (allocate_dynamic_stack_space): Update decl.
7778         * builtins.c (expand_builtin_apply): Update call to
7779         allocate_dynamic_stack_space.
7780         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
7781         * calls.c (initialize_argument_information): Update call to
7782         allocate_dynamic_stack_space.
7783         (expand_call): Likewise.
7784
7785         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
7786         Don't update_stack_alignment here.
7787         (alloc_stack_frame_space): Make ALIGN unsigned.
7788         (stack_var_cmp): Sort by alignment too.
7789         (partition_stack_vars): Don't merge large and small alignment vars.
7790         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
7791         Take care when BASE is not virtual_stack_vars_rtx.
7792         (expand_stack_vars): Allocate dynamic stack space for large
7793         alignment variables.
7794         (expand_one_stack_var): Update all to expand_one_stack_var_at.
7795         (defer_stack_allocation): True for large alignment vars.
7796         (update_stack_alignment): Merge into ...
7797         (expand_one_var): ... here.
7798         (gimple_expand_cfg): Place code from expand_stack_vars.
7799
7800 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7801
7802         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7803         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
7804         (pdp11_function_arg_advance): New function.
7805         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7806
7807 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7808
7809         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
7810         * libgcc2.c: Likewise.
7811
7812 2010-10-09  Richard Guenther  <rguenther@suse.de>
7813
7814         PR lto/45956
7815         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
7816         Properly check if a decl is an automatic var.
7817
7818 2010-10-09  Richard Guenther  <rguenther@suse.de>
7819
7820         PR lto/45947
7821         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
7822
7823 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7824
7825         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
7826         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7827         * config/mmix/mmix.c (mmix_function_arg): Rename to...
7828         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
7829         bool arguments.
7830         (mmix_function_arg): New function.
7831         (mmix_function_incoming_arg): New function.
7832         (mmix_function_arg_advance): New function.
7833         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7834         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7835
7836 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7837
7838         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7839         * config/vax/vax.c (vax_function_arg): New function.
7840         (vax_function_arg_advance): New function.
7841         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7842
7843 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7844
7845         * config/pa/pa-protos.h (function_arg): Delete.
7846         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7847         * config/pa/pa.c (function_arg): Rename to...
7848         (pa_function_arg): ...this.  Make static.  Take a const_tree and
7849         a bool.
7850         (pa_function_arg_advance): New function.
7851         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7852
7853 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7854
7855         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7856         * config/m68k/m68k.c (m68k_function_arg): New function.
7857         (m68k_function_arg_advance): New function.
7858         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7859
7860 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7861
7862         * config/avr/avr-protos.h (function_arg): Delete.
7863         (function_arg_advance): Delete.
7864         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7865         * config/avr/avr.c (function_arg): Rename to...
7866         (avr_function_arg): ...this.  Make static.  Take a const_tree and
7867         a bool.
7868         (function_arg_advance): Rename to...
7869         (avr_function_arg_advance): ...this.  Make static.  Take a
7870         const_tree and a bool.
7871         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7872
7873 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7874
7875         * config/alpha/alpha-protos.h (function_arg): Delete.
7876         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7877         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
7878         * config/alpha/alpha.c (function_arg): Rename to...
7879         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
7880         a bool.  Delete TARGET_ABI_UNICOSMK code.
7881         (alpha_function_arg_advance): New function.
7882         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7883
7884 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7885
7886         * config/mep/mep-protos.h (mep_function_arg): Delete.
7887         (mep_function_arg_advance): Delete.
7888         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7889         * config/mep/mep.c (mep_function_arg): Make static.  Take a
7890         const_tree and a bool.
7891         (mep_function_arg_advance): Likewise.
7892         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7893
7894 2010-10-09  Richard Guenther  <rguenther@suse.de>
7895
7896         PR tree-optimization/45945
7897         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
7898
7899 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
7900
7901         PR tree-optimization/45612
7902         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
7903         Test LABEL_DECLs as well.  Fix formatting issues.
7904         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
7905         whose label is present in NON_SSA_VARS.
7906         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
7907         as well.  Fix formatting issues.
7908         (visit_bb): Fix typos and formatting issue.
7909
7910 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
7911
7912         PR tree-optimization/45950
7913         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
7914         before initializing vno->op.
7915
7916 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
7917
7918         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
7919         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
7920
7921 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
7922
7923         PR target/45913
7924         * config/i386/i386.c (ix86_binary_operator_ok): Support
7925         "andhi/andsi/anddi" as a zero-extending move.
7926
7927 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
7928
7929         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
7930         into a temporary array.
7931
7932 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
7933
7934         PR tree-optimization/45903
7935         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
7936         of {A,L}SHIFTRT of MEM.
7937
7938 2010-10-08  Richard Guenther  <rguenther@suse.de>
7939
7940         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7941         Re-construct BLOCK_VARS.
7942         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
7943         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7944         * tree.c (free_lang_data_in_block): Remove.
7945         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
7946         Do not touch the BLOCK tree.
7947         * expr.c (expand_expr_real_1): Allow externals.
7948
7949 2010-10-08  Richard Guenther  <rguenther@suse.de>
7950
7951         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
7952         Do not output BLOCK_SUBBLOCKS.
7953         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
7954         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
7955         Re-construct BLOCK_SUBBLOCKS of parent block.
7956         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
7957         for BINFO_BASE_ACCESSES.
7958
7959 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
7960
7961         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
7962         (TREE_H): Include $(FLAGS_H) instead of options.h.
7963         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
7964         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7965         * common.opt (flag_complex_method, flag_evaluation_order,
7966         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
7967         Variable declarations.
7968         * configure.ac (tm_include_list): Include flags.h instead of options.h.
7969         * configure: Regenerate.
7970         * flags.h: Condition out contents for target libraries.  Include
7971         options.h at end of file.
7972         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
7973         flag_evaluation_order, flag_warn_unused_result): Remove.
7974         * gcc.c (main): Intialize global_options with global_options_init.
7975         * langhooks-def.h (lhd_init_options_struct): Declare.
7976         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7977         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
7978         * langhooks.c (lhd_init_options_struct): New.
7979         * langhooks.h (struct lang_hooks): Add init_options_struct.
7980         Update comment on init_options.
7981         * optc-gen.awk: Generate initializer for global_options_init, not
7982         global_options.
7983         * opth-gen.awk: Condition out structure declarations for target
7984         libraries.  Declare global_options_init.
7985         * opts-common.c: Include flags.h instead of options.h.
7986         * opts.c (flag_warn_unused_result): Remove.
7987         (read_cmdline_options): Take gcc_options parameters.  Pass them to
7988         read_cmdline_option.
7989         (initial_lang_mask, initial_min_crossjump_insns,
7990         initial_max_fields_for_field_sensitive,
7991         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
7992         (init_options_once): New.  Split out of decode_options.
7993         (init_options_struct): New.  Split out of decode_options.
7994         (decode_cmdline_options_to_array_default_mask): New.
7995         (default_options_optimization): New.  Split out of decode_options.
7996         (decode_options): Move most code to other functions.  Update call
7997         to read_cmdline_options.
7998         (finish_options): New.  Split out of decode_options.
7999         * opts.h (decode_options): Add gcc_options parameters.
8000         (init_options_once, init_options_struct,
8001         decode_cmdline_options_to_array_default_mask): New.
8002         * toplev.c (flag_complex_method, flag_ira_algorithm,
8003         flag_ira_region, flag_evaluation_order): Remove.
8004         (general_init): Use global_options_init for initial flag values
8005         for global_dc.
8006         (toplev_main): Call init_options_once, init_options_struct,
8007         lang_hooks.init_options_struct,
8008         decode_cmdline_options_to_array_default_mask and
8009         lang_hooks.init_option before decode_options.  Update arguments to
8010         decode_options.
8011         * tree.h: Include flags.h instead of options.h.
8012
8013 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8014
8015         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8016
8017 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8018
8019         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
8020         Delete.
8021         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8022         (FUNCTION_INCOMING_ARG): Delete.
8023         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
8024         (function_arg_slotno): Likewise.  Take bool arguments.
8025         (sparc_arg_partial_bytes): Update call to it.
8026         (function_arg): Rename to...
8027         (sparc_function_arg_1): ...this.  Take bool arguments.
8028         (sparc_function_arg, sparc_function_incoming_arg): New functions.
8029         (function_arg_advance): Rename to...
8030         (sparc_function_arg_advance): ...this.  Take bool argument.
8031         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
8032         (TARGET_FUNCTION_INCOMING_ARG): Define.
8033
8034 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8035
8036         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
8037         Delete.
8038         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8039         * config/bfin/bfin.c (function_arg_advance): Rename to...
8040         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
8041         and bool arguments.
8042         (function_arg): Rename to...
8043         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
8044         arguments.
8045         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8046
8047 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8048
8049         * config/score/score-protos.h (score_function_arg): Delete.
8050         (score_function_arg_advance): Delete.
8051         * config/score/score3.h (score3_function_arg_advance): Take a
8052         const_tree and a bool.
8053         (score3_function_arg): Likewise.
8054         * config/score/score7.h (score7_function_arg_advance): Likewise.
8055         (score7_function_arg): Likewise.
8056         * config/score/score3.c (score3_classify_arg): Likewise.
8057         (score3_function_arg_advance, score3_function_arg): Likewise.
8058         * config/score/score7.c (score7_classify_arg): Likewise.
8059         (score7_function_arg_advance, score7_function_arg): Likewise.
8060         * config/score/score.c (score_function_arg_advance): Likewise.
8061         (score_function_arg): Likewise.  De-const-ify `cum' argument.
8062         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8063
8064 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8065
8066         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
8067         (s390_function_arg): Delete.
8068         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8069         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
8070         (s390_function_arg_integer): Likewise.
8071         (s390_function_arg_advance): Make static.  Take a const_tree and
8072         a bool.
8073         (s390_function_arg): Likewise.
8074         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8075
8076 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8077
8078         * config/spu/spu-protos.h (spu_function_arg): Delete.
8079         * config/spu/spu.h (FUNCTION_ARG): Delete.
8080         (FUNCTION_ARG_ADVANCE): Move code to ...
8081         * config/spu/spu.c (spu_function_arg_advance): New function.
8082         (spu_function_arg): Make static.  Take a const_tree and a bool.
8083         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
8084         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8085
8086 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8087
8088         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8089
8090 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8091
8092         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
8093         (init_vn_nary_op_from_op): New function.
8094         (init_vn_nary_op_from_stmt): New function.
8095         (vn_nary_op_lookup_1): New function.
8096         (sizeof_vn_nary_op): New function.
8097         (alloc_vn_nary_op_noinit): New function.
8098         (alloc_vn_nary_op): New function.
8099         (vn_nary_op_insert_into): New function.
8100         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
8101         (vn_nary_op_lookup): Likewise.
8102         (vn_nary_op_lookup_stmt): Likewise.
8103         (vn_nary_op_insert_pieces): Likewise.
8104         (vn_nary_op_insert): Likewise.
8105         (vn_nary_op_insert_stmt): Likewise.
8106         (copy_nary): Likewise.
8107         (set_value_id_for_result): New function.
8108         (set_hashtable_value_ids): Call it.
8109
8110 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8111
8112         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8113         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
8114
8115 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8116
8117         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
8118         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8119
8120 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8121
8122         PR debug/45656
8123         * cse.c (cse_extended_basic_block): Preserve cc0 info across
8124         debug isnsn.  Skip them when searching for cc0 setter.
8125         (set_live_p): Skip debug insns when searching for cc0 user.
8126
8127 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8128
8129         PR debug/45673
8130         PR debug/45604
8131         PR debug/45419
8132         PR debug/45408
8133         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
8134         type of MEM_REFs to INTEGER_CSTs.
8135
8136 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8137
8138         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
8139         m68hc11_print_operand_address.
8140
8141 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8142
8143         * builtins.c (rewrite_call_expr): Move code to...
8144         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
8145         (rewrite_call_expr_array): New function.
8146         (fold_builtin_sprintf_chk_1): New function.
8147         (fold_builtin_sprintf_chk): Call it.
8148         (gimple_fold_builtin_sprintf_chk): Likewise.
8149         (fold_builtin_snprintf_chk_1): New function.
8150         (fold_builtin_snprintf_chk): Call it.
8151         (gimple_fold_builtin_snprintf_chk): Likewise.
8152         (gimple_rewrite_call_expr): Delete.
8153
8154 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8155
8156         * config.host: Update copyright year.
8157
8158 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8159
8160         * config.host (host_lto_plugin_soname): New shell variable.
8161         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
8162         * config.in: Regenerate.
8163         * configure: Regenerate.
8164         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
8165         LTO plugin shared library.
8166
8167 2010-10-07  Richard Henderson  <rth@redhat.com>
8168
8169         * target.h (enum unwind_info_type): Move ...
8170         * coretypes.h: ... here.
8171
8172 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
8173
8174         * doc/objc.texi (Fast enumeration protocol): Mention that
8175         'unsigned int' can also be used instead of 'unsigned long' in
8176         countByEnumeratingWithState:objects:count:.
8177
8178 2010-10-07  Martin Jambor  <mjambor@suse.cz>
8179
8180         * tree-sra.c (struct access): New field grp_assignment_write.
8181         (dump_access): Dump grp_assignment_write.
8182         (build_accesses_from_assign): Set grp_assignment_write.
8183         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
8184         (mark_read_status): Renamed to mark_rw_status, individual values
8185         renamed too.
8186         (analyze_access_subtree): Changed type of mark_write to
8187         mark_read_status.  Fixed propagating of mark_read and
8188         mark_write.  Changed benefit estimate.  Updated comment.
8189
8190 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8191
8192         PR Tree-Vect/45847
8193         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
8194         check for vectype_out returned by get_vectype_for_scalar_type().
8195
8196 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8197
8198         PR target/45805
8199         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
8200         constraint, add register specifier in instruction template.
8201         (neon_vec_pack_trunc_<mode>): Likewise.
8202         (neon_vec_<US>mult_<mode>): Add register specifier to
8203         instruction template.
8204
8205 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8206
8207         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
8208         cygwin2.o.
8209         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
8210         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
8211         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
8212         (cygwin2.o): Likewise.
8213         * config/i386/cygwin1.c: Delete file.
8214         * config/i386/cygwin2.c: Likewise.
8215         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
8216         make all {%!mno-cygwin} ones unconditional.
8217         (STARTFILE_SPEC): Likewise.
8218         (REAL_LIBGCC_SPEC): Likewise.
8219         (LIB_SPEC): Likewise.
8220         (CXX_WRAP_SPEC): Likewise.
8221         (LINK_SPEC): Likewise.
8222         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
8223         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
8224         (cygwin_gplusplus_include_dir): Delete now-unused array.
8225         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
8226         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
8227         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
8228         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
8229         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
8230         (cygwin_local_include_dir): Delete now-unused array.
8231         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
8232         (cygwin_cross_include_dir): Delete now-unused array.
8233         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
8234         (cygwin_tool_include_dir): Delete now-unused array.
8235         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
8236         (cygwin_standard_include_dir): Delete now-unused array.
8237         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
8238         (GEN_CVT_ARRAY): Delete now-unused macro definition.
8239         (cvt_to_mingw): Delete now-unused array.
8240         (mingw_scan): Remove prototype of deleted function.
8241         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
8242         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
8243         * doc/invoke.texi (-mcygwin): Don't document removed option.
8244         (-mno-cygwin): Likewise.
8245
8246 2010-10-07  Richard Guenther  <rguenther@suse.de>
8247
8248         * machmode.h (mode_for_vector): Declare.
8249         * stor-layout.c (mode_for_vector): New function, split out from ...
8250         (layout_type): ... here.
8251         * tree-vectorizer.h (current_vector_size): Declare.
8252         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
8253         mask vector type is available.
8254         (get_vectype_for_scalar_type): Rename to ...
8255         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
8256         size argument.
8257         (get_vectype_for_scalar_type): New wrapper around
8258         get_vectype_for_scalar_type_and_size using current_vector_size.
8259         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
8260         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
8261         of vect_analyze_loop here.
8262         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
8263         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
8264         to autodetect.
8265         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
8266         V8SF to V8SI conversion builtin.
8267
8268 2010-10-07  Richard Guenther  <rguenther@suse.de>
8269
8270         * target.def (autovectorize_vector_sizes): New target hook.
8271         * targhooks.c (default_autovectorize_vector_sizes): New function.
8272         * targhooks.h (default_autovectorize_vector_sizes): Declare.
8273         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
8274         Document.
8275         * doc/tm.texi: Update.
8276         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
8277         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8278
8279 2010-10-07  Richard Guenther  <rguenther@suse.de>
8280
8281         * target.def (units_per_simd_word): Rename to ...
8282         (preferred_simd_mode): ... this.  Return mode instead of size.
8283         * targhooks.c (default_units_per_simd_word): Rename to ...
8284         (default_preferred_simd_mode): ... this.  Return word_mode.
8285         * targhooks.h (default_preferred_simd_mode): Declare.
8286         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
8287         (arm_preferred_simd_mode): ... this.  Re-implement.
8288         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
8289         (ix86_preferred_simd_mode): ... this.  Re-implement.
8290         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
8291         (sparc_preferred_simd_mode): ... this.  Re-implement.
8292         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
8293         (mips_preferred_simd_mode): ... this.  Re-implement.
8294         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
8295         (rs6000_preferred_simd_mode): ... this.  Re-implement.
8296         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
8297         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
8298         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
8299         * doc/tm.texi: Update.
8300
8301 2010-10-07  Richard Guenther  <rguenther@suse.de>
8302
8303         PR middle-end/45869
8304         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
8305         of pointers.
8306
8307 2010-10-07  Alan Modra  <amodra@gmail.com>
8308
8309         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
8310         rather than sign extension by hand.
8311
8312 2010-10-07  Jan Hubicka  <jh@suse.cz>
8313
8314         PR middle-end/45926
8315         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
8316
8317 2010-10-07  Richard Guenther  <rguenther@suse.de>
8318
8319         PR bootstrap/45914
8320         * configure.ac: Fix typo.
8321         * configure: Regenerated.
8322
8323 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8324
8325         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
8326         define_builtin_std where it's unnecessary.
8327         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
8328
8329 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
8330
8331         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
8332         * doc/tm.texi.in: Regenerate.
8333         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
8334         * targhooks.c (default_class_likely_spilled_p): Don't use the
8335         CLASS_LIKELY_SPILLED_P macro.
8336
8337         * config/arm/arm.md: Update comment.
8338
8339 2010-10-06  Jan Hubicka  <jh@suse.cz>
8340
8341         * ipa.c (cgraph_remove_unreachable_nodes): External references can
8342         always be removed.
8343         (cgraph_externally_visible_p): We can not bring local comdats that
8344         are known to linker; fix handling of internal visibility.
8345         (function_and_variable_visibility): Likewise.
8346
8347 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8348
8349         PR rtl-optimization/45394
8350         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
8351         (struct rtx_subst_pair): Remove AFTER field.
8352         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
8353         (propagate_for_debug): Remove MOVE parameter and adjust.
8354         (try_combine): In the special case where I2 is a PARALLEL, combine only
8355         destinations of SETs and set I2SRC to the I2 source.
8356         Adjust calls to propagate_for_debug throughout.
8357         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
8358         insns.
8359
8360 2010-10-06  Olivier Hainque  <hainque@adacore.com>
8361
8362         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
8363         switch on insn codes as sequence of ifs.
8364
8365 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
8366
8367         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
8368         be UI_NONE for picochip.
8369         (picochip_option_override): Do not disable exception flags.
8370         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
8371         Declare.
8372
8373 2010-10-06  Richard Guenther  <rguenther@suse.de>
8374
8375         * Makefile.in (regmove.o): Depend on $(TARGET_H).
8376
8377 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8378
8379         Implemented fast enumeration for Objective-C.
8380         * c-parser.c (objc_could_be_foreach_context): New.
8381         (c_lex_one_token): Recognize RID_IN keyword in a potential
8382         Objective-C foreach context.
8383         (c_parser_declaration_or_fndef): Added parameter.  Accept
8384         Objective-C RID_IN keyword as terminating a declaration; in that
8385         case, return the declaration in the new parameter.
8386         (c_parser_extenral_declaration): Updated calls to
8387         c_parser_declaration_or_fndef.
8388         (c_parser_declaration_or_fndef): Same change.
8389         (c_parser_compound_statement_nostart): Same change.
8390         (c_parser_label): Same change.
8391         (c_parser_objc_methodprotolist): Same change.
8392         (c_parser_omp_for_loop): Same change.
8393         (c_parser_for_statement): Detect and parse Objective-C foreach
8394         statements.
8395         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
8396         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
8397         fast enumeration parsing code to turn off the c99 error but still
8398         perform checks on the loop declarations.
8399         * c-tree.h (check_for_loop_decls): Updated declaration.
8400         * doc/objc.texi: Document fast enumeration.
8401
8402 2010-10-06  Nick Clifton  <nickc@redhat.com>
8403
8404         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
8405         (MDR_REGNUM): Define.
8406         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
8407         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
8408         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
8409         (REGISTER_NAMES): Add MDR.
8410         (DWARF2_DEBUGGING_INFO): Define to 1.
8411         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8412         (F): New function.  Sets RTX_FRAME_RELATED_P.
8413         (mn10300_gen_multiple_store): Use F.
8414         (expand_prologue): Use F.  Use gen_movsf() to push floating
8415         point registers.
8416         (expand_epilogue): Use gen_movsf() to pop floating point registers.
8417         (mn10300_option_override): Disable combine stack adjust pass.
8418
8419 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
8420
8421         PR target/45901
8422         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
8423         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
8424
8425 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
8426
8427         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
8428         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
8429         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
8430         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
8431         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
8432         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
8433         BUILT_IN_TOUPPER): Mark as leaf.
8434
8435         PR middle-end/45838
8436         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8437         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8438         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8439         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8440         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
8441         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
8442         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
8443
8444 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
8445
8446         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
8447         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8448         (m68hc11_class_likely_spilled_p): New function.
8449
8450 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
8451
8452         * c-parser.c (c_parser_objc_method_definition): Updated comment.
8453
8454 2010-10-05  Jan Hubicka  <jh@suse.cz>
8455
8456         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
8457         Document.
8458         * opts.c (decode_options): Handle lto partitions.
8459         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
8460         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
8461
8462 2010-10-05  Jan Hubicka  <jh@suse.cz>
8463
8464         * cgraphunit.c (assemble_function): Output thunks and aliases before
8465         the function itself.
8466
8467 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
8468
8469         * config/picochip/picochip.c (picochip_option_override): Disable
8470         exception flags for picochip.
8471
8472 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
8473
8474         * opts-common.c (handle_option, handle_generated_option,
8475         read_cmdline_option, set_option): Add diagnostic_context
8476         parameter.  Update calls among these functions.
8477         (set_option): Don't use global_dc.
8478         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
8479         (decode_options): Pass global_dc to enable_warning_as_error.
8480         (common_handle_option): Pass global_dc to enable_warning_as_error.
8481         (enable_warning_as_error): Add diagnostic_context parameter.
8482         Document parameters.  Don't use global_dc.  Pass
8483         diagnostic_context parameter to handle_generated_option.
8484         * opts.h (set_option, handle_option, handle_generated_option,
8485         read_cmdline_option, enable_warning_as_error): Add
8486         diagnostic_context parameter.
8487         * Makefile.in (lto-opts.o): Update dependencies.
8488         * coretypes.h (struct diagnostic_context, diagnostic_context):
8489         Declare here.
8490         * diagnostic.h (diagnostic_context): Don't declare typedef here.
8491         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
8492         * langhooks-def.h (struct diagnostic_context): Don't declare here.
8493         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
8494         using diagnostic_context typedef.
8495         * langhooks.c (lhd_initialize_diagnostics): Declare using
8496         diagnostic_context typedef.
8497         * langhooks.h (struct diagnostic_context): Don't declare here.
8498         (initialize_diagnostics, print_error_function): Declare using
8499         diagnostic_context typedef.
8500         * lto-opts.c: Include diagnostic.h.
8501         (lto_reissue_options): Pass global_dc to set_option.  Pass
8502         DK_UNSPECIFIED not 0.
8503         * plugin.c (plugins_internal_error_function): Declare using
8504         diagnostic_context typedef.
8505         * plugin.h (struct diagnostic_context): Don't declare here.
8506         (plugins_internal_error_function): Declare using
8507         diagnostic_context typedef.
8508
8509 2010-10-05  Olivier Hainque  <hainque@adacore.com>
8510             Nicolas Roche  <roche@adacore.com>
8511
8512         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
8513         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
8514
8515 2010-10-05  Ira Rosen  <irar@il.ibm.com>
8516
8517         PR tree-optimization/45752
8518         * tree-vect-slp.c (vect_get_mask_element): Remove static
8519         variables, make them function arguments.
8520         (vect_transform_slp_perm_load): Pass new arguments to
8521         vect_get_mask_element.
8522
8523 2010-10-05  Richard Guenther  <rguenther@suse.de>
8524
8525         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
8526         (gimple_mod_pow2): Likewise.
8527         (gimple_mod_subtract): Likewise.
8528         (gimple_ic): Likewise.
8529         (gimple_stringop_fixed_value): Likewise.
8530         * tree-profile.c (tree_init_edge_profiler): Mark profile
8531         functions nothrow and leaf.
8532         (add_abnormal_goto_call_edges): Remove.
8533         (tree_gen_edge_profiler): Work on SSA form.
8534         (tree_gen_ic_profiler): Likewise.  Simplify.
8535         (do_tree_profiling): Update SSA form.
8536         (pass_tree_profile): Remove.
8537         (do_tree_profiling): Likewise.
8538         (gate_tree_profile_ipa): New function.
8539         (pass_ipa_tree_profile): New.
8540         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
8541         state of instrumented functions.
8542         * passes.c (init_optimization_passes): Remove early non-SSA
8543         inlining.  Move profiling after early optimizations.
8544         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
8545         (pass_ipa_early_inline): Likewise.
8546         * tree-pass.h (pass_ipa_early_inline): Remove.
8547         (pass_tree_profile): Likewise.
8548         (pass_ipa_tree_profile): Declare.
8549
8550 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8551             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
8552
8553         * config/s390/s390.c (z196_cost): New.
8554         (s390_handle_arch_option): Add -march=z196.
8555         (s390_option_override): Use the new cost function and use the z10
8556         defaults also for z196.
8557         (legitimate_reload_constant_p): Adjust comment.
8558         (legitimate_reload_fp_constant_p): New function.
8559         (s390_preferred_reload_class): Distingiush between FP and Int constants.
8560         (preferred_la_operand_p): Avoid la with index on z196.
8561         (s390_adjust_priority): Trigger also for z196.
8562         (s390_issue_rate): Issue rate for z196 is 3.
8563         (s390_z10_fix_long_loop_prediction): Rename to ...
8564         (s390_fix_long_loop_prediction): ... this.
8565         (s390_reorg): Apply the z10 adjustments also for z196.
8566         (s390_loop_unroll_adjust): Do this also for z196.
8567         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
8568         (enum processor_flags): Add PF_Z196.
8569         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
8570         (TARGET_CPU_Z196, TARGET_Z196): New macros.
8571         * config.gcc: Enable z196 for --with-arch.
8572         * config/s390/2817.md: New file.
8573         * config/s390/2084.md: New type for multiply and add.
8574         * config/s390/2097.md: Likewise.
8575         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
8576         (UNSPECV_ATOMIC_OP): New constants.
8577         (fmadddf, fmaddsf): New values for type attribute.
8578         (z196prop): New insn attribute.
8579         (cpu, cpu_facility): Add z196.
8580         (ATOMIC_Z196): New code iterator.
8581         (noxa): New code attribute.
8582         (gk): New mode attribute.
8583         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
8584         Support load zero for fp constants.
8585         (fixuns_truncdddi2, fixuns_trunctddi2)
8586         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
8587         for z196.
8588         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
8589         (popcounthi2, popcountqi2): New expander.
8590         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
8591         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
8592         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
8593         insn definition.
8594         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
8595         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
8596         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
8597         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
8598         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
8599         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
8600         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
8601         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
8602         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
8603         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
8604         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
8605         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
8606         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
8607         Support new z196 instructions.
8608
8609 2010-10-05  Richard Guenther  <rguenther@suse.de>
8610
8611         PR middle-end/45877
8612         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
8613         case where gimplification optimizes away the stmt.
8614
8615 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
8616
8617         PR debug/45849
8618         * var-tracking.c (strip_pointer_flags): New function.
8619         (emit_note_insn_var_location): If rtx_equal_p check failed,
8620         retry on locations simplified with simplify_replace_fn_rtx
8621         and strip_pointer_flags as its callback.
8622
8623 2010-10-04  Jan Hubicka  <jh@suse.cz>
8624
8625         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
8626         (can_refer_decl_in_current_unit_p): ... this one; reverse return
8627         value; handle comdats too.
8628         (canonicalize_constructor_val): Use it; handle function_decls
8629         correctly.
8630         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8631         * gimple.c (get_base_address): Accept all kinds of decls.
8632
8633 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8634
8635         * flags.h (g_switch_value, g_switch_set): Remove.
8636         * opts.c (g_switch_value, g_switch_set): Remove.
8637         * config/g.opt (G): Add Var(g_switch_value).
8638         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
8639         (alpha_option_override): Check global_options_set.x_g_switch_value
8640         instead of g_switch_set.
8641         (alpha_in_small_data_p): Remove cast in comparison with
8642         g_switch_value.
8643         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
8644         g_switch_value to unsigned HOST_WIDE_INT.
8645         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
8646         with g_switch_value.
8647         (frv_handle_option): Don't handle -G here.
8648         (frv_option_override): Check global_options_set.x_g_switch_value
8649         instead of g_switch_set.  Don't modify g_switch_set.
8650         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
8651         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
8652         g_switch_value to unsigned HOST_WIDE_INT.
8653         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
8654         (ia64_option_override): Check global_options_set.x_g_switch_value
8655         instead of g_switch_set.
8656         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
8657         Remove.
8658         (lm32_in_small_data_p): Remove cast in comparison with
8659         g_switch_value.
8660         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
8661         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
8662         HOST_WIDE_INT.
8663         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
8664         (m32r_init): Check global_options_set.x_g_switch_value instead of
8665         g_switch_set.
8666         (m32r_in_small_data_p): Remove cast in comparison with
8667         g_switch_value.
8668         (m32r_file_start): Format g_switch_value with %d.
8669         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
8670         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
8671         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
8672         handle -G here.
8673         (microblaze_option_override): Check
8674         global_options_set.x_g_switch_value instead of g_switch_set.
8675         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
8676         (mips_option_override): Check global_options_set.x_g_switch_value
8677         instead of g_switch_set.
8678         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
8679         (rs6000_file_start): Format g_switch_value with %d.
8680         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
8681         comparisons with g_switch_value.
8682         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8683         global_options_set.x_g_switch_value instead of g_switch_set.
8684         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8685         global_options_set.x_g_switch_value instead of g_switch_set.
8686         * config/score/score.c (score_handle_option): Don't handle -G here.
8687         * config/score/score3.c (score3_option_override): Check
8688         global_options_set.x_g_switch_value instead of g_switch_set.
8689         * config/score/score7.c (score7_option_override): Check
8690         global_options_set.x_g_switch_value instead of g_switch_set.
8691
8692 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8693
8694         * common.opt (fira-coalesce): Remove.
8695
8696         * doc/invoke.texi (flag_ira_coalesce): Remove.
8697
8698         * ira-color.c (allocno_coalesced_p): Move before
8699         copy_freq_compare_func.
8700         processed_coalesced_allocno_bitmap): Ditto.
8701         (update_conflict_hard_regno_costs): Don't use
8702         ALLOCNO_FIRST_COALESCED_ALLOCNO.
8703         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
8704         (assign_hard_reg): Assume no coalesced allocnos.
8705         (get_coalesced_allocnos_attributes): Remove.
8706         (bucket_allocno_compare_func): Assume no coalesced allocnos.
8707         (push_allocno_to_stack): Ditto.
8708         (remove_allocno_from_bucket_and_push): Use
8709         ira_print_expanded_allocno instead of print_coalesced_allocno.
8710         (push_allocnos_to_stack): Assume uncoalesced allocnos.
8711         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
8712         all_conflicting_hard_regs.
8713         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
8714         (setup_allocno_left_conflicts_size): Ditto.
8715         (put_allocno_into_bucket): Ditto.
8716         (copy_freq_compare_func): Remove.
8717         (copy_freq_compare_func, merge_allocnos): Move before
8718         coalesced_pseudo_reg_freq_compare.
8719         coalesced_allocno_conflict_p): Ditto.
8720         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
8721         parameter.  Assume it true.
8722         (color_allocnos): Assume uncoalesced allocnos.  Use
8723         ira_print_expanded_allocno instead of print_coalesced_allocno.
8724         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
8725         parameter.
8726
8727         * ira.c: Remove comment about coalescing.
8728
8729 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8730
8731         * config/mips/mips.h (target_flags_explicit): Declare for
8732         GENERATOR_FILE.
8733
8734 2010-10-04  Andi Kleen  <ak@linux.intel.com>
8735
8736         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
8737         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
8738
8739 2010-10-04  Matthias Klose  <doko@ubuntu.com>
8740
8741         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
8742         multilib osdirname if it exists.
8743         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
8744
8745 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
8746
8747         PR middle-end/45876
8748         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
8749         arg0's type or its unsigned counterpart as utype.  Convert
8750         arg1 to utype unconditionally.
8751
8752 2010-10-04  Julian Brown  <julian@codesourcery.com>
8753
8754         * expr.c (expand_assignment): Add assertion to prevent emitting
8755         null rtx for movmisalign pattern.
8756         (expand_expr_real_1): Likewise.
8757         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
8758         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
8759         (arm_vector_alignment_reachable): New.
8760         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
8761         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
8762         (arm_print_operand): Include alignment qualifier in %A.
8763         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
8764         (movmisalign<mode>): New expander.
8765         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
8766         insn patterns.
8767
8768 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8769
8770         * optc-gen.awk: Define global_options_set.  Don't define
8771         target_flags_explicit.
8772         * opth-gen.awk: Declare global_options_set.  Define
8773         target_flags_explicit as macro.
8774         * opts-common.c (handle_option): Take opts_set and generated_p
8775         parameters.
8776         (handle_generated_option, read_cmdline_option, set_option): Take
8777         opts_set parameter.
8778         (set_option): Use opts_set instead of hardcoding target_flags and
8779         target_flags_explicit.
8780         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
8781         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
8782         flag_value_profile_transformations_set, flag_peel_loops_set,
8783         flag_branch_probabilities_set, flag_inline_functions_set,
8784         flag_ipa_cp_set, flag_ipa_cp_clone_set,
8785         flag_predictive_commoning_set, flag_unswitch_loops_set,
8786         flag_gcse_after_reload_set): Remove.
8787         (common_handle_option, lang_handle_option, target_handle_option):
8788         Take opts_set parameter.  Assert that it is &global_options_set.
8789         (common_handle_option): Don't set _set variables.  Check opts_set
8790         instead of such variables.
8791         (enable_warning_as_error): Pass &global_options_set to
8792         handle_generated_option.
8793         * opts.h (cl_option_handler_func.handler, set_option,
8794         handle_option, handle_generated_option, read_cmdline_option): Add
8795         opts_set parameters.
8796         (handle_option): Add generated_p parameter.
8797         * config/i386/i386.c (ix86_function_specific_save,
8798         ix86_function_specific_restore): Updat for renaming of
8799         target_flags_explicit field.
8800         * config/i386/i386.opt (target_flags_explicit): Rename to
8801         ix86_target_flags_explicit.
8802         * config/ia64/ia64.c (ia64_override_options_after_change): Check
8803         global_options_set.x_flag_selective_scheduling and
8804         global_options_set.x_flag_selective_scheduling2, not
8805         sel_sched_switch_set.
8806         * flags.h (sel_sched_switch_set,
8807         flag_speculative_prefetching_set): Remove.
8808         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
8809         that it is &global_options_set.
8810         (process_command): Pass &global_options_set to read_cmdline_option.
8811         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
8812         set_option.
8813         * toplev.c (target_flags_explicit): Remove.
8814
8815 2010-10-04  Jan Hubicka  <jh@suse.cz>
8816
8817         PR middle-end/45871
8818         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
8819         use get_ref_base_and_offset to handle references.
8820         (fold_const_aggregate_ref): Update.
8821
8822 2010-10-04  Martin Jambor  <mjambor@suse.cz>
8823
8824         PR tree-optimization/45572
8825         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
8826         ipa_check_create_node_params.
8827         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
8828
8829 2010-10-04  Yao Qi  <yao@codesourcery.com>
8830
8831         * doc/passes.texi: Clean up.
8832
8833 2010-10-03  Ian Lance Taylor  <iant@google.com>
8834
8835         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
8836         referring to a field using a typedef name.
8837         (find_anonymous_field_with_type): New static function.
8838         (convert_to_anonymous_field): New static function.
8839         (convert_for_assignment): If -fplan9-extensions, permit converting
8840         pointer to struct to pointer to anonymous field.
8841         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
8842         (is_duplicate_field): New static function.
8843         (detect_field_duplicates_hash): If -fplan9-extensions, check for
8844         typedef names duplicating field names.
8845         (detect_field_duplicates): Likewise.
8846         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
8847         (C Dialect Options): Document -fplan9-extensions.
8848         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
8849
8850 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
8851
8852         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
8853         revision 164914.
8854         (vect_create_data_ref_ptr): Likewise.
8855         * tree-vect-stmts.c (vectorizable_store): Likewise.
8856         (perm_mask_for_reverse): Likewise.
8857         (reverse_vec_elements): Likewise.
8858         (vectorizable_load): Likewise.
8859
8860 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8861
8862         * cppbuiltin.c: New file.
8863         * cppbuiltin.h: New file.
8864         * Makefile.in: Take into account cppbuiltin.{h,c}.
8865
8866 2010-10-03  Andi Kleen  <ak@linux.intel.com>
8867
8868         * lto-cgraph.c (input_cgraph): Check for missing sections.
8869
8870 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
8871
8872         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
8873         to nonimmediate_operand.  Force operand 2 to register when allowed.
8874         (*<shiftrt_insn><mode>3_mask): Ditto.
8875         (*<rotate_insn><mode>3_mask): Ditto.
8876
8877 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8878
8879         PR tree-optimization/45720
8880         PR tree-optimization/45764
8881         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8882         Don't accept backwards consecutive accesses.
8883         (vect_create_data_ref_ptr): Disallow negative steps.
8884
8885         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
8886         (perm_mask_for_reverse): Removed.
8887         (reverse_vec_elements): Likewise.
8888         (vectorizable_load): Don't handle negative steps.
8889
8890 2010-10-02  Jan Hubicka  <jh@suse.cz>
8891
8892         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
8893         call destination is known.
8894
8895 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8896
8897         PR target/45820
8898         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
8899         earlier.
8900
8901 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8902
8903         * doc/install.texi (Configuration): Document build_configargs,
8904         host_configargs, target_configargs.
8905
8906 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
8907
8908         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
8909         (*<shiftrt_insn><mode>3_mask): Ditto.
8910         (*<rotate_insn><mode>3_mask): Ditto.
8911
8912 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
8913
8914         PR tree-optimization/44716
8915         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
8916         (HOT_TEXT_SECTION_NAME): Define.
8917
8918 2010-10-01  Nick Clifton  <nickc@redhat.com>
8919
8920         * common.opt: Add -fcombine-stack-adjustments.
8921         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
8922         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
8923         flag_combine_stack_adjustments.
8924         * doc/invoke.texi: Document the new option.
8925
8926 2010-10-01  Richard Guenther  <rguenther@suse.de>
8927
8928         PR tree-optimization/45854
8929         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
8930
8931 2010-10-01  Anthony Green  <green@moxielogic.com>
8932
8933         * config.gcc: Fix moxie-*-rtems* configuration.
8934
8935 2010-10-01  Richard Guenther  <rguenther@suse.de>
8936
8937         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
8938         (gen_decl_die): Likewise.
8939
8940 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8941
8942         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
8943         to the function code for SPU MD builtins.
8944         (spu_expand_builtin): Update.
8945         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
8946
8947 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8948
8949         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
8950         sjlj_except_unwind_info.
8951
8952 2010-10-01  Tristan Gingold  <gingold@adacore.com>
8953
8954         * configure.ac: Define the nop insn for avr*-*-*
8955         * configure: Regenerate.
8956
8957 2010-10-01  Alan Modra  <amodra@gmail.com>
8958
8959         PR target/45807
8960         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
8961         extend toc_restore_insn.
8962
8963 2010-09-30  Richard Guenther  <rguenther@suse.de>
8964
8965         PR tree-optimization/43959
8966         * function.c (gimplify_parameters): Use create_tmp_reg instead of
8967         create_tmp_var.
8968
8969 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8970
8971         * config/sh/sh.c (sh_expand_prologue): Set
8972         current_function_static_stack_size.
8973
8974 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8975
8976         * configure.ac: Check for Solaris 8 ld with .hidden support.
8977         * configure: Regenerate.
8978
8979 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8980
8981         PR middle-end/45758
8982         * graphite.c (graphite_initialize): Call scev_reset.
8983
8984 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8985
8986         * sese.h (scev_analyzable_p): Return false for real or floating
8987         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
8988
8989 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8990
8991         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
8992         and ps.
8993         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
8994         domain.
8995         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
8996         Do not allocate ub_expr, it is passed in initialized.
8997
8998 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8999
9000         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
9001         (build_cloog_prog): Dump CLooG input file when
9002         flag_graphite_dump_cloog is set.  This is disabled on trunk.
9003         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
9004
9005 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9006
9007         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
9008         verify_dominators for CDI_POST_DOMINATORS.
9009         * sese.h: Remove comment about CDI_POST_DOMINATORS.
9010         (recompute_all_dominators): Remove call to free_dominance_info
9011         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
9012         for CDI_POST_DOMINATORS.
9013
9014 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9015
9016         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
9017         over pbb_dim_iter_domain.
9018
9019 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9020
9021         * graphite-flattening.c: Fix comments.
9022
9023 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9024
9025         * Makefile.in (OBJS-common): Add graphite-flattening.o.
9026         (graphite-flattening.o): New rule.
9027         * common.opt (floop-flatten): New flag.
9028         * doc/invoke.texi (-floop-flatten): Documented.
9029         * graphite-flattening.c: New.
9030         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
9031         * graphite-poly.h (flatten_all_loops): Declared.
9032         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
9033         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
9034         is set, also set flag_graphite.
9035
9036 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9037
9038         * graphite-poly.c (cloog_checksum): New.
9039         * graphite-poly.h (cloog_checksum): Declared.
9040
9041 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9042
9043         * graphite-poly.c (pbb_number_of_iterations): Removed.
9044         (pbb_number_of_iterations_at_time): Correctly compute the number
9045         of iterations in the transformed loop.
9046         * graphite-poly.h (pbb_number_of_iterations): Removed.
9047
9048 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9049
9050         * graphite-poly.h (lst_update_scattering_seq): Removed.
9051         (lst_update_scattering): Correctly handle outermost loop dewey
9052         renumbering.
9053
9054 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9055
9056         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
9057         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
9058         * graphite-poly.h (lst_niter_for_loop): New.
9059
9060 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9061
9062         * graphite-poly.c (apply_poly_transforms): Do not abort when the
9063         transform read from disk is not legal.  Call fatal_error instead.
9064
9065 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9066
9067         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
9068         (print_scop_header): Removed.  Inlined in the only call place...
9069         (print_scop): ... here.
9070
9071 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9072
9073         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
9074
9075 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9076
9077         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
9078
9079 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9080
9081         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
9082         (dot_deps_stmt): Same.
9083         * graphite-poly.c (dot_lst): Same.
9084
9085 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9086
9087         * graphite-blocking.c (scop_do_strip_mine): Do not call
9088         graphite_legal_transform.
9089         (scop_do_block): Same.
9090
9091 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9092
9093         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
9094         description.
9095
9096 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9097
9098         * tree-scalar-evolution.c (instantiate_array_ref): New.
9099         (instantiate_scev_r): Also handle ARRAY_REFs.
9100
9101 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9102
9103         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9104         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
9105         RESULT_DECL, and FIELD_DECL.  Return false for an
9106         SSA_NAME_IS_DEFAULT_DEF.
9107         (compute_scalar_evolution_in_loop): Do not further analyze the
9108         scalar evolution when no_evolution_in_loop_p returns true.
9109
9110 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9111
9112         * tree-chrec.h (evolution_function_is_affine_p): Do not check
9113         whether CHREC_LEFT is invariant.  A function is affine when
9114         CHREC_RIGHT is invariant.
9115
9116 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9117
9118         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
9119         is_gimple_reg.
9120         (rewrite_degenerate_phi): Same.
9121         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
9122
9123 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9124
9125         * graphite-scop-detection.c (graphite_can_represent_scev,
9126         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
9127         graphite_can_represent_loop): Remove outermost_loop.
9128
9129 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9130
9131         PR middle-end/45229
9132         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
9133         handle GIMPLE_CALLs with no LHS.
9134
9135 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9136
9137         * graphite-poly.c (init_graphite_out_file): New.
9138         (init_graphite_in_file): New.
9139         (apply_poly_transforms): Updated to enable reading and writing of
9140         multiple scop files.
9141
9142 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
9143
9144         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
9145         redundant checks.
9146
9147 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9148
9149         * graphite-clast-to-gimple.c (precision_for_value): Adjust
9150         computation of precision by 1.
9151
9152 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9153
9154         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
9155         (openscop_read_polyhedron_matrix): New.
9156         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
9157         (openscop_read_N_int): Same.
9158         * graphite-poly.c (openscop_read_N_int): New.
9159         (openscop_read_one_int): New.
9160         (openscop_read_N_string): New.
9161         (openscop_read_one_string): New.
9162         (openscop_read_powerset_matrix): New.
9163         (graphite_read_transforms): Remove.
9164         (graphite_read_scatt): New.
9165         (graphite_read_scop_file): New.
9166         (apply_poly_transforms): Updated to call graphite_read_scop_file.
9167
9168 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9169
9170         * graphite-poly.c: Change include order.
9171
9172 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9173
9174         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
9175         (cloog_matrix_nrows): New.
9176
9177 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9178
9179         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
9180         from matrix lines.
9181         * graphite-poly.c (openscop_print_scattering_function_1): Same.
9182         (print_scattering_function_1): Same.
9183         (openscop_print_pbb_domain): Same.
9184         (openscop_print_scop_context): Same.
9185         (print_scop_context): Same.
9186
9187 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
9188
9189         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
9190         (openscop_print_pdr_polyhedron): Print pph.
9191
9192 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9193
9194         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
9195         priority signed types.
9196
9197 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9198
9199         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
9200         the call to lang_hooks.types.type_for_size.  Call
9201         build_nonstandard_integer_type.
9202
9203 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9204
9205         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
9206         (openscop_print_polyhedron_matrix): New.
9207         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
9208         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
9209         (openscop_print_pdr_powerset): New.
9210         (openscop_print_powerset_matrix): New.
9211         (openscop_print_scattering_function_1): New.
9212         (print_scattering_function): Add support for scattering names and
9213         OpenScop format.
9214         (graphite_write_transforms): Remove.
9215         (print_pdr_access_layout): Updated to support OpenScop format.
9216         (print_pdr): Same.
9217         (openscop_print_pbb_domain): New.
9218         (print_pbb_body): Added a parameter to allow indicating that pbb_body
9219         is not provided.
9220         (print_pbb): Updated to call the new print_pbb_body.
9221         (openscop_print_scop_context): New.
9222         (print_scop_header): New.
9223         (print_scop): Updated to call print_scop_header.
9224         * graphite-poly.h: Document OpenScop format.
9225
9226 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
9227
9228         * config/cris/m32c.c (cris_memory_move_cost): New.
9229         (cris_register_move_cost): Make static. Change arguments type from
9230         enum reg_class to reg_class_t.
9231         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9232         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9233         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
9234
9235 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9236
9237         PR target/45843
9238         * config/i386/i386.c (ix86_gimplify_va_arg): Use
9239         INTVAL (XEXP (slot, 1)) as prev_size.
9240
9241 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9242
9243         PR target/45837
9244         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
9245         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
9246         defined.
9247         * config/rs6000/option-defaults.h (toplevel): Change #if
9248         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
9249         global option changes.
9250
9251 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9252
9253         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
9254
9255         PR tree-optimization/31261
9256         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
9257         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
9258
9259 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9260
9261         PR bootstrap/45796
9262         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
9263         special-casing for generators and turn into ...
9264         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
9265         rule, for better error messages in case of toplevel dependency errors.
9266         (genprog): Add hooks, rename to ...
9267         (genprogerr): ... this, and let genprog also contain check,
9268         checksum, condmd.
9269         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
9270         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
9271         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
9272
9273 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
9274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9275
9276         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
9277         for GMP, MPFR and MPC.
9278
9279 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9280
9281         * config/sparc/sparc.opt (mimpure-text): Move ...
9282         * config/sol2.opt: ... here.  Correct description.
9283         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
9284         * doc/invoke.texi (Option Summary, SPARC Options): Move
9285         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
9286         (Option Summary, Solaris 2 Options): ... here.
9287         (Submodel Options, Solaris 2 Options): New menu entry.
9288         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
9289         (Solaris 2 Options): ... here.
9290
9291 2010-09-30  Michael Eager  <eager@eagercon.com>
9292
9293         * extend.texi (interrupt_handler): Add MicroBlaze to list.
9294         (save_volatiles): Describe option for MicroBlaze.
9295         * invoke.texi: Add MicroBlaze Options.
9296         * contrib.texi: Add acknowledgment.
9297         * md.texi: Add MicroBlaze d and z constraints.
9298         * install.texi: Add microblaze-*-elf.
9299         * configure.ac: Add microblaze-*-* to target list.
9300         * configure: Regenerate.
9301         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
9302         * config/microblaze/microblaze-protos.h: New.
9303         * config/microblaze/crti.s: New.
9304         * config/microblaze/predicates.md: New.
9305         * config/microblaze/linux.h: New.
9306         * config/microblaze/microblaze.md: New.
9307         * config/microblaze/constraints.md: New.
9308         * config/microblaze/crtn.s: New.
9309         * config/microblaze/microblaze.opt: New.
9310         * config/microblaze/microblaze-c.c: New.
9311         * config/microblaze/t-microblaze: New.
9312         * config/microblaze/microblaze.c: New.
9313         * config/microblaze/microblaze.h: New.
9314
9315 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
9316
9317         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
9318         parse @optional/@required and set the flags as appropriate.
9319
9320 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
9321
9322         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
9323
9324 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
9325
9326         * opt-functions.awk (static_var): Update comment.
9327         (var_ref): Return offsetof expression or -1, not variable address.
9328         * optc-gen.awk: Generate structure field initializers instead of
9329         static variables.  Expect -1 for missing variables instead of null
9330         pointer.  Add gcc_options parameters to generated functions.
9331         * opth-gen.awk: Generate structure fields for static variables.
9332         Add gcc_options parameters to generated functions.
9333         * common.opt (optimize, optimize_size): Add variables.
9334         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
9335         &global_options to cl_target_option_restore.
9336         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
9337         &global_options to cl_optimization_restore, cl_target_option_save
9338         and cl_target_option_restore.
9339         (ix86_set_current_function): Pass &global_options to
9340         cl_target_option_restore.
9341         * config/pdp11/pdp11.h (optimize): Remove.
9342         * config/rs6000/rs6000.h (optimize): Remove.
9343         * config/sh/sh.h (optimize): Remove.
9344         * config/xtensa/xtensa.h (optimize): Remove.
9345         * coretypes.h (struct gcc_options): Declare.
9346         * diagnostic.c (diagnostic_initialize): Initialize
9347         context->option_state.
9348         (diagnostic_report_diagnostic): Pass option_state to
9349         option_enabled hook.
9350         * diagnostic.h (diagnostic_context.option_enabled): Add void *
9351         parameter.
9352         (diagnostic_context.option_state): New field.
9353         * final.c (final_start_function, final, final_scan_insn): Rename
9354         optimize parameter to optimize_p.
9355         * flags.h (optimize, optimize_size): Remove.
9356         * function.c (invoke_set_current_function_hook): Pass
9357         &global_options to cl_optimization_restore.
9358         * gcc.c (driver_handle_option): Take gcc_options parameter.
9359         Assert that it is &global_options.
9360         (process_command): Pass &global_options to read_cmdline_option.
9361         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
9362         option_enabled.
9363         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
9364         &global_options to set_option.
9365         * opts-common.c (handle_option, handle_generated_option,
9366         read_cmdline_option, set_option): Take explicit gcc_options
9367         parameters.  Use option_flag_var.
9368         (option_flag_var): New.
9369         * opts.c (common_handle_option, lang_handle_option,
9370         target_handle_option): Take gcc_options parameter.  Assert that it
9371         is &global_options.
9372         (read_cmdline_options): Pass &global_options to read_cmdline_option.
9373         (print_filtered_help): Use option_flag_var.  Pass &global_options
9374         to option_enabled.
9375         (common_handle_option): Use option_flag_var.
9376         (option_enabled): Take opts parameter.  Use option_flag_var.
9377         (get_option_state): Take gcc_options parameter.  Use
9378         option_flag_var.  Pass gcc_options parameter to option_enabled.
9379         (enable_warning_as_error): Pass &global_options to
9380         handle_generated_option.
9381         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
9382         (cl_option_handler_func.handler): Take gcc_options parameter.
9383         (option_enabled, get_option_state, set_option, handle_option,
9384         handle_generated_option, read_cmdline_option): Take gcc_options
9385         parameters.
9386         * toplev.c (optimize, optimize_size): Remove.
9387         (print_switch_values): Pass &global_options to option_enabled.
9388         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
9389         to get_option_state.
9390         (general_init): Initialize global_dc->option_state.
9391         * tree.c (build_optimization_node): Pass &global_options to
9392         cl_optimization_save.
9393         (build_target_option_node): Pass &global_options to
9394         cl_target_option_save.
9395
9396 2010-09-30  Martin Jambor  <mjambor@suse.cz>
9397
9398         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
9399         zero sized bit-fields.
9400
9401 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9402
9403         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
9404         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
9405         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
9406         (c_parser_objc_class_declaration): Same change.
9407         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
9408         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9409         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
9410         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
9411         and RID_AT_PUBLIC instead of RID_PUBLIC.
9412         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
9413         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9414
9415 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
9416
9417         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
9418         Add links to current providers of packages for Solaris and IRIX.
9419
9420 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9421
9422         Merge from 'apple/trunk' branch on FSF servers.
9423         * c-parser.c: Applied change originally in c-parse.in.
9424
9425         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
9426
9427         Radar 4281748
9428         * c-decl.c (start_decl): Check for redeclaration of class name.
9429         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
9430
9431 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
9432
9433         * config/ia64/ia64.c (ia64_builtin_decl): New.
9434         (TARGET_BUILTIN_DECL): Define.
9435         (ia64_builtins): New.
9436         (ia64_init_builtins): Save decls in ia64_builtins.
9437
9438 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
9439
9440         PR target/40457
9441         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
9442         (move2add_use_add3_insn): Likewise.
9443         (reload_cse_move2add): Likewise.
9444         * rtlanal.c (get_full_rtx_cost): New function.
9445         * rtl.h (struct full_rtx_costs): New.
9446         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
9447         costs_add_n_insns): New inline functions.
9448         (get_full_rtx_cost): Declare.
9449
9450         PR c/45054
9451         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
9452         invariants.  Check for reg_equiv_invariant.
9453         (reload): Assert that spilled_pseudos is empty when returning.
9454
9455 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
9456
9457         * config/i386/mingw32.h (TARGET_64BIT): replaced by
9458         TARGET_64BIT_DEFAULT in #if check.
9459
9460 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
9461
9462         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
9463
9464 2010-09-29  Mike Stump  <mikestump@comcast.net>
9465
9466         * config/darwin.h (flag_mkernel): Remove.
9467         (flag_apple_kext): Likewise.
9468
9469 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9470             Jack Howarth  <howarth@bromo.med.uc.edu>
9471
9472         * config/darwin.opt (undefined): Add.
9473
9474 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9475
9476         PR testsuite/45664
9477         * configure.ac: Add --enable-indirect-function option.
9478         * config.gcc: Add default_gnu_indirect_function.
9479         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
9480         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
9481         * varasm.c (do_assemble_alias): Adjust for macro name change.
9482         * configure: Rebuilt.
9483         * doc/install.texi: Document --enable-indirect-function.
9484
9485 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9486
9487         * doc/options.texi (Variable, Var, Init): Update documentation
9488         without reference to VarExists.
9489         (VarExists): Remove.
9490         * common.opt, config/i386/i386.opt, config/linux.opt,
9491         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
9492         Don't use VarExists.
9493
9494 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9495
9496         * optc-gen.awk: Generate global_options initializer instead of
9497         individual variables.  Add x_ prefix to names of structure members.
9498         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
9499         names of structure members.
9500         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9501         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
9502         * doc/tm.texi: Regenerate.
9503         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9504         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9505         * c-parser.c (disable_extension_diagnostics,
9506         restore_extension_diagnostics): Update names of cpp_options members.
9507         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9508         * common.opt (fcompare-debug-second): Don't use Var.
9509         * config/alpha/alpha.h (target_flags): Remove.
9510         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9511         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9512         * config/bfin/bfin.h (target_flags): Remove.
9513         * config/cris/cris.h (target_flags): Remove.
9514         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
9515         cl_target_option members.
9516         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
9517         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
9518         ix86_can_inline_p): Update names of cl_target_option members.
9519         * config/i386/i386.h (ix86_isa_flags): Remove.
9520         * config/lm32/lm32.h (target_flags): Remove.
9521         * config/mcore/mcore.h (mcore_stack_increment): Remove.
9522         * config/mcore/mcore.md (addsi3): Remove extern declaration of
9523         flag_omit_frame_pointer.
9524         * config/mep/mep.h (target_flags): Remove.
9525         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9526         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9527         * config/mmix/mmix.h (target_flags): Remove.
9528         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
9529         flag_expensive_optimizations): Remove.
9530         * config/s390/s390.h (flag_pic): Remove.
9531         * config/score/score-conv.h (target_flags): Remove.
9532         * config/sh/sh.h (sh_fixed_range_str): Remove.
9533         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
9534         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9535         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9536         * diagnostic.c (diagnostic_initialize): Update names of
9537         diagnostic_context members.
9538         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
9539         warn_system_headers.
9540         (diagnostic_report_warnings_p): Update for new names.
9541         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9542         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
9543         HARD_FRAME_POINTER_IS_ARG_POINTER.
9544         * flags.h (flag_compare_debug): Declare.
9545         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9546         * opts.c (flag_compare_debug): Define.
9547         (common_handle_option): Update names of diagnostic_context
9548         members.  Handle -fcompare-debug-second.
9549         (fast_math_flags_struct_set_p): Update names of cl_optimization
9550         members.
9551         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9552         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9553         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9554         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9555         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9556         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9557         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
9558         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9559         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9560
9561 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
9562
9563         * config/picochip/picochip.c (picochip_output_internal_label):
9564         This function can now be called for debug CFI labels, which can come
9565         in the middle of a vliw instruction.  Postpone until end of vliw.
9566
9567 2010-09-29  Richard Guenther  <rguenther@suse.de>
9568
9569         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
9570         (DECL_FILE_SCOPE_P): Use it.
9571         (TYPE_FILE_SCOPE_P): New macro.
9572
9573 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9574
9575         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
9576         a CPP_NAME which is a reserved word, clearly separate cases for
9577         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
9578
9579 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9580
9581         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
9582         token->value with the canonical spelling.  Do exactly like C and
9583         C++ and leave it as it is.
9584
9585 2010-09-28  Richard Henderson  <rth@redhat.com>
9586
9587         * config/alpha/alpha.c (alpha_builtins): New.
9588         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
9589         (alpha_builtin_function): New.
9590         (alpha_add_builtins, alpha_init_builtins): Use it.
9591
9592 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
9593
9594         * doc/standards.texi (Standards): Expanded the section on
9595         Objective-C and Objective-C++.
9596
9597 2010-09-28  DJ Delorie  <dj@redhat.com>
9598
9599         PR target/45800
9600         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
9601         volatile MEMs.
9602
9603 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9604
9605         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
9606         attributes on methods.
9607          (c_parser_objc_method_definition): Handle attributes.
9608         (c_parser_objc_methodproto): Likewise.
9609         (c_parser_objc_maybe_method_attributes): New.
9610         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
9611         missing definition, similar to that in ObjC++.
9612
9613 2010-09-28  Richard Henderson  <rth@redhat.com>
9614
9615         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
9616         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9617         (CONFIG_SJLJ_EXCEPTIONS): Remove.
9618         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
9619         (STACK_CHECK_PROTECT): Likewise.
9620         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
9621         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
9622         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
9623         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
9624         (dwarf2out_assembly_start): Likewise.
9625         * except.c (init_eh): Use targetm.except_unwind_info.
9626         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
9627         (output_one_function_exception_table): Likewise.
9628         * final.c: Unconditionally include dwarf2out.h.
9629         (final_start_function): Unconditionally call dwarf2out routines.
9630         (final_end_function, final_scan_insn): Likewise.
9631         * function.c (expand_function_end): Use targetm.except_unwind_info.
9632         * opts.c (decode_options): Use targetm.except_unwind_info.
9633         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
9634         * target.def (debug_unwind_info, except_unwind_info): New.
9635         * target.h (enum unwind_info_type): New.
9636         * targhooks.c (default_debug_unwind_info): New.
9637         (default_except_unwind_info): New.
9638         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
9639         * targhooks.h: Declare them.
9640         * tree-tailcall.c: Include "target.h"
9641         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
9642         * Makefile.in (tree-tailcall.o): Update.
9643         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
9644         (lhd_gcc_personality): Likewise.
9645
9646         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
9647         (TARGET_EXCEPT_UNWIND_INFO): New.
9648         (DWARF2_UNWIND_INFO): Update.
9649         (TARGET_DEBUG_UNWIND_INFO): New.
9650         * doc/tm.texi: Rebuild.
9651
9652         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
9653         targetm.except_unwind_info.
9654
9655         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
9656         (arm_except_unwind_info): New.
9657         (arm_compute_func_type): Use it.
9658         (arm_expand_prologue, thumb_pushpop): Likewise.
9659         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
9660         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
9661         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
9662         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
9663         (DWARF2_UNWIND_INFO): Remove.
9664         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9665         (ARM_EABI_UNWIND_TABLES): Remove.
9666
9667         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
9668         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
9669         (ia64_except_unwind_info): New.
9670         (ia64_output_function_prologue): Use it.
9671         (ia64_add_bundle_selector_before): Likewise.
9672         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
9673         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
9674         (TARGET_UNWIND_INFO): Remove.
9675
9676         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
9677
9678 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9679
9680         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
9681         (c_parser_objc_protocol_definition): Likewise.
9682         (c_parser_external_declaration): Provide dummy attribute arguments.
9683         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
9684         (c_parser_objc_class_definition): Handle attributes.
9685         (c_parser_objc_protocol_definition): Likewise.
9686
9687 2010-09-28  Tobias Burnus  <burnus@net-b.de>
9688
9689         PR fortran/40569
9690         PR fortran/40568
9691         * toplev.h (save_decoded_options, save_decoded_options_count):
9692         New global variables.
9693         * toplev.c (save_decoded_options, save_decoded_options_count):
9694         Export variables.
9695
9696 2010-09-28  Ian Lance Taylor  <iant@google.com>
9697
9698         * config/i386/i386.c (ix86_supports_split_stack): Test
9699         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
9700
9701 2010-09-28  Ian Lance Taylor  <iant@google.com>
9702
9703         PR target/45815
9704         * opts.c (decode_options): Don't test whether the target supports
9705         split stack if flag_split_stack == 0.
9706
9707 2010-09-28  Jan Hubicka  <jh@suse.cz>
9708
9709         * builtin-attrs.def (ATTR_LEAF): New attribute.
9710         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
9711         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
9712         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
9713         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
9714         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
9715         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
9716         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
9717         * sync-builtins.def: Annotate all builtins by leaf.
9718         * omp-builtins.def: Annotate all builtins by leaf.
9719         * builtins.def: Annotate relevant builtins with leaf attribute.
9720         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
9721         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
9722         leaf.
9723
9724 2010-09-28  Jan Hubicka  <jh@suse.cz>
9725
9726         * tree-ssa-ccp.c (fold_ctor_reference): New function.
9727         (fold_const_aggregate_ref): Use it.
9728         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
9729         into external static.
9730
9731 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9732
9733         PR target/44452
9734         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
9735         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
9736         (ix86_solaris_return_in_memory): Remove.
9737         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
9738         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9739         (TARGET_SUBTARGET_DEFAULT): Redefine.
9740         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
9741         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9742         (TARGET_SUBTARGET_DEFAULT): Redefine.
9743         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
9744         -mvect8-ret-in-mem.
9745         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
9746
9747 2010-09-29  Alan Modra  <amodra@gmail.com>
9748
9749         PR target/45807
9750         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
9751         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
9752         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
9753         Delete.
9754         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
9755         (rs6000_emit_prologue): Don't just create frame save info for r2,
9756         actually save r2.
9757
9758 2010-09-28  Richard Henderson  <rth@redhat.com>
9759
9760         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
9761         when 8 bytes are requested.
9762
9763 2010-09-28  Tristan Gingold  <gingold@adacore.com>
9764
9765         * config/avr/avr.c (expand_prologue): Set
9766         current_function_static_stack_size.
9767
9768 2010-09-28  Tristan Gingold  <gingold@adacore.com>
9769
9770         * config/alpha/alpha.md: Change the initial condition of the
9771         probing loop.
9772
9773 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
9774
9775         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
9776         Split from *avx_<maxmin:code><mode>3.
9777         (*avx_<smaxmin:code><mode>3): Ditto.
9778         * config/i386/i386.md (maxmin): Remove code iterator.
9779
9780 2010-09-27  Ian Lance Taylor  <iant@google.com>
9781
9782         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
9783         requires assembler support for CFI directives.
9784
9785 2010-09-27  Richard Henderson  <rth@redhat.com>
9786
9787         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
9788
9789 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
9790
9791         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
9792         that AFTER is not in the range FROM..TO, inclusive.
9793
9794 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
9795             Bernd Schmidt  <bernds@codesourcery.com>
9796
9797         PR rtl-optimization/45792
9798         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
9799         If not all insns are to be merged, for each edge, stash the
9800         next candidate after the to-be-merged insns before doing the
9801         merge, and use them for the retry at the new insertion point.
9802         Handle CC0 targets when retrying.
9803
9804 2010-09-27  Ian Lance Taylor  <iant@google.com>
9805
9806         * common.opt (fsplit-stack): New option.
9807         * opts.c (decode_options): Set flag_split_stack to final value.
9808         * target.def (supports_split_stack): New hook.
9809         * gcc.c (STACK_SPLIT_SPEC): Define.
9810         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
9811         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
9812         (Code Gen Options): Document -fsplit-stack.
9813         * doc/extend.texi (Function Attributes): Mention no_split_stack.
9814         (Function Attributes): Document no_split_stack.
9815         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
9816         TARGET_SUPPORTS_SPLIT_STACK.
9817         * doc/tm.texi: Rebuild.
9818         * function.c (thread_prologue_and_epilogue_insns): If
9819         flag_split_stack, add split stack prologue.
9820         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
9821         * varasm.c (saw_no_split_stack): New static variable.
9822         (assemble_start_function): Set saw_no_split_stack if the function
9823         has the no_split_stack attribute.
9824         (file_end_indicate_split_stack): New function.
9825         * output.h (file_end_indicate_split_stack): Declare.
9826         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
9827         and function.
9828         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
9829         routines.
9830         * config/i386/i386.c (ix86_option_override_internal): Don't set
9831         expand_builtin_va_start to NULL if -fsplit-stack.
9832         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
9833         -fsplit-stack.
9834         (ix86_va_start): If -fsplit-stack, get overflow pointer from
9835         scratch register set by prologue.
9836         (ix86_code_end): If -fsplit-stack, call
9837         file_end_indicate_split_stack.
9838         (ix86_supports_split_stack): New static function.
9839         (SPLIT_STACK_AVAILABLE): Define.
9840         (split_stack_prologue_scratch_regno): New static function.
9841         (split_stack_fn): New static variable.
9842         (ix86_expand_split_stack_prologue): New function.
9843         (ix86_live_on_entry): New static function.
9844         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
9845         (output_pic_addr_const): Likewise.
9846         (i386_asm_output_addr_const_extra): Likewise.
9847         (ix86_expand_call): Change return type to rtx.  Return the new
9848         call instruction.
9849         (TARGET_SUPPORTS_SPLIT_STACK): Define.
9850         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9851         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
9852         (split_stack_prologue, split_stack_return): New insns.
9853         (split_stack_space_check): New insn.
9854         * config/i386/i386.h (struct machine_function): Add
9855         split_stack_varargs_pointer field.
9856         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
9857         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9858         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9859         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9860         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
9861         Declare.
9862         (ix86_expand_call): Update declaration.
9863
9864 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9865
9866         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
9867         code.  Added byref, which was missing in the list of codes.
9868         Explain that enumeration values are encoded as the integer type
9869         that the compiler uses to store them.  Explain and make examples
9870         of how 'const' interacts with pointers, and the complication of
9871         the encoding of 'const char *'.
9872         (Legacy type encoding): New subsection, explaining that GCC emits
9873         incorrect type encodings for the NeXT runtime for compatibility
9874         reasons.
9875         (@@encode): New subsection, explaining @encode and particularly
9876         that protocol qualifiers are not recognized inside an @encode()
9877         expression.
9878         (Method signatures): New subsection, explaining how method
9879         signatures are encoded.
9880
9881 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
9882
9883         Merge from 'apple/trunk' branch on FSF servers.  Removed small
9884         change in build_conditional_expr that had been added when fixing
9885         PR objc/27377 and which did the same check in a less complete way.
9886
9887         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
9888
9889         Radar 4229905
9890         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
9891         looking for objective-c common pointer types.
9892
9893         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
9894
9895         Radar 4154928
9896         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
9897         use their ObjC common type.
9898
9899 2010-09-27  Richard Guenther  <rguenther@suse.de>
9900
9901         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
9902
9903 2010-09-27  Jie Zhang  <jie@codesourcery.com>
9904
9905         * print-tree.c (print_node): Print in-constant-pool.
9906
9907 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
9908
9909         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
9910         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
9911         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
9912         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
9913
9914 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
9915
9916         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
9917         from pro_epilogue_adjust_stack_<mode>_{1,2}.
9918         (pro_epilogue_adjust_stack_<mode>_add): Rename from
9919         pro_epilogue_adjust_stack_<mode>_3.
9920         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
9921         renamed pro_epilogue_adjust_stack_{si,di}_add.
9922         (ix86_expand_prologue): Use indirect functions.  Update for renamed
9923         pro_epilogue_adjust_stack_{si,di}_sub.
9924
9925 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
9926
9927         * config/i386/i386.md (movmsk_df): New insn.
9928         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
9929         sequence for TARGET_SSE_MATH.
9930
9931 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
9932
9933         * config/mips/mips.c (mips_builtin_decls): Declare.
9934         (mips_init_builtins): Store function declarations in
9935         mips_builtin_decls.
9936         (mips_builtin_decl): New function.
9937         (TARGET_BUILTIN_DECL): Define.
9938
9939 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
9940             Richard Henderson  <rth@redhat.com>
9941
9942         * config/i386/cygwin.asm: Include auto-host.h.
9943         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
9944         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
9945         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
9946         alignment code from the 64-bit path.  Use gas local labels.
9947         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
9948         from _di_2.  Remove the useless constant integer argument.
9949         (pro_epilogue_adjust_stack_<mode>_3): New.
9950         (allocate_stack_worker_probe_<mode>): Macroize from
9951         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
9952         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
9953         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
9954         (__chkstk_ms): New function.
9955         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
9956         * config/i386/t-interix: Likewise.
9957         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
9958         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9959         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
9960         * configure, config.in: Rebuild.
9961
9962 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
9963
9964         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
9965         statements because of the return slot optimization.
9966
9967 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
9968
9969         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
9970         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
9971         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9972         (class_likely_spilled_p): Rename to...
9973         (avr_class_likely_spilled_p): ...this. Make static. Change argument
9974         type to reg_class_t.
9975
9976 2010-09-24  Jan Hubicka  <jh@suse.cz>
9977
9978         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
9979         (lto_symtab_resolve_symbols): Set it.
9980         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
9981         store resolution field in cgraph/varpool.
9982         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
9983         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
9984         (cgraph_dump_node): Drop used_from_object_file.
9985         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
9986         (cgraph_function_body_availability): Use decl_replaceable_p.
9987         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
9988         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
9989         cgraph_used_from_object_file_p.
9990         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
9991         cgraph_used_from_object_file_p.
9992         (resolution_used_from_other_file_p): New functoin.
9993         (cgraph_used_from_object_file_p): New predicate.
9994         * cgraph.h: Include plugin-api.h
9995         (struct cgraph_local_info): Remove used_from_object_file.
9996         (struct cgraph_node): Add resolution field.
9997         (struct varpool_node): Likewise; remove used_from_object_file;
9998         reove const_value_known.
9999         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
10000         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
10001         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10002         varpool_used_from_object_file_p): Declare.
10003         (varpool_get_node, varpool_extra_name_alias): Update prototype.
10004         * tree.h (DECL_REPLACEABLE_P): Remove.
10005         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
10006         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
10007         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10008         input_overwrite_node, input_node, input_varpool_node): Stream
10009         resolution.
10010         * expr.c (expand_expr_real_1): Use const_value_known_p
10011         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
10012         const_value_known.
10013         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
10014         (function_and_variable_visibility): Set resolution for local vars
10015         and functions; use varpool_used_from_object_file_p.
10016         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
10017         static functions.
10018         (default_binds_local_p_1): Use resolutoin info.
10019         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
10020         * varpool.c (varpool_get_node): Constify.
10021         (const_value_known_p): Do not use vnode->const_value_known;
10022         use decl_replaceable_p.
10023         (varpool_finalize_decl): Do not set const_value_known.
10024         (cgraph_variable_initializer_availability): Use decl_replaceable_p
10025         (varpool_extra_name_alias): Return new node.
10026         (varpool_used_from_object_file_p): New function.
10027
10028 2010-09-24  Richard Henderson  <rth@redhat.com>
10029
10030         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
10031         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
10032         (do_spill): Use REG_CFA_OFFSET.
10033         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
10034         as appropriate.
10035         (ia64_expand_epilogue): Likewise.
10036         (process_set): Split into ...
10037         (process_cfa_adjust_cfa): this,
10038         (process_cfa_register): this,
10039         (process_cfa_offset): and this new function.
10040         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
10041         instead of REG_FRAME_RELATED_EXPR.
10042
10043 2010-09-24  Olivier Hainque  <hainque@adacore.com>
10044
10045         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
10046
10047 2010-09-24  Jan Hubicka  <jh@suse.cz>
10048
10049         * doc/extend.texi: (attribute leaf): Document.
10050         * tree.c (local_define_builtin): Handle ECF_LEAF.
10051         (build_common_builtin_nodes): Set ECF_LEAF where needed.
10052         * tree.h (ECF_LEAF): New.
10053         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
10054         overwrittable and unavailable functions.
10055         (ipa_init): Put all_module_statics into optimization_summary_obstack.
10056         (copy_global_bitmap): Do not copy all_module_statics.
10057         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
10058         (propagate): Handle overwritable and unavailable leaf functions;
10059         initialize global info for overwritable and unavailable leaf functions;
10060         do not free all module statics.
10061         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
10062         local statics.
10063         * calls.c (flags_from_decl_or_type): Handle leaf.
10064         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
10065         abnormal gotos.
10066
10067 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
10068
10069         * gengtype.c: Reindented.
10070         * gengtype.h: Reindented.
10071         * gengtype-parse.c: Reindented.
10072
10073 2010-09-24  Jan Hubicka  <jh@suse.cz>
10074
10075         PR tree-optimization/45738
10076         PR tree-optimization/45741
10077         * expr.c (string_constant): Allow CONST_DECL too;
10078         check that DECL_INITIAL is set.
10079         * varpool.c (const_value_known_p): Only look into VAR_DECL
10080         and CONST_DECL.
10081
10082 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
10083
10084         * common.opt (undef): New.
10085
10086 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
10087
10088         PR middle-end/45234
10089         * rtl.h (enum global_rtl_index): Add
10090         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
10091         (LAST_VIRTUAL_POINTER_REGISTER): Define.
10092         (virtual_preferred_stack_boundary_rtx,
10093         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
10094         (LAST_VIRTUAL_REGISTER): Increase by one.
10095         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
10096         instead of LAST_VIRTUAL_REGISTER.
10097         * function.c (instantiate_new_reg): Handle
10098         virtual_preferred_stack_boundary_rtx.
10099         * emit-rtl.c (init_virtual_regs): Handle
10100         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10101         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
10102         * explow.c (round_push): If crtl->preferred_stack_boundary
10103         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
10104         virtual_preferred_stack_boundary_rtx alignment instead of
10105         crtl->preferred_stack_boundary alignment.
10106         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
10107         macros.  Never decrease crtl->preferred_stack_boundary,
10108         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
10109         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
10110         stack_pointer_delta in dynamic allocation, even when size
10111         is constant.
10112         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
10113         macro.
10114         * print-rtl.c (print_rtx): Handle
10115         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10116         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
10117         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
10118         * config/frv/frv.c (frv_emit_movsi): Likewise.
10119         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
10120         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
10121         Likewise.
10122
10123         Revert:
10124         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10125
10126         PR middle-end/45234
10127         * calls.c (expand_call): Make sure that all variable sized
10128         adjustments are multiple of preferred stack boundary after
10129         stack alignment.
10130
10131 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
10132             Dominique Dhumieres  <dominiq@lps.ens.fr>
10133
10134         PR bootstrap/45751
10135         * config/darwin-driver.c (darwin_default_min_version):
10136         Adjust size passed to memcpy in two places.
10137
10138 2010-09-24  Richard Guenther  <rguenther@suse.de>
10139
10140         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
10141         Make sure to not call set_type_context with error_mark_node.
10142         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
10143
10144 2010-09-24  Richard Guenther  <rguenther@suse.de>
10145
10146         * Makefile.in (OBJS-onestep): Remove.
10147         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
10148         (libbackend.a): Remove onestep support.
10149         (libbackend.o): Remove.
10150         * configure.ac (--enable-intermodule): Remove.
10151         * configure: Regenerate.
10152
10153 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
10154
10155         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
10156         reaching the end of a block if it occurs at a DEBUG_INSN.
10157
10158 2010-09-09  Tristan Gingold  <gingold@adacore.com>
10159
10160         PR target/44242
10161         * config/vms/vms-crt0-64.c: Removed.
10162         * config/vms/vms-crt0.c: Removed.
10163         * config/vms/vms-psxcrt0-64.c: Removed.
10164         * config/vms/vms-psxcrt0.c: Removed.
10165         * config/vms/vms-ucrt0.c: New file.
10166         * config/vms/t-vms64: Removed.
10167         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
10168         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
10169         * config.gcc (alpha-dec-vms): Use t-vms.
10170
10171 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10172
10173         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
10174         underfull hbox in DVI output.
10175         (-fobjc-class-cxx-cdtors): Same change.
10176         (-fobjc-exceptions): Tidied up documentation.  Explain what the
10177         option does, but moved the (lenghty) description of the exception
10178         syntax into objc.texi.
10179         (-fobjc-gc): Explain that the option is not useful with the GNU
10180         runtime.
10181         (-fzero-link): Explain that the GNU runtime always works in
10182         "zero-link" mode.
10183         * doc/objc.texi: All sections: simplified @node declarations
10184         removing specification of next, previous, up node.
10185         (Objective-C): Updated introduction.
10186         (Garbage Collection): Updated.  The bohem-gc library is now
10187         included in gcc itself.  Mention that this section only applies to
10188         the GNU Objective-C runtime.
10189         (compatibility_alias): Small tidy up.
10190         (Exceptions): New section mostly containing text previously in the
10191         description of the -fobjc-exception command-line option.
10192         (Synchronization): Same.
10193
10194 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
10195
10196         * config/i386/i386.md (ix86_code_end): Move the initialization of
10197         xops array near the consumer.  Use AX_REG and SP_REG instead of
10198         numerical constants.
10199
10200 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10201
10202         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
10203         method [methodname]' for an Objective-C method instead of the less
10204         satisfactory 'too many arguments to function' (with no method name).
10205
10206 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
10207
10208         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
10209         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
10210         (execute_update_addresses_taken): Remove parameter.  Execute the
10211         optimization unconditionally.
10212         * passes.c (execute_function_todo): Call execute_update_addresses_taken
10213         unconditionally if TODO_rebuild_alias is set, else only when optimizing
10214         if TODO_update_address_taken is set.
10215
10216 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
10217
10218         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10219         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
10220         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10221         (arm_output_addr_const_extra): Make static.
10222
10223 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
10224
10225         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
10226         define as unspec_volatile.
10227         ("nops"): Define as unspec_volatile. Use fputs to write to
10228         asm_out_file directly.  Output NOPs on separate lines using while loop.
10229         * config/i386/i386.c (ix86_code_end): Use fputs to write to
10230         asm_out_file directly.  Output NOPs on separate lines using while loop.
10231
10232 2010-09-23  Richard Guenther  <rguenther@suse.de>
10233
10234         PR tree-optimization/45565
10235         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
10236         Make sure to adjust the fndecl before replacing the stmt.
10237
10238 2010-09-23  Richard Guenther  <rguenther@suse.de>
10239
10240         PR middle-end/45750
10241         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
10242         gimplifying MEM_REF.
10243
10244 2010-09-23  Alan Modra  <amodra@gmail.com>
10245
10246         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
10247         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
10248
10249 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
10250
10251         PR rtl-optimization/44374
10252         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
10253         * df-core.c (df_set_bb_dirty): Set it.
10254         * ifcvt.c (find_memory): Remove function.
10255         (dead_or_predicable): Use can_move_insns_across.
10256         * df.h (can_move_insns_across): Declare function.
10257         * cfgcleanup.c (block_was_dirty): New static variable.
10258         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
10259         than df_get_bb_dirty.
10260         (try_head_merge_bb): New static function.
10261         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
10262         is set.
10263         * df-problems.c: Include "target.h"
10264         (df_simulate_find_uses): New static function.
10265         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
10266         (find_memory, find_memory_store): New static functions.
10267         (can_move_insns_across): New function.
10268         * Makefile.in (df-problems.o): Update dependencies.
10269
10270 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
10271
10272         PR java/44095
10273         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
10274         is specified and the suffix of the file isn't ".c".
10275         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10276
10277 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10278
10279         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
10280         * doc/cppopts.texi: Fix markup of index entry.
10281         * doc/extend.texi (Constructing Calls): Fix markup of
10282         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
10283         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
10284         (Vague Linkage, C++ Attributes): Fix markup of index entries and
10285         keywords.
10286         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
10287         avoid long lines.
10288         (C Dialect Options, C++ Dialect Options, Warning Options)
10289         (Debugging Options, Spec Files, Darwin Options)
10290         (i386 and x86-64 Options, MIPS Options)
10291         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
10292         index entries, avoid abbreviations, allow URLs to wrap, avoid
10293         long lines, avoid overlong pages from long @itemx lists.
10294         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
10295         * doc/standards.texi (Standards): Likewise.
10296         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
10297
10298 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
10299
10300         * opts-common.c (prune_options): Make static.  Work with decoded
10301         options.
10302         (decode_cmdline_options_to_array): Call prune_options.  Don't
10303         resize option array here.
10304         * opts.h (prune_options): Remove prototype.
10305         * gcc.c (process_command): Take decoded options; don't call
10306         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
10307         (main): Call decode_cmdline_options_to_array here instead of
10308         prune_options.  Update call to process_command.
10309         * config/darwin-driver.c: Include opts.h.
10310         (darwin_default_min_version): Work with decoded options.  Don't
10311         handle -b or -V here.
10312         * config/darwin.h (darwin_default_min_version): Update prototype.
10313         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
10314         darwin_default_min_version.
10315         * config/i386/cygwin.h (mingw_scan): Update prototype.
10316         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
10317         * config/i386/cygwin1.c: Include opts.h.
10318         (mingw_scan): Work with decoded options.
10319         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
10320         * config/t-darwin (darwin-driver.o): Update dependencies.
10321
10322 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
10323
10324         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
10325         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
10326         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
10327         -force-link, -force-link=, -language, -language=,
10328         -library-directory, -library-directory=, -no-canonical-prefixes,
10329         -no-standard-libraries, -no-warnings, -optimize, -output,
10330         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
10331         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
10332         -print-file-name=, -print-libgcc-file-name,
10333         -print-multi-directory, -print-multi-lib,
10334         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
10335         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
10336         -profile, -save-temps, -shared, -specs, -specs=, -static,
10337         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
10338         symbolic): New.
10339         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
10340         * gcc.c (A Short Introduction to Adding a Command-Line Option):
10341         Remove comment.
10342         (cc1_options): Correct specs for passing down --help,
10343         --target-help and --help=*.  Add spec for passing down --version.
10344         (struct option_map, option_map, target_option_translations,
10345         translate_options): Remove.
10346         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
10347         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
10348         OPT_fhelp_ and OPT_ftarget_help.
10349         (process_command): Don't call translate_options.  Call
10350         decode_cmdline_options_to_array before checking for
10351         -no-canonical-prefixes using decoded options.
10352         * opts-common.c (tm.h): Update comment on #include.
10353         (find_opt): Allow abbreviations of long options.
10354         (struct option_map, option_map): New.
10355         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
10356         and -mno handling.
10357         (target_option_translations): New.
10358         (decode_cmdline_options_to_array): Handle
10359         TARGET_OPTION_TRANSLATE_TABLE in driver.
10360         * opts.c (common_handle_option): Don't handle OPT_fhelp,
10361         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
10362
10363 2010-09-22  Richard Guenther  <rguenther@suse.de>
10364
10365         * tree-inline.c (optimize_inline_calls): Schedule cleanups
10366         only if we inlined something.  Block compaction and conditional
10367         folding are done by cfg cleanup.  Schedule update-address-taken.
10368         (tree_function_versioning): Remove redundant call to number_blocks.
10369         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
10370         folding is done by cfg cleanup.
10371         * passes.c (init_optimization_passes): Remove update-address-taken
10372         pass after IPA inlining.
10373
10374 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10375
10376         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
10377         to update conditions. Fix reg_mode[] check.
10378
10379 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
10380
10381         * config/picochip/picochip.md (movhicc): Use expand to check whether
10382         movhicc is available and split it after reload.
10383
10384 2010-09-22  Richard Guenther  <rguenther@suse.de>
10385
10386         * tree-ssanames.c (release_dead_ssa_names): Do not remove
10387         callee edges here.
10388         * passes.c (init_optimization_passes): Remove early CFG cleanup.
10389         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
10390         (pass_cleanup_cfg): Likewise.
10391         (execute_fixup_cfg): Cleanup.
10392         * tree-pass.h (pass_cleanup_cfg): Remove.
10393
10394 2010-09-22  Martin Jambor  <mjambor@suse.cz>
10395
10396         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
10397         builtins if it is true.
10398         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
10399         parameter.
10400
10401 2010-09-22  Martin Jambor  <mjambor@suse.cz>
10402
10403         * tree-sra.c (struct access): New field grp_no_warning.
10404         (create_access_replacement): Set TREE_NO_WARNING according to
10405          grp_no_warning.
10406         (create_artificial_child_access): Use build_ref_for_model and set
10407         grp_no_warning if build_user_friendly_ref_for_offset fails.
10408         (propagate_subaccesses_across_link): Likewise.
10409
10410 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
10411
10412         PR target/35664
10413         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
10414         ('f'): Likewise.
10415
10416 2010-09-22  Tristan Gingold  <gingold@adacore.com>
10417
10418         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
10419
10420 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
10421
10422         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
10423         * config/i386/i386.c (decide_alg): Update for rename.
10424
10425 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
10426
10427         PR rtl-optimization/45739
10428         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
10429         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
10430
10431 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
10432
10433         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
10434         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
10435         Remove.
10436         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
10437         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10438
10439 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10440
10441         PR objc/23710
10442         * c-parser.c (c_parser_objc_method_definition): Check the return
10443         value of objc_start_method_definition and if false is returned,
10444         parse the method definition but emit no code.
10445
10446 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10447
10448         PR objc/25965
10449         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
10450         call objc_get_interface_ivars ().
10451
10452 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
10453
10454         PR target/45694
10455         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
10456         static chain-register is used for 64-bit.
10457
10458 2010-09-21  Richard Guenther  <rguenther@suse.de>
10459
10460         * dwarf2out.c (is_cu_die): New function.
10461         (add_pubtype): Use it.
10462         (gen_subprogram_die): Likewise.
10463         (gen_struct_or_union_type_die): Likewise.
10464         (dwarf2out_finish): Likewise.
10465         (comp_unit_die): Rename to ...
10466         (single_comp_unit_die): ... this.
10467         (comp_unit_die): New function lazily constructing and
10468         returning single_comp_unit_die.
10469         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
10470         base_type_die, subrange_type_die, modified_type_die,
10471         lower_bound_default, add_bound_info, add_prototyped_attribute,
10472         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
10473         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
10474         force_decl_die, gen_namespace_die, dwarf2out_decl,
10475         dwarf2out_start_source_file, dwarf2out_end_source_file,
10476         prune_unused_types, dwarf2out_finish): Use it.
10477         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
10478         the global list of translation-unit decls.
10479         (dwarf2out_init): Do not create single_comp_unit_die here.
10480         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
10481
10482 2010-09-21  Richard Guenther  <rguenther@suse.de>
10483
10484         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
10485         for bool for C++.
10486
10487 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
10488
10489         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
10490         (qhs_extenddi_cstr): Likewise.
10491         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
10492         them for the source operand.
10493
10494 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
10495
10496         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
10497         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
10498         (ix86_split_ashr): Ditto.
10499         (ix86_split_lshr): Ditto.
10500
10501 2010-09-21  Richard Guenther  <rguenther@suse.de>
10502
10503         PR tree-optimization/45580
10504         * tree-ssa-propagate.c (substitute_and_fold): Always replace
10505         regular uses.
10506         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
10507         virtuals fold the call into a regular indirect one.
10508
10509 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
10510
10511         PR rtl-optimization/42775
10512         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
10513         scheduling is enabled.
10514
10515 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10516
10517         PR rtl-optimization/45728
10518         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
10519         gen_lowpart_common first and if that fails, force_reg first
10520         before calling gen_lowpart.
10521
10522         PR middle-end/45678
10523         * cfgexpand.c (expand_one_stack_var_at): Use
10524         crtl->max_used_stack_slot_alignment as max_align, instead
10525         of maximum of that and PREFERRED_STACK_BOUNDARY.
10526         Don't call update_stack_alignment.
10527
10528 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
10529
10530         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
10531         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
10532         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
10533         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
10534         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
10535         (build_nonstandard_integer_type): Likewise.
10536         (build_range_type_1): New function, built from...
10537         (build_range_type): ...this.  Call build_range_type_1.
10538         (build_nonshared_range_type): New function.
10539         (build_array_type_1): New function, built from...
10540         (build_array_type: ...this.  Call build_array_type_1.
10541         (build_nonshared_array_type): New function.
10542         * tree.h (build_nonshared_range_type): Declare.
10543         (build_nonshared_array_type): Likewise.
10544
10545 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
10546
10547         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
10548         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10549         (arm_class_likely_spilled_p): New function.
10550
10551 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
10552
10553         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
10554         indirect functions.
10555         (ix86_split_ashl): Ditto.
10556         (ix86_split_ashr): Ditto.
10557         (ix86_split_lshr): Ditto.
10558         (ix86_adjust_counter): Ditto.
10559
10560 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
10561
10562         * c-family/c-common.h (constant_string_class): Documented with
10563         comment identical to the one already in c-common.c.
10564
10565 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10566
10567         * dwarf2out.c (any_cfis_emitted): New static variable.
10568         (add_fde_cfi): Set it.
10569         (dwarf2out_frame_debug): Clear it before processing,
10570         if it is set afterwards, flush any queued reg saves.
10571
10572         PR debug/45124
10573         * dwarf2out.c (add_accessibility_attribute): Assume
10574         DW_ACCESS_private as the default for dwarf_version > 2
10575         and DW_TAG_class_type parent.
10576         (gen_inheritance_die): Assume DW_ACCESS_public as the default
10577         for dwarf_version > 2 and parent other than DW_TAG_class_type.
10578
10579 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
10580
10581         PR target/45726
10582         * arm.md (arm_movt): Only enable on machines with MOVT.
10583
10584 2010-09-20  Jie Zhang  <jie@codesourcery.com>
10585
10586         * config/arm/arm.c (arm_address_offset_is_imm): New.
10587         (arm_early_store_addr_dep): New.
10588         (arm_early_load_addr_dep): New.
10589         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
10590         (arm_early_load_addr_dep): Declare.
10591         (arm_address_offset_is_imm): Declare.
10592         * config/arm/cortex-m4.md: New file.
10593         * config/arm/cortex-m4-fpu.md: New file.
10594         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
10595         (attr generic_sched): Exclude cortexm4.
10596         (attr generic_vfp): Exclude cortexm4.
10597
10598 2010-09-20  Richard Guenther  <rguenther@suse.de>
10599
10600         PR middle-end/45704
10601         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
10602
10603 2010-09-20  Jan Hubicka  <jh@suse.cz>
10604
10605         PR tree-optimize/45605
10606         * cgraph.h (const_value_known_p): Declare.
10607         (varpool_decide_const_value_known): Remove.
10608         * tree-ssa-ccp.c (get_base_constructor): Use it.
10609         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
10610         * expr.c (string_constant): Likewise.
10611         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10612         * ipa.c (ipa_discover_readonly_nonaddressable_var,
10613         function_and_variable_visibility): Likewise.
10614         * gimplify.c (gimplify_call_expr): Likewise.
10615         * gimple-fold.c (get_symbol_constant_value): Likewise.
10616         * varpool.c (varpool_decide_const_value_known): Replace by...
10617         (const_value_known_p): ... this one; handle other kinds of DECLs
10618         too and work for automatic vars.
10619         (varpool_finalize_decl): Use const_value_known_p.
10620
10621 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
10622
10623         PR target/45726
10624         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
10625
10626 2010-09-20  Richard Guenther  <rguenther@suse.de>
10627
10628         PR tree-optimization/45705
10629         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
10630
10631 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10632
10633         PR rtl-optimization/45695
10634         * combine.c (try_combine): When splitting a two set pattern,
10635         make sure the pattern which will be put into i2 doesn't use REGs
10636         or MEMs set by insns in between i2 and i3.
10637
10638 2010-09-19  Jan Hubicka  <jh@suse.cz>
10639
10640         PR lto/44246
10641         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
10642         processing same node twice.
10643
10644 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
10645
10646         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
10647         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10648         (bfin_class_likely_spilled_p): New function
10649
10650 2010-09-19  Ira Rosen  <irar@il.ibm.com>
10651
10652         PR tree-optimization/45714
10653         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
10654         created in vectorizable_call instead of the original statement in
10655         def stmt updates.
10656
10657 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
10658
10659         * config/i386/i386-protos.h (split_double_mode): New prototype.
10660         (split_di, split_ti): Remove prototypes.
10661         * config/i386/i386.c (split_double_mode): New function.
10662         (split_di, split_ti): Remove.
10663         (ix86_expand_branch): Use split_double_mode.
10664         (ix86_split_to_parts): Ditto.
10665         (ix86_split_ashl): Ditto.
10666         (ix86_split_ashr): Ditto.
10667         (ix86_split_lshr): Ditto.
10668         (ix86_force_to_memory): Ditto.
10669         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
10670
10671 2010-09-18  Jan Hubicka  <jh@suse.cz>
10672
10673         PR tree-optimization/45453
10674         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
10675         virtual functions are reachable.
10676         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
10677         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10678         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
10679         when modifying function.
10680
10681 2010-09-18  Jan Hubicka  <jh@suse.cz>
10682
10683         PR tree-optimization/45605
10684         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
10685         * gimple-fold.c (static_object_in_other_unit_p): New function.
10686         (canonicalize_constructor_val): Use it.
10687         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
10688         returning NULL.
10689         (gimple_fold_obj_type_ref_known_binfo): Use
10690         static_object_in_other_unit_p.
10691
10692 2010-09-18  Richard Guenther  <rguenther@suse.de>
10693
10694         PR tree-optimization/45709
10695         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
10696         insertions until after all PHI nodes of the block are processed.
10697
10698 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
10699
10700         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
10701
10702 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
10703
10704         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
10705
10706 2010-09-18  Richard Guenther  <rguenther@suse.de>
10707
10708         PR tree-optimization/45709
10709         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
10710
10711 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
10712
10713         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
10714         (dot_deps_stmt): Same.
10715         * graphite-poly.c (dot_lst): Same.
10716         * graphite-scop-detection.c (dot_all_scops): Same.
10717         (dot_scop): Same.
10718
10719 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
10720
10721         Revert:
10722         2009-12-16  Ben Elliston  <bje@au.ibm.com>
10723
10724         * tree-data-ref.c (dot_rdg_1): Added back.
10725         (dot_rdg): Same.  Added "#if 0" around system call.
10726
10727 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10728             Richard Henderson  <rth@redhat.com>
10729
10730         * config/i386/i386.c (initial_ix86_tune_features): Add
10731         X86_TUNE_PAD_SHORT_FUNCTION.
10732         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
10733         (ix86_count_insn): New.
10734         (ix86_pad_short_function): Likewise.
10735         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
10736
10737         * config/i386/i386.h (ix86_tune_indices): Add
10738         X86_TUNE_PAD_SHORT_FUNCTION.
10739         (TARGET_PAD_SHORT_FUNCTION): New.
10740
10741         * config/i386/i386.md (UNSPEC_NOPS): New.
10742         (nops): Likewise.
10743
10744 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10745
10746         PR middle-end/45234
10747         * calls.c (expand_call): Make sure that all variable sized
10748         adjustments are multiple of preferred stack boundary after
10749         stack alignment.
10750
10751 2010-09-17  DJ Delorie  <dj@redhat.com>
10752
10753         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
10754         passed an invalid value, print an error instead of ICEing.
10755         (valid_psw_flag): New.
10756         (rx_expand_builtin): Call it for setpsw/clrpsw.
10757         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
10758
10759         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
10760         (bitclr_in_memory): Likewise.
10761         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
10762
10763 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10764
10765         PR middle-end/45678
10766         * cfgexpand.c (update_stack_alignment): New.
10767         (get_decl_align_unit): Use it.
10768         (expand_one_stack_var_at): Call update_stack_alignment.
10769
10770 2010-09-17  Richard Guenther  <rguenther@suse.de>
10771
10772         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
10773         Properly copy the read string.
10774
10775 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
10776
10777         * doc/options.texi (Variable): Document.
10778         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
10779         generate target_flags declarations explicitly.  Don't define
10780         VarExists variables for the driver.
10781         * common.opt (target_flags): New Variable record.
10782         (flag_dump_unnumbered, flag_dump_unnumbered_links,
10783         flag_var_tracking, flag_var_tracking_assignments,
10784         flag_var_tracking_assignments_toggle): Don't mark variables with
10785         VarExists.
10786         * config/i386/i386.c (ix86_isa_flags): Don't define here.
10787         * config/i386/i386.opt (ix86_isa_flags): Define here.
10788         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
10789         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
10790         VarExists.
10791         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
10792         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
10793         Only define for generator programs.
10794         * rtlanal.c (target_flags): Remove.
10795         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
10796         flag_var_tracking_assignments_toggle): Remove.
10797
10798 2010-09-17  Michael Matz  <matz@suse.de>
10799
10800         PR tree-optimization/43432
10801         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
10802         Accept backwards consecutive accesses.
10803         (vect_create_data_ref_ptr): If step is negative generate
10804         decreasing IVs.
10805         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
10806         (perm_mask_for_reverse, reverse_vec_elements): New functions.
10807         (vectorizable_load): Handle loads with negative steps when easily
10808         possible.
10809
10810 2010-09-03  Jan Hubicka  <jh@suse.cz>
10811
10812         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
10813
10814 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
10815
10816         * config/v850/v850.c (v850_function_value_regno_p): Make static.
10817         Adjust comments. Declare.
10818         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10819         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
10820
10821 2010-09-17  Richard Guenther  <rguenther@suse.de>
10822
10823         * common.opt (combine): Remove.
10824         * gcc.c (default_compilers): Remove specs testing combine.
10825         The C compilers no longer can combine.
10826         (option_map): Remove -combine.
10827         (display_help): Remove -combine.
10828         (driver_handle_option): Remove OPT_combine handling.
10829         (compile_input_file_p): Remove.
10830         (do_spec): Remove code concerning combine.
10831         (main): Likewise.
10832         * doc/invoke.texi: Remove traces of -combine.
10833         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
10834
10835 2010-09-17  Richard Guenther  <rguenther@suse.de>
10836
10837         PR middle-end/45678
10838         * builtins.c (fold_builtin_memory_op): Always properly adjust
10839         alignment of memory accesses.
10840
10841 2010-09-16  Jan Hubicka  <jh@suse.cz>
10842
10843         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
10844         processing clone.
10845
10846 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
10847
10848         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
10849
10850         * config/i386/i386.c (predict_jump): Add prototype.
10851         (flag_opts): Add -m8bit-idiv.
10852         (ix86_split_idivmod): New.
10853
10854         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
10855         Add 2 splitters for SI/DI mode divide.
10856         (divmod<mode>4_1): New pattern.
10857         (udivmod<mode>4_1): Likewise.
10858         (testdi_ccno_1): Likewise.
10859
10860         * config/i386/i386.opt (m8bit-idiv): New.
10861
10862         * doc/invoke.texi: Document -m8bit-idiv.
10863
10864 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
10865
10866         PR bootstrap/45680
10867         * config/i386/i386.c (min_insn_size): Moved out of the
10868         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
10869
10870 2010-09-16  Jan Hubicka  <jh@suse.cz>
10871
10872         * lto-cgraph.c (lto_output_node): Fix handling of clones.
10873         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
10874         unreachable clones with reachable clones.
10875         * tree-inline.c (copy_bb): Fix sanity checking when producing
10876         unreachable clone.
10877
10878 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
10879
10880         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
10881         (TARGET_MEMORY_MOVE_COST): Define.
10882         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
10883
10884 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
10885
10886         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
10887         maybe_tidy_empty_bb.
10888
10889         Revert:
10890         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
10891         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10892
10893 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
10894
10895         * target.def (target_option.optimization): New hook.
10896         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
10897         TARGET_OPTION_OPTIMIZATION hook.
10898         * doc/tm.texi: Regenerate.
10899         * hooks.c (hook_void_int_int): New.
10900         * hooks.h (hook_void_int_int): Declare.
10901         * opts.c: Don't include tm_p.h.
10902         (decode_options): Use targetm.target_option.optimization instead
10903         of OPTIMIZATION_OPTIONS.
10904         * system.h (OPTIMIZATION_OPTIONS): Poison.
10905         * config/arm/arm-protos.h (arm_optimization_options): Remove.
10906         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
10907         (arm_optimization_options): Rename to arm_option_optimization.
10908         Make static.
10909         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
10910         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
10911         (cris_option_optimization): New.
10912         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
10913         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
10914         (crx_option_optimization): New.
10915         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
10916         * config/frv/frv-protos.h (frv_optimization_options): Remove.
10917         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
10918         (frv_optimization_options): Rename to frv_option_optimization.
10919         Make static.
10920         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
10921         * config/h8300/h8300.c (h8300_option_optimization): New.
10922         (TARGET_OPTION_OPTIMIZATION): Define.
10923         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
10924         * config/i386/i386-protos.h (optimization_options): Remove.
10925         * config/i386/i386.c (optimization_options): Rename to
10926         ix86_option_optimization.  Make static.
10927         (TARGET_OPTION_OPTIMIZATION): Define.
10928         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
10929         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
10930         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
10931         (ia64_optimization_options): Rename to ia64_option_optimization.
10932         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
10933         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
10934         commented-out definition.
10935         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
10936         instead of OPTIMIZATION_OPTIONS.
10937         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
10938         (m32r_option_optimization): New.
10939         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
10940         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
10941         Remove.
10942         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
10943         (mcore_option_optimization): New.
10944         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
10945         * config/mep/mep-protos.h (mep_optimization_options): Remove.
10946         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
10947         (mep_optimization_options): Rename to mep_option_optimization.
10948         Make static.  Take unused level and size parameters.
10949         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
10950         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
10951         (mmix_option_optimization): New.
10952         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
10953         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
10954         (pdp11_option_optimization): New.
10955         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
10956         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
10957         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
10958         (optimization_options): Rename to rs6000_option_optimization.
10959         Make static.
10960         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
10961         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
10962         * config/rx/rx.c (rx_set_optimization_options): Rename to
10963         rx_option_optimization.  Make static.  Take unused level and size
10964         parameters.
10965         (TARGET_OPTION_OPTIMIZATION): Define.
10966         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
10967         * config/s390/s390-protos.h (optimization_options): Remove.
10968         * config/s390/s390.c (optimization_options): Rename to
10969         s390_option_optimization.  Make static.  Don't mark size parameter
10970         unused.
10971         (TARGET_OPTION_OPTIMIZATION): Define.
10972         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
10973         * config/sh/sh-protos.h (sh_optimization_options): Remove.
10974         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
10975         (sh_optimization_options): Rename to sh_option_optimization.  Make
10976         static.  Don't mark parameters unused.
10977         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
10978         * config/spu/spu-protos.h (spu_optimization_options): Remove.
10979         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
10980         (spu_optimization_options): Rename to spu_option_optimization.
10981         Make static.
10982         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
10983         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
10984         (v850_option_optimization): New.
10985         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
10986         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
10987         (xtensa_option_optimization): New.
10988         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
10989
10990 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
10991
10992         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
10993         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
10994         * doc/tm.texi: Regenerate.
10995         * system.h (OVERRIDE_OPTIONS): Poison.
10996         * target.def (override): Default to hook_void_void.
10997         * targhooks.c (default_target_option_override): Remove.
10998         * genmodes.c, machmode.def: Update comments mentioning
10999         OVERRIDE_OPTIONS.
11000         * config/alpha/alpha-modes.def: Update comment mentioning
11001         alpha_override_options.
11002         * config/alpha/alpha-protos.h (override_options): Remove.
11003         * config/alpha/alpha.c (override_options): Rename to
11004         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
11005         (TARGET_OPTION_OVERRIDE): Define.
11006         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
11007         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
11008         of OVERRIDE_OPTIONS.
11009         * config/arc/arc-protos.h (arc_init): Remove.
11010         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
11011         (arc_init): Rename to arc_option_override.  Make static.
11012         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
11013         (OVERRIDE_OPTIONS): Remove.
11014         * config/arm/arm-protos.h (arm_override_options): Remove.
11015         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
11016         (arm_override_options): Rename to arm_option_override.  Make
11017         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11018         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
11019         * config/arm/arm.md: Update comment referring to arm_override_options.
11020         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11021         instead of OVERRIDE_OPTIONS.
11022         * config/avr/avr-protos.h (avr_override_options): Remove.
11023         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
11024         (avr_override_options): Rename to avr_option_override.  Make static.
11025         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
11026         * config/bfin/bfin-protos.h (override_options): Remove (twice).
11027         * config/bfin/bfin.c (override_options): Rename to
11028         bfin_option_override.  Make static.
11029         (TARGET_OPTION_OVERRIDE): Define.
11030         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
11031         * config/cris/cris-protos.h (cris_override_options): Remove.
11032         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
11033         (cris_override_options): Rename to cris_option_override.  Make static.
11034         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
11035         * config/frv/frv-protos.h (frv_override_options): Remove.
11036         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
11037         (frv_override_options): Rename to frv_option_override.  Make static.
11038         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
11039         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
11040         * config/h8300/h8300.c (h8300_init_once): Rename to
11041         h8300_option_override.  Make static.
11042         (TARGET_OPTION_OVERRIDE): Define.
11043         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
11044         * config/i386/i386-protos.h (override_options): Remove.
11045         * config/i386/i386.c (override_options): Rename to
11046         ix86_option_override_internal.  Make static.  Comments referring
11047         to this function and callers changed.
11048         (ix86_option_override): New.
11049         (TARGET_OPTION_OVERRIDE): Define.
11050         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
11051         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
11052         * config/ia64/ia64.c (ia64_file_start): Update comment referring
11053         to ia64_override_options.
11054         * config/iq2000/iq2000-protos.h (override_options): Remove.
11055         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
11056         (override_options): Rename to iq2000_option_override.  Make static.
11057         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
11058         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
11059         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
11060         (lm32_override_options): Rename to lm32_option_override.  Make static.
11061         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
11062         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
11063         (m32r_option_override): New.
11064         (m32r_init): Update comment.
11065         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
11066         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
11067         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
11068         (m68hc11_override_options): Rename to m68hc11_option_override.
11069         Make static.  Return void.
11070         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
11071         * config/m68k/m68k-protos.h (override_options): Remove.
11072         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
11073         (override_options): Rename to m68k_option_override.  Make static.
11074         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
11075         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
11076         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
11077         (mcore_override_options): Rename to mcore_option_override.  Make
11078         static.
11079         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
11080         * config/mep/mep-protos.h (mep_override_options): Remove.
11081         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
11082         (mep_override_options): Rename to mep_option_override.  Make static.
11083         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
11084         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
11085         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
11086         (mmix_override_options): Rename to mmix_option_override.  Make static.
11087         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
11088         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
11089         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
11090         (mn10300_override_options): Rename to mn10300_option_override.
11091         Make static.
11092         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
11093         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
11094         * config/moxie/moxie.c (moxie_override_options): Rename to
11095         moxie_option_override.  Make static.
11096         (TARGET_OPTION_OVERRIDE): Define.
11097         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
11098         * config/picochip/picochip-protos.h (picochip_override_options):
11099         Remove.  Update comment referring to picochip_override_options.
11100         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
11101         (picochip_override_options): Rename to picochip_option_override.
11102         Make static.  Update comment and definition of
11103         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
11104         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
11105         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11106         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11107         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11108         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11109         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11110         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
11111         instead of OVERRIDE_OPTIONS.
11112         * config/rs6000/rs6000-modes.def: Update comment referring to
11113         rs6000_override_options.
11114         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
11115         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
11116         (rs6000_override_options): Rename to
11117         rs6000_option_override_internal.  Make static.  Commented
11118         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
11119         (rs6000_option_override): New.
11120         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
11121         instead of OVERRIDE_OPTIONS.
11122         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11123         * config/s390/s390-protos.h (override_options): Remove.
11124         * config/s390/s390.c (override_options): Rename to
11125         s390_option_override.  Make static.
11126         (TARGET_OPTION_OVERRIDE): Define.
11127         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
11128         * config/score/score-protos.h (score_override_options): Remove.
11129         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
11130         (score_override_options): Rename to score_option_override.  Make
11131         static.
11132         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
11133         Update comment referring to override_options.
11134         * config/score/score3.c (score3_override_options): Rename to
11135         score3_option_override.
11136         * config/score/score3.h (score3_override_options): Rename to
11137         score3_option_override.
11138         * config/score/score7.c (score7_override_options): Rename to
11139         score7_option_override.
11140         * config/score/score7.h (score7_override_options): Rename to
11141         score7_option_override.
11142         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
11143         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
11144         (sparc_override_options): Rename to sparc_option_override.  Make
11145         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11146         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
11147         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11148         instead of OVERRIDE_OPTIONS.
11149         * config/spu/spu-protos.h (spu_override_options): Remove.
11150         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
11151         (spu_override_options): Rename to spu_option_override.  Make
11152         static.
11153         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
11154         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
11155         OVERRIDE_OPTIONS.
11156         * config/vax/vax-protos.h (override_options): Remove.
11157         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
11158         (override_options): Rename to vax_option_override.  Make static.
11159         Call SUBTARGET_OVERRIDE_OPTIONS.
11160         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
11161         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
11162         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
11163         * config/xtensa/xtensa-protos.h (override_options): Remove.
11164         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
11165         (override_options): Rename to xtensa_option_override.  Make static.
11166         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
11167
11168 2010-09-16  Richard Guenther  <rguenther@suse.de>
11169
11170         PR tree-optimization/45623
11171         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
11172         (get_constraint_for_component_ref): If computing a constraint
11173         for the rhs handle type punning through unions.
11174         (get_constraint_for_address_of): Adjust.
11175         (get_constraint_for_1): Likewise.
11176         (get_constraint_for): Likewise.
11177         (get_constraint_for_rhs): New function.
11178         (do_structure_copy): Adjust.
11179         (make_constraint_to): Likewise.
11180         (handle_const_call): Likewise.
11181         (find_func_aliases): Likewise.
11182         (process_ipa_clobber): Likewise.
11183         (create_variable_info_for): Likewise.
11184
11185 2010-09-16  Ira Rosen  <irar@il.ibm.com>
11186
11187         * tree-vectorizer.c: Fix documentation.
11188         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
11189         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
11190         is_pattern_stmt_p, is_loop_header_bb_p,
11191         stmt_vinfo_set_inside_of_loop_cost,
11192         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
11193         known_alignment_for_access_p): Likewise.
11194         * tree-vect-loop.c: Fix documentation.
11195         (vect_get_cost): Start function name from new line.
11196         * tree-vect-data-refs.c: Fix documentation.
11197         * tree-vect_stmts.c: Likewise.
11198         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
11199         (vectorizable_store): Free vec_oprnds if allocated.
11200         (vectorizable_condition): Initialize several variables to avoid
11201         warnings.
11202         * tree-vect-slp.c: Fix documentation.
11203
11204 2010-09-16  Richard Guenther  <rguenther@suse.de>
11205
11206         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
11207         is TS_TRANSLATION_UNIT_DECL.
11208         (initialize_tree_contains_struct): Adjust.
11209         (all_translation_units): New global vector.
11210         (build_translation_unit_decl): New function.
11211         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
11212         (struct tree_translation_unit_decl): New.
11213         (all_translation_units): Declare.
11214         (union tree_node): Add translation_unit_decl member.
11215         (build_translation_unit_decl): Declare.
11216         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
11217         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
11218         New function.
11219         (pack_value_fields): Call it.
11220         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
11221         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
11222         (lto_output_tree_pointers): Call it.
11223         * lto-streamer-in.c (lto_input_tree_ref): Handle references
11224         to TRANSLATION_UNIT_DECL.
11225         (unpack_ts_translation_unit_decl_value_fields): New function.
11226         (unpack_value_fields): Call it.
11227         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
11228         (lto_input_tree_pointers): Call it.
11229         * lto-streamer.c (check_handled_ts_structures): Adjust.
11230         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
11231         * c-decl.c (all_translation_units): Remove.
11232         (pop_scope): Use build_translation_unit_decl.
11233         (collect_all_refs): Adjust.
11234         (for_each_global_decl): Likewise.
11235         (c_write_global_declarations): Likewise.
11236
11237 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
11238
11239         PR bootstrap/45686
11240         * fold-const.c (fold_checksum_tree): Change slot from const void **
11241         to void **, use CONST_CAST_TREE to store into *slot.
11242
11243 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11244
11245         * config/i386/i386.md: Remove unneeded empty conditions and
11246         preparation statements from expanders.
11247         * config/i386/mmx.md: Ditto.
11248         * config/i386/sse.md: Ditto.
11249
11250 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11251
11252         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
11253
11254 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11255
11256         PR rtl-optimization/45593
11257         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
11258         insns that were in delay slots as stand-alone insns.
11259
11260 2010-09-15  Ian Lance Taylor  <iant@google.com>
11261
11262         * incpath.c (remove_duplicates): If name is not a directory, issue
11263         a warning rather than an error.
11264
11265 2010-09-15  Martin Jambor  <mjambor@suse.cz>
11266
11267         PR middle-end/45644
11268         * tree-sra.c (create_access): Check for bit-fields directly.
11269
11270 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
11271
11272         PR tree-optimization/45633
11273         * tree-cfg.c (verify_gimple_assign_binary): Allow
11274         MINUS_EXPR with lhs and rhs1 pointer vector and
11275         rhs2 sizetype vector.
11276         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
11277         or vector pointer use TER to optimize pointer subtraction.
11278
11279 2010-09-15  Jie Zhang  <jie@codesourcery.com>
11280
11281         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
11282         fcmpd to fcmps.
11283
11284 2010-09-15  Ian Lance Taylor  <iant@google.com>
11285
11286         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
11287
11288 2010-09-15  Ian Lance Taylor  <iant@google.com>
11289
11290         * function.c (get_arg_pointer_save_area): Set
11291         arg_pointer_save_area_init to true.
11292
11293 2010-09-15  Martin Jambor  <mjambor@suse.cz>
11294
11295         * tree-sra.c (generate_subtree_copies): Updated comment.
11296         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
11297         obtained from the statement iterator instead.
11298         (load_assign_lhs_subreplacements): Removed parameters lhs and
11299         right_offset, which is obtained from top_racc instead.  Parameter lacc
11300         is now expected to be the root of the processed tree rather than root's
11301         first child.  Updated all callers.
11302
11303 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11304
11305         * config/pdp11/pdp11.c (register_move_cost): Rename to
11306         pdp11_register_move_cost.
11307         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
11308         pdp11_register_move_cost.
11309         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
11310         pdp11_register_move_cost instead of register_move_cost.
11311
11312 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
11313
11314         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
11315         pattern for vmovn. Expansion in case of non
11316         -mvectorize-with-neon-quad.
11317         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
11318         non- -mvectorize-with-neon-quad case.
11319         (move_lo_quad_<mode>): New expansion to vmov into low part.
11320         (move_hi_quad_<mode>): New expansion to vmov into high part.
11321         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
11322         (move_lo_quad_v4sf): Likewise.
11323         (move_lo_quad_v8hi): Likewise.
11324         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
11325         low part.
11326         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
11327         high part.
11328         * config/arm/iterators.md (ANY128): New mode iterator.
11329         (V_narrow_pack): New mode attribute.
11330         (V_HALF): Add attribute.
11331         (V_DOUBLE): Add attribute.
11332         (V_mode_nunits): Add attribute.
11333
11334 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11335
11336         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
11337         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
11338
11339 2010-09-15  Olivier Hainque  <hainque@adacore.com>
11340             Jose Ruiz  <ruiz@adacore.com>
11341
11342         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
11343         * config/alpha/osf5-unwind.h: New file.
11344
11345 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11346
11347         PR bootstrap/45672
11348         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
11349         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11350         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11351
11352 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11353
11354         * c-lang.h (struct lang_type): Add variable_size GTY option.
11355
11356 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11357
11358         PR bootstrap/45672
11359         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11360
11361 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11362
11363         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
11364         result isn't used in memory address.
11365
11366 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11367
11368         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
11369         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
11370         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11371         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11372         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11373         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11374
11375         * target.def: Add units_per_simd_word to vectorize.
11376
11377         * targhooks.c (default_units_per_simd_word): New.
11378         * targhooks.h (default_units_per_simd_word): Likewise.
11379         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
11380         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11381         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
11382         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11383         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11384         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11385         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11386         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11387
11388         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
11389         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
11390
11391         * tree-vect-stmts.c: Don't include "tm_p.h".
11392         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
11393         with targetm.vectorize.units_per_simd_word.
11394
11395         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
11396
11397         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
11398
11399         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
11400         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11401
11402         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
11403         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
11404
11405         * doc/tm.texi: Regenerated.
11406
11407 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11408
11409         * tree-vect-stmts.c: Include "tm_p.h".
11410
11411         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
11412         out of RTX_CODE.
11413
11414 2010-09-14  Martin Jambor  <mjambor@suse.cz>
11415
11416         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
11417         location of generated statement.  Changed all callers.
11418         (build_ref_for_model): New parameter loc which used to set location of
11419         all generated expressions.  Changed all callers.
11420         (generate_subtree_copies): Likewise.
11421         (init_subtree_with_zero): Likewise.
11422         (sra_modify_expr): Set locations of all generated statements and
11423         expressions to the location the original statement.
11424         (handle_unscalarized_data_in_subtree): Likewise.
11425         (load_assign_lhs_subreplacements): Likewise.
11426         (sra_modify_constructor_assign): Likewise.
11427         (sra_modify_assign): Likewise.
11428
11429 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
11430
11431         PR target/45277
11432         PR target/45363
11433         PR target/45407
11434         * doc/install.texi (sparc*-*-*): New section.
11435         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
11436
11437 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
11438
11439         PR middle-end/45567
11440         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
11441         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
11442         (expand_builtin): Adjust caller.
11443         (expand_builtin_unop): Only use subtarget if it has the right mode.
11444
11445 2010-09-14  Tristan Gingold  <gingold@adacore.com>
11446
11447         * configure.ac (plugins): Fix typos.
11448         * configure: Regenerate.
11449
11450 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR debug/45660
11453         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
11454         gen_type_die for function/method return type.
11455
11456 2010-09-14  Ira Rosen  <irar@il.ibm.com>
11457
11458         PR tree-optimization/45470
11459         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11460         can throw an exception.
11461         * tree-vect-stmts.c (vectorizable_call): Likewise.
11462
11463 2010-09-14  DJ Delorie  <dj@redhat.com>
11464
11465         PR target/44749
11466         * config/mep/mep-protos.h (mep_save_register_info,
11467         mep_reinit_regs, mep_init_regs): Declare.
11468
11469         * config/mep/mep.c: Move all target definitions to the end of the
11470         file to avoid the need for duplicate declarations.
11471         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
11472         (mep_reorg_erepeat): Remove unused variables.
11473         (mep_expand_builtin): Likewise.
11474
11475         * config/mep/mep-pragma.c: Don't include rtl.h.
11476         (INVALID_REGNUM): New.
11477         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
11478         functions.
11479         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
11480         Avoid enum/integer math.
11481
11482 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
11483
11484         PR target/44749
11485         * config/mep/t-mep (GTM_H): Add insn-constants.h.
11486         * config/mep/mep.c (mep_conditional_register_usage): Take no
11487         parameters.
11488         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
11489         prototype.
11490         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
11491         call to mep_conditional_register_usage.
11492
11493 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
11494
11495         PR debug/43937
11496         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
11497         the DECL as well.
11498
11499 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
11500
11501         PR rtl-optimization/45617
11502         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
11503         even if low N bits of X aren't known to be zero.
11504
11505 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
11506
11507         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
11508
11509         * config/i386/i386.c (initial_ix86_tune_features): Add
11510         X86_TUNE_VECTORIZE_DOUBLE.
11511         (ix86_units_per_simd_word): New.
11512
11513         * config/i386/i386.h (ix86_tune_indices): Add
11514         X86_TUNE_VECTORIZE_DOUBLE.
11515         (TARGET_VECTORIZE_DOUBLE): New.
11516         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
11517
11518 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
11519
11520         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
11521         (new_temp_expr_table): Allocate call_cnt vector.
11522         (free_temp_expr_table): Free it.
11523         (process_replaceable): Add call_cnt parm and set in vector.
11524         (find_replaceable_in_bb): Skip replacement if def/use span a call.
11525         (debug_ter): Dump call_cnt value, remove stderr uses.
11526
11527 2010-09-13  Jan Hubicka  <jh@suse.cz>
11528
11529         * tree.c (build_zero_cst): New.
11530         * tree.h (build_zero_cst): Declare.
11531         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
11532         (get_base_constructor): Break out from ...
11533         (fold_const_aggregate_ref): Here; handle empty constructors.
11534
11535 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11536
11537         * config/arm/arm.md: (define_attr "conds"): Update comment.
11538         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
11539         conds attribute to clob.
11540         (arm_sync_compare_and_swapsi): Likewise.
11541         (arm_sync_compare_and_swap<mode>): Likewise.
11542         (arm_sync_lock_test_and_setsi): Likewise.
11543         (arm_sync_lock_test_and_set<mode>): Likewise.
11544         (arm_sync_new_<sync_optab>si): Likewise.
11545         (arm_sync_new_nandsi): Likewise.
11546         (arm_sync_new_<sync_optab><mode>): Likewise.
11547         (arm_sync_new_nand<mode>): Likewise.
11548         (arm_sync_old_<sync_optab>si): Likewise.
11549         (arm_sync_old_nandsi): Likewise.
11550         (arm_sync_old_<sync_optab><mode>): Likewise.
11551         (arm_sync_old_nand<mode>): Likewise.
11552
11553 2010-09-13  Olivier Hainque  <hainque@adacore.com>
11554
11555         * fwprop.c (forward_propagate_and_simplify): Only attach a
11556         REG_EQUAL note to an insn if the destination is a register.
11557         * gcse.c (try_replace_reg): Likewise.
11558
11559 2010-09-13  Richard Guenther  <rguenther@suse.de>
11560
11561         PR tree-optimization/45611
11562         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
11563         (copy_ref_info): Likewise.
11564
11565 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
11566
11567         PR debug/45604
11568         PR debug/45419
11569         PR debug/45408
11570         * tree-pretty-print.c (dump_generic_node): Disregard top-level
11571         types of MEM_REF pointer types to the same type.
11572
11573 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
11574
11575         PR rtl-optimization/41087
11576         * ifcvt.c (noce_get_condition): Don't allow conditions with
11577         side-effects.
11578
11579 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
11580
11581         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11582         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
11583         * config/frv/frv.c (frv_register_move_cost): Make static. Change
11584         arguments type to reg_class_t. Add mode argument.
11585         (frv_memory_move_cost): New.
11586         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
11587
11588 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
11589
11590         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
11591         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
11592
11593 2010-09-10  Jan Hubicka  <jh@suse.cz>
11594
11595         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
11596
11597 2010-09-10  Richard Guenther  <rguenther@suse.de>
11598
11599         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
11600         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
11601         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
11602         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
11603         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
11604
11605 2010-09-10  Richard Guenther  <rguenther@suse.de>
11606
11607         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
11608         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
11609         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
11610         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
11611
11612 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
11613
11614         PR middle-end/45634
11615         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
11616         of string folding is of integral type.
11617
11618 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
11619
11620         * doc/invoke.texi (-x): Fix typo.
11621
11622 2010-09-10  Richard Guenther  <rguenther@suse.de>
11623
11624         PR debug/44115
11625         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
11626         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11627         Output DECL_DEBUG_EXPR.
11628         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11629         Input DECL_DEBUG_EXPR.
11630
11631 2010-09-10  Richard Guenther  <rguenther@suse.de>
11632
11633         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
11634         (build_index_type): Implement in terms of build_range_type.
11635         (build_range_type): Do not allow NULL_TREE type, improve
11636         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
11637         if we didn't hash.
11638         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
11639         create a distinct copy of the type.
11640
11641 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
11642
11643         * configure: Regenerated.
11644         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
11645
11646 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11647
11648         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
11649         * config/arm/cortex-a9-neon.md: New and partially generated.
11650         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
11651
11652 2010-09-10  Richard Guenther  <rguenther@suse.de>
11653
11654         * tree.h (build_index_2_type): Remove.
11655         * tree.c (build_index_2_type): Remove.
11656
11657 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
11658
11659         PR bootstrap/45630
11660         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
11661         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
11662         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
11663
11664 2010-09-10  Martin Jambor  <mjambor@suse.cz>
11665
11666         PR tree-optimization/44972
11667         * tree-sra.c: Include toplev.h.
11668         (build_ref_for_offset): Entirely reimplemented.
11669         (build_ref_for_model): New function.
11670         (build_user_friendly_ref_for_offset): New function.
11671         (analyze_access_subtree): Removed build_ref_for_offset check.
11672         (propagate_subaccesses_across_link): Likewise.
11673         (create_artificial_child_access): Use
11674         build_user_friendly_ref_for_offset.
11675         (propagate_subaccesses_across_link): Likewise.
11676         (ref_expr_for_all_replacements_p): Removed.
11677         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
11678         (sra_modify_expr): Use build_ref_for_model.
11679         (load_assign_lhs_subreplacements): Likewise.
11680         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
11681         checks for return values of build_ref_for_offset.
11682         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
11683         build_ref_for_offset.
11684         * ipa-prop.h: Include gimple.h
11685         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
11686         (ipa_analyze_indirect_call_uses): Update comment.
11687         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
11688         (IPA_PROP_H): Likewise.
11689
11690 2010-09-10  Martin Jambor  <mjambor@suse.cz>
11691
11692         PR tree-optimization/44972
11693         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
11694         calling build_ref_for_offset.
11695
11696 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11697
11698         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
11699         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
11700         * config/arm/arm-tune.md: Regenerate.
11701         * doc/invoke.texi (ARM Options): Document it.
11702
11703 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
11704
11705         * config/i386/i386.c: Include sched-int.h.
11706         (TARGET_SCHED_DISPATCH): Defined.
11707         (TARGET_SCHED_DISPATCH_DO): Defined.
11708         (DISPATCH_WINDOW_SIZE): Defined.
11709         (MAX_DISPATCH_WINDOWS): Defined.
11710         (MAX_INSN): Defined.
11711         (MAX_IMM): Defined.
11712         (MAX_IMM_SIZE): Defined.
11713         (MAX_IMM_32): Defined.
11714         (MAX_IMM_64): Defined.
11715         (MAX_LOAD): Defined.
11716         (MAX_STORE): Defined.
11717         (BIG): Defined.
11718         (dispatch_group): New.
11719         (num_allowable_groups): New.
11720         (group_name): New.
11721         (sched_insn_info_s): New.
11722         (dispatch_windows_s): New.
11723         (imm_info_s): New.
11724         (dispatch_window_list): New.
11725         (dispatch_window_list1): New.
11726         (get_mem_group): New.
11727         (is_cmp): New.
11728         (dispatch_violation): New.
11729         (is_branch): New.
11730         (is_prefetch): New.
11731         (init_window): New.
11732         (allocate_window): New.
11733         (init_dispatch_sched): New.
11734         (is_end_basic_block): New.
11735         (process_end_window): New.
11736         (allocate_next_window): New.
11737         (find_constant_1): New.
11738         (find_constant): New.
11739         (get_num_immediates): New.
11740         (has_immediate): New.
11741         (get_insn_path): New.
11742         (get_insn_group): New.
11743         (count_num_restricted): New.
11744         (fits_dispatch_window): New.
11745         (add_insn_window): New.
11746         (add_to_dispatch_window): New.
11747         (debug_dispatch_window_file): New.
11748         (debug_dispatch_window): New.
11749         (debug_insn_dispatch_info_file): New.
11750         (debug_ready_dispatch): New.
11751         (do_dispatch): New.
11752         (has_dispatch): New.
11753         * config/i386/i386.h (debug_ready_dispatch): Declared.
11754         (debug_dispatch_window): Declared.
11755         * config/i386/i386.opt (mdispatch-scheduler): New flag.
11756         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
11757         (TARGET_SCHED_DISPATCH_DO): New.
11758         * doc/tm.texi: Regererated.
11759         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
11760         ready_remove_first_dispatch
11761         (schedule_block): Call targetm.sched.dispatch and
11762         targetm.sched.dispatch_do.
11763         (sched_init): Call targetm.sched.dispatch and
11764         targetm.sched.dispatch_do.
11765         (ready_remove_first_dispatch): New.
11766         (number_in_ready): New.
11767         (get_ready_element): New.
11768         * hooks.c (hook_bool_rtx_int_false): New.
11769         (hook_void_rtx_int): New.
11770         * hooks.h (hook_bool_rtx_int_false): Declared.
11771         (hook_void_rtx_int): Declared.
11772         * sched-int.h (IS_DISPATCH_ON): Defined.
11773         (IS_CMP): Defined.
11774         (DISPATCH_VIOLATION): Defined.
11775         (FITS_DISPATCH_WINDOW): Defined.
11776         (DISPATCH_INIT): Defined.
11777         (ADD_TO_DISPATCH_WINDOW): Defined.
11778         (get_ready_element): Declared.
11779         (number_in_ready): Declared.
11780         * target.def (dispatch): Defined.
11781         (dispatch_do): Defined.
11782
11783 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
11784
11785         PR middle-end/45312
11786         * reload1.c (merge_assigned_reloads): Remove.
11787         (reload_as_needed): Don't call it.
11788
11789 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
11790
11791         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
11792         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11793         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11794
11795 2010-09-09  Matthias Klose  <doko@ubuntu.com>
11796
11797         PR bootstrap/43847
11798         * configure.ac (--enable-plugin): Enhance for cross builds.
11799         * configure: Regenerate.
11800
11801 2010-09-09  Jan Hubicka  <jh@suse.cz>
11802
11803         PR tree-optimization/45598
11804         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
11805         string folding is of integral type.
11806
11807 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
11808
11809         * configure.ac (gnu_indirect_function): New test.
11810         * configure: Rebuilt.
11811         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
11812         * defaults.h (IFUNC_ASM_TYPE): Provide default.
11813
11814         * doc/extend.texi (Function Attributes): Document ifunc.
11815         * varasm.c (do_assemble_alias): Deal with ifuncs too.
11816
11817 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
11818
11819         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
11820         epilogue instruction move.
11821
11822 2010-09-09  Jan Hubicka  <jh@suse.cz>
11823
11824         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
11825         command line to allow more partitions than input files.
11826
11827 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
11828
11829         PR middle-end/44554
11830         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
11831
11832 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
11833
11834         PR middle-end/40386
11835         * ira.c (pseudo_for_reload_consideration_p): Don't use
11836         flag_ira_share_spill_slots.
11837
11838 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11839
11840         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
11841         point zero operands that fit into a single GPR.
11842         (s390_preferred_reload_class): Ensure we only return general-purpose
11843         register classes.
11844         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
11845         floating-point zero operands into GPRs.
11846         ("*mov<mode>_64"): Likewise.
11847         ("mov<mode>"): Likewise using lhi.
11848
11849 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11850
11851         * config/s390/s390.c (s390_symref_operand_p): Return false for
11852         literal pool references.
11853         (s390_check_qrst_address): Update caller.
11854
11855 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
11856
11857         * config/i386/predicates.md (ext_register_operand): Check that
11858         SUBREG_REG is really a register before looking for REGNO.
11859         (reg_not_xmm0_operand): Handle SUBREGs correctly.
11860         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
11861
11862 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
11863
11864         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
11865         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
11866         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
11867         * print-rtl.c (print_rtx): Likewise.
11868         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11869         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
11870         for ADDR_EXPR with non-addressable object.
11871         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
11872         (struct dw_val_struct): Add v.val_decl_ref.
11873         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
11874         Handle DW_OP_GNU_implicit_pointer.
11875         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
11876         (get_ref_die_offset_label): New function.
11877         (implicit_ptr_descriptor): New function.
11878         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
11879         (loc_descriptor): Likewise.
11880         (gen_variable_die): Put even definitions into decl_die_table.
11881         (resolve_addr_in_expr): Resolve still unresolved
11882         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
11883         return false.
11884         (dwarf2out_finish): Call output_location_lists after outputting
11885         .debug_info and .debug_abbrev instead of before.
11886
11887 2010-09-09  Roland McGrath  <roland@redhat.com>
11888
11889         * dwarf2out.c (DWARF_REF_SIZE): Define.
11890         (size_of_loc_descr): Use it for DW_OP_call_ref.
11891
11892 2010-09-09  Alan Modra  <amodra@gmail.com>
11893
11894         * doc/invoke.text: Reinstate mcmodel=medium.
11895         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11896         CMODEL_MEDIUM as default.
11897         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
11898         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
11899         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
11900         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
11901
11902 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11903
11904         PR target/45250
11905         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
11906         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
11907         (builtin_longjmp): Likewise.
11908         (allocate_stack): Use hard_frame_pointer_rtx instead of
11909         frame_pointer_rtx.
11910         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
11911         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
11912         (pa_can_eliminate): Likewise.
11913         (TARGET_INTERNAL_ARG_POINTER): Define.
11914         (TARGET_CAN_ELIMINATE): Define.
11915         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
11916         pointer.
11917         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
11918         (pa_internal_arg_pointer, pa_can_eliminate,
11919         pa_initial_elimination_offset): New.
11920         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
11921         (HARD_FRAME_POINTER_REGNUM): Set to register three.
11922         (INITIAL_FRAME_POINTER_OFFSET): Delete.
11923         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
11924         Define.
11925         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
11926         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
11927         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
11928         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
11929         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
11930         new soft frame pointer.
11931         * config/pa/pa64-regs.h: Likewise.
11932
11933 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
11934
11935         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
11936         numerical constant.
11937         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
11938
11939 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
11940
11941         PR debug/45531
11942         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
11943
11944 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
11945
11946         PR debug/45419
11947         PR debug/45408
11948         * tree-pretty-print.c (dump_generic_node): Disregard top-level
11949         qualifiers in otherwise equal MEM_REF pointer types.
11950         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
11951         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
11952
11953 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11954
11955         PR target/44392
11956         * config/arm/arm.md (bswapsi2): Handle condition correctly
11957         for armv6 and optimize_size.
11958
11959 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11960
11961         PR other/18555
11962         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
11963
11964 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
11965
11966         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
11967         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
11968         ix86_expand_strlen, legitimate_pic_address_disp_p,
11969         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
11970         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
11971         ix86_check_movabs, ix86_secondary_memory_needed): Change function
11972         prototype to bool.
11973         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
11974         return_in_memory_ms_64, ix86_check_movabs,
11975         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
11976         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
11977         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
11978         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
11979         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
11980         ix86_secondary_memory_needed): Change to bool.  Return
11981         "true" and "false" values.
11982         * config/i386/i386.md: Return "true" and "false" values.
11983
11984 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11985
11986         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11987         run_expensive_tests.
11988
11989 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11990
11991         * toplev.c (output_stack_usage): Use lbasename instead of basename.
11992
11993 2010-09-08  Martin Jambor  <mjambor@suse.cz>
11994
11995         PR other/45443
11996         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
11997         at -O3.
11998
11999 2010-09-08  Richard Guenther  <rguenther@suse.de>
12000
12001         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
12002         (visit): Adjust.
12003         (iterative_hash_gimple_type): Likewise.
12004         (gimple_type_hash): Likewise.
12005         (gimple_register_type): Likewise.
12006         (print_gimple_types_stats): Likewise.
12007         (free_gimple_type_tables): Likewise.
12008
12009 2010-09-08  Michael Matz  <matz@suse.de>
12010
12011         PR tree-optimization/43430
12012         * tree-vect-stmts.c (vectorizable_condition): Support multiple
12013         copies for conditional statements if it's not part of a reduction.
12014
12015 2010-09-08  Michael Matz  <matz@suse.de>
12016
12017         PR tree-optimization/33244
12018         * tree-ssa-sink.c (statement_sink_location): Don't sink into
12019         empty loop latches.
12020
12021 2010-09-08  Richard Guenther  <rguenther@suse.de>
12022
12023         PR tree-optimization/45578
12024         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
12025         Be more careful when transfering alignment information to
12026         the new induction variable.
12027         (copy_ref_info): Likewise.
12028
12029 2010-09-08  Richard Guenther  <rguenther@suse.de>
12030
12031         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
12032         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
12033
12034 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
12035
12036         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
12037         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
12038
12039 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12040
12041         PR doc/45587
12042         * doc/md.texi: Fixed modes on several standard pattern names.
12043
12044 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
12045
12046         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
12047         (ashl<mode>3): ...this.
12048         (loongson_psra<V_suffix>): Rename to...
12049         (ashr<mode>3): ...this.
12050         (loongson_psrl<V_suffix>): Rename to...
12051         (lshr<mode>3): ...this.
12052         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
12053         (CODE_FOR_loongson_psllw): Define.
12054         (CODE_FOR_loongson_psrlh): Define.
12055         (CODE_FOR_loongson_psrlw): Define.
12056         (CODE_FOR_loongson_psrah): Define.
12057         (CODE_FOR_loongson_psraw): Define.
12058
12059 2010-09-07  Richard Henderson  <rth@redhat.com>
12060
12061         * tree-vect-data-refs.c: Include tm_p.h.
12062         * Makefile.in (tree-vect-data-refs.o): Update deps.
12063         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
12064         Move delarations outside #ifdef RTX_CODE.
12065
12066 2010-09-07  Richard Henderson  <rth@redhat.com>
12067
12068         * final.c (rest_of_handle_final): Unconditionally do
12069         output_function_exception_table before assemble_end_function.
12070
12071 2010-09-07  Jan Hubicka  <jh@suse.cz>
12072
12073         * tree-inline.c (tree_inlinable_function_p): Do not test
12074         DECL_REPLACEABLE_P.
12075         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
12076         update_callee_keys, cgraph_decide_inlining): Test function availability.
12077         * cif-code.def (OVERWRITABLE): New code.
12078
12079 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
12080             Jack Howarth  <howarth@bromo.med.uc.edu>
12081
12082         PR target/36502
12083         PR target/42313
12084         PR target/44651
12085         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
12086         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
12087         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
12088         MAX macro.
12089
12090 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12091
12092         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
12093         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
12094
12095 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12096
12097         * config.gcc: Don't append t-android for Android targets.
12098
12099         * config/t-android: Removed.
12100
12101 2010-09-07  Richard Henderson  <rth@redhat.com>
12102
12103         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
12104         * doc/tm.texi.in: Add doc marker.
12105         * doc/tm.texi: Rebuild.
12106         * except.c (switch_to_exception_section): Always build.
12107         (output_one_function_exception_table): Move section switch,
12108         personality output, and label output ...
12109         (output_function_exception_table): ... here.  Use the new
12110         personality hook.
12111
12112         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
12113         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
12114         TARGET_ASM_INIT_SECTIONS): New.
12115         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
12116         make static.
12117         (TARGET_ASM_UNWIND_EMIT): Update to match.
12118         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
12119
12120         * config/arm/arm.c (arm_asm_emit_except_personality): New.
12121         (arm_asm_init_sections): New.
12122         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
12123
12124 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12125
12126         * config/arm/arm.md: Remove unused variable.
12127
12128 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
12129
12130         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12131         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
12132         (m32r_memory_move_cost): New function.
12133
12134 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12135
12136         * config.gcc: Append t-android for Android targets.
12137
12138         * config/t-android: New.
12139
12140 2010-09-07  Richard Henderson  <rth@redhat.com>
12141
12142         * target.def (unwind_emit_before_insn): New hook.
12143         * doc/tm.texi.in: Add @hook marker for it.
12144         * doc/tm.texi: Rebuild.
12145         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
12146
12147 2010-09-07  Martin Jambor  <mjambor@suse.cz>
12148
12149         PR fortran/43665
12150         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
12151         are any type attributes.
12152
12153 2010-09-07  Jan Hubicka  <jh@suse.cz>
12154
12155         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
12156         array_ref_low_bound in string access folding.
12157
12158 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
12159
12160         PR target/45206
12161         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
12162         eh_return fixup sequence.
12163
12164 2010-09-07  Jan Hubicka  <jh@suse.cz>
12165
12166         * gimple-fold.c (maybe_fold_reference): Verify that operand is
12167         gimple_min_invariant.
12168
12169 2010-09-07  Richard Guenther  <rguenther@suse.de>
12170
12171         PR middle-end/45569
12172         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
12173         nor CONSTRUCTOR can trap.
12174         * tree-complex.c (update_complex_assignment): Update EH info.
12175
12176 2010-09-07  Richard Guenther  <rguenther@suse.de>
12177
12178         PR middle-end/45569
12179         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
12180         * passes.c (execute_function_todo): Do not verify anything if
12181         we saw errors.
12182
12183 2010-09-07  Richard Guenther  <rguenther@suse.de>
12184
12185         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
12186
12187 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
12188
12189         PR target/43137
12190         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
12191         New define_mode_attrs.
12192         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
12193         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
12194         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
12195         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
12196         Remove pool_range attribute.
12197         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
12198         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
12199         pool_range and neg_pool_range attributes.
12200         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
12201         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
12202         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
12203
12204 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12205
12206         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
12207         check glibc.
12208
12209 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
12210
12211         PR target/22152
12212         * config/i386/mmx.md (*mov<mode>_internal_rex64,
12213         *mov<mode>_internal_avx, *mov<mode>_internal,
12214         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
12215         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
12216
12217 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
12218
12219         * c-typeck.c (do_warn_double_promotion): Remove.
12220         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
12221         Objective-C++ too.
12222
12223 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
12224
12225         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
12226         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
12227         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
12228         argument type to reg_class_t. Change result type to bool.
12229         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12230
12231 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
12232
12233         PR libobjc/19850
12234         * gthr-posix.h (__gthread_objc_thread_detach): Use
12235         _objc_thread_attribs when detaching a thread.
12236         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
12237
12238 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12239
12240         PR target/45524
12241         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
12242         * configure: Regenerated.
12243
12244 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12245
12246         * combine.c (try_combine): Set subst_low_luid to i0.
12247
12248 2010-09-06  Richard Guenther  <rguenther@suse.de>
12249
12250         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
12251         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
12252         (build_aligned_type): Declare.
12253         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
12254         (check_aligned_type): New function.
12255         (build_aligned_type): Likewise.
12256         * expr.c (expand_assignment): Handle misaligned stores via
12257         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
12258         (expand_expr_real_1): Likewise.
12259         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
12260         * tree-vect-stmts.c (vectorizable_store): Do not build
12261         MISALIGNED_INDIRECT_REF but initialize alignment information.
12262         (vectorizable_load): Likewise.
12263         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
12264         handling.
12265         * cfgexpand.c (expand_debug_expr): Likewise.
12266         * dwarf2out.c (loc_list_from_tree): Likewise.
12267         * fold-const.c (maybe_lvalue_p): Likewise.
12268         (operand_equal_p): Likewise.
12269         (build_fold_addr_expr_with_type_loc): Likewise.
12270         * gimplify.c (gimplify_addr_expr): Likewise.
12271         (gimplify_expr): Likewise.
12272         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
12273         (verify_gimple_assign_single): Likewise.
12274         * tree-dump.c (dequeue_and_dump): Likewise.
12275         (tree_could_trap_p): Likewise.
12276         * tree-predcom.c (ref_at_iteration): Likewise.
12277         * tree-pretty-print.c (dump_generic_node): Likewise.
12278         (op_code_prio): Likewise.
12279         (op_symbol_code): Likewise.
12280         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12281         * tree-ssa-loop-im.c (for_each_index): Likewise.
12282         (gen_lsm_tmp_name): Likewise.
12283         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
12284         (find_interesting_uses_address): Likewise.
12285         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
12286         * tree-ssa-operands.c (get_expr_operands): Likewise.
12287         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
12288         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12289         (ao_ref_init_from_vn_reference): Likewise.
12290         * tree.c (staticp): Likewise.
12291         (build1_stat): Likewise.
12292         (reference_alias_ptr_type): Likewise.
12293         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12294         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
12295         MISALIGNED_INDIRECT_REF handling.
12296
12297 2010-09-06  Richard Guenther  <rguenther@suse.de>
12298
12299         PR tree-optimization/45534
12300         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
12301         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
12302         on the target.
12303         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
12304         valid on the target.
12305
12306 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12307
12308         * configure.ac: Quote argument of AC_MSG_WARN.
12309         * configure: Regenerate.
12310
12311 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
12312
12313         * sel-sched.c (move_cond_jump): Correct arguments to
12314         maybe_tidy_empty_bb.
12315         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12316
12317 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
12318
12319         PR rtl-optimization/44919
12320         * sel-sched.c (move_cond_jump): Remove assert, check that
12321         the several blocks case can only happen with mutually exclusive
12322         insns instead.  Rewrite the movement code to support moving through
12323         several basic blocks.
12324
12325 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
12326
12327         * config/i386/i386.md (iptrsize): New mode attribute.
12328         (tp_seg): Ditto.
12329         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
12330         mode iterator.
12331         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
12332         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
12333         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
12334         (stack_tls_protect_set_<mode>): Ditto from
12335         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
12336         of thread base pointer load.
12337         (stack_tls_protect_test_<mode>): Ditto from
12338         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
12339         of thread base pointer load.
12340         (stack_protect_set): Rewrite using indirect functions.
12341         (stack_protect_test): Ditto.
12342         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
12343         (ix86_print_operand): Handle '@'.
12344
12345 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
12346
12347         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
12348         MINUS_EXPR.
12349
12350 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
12351
12352         * doc/invoke.texi: Document -Wdouble-promotion.
12353         * c-typeck.c (convert_arguments): Check for implicit conversions
12354         from float to double.
12355         (do_warn_double_promotion): New function.
12356         (build_conditional_expr): Use it.
12357         (build_binary_op): Likewise.
12358
12359 2010-09-05  Richard Guenther  <rguenther@suse.de>
12360
12361         PR tree-optimization/45535
12362         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
12363         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
12364         dereferencing it.
12365         (indirect_refs_may_alias_p): Likewise.
12366
12367 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
12368
12369         * config/sh/sh.c (sh_option_override): Make static.
12370         Adjust comments.  Declare.
12371         (sh_function_value_regno_p): Likewise.
12372         (sh_register_move_cost): Modify the arguments, make static.
12373         Adjust comments.  Declare.
12374         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
12375         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12376         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
12377         REGISTER_MOVE_COST): Delete.
12378         * config/sh/sh-protos.h (sh_override_options): Delete.
12379         (sh_register_move_cost): Delete.
12380         (sh_function_value_regno_p): Delete.
12381
12382 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
12383
12384         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
12385         m32r_function_value_regno_p): New functions.
12386         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12387         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
12388         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
12389         FUNCTION_VALUE_REGNO_P): Remove.
12390
12391 2010-09-04  Jan Hubicka  <jh@suse.cz>
12392
12393         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
12394         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
12395         fold_read_from_constant_string.
12396
12397         * gimple.h (canonicalize_constructor_val): Declare.
12398         * gimple-fold.c (canonicalize_constructor_val): New function.
12399         (get_symbol_constant_value):Use it.
12400         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
12401
12402 2010-09-04  Jan Hubicka  <jh@suse.cz>
12403
12404         * tree-switch-conversion.c (build_one_array): Set constructor to be
12405         static.
12406         * varpool.c (varpool_finalize_decl): Compute const_value_known.
12407
12408 2010-09-04  Richard Guenther  <rguenther@suse.de>
12409
12410         PR bootstrap/45519
12411         * tree-flow.h (force_gimple_operand_1): Declare.
12412         (force_gimple_operand_gsi_1): Likewise.
12413         * gimplify.c (force_gimple_operand_1): New worker taking a
12414         gimple predicate for ...
12415         (force_gimple_operand): ... which now wraps it.
12416         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
12417         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
12418         last change.
12419         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
12420         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
12421         (create_mem_ref): Likewise.
12422
12423 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
12424
12425         * config/i386/predicates.md (sse_reg_operand): New predicate.
12426         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
12427         predicate for operand 1.
12428         (XFmode push splitter): Use fp_register_operand predicate
12429         for operand 1.
12430         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
12431         (SF-DF float_extend push splitter): Add reload_completed insn
12432         predicate.
12433         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
12434         MODEF mode macro.  Add reload_completed insn predicate.
12435
12436 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
12437
12438         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
12439         (struct df_extract_ref): Remove.
12440         (union df_ref_d): Remove extract_ref member.
12441         (df_ref_create): Remove last three arguments.
12442         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
12443         * df-scan.c (df_ref_record): Remove last three arguments, do not
12444         pass them to df_ref_create_structure.
12445         (df_uses_record): Remove first and last three arguments.  Replace
12446         first argument with DF_REF_REGULAR, adjust calls to remove the
12447         width, offset and mode.  Always call recursively on the second
12448         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
12449         (df_ref_create_structure): Remove first argument.
12450         (struct df_scan_problem_data): Remove ref_extract_pool.
12451         (df_scan_free_internal): Do not free it.
12452         (df_scan_alloc): Do not allocate it.
12453         (df_ref_create): Remove last three arguments, do not pass them to
12454         df_ref_create_structure.
12455         (df_free_ref): Remove DF_REF_EXTRACT case.
12456         (df_notes_rescan): Adjust call to df_uses_record.
12457         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
12458         Remove DF_REF_EXTRACT case.
12459         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
12460         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
12461         and SUBREG definitions.
12462         (df_get_conditional_uses): Remove references to width/offset/mode,
12463         adjust call to df_ref_create_structure.
12464         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12465         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
12466         calls to df_uses_record and df_ref_record.
12467         * fwprop.c (update_df): Remove references to width/offset/mode,
12468         adjust call to df_ref_create.
12469
12470 2010-09-03  Jan Hubicka  <jh@suse.cz>
12471
12472         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
12473         (build_cdtor_fns): Update use of build_cdtor.
12474
12475 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
12476
12477         * doc/options.texi (SeparateAlias): Document.
12478         * opt-functions.awk (switch_flags): Handle SeparateAlias.
12479         * opth-gen.awk: Generate enumeration names for options marked
12480         SeparateAlias, but not for those marked Ignore.
12481         * opts-common.c (generate_canonical_option): Don't output separate
12482         argument for options marked CL_SEPARATE_ALIAS.
12483         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
12484         * opts.h (CL_SEPARATE_ALIAS): New.
12485         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12486         CL_COMMON): Adjust definitions.
12487         * config/i386/darwin.opt, config/mips/sde.opt: New.
12488         * common.opt (fdump-final-insns): New.
12489         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12490         i386/darwin.opt.
12491         (mips*-sde-elf*): Add mips/sde.opt.
12492         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
12493         -mno-data-in-code and -mcode-xonly here.
12494         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
12495         * gcc.c (option_map): Add "j" to --dump entry.
12496         (translate_options): Don't translate -d to -foutput-class-dir= here.
12497
12498 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
12499
12500         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
12501         DR_IS_WRITE.
12502         (compute_all_dependences): Same.
12503         (create_rdg_edge_for_ddr): Same.
12504         * tree-data-ref.h (DR_IS_WRITE): New.
12505         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
12506         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
12507         (write_memrefs_written_at_least_once): Same.
12508         * tree-predcom.c (suitable_component_p): Same.
12509         (determine_roots_comp): Same.
12510         (execute_load_motion): Same.
12511         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
12512         (vect_enhance_data_refs_alignment): Same.
12513         (vect_analyze_group_access): Same.
12514
12515 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
12516
12517         PR testsuite/42843
12518         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
12519         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
12520
12521 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
12522
12523         * dwarf2out.c (file scope): Remove #if0'd code.
12524         (gen_subprogram_die): Same.
12525
12526 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
12527
12528         PR middle-end/45484
12529         * dwarf2out.c (flush_queued_reg_saves): Rename to...
12530         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
12531         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
12532         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
12533         * config/i386/i386.c (output_set_got): Call it.
12534
12535 2010-09-03  Michael Matz  <matz@suse.de>
12536
12537         PR middle-end/45415
12538         * tree-sra.c (sra_modify_assign): If we modify the statement,
12539         say so.
12540
12541         * tree-ssa.c (verify_ssa): Check number of operands and links
12542         per statement to agree.
12543
12544 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
12545             Iain Sandoe  <iains@gcc.gnu.org>
12546
12547         PR target/45476
12548         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
12549         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
12550         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12551
12552 2010-09-03  Richard Guenther  <rguenther@suse.de>
12553
12554         * lto-streamer-out.c (output_function): Output function
12555         start and end loci.
12556         * lto-streamer-in.c (input_function): Input function start
12557         and end loci.
12558
12559 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12560
12561         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
12562         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
12563         * configure: Regenerate.
12564         * aclocal.m4: Regenerate.
12565
12566 2010-09-03  Jan Hubicka  <jh@suse.cz>
12567
12568         PR lto/44812
12569         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
12570         on functions/variables in other partition.
12571
12572 2010-09-03  Jan Hubicka  <jh@suse.cz>
12573
12574         * cgraph.h (struct varpool_node): Add const_value_known.
12575         (varpool_decide_const_value_known): Declare.
12576         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
12577         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
12578         (input_varpool_node): Restore const_value_known.
12579         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
12580         initializer folding.
12581         * ipa.c (ipa_discover_readonly_nonaddressable_var,
12582         function_and_variable_visibility): Compute const_value_known.
12583         * gimple-fold.c (get_symbol_constant_value): Use varpool for
12584         initializer folding.
12585         * varpool.c (varpool_decide_const_value_known): New function.
12586
12587 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
12588
12589         * config/i386/i386.md: Remove empty preparation statements
12590         from splitters.
12591
12592 2010-09-03  Jan Hubicka  <jh@suse.cz>
12593
12594         * passes.c (rest_of_decl_compilation): Do not add local vars into
12595         varpool.
12596         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
12597         static or extern vars are in varpool.
12598         (varpool_finalize_decl): Sanity check that only static vars are
12599         finalized.
12600
12601 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
12602
12603         PR debug/45500
12604         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
12605         not just generic vectors with BLKmode.
12606
12607 2010-09-03  Richard Guenther  <rguenther@suse.de>
12608
12609         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
12610         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
12611         * tree.h (TMR_SYMBOL): Remove.
12612         (TMR_BASE, TMR_OFFSET): Adjust.
12613         (TMR_INDEX2): New.
12614         * alias.c (ao_ref_from_mem): Use TMR_BASE.
12615         * builtins.c (get_object_alignment): Merge TMR_BASE and
12616         TMR_SYMBOL handling.
12617         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
12618         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
12619         handling.  Also allow TARGET_MEM_REF as base address.
12620         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
12621         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
12622         base.  Gimplify TMR_INDEX2.
12623         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
12624         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12625         (get_addr_base_and_unit_offset): Likewise.
12626         * tree-eh.c (tree_could_trap_p): Likewise.
12627         * tree-pretty-print.c (dump_generic_node): Likewise.
12628         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
12629         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
12630         base to index2.
12631         (get_address_description): Reconstruct addres description
12632         from merged TMR_BASE and TMR_INDEX2.
12633         (maybe_fold_tmr): Fold propagated addresses.
12634         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
12635         MEM_REF and TARGET_MEM_REF paths.
12636         (indirect_refs_may_alias_p): Likewise.
12637         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
12638         instead of TMR_SYMBOL.
12639         * tree-ssa-operands.c (get_tmr_operands): Simplify.
12640         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
12641         according to changes ...
12642         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
12643         Split TARGET_MEM_REF into two fields plus the base.
12644         * tree.c (mem_ref_offset): Simplify.
12645         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
12646         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
12647         Strip NOPs when folding MEM_REF addresses.
12648         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
12649         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
12650         (fold_gimple_assign): ... not here.
12651
12652 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
12653
12654         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
12655         * config/mips/mips.c (mips_shift_truncation_mask): New function.
12656         (TARGET_SHIFT_TRUNCATION_MASK): Define.
12657
12658 2010-09-02  Richard Henderson  <rth@redhat.com>
12659
12660         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
12661         instead of readelf in the test.
12662         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
12663         in the .debug_frame section for coff targets.
12664         * configure: Rebuild.
12665
12666 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
12667
12668         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
12669         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
12670         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12671         (m32c_class_likely_spilled_p): Make static. Change argument type to
12672         reg_class_t. Change result type to bool.
12673
12674 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12675
12676         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
12677         to convert (double)(long) into a single FRIZ instruction or not
12678         when -ffast-math is used.
12679
12680         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
12681         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
12682         or FRIZ instruction if -ffast-math.
12683         * config/rs6000/rs6000.md (friz): Ditto.
12684
12685         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
12686
12687 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12688
12689         * opth-gen.awk (quote, comma): Remove unused variables.
12690
12691 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
12692
12693         * arm.c (arm_override_options): Correct fall-back code to use
12694         SUBTARGET_CPU_DEFAULT.
12695
12696 2010-09-02  Julian Brown  <julian@codesourcery.com>
12697
12698         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
12699         unspecs.
12700         (vcond<mode>, vcondu<mode>): New expanders.
12701         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
12702         comparisons with zero.
12703         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
12704         * config/arm/constraints.md (Dz): New constraint.
12705
12706 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
12707
12708         * target.def (class_likely_spilled_p): New hook.
12709         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
12710         * doc/tm.texi: Regenerate.
12711         * targhooks.c (default_class_likely_spilled_p): New function.
12712         * targhooks.h (default_class_likely_spilled_p): Declare.
12713         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
12714         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
12715         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
12716         Use fixed_reg_set instead of fixed_regs.
12717         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12718         * calls.c (avoid_likely_spilled_reg): Ditto.
12719         * ira-conflicts.c (ira_build_conflicts): Ditto.
12720         * ira.c (update_equiv_regs): Ditto.
12721         * mode-switching.c (create_pre_exit): Ditto.
12722         * regmove.c (find_matches): Ditto.
12723         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12724         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
12725         (small_register_class_p): New inline function.
12726         (push_secondary_reload, find_reusable_reload, find_reloads): Use
12727         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
12728
12729         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
12730         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
12731         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12732
12733 2010-09-02  Richard Guenther  <rguenther@suse.de>
12734
12735         PR tree-optimization/44937
12736         PR tree-optimization/45412
12737         * ipa-split.c (split_function): Properly remove PHI nodes.
12738
12739 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12740
12741         * opts.h (struct cl_option): Add warn_message field.
12742         (struct cl_decoded_option): Add warn_message field.
12743         * doc/options.texi (Ignore, Warn): Document.
12744         * opt-functions.awk (needs_state_p): Don't consider aliases or
12745         ignored options to need state saved.
12746         * optc-gen.awk: Handle Warn and Ignore.
12747         * opth-gen.awk: Output OPT_SPECIAL_ignore.
12748         * opts-common.c (decode_cmdline_option): Set warn_message field.
12749         Handle ignored options.
12750         (decode_cmdline_options_to_array, generate_option,
12751         generate_option_input_file): Set warn_message field.
12752         (read_cmdline_option): Generate warnings from warn_message field.
12753         Handle ignored options.
12754         * common.opt (Wunreachable-code, fargument-alias,
12755         fargument-noalias, fargument-noalias-global,
12756         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
12757         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
12758         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
12759         ftree-salias): Mark Ignore.
12760         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
12761         -mintel-syntax and -mno-intel-syntax here.
12762         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
12763         using Warn.
12764         * opts.c (common_handle_option): Don't handle options marked as
12765         ignored.
12766         (enable_warning_as_error): Handle ignored options.
12767
12768 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12769
12770         PR driver/44076
12771         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
12772         alias_target fields.
12773         * opt-functions.awk (opt_sanitized_name): Don't handle
12774         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
12775         * optc-gen.awk: Generate alias fields.
12776         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
12777         Don't generate such constants for aliases.
12778         * opts-common.c (generate_canonical_option): New.
12779         (decode_cmdline_option): Handle aliases.  Use
12780         generate_canonical_option for known options instead of copying the
12781         input option text.
12782         * doc/options.texi (Alias): Document.
12783         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
12784         fstack-check, specs): Mark as aliases.
12785         * gcc.c (driver_handle_option): Canonicalize -L options to joined
12786         arguments.
12787         (driver_handle_option): Don't handle OPT_specs.
12788         * opts.c (common_handle_option): Don't handle options marked as
12789         aliases.
12790         (enable_warning_as_error): Handle aliases.
12791         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
12792         OPT_Wlarger_than_eq.
12793         * tree-optimize.c (tree_rest_of_compilation): Use
12794         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
12795
12796 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
12797
12798         * config/i386/i386.md (nonmemory_operand): New mode attribute.
12799         (push memory peephole2): Macroize peepholes using SWI mode iterator.
12800         (move immediate to memory peephole2): Macroize peepholes using
12801         SWI124 mode iterator.
12802         (non-pairable NOT peephole2): Macroize peepholes using SWI124
12803         mode iterator.
12804         (simple lea add peephole2): Macroize peepholes using SWI48
12805         mode iterator.
12806         (simple lea mult peephole2): Ditto.
12807         (imul by 3,5,9 to lea peephole2): Ditto.
12808         (mov $-1, reg peephole2): Macroize peepholes using SWI248
12809         mode iterator.
12810         (imul $32bit_imm,mem,reg peephole2): Ditto.
12811         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
12812
12813 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
12814
12815         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
12816
12817 2010-09-02  Olivier Hainque  <hainque@adacore.com>
12818
12819         PR middle-end/44763
12820         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
12821         (allocno_priority_compare_func): Use it instead of a straight
12822         difference computation over priorities.
12823
12824 2010-09-02  Andi Kleen  <ak@linux.intel.com>
12825
12826         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
12827
12828 2010-09-02  Ira Rosen  <irar@il.ibm.com>
12829
12830         * tree-vectorizer.h (get_later_stmt): New function.
12831         (vect_analyze_data_ref_dependences): Add argument.
12832         * tree-vect-loop.c (vect_analyze_loop): Update call to
12833         vect_analyze_data_ref_dependences.
12834         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
12835         New function.
12836         (vect_analyze_data_ref_dependence): Add argument for basic block
12837         dependencies. Check dependencies in basic block vectorization.
12838         (vect_analyze_data_ref_dependences): Add argument and update call to
12839         vect_analyze_data_ref_dependences.
12840         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
12841         (vect_bb_vectorizable_with_dependencies): New.
12842         (vect_slp_analyze_bb): Check dependencies in basic block.
12843         (vect_schedule_slp_instance): Insert stores before the last store in
12844         SLP instance.
12845
12846 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
12847
12848         PR target/45476
12849         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
12850         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12851
12852 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
12853
12854         PR middle-end/45458
12855         * bb-reorder.c (add_labels_and_missing_jumps): Treat
12856         bbs ending with throwing insns like blocks ending with a call.
12857         (fix_up_fall_thru_edges): Likewise.
12858
12859 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
12860
12861         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
12862         (m32c_function_arg_advance): Delete.
12863         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12864         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
12865         comments.  Take a const_tree and a bool.  Declare.
12866         (m32c_function_arg_advance): Likewise.
12867         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12868
12869 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
12870
12871         PR target/45476
12872         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
12873         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
12874         * config/i386/mingw32.h: ... here.
12875
12876 2010-09-01  Andi Kleen  <ak@linux.intel.com>
12877
12878         PR lto/45475
12879         * lto-streamer-in.c (lto_input_ts_target_option): Add.
12880         (lto_input_tree_pointers): Call lto_input_ts_target_option.
12881         * lto-streamer-out (lto_output_ts_target_option): Add.
12882         (lto_output_tree_pointers): Call lto_output_ts_target_option.
12883
12884 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
12885
12886         PR/target 45452
12887         * config/i386/cygwin.h: Change order of specified import libraries.
12888         * config/i386/mingw32.h: Likewise.
12889         * config/i386/t-cygwin: Likewise.
12890         * config/i386/t-mingw32: Likewise.
12891         * config/i386/t-mingw-w32: Likewise.
12892         * config/i386/t-mingw-w64: Likewise.
12893
12894 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12895
12896         * config/arm/neon-schedgen.ml (core): New type.
12897         (allCores): List of supported cores.
12898         (availability_table): Add supported cores.
12899         (collate_bypasses): Accept core as a parameter.
12900         (worst_case_latencies_and_bypasses): Accept core as a parameter.
12901         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
12902         and coreStr to get tune attribute and prefix for functional units.
12903         (emit_bypasses): Accept core name and use it.
12904         (calculate_per_core_availability_table): New.
12905         (filter_core): New.
12906         (calculate_core_availability_table): New.
12907         (main): Use calculate_core_availablity_table.
12908         * config/arm/cortex-a8-neon.md: Update copyright year.
12909         Regenerated from ml file and merged in.
12910         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
12911         cortex_a8_neon_mrc.
12912
12913 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
12914
12915         * Makefile.in (tree-switch-conversion.o): Update dependencies.
12916
12917 2010-09-01  Richard Guenther  <rguenther@suse.de>
12918
12919         * alias.c (ao_ref_from_mem): Adjust.
12920         * builtins.c (get_object_alignment): Likewise.
12921         * cfgexpand.c (expand_debug_expr): Likewise.
12922         * gimple.c (get_base_address): Likewise.
12923         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12924         (get_addr_base_and_unit_offset): Likewise.  Fix for
12925         both TMR_SYMBOL and TMR_BASE being set.
12926         * tree-eh.c (tree_could_trap_p): Likewise.
12927         * gimplify.c (gimplify_expr): Do not attempt to gimplify
12928         TMR_SYMBOL.  Always gimplify TMR_BASE.
12929         * tree-cfg.c (verify_types_in_gimple_reference): Verify
12930         TMR_BASE if there is a TMR_SYMBOL.
12931         * tree-pretty-print.c (dump_generic_node): Adjust.
12932         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12933         (tree_mem_ref_addr): Likewise.
12934         (create_mem_ref_raw): Likewise.
12935         (move_fixed_address_to_symbol): Likewise.
12936         (create_mem_ref): Likewise.
12937         (dump_mem_address): Likewise.
12938         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
12939         Fix for both TMR_SYMBOL and TMR_BASE being set.
12940         (indirect_refs_may_alias_p): Likewise.
12941         * tree-ssa-operands.c (get_tmr_operands): Adjust.
12942         * tree.def (TARGET_MEM_REF): Adjust documentation.
12943
12944 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
12945
12946         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
12947         Rename from X86_TUNE_ADD_ESP_4.
12948         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
12949         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
12950         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
12951         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
12952         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
12953         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
12954         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
12955         * config/i386/i386.c (initial_ix86_tune_features)
12956         <X86_TUNE_SINGLE_POP>: Invert members.
12957         <X86_TUNE_DOUBLE_POP>: Ditto.
12958         <X86_TUNE_SINGLE_PUSH>: Ditto.
12959         <X86_TUNE_DOUBLE_PUSH>: Ditto.
12960         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
12961         No longer exported.
12962         (push peephole2 patterns): Macroize peepholes using P mode iterator.
12963         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
12964         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
12965         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
12966
12967 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
12968
12969         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
12970         a volatile LHS if the constructor has only one element.
12971
12972 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
12973
12974         PR bootstrap/45321
12975         * tree.c (stdarg_p): Make fntype parameter const.
12976         * tree.h (stdarg_p): Likewise.
12977         (function_args_iterator): Remove unused fntype field.
12978         (function_args_iter_init): Do not initialize fntype
12979         field.  Make fntype parameter const.
12980
12981 2010-09-01  Richard Guenther  <rguenther@suse.de>
12982
12983         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
12984         estimate.
12985         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
12986         (execute_vrp): Compute number of iteration estimates.
12987         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
12988         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
12989         * tree-data-ref.c (estimated_loop_iterations): Adjust.
12990         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
12991         Infer loop bounds from undefined behavior based on a new parameter.
12992         (estimate_numbers_of_iterations): Likewise.
12993         (scev_probably_wraps_p): Adjust.
12994         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
12995
12996 2010-09-01  Nick Clifton  <nickc@redhat.com>
12997
12998         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
12999         where appropriate.
13000         (xstormy16_legitimate_address_p): Use true and false instead of 1
13001         and 0.
13002         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
13003         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
13004         magic constant 2.
13005         (xstormy16_expand_call): Fix comment at start of function.
13006
13007 2010-09-01  Nick Clifton  <nickc@redhat.com>
13008
13009         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
13010         when pushing accumulator register.
13011         (rx_get_stack_layout): Always save call clobbered registers inside
13012         interrupt handlers.
13013         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
13014
13015 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13016
13017         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
13018         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13019
13020         * libgcc-std.ver (GCC_4.6.0): Define version.
13021
13022 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13023
13024         * tree-nested.c (convert_all_function_calls): Iterate until after the
13025         sum of static chains in the nest doesn't change.
13026
13027 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
13028
13029         * config/m32c/m32c.c (classes_intersect): Remove.
13030         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
13031         reg_classes_intersect_p instead of classes_intersect.
13032         (class_can_hold_mode): Change arguments type from enum reg_class to
13033         reg_class_t.  Use reg_class_contents instead of class_contents.
13034         (m32c_register_move_cost): Make static. Change arguments type from
13035         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
13036         classes_intersect. Use reg_class_contents instead of class_contents.
13037         (m32c_memory_move_cost): Make static. Change arguments type from
13038         enum reg_class to reg_class_t.
13039         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13040         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13041         * config/m32c/m32c-protos.h (m32c_register_move_cost,
13042         m32c_memory_move_cost): Remove.
13043
13044 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13045
13046         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
13047         (arm_function_arg): Delete.
13048         (arm_needs_doubleword_align): Take a const_tree.
13049         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13050         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
13051         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
13052         (arm_function_arg): Make static.  Take a const_tree and a bool.
13053         (arm_function_arg_advance): Likewise.
13054         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13055
13056 2010-08-31  Andi Kleen  <ak@linux.intel.com>
13057
13058         * common.opt (fwhopr=): Update for -fwhopr=jobserver
13059         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
13060         * lto-wrapper.c (run_gcc): Add jobserver mode.
13061         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
13062         argument.
13063
13064 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
13065
13066         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
13067         (popsi1): Ditto.
13068         (*popdi1_epilogue): Ditto.
13069         (*popsi1_epilogue): Ditto.
13070         (popsi, popdi peephole2 patterns): Update peepholes for changed
13071         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
13072
13073         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
13074         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
13075
13076         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
13077         (override_options): Do not initialize removed ix86_gen_pop1.
13078         (gen_pop): New static function.
13079         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
13080         (release_scratch_register_on_entry): Ditto.
13081         (ix86_restore_reg_using_pop): Ditto.
13082         (ix86_expand_epilogue): Ditto.
13083
13084 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
13085
13086         PR middle-end/45461
13087         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
13088
13089 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13090
13091         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
13092         semicolons.
13093
13094 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13095
13096         * doc/extend.texi: Fix documentation of the return value of
13097         __builtin_choose_expr.
13098
13099 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13100
13101         * config/v850/v850-protos.h (function_arg): Delete.
13102         * config/v850/v850.h (FUNCTION_ARG): Delete.
13103         (FUNCTION_ARG_ADVANCE): Move code to...
13104         * config/v850/v850.c (v850_function_arg_advance): ...here.
13105         (v850_function_arg): Make static.  Take a const_tree and a bool.
13106         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13107
13108 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13109
13110         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
13111         these...
13112         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13113         ...and these...
13114         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
13115         ..to here..
13116         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13117         ...and here.
13118         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13119
13120 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13121
13122         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
13123         Delete.
13124         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13125         * config/rx/rx.c (rx_function_arg_size): Make static.
13126         (rx_function_arg): Likewise.
13127         (rx_function_arg_advance): New function.
13128         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13129
13130 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
13131
13132         * config/arm/arm.c (arm_override_options): Remove superfluous test.
13133         Fix indentation.
13134
13135 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13136
13137         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
13138         (dwarf2out_decl) <CONST_DECL>: Likewise.
13139
13140 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
13141
13142         Stack usage support
13143         * common.opt (-fstack-usage): New option.
13144         * doc/invoke.texi (Debugging options): Document it.
13145         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
13146         allocate_dynamic_stack_space.
13147         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
13148         and propagate it to allocate_dynamic_stack_space.
13149         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
13150         * calls.c (initialize_argument_information): Pass TRUE as 4th
13151         argument to allocate_dynamic_stack_space.
13152         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
13153         to 1 when pushing a variable-sized argument onto the stack.  Pass
13154         TRUE as 4th argument to allocate_dynamic_stack_space.
13155         Update current_function_pushed_stack_size.
13156         (emit_library_call_value_1): Likewise.
13157         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
13158         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
13159         attempt to find an upper bound.  Remove redundant code for the
13160         SETJMP_VIA_SAVE_AREA case.
13161         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
13162         * function.h (struct stack_usage): New structure.
13163         (current_function_static_stack_size): New macro.
13164         (current_function_dynamic_stack_size): Likewise.
13165         (current_function_pushed_stack_size): Likewise.
13166         (current_function_dynamic_alloc_count): Likewise.
13167         (current_function_has_unbounded_dynamic_stack_size): Likewise.
13168         (current_function_allocates_dynamic_stack_space): Likewise.
13169         (struct function): Add new field 'su'.
13170         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
13171         add the value of the dynamic offset to the dynamic stack usage.
13172         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
13173         for variable-sized objects.
13174         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
13175         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
13176         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
13177         BUILT_IN_ALLOCA for variable-sized objects.
13178         * output.h (output_stack_usage): Declare.
13179         * toplev.c (stack_usage_file): New file pointer.
13180         (output_stack_usage): New function.
13181         (open_auxiliary_file): Likewise.
13182         (lang_dependent_init): Open file if flag_stack_usage is set.
13183         (finalize): Close file if stack_usage_file is not null.
13184         * tree.h (ALLOCA_FOR_VAR_P): New macro.
13185         * config/alpha/alpha.c (compute_frame_size): New function.
13186         (alpha_expand_prologue): Use it.
13187         (alpha_start_function): Likewise.
13188         (alpha_expand_epilogue): Likewise.  Set stack usage info.
13189         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13190         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13191         * config/mips/mips.c (mips_expand_prologue): Likewise.
13192         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13193         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13194         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13195
13196 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
13197
13198         PR tree-optimization/45427
13199         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
13200         Handle the case that the exit is never taken correctly.
13201         (number_of_iterations_ne): Pass exit_must_be_taken to
13202         number_of_iterations_ne_max.
13203
13204 2010-08-30  Catherine Moore  <clm@codesourcery.com>
13205
13206         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
13207         Infer -mdspr2 for the the 74K.
13208
13209 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
13210
13211         PR debug/45419
13212         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
13213
13214         PR middle-end/45423
13215         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
13216         and TRUTH_{AND,OR,XOR}_EXPR.
13217         * c-parser.c (c_parser_omp_atomic): Handle boolean
13218         {PRE,POST}_{INC,DEC}REMENT.
13219
13220 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
13221
13222         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
13223         (function_arg): Delete.
13224         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13225         (FUNCTION_INCOMING_ARG): Delete.
13226         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
13227         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
13228         and a bool.
13229         (function_arg): Rename to...
13230         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
13231         a bool.
13232         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
13233         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13234         (TARGET_FUNCTION_INCOMING_ARG): Define.
13235
13236 2010-08-30  Richard Guenther  <rguenther@suse.de>
13237
13238         PR tree-optimization/21602
13239         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
13240         using points-to information.
13241
13242 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
13243
13244         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
13245
13246 2010-08-30  Richard Guenther  <rguenther@suse.de>
13247
13248         PR tree-optimization/45449
13249         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
13250         variables.
13251
13252 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
13253
13254         * opts.h (CL_ERR_NEGATIVE): Define.
13255         * opts.c (unknown_option_callback): Don't postpone warnings for
13256         options marked with CL_ERR_NEGATIVE.
13257         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
13258         for negative versions of CL_REJECT_NEGATIVE options.
13259
13260 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
13261
13262         * config/i386/i386.md (zero_extendsidi2_1): Rename from
13263         zero_extendsidi2_32.
13264         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
13265         using SWI12 mode iterator.
13266         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
13267         to define_insn_and_split pattern.
13268         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
13269         using SWI24 mode iterator.
13270         (*zero_extendqi<mode>2_and): Macroize insn from
13271         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
13272         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
13273         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
13274         SWI24 mode iterator.
13275         (*zero_extendqi<mode>2_movzbl): Ditto from
13276         *zero_extendqi{hi,si}2_movzbl.
13277         (extendsidi2_1): Rename from extendsidi2_32.
13278         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
13279         SWI12 mode iterator.
13280
13281 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
13282
13283         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
13284         general purpose registers.
13285         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
13286         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
13287         with general purpose registers and memory operands.  Add associated
13288         CCImode post-reload splitter.
13289         * config/ia64/div.md: Change BImode to CCImode throughout.
13290
13291 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
13292
13293         * config/ia64/ia64.md (cstorebi4): Fix thinko.
13294
13295 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
13296
13297         * config/picochip/picochip.c (reorder_var_tracking_notes): This
13298         function was dropping debug insns which caused PR45299.
13299
13300 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
13301
13302         * config/i386/sse.md (extsuffix): New code attribute.
13303         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
13304         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
13305         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
13306         and sse4_1_zero_extendv4qiv4si2.
13307         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
13308         and sse4_1_zero_extendv2qiv2di2.
13309         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
13310         and sse4_1_zero_extendv4hiv4si2.
13311         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
13312         and sse4_1_zero_extendv2hiv2di2.
13313         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
13314         and sse4_1_zero_extendv2siv2di2
13315
13316         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
13317         using any_extend code iterator.
13318         (*avx_<s>mulv8hi3_highpart): Macroize insn from
13319         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
13320         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
13321
13322         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
13323         gen_sse4_1_sign_extend* functions.
13324         (struct builtin_description bdesc_args): Ditto.
13325
13326 2010-08-27  Xinliang David Li  <davidxl@google.com>
13327
13328         PR/45422
13329         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
13330         (iv_ca_set_no_cp): Update used inv expr count.
13331         (iv_ca_set_cp): Ditto.
13332         (iv_ca_new): Initialize new member.
13333         (iv_ca_free): Free memory.
13334
13335 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13336
13337         * config/sh/sh-protos.h (sh_function_arg): Delete.
13338         (sh_function_arg_advance): Delete.
13339         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13340         (PASS_IN_REG_P): Eliminate cast.
13341         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
13342         const_tree and a bool.
13343         (sh_function_arg): Likewise.
13344         (sh_output_mi_thunk): Call sh_function_arg_advance) and
13345         sh_function_arg.
13346         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13347
13348 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
13349             Kaz Kojima  <kkojima@gcc.gnu.org>
13350
13351         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
13352         when possible.
13353         (sh_expand_epilogue): Likewise.
13354         * config/sh/sh.md (movml_push_banked): New insn.
13355         (movml_pop_banked): Likewise.
13356
13357 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
13358
13359         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
13360         gen_regexp_oneof, gen_regexp_sequence): Use the string found
13361         in vector element 0 rather than the original string when there's
13362         only one element.
13363         (gen_regexp): Remove extra semicolon.
13364
13365         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
13366         thumb2_movsf_vfp): Set attribute "insn".
13367         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
13368         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
13369         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
13370         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
13371         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
13372         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
13373         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
13374         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
13375         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
13376         if_not_arith, if_arith_not, cond_move_not): Likewise.
13377
13378 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13379
13380         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
13381         New declaration.
13382         (rs6000_allocate_stack_temp): Ditto.
13383         (rs6000_expand_convert_si_to_sfdf): Ditto.
13384
13385         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
13386         line.  Update the options set if power6 or power7 server/embedded
13387         type options are used.  If we give a warning for no vsx under
13388         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
13389         (rs6000_allocate_stack_temp): New function to allocate a stack
13390         tempoary and adjust the address so it meets either REG+OFFSET or
13391         REG+REG addressing requirements.
13392         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
13393         that they can be used with the LFIWAX/LFIWZX instrucitons.
13394         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
13395         converting signed/unsigned SImode to either SFmode/DFmode.
13396
13397         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
13398         whether certain instructions can be generated.
13399         (TARGET_FCTIDZ): Ditto.
13400         (TARGET_STFIWX): Ditto.
13401         (TARGET_LFIWAX): Ditto.
13402         (TARGET_LFIWZX): Ditto.
13403         (TARGET_FCFIDS): Ditto.
13404         (TARGET_FCFIDU): Ditto.
13405         (TARGET_FCFIDUS): Ditto.
13406         (TARGET_FCTIDUZ): Ditto.
13407         (TARGET_FCTIWUZ): Ditto.
13408
13409         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
13410         (UNSPEC_FCTID): Ditto.
13411         (UNSPEC_LFIWAX): Ditto.
13412         (UNSPEC_LFIWZX): Ditto.
13413         (UNSPEC_FCTIWUZ): Ditto.
13414         (rreg): Use correct constraints.
13415         (SI_CONVERT_FP): New mode attribute for floating point conversion
13416         tests.
13417         (E500_CONVERT): Ditto.
13418         (lfiwax): New insns for converting from integer to floating point
13419         utilizing newer instructions.  Attempt to optimize conversions
13420         that come from memory so that we don't load the value into a GPR,
13421         spill it to the stack and reload it into a FPR.
13422         (floatsi<mode>2_lfiwax): Ditto.
13423         (floatsi<mode>2_lfiwax_mem): Ditto.
13424         (floatsi<mode>2_lfiwax_mem2): Ditto.
13425         (lfiwzx): Ditto.
13426         (floatunssi<mode>2_lfiwzx): Ditto.
13427         (floatunssi<mode>2_lfiwzx_mem): Ditto.
13428         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
13429         (floatdidf2_mem): Ditto.
13430         (floatunsdidf2_fcfidu): Ditto.
13431         (floatunsdidf2_mem): Ditto.
13432         (floatunsdisf2): Ditto.
13433         (floatunsdisf2_fcfidus): Ditto.
13434         (floatunsdisf2_mem): Ditto.
13435         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
13436         Use FCFID on 32-bit hosts that support it.
13437         (floatsidf2_internal): Ditto.
13438         (floatunssisf2): Ditto.
13439         (floatunssidf2): Ditto.
13440         (floatunssidf2_internal): Ditto.
13441         (floatsisf2): Ditto.
13442         (floatdidf2): Ditto.
13443         (floatdidf2_fpr): Ditto.
13444         (floatunsdidf2): Ditto.
13445         (floatdisf2): Ditto.
13446         (floatdisf2_fcfids): Ditto.
13447         (floatdisf2_internal1): Ditto.
13448         (fixuns_truncsfsi2): Delete, merge into common pattern for both
13449         SF/DF.  Add power7 support.
13450         (fix_truncsfsi2): Ditto.
13451         (fixuns_truncdfsi2): Ditto.
13452         (fixuns_truncdfdi2): Ditto.
13453         (fix_truncdfsi2): Ditto.
13454         (fix_truncdfsi2_internal): Ditto.
13455         (fix_truncdfsi2_internal_gfxopt): Ditto.
13456         (fix_truncdfsi2_mfpgpr): Ditto.
13457         (fctiwz): Ditto.
13458         (btruncdf2): Ditto.
13459         (btruncdf2_fpr): Ditto.
13460         (btructsf2): Ditto.
13461         (ceildf2): Ditto.
13462         (ceildf2_fpr): Ditto.
13463         (ceilsf2): Ditto.
13464         (floordf2): Ditto.
13465         (floordf2_fpr): Ditto.
13466         (floorsf2): Ditto.
13467         (rounddf2): Ditto.
13468         (rounddf2_fpr): Ditto.
13469         (roundsf2): Ditto.
13470         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
13471         (fix_trunc<mode>di2): Ditto.
13472         (fixuns_trunc<mode>si2): Ditto.
13473         (fixuns_trunc<mode>di2): Ditto.
13474         (fctiwz_<mode>): Ditto.
13475         (btrunc<mode>2): Ditto.
13476         (btrunc<mode>2_fpr): Ditto.
13477         (ceil<mode>2): Ditto.
13478         (ceil<mode>2_fpr): Ditto.
13479         (floor<mode>2): Ditto.
13480         (float<mode>2_fpr): Ditto.
13481         (round<mode>2): Ditto.
13482         (round<mode>2_fpr): Ditto.
13483         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
13484         (fixuns_trunc<mode>si2_stfiwx): Ditto.
13485         (fix_truncdfsi2_internal): Ditto.
13486         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
13487         converted value on stack, loaded into GPR, and then stored into
13488         the final destination.
13489         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
13490         FCTIDZ.
13491         (lrint<mode>di2): New insn, provide the lrint builtin functions.
13492         (ftruncdf2): Delete, unused.
13493         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
13494
13495         * config/rs6000/vsx.md (toplevel): Update copyright year.
13496         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
13497         (VSr3): Ditto.
13498
13499 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
13500             Jeremie Salvucci  <jeremie.salvucci@free.fr>
13501
13502         * gengtype.c (output_type_enum): Test the right union member.
13503
13504 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
13505
13506         PR target/41484
13507         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
13508         operands for operand 1.
13509         (sse4_1_extendv4qiv4si2): Ditto.
13510         (sse4_1_extendv2qiv2di2): Ditto.
13511         (sse4_1_extendv4hiv4si2): Ditto.
13512         (sse4_1_extendv2hiv2di2): Ditto.
13513         (sse4_1_extendv2siv2di2): Ditto.
13514         (sse4_1_zero_extendv8qiv8hi2): Ditto.
13515         (sse4_1_zero_extendv4qiv4si2): Ditto.
13516         (sse4_1_zero_extendv2qiv2di2): Ditto.
13517         (sse4_1_zero_extendv4hiv4si2): Ditto.
13518         (sse4_1_zero_extendv2hiv2di2): Ditto.
13519         (sse4_1_zero_extendv2siv2di2): Ditto.
13520         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
13521         (*sse4_1_extendv4qiv4si2): Ditto.
13522         (*sse4_1_extendv2qiv2di2): Ditto.
13523         (*sse4_1_extendv4hiv4si2): Ditto.
13524         (*sse4_1_extendv2hiv2di2): Ditto.
13525         (*sse4_1_extendv2siv2di2): Ditto.
13526         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
13527         (*sse4_1_zero_extendv4qiv4si2): Ditto.
13528         (*sse4_1_zero_extendv2qiv2di2): Ditto.
13529         (*sse4_1_zero_extendv4hiv4si2): Ditto.
13530         (*sse4_1_zero_extendv2hiv2di2): Ditto.
13531         (*sse4_1_zero_extendv2siv2di2): Ditto.
13532
13533 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13534
13535         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
13536         (mips_function_arg): Delete.
13537         (mips_function_arg_boundary): Take a const_tree.
13538         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
13539         (mips_arg_info): Likewise.
13540         (mips_setup_incoming_varargs): Call mips_function_arg_advance
13541         instead of FUNCTION_ARG_ADVANCE.
13542         (mips_function_arg_advance): Adjust prototype.  Make static.
13543         (mips_function_arg): Likewise.
13544         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13545         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
13546
13547 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13548
13549         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13550         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
13551         (function_arg): Delete.
13552         (function_arg_boundary): Take a const_tree.
13553         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
13554         (rs6000_spe_function_arg): Likewise.
13555         (rs6000_parm_start): Likewise.
13556         (rs6000_arg_size): Likewise.
13557         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
13558         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
13559         (rs6000_mixed_function_arg): Likewise.
13560         (function_arg): Rename to...
13561         (rs6000_function_arg): ...this.
13562         (function_arg_advance): Rename to...
13563         (rs6000_function_arg_advance_1): ...this
13564         (rs6000_function_arg_advance): New function.  Call it.
13565         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
13566         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
13567         (rs6000_function_value): Likewise.
13568         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13569
13570 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13571
13572         * config/arm/arm.md (enabled): Test the value of arch_enabled
13573         rather than just using it.
13574
13575 2010-08-27  Olivier Hainque  <hainque@adacore.com>
13576             Eric Botcazou  <ebotcazou@adacore.com>
13577
13578         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
13579         cover all the possible offsets from this base.
13580         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
13581
13582 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
13583
13584         PR tree-optimization/44485
13585         * calls.c (flags_from_decl_or_type): For const or pure
13586         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
13587         together with ECF_CONST resp. ECF_PURE.
13588         * builtins.c (expand_builtin): Use flags_from_decl_or_type
13589         instead of querying flags directly.
13590         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
13591         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
13592
13593 2010-08-26  Richard Guenther  <rguenther@suse.de>
13594
13595         PR tree-optimization/45255
13596         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
13597         and externals are also invariant.
13598
13599 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
13600
13601         PR rtl-optimization/44858
13602         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
13603         newi2pat, make sure they don't affect newpat.
13604
13605         PR rtl-optimization/45400
13606         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
13607         SUBREG_REG if both modes are of MODE_INT class.
13608
13609 2010-08-25  Julian Brown  <julian@codesourcery.com>
13610
13611         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
13612         * config/arm/arm.md (generic_sched): No for Cortex-A5.
13613         (generic_vfp): Likewise.
13614         (cortex-a5.md): Include.
13615         * config/arm/cortex-a5.md: New.
13616
13617 2010-08-25  Richard Guenther  <rguenther@suse.de>
13618
13619         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
13620         * gimple.c (gimple_get_alias_set): Remove special handling
13621         for pointers.
13622
13623 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
13624
13625         PR middle-end/45355
13626         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
13627         dead_or_set_p when computing i0_feeds_i2_n.
13628
13629         * combine.c (find_split_point): Undo canonicalization of multiply-add
13630         to (minus x (mult)) when it seems likely that this will increase the
13631         chances of a split.
13632
13633 2010-08-25  Richard Guenther  <rguenther@suse.de>
13634
13635         PR lto/44562
13636         * lto-streamer.c (lto_record_common_node): Do not mess with
13637         TYPE_CANONICAL when not in lto.
13638         * gimple.c (gimple_register_type): Likewise.
13639
13640 2010-08-25  Richard Guenther  <rguenther@suse.de>
13641
13642         PR tree-optimization/45316
13643         * tree-ssa-pre.c (eliminate): Properly clean EH info.
13644
13645 2010-08-25  Richard Guenther  <rguenther@suse.de>
13646
13647         PR tree-optimization/45393
13648         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
13649         and clean EH info.  Avoid SSA update.
13650         (execute_cse_sincos): Cleanup the CFG if it has changed.
13651
13652 2010-08-25  Richard Guenther  <rguenther@suse.de>
13653
13654         PR middle-end/45379
13655         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
13656         TARGET_MEM_REF in alignment computation.
13657
13658 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
13659
13660         PR tree-optimization/45059
13661         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
13662         type conversions from newop{1,2}.  Assert t is a comparison and
13663         newop{1,2} after the stripping are gimple vals.
13664
13665 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
13666
13667         * config/arm/iterators.md (VU, SE, V_widen_l): New.
13668         (V_unpack, US): New.
13669         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
13670         (vec_unpack<US>_lo_<mode>): Likewise.
13671         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
13672         (neon_vec_unpack<US>_lo_<mode>): Likewise.
13673         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
13674         (vec_widen_<US>mult_hi_<mode>): Likewise.
13675         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
13676         (neon_vec_<US>mult_hi_<mode>"): Likewise.
13677         (neon_unpack<US>_<mode>): Widening move intermediate step for
13678         vectorizing without -mvectorize-with-neon-quad.
13679         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
13680         for vectorizing without -mvectorize-with-neon-quad.
13681         * config/arm/predicates.md (vect_par_constant_high): Check for
13682         high-half lanes of a vector.
13683         (vect_par_constant_low): Check for low-half lanes of a vector.
13684
13685 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13686
13687         * tree-if-conv.c (struct ifc_dr): New.
13688         (IFC_DR): New.
13689         (DR_WRITTEN_AT_LEAST_ONCE): New.
13690         (DR_RW_UNCONDITIONALLY): New.
13691         (memref_read_or_written_unconditionally): Use the cached values
13692         when possible.
13693         (write_memref_written_at_least_once): Same.
13694         (if_convertible_loop_p): Initialize and free DR->aux fields.
13695
13696 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13697
13698         * gimple.c (gimple_could_trap_p_1): Not static anymore.
13699         Pass an extra bool parameter include_mem.
13700         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
13701         (gimple_assign_rhs_could_trap_p): Same.
13702         * gimple.h (gimple_could_trap_p_1): Declared.
13703         * tree-data-ref.h (same_data_refs_base_objects): New.
13704         (same_data_refs): New.
13705         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
13706         (write_memrefs_written_at_least_once): New.
13707         (ifcvt_memrefs_wont_trap): New.
13708         (operations_could_trap): New.
13709         (ifcvt_could_trap_p): New.
13710         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
13711         Gets a vector of data refs.
13712         (if_convertible_stmt_p): Same.
13713         (if_convertible_loop_p_1): New.
13714         (if_convertible_loop_p): Call if_convertible_loop_p_1.
13715
13716 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13717
13718         * common.opt (ftree-loop-if-convert-stores): New flag.
13719         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
13720         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
13721         the created statement before GSI.
13722         (if_convertible_phi_p): Allow virtual phi nodes when
13723         flag_loop_if_convert_stores is set.
13724         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
13725         Do not handle types that do not match is_gimple_reg_type.
13726         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
13727         when flag_loop_if_convert_stores is set, as LHS can contain
13728         memory refs.
13729         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
13730         to if_convertible_gimple_assign_stmt_p.
13731         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
13732         (replace_phi_with_cond_gimple_assign_stmt): Renamed
13733         predicate_scalar_phi.  Do not handle virtual phi nodes.
13734         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
13735         Call predicate_scalar_phi.
13736         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
13737         just after the labels for flag_loop_if_convert_stores, otherwise
13738         insert the predicate in the end of the BB.
13739         (predicate_mem_writes): New.
13740         (combine_blocks): Call predicate_all_scalar_phis.  When
13741         flag_loop_if_convert_stores is set, call predicate_mem_writes.
13742         (tree_if_conversion): Call mark_sym_for_renaming when
13743         flag_loop_if_convert_stores is set.
13744         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
13745         flag_loop_if_convert_stores is set.
13746
13747 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
13748
13749         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
13750         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
13751         (pa_function_value): Make static.
13752         (override_options): Rename to...
13753         (pa_option_override): ...this. Make static.
13754         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
13755         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
13756         TARGET_OPTION_OVERRIDE): Define.
13757         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
13758         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
13759         Remove.
13760         * config/pa/pa-protos.h (override_options): Remove.
13761
13762 2010-08-24  Richard Guenther  <rguenther@suse.de>
13763
13764         PR middle-end/45379
13765         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
13766         if addr->index is NULL or zero.
13767         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
13768         TARGET_MEM_REF more properly.
13769         (indirect_ref_may_alias_decl_p): Likewise.
13770         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
13771         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
13772
13773 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
13774
13775         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
13776         (m32c_override_options): Rename to...
13777         (m32c_option_override): ...this. Make static.
13778         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
13779         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
13780         Remove.
13781         * config/m32c/m32c-protos.h (m32c_override_options,
13782         m32c_function_value_regno_p): Remove.
13783
13784 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
13785
13786         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
13787         Fix a typo in a previous commit.
13788
13789 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
13790
13791         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
13792         Pre-initialize innerloop_iters to one.
13793
13794 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
13795
13796         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
13797         existing static function global.
13798
13799         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
13800         is changed to global.
13801
13802         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
13803         may_be_nonaddressable_p on base, and don't collect this reference
13804         if the address of the base could not be taken.
13805
13806 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13807
13808         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
13809         enable the compiler to autovectorize mathmetical functions for
13810         power7 using the Mathematical Acceleration Subsystem library.
13811
13812         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
13813         handle which vector math library we have.
13814         (rs6000_override_options): Add -mveclibabi=mass support.
13815         (rs6000_builtin_vectorized_libmass): New function to handle auto
13816         vectorizing math functions that are in the MASS library.
13817         (rs6000_builtin_vectorized_function): Call it.
13818
13819         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13820         -mveclibabi=mass.
13821
13822 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13823
13824         PR boehm-gc/34544
13825         * gthr-posix.h (__gthread_active_init): Delete.
13826         (__gthread_active_p): Do activity check here.
13827         Don't include errno.h on hppa-hpux.  Update comment.
13828         * gthr-posix95.h (__gthread_active_init): Delete.
13829         (__gthread_active_p): Do activity check here.
13830         Don't include errno.h on hppa-hpux.  Update comment.
13831         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
13832         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
13833         add -lpthread when -mt or -pthread is specified.
13834         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
13835         (LINK_GCC_C_SEQUENCE_SPEC): Define.
13836         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
13837         (stublib.c, pthread_default_stacksize_np-stub.o,
13838         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
13839         $(T)libgcc_stub.a): Add methods.
13840         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
13841         (stublib.c, pthread_default_stacksize_np-stub.o,
13842         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
13843         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13844         pthread_mutex_unlock): New stubs.
13845
13846 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
13847
13848         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
13849         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
13850         options.
13851         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
13852         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
13853         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
13854         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
13855         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
13856         "-l".
13857         * cppspec.c: Include opts.h.
13858         (lang_specific_driver): Use cl_decoded_option structures.
13859         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
13860         * doc/tm.texi: Regenerate.
13861         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
13862         (driver_handle_option): Allow driver options needing no special
13863         processing.
13864         (process_command): Decode options before call to
13865         lang_specific_driver.  Pass decoded options to
13866         lang_specific_driver.
13867         * gcc.h (lang_specific_driver): Update prototype.
13868         * gccspec.c: Include opts.h.
13869         (lang_specific_driver): Use cl_decoded_option structures.
13870         * opts-common.c (option_ok_for_language, generate_option,
13871         generate_option_input_file): New.
13872         (decode_cmdline_option): Use option_ok_for_language.
13873         (decode_cmdline_options_to_array): Use generate_option_input_file.
13874         (handle_generated_option): Use generate_option.
13875         * opts.h (generate_option, generate_option_input_file): Declare.
13876
13877 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
13878
13879         * config/mips/mips.c (mips_override_options): Rename to...
13880         (mips_option_override): ...this. Make static.
13881         (TARGET_OPTION_OVERRIDE): Define.
13882         (mips_in_small_data_p): Update comment.
13883         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
13884         (FIXED_REGISTERS): Update comment.
13885         * config/mips/mips-protos.h (mips_override_options): Remove.
13886
13887 2010-08-21  Olivier Hainque  <hainque@adacore.com>
13888
13889         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
13890
13891 2010-08-21  Olivier Hainque  <hainque@adacore.com>
13892
13893         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
13894         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
13895
13896 2010-08-20  Jan Hubicka  <jh@suse.cz>
13897
13898         * tree-pass.h (pass_ipa_cdtor_merge): New function.
13899         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
13900         heap allocated.
13901         (record_cdtor_fn): Move to ipa.c; do not test for
13902         have_ctors_dtors.
13903         (build_cdtor): Move to ipa.c; add code avoiding construction
13904         when target have ctors/dtors and there is only one ctor/dtor at given
13905         priority.
13906         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
13907         sort; reverse order of constructors.
13908         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
13909         (cgraph_finalize_function): Do not call record_cdtor_fn.
13910         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
13911         (cgraph_build_static_cdtor): Move to ipa.c.
13912         * ipa.c: Include target.h and tree-iterator.h.
13913         (cgraph_build_static_cdtor, static_ctors, static_dtors,
13914         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
13915         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
13916         pass_ipa_cdtor_merge): New.
13917         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
13918         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
13919         bounds access.
13920
13921 2010-08-20  Jan Hubicka  <jh@suse.cz>
13922
13923         PR c++/45307
13924         PR c++/17736
13925         * cgraph.h (cgraph_only_called_directly_p,
13926         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
13927         static cdtors.
13928         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
13929         are not needed.
13930         (cgraph_finalize_function): Static cdtors are reachable.
13931         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
13932
13933 2010-08-20  Jan Hubicka  <jh@suse.cz>
13934
13935         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
13936         flag_wpa.
13937         * lto-streamer-out.c (lto_output): Likewise.
13938         * passes.c (ipa_write_optimization_summaries): Initialize statement
13939         uids.
13940
13941 2010-08-20  Olivier Hainque  <hainque@adacore.com>
13942
13943         * tree.h (alias_diag_flags): New enum.
13944         (alias_pair): Add an 'emitted_diags' field.
13945         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
13946         (assemble_alias): Initialize emitted_diags of new pairs.
13947
13948 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
13949
13950         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13951         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13952         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13953         (STACK_CHECK_PROTECT): Define.
13954         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
13955         (output_probe_stack_range): Likewise.
13956         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
13957         builtin stack checking is enabled.
13958         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
13959         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13960         (probe_stack_range): New insn.
13961
13962 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13963
13964         PR target/45336
13965         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
13966         short first.
13967
13968         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
13969         char first.
13970
13971 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13972
13973         PR target/45336
13974         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
13975         to cover zero extension into 64-bit register.
13976         (*sse2_pextrw): Likewise.
13977         (*sse4_1_pextrd_zext): New insn.
13978
13979 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
13980
13981         revert r163410, partially revert r163267.
13982         * config/rs6000/darwin.h (LIB_SPEC): Remove.
13983         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
13984         Darwin versions.
13985
13986 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13987
13988         PR middle-end/44974
13989         * builtins.c (expand_builtin): Don't optimize away
13990         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
13991
13992 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
13993
13994         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
13995         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
13996         alternative 1 of operand 2.
13997
13998 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
13999             Paolo Bonzini  <bonzini@gnu.org>
14000
14001         * simplify-rtx.c (simplify_unary_operation_1): Optimize
14002         (sign_extend (zero_extend (...)) and
14003         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
14004
14005 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14006
14007         PR rtl-optimization/45353
14008         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
14009         after bb_note is a BARRIER.
14010
14011 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14012
14013         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
14014         linking libgcc.a.
14015
14016 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14017             Michael Matz  <matz@suse.de>
14018
14019         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
14020
14021 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14022
14023         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
14024         (ggc_mark_roots): ...here.
14025
14026 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14027
14028         * vec.h (FOR_EACH_VEC_ELT): Define.
14029         * c-decl.c: Use it.
14030         * cfgloop.c: Likewise.
14031         * cfgloopmanip.c: Likewise.
14032         * cgraph.c: Likewise.
14033         * cgraphunit.c: Likewise.
14034         * combine.c: Likewise.
14035         * config/bfin/bfin.c: Likewise.
14036         * config/mips/mips.c: Likewise.
14037         * config/rs6000/rs6000.c: Likewise.
14038         * dbxout.c: Likewise.
14039         * df-scan.c: Likewise.
14040         * dominance.c: Likewise.
14041         * dse.c: Likewise.
14042         * dwarf2out.c: Likewise.
14043         * except.c: Likewise.
14044         * expr.c: Likewise.
14045         * function.c: Likewise.
14046         * gcse.c: Likewise.
14047         * genattr.c: Likewise.
14048         * ggc-common.c: Likewise.
14049         * gimplify.c: Likewise.
14050         * graphite-blocking.c: Likewise.
14051         * graphite-clast-to-gimple.c: Likewise.
14052         * graphite-dependences.c: Likewise.
14053         * graphite-interchange.c: Likewise.
14054         * graphite-poly.c: Likewise.
14055         * graphite-scop-detection.c: Likewise.
14056         * graphite-sese-to-poly.c: Likewise.
14057         * graphite.c: Likewise.
14058         * haifa-sched.c: Likewise.
14059         * ifcvt.c: Likewise.
14060         * implicit-zee.c: Likewise.
14061         * ipa-prop.c: Likewise.
14062         * ipa-struct-reorg.c: Likewise.
14063         * ipa.c: Likewise.
14064         * ira-build.c: Likewise.
14065         * ira-color.c: Likewise.
14066         * ira-emit.c: Likewise.
14067         * lambda-code.c: Likewise.
14068         * loop-invariant.c: Likewise.
14069         * loop-unroll.c: Likewise.
14070         * lower-subreg.c: Likewise.
14071         * lto-cgraph.c: Likewise.
14072         * lto-opts.c: Likewise.
14073         * lto-streamer-in.c: Likewise.
14074         * lto-streamer-out.c: Likewise.
14075         * lto-streamer.c: Likewise.
14076         * lto-symtab.c: Likewise.
14077         * matrix-reorg.c: Likewise.
14078         * opts.c: Likewise.
14079         * predict.c: Likewise.
14080         * print-tree.c: Likewise.
14081         * sdbout.c: Likewise.
14082         * sel-sched-dump.c: Likewise.
14083         * sel-sched-ir.c: Likewise.
14084         * sel-sched.c: Likewise.
14085         * sese.c: Likewise.
14086         * stor-layout.c: Likewise.
14087         * tree-cfg.c: Likewise.
14088         * tree-cfgcleanup.c: Likewise.
14089         * tree-chrec.c: Likewise.
14090         * tree-data-ref.c: Likewise.
14091         * tree-emutls.c: Likewise.
14092         * tree-inline.c: Likewise.
14093         * tree-into-ssa.c: Likewise.
14094         * tree-loop-distribution.c: Likewise.
14095         * tree-loop-linear.c: Likewise.
14096         * tree-mudflap.c: Likewise.
14097         * tree-outof-ssa.c: Likewise.
14098         * tree-parloops.c: Likewise.
14099         * tree-predcom.c: Likewise.
14100         * tree-pretty-print.c: Likewise.
14101         * tree-scalar-evolution.c: Likewise.
14102         * tree-ssa-live.c: Likewise.
14103         * tree-ssa-loop-im.c: Likewise.
14104         * tree-ssa-loop-ivcanon.c: Likewise.
14105         * tree-ssa-loop-ivopts.c: Likewise.
14106         * tree-ssa-loop-manip.c: Likewise.
14107         * tree-ssa-loop-niter.c: Likewise.
14108         * tree-ssa-loop-prefetch.c: Likewise.
14109         * tree-ssa-phiprop.c: Likewise.
14110         * tree-ssa-pre.c: Likewise.
14111         * tree-ssa-reassoc.c: Likewise.
14112         * tree-ssa-sccvn.c: Likewise.
14113         * tree-ssa-structalias.c: Likewise.
14114         * tree-ssa.c: Likewise.
14115         * tree-vect-data-refs.c: Likewise.
14116         * tree-vect-loop-manip.c: Likewise.
14117         * tree-vect-loop.c: Likewise.
14118         * tree-vect-patterns.c: Likewise.
14119         * tree-vect-slp.c: Likewise.
14120         * tree-vect-stmts.c: Likewise.
14121         * tree-vrp.c: Likewise.
14122         * tree.c: Likewise.
14123         * value-prof.c: Likewise.
14124         * var-tracking.c: Likewise.
14125         * varasm.c: Likewise.
14126         * vmsdbgout.c: Likewise.
14127
14128 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
14129             Richard Guenther  <richard.guenther@gmail.com>
14130
14131         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
14132         copy the src value and return a copy.
14133         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
14134         (C++ Volatiles): Adjust to describe C++ semantics only.
14135
14136 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
14137
14138         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
14139         be zero or nonzero.
14140         * doc/tm.texi: Regenerate.
14141         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
14142         * df-scan.c (df_get_exit_block_use_set), reginfo.c
14143         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
14144         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
14145         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
14146         to 1.
14147
14148 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14149
14150         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
14151         an extra nop past a sibling call at the very end.
14152
14153 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14154
14155         PR bootstrap/45350
14156         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
14157         a comment.
14158
14159 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14160
14161         * target.def (function_arg, function_incoming_arg): Remove const
14162         qualifier on CUMULATIVE_ARGS parameter.
14163         * targhooks.h (default_function_arg, default_function_incoming_arg):
14164         Likewise.
14165         * targhooks.c (default_function_arg, default_function_incoming_arg):
14166         Likewise.
14167         * config/i386/i386.c (ix86_function_arg): Likewise.
14168
14169 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
14170
14171         PR target/45336
14172         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
14173         SIGN_EXTENDs or ZERO_EXTENDs.
14174
14175 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14176
14177         PR target/42172
14178         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
14179         Take its cost into account if nonnull.
14180         (insn_a_feeds_b): New static function.
14181         (combine_instructions): Look for four-insn combinations.
14182         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
14183         them into account when computing all_adjacent and looking for other
14184         uses.
14185         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
14186         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
14187         (try_combine): New arg I0.  Handle four-insn combinations.
14188         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
14189         like ELIM_I1.
14190
14191 2010-08-19  Jason Merrill  <jason@redhat.com>
14192
14193         PR c++/45307
14194         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
14195         if ctor is empty.
14196         (gimplify_modify_expr_rhs): Adjust.
14197
14198 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14199
14200         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
14201         bitmap_bit_p.
14202         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
14203         * dominance.c (iterate_fix_dominators): Likewise.
14204         * dse.c (set_usage_bits): Likewise.
14205         (set_position_unneeded, record_store): Likewise.
14206         * gimple-fold.c (get_maxval_strlen): Likewise.
14207         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
14208         * ipa-inline.c (update_caller_keys): Likewise.
14209         * ipa-split.c (verify_non_ssa_vars): Likewise.
14210         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
14211         (close_type_exposed_parameter, close_type_full_escape): Likewise.
14212         (close_addressof_down): Likewise.
14213         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
14214         (setup_allocno_left_conflicts_size): Likewise.
14215         (ira_reassign_conflict_allocnos): Likewise.
14216         (ira_reassign_pseudos): Likewise.
14217         * ira-emit.c (change_loop): Likewise.
14218         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
14219         * lto-streamer-out.c (write_symbol): Likewise.
14220         * predict.c (expr_expected_value_1): Likewise.
14221         * regstat.c (regstat_bb_compute_ri): Likewise.
14222         * sel-sched.c (create_block_for_bookkeeping): Likewise.
14223         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
14224         * stmt.c (expand_case): Likewise.
14225         * tree-eh.c (emit_eh_dispatch): Likewise.
14226         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
14227         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
14228         Likewise.
14229         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
14230         (rdg_build_components): Likewise.
14231         * tree-object-size.c (collect_object_sizes_for): Likewise.
14232         * tree-sra.c (convert_callers): Likewise.
14233         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
14234         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
14235         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
14236
14237 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14238
14239         * config/i386/i386.md (*lea_1): Use P mode iterator.
14240         (lea add splitter): Also handle DImode operands.
14241         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
14242         predicate.  Do not use ix86_lea_for_add_ok.
14243         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
14244         (lea ashift splitter): Also handle DImode operands.
14245         (DImode lea ashift splitter): Remove splitter.
14246
14247 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14248
14249         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
14250         ix86_binary_operator_ok.
14251
14252 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
14253
14254         PR rtl-optimization/44691
14255         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
14256         is not a register.
14257
14258 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14259
14260         PR target/45070
14261         * config/arm/arm.c (arm_output_epilogue): Ensure that return
14262          value of size 1-3 is handled correctly.
14263
14264 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14265
14266         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
14267         type for the conditional has wide enough range.
14268
14269 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14270
14271         PR target/45327
14272         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
14273         ix86_binary_operator_ok.
14274
14275 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14276
14277         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
14278         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
14279         code to output insn mnemonic.  Fix comment.
14280         (*addsi_1_zext): Add r-r-0 alternative 1.
14281         <TYPE_LEA>: Split insn to lea.
14282         <default>: Handle alternative 1.
14283         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
14284         multi-level if_then_else RTX to set "type" attribute.
14285         <default>: Handle alternative 2.
14286         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
14287         Use cond RTX instead of multi-level if_then_else RTX to set
14288         "type" attribute.
14289         <default>: Handle alternatives 2 and 4.
14290         (lea splitters): Update calls to ix86_lea_for_add_ok.
14291
14292         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
14293         argument.
14294         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
14295
14296 2010-08-18  Richard Guenther  <rguenther@suse.de>
14297
14298         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
14299         use operand helpers.
14300
14301 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
14302
14303         PR middle-end/45292
14304         * optabs.c (expand_bool_compare_and_swap): Expand pending
14305         pops before trying the optab.
14306
14307 2010-08-18  Yao Qi  <yao@codesourcery.com>
14308
14309         PR target/45094
14310         * config/arm/arm.c (output_move_double): Fix typo generating
14311         instructions ('ldr'->'str').
14312
14313 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14314
14315         PR rtl-optimization/42575
14316         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
14317         live ranges.
14318
14319 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14320
14321         * config/arm/arm-protos.h (arm_expand_sync): New.
14322         (arm_output_memory_barrier, arm_output_sync_insn): New.
14323         (arm_sync_loop_insns): New.
14324         * config/arm/arm.c (FL_ARCH7): New.
14325         (FL_FOR_ARCH7): Include FL_ARCH7.
14326         (arm_arch7): New.
14327         (arm_print_operand): Support %C markup.
14328         (arm_legitimize_sync_memory): New.
14329         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
14330         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
14331         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
14332         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
14333         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
14334         (arm_process_output_sync_insn, arm_output_sync_insn): New.
14335         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
14336         * config/arm/arm.h (struct arm_sync_generator): New.
14337         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
14338         (TARGET_HAVE_MEMORY_BARRIER): New.
14339         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
14340         * config/arm/arm.md: Include sync.md.
14341         (UNSPEC_MEMORY_BARRIER): New.
14342         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
14343         (VUNSPEC_SYNC_OP):New.
14344         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
14345         (sync_result, sync_memory, sync_required_value): New attributes.
14346         (sync_new_value, sync_t1, sync_t2): Likewise.
14347         (sync_release_barrier, sync_op): Likewise.
14348         (length): Add logic to length attribute defintion to call
14349         arm_sync_loop_insns when appropriate.
14350         * config/arm/sync.md: New file.
14351
14352 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
14353
14354         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
14355         ENABLE_TREE_CHECKING.
14356         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
14357         and GCC >= 4.3.
14358
14359 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
14360
14361         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
14362         or optimizing for size, always avoid lea if possible.
14363
14364         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
14365
14366 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
14367
14368         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
14369         Dunmmy function with NULL return unless the target is
14370         OSX >= 10.6 (Darwin10).
14371
14372 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14373
14374         * gcc.c (spec_function): Add remove-outfile.
14375         (remove_outfile_spec_function): New function.
14376         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
14377         * invoke.texi (replace-outfile): Document.
14378
14379 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
14380
14381         PR target/45296
14382         * reginfo.c (globalize_reg): Reject stack registers.
14383
14384 2010-08-17  Richard Guenther  <rguenther@suse.de>
14385
14386         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
14387         list of conditional equivalences.
14388         (free_all_edge_infos): Adjust.
14389         (record_equivalences_from_incoming_edge): Likewise.
14390         (record_cond): Likewise.
14391         (build_and_record_new_cond): Likewise.
14392         (record_conditions): Likewise.
14393         (dom_opt_leave_block): Likewise.
14394
14395 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
14396
14397         * doc/invoke.texi (ms-extension): Add documentation.
14398
14399 2010-08-17  Richard Guenther  <rguenther@suse.de>
14400
14401         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
14402
14403 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
14404
14405         PR c/40563
14406         * c-decl.c (diagnose_uninitialized_cst_member): New function.
14407         (finish_decl): Use it to issue a -Wc++-compat warning about
14408         uninitialized const field in struct or union.
14409
14410         (finish_struct): Use strip_array_types.
14411
14412 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
14413
14414         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
14415         functions.
14416         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
14417         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
14418         call block_nreverse here.
14419         (blocks_nreverse): Rename decl temporary to block.
14420
14421 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
14422
14423         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
14424         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
14425         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
14426         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
14427         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
14428         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
14429         thumb2_iorsi3): Delete.
14430         (orsi_notsi_si): No longer a named pattern.
14431         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
14432         * config/arm/predicates.md (shift_amount_operand): New.
14433         (mult_operator): New.
14434         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
14435         attr enabled): New.
14436         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
14437         arch matches t2.
14438         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
14439         (not_shiftsi_compare0): Likewise, renamed from
14440         arm_notsi_shiftsi_compare0.
14441         (not_shiftsi_compare0_scratch): Likweise, renamed from
14442         arm_notsi_shiftsi_compare0_scratch.
14443         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
14444         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
14445         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
14446         so that the register alternative is disabled when the shift_operator
14447         is MULT.  Use "M" as the constraint for constants.
14448         (arith_shiftsi splitter): Enable for TARGET_32BIT.
14449         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
14450         constraint for constants.
14451         (arith_shiftsi_compare0_scratch): Likewise.
14452         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
14453         Handle Thumb2 alternative.
14454
14455 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14456
14457         * doc/options.texi (NoDriverArg): Document.
14458         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
14459         -MDX and -MMDX.
14460         * opt-functions.awk (switch_flags): Handle NoDriverArg.
14461         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
14462         marking for CL_NO_DRIVER_ARG options when in the driver.
14463         * opts.h (CL_NO_DRIVER_ARG): Define.
14464         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14465         CL_COMMON): Update values.
14466
14467 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14468
14469         * common.opt: Add driver options.
14470         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
14471         * doc/options.texi (Driver, RejectDriver): Document.
14472         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
14473         print_prog_name, print_multi_directory, print_sysroot,
14474         print_multi_os_directory, print_multi_lib,
14475         print_sysroot_headers_suffix, report_times, combine_flag,
14476         use_pipes, wrapper_string): Remove.
14477         (save_switch, driver_unknown_option_callback,
14478         driver_wrong_lang_callback, driver_post_handling_callback,
14479         driver_handle_option): New.
14480         (spec_lang, last_language_n_infiles): Make file-scope static
14481         instead of local to process_command.
14482         (process_command): Use decode_cmdline_options_to_array and
14483         read_cmdline_option for option processing.  Compute have_c in
14484         prescan of decoded options.
14485         * opt-functions.awk (switch_flags): Handle Driver and
14486         RejectDriver.
14487         (var_type, var_type_struct): Handle Separate options as generating
14488         const char * variables.
14489         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
14490         CL_TARGET to be passed by caller if required.
14491         (decode_cmdline_options_to_array): Update comment.
14492         * opts.c (complain_wrong_lang): Handle options only valid for the
14493         driver.
14494         (decode_options): Update call to decode_cmdline_options_to_array.
14495         (print_filtered_help): Ignore driver-only options.
14496         (print_specific_help): Ignore CL_DRIVER.
14497         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
14498         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
14499         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
14500         Update values.
14501
14502 2010-08-16  Richard Guenther  <rguenther@suse.de>
14503
14504         * tree-cfg.c (verify_types_in_gimple_reference): Verify
14505         TARGET_MEM_REF a bit.
14506         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
14507         (create_mem_ref_raw): Always create TMR_OFFSET, store the
14508         alias pointer type via it.
14509         (copy_mem_ref_info): Adjust.
14510         (maybe_fold_tmr): Likewise.
14511         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
14512         (reference_alias_ptr_type): Likewise.
14513         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
14514         adjust documentation of TMR_OFFSET operand.
14515         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
14516         use the alias pointer type.
14517         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
14518         initialize mem attrs but the TMR itself.
14519         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
14520         similar to MEM_REF.
14521         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
14522         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
14523         (unshare_and_remove_ssa_names): Likewise.
14524         (copy_ref_info): Adjust.
14525         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
14526         TARGET_MEM_REF case.
14527         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
14528         at TMR_ORIGINAL.
14529         * tree.h (TMR_ORIGINAL): Remove.
14530         * gimple.c (get_base_address): For TARGET_MEM_REF with a
14531         symbol return that.
14532         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
14533         with a symbol.
14534         (get_addr_base_and_unit_offset): Likewise.
14535         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
14536         TARGET_MEM_REFs.
14537         (indirect_ref_may_alias_decl_p): Likewise.
14538         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
14539
14540 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
14541
14542         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
14543         with GCC version 4.6, the default setting (when not optimizing
14544         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
14545         been changed to -fomit-frame-pointer.
14546
14547 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
14548
14549         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
14550         Darwin10.  Do not link libgcc.a for Darwin >= 9.
14551
14552 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
14553
14554         * doc/invoke.texi (Warning Options): Fix terminology and markup
14555         in the description of how unknown warning options are handled.
14556
14557 2010-08-15  Ira Rosen  <irar@il.ibm.com>
14558
14559         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
14560         in basic blocks.
14561         (vect_supportable_dr_alignment): Check alignment for basic blocks.
14562         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
14563         data references.
14564         (vect_bb_vectorization_profitable_p): New function.
14565         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
14566         check if it's worthwhile to vectorize the basic block.
14567
14568 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
14569
14570         * reload.h (register_move_cost, memory_move_secondary_cost,
14571         secondary_reload_class): Adjust prototype.
14572         * rtl.h (reg_class_subset_p): Adjust prototype.
14573         * reload.c (secondary_reload_class): Change arguments type from
14574         enum reg_class to reg_class_t. Change result type to reg_class_t.
14575         * reginfo.c (register_move_cost, reg_class_subset_p): Change
14576         arguments type from enum reg_class to reg_class_t.
14577         (memory_move_secondary_cost): Change arguments type from
14578         enum reg_class to reg_class_t. Change type of saved_flags to
14579         reg_class_t.
14580
14581         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14582         Remove macros.
14583         (mips_cost): Remove.
14584         (struct mips_rtx_cost_data): Moved to mips.c.
14585         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
14586         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
14587         (mips_cost): Make static.
14588         (mips_canonicalize_move_class): Change argument type to reg_class_t.
14589         Change result type to reg_class_t.
14590         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
14591         type from enum reg_class to reg_class_t.
14592         (mips_register_move_cost): Make static. Change arguments
14593         type from enum reg_class to reg_class_t.
14594         (mips_memory_move_cost): New function.
14595         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14596
14597 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
14598
14599         PR rtl-optimization/43358
14600         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
14601         of a single hard register, using simplify_subreg_regno to decide
14602         what that register should be.
14603
14604 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
14605
14606         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
14607         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
14608         (loongson_pmull<V_suffix>): Rename to...
14609         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
14610
14611 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
14612
14613         * configure.ac: Enable -fomit-frame-pointer on darwin
14614         which support dwarf2.
14615         * config/i386/i386.c (override_options): Same.
14616
14617 2010-08-13  Jie Zhang  <jie@codesourcery.com>
14618
14619         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
14620
14621 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
14622
14623         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
14624         -MMD.
14625
14626 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
14627
14628         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
14629         up dot_prod pattern searching if a stmt is outside the loop.
14630
14631 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14632             Uros Bizjak  <ubizjak@gmail.com>
14633
14634         * config.gcc: Handle --enable-frame-pointer.
14635
14636         * configure.ac: Add --enable-frame-pointer.
14637         * configure: Regenerated.
14638
14639         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
14640         (override_options): If not configured with --enable-frame-pointer,
14641         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
14642         optimizing for size), -fasynchronous-unwind-tables and
14643         -maccumulate-outgoing-args by default.
14644
14645 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
14646
14647         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
14648
14649         PR middle-end/45262
14650         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
14651         -a overflows.  Normalize the range.
14652
14653 2010-08-12  Richard Guenther  <rguenther@suse.de>
14654
14655         PR tree-optimization/45232
14656         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
14657         for types with undefined overflow.
14658         (reassociate_bb): Allow re-associating of bit and min/max
14659         operations for types with undefined overflow.
14660         * tree-ssa-forwprop.c (associate_plusminus): New function.
14661         (tree_ssa_forward_propagate_single_use_vars): Call it.
14662
14663 2010-08-12  Richard Guenther  <rguenther@suse.de>
14664
14665         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
14666         * tree-ssa-alias.c (get_ptr_info): Move ...
14667         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
14668         align and misalign fields conservatively.
14669         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
14670         derive alignment information.
14671         (evaluate_stmt): Derive alignment information from memory
14672         allocation functions.
14673         * tree.h (get_pointer_alignment): Make unsigned.
14674         * builtins.c (get_object_alignment): Use alignment information we
14675         have computed for pointers.
14676         (get_pointer_alignment): Likewise.  Make conservative, return
14677         and unsigned value.
14678         (expand_builtin_strlen): Adjust.
14679         (expand_builtin_memcmp): Likewise.
14680         (expand_builtin_strcmp): Likewise.
14681         (expand_builtin_strncmp): Likewise.
14682         (get_builtin_sync_mem): Use at least mode alignment.
14683         (fold_builtin_memset): Adjust.
14684         (fold_builtin_memory_op): Likewise.
14685         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
14686         information also dump pointer alignment knowledge.
14687         (dump_gimple_stmt): Likewise.
14688
14689 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
14690
14691         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
14692         (EMPTY_FIELD_BOUNDARY): Remove.
14693         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
14694
14695 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
14696
14697         PR debug/45259
14698         * caller-save.c (save_call_clobbered_regs): Only swap notes with
14699         DEBUG_INSNs if n_regs_saved.
14700
14701 2010-08-12  Wei Guozhi  <carrot@google.com>
14702
14703         PR target/44999
14704         * config/arm/arm.md (andsi3): Change to zero extension if possible.
14705         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
14706
14707 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
14708
14709         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
14710
14711         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
14712
14713 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14714
14715         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
14716         the case removed in the previous patch, when the only phi argument
14717         is defined in the same loop as the phi node itself.  Handle it
14718         separately from the invariant case by both propagating it outside
14719         the region and replacing the phi node with an assign.
14720
14721 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14722
14723         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
14724         constant phi nodes with one argument are is_gimple_min_invariant
14725         and SSA_NAME_IS_DEFAULT_DEF.
14726
14727 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14728
14729         * graphite-cloog-util.c (oppose_constraint):
14730         Extend loop counter's value range (CLOOG_ORG).
14731         (cloog_matrix_to_ppl_constraint): Same.
14732         (new_Constraint_System_from_Cloog_matrix): Same.
14733         * graphite-cloog-compat.h (matrix_num_type): New.
14734
14735 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14736
14737         * graphite.c (graphite_initialize): Do not initialize
14738         CLooG and initialize the Parma Polyhedra Library
14739         manually when using CLOOG_ORG.
14740         (graphite_finalize): Do not finalize CLooG and finalize
14741         the Parma Polyhedra Library manually when using CLOOG_ORG.
14742         * graphite-cloog-compat.h (cloog_initialize): Hide function
14743         when using CLOOG_ORG.
14744         (cloog_finalize): Same.
14745
14746 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14747
14748         * graphite-clast-to-gimple.c (free_scattering): Change
14749         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
14750         (CLOOG_ORG).
14751         (build_cloog_prog): Same.
14752         * graphite-cloog-compat.h (cloog_domain): Removed.
14753         (cloog_scattering): New.
14754         (cloog_set_domain): Removed.
14755         (cloog_set_scattering): New.
14756         (cloog_next_domain): Removed.
14757         (cloog_next_scattering): New.
14758         (cloog_set_next_domain): Removed.
14759         (cloog_set_next_scattering): New.
14760         (CloogScatteringList): New.
14761         (CloogScattering): New.
14762         (cloog_scattering_free): New.
14763         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
14764         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
14765         New.
14766
14767 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14768
14769         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
14770         CloogState.
14771         (set_cloog_options): Same.
14772         (print_clast_stmt): Same.
14773         (scop_to_clast): Same.
14774         (print_generated_program): Same.
14775         (gloog): Same.
14776         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
14777         (scop_to_clast): Extend with CloogState.
14778         * graphite-cloog-util.c: Include graphite-cloog-compat.h
14779         (new_Cloog_Domain_from_ppl_Polyhedron):
14780         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
14781         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
14782         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14783         * graphite-cloog-util.h (build_cloog_prog): Same.
14784         * graphite-cloog-copat.h (build_cloog_prog): New.
14785         (CloogState): New.
14786         (cloog_state_malloc): New.
14787         (cloog_state_free): New.
14788         (cloog_loop_malloc): New.
14789         (cloog_options_malloc): New.
14790         (cloog_statement_alloc): New.
14791         (cloog_domain_from_cloog_matrix): New.
14792         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
14793         (new_Cloog_Domain_from_ppl_Polyhedron): New.
14794
14795 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14796
14797         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
14798         type of NAME now depends on used CLooG version.
14799         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
14800         (gcc_type_for_clast_expr): Same.
14801         (print_clast_stmt): Replace pprint with clast_pprint.
14802         * graphite-cloog-compat.h: Provide compatibility macros for
14803         CLooG Legacy.
14804         (clast_name_p): New.
14805         (clast_expr_term): New.
14806         (clast_expr_red): New.
14807         (clast_expr_bin): New.
14808         (clast_pprint): New.
14809
14810 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14811
14812         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
14813         compatible to newer CLooG releases (CLOOG_ORG).
14814         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
14815         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
14816         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
14817         (build_cloog_prog) : New.
14818         (cloog_program_extract_scalars): New.
14819         (cloog_program_scatter): New.
14820
14821 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14822
14823         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
14824         conditionally (CLOOG_ORG).
14825         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
14826         (cloog_statement_usr): New.
14827         (cloog_domain): Same.
14828         (cloog_set_domain): Same.
14829         (cloog_next_domain): Same.
14830         (cloog_set_next_domain): Same.
14831         (cloog_program_nb_scattdims): Same.
14832         (cloog_program_set_nb_scattdims): Same.
14833         (cloog_program_names): Same.
14834         (cloog_program_set_names): Same.
14835         (cloog_program_set_context): Same.
14836         (cloog_program_set_loop): Same.
14837         (cloog_program_blocklist): Same.
14838         (cloog_program_set_blocklist): Same.
14839         (cloog_program_scaldims): Same.
14840         (cloog_program_set_scaldims): Same.
14841         (cloog_names_nb_parameters): Same.
14842         (cloog_names_set_nb_parameters): Same.
14843         (cloog_names_parameters): Same.
14844         (cloog_names_set_parameters): Same.
14845         (cloog_names_set_nb_iterators): Same.
14846         (cloog_names_set_iterators): Same.
14847         (cloog_names_set_nb_scattering): Same.
14848         (cloog_names_set_scattering): Same.
14849         (cloog_statement_set_usr): Same.
14850         (cloog_loop_set_next): Same.
14851         (cloog_loop_set_domain): Same.
14852         (cloog_loop_set_block): Same.
14853         (cloog_block_list_next): Same.
14854         (cloog_block_list_set_next):
14855         (cloog_block_list_set_block): Same.
14856
14857 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14858
14859         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
14860         a bool.
14861         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
14862         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
14863         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
14864         when something has been changed.
14865         (rewrite_commutative_reductions_out_of_ssa): Same.
14866
14867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14868
14869         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
14870         handle the case when def is in the sese region.
14871         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
14872         for invariant expressions.
14873         (rewrite_cross_bb_phi_deps): Removed.
14874         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
14875         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
14876         rewrite_cross_bb_phi_deps.
14877
14878 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14879
14880         * graphite-sese-to-poly.c
14881         (rewrite_commutative_reductions_out_of_ssa_loop): Call
14882         scev_analyzable_p only on is_gimple_reg
14883
14884 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14885
14886         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
14887         (rewrite_close_phi_out_of_ssa): Propagate constant values or
14888         parametric expressions outside the scop region.
14889         (rewrite_cross_bb_scalar_deps): Same.
14890         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
14891
14892 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14893
14894         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
14895         SSA_NAME_DEF_STMT only on SSA_NAMEs.
14896
14897 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14898
14899         * tree-scalar-evolution.c (instantiate_scev_name): Do not
14900         instantiate default definitions.
14901
14902 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
14903             Sebastian Pop  <sebastian.pop@amd.com>
14904
14905         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
14906         (loop_exits_from_bb_p): New.
14907         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
14908         (loop_exits_from_bb_p): Declared.
14909         * graphite-scop-detection.c (scopdet_basic_block_info): Call
14910         loop_exits_to_bb_p.
14911
14912 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14913
14914         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
14915         extra parameter for the region.  Call scev_analyzable_p.
14916         (rewrite_reductions_out_of_ssa): Update call to
14917         rewrite_close_phi_out_of_ssa.
14918         (rewrite_cross_bb_phi_deps): Same.
14919         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
14920         parameter for the region.  Call scev_analyzable_p.
14921         (rewrite_commutative_reductions_out_of_ssa): Update call to
14922         rewrite_commutative_reductions_out_of_ssa_loop.
14923
14924 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14925
14926         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
14927
14928 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14929
14930         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
14931         SSA scalar phi nodes that can be scev_analyzable_p.
14932
14933 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14934
14935         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
14936         handle SSA_NAME_IS_DEFAULT_DEF.
14937
14938 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14939
14940         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
14941
14942 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14943
14944         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
14945         case non close-phi nodes with one argument.
14946
14947 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14948
14949         * sese.h (scev_analyzable_p): Scevs could be expressions without
14950         chrecs and still be scev_analyzable_p.
14951
14952 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14953
14954         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14955
14956 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14957
14958         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
14959         * cfgloop.h (struct loop): Remove single_iv field.
14960         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
14961         (scop_canonicalize_loops): Removed.
14962         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
14963         over all the loop phi nodes in loop->header.
14964         (build_poly_scop): Remove use of scop_canonicalize_loops.
14965
14966 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14967
14968         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
14969         handle GIMPLE_CALL.
14970
14971 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14972
14973         * tree-chrec.c (chrec_apply): Should only apply to the specified
14974         variable.  Also handle multivariate chains of recurrences that
14975         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
14976
14977 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14978
14979         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
14980         (debug_clast_name_indexes_1): Removed.
14981         (debug_clast_name_indexes): Removed.
14982         (pbb_to_depth_to_oldiv): Removed.
14983         (build_iv_mapping): Replace the use of rename_map with iv_map.
14984         (translate_clast_user): Remove uses of rename_map.  Allocate and
14985         free iv_map.
14986         (translate_clast_for_loop): Remove uses of rename_map.
14987         (translate_clast_for): Same.
14988         (translate_clast_guard): Same.
14989         (translate_clast): Same.
14990         (gloog): Same.
14991         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
14992         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
14993         * sese.c (set_rename): Now static.
14994         (rename_variables_in_stmt): Removed.
14995         (rename_uses): New.
14996         (is_parameter): Removed.
14997         (is_iv): Removed.
14998         (expand_scalar_variables_call): Removed.
14999         (expand_scalar_variables_ssa_name): Removed.
15000         (expand_scalar_variables_expr): Removed.
15001         (expand_scalar_variables_stmt): Removed.
15002         (expand_scalar_variables): Removed.
15003         (rename_variables): Removed.
15004         (remove_condition): Removed.
15005         (get_true_edge_from_guard_bb): Removed.
15006         (get_false_edge_from_guard_bb): Removed.
15007         (struct igp): Removed.
15008         (default_before_guard): Removed.
15009         (convert_for_phi_arg): Removed.
15010         (add_guard_exit_phis): Removed.
15011         (insert_guard_phis): Removed.
15012         (graphite_copy_stmts_from_block): Now also uses iv_map and a
15013         region.  Do not copy conditions.  Do not copy induction variables.
15014         Call rename_uses.
15015         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
15016         the translated statement.  Use the iv_map for the induction
15017         variable renaming.
15018         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15019         (set_rename): Removed declaration.
15020         (scev_analyzable_p): ...here.
15021         * tree-chrec.c (chrec_apply_map): New.
15022         * tree-chrec.h (chrec_apply_map): Declared.
15023
15024 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15025
15026         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
15027         insert_loop_close_phis.
15028         * sese.c (name_defined_in_loop_p): Removed.
15029         (expr_defined_in_loop_p): Removed.
15030         (alive_after_loop): Removed.
15031         (close_phi_not_yet_inserted_p): Removed.
15032         (struct alep): Removed.
15033         (add_loop_exit_phis): Removed.
15034         (insert_loop_close_phis): Removed.
15035
15036 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15037
15038         * graphite-cloog-util.c
15039         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
15040         * graphite-poly.c
15041         (psct_scattering_dim_for_loop_depth): Same.
15042
15043 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15044
15045         * graphite-cloog-util.h: Added cloog.h.
15046         * graphite-blocking.c: Removed cloog.h.
15047         * graphite-dependences.c: Same.
15048         * graphite-interchange.c: Same.
15049         * graphite-poly.c: Same.
15050         * graphite-ppl.c: Same.
15051         * graphite-scop-detection.c: Same.
15052         * graphite-sese-to-poly.c:
15053         Removed cloog.h.
15054         Removed graphite-clast-to-gimple.h.
15055         (check_poly_representation): Removed (unused).
15056         * graphite-sese-to-poly.h
15057         (check_poly_representation): Removed (unused).
15058
15059 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15060
15061         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
15062         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
15063         (graphite-cloog-util.o): New.
15064         (graphite-ppl.o): Added graphite-cloog-util.h.
15065         * graphite-clast-to-gimple.c:
15066         Added graphite-cloog-util.h to include statements.
15067         * graphite-cloog-util.c: New.
15068         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
15069         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15070         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15071         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15072         (insert_constraint_into_matrix): Same.
15073         (ppl_Constrain_System_number_of_constraints): Same.
15074         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15075         (oppose_constraint): Same.
15076         (cloog_matrix_to_ppl_constraint): Same.
15077         (new_Constraint_System_from_Cloog_Matrix): Same.
15078         * graphite-cloog-util.h: New.
15079         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
15080         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15081         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15082         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15083         (insert_constraint_into_matrix): Same.
15084         * graphite-ppl.c:
15085         Added graphite-cloog-util.h to include statements.
15086         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
15087         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15088         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15089         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15090         (insert_constraint_into_matrix): Same.
15091         (ppl_Constrain_System_number_of_constraints): Same.
15092         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15093         (oppose_constraint): Same.
15094         (cloog_matrix_to_ppl_constraint): Same.
15095         (new_Constraint_System_from_Cloog_Matrix): Same.
15096         * graphite-ppl.h:
15097         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
15098         graphite-cloog-util.h.
15099         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15100         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15101         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15102         (insert_constraint_into_matrix): Same.
15103
15104 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15105
15106         * graphite-clast-to-gimple.c
15107         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
15108         (precision_for_interval): Same.
15109         (gcc_type_for_interval): Same.
15110         (compute_type_for_level): Same.
15111         * graphite-interchange.c
15112         (lst_interchange_profitable_p): Same.
15113         * graphite-poly.c
15114         (psct_scattering_dim_for_loop_depth): Same.
15115         * graphite-ppl.c
15116         (ppl_max_for_le_pointset): Same.
15117         (ppl_min_for_le_pointset): Same.
15118
15119 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15120
15121         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
15122         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
15123
15124 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15125
15126         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
15127         rewrite_close_phi_out_of_ssa.
15128
15129 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15130
15131         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
15132
15133 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15134
15135         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
15136         rename_map.
15137         * sese.c (debug_rename_map): Same.
15138         (get_rename): Same.
15139         (set_rename): Same.
15140         (rename_variables_in_stmt): Same.
15141         (expand_scalar_variables_call): Same.
15142         (expand_scalar_variables_ssa_name): Same.
15143         (expand_scalar_variables_expr): Same.
15144         (expand_scalar_variables_stmt): Same.
15145         (expand_scalar_variables): Same.
15146         (rename_variables): Same.
15147         (graphite_copy_stmts_from_block): Same.
15148         (copy_bb_and_scalar_dependences): Same.
15149
15150 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15151
15152         * graphite-clast-to-gimple.c (copy_renames): Removed.
15153         (translate_clast_for): Do not call copy_renames.
15154         (translate_clast_guard): Same.
15155
15156 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15157
15158         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
15159         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
15160         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
15161         before rewrite_cross_bb_scalar_deps.
15162
15163 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15164
15165         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
15166         Early return in when flag_associative_math is not set.
15167
15168 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15169
15170         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
15171         of SSA copies on edges except for loop->latch.
15172
15173 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15174
15175         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
15176         Split out of rewrite_reductions_out_of_ssa.
15177         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
15178         Declared.
15179         * graphite.c (graphite_transform_loops): Call it.
15180
15181 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15182
15183         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
15184
15185 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
15186
15187         * dbgcnt.def (graphite_scop): New counter.
15188         * graphite.c: Include dbgcnt.h.
15189         (graphite_transform_loops): Use new counter to limit transformations.
15190         * Makefile.in (graphite.o): Depend on DBGCNT_H.
15191
15192 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15193
15194         * passes.c (init_optimization_passes): Add pass_graphite.
15195         Schedule a pass_copy_prop before pass_graphite_transforms.
15196         * timevar.def (TV_GRAPHITE): Declared.
15197         * tree-pass.h (pass_graphite): Declared.
15198         * tree-ssa-loop.c (pass_graphite): New.
15199
15200 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15201
15202         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
15203         Remove calls to rename_nb_iterations and rename_sese_parameters.
15204         * graphite-clast-to-gimple.h (gloog): Update declaration.
15205         * graphite.c (graphite_transform_loops): Update call to gloog.
15206         * sese.c (rename_variables_in_expr): Removed.
15207         (rename_nb_iterations): Removed.
15208         (rename_sese_parameters): Removed.
15209         * sese.h (rename_nb_iterations): Removed.
15210         (rename_sese_parameters): Removed.
15211
15212 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15213
15214         * graphite-clast-to-gimple.c (gloog): Remove call to
15215         sese_adjust_liveout_phis.
15216         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
15217         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
15218         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
15219         rewrite_phi_out_of_ssa.
15220         * sese.c (get_vdef_before_sese): Removed.
15221         (sese_adjust_vphi): Removed.
15222         (sese_adjust_liveout_phis): Removed.
15223         * sese.h (sese_adjust_liveout_phis): Removed.
15224
15225 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15226
15227         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
15228         argument for the place after which to insert the out of SSA copy.
15229         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
15230         (rewrite_phi_out_of_ssa): Same.
15231         (rewrite_cross_bb_scalar_deps): Same.
15232         (insert_copyout): Removed.
15233         (insert_copyin): Removed.
15234         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
15235         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
15236         insert_copyin.
15237
15238 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15239
15240         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
15241         (rewrite_reductions_out_of_ssa): Same.
15242         (rewrite_commutative_reductions_out_of_ssa): Same.
15243         (build_poly_scop): Do not call these functions.
15244         * graphite-sese-to-poly.h (build_poly_scop): Declared.
15245         (rewrite_reductions_out_of_ssa): Declared.
15246         (rewrite_commutative_reductions_out_of_ssa): Declared.
15247         * graphite.c (graphite_transform_loops): Call on every scop
15248         rewrite_commutative_reductions_out_of_ssa before calling
15249         rewrite_reductions_out_of_ssa and build_scop_bbs.
15250
15251 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15252
15253         * graphite-dependences.c (dot_deps): Make system call to dotty run
15254         in background.
15255         (dot_deps_stmt): Same.
15256         * graphite-poly.c (dot_lst): Same.
15257
15258 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15259
15260         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
15261         phi_arg_in_outermost_loop.
15262         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
15263         (remove_invariant_phi): Same.
15264
15265 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
15266
15267         * target.def (output_addr_const_extra): New hook.
15268         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
15269         * doc/tm.texi: Regenerate.
15270         * targhooks.c (default_asm_output_addr_const_extra): New function.
15271         * targhooks.h (default_asm_output_addr_const_extra): Declare.
15272         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
15273         target hook.
15274
15275         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15276         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
15277         * config/i386/i386.h (output_addr_const_extra): Rename to...
15278         (i386_asm_output_addr_const_extra): ...this. Make static.
15279         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15280
15281 2010-08-11  Richard Henderson  <rth@redhat.com>
15282
15283         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
15284
15285 2010-08-11  Nick Clifton  <nickc@redhat.com>
15286
15287         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
15288         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
15289         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15290         stormy16-lib2-cmpsi.c.
15291
15292         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
15293         -O2.
15294
15295 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
15296
15297         * opts.h (struct cl_option_handler_func): Make handler take
15298         cl_decoded_option structure as parameter, not individual elements.
15299         (struct cl_option_handlers): Make callbacks take cl_decoded_option
15300         structure as parameter, not individual elements.
15301         (handle_option): Take cl_decoded_option structure as parameter,
15302         not individual elements.
15303         (handle_generated_option): Declare.
15304         * opts-common.c (handle_option): Take cl_decoded_option structure
15305         as parameter, not individual elements.  Update calls to callback
15306         and handler functions.
15307         (handle_generated_option): New.
15308         (read_cmdline_option): Update calls to callback functions and
15309         handle_option.
15310         * opts.c (common_handle_option, complain_wrong_lang,
15311         unknown_option_callback, post_handling_callback,
15312         lang_handle_option, target_handle_option): Take cl_decoded_option
15313         structure as parameter, not individual elements.
15314         (lang_handle_option, target_handle_option, common_handle_option):
15315         Assert option has at most one argument.
15316         (enable_warning_as_error): Call handle_generated_option instead of
15317         handle_option.  Do not pass -Werror argument as argument of
15318         generated option.
15319
15320 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15321
15322         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15323         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15324         (SUBWORD_BOOL_CAS): Likewise.
15325         (SUBWORD_SYNC_OP): Likewise.
15326         (SUBWORD_TEST_AND_SET): Likewise.
15327         (FETCH_AND_OP_WORD): Parenthesise INF_OP
15328         (SUBWORD_SYNC_OP): Likewise.
15329         (OP_AND_FETCH_WORD): Likewise.
15330
15331 2010-08-10  Xinliang David Li  <davidxl@google.com>
15332
15333         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
15334         compute max/min offset in address.
15335
15336 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
15337
15338         * ira-live.c: Include sbitmap.h.
15339         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
15340         Compress live ranges even more.
15341
15342 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15343
15344         * coverage.c (ctr_labels): Delete.
15345
15346 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
15347
15348         PR bootstrap/45177
15349         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
15350         test here from arm_gen_load_multiple_1.
15351         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
15352         multiple_operation_profitable_p.
15353
15354 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15355
15356         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
15357         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
15358
15359 2010-08-10  Richard Henderson  <rth@redhat.com>
15360
15361         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
15362         after saving registers.  Assert that SSE registers are only saved
15363         with a sufficiently aligned frame.
15364         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
15365         remove stack_realign_fp handling.
15366         (ix86_expand_prologue): Save int registers before stack_realign_fp,
15367         and do not mark the stack alignment as frame related.
15368         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
15369
15370         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
15371         saves when re-aligning the stack.
15372
15373 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15374
15375         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
15376         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
15377         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
15378
15379 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15380
15381         * dwarf2out.c (struct die_struct): Move die_tag to the end.
15382
15383 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
15384
15385         * config/arm/iterators.md: New file.
15386         * config/arm/arm.md: Include iterators.md.
15387         (QHSI): Move to new file.
15388         (LTUGEU, cnb, optab, ior_xor): Likewise.
15389         * config/arm/iwmmxt.md (VMMX): Move to new file.
15390         (VSHFT, MMX_char): Likewise.
15391         * config/arm/neon.md (VD): Move to new file.
15392         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
15393         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
15394         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
15395         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
15396         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
15397         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
15398         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
15399         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
15400         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
15401         (Is_d_reg, V_mode_nunits): Likewise.
15402         * config/arm/vec-common.md (VALL): Move to new file.
15403         (VALLW, VINT, VINTW): Likewise.
15404
15405 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
15406
15407         PR middle-end/45182
15408         * combine.c (make_compound_operation): Don't try to convert
15409         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
15410
15411 2010-08-10  Richard Guenther  <rguenther@suse.de>
15412
15413         * tree.h (get_object_alignment): Adjust prototype.
15414         * builtins.c (get_object_alignment): Return unsigned int,
15415         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
15416         and TARGET_MEM_REF properly.
15417         (get_pointer_alignment): Adjust.
15418         * emit-rtl.c (get_mem_align_offset): Adjust comment.
15419         (set_mem_attributes_minus_bitpos): Adjust.
15420         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
15421
15422 2010-08-10  Richard Guenther  <rguenther@suse.de>
15423
15424         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
15425         (copy_prop_visit_assignment): Simplify.
15426         (copy_prop_visit_stmt): Also visit assignments from
15427         constants.
15428         (copy_prop_visit_phi_node): Use operand_equal_p.
15429
15430 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15431
15432         * ipa-split.c (find_split_points): Free stack.
15433
15434 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15435
15436         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
15437         * tree.c (tree_node_kind): Delete corresponding entries.
15438
15439 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15440
15441         * alias.c (may_alias_p): Remove unused ret.
15442
15443 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
15444
15445         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
15446         alias_sets_conflict_p.
15447         (walk_mems_1): Moved from alias.c.
15448         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
15449         in alias.c.
15450         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
15451         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
15452         * alias.c (walk_mems_2): Moved to ddg.c.
15453         (walk_mems_1): Ditto.
15454         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
15455         to ddg.c.
15456         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
15457         disambiguation.
15458         *(may_alias_p): New function to check whether two memory expression
15459         may alias or not. Currently used in buidling inter-iteration memory
15460         dependence.
15461         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
15462         (insn_alias_sets_conflict_p): Removed
15463         *rtl.h (may_alias_p): New function prototype.
15464
15465 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15466
15467         * tree.c (nreverse): Assert that we don't have a BLOCK.
15468
15469 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15470
15471         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
15472         * config/arm/arm.c (arm_get_pcs_model): Likewise.
15473         * config/avr/avr.c (init_cumulative_args): Likewise.
15474         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15475         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15476         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
15477         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15478         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15479         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15480         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
15481         * dwarf2out.c (gen_subprogram_die): Likewise.
15482         * function.c (allocate_struct_function): Likewise.
15483         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
15484         (deserves_ellipsis): Delete.
15485
15486 2010-08-09  Richard Guenther  <rguenther@suse.de>
15487
15488         * tree-ssa-copy.c (cached_last_copy_of): Remove.
15489         (valueize_val): New function.
15490         (get_last_copy_of): Remove.
15491         (set_copy_of_val): Simplify.
15492         (dump_copy_of): Likewise.
15493         (copy_prop_visit_cond_stmt): Use valueize_val.
15494         (copy_prop_visit_phi_node): Properly handle unvisited names.
15495         Drop code managing copy-of chains.
15496         (init_copy_prop): Adjust.
15497         (fini_copy_prop): Likewise.
15498         (execute_copy_prop): Remove obsolete comment.
15499
15500 2010-08-09  Richard Guenther  <rguenther@suse.de>
15501
15502         PR middle-end/44632
15503         * function.c (gimplify_parameters): Do not clear addressable
15504         bit of the original parameter.
15505
15506 2010-08-09  Richard Guenther  <rguenther@suse.de>
15507
15508         PR middle-end/45212
15509         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
15510         alignment from MEM_REF offset only if we took it from the
15511         base object.
15512
15513 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
15514
15515         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
15516
15517 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15518
15519         * c-tree.h (build_arg_info): Declare.
15520         * c-decl.c (build_arg_info): Define.
15521         (get_parm_info): Call it.  Delete initialization code.
15522         * c-parser.c (c_parser_parms_declarator): Likewise.
15523         (c_parser_parms_list_declaractor): Likewise.
15524
15525 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15526
15527         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
15528         (struct c_arg_info): Change type of tags field.
15529         * c-decl.c (grokdeclarator): Update for changed type of tags field.
15530         (get_parm_info): Likewise.
15531         (store_parm_decls_newstyle): Likewise.
15532
15533 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15534
15535         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
15536         (branch_island_list): Delete.
15537         (branch_islands): Declare.
15538         (add_compiler_branch_island): Adjust for branch_islands instead of
15539         branch_island_list.
15540         (macho_branch_islands): Likewise.
15541         (no_previous_def): Likewise.
15542         (get_prev_label): Likewise.
15543
15544 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15545
15546         PR boehm-gc/34544
15547         * gthr-posix.h (__gthread_start): Delete.
15548         (__gthread_active_init): Use pthread_default_stacksize_np instead of
15549         pthread_create to determine if hpux pthreads are active.
15550         * gthr-posix95.h (__gthread_start): Delete.
15551         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
15552
15553 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
15554
15555         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
15556         _WIN64 not expanded.
15557
15558 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
15559             H.J. Lu  <hongjiu.lu@intel.com>
15560
15561         PR target/45213
15562         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
15563         to output 32bit SFmode immediate as 8 byte sign extended value.
15564
15565 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15566
15567         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15568         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15569         (SUBWORD_BOOL_CAS): Likewise.
15570         (SUBWORD_SYNC_OP): Likewise.
15571         (SUBWORD_TEST_AND_SET): Likewise.
15572         (FETCH_AND_OP_WORD): Parenthesise INF_OP
15573         (SUBWORD_SYNC_OP): Likewise.
15574         (OP_AND_FETCH_WORD): Likewise.
15575
15576 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15577
15578         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
15579         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
15580         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
15581         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
15582         generic part.
15583         (cortex_a9_sched_adjust_cost): New function.
15584         (xscale_sched_adjust_cost): New function.
15585         * config/arm/arm-protos.h (struct tune_params): New field
15586         sched_adjust_cost.
15587         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
15588
15589 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
15590
15591         PR target/44942
15592         * config/sparc/sparc.c (function_arg_advance): Always take into account
15593         the padding, if any.
15594
15595 2010-08-06  Richard Guenther  <rguenther@suse.de>
15596
15597         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
15598         (dump_lattice_value): Dump it.
15599         (get_default_value): Adjust.
15600         (get_constant_value): Likewise.
15601         (set_value_varying): Likewise.
15602         (set_lattice_value): Make sure to not go up the lattice
15603         with bitwise constant values.
15604         (get_value_for_expr): Handle ADDR_EXPRs.
15605         (value_to_double_int): New function.
15606         (get_value_from_alignment): Likewise.
15607         (do_dbg_cnt): Adjust.
15608         (ccp_lattice_meet): Handle partially constant values.
15609         (bit_value_unop_1): New function.
15610         (bit_value_binop_1): Likewise.
15611         (bit_value_unop): Likewise.
15612         (bit_value_binop): Likewise.
15613         (evaluate_stmt): Track partially constant values if
15614         flag_tree_bit_ccp is set.
15615         (ccp_fold_stmt): Dump if we folded a predicate.
15616         (ccp_visit_stmt): Adjust.
15617         * common.opt (ftree-bit-ccp): New flag.
15618         * doc/invoke.texi (ftree-bit-ccp): Document.
15619         * opts.c (decode_options): Enable bit-CCP at -O1.
15620
15621 2010-08-06  Alan Modra  <amodra@gmail.com>
15622
15623         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
15624         and -mrelocatable-lib description.
15625
15626 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
15627
15628         From Martin Thuresson  <martint@google.com>
15629         * postreload.c (reload_cse_simplify_operands): Use
15630         SET_REGNO_RAW instead of SET_REGNO.
15631         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
15632         SET_REGNO.
15633         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
15634         instead of SET_REGNO.
15635         * rtl.h (SET_REGNO_RAW): New macro.
15636
15637 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
15638
15639         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
15640         computations.  Fix formatting issues.
15641         (num_sign_bit_copies1): Likewise.
15642         (canonicalize_condition): Likewise.
15643
15644 2010-08-05  Richard Henderson  <rth@redhat.com>
15645
15646         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
15647         (floor_log2): Use clz_hwi.
15648         (exact_log2): Use ctz_hwi.
15649         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
15650         * builtins.c (fold_builtin_bitop): Use them.
15651         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15652         * combine.c (get_pos_from_mask): Use ctz_hwi.
15653         * double-int.c (double_int_ctz): Likewise.
15654         * explow.c (force_reg): Likewise.
15655         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
15656
15657 2010-08-05  Richard Henderson  <rth@redhat.com>
15658
15659         PR target/45189
15660         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
15661         the alignment constant is properly sign-extended.
15662
15663 2010-08-05  Richard Guenther  <rguenther@suse.de>
15664
15665         * expr.c (store_expr): Use emit_block_move only if both
15666         source and target are MEMs.  Use store_bit_field if only
15667         the target is a MEM.
15668
15669 2010-08-05  Richard Henderson  <rth@redhat.com>
15670
15671         PR debug/45188
15672         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
15673         (INCOMING_RETURN_ADDR_RTX): Likewise.
15674         (dwarf2out_do_frame): Remove conditional compilation.
15675         (dwarf2out_frame_init): Likewise.
15676
15677 2010-08-05  Nicolas Setton  <setton@adacore.com>
15678
15679         * gcov.c (flag_display_progress): New static variable.
15680         (main): Display progress info on standard output if requested.
15681         (options): Add -d/--display-progress.
15682         (print_usage): Print them.
15683         (process_args): Handle them.
15684         * doc/gcov.texi: Document them.
15685
15686 2010-08-05  Martin Jambor  <mjambor@suse.cz>
15687
15688         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
15689         (ipcp_insert_stage): Redirect only edges not flagged with
15690         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
15691         discovered constants.
15692
15693 2010-08-05  Martin Jambor  <mjambor@suse.cz>
15694
15695         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
15696         (struct ipa_param_descriptor): New fields types and
15697         cannot_devirtualize.
15698         (ipa_param_cannot_devirtualize_p): New function.
15699         (ipa_param_types_vec_empty): Likewise.
15700         (ipa_make_edge_direct_to_target): Declare.
15701         * ipa-cp.c: Fixed first stage driver name in initial comment,
15702         described devirtualization there too.
15703         (ipcp_analyze_node): Call ipa_analyze_params_uses.
15704         (ipcp_print_all_lattices): Print devirtualization info.
15705         (ipa_set_param_cannot_devirtualize): New function.
15706         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
15707         lattice to BOTTOM.
15708         (ipcp_init_stage): Merged into...
15709         (ipcp_generate_summary): ...its caller.
15710         (ipcp_change_tops_to_bottom): Also process type lists.
15711         (ipcp_add_param_type): New function.
15712         (ipcp_copy_types): Likewise.
15713         (ipcp_propagate_types): Likewise.
15714         (ipcp_propagate_stage): Also propagate types.
15715         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
15716         Also return true if propagated types require it.
15717         (ipcp_update_callgraph): Dump redirection info.
15718         (ipcp_process_devirtualization_opportunities): New function.
15719         (ipcp_const_param_count): Include known type information.
15720         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
15721         on new node.  Fixed formatting.
15722         * ipa-prop.c (make_edge_direct_to_target): Renamed to
15723         ipa_make_edge_direct_to_target and changed all callers.  Made
15724         externally visible.
15725         (ipa_node_duplication_hook): Duplicate types vector.
15726         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
15727         redirect outgoing calls for which we can't get a decl from the
15728         statement.  Check that we can get a decl from the call statement.
15729         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15730         ipa_analyze_params_uses only when ipa-cp is disabled.
15731         * tree-inline.c (get_indirect_callee_fndecl): Removed.
15732         (expand_call_inline): Do not call get_indirect_callee_fndecl.
15733         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
15734         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
15735
15736 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
15737
15738         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
15739         temporary. Emit move from temporary to accum, so REG_EQUAL note will
15740         be attached to this insn in correct mode.
15741
15742 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
15743
15744         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
15745         using REGNO of base_reg directly.
15746
15747 2010-08-05  Jie Zhang  <jie@codesourcery.com>
15748
15749         PR tree-optimization/45144
15750         * tree-sra.c (type_consists_of_records_p): Return false
15751         if the record contains bit-field.
15752
15753 2010-08-04  Richard Henderson  <rth@redhat.com>
15754
15755         * config/i386/i386.c (struct ix86_frame): Remove padding and
15756         to_allocate members.
15757         (ix86_compute_frame_layout): Don't store them.
15758         (ix86_can_use_return_insn_p): Use a more direct and more obviously
15759         correct condition for the position of the stack pointer.
15760         (ix86_expand_prologue): Compute remaining stack allocation based
15761         on the ultimate stack pointer offset.
15762         (ix86_expand_epilogue): Use more obvious expressions testing for
15763         the stack pointer already pointing to the saved registers.
15764
15765         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
15766         duplication deconstructing the frame pointer.  Simplify
15767         deallocation of the local stack frame.
15768
15769         * reg-notes.def (CFA_EXPRESSION): New.
15770         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15771         (dwarf2out_frame_debug_cfa_expression): New.
15772         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
15773
15774         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
15775         * config/i386/i386.c (ix86_expand_prologue): Set it.
15776         (ix86_expand_epilogue): Clear it.
15777         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
15778         context, add REG_CFA_EXPRESSION notes.
15779
15780         * config/i386/i386.h (struct machine_frame_state): Rename from
15781         machine_cfa_state.  Add members tracking SP and FP regardless
15782         of the current CFA register.
15783         (ix86_cfa_state): Remove.
15784         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
15785         and sse_reg_save_offset members.
15786         (ix86_compute_frame_layout): Set them.
15787         (gen_push): Increment sp_offset too.
15788         (choose_baseaddr_len, choose_baseaddr): New.
15789         (ix86_emit_save_reg_using_mov): New.
15790         (ix86_emit_save_regs_using_mov): Use it.
15791         (ix86_emit_save_sse_regs_using_mov): Likewise.
15792         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
15793         compare vs the saved red_zone_offset.
15794         (pro_epilogue_adjust_stack): Adjust sp_offset.
15795         (ix86_adjust_stack_and_probe): Likewise.
15796         (ix86_expand_prologue): Set up, use, and validate the new
15797         frame_state_info members.  Use gen_frame_mem.
15798         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
15799         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
15800         new frame_state_info members.
15801         (ix86_emit_leave): Likewise.
15802         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
15803         out-of-range stack pointer offsets here.
15804         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15805         (ix86_expand_epilogue): Use and validate the new frame_state_info
15806         members.  Break up and simplify the logic selecting the
15807         restore_regs_via_mov code path.  Ensure that there will be no
15808         out-of-range stack pointer offsets.
15809
15810         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
15811
15812         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
15813         argument name to reflect the expected tree; fix indentation.
15814         (ix86_asm_output_function_label): Output the entire 32-bit
15815         ms_hook here as bytes ...
15816         (ix86_expand_prologue): ... not here as insns.  Attach the
15817         unwind info for the ms_hook to a blockage insn.
15818         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
15819         (ix86_ms_bitfield_layout_p): Fix indentation.
15820         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
15821
15822         * config/i386/i386.c (ix86_using_red_zone): New.
15823         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
15824         ix86_expand_prologue, ix86_force_to_memory): Use it.
15825
15826         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
15827         saving the int registers.
15828
15829         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
15830         and DWARF2_UNWIND_INFO conditional compilation.
15831
15832 2010-08-04  Richard Henderson  <rth@redhat.com>
15833
15834         PR debug/45171
15835         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
15836         an is_naming_typedef_decl.
15837
15838 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
15839
15840         PR rtl-optimization/45162
15841         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
15842         * dce.c (word_dce_process_block): Likewise.
15843
15844 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
15845
15846         PR target/44583
15847         * config/ia64/constraints.md (Z): New.
15848         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
15849         (xfreg_or_signed_fp01_operand): New.
15850         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
15851         with fr_reg_or_signed_fp01_operand and constraint G with Z.
15852         (subsf3): Ditto.
15853         (*maddsf4): Ditto.
15854         (*msubsf4): Ditto.
15855         (adddf3): Ditto.
15856         (adddf3_trunc): Ditto.
15857         (subdf3): Ditto.
15858         (*subdf3_trunc): Ditto.
15859         (*madddf4): Ditto.
15860         (*madddf4_trunc): Ditto.
15861         (*msubdf4): Ditto.
15862         (*msubdf4_trunc): Ditto.
15863         (addxf3): Replace xfreg_or_fp01_operand with
15864         xfreg_or_signed_fp01_operand and constraint G with Z.
15865         (*addxf3_truncsf): Ditto.
15866         (*addxf3_truncdf): Ditto.
15867         (subxf3): Ditto.
15868         (*subxf3_truncsf): Ditto.
15869         (*subxf3_truncdf): Ditto.
15870         (*maddxf4): Ditto.
15871         (*maddxf4_truncsf): Ditto.
15872         (*maddxf4_truncdf): Ditto.
15873         (*msubxf4): Ditto.
15874         (*msubxf4_truncsf): Ditto.
15875         (*msubxf4_truncdf): Ditto.
15876
15877 2010-08-04  Richard Guenther  <rguenther@suse.de>
15878
15879         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
15880         if either alias-set is zero.
15881
15882 2010-08-04  Richard Guenther  <rguenther@suse.de>
15883
15884         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
15885         * tree-ssa-ccp.c: ... here.
15886         * tree-ssa-copy.c: ... and here.
15887         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
15888         value_range_t): Move ...
15889         * tree-vrp.c: ... here.
15890         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
15891         (substitute_and_fold): Adjust prototype.
15892         * tree-ssa-propagate.c (replace_uses_in): Adjust.
15893         (replace_phi_args_in): Likewise.
15894         (substitute_and_fold): Take callback to query lattice instead
15895         of pointer to lattice.  Replace SSA name defs with lattice
15896         values first.
15897         * tree-ssa-ccp.c (ccp_finalize): Adjust.
15898         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
15899         (get_value): New function.
15900         (fini_copy_prop): Adjust.
15901         * tree-vrp.c (vrp_finalize): Adjust.
15902
15903 2010-08-04  Richard Guenther  <rguenther@suse.de>
15904
15905         PR middle-end/45176
15906         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
15907         points-to set for original MEM_REF.
15908
15909 2010-08-04  Richard Guenther  <rguenther@suse.de>
15910
15911         * tree-ssa-ccp.c (get_constant_value): New function.
15912         (get_rhs_assign_op_for_ccp): Remove.
15913         (valueize_op): New function.
15914         (ccp_fold): Use get_constant_value and valueize_op.
15915         (fold_const_aggregate_ref): Likewise.
15916         (ccp_fold_stmt): Likewise.
15917         (visit_assignment): Simplify.
15918
15919 2010-08-04  Richard Guenther  <rguenther@suse.de>
15920
15921         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
15922         * double-int.h (double_int_ctz): Declare.
15923         * double-int.c (double_int_ctz): New function.
15924
15925 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
15926
15927         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
15928         Define.
15929         picochip_expand_movmemhi : Expand movmem pattern.
15930         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
15931         Declare.
15932         * config/picochip/picochip.md (movmemhi) : New pattern.
15933
15934 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
15935
15936         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
15937
15938 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
15939
15940         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
15941         NEG as operand of a MULT by merging it with the other operand.
15942         * combine.c (make_compound_operation): Use trunc_int_for_mode when
15943         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
15944         MULT.
15945         * config/arm/constraints.md (M): Examine only 32 bits of a
15946         HOST_WIDE_INT.
15947         * config/arm/predicates.md (power_of_two_operand): Likewise.
15948
15949 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15950
15951         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
15952         non-NOTE insns.
15953
15954 2010-08-03  Jan Hubicka  <jh@suse.cz>
15955
15956         * ipa-split.c (struct split_point): Add split_part_set_retval.
15957         (find_retval): Forward declare.
15958         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
15959         (consider_split): Compute current->split_part_set_retval.
15960         (visit_bb): Do not look into return value.
15961         (split_function): Handle !split_part_set_retval
15962
15963 2010-08-03  Martin Jambor  <mjambor@suse.cz>
15964
15965         * tree-sra.c (completely_scalarize_record): New parameter REF, create
15966         its own access->expr intead of using build_ref_for_offset.
15967
15968 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
15969
15970         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
15971         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
15972         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
15973         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
15974         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
15975         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
15976         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
15977         DEFAULT_SWITCH_TAKES_ARG.
15978         * config/rx/rx.opt (-patch=): Remove option.
15979         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
15980         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
15981         * doc/invoke.texi (RX Options): Remove -patch=.
15982         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
15983         (option_map): Remove --profile-blocks, --quiet and --silent.
15984
15985 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
15986
15987         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
15988         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
15989         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
15990         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15991         Update calls to ix86_expand_compare and ix86_expand_branch.
15992         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
15993         ix86_expand_compare.
15994         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
15995         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15996         Make static.
15997         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
15998         and ix86_compare_op1.  Update calls to ix86_expand_compare.
15999         (ix86_expand_int_movcc): Ditto.
16000         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
16001         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
16002         (ix86_expand_setcc): Ditto.
16003         (ix86_expand_compare): Remove prototype.
16004         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
16005         ix86_compare_op0 and ix86_compare_op1.  Update calls
16006         to ix86_expand_branch to directly pass operands[1] and operands[2].
16007         (cbranchxf4): Ditto.
16008         (cbranch<MODEF:mode>4): Ditto.
16009         (cbranchcc4): Ditto.
16010         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
16011         Update calls to ix86_expand_setcc to directly pass operands[2] and
16012         operands[3].
16013         (cstorexf4): Ditto.
16014         (cstore<MODEF:mode>4): Ditto.
16015         (cstorecc4): Ditto.
16016
16017 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16018
16019         PR target/45063
16020         * caller-save.c (save_call_clobbered_regs): Remove regs from
16021         hard_regs_saved when they are set.
16022
16023 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16024
16025         PR target/41089
16026         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16027         as volatile.
16028
16029 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
16030
16031         * common.opt (ftree-loop-distribute-patterns): New.
16032         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
16033         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
16034         at -O3.
16035         * tree-data-ref.c (stores_zero_from_loop): New.
16036         * tree-data-ref.h (stores_zero_from_loop): Declared.
16037         * tree-loop-distribution.c (tree_loop_distribution): Call
16038         stores_zero_from_loop.
16039         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
16040
16041 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16042
16043         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
16044         into account.
16045
16046         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
16047         * config/arm/arm.c (thumb1_code): New variable.
16048         (arm_override_options): Set it.
16049         (thumb1_final_prescan_insn): Keep track of condition code status.
16050         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
16051         jumps that depend on them.
16052         * config/arm/arm.h (thumb1_code): Declare variable.
16053         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
16054         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
16055         thumb1_cc_mode.
16056         (CC_STATUS_INIT): New macro.
16057         * config/arm/constraints.md (Pd): New constraint.
16058         * config/arm/predicates.md (noov_comparison_operator): New predicate.
16059         * config/arm/arm.md (is_thumb1): New define_attr.
16060         (conds): Set default to "clob" when generating Thumb1 code.
16061         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
16062         code are set.  Use two-operand assembly syntax.
16063         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
16064         pattern.
16065         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
16066         codes are set.  Use two-operand assembly syntax.
16067         (zero_extendhisi splitter): Remove constraints.
16068         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
16069         thumb1_movsf_insn): Set conds attribute as appropriate.
16070         (cbranchsi4_insn): Use condition code status from struct
16071         machine_function to determine whether the comparison can be eliminated.
16072         Discourage the alternative using high registers.
16073         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
16074         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
16075         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
16076         subsi3_cbranch): Delete.
16077         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
16078         one subtract and one cbranch insn.
16079
16080         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
16081         thumb2_movdf_soft_insn): Delete patterns.
16082         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
16083         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
16084         (pool_range, neg_pool_range): Use them to define defaults.
16085         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
16086         and allow for TARGET_32BIT.
16087
16088         PR target/40457
16089         * config/arm/arm.h (arm_regs_in_sequence): Declare.
16090         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
16091         load_multiple_sequence, store_multiple_sequence): Delete
16092         declarations.
16093         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
16094         declarations.
16095         * config/arm/ldmstm.md: New file.
16096         * config/arm/arm.c (arm_regs_in_sequence): New array.
16097         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
16098         CHECK_REGS.  All callers changed.
16099         If SAVED_ORDER is nonnull, copy the computed order into it.
16100         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
16101         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
16102         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
16103         If SAVED_ORDER is nonnull, copy the computed order into it.
16104         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
16105         like REGS.  Handle Thumb mode.
16106         (arm_gen_load_multiple_1): New function, broken out of
16107         arm_gen_load_multiple.
16108         (arm_gen_store_multiple_1): New function, broken out of
16109         arm_gen_store_multiple.
16110         (arm_gen_multiple_op): New function, with code from
16111         arm_gen_load_multiple and arm_gen_store_multiple moved here.
16112         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
16113         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
16114         changed.
16115         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
16116         * config/arm/predicates.md (commutative_binary_operator): New.
16117         (load_multiple_operation, store_multiple_operation): Handle more
16118         variants of these patterns with different starting offsets.  Handle
16119         Thumb-1.
16120         * config/arm/arm.md: Include "ldmstm.md".
16121         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
16122         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
16123         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
16124         peepholes): Delete.
16125         * config/arm/ldmstm.md: New file.
16126         * config/arm/arm-ldmstm.ml: New file.
16127
16128         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
16129         if statement which adds extra costs to frame-related expressions.
16130
16131 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16132
16133         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
16134
16135 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
16136
16137         PR target/45142
16138         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
16139         alternative 2.
16140         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
16141         split V4SI operands.
16142
16143 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
16144
16145         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16146         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
16147         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
16148         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16149
16150 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
16151
16152         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
16153         LOCAL_INCLUDE_DIR.
16154
16155 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16156
16157         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
16158         used in the call to optab_for_tree_code.  Fix the second
16159         is_widening_mult_p call.  Check that both unwidened operands
16160         have the same sign.
16161
16162 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
16163
16164         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
16165
16166 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
16167
16168         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16169
16170 2010-07-30  DJ Delorie  <dj@redhat.com>
16171
16172         * config/rx/predicates.md (rx_constshift_operand): New.
16173         * config/rx/rx.md (zs_cond): New.
16174         (cbranchsi4): Remove mode.
16175         (*cbranchsi4_<code>): Likewise.
16176         (*tstbranchsi4_<code>): New.
16177         (*tstbranchsi4r_<code>): New.
16178         (*tstbranchsi4m_eq): New.
16179         (*tstbranchsi4m_ne): New.
16180         (cbranchsf4): Remove mode.
16181         (*cbranchsf4_<code>): Likewise.
16182
16183 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
16184
16185         * rtlanal.c (simplify_subreg_regno): Don't treat
16186         HARD_FRAME_POINTER_REGNUM specially.
16187
16188 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
16189
16190         * common.opt (-G): Don't define option here.
16191         * config/g.opt: New.
16192         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
16193         rs6000/powerpc and score targets.
16194         * opts.c (common_handle_option): Don't handle -G here.
16195         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
16196         * config/frv/frv.c (frv_handle_option): Handle -G.
16197         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
16198         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
16199         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
16200         * config/mips/mips.c (mips_handle_option): Handle -G.
16201         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
16202         * config/score/score.c (score_handle_option): Handle -G.
16203
16204 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
16205
16206         * config/mmix/mmix.c: Include basic-block.h.
16207
16208 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
16209
16210         PR debug/45055
16211         PR rtl-optimization/45137
16212         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
16213         prototypes.
16214         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
16215         New functions.
16216         * combine.c (next_nonnote_nondebug_insn): Removed.
16217         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
16218         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
16219         * sched-deps.c (sched_analyze_insn): Likewise.
16220         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
16221         * rtlanal.c (canonicalize_condition): Likewise.
16222         * postreload.c (reload_combine_recognize_pattern): Likewise.
16223         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
16224
16225 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
16226
16227         * config/i386/i386.md (int_cond): Remove code iterator.
16228         (fp_cond): Ditto.
16229         (cbranch<mode>4): Use ordered_comparison_operator predicate
16230         for operator0.
16231         (cstore<mode>4): Ditto for operator1.
16232         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
16233         (add<mode>cc): ditto.
16234
16235 2010-07-30  Richard Guenther  <rguenther@suse.de>
16236
16237         PR middle-end/45141
16238         * expr.c (expand_expr_real_1): Check for not handled base address.
16239
16240 2010-07-30  Richard Guenther  <rguenther@suse.de>
16241
16242         * ipa-prop.c (ipa_modify_formal_parameters): Use
16243         build_distinct_type_copy.
16244
16245 2010-07-30  Anthony Green  <green@moxielogic.com>
16246
16247         * config/moxie/rtems.h: New file.
16248         * config.gcc: Add moxie-rtems support.
16249
16250 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
16251
16252         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
16253         df flags as in run_fast_df_dce.
16254
16255 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16256
16257         Revert:
16258         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16259
16260         * rtl.def (NOTE): Swap operands 4 and 5.
16261         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
16262         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
16263         Adjust accordingly.
16264         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
16265
16266 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16267
16268         PR debug/45110
16269         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
16270         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
16271         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
16272         formal parameters.
16273         (gen_decl_die): Change return type to dw_die_ref, return what
16274         gen_formal_parameter_die returned.
16275
16276 2010-07-29  Martin Jambor  <mjambor@suse.cz>
16277
16278         * dbgcnt.def (eipa_sra): New counter.
16279         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
16280
16281 2010-07-29  Xinliang David Li  <davidxl@google.com>
16282
16283         PR bootstrap/45119
16284         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
16285         in revision 162652.
16286
16287 2010-07-29  Richard Guenther  <rguenther@suse.de>
16288
16289         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
16290         (TV_TREE_STORE_CCP): Likewise.
16291         (TV_TREE_REDPHI): Likewise.
16292
16293 2010-07-29  Richard Guenther  <rguenther@suse.de>
16294
16295         * double-int.h (double_int_and_not): New function.
16296         * combine.c (try_combine): Use it.
16297         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
16298
16299 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
16300
16301         PR rtl-optimization/42575
16302         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
16303         Argument AU removed.  All callers changed.  Ignore artificial refs.
16304         Use return value of df_word_lr_simulate_defs to decide whether an insn
16305         is necessary.
16306         (fast_dce): Rename arg to WORD_LEVEL.
16307         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
16308         static.
16309         (pass_fast_rtl_byte_dce): Delete.
16310         * dce.h (run_word_dce): Declare.
16311         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
16312         All callers changed.  Simplify code to only deal with two-word regs.
16313         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
16314         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
16315         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
16316         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
16317         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
16318         (df_word_lr_mark_ref): Declare.
16319         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
16320         df_word_lr_simulate_uses): Declare or rename from byte variants.
16321         (df_byte_lr_simulate_artificial_refs_at_top,
16322         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16323         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
16324         declarations.
16325         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
16326         (enum df_mm): Delete.
16327         * df-byte-scan.c: Delete file.
16328         * df-problems.c (df_word_lr_problem_data): Renamed from
16329         df_byte_lr_problem_data, all members deleted except for
16330         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
16331         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
16332         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16333         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
16334         df_byte_lr_confluence_0): Delete functions.
16335         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
16336         callers changed.
16337         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
16338         Don't initialize members that were deleted, don't try to discover data
16339         about registers.  Ignore hard regs.
16340         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
16341         (df_word_lr_mark_ref): New function.
16342         (df_word_lr_bb_local_compute): Renamed from
16343         df_byte_bb_lr_local_compute; all callers changed.  Use
16344         df_word_lr_mark_ref.  Assert that artificial refs don't include
16345         pseudos.  Ignore hard registers.
16346         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
16347         Assert that exit block uses don't contain pseudos.
16348         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
16349         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
16350         callers changed.  Ignore hard regs.
16351         (df_word_lr_transfer_function): Renamed from
16352         df_byte_lr_transfer_function; all callers changed.
16353         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
16354         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
16355         changed.
16356         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
16357         callers changed.
16358         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
16359         confluence operator 0 set to NULL.
16360         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
16361         callers changed.
16362         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
16363         Return bool, true if bitmap changed or insn otherwise necessary.
16364         All callers changed.  Simplify using df_word_lr_mark_ref.
16365         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
16366         all callers changed.  Simplify using df_word_lr_mark_ref.
16367         * lower-subreg.c: Include "dce.h"
16368         (decompose_multiword_subregs): Call run_word_dce if df available.
16369         * Makefile.in (lower-subreg.o): Adjust dependencies.
16370         (df-byte-scan.o): Delete.
16371         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
16372
16373 2010-07-29  Richard Guenther  <rguenther@suse.de>
16374
16375         * tree.c (build_vector): Assert that the vector constant
16376         has enough elements.
16377         (build_vector_from_ctor): Pad with trailing zeros.
16378
16379 2010-07-29  Richard Guenther  <rguenther@suse.de>
16380
16381         PR tree-optimization/45120
16382         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16383         Handle offset in DEREFs properly.
16384         (get_constraint_for_1): Handle MEM_REF offset properly.
16385
16386 2010-07-29  Richard Guenther  <rguenther@suse.de>
16387
16388         PR middle-end/45034
16389         * convert.c (convert_to_integer): Always use an unsigned
16390         type for narrowed negate and bitwise not.
16391
16392 2010-07-29  Ira Rosen  <irar@il.ibm.com>
16393
16394         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
16395         to outer loop when creating reduction epilogue for double reduction,
16396         and switch back to the inner loop when updating the phi nodes.
16397         Update uses of outer loop exit phi nodes in double reduction (instead
16398         of uses of reduction).
16399
16400 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
16401
16402         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
16403         popcount on power7 and parity on power6 systems.
16404         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
16405         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
16406         instructions.
16407
16408         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
16409         (UNSPEC_PARITY): Ditto.
16410         (SFDF): New iterator for SF/DF.
16411         (rreg2): New mode attribute for floating register constraint.
16412         (TARGET_FLOAT): New mode attribute for whether single/double float
16413         is supported.
16414         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
16415         pattern.
16416         (parity<mode>2_cmpb): New insn for parity on power6 and newer
16417         machines.
16418         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
16419         pattern.  Add support for fcpsgn instruction added in power6.
16420         (copysignsf3): Delete.
16421         (copysigndf3): Delete.
16422         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
16423         instead of if_then_else in RTL to avoid problems with -0.
16424
16425         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
16426         of if_then_else to mirror scalar code.
16427         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
16428         rs6000.md.
16429
16430         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
16431         instead of if_then_else.
16432
16433 2010-07-28  Xinliang David Li  <davidxl@google.com>
16434
16435         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
16436         (dump_cand): Dump var_before/after.
16437         (htab_inv_expr_eq): New function.
16438         (htab_inv_expr_hash): New function.
16439         (tree_ssa_iv_optimize_init): Support pseudo invariants.
16440         (add_candidate_1): consider base type precision.
16441         (set_use_iv_cost): New parameter.
16442         (adjust_setup_cost): Use profile information.
16443         (get_address_cost): Do not hard code width in computing address
16444         offset limits.
16445         (compare_aff_trees): New function.
16446         (get_loop_invariant_expr_id): New function.
16447         (get_computation_cost_at): New parameter and use profile information.
16448         (get_computation_cost): New parameter.
16449         (determine_use_iv_cost_generic): Pass new parameter.
16450         (determine_use_iv_cost_address): Ditto.
16451         (determine_use_iv_cost_condition): Ditto.
16452         (autoinc_possible_for_pair): Ditto.
16453         (determine_use_iv_costs): More dumps.
16454         (iv_ca_get_num_inv_exprs): New function.
16455         (iv_ca_recount_cost): Consider loop invariants in register pressure
16456         cost.
16457         (iv_ca_add_use): New parameter.
16458         (iv_ca_dump): Better dumping.
16459         (iv_ca_extend): New parameter.
16460         (try_add_cand_for): Attempt to get better partial solution.
16461         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
16462         (create_new-ivs): More dumps.
16463         (rewrite_use_compare): Ditto.
16464         (free_loop_data): More cleanup.
16465         (treee_ssa_iv_optimize_finalize): Ditto.
16466
16467 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
16468
16469         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
16470         * config/i386/i386.c (ix86_profile_before_prologue): New.
16471         (override_options): Add special handling for -mfentry.
16472         (ix86_function_regparm): Likewise.
16473         (ix86_function_sseregparm): Likewise.
16474         (ix86_frame_pointer_required): Likewise.
16475         (ix86_expand_prologue): Check for ms_hook_prologue.
16476         (x86_function_profiler): Adjust mcount output.
16477         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
16478         * config/i386/i386.opt (mfentry): New.
16479         * doc/invoke.texi (mfentry): Add documentation.
16480         * doc/tm.texi: Regenerated..
16481         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
16482         * final.c (final_start_function): Replace macro
16483         PROFILE_BEFORE_PROLOGUE by target hook.
16484         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16485         * target.def (profile_before_prologue): New hook.
16486         * targhooks.c (default_profile_before_prologue): New.
16487         * targhooks.h (default_profile_before_prologue): New.
16488
16489 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
16490
16491         PR debug/45105
16492         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
16493
16494         PR debug/45103
16495         * dwarf2out.c (dwarf2out_var_location): Always consider
16496         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
16497
16498 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
16499
16500         PR rtl-optimization/45107
16501         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
16502
16503 2010-07-28  Richard Guenther  <rguenther@suse.de>
16504
16505         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
16506         (set_lattice_value): Do not query an old default value.
16507         (get_value_for_expr): New function.  Properly canonicalize
16508         float values.
16509         (ccp_visit_phi_node): Use it.
16510
16511 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
16512
16513         * config/arm/arm.c (arm_pcs_default): Remove static.
16514         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
16515         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
16516         (arm_pcs_default): Declare.
16517
16518 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
16519
16520         * config/rs6000/rs6000.c (rs6000_override_options):
16521         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
16522         ... to darwin_rs6000_override_options.
16523         (rs6000_return_in_memory): Update preceding comment for darwin
16524         64 bit ABI.  Use TARGET_MACHO inline.
16525         (rs6000_darwin64_struct_check_p): New.
16526         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
16527         (function_arg): Likewise.
16528         (rs6000_arg_partial_bytes): Likewise.
16529         (rs6000_function_value): Likewise.
16530
16531 2010-07-28  Andi Kleen  <ak@linux.intel.com>
16532
16533         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
16534
16535 2010-07-28  Richard Guenther  <rguenther@suse.de>
16536
16537         PR middle-end/44903
16538         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
16539         targets try harder to not generate unaligned accesses.
16540
16541 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
16542
16543         PR rtl-optimization/45101
16544         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
16545         for gcse-las.
16546
16547 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16548
16549         PR tree-optimization/44885
16550         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
16551         with non-aliased component.
16552
16553 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
16554
16555         * config/darwin-driver.c (SWITCH_TAKES_ARG,
16556         WORD_SWITCH_TAKES_ARG): Remove.
16557         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
16558         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
16559         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
16560         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
16561         definitions from gcc.c.
16562         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
16563         defaults.h.
16564         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
16565         Move to defaults.h.
16566         * opts-common.c: Include tm.h.
16567         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
16568         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
16569         Handle more than one argument.  Set canonical_option_num_elements.
16570         (decode_cmdline_options_to_array): Set
16571         canonical_option_num_elements and trailing elements of
16572         canonical_option.
16573         * opts.h (struct cl_decoded_option): Allow four elements in
16574         canonical_option.  Add field canonical_option_num_elements.
16575         * Makefile.in (opts-common.o): Update dependencies.
16576
16577 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16578
16579         PR middle-end/44790
16580         PR middle-end/44993
16581         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
16582         sure the base has address_mode before adding the offset.
16583
16584 2010-07-27  Xinliang David Li  <davidxl@google.com>
16585
16586         * tree-flow.h (create_mem_ref): Add one new parameter.
16587         * tree-ssa-address.c (create_mem_ref): New parameter.
16588         (addr_to_parts): Ditto.
16589         (move_variant_to_index): New function.
16590         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
16591
16592 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16593
16594         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
16595         4 and 5.
16596         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
16597         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
16598         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
16599         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
16600         CODE_LABELs and NOTEs.
16601         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
16602         * combine.c (try_combine): Likewise.
16603         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16604         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
16605
16606 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
16607
16608         * coretypes.h (struct cl_option_handlers): Declare.
16609         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
16610         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
16611         * langhooks-def.h (lhd_handle_option): Declare.
16612         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
16613         * langhooks.c (lhd_handle_option): New.
16614         * langhooks.h (struct lang_hooks): Update prototype and return
16615         value type of handle_option hook.
16616         * optc-gen.awk: Generate target_flags_explicit definition for the
16617         driver.
16618         * opts-common.c: Include diagnostic.h.
16619         (handle_option): Move from opts.c.  Update prototype and return
16620         value type.  Use handlers structure.
16621         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
16622         handlers structure.
16623         (set_option): Move from opts.c.
16624         * opts.c (common_handle_option): Update prototype and return value
16625         type.  Update calls to handle_option and enable_warning_as_error.
16626         (unknown_option_callback, post_handling_callback,
16627         lang_handle_option, target_handle_option): New.
16628         (handle_option, read_cmdline_option): Move to opts-common.c.
16629         (read_cmdline_options): Update prototype.  Update call to
16630         read_cmdline_option.
16631         (decode_options): Initialize and use handlers structure.
16632         (set_option): Move to opts-common.c.
16633         (enable_warning_as_error): Update prototype.  Update call to
16634         handle_option.
16635         * opts.h (struct cl_option_handler_func, struct
16636         cl_option_handlers): New.
16637         (handle_option, enable_warning_as_error): Update prototypes.
16638         (read_cmdline_option): Declare.
16639         * Makefile.in (opts-common.o): Update dependencies.
16640
16641 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16642
16643         * config/arm/arm.c (params.h): Include.
16644         (arm_override_options): Tune gcse-unrestricted-cost.
16645         * config/arm/t-arm (arm.o): Define dependencies.
16646
16647 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16648
16649         PR target/42495
16650         PR middle-end/42574
16651         * basic-block.h (get_dominated_to_depth): Declare.
16652         * dominance.c (get_dominated_to_depth): New function, use
16653         get_all_dominated_blocks as a base.
16654         (get_all_dominated_blocks): Use get_dominated_to_depth.
16655
16656         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
16657         (hoist_exprs): Remove.
16658         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
16659         (compute_code_hoist_vbeinout): Add debug print outs.
16660         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
16661
16662         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
16663         quadratic behavior.
16664         * params.h (MAX_HOIST_DEPTH): New macro.
16665         * doc/invoke.texi (max-hoist-depth): Document.
16666
16667 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16668
16669         PR rtl-optimization/40956
16670         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
16671         constants.
16672
16673 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16674
16675         PR target/42495
16676         PR middle-end/42574
16677         * config/arm/arm.c (legitimize_pic_address): Use
16678         gen_calculate_pic_address pattern to emit calculation of PIC address.
16679         (will_be_in_index_register): New function.
16680         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
16681         (thumb1_legitimate_address_p): Use it provided !strict_p.
16682         * config/arm/arm.md (calculate_pic_address): New expand and split.
16683
16684 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16685
16686         PR target/42495
16687         PR middle-end/42574
16688         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
16689         * config/arm/arm.md (define_split "J", define_split "K"): Make
16690         IRA/reload friendly.
16691
16692 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16693
16694         * gcse.c (insert_insn_end_basic_block): Update signature, remove
16695         unused checks.
16696         (pre_edge_insert, hoist_code): Update.
16697
16698 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16699
16700         PR target/42495
16701         PR middle-end/42574
16702         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
16703
16704 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16705
16706         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
16707
16708 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16709
16710         PR rtl-optimization/40956
16711         PR target/42495
16712         PR middle-end/42574
16713         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
16714         for hoisting.
16715         (hoist_code): Count occurences in current block too.
16716
16717 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16718
16719         * gcse.c (struct expr:max_distance): New field.
16720         (doing_code_hoisting_p): New static variable.
16721         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
16722         simple expressions, don't change behavior for PRE.  Set max_distance.
16723         (insert_expr_in_table): Set new max_distance field.
16724         (hash_scan_set): Update.
16725         (hoist_expr_reaches_here_p): Stop search after max_distance
16726         instructions.
16727         (find_occr_in_bb): New static function.  Use it in ...
16728         (hoist_code): Calculate sizes of basic block before any changes are
16729         done.  Pass max_distance to hoist_expr_reaches_here_p.
16730         (one_code_hoisting_pass): Set doing_code_hoisting_p.
16731
16732         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
16733         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
16734         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
16735         macros.
16736         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
16737         Document.
16738
16739 2010-07-27  Jeff Law  <law@redhat.com>
16740             Maxim Kuvyrkov  <maxim@codesourcery.com>
16741
16742         * gcse.c (compute_transpout, transpout): Remove, move logic
16743         to prune_expressions.
16744         (compute_pre_data): Move pruning of trapping expressions ...
16745         (prune_expressions): ... here.  New static function.
16746         (compute_code_hoist_data): Use it.
16747         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
16748
16749 2010-07-27  Xinliang David Li  <davidxl@google.com>
16750
16751         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
16752         (rewrite_use_address): Adjust iv update position when needed.
16753
16754 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16755
16756         * dbgcnt.def (hoist_insn): New debug counter.
16757         * gcse.c (hoist_code): Use it.
16758
16759 2010-07-27  Xinliang David Li  <davidxl@google.com>
16760
16761         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
16762         (niter_for_single_dom_exit): Passes additional parameter.
16763         (iv_period): Fix comments.
16764         (may_eliminate_iv): Handles multiple exit loops properly.
16765         (free_tree_niter_desc): New function.
16766         (free_loop_data): Frees up loop iteration descriptors.
16767
16768 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
16769
16770         PR target/44542
16771         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
16772         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
16773         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
16774         (expand_one_var): Don't consider DECL_ALIGN for variables for
16775         which expand_one_stack_var_at has been already called.
16776
16777         PR testsuite/44701
16778         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
16779         constraints on IA-64.
16780
16781 2010-07-27  Jie Zhang  <jie@codesourcery.com>
16782
16783         PR target/44290
16784         Revert:
16785         2010-07-23  Jie Zhang  <jie@codesourcery.com>
16786
16787         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16788         false if ! tree_versionable_function_p.
16789
16790 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
16791
16792         * dwarf2out.c (add_data_member_location_attribute): Use
16793         add_AT_unsigned instead of add_AT_int if offset is non-negative.
16794
16795 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16796
16797         * postreload.c (try_replace_in_use): New static function.
16798         (reload_combine_recognize_const_pattern): Use it here.  Allow
16799         substituting into a final add insn, and substituting into a memory
16800         reference in an insn that sets the reg.
16801
16802 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
16803
16804         * common.opt (o): Add MissingArgError.
16805         * doc/options.texi (MissingArgError): Document.
16806         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
16807         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
16808         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
16809         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
16810         * langhooks.h (struct lang_hooks): Remove missing_argument.
16811         * optc-gen.awk: Handle MissingArgError and output new structure
16812         field initializers.
16813         * opts.c (read_cmdline_option): Use missing_argument_error field
16814         instead of missing_argument langhook.
16815         * opts.h (struct cl_option): Add missing_argument_error field.
16816         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
16817
16818 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
16819
16820         PR target/29090
16821         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
16822         Darwin64 ABI, for zero-sized objects.
16823
16824 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
16825
16826         PR target/35491
16827         PR target/29090
16828
16829         Merge from Apple local 4.2.1.
16830         2005-05-11  Stan Shebs  <shebs@apple.com>
16831         Fix 64-bit varargs for Darwin (Radar 4028089).
16832         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
16833         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
16834         Add argument, add case for 8-byte register half-filled with a float.
16835         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
16836         single-precision floats specially.
16837
16838 2010-07-27  Ira Rosen  <irar@il.ibm.com>
16839
16840         PR tree-optimization/44152
16841         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
16842         complex numbers for further check.
16843         (vect_supported_load_permutation_p): Check nodes with
16844         complex numbers.
16845
16846 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
16847
16848         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
16849         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
16850         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
16851         (LANG_HOOKS_INITIALIZER): Add new hooks.
16852         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
16853         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
16854         and complain_wrong_lang_p.  Update init_options prototype.
16855         * c-objc-common.c (c_initialize_diagnostics): First call
16856         c_common_initialize_diagnostics.
16857         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
16858         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
16859         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
16860         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
16861         (hook_uint_void_0): New.
16862         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
16863         (hook_uint_void_0): New.
16864         * opts-common.c (decode_cmdline_option,
16865         decode_cmdline_options_to_array): Also fill in canonical_option field.
16866         * opts.c (complain_wrong_lang): Use langhook to determine whether
16867         to complain instead of special-casing LTO.
16868         (decode_options): Separate lang_mask determination with
16869         option_lang_mask hook from call of init_options hook.
16870         * opts.h (struct cl_decoded_option): Add canonical_option.
16871
16872 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
16873
16874         PR tree-optimization/45083
16875         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
16876
16877 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16878
16879         * postreload.c (reload_combine_recognize_const_pattern): Move test
16880         for limiting the insn movement to the right scope.
16881
16882         PR rtl-optimization/45051
16883         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
16884         than reg_mentioned_p.
16885
16886 2010-07-26  Richard Henderson  <rth@redhat.com>
16887
16888         PR target/44132
16889         * tree-emutls.c: New file.
16890         * Makefile.in (OBJS-common): Add it.
16891         * tree-pass.h (pass_ipa_lower_emutls): Declare.
16892         * passes.c (init_optimization_passes): Add it.
16893
16894         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
16895         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
16896         * expr.c (emutls_var_address): Delete.
16897         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
16898         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
16899         (emutls_finish): Delete.
16900         * toplev.c (compile_file): Don't call it.
16901         * tree.h (emutls_decl): Delete.
16902         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
16903         (emutls_finish, emutls_finalize_control_var): Delete.
16904         (emutls_object_type): Move to tree-emutls.c.
16905         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
16906         default_emutls_var_fields, get_emutls_object_type,
16907         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
16908         default_emutls_var_init): Likewise.
16909         (get_variable_section): Don't special case emutls.
16910         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
16911         default_elf_select_section, default_unique_section,
16912         default_encode_section_info): Likewise.
16913         * varpool.c (decide_is_variable_needed): Likewise.
16914         * gimple-iterator.c (update_call_edge_frequencies): New
16915         (gsi_insert_on_edge_immediate): Use it.
16916         (gsi_insert_seq_on_edge_immediate): Likewise.
16917         (gsi_commit_one_edge_insert): Likewise.
16918
16919         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
16920         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
16921         (x86_64_elf_unique_section): Likewise.
16922
16923 2010-07-26  Jan Hubicka  <jh@suse.cz>
16924
16925         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
16926         GTY((skip)).
16927
16928 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
16929
16930         * target.def (output_source_filename): New hook.
16931         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
16932         * doc/tm.texi: Regenerate.
16933         * toplev.c (output_file_directive) Remove function.
16934         * toplev.h (output_file_directive) Remove.
16935         * output.h (default_asm_output_source_filename,
16936         output_file_directive): Declare.
16937         * varasm.h (default_asm_output_source_filename,
16938         output_file_directive): New functions.
16939
16940         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16941         * config/mips/mips-protos.h (mips_output_filename): Remove.
16942         * config/mips/mips.c (mips_output_filename): Make Static.
16943         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16944
16945 2010-07-26  Richard Guenther  <rguenther@suse.de>
16946
16947         PR tree-optimization/43784
16948         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
16949         if the destination is used by the call.
16950
16951 2010-07-26  Richard Guenther  <rguenther@suse.de>
16952
16953         PR middle-end/45073
16954         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
16955         SSA updating on being in SSA form.
16956
16957 2010-07-26  Richard Guenther  <rguenther@suse.de>
16958
16959         PR middle-end/45056
16960         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
16961
16962 2010-07-26  Richard Guenther  <rguenther@suse.de>
16963
16964         PR tree-optimization/45071
16965         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
16966         adjust op->opcode.
16967
16968 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
16969
16970         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
16971         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
16972         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
16973         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
16974         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
16975         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
16976         save_r31, return_r31, save_interrupt, return_interrupt,
16977         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
16978         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
16979         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
16980         new ABI requirements.
16981         (save_r6_r9, L_callt_save_r6_r9): Remove.
16982         * config/v850/predicates.md (even_reg_operand, disp23_operand,
16983         const_float_1_operand const_float_0_operand): New Predicates.
16984         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
16985         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
16986         * config/v850/t-v850: Update multilibs for new target variants.
16987         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
16988         * config/v850/t-v850e: Likewise.
16989         * config/v850/v850.c (v850_issue_rate): New.
16990         (v850_strict_argument_naming): New.
16991         (function_arg): Modify to generate a different ABI.
16992         (print_operand): Update case 'z' to support float modes.
16993         (output_move_single): Modify to generate appropriate and better
16994         assembly.
16995         (v850_float_z_comparison_operator, v850_select_cc_mode,
16996         v850_float_nz_comparison_operator,  v850_gen_float_compare,
16997         v850_gen_compare): New functions to support comparison of float values.
16998         (ep_memory_offset): Add support for V850E2 targets.
16999         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
17000         (INTERRUPT_REGPARM_NUM): Remove.
17001         (compute_register_save_size): Add extra case to save/restore long call.
17002         (use_prolog_function): New function to support prologue.
17003         (expand_prologue): Add support for V850E2 targets and modified
17004         as per the current ABI requirements.
17005         (expand_epilogue): Likewise.
17006         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
17007         (construct_save_jarl): Likewise.
17008         (construct_dispose_instruction): Update as per the current ABI
17009         requirements.
17010         (construct_prepare_instruction): Likewise.
17011         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
17012         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
17013         (CPP_SPEC): Updated to support v850e2 targets.
17014         (STRICT_ALIGNMENT): Modified.
17015         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
17016         (FIXED_REGISTERS): Likewise.
17017         (CALL_USED_REGISTERS): Likewise.
17018         (CONDITIONAL_REGISTER_USAGE): Updated.
17019         (HARD_REGNO_MODE_OK): Updated.
17020         (reg_class): Updated to add even registers.
17021         (REG_CLASS_NAMES): Likewise.
17022         (REG_CLASS_CONTENTS): Likewise.
17023         (REGNO_REG_CLASS): Updated for CC registers.
17024         (REG_CLASS_FROM_LETTER): Added support for even registers.
17025         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
17026         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
17027         ARG_POINTER_REGNUM): Updated.
17028         (FUNCTION_ARG_ADVANCE): Define.
17029         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
17030         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
17031         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
17032         (GO_IF_LEGITIMATE_ADDRESS): Updated.
17033         (SELECT_CC_MODE): Define.
17034         (REGISTER_NAMES): Updated to add psw and fcc registers.
17035         (ADDITIONAL_REGISTER_NAMES): Updated.
17036         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
17037         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
17038         * config/v850/v850.md (define_constants): Define new constants.
17039         (type): Update store,bit1,macc,div,fpu and single attributes.
17040         (cpu): New attribute.
17041         (cc): Add set_z attribute.
17042         (unsign23byte_load, sign23byte_load, unsign23hword_load,
17043         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
17044         23word_store): New instructions for 23-bit displacement load and store.
17045         (movqi_internal, movhi_internal): Update the attributes.
17046         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
17047         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
17048         the attributes.
17049         (v850_tst1): Modified using CC_REGNUM.
17050         (tstsi): Remove.
17051         (cmpsi): Modified as define_expand from define_insn.
17052         (cmpsi_insn, cmpsf, cmpdf): New instructions.
17053         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
17054         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
17055         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
17056         one_cmplsi2): Clobber the CC_REGNUM register.
17057         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
17058         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
17059         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
17060         (setf_insn, set_z_insn, set_nz_insn): New instructions for
17061         v850e2v3 target.
17062         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
17063         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
17064         targets.
17065         (sasf_1, sasf_2): Remove.
17066         (sasf): New instruction.
17067         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
17068         targets. CC_REGNUM register is clobbered and attributes are
17069         updated.
17070         (branch_z_normal, branch_z_invert, branch_nz_normal,
17071         branch_nz_invert): New branch related instructions.
17072         (jump): Updated the attributes.
17073         (switch): Update to support new targets. CC_REGNUM register is
17074         clobbered and attributes are updated.
17075         (call_internal_short, call_internal_long, call_value_internal_short,
17076         call_value_internal_long): Updated the attributes.
17077         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
17078         clobbered and attributes are updated.
17079         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
17080         Update to support new targets. CC_REGNUM register is clobbered.
17081         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
17082         instructions.
17083         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
17084         are updated.
17085         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
17086         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
17087         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
17088         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
17089         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
17090         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
17091         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
17092         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
17093         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
17094         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
17095         point instructions defined for V850e2v3 target.
17096         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
17097         Add support for V850E2 targets and CC_REGNUM register is clobbered.
17098         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
17099         support for new targets.
17100         * config/v850/v850-modes.def: New file.
17101         * config/v850/v850.opt(mstrict-align): Remove.
17102         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
17103         mv850e2v3): New command line options for V850.
17104         * config.gcc: Update the newly added files.
17105         * doc/invoke.texi: Update the newly added command line options for
17106         V850 target.
17107
17108 2010-07-26  Richard Guenther  <rguenther@suse.de>
17109
17110         PR tree-optimization/45052
17111         * ipa-pure-const.c (check_stmt): Check volatileness.
17112
17113 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17114
17115         PR target/44707
17116         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
17117         * config/sparc/sparc.c: Include reload.h.
17118         (legitimize_tls_address): Rename into...
17119         (sparc_legitimize_tls_address): ...this.
17120         (legitimize_pic_address): Rename into...
17121         (sparc_legitimize_pic_address): ...this.
17122         (sparc_expand_move): Adjust to above renaming.
17123         (sparc_tls_referenced_p): Likewise.
17124         (sparc_legitimize_tls_address): Likewise.
17125         (sparc_legitimize_pic_address): Likewise.
17126         (sparc_legitimize_address): Likewise.
17127         (sparc_output_mi_thunk): Likewise.
17128         (sparc_legitimize_reload_address): New global function.  Recognize
17129         (lo_sum (high ...) ...) patterns generated by earlier passes.
17130         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
17131
17132 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17133
17134         PR target/44484
17135         * config/sparc/predicates.md (memory_reg_operand): Delete.
17136         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
17137         (*sync_compare_and_swap): Encode the address form in the pattern.
17138         (*sync_compare_and_swapdi_v8plus): Likewise.
17139
17140 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
17141
17142         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
17143         Streamline paragraph on compatibility with the system compiler.
17144
17145 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
17146
17147         PR middle-end/45035
17148         * alias.c (true_dependence_1): Fix thinko in merge of old
17149         true_dependence and canon_true_dependence.
17150
17151 2010-07-23  Jan Hubicka  <jh@suse.cz>
17152
17153         * lto-streamer-out.c (write_symbol): Fix visibilities of external
17154         references.
17155
17156 2010-07-23  Le-Chun Wu  <lcwu@google.com>
17157
17158         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
17159         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
17160         and an unnecessary assignment.
17161         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
17162         self-assign warning.
17163         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
17164         unnecessary self-init.
17165
17166 2010-07-23  Richard Guenther  <rguenther@suse.de>
17167
17168         PR lto/43071
17169         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
17170         for -flto and -fwhopr.
17171
17172 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
17173
17174         PR target/41943
17175         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
17176         (stmp-int-hdrs): Prefix/postfix headers by include_next.
17177         * config.gcc (user_headers_inc_next_pre): New.
17178         (user_headers_inc_next_post): Likewise.
17179         (*-w64-mingw*): Use for float.h post-fixing, and for
17180         stddef.h/stdarg.h pre-fixing by include_next.
17181         * configure.ac (user_headers_inc_next_post): New.
17182         (user_headers_inc_next_pre): New.
17183         * configure: Regenerated.
17184
17185 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17186
17187         * configure.ac: Don't disable TLS on Solaris 8/9 by default
17188         Set tga_func for Solaris 2/x86 resp. SPARC.
17189         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
17190         (LIB_THREAD_LDFLAGS_SPEC): Define.
17191         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
17192         * configure: Regenerate.
17193         * config.in: Regenerate.
17194         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
17195         -pthread, -threads, LIB_TLS_SPEC with -pthread.
17196         * doc/install.texi (Specific, *-*-solaris2*): Document use of
17197         alternate thread libraries on Solaris 8.
17198         Document TLS patch requirements.
17199         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
17200         Document tls.
17201
17202         PR target/18788
17203         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
17204         -shared.
17205
17206 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
17207
17208         * tree.h (struct tree_base): Add nameless_flag bitfield.
17209         (TYPE_NAMELESS, DECL_NAMELESS): Define.
17210         * omp-low.c (create_omp_child_function, scan_omp_parallel,
17211         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
17212         DECL_ARTIFICIAL where needed.
17213         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
17214         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
17215         has DECL_NAMELESS set.
17216
17217 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17218
17219         PR tree-optimization/44915
17220         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
17221         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
17222         (analyze_function): Likewise.
17223
17224 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17225
17226         PR tree-optimization/44914
17227         * tree-sra.c (sra_modify_function_body): Return true if CFG was
17228         changed, add purging dead eh edges.
17229         (ipa_sra_modify_function_body): Return true if CFG was changed,
17230         simplify purging dead eh edges.
17231         (modify_function): Return true if CFG was changed.
17232         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
17233         was changed.
17234         (ipa_early_sra): Likewise.
17235
17236 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17237
17238         PR target/44290
17239         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
17240         if "naked".
17241         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17242         false if ! tree_versionable_function_p.
17243
17244 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
17245
17246         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
17247         * ipa-pure-const.c (special_builtlin_state): Remove
17248         BUILT_IN_ARGS_INFO case.
17249         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
17250         * builtins.c (expand_builtin): Likewise.
17251         (expand_builtin_args_info): Remove.
17252         * doc/tm.texi (__builtin_args_info): Remove.
17253         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
17254         * doc/tm.text.in: Likewise.
17255
17256 2010-07-23  Richard Guenther  <rguenther@suse.de>
17257
17258         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
17259         (lto_symtab_merge_decls_2): Likewise.
17260         * tree-ssa.c (useless_type_conversion_p): Likewise.
17261         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17262         * gimple.c (gtc_visited2, gtc_ob2): Remove.
17263         (struct type_pair_d): Make same_p an array indexed by mode.
17264         Update comment.
17265         (lookup_type_pair): Update initialization.
17266         (struct sccs): Adjust same_p type.
17267         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
17268         Adjust.
17269         (print_gimple_types_stats): Likewise.
17270         * gimple.h (enum gtc_mode): New.
17271         (gimple_types_compatible_p): Adjust prototype.
17272
17273 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
17274
17275         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
17276         again after processing insn.
17277
17278 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17279
17280         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
17281         proper words when !tree_versionable_function_p.
17282
17283 2010-07-23  Richard Guenther  <rguenther@suse.de>
17284
17285         PR tree-optimization/45037
17286         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
17287
17288 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17289
17290         * doc/extend.texi: Remove IP2K from the description of naked attribute.
17291         Add MCORE instead.
17292
17293 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17294
17295         PR lto/44992
17296         * lto-opts.c (lto_write_options): Add NULL file_data argument to
17297         lto_get_section_name.
17298         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
17299         * lto-streamer-out.c (produce_asm): Likewise.
17300         (copy_function): Likewise.
17301         (produce_symtab): Likewise.
17302         (produce_asm_for_decls): Likewise.
17303         * lto-streamer.c (lto_get_section_name): Add file_data argument.
17304         Rewrite to add random postfix to LTO sections.
17305         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
17306         (lto_get_section_name): Add file_data argument to prototype.
17307
17308 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17309
17310         * lto-section-in.c (lto_section_name): Synchronize names
17311         with lto_get_section_name.
17312
17313 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17314
17315         * lto-opts.c (lto_read_file_options): Check for missing section.
17316
17317 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17318
17319         * ira.c (check_allocation): Correctly handle the case where an allocno
17320         with two objects was allocated to a single reg.
17321
17322 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
17323
17324         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
17325         (is_widening_mult_p): Likewise.
17326         (convert_to_widen): Use them.
17327         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
17328         well as integer ones.
17329
17330 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
17331
17332         * alias.c (true_dependence_1): New function, merged version of
17333         true_dependence and canon_true_dependence.
17334         (true_dependence): Simplify.
17335         (canon_true_dependence): Simplify.
17336
17337 2010-07-22  Richard Henderson  <rth@redhat.com>
17338
17339         PR target/45027
17340         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
17341         of V4SFmode for the SSE saves; increase stack alignment if needed.
17342         (ix86_gimplify_va_arg): Don't increase stack alignment here.
17343
17344 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
17345
17346         PR bootstrap/45028
17347         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
17348         call cprop_find_used_regs again via note_uses.
17349
17350 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
17351
17352         * alias.c (get_alias_set): Fix formatting issues.
17353
17354 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
17355
17356         PR middle-end/44878
17357         * stmt.c (expand_value_return):  Call promote_function_mode with
17358         a for_return argument of 2 when returning by reference.
17359
17360 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
17361
17362         PR debug/45024
17363         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
17364         unit DIE if we can find the scope DIE.
17365
17366 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17367
17368         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
17369         changed.  Initialize OBJECT_SUBWORD.
17370         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
17371         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
17372         all callers changed.
17373         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
17374         (finish_allocno): Likewise.
17375         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
17376         (remove_low_level_allocnos): Likewise.
17377         (update_bad_spill_attribute): Likewise.
17378         (setup_min_max_allocno_live_range_point): Likewise.
17379         (sort_conflict_id_map): Likewise.
17380         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
17381         (ior_hard_reg_conflicts): New function.
17382         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
17383         (compress_conflict_vecs): Iterate over objects, not allocnos.
17384         (ira_add_live_range_to_object): New function.
17385         (object_range_compare_func): Renamed from allocno_range_compare_func.
17386         All callers changed.
17387         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
17388         subobjects, widen the min/max range of the lowest-order object to
17389         potentially include all other such low-order objects.
17390         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
17391         (check_allocation): Likewise.  Use more fine-grained tests for register
17392         conflicts.
17393         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
17394         allocno subobjects.
17395         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
17396         choices about which bits to set in each set.  Don't use
17397         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
17398         using the multiple sets we computed.
17399         (push_allocno_to_stack): Iterate over allocno subobjects.
17400         (all_conflicting_hard_regs_coalesced): New static function.
17401         (setup_allocno_available_regs_num): Use it.
17402         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
17403         subobjects.
17404         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
17405         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17406         by ALLOCNO_NUM_OBJECTS.
17407         (calculate_spill_cost): Likewise.
17408         (color_pass): Express if statement in a more normal way.
17409         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
17410         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
17411         (setup_slot_coalesced_allocno_live_ranges): Likewise.
17412         (allocno_reload_assign): Likewise.
17413         (ira_reassign_pseudos): Likewise.
17414         (fast_allocation): Likewise.
17415         * ira-conflicts.c (build_conflict_bit_table): Likewise.
17416         (print_allocno_conflicts): Likewise.
17417         (ira_build_conflicts): Likewise.
17418         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
17419         callers changed.  Test subword 0 of each allocno for conflicts.
17420         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
17421         callers changed.  Iterate over allocno subobjects.
17422         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
17423         * ira-int.h (struct ira_allocno): New member: num_objects.
17424         Rename object to objects and change it into an array.
17425         (ALLOCNO_OBJECT): Add new argument N.
17426         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
17427         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
17428         (ior_hard_reg_conflicts): Declare.
17429         (ira_add_live_range_to_object): Declare.
17430         (ira_allocno_object_iterator): New.
17431         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
17432         (FOR_EACH_ALLOCNO_OBJECT): New macro.
17433         * ira-lives.c (objects_live): Renamed from allocnos_live; all
17434         uses changed.
17435         (allocnos_processed): New sparseset.
17436         (make_object_born): Renamed from make_allocno_born; take an
17437         ira_object_t argument.  All callers changed.
17438         (make_object_dead): Renamed from make_allocno_dead; take an
17439         ira_object_t argument.  All callers changed.
17440         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
17441         All callers changed.
17442         (mark_pseudo_regno_live): Iterate over allocno subobjects.
17443         (mark_pseudo_regno_dead): Likewise.
17444         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
17445         functions.
17446         (mark_ref_live): Detect subword accesses and call
17447         mark_pseudo_regno_subword_live as appropriate.
17448         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
17449         (process_bb_nodes_live): Deal with object-related updates first; set
17450         and test bits in allocnos_processed to avoid computing allocno
17451         statistics more than once.
17452         (create_start_finish_chains): Iterate over objects, not allocnos.
17453         (print_object_live_ranges): New function.
17454         (print_allocno_live_ranges): Use it.
17455         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
17456         and objects_live.
17457
17458 2010-07-22  Richard Guenther  <rguenther@suse.de>
17459
17460         PR lto/42451
17461         * gimple.c (gtc_next_dfs_num): New global.
17462         (struct sccs): Make value a union, add integer same_p member.
17463         (gtc_visit): New function.
17464         (gimple_types_compatible_p_1): New function, split out from ...
17465         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
17466         (iterative_hash_gimple_type): Adjust for sccs change.
17467
17468 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17469
17470         PR tree-optimization/44891
17471         * tree-sra.c: Include gimple-pretty-print.h.
17472         (replace_uses_with_default_def_ssa_name): Renamed to
17473         get_repl_default_def_ssa_name, return the new SSA name instead of
17474         replacing the old one.
17475         (sra_modify_assign): Dump a message when removing a load, if the LHS
17476         is an SSA_NAME, do not do any propagation, just set the RHS to a
17477         default definition SSA NAME, type convert if necessary.
17478         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
17479
17480 2010-07-22  Richard Guenther  <rguenther@suse.de>
17481
17482         PR tree-optimization/45017
17483         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
17484         TYPE_PRECISION of integral types in addition to size.
17485
17486 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17487
17488         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
17489         when no C library is specified.
17490
17491 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17492
17493         * ipa-prop.h (struct ipa_node_params): Updated comment.
17494         (struct ipa_edge_args): Likewise.
17495         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
17496
17497 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17498
17499         * cgraphunit.c (verify_edge_count_and_frequency): New function.
17500         (verify_cgraph_node): Verify frequencies of indirect edges.
17501         * tree-inline.c (tree_function_versioning): Update frequencies of
17502         indirect edges.
17503
17504 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17505
17506         PR target/43698
17507         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
17508         Set *arm_rev to be predicable.
17509
17510 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
17511
17512         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
17513         (LINK_COMMAND_SPEC_A): New.
17514         (DSYMUTIL): New.
17515         (DSYMUTIL_SPEC): New.
17516         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
17517         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
17518
17519 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
17520
17521         * calls.c (load_register_parameters): Move check for zero
17522         sized items so that only the call to
17523         mem_overlaps_already_clobbered_arg_p () is protected.
17524
17525 2010-07-22  Jan Hubicka  <jh@suse.cz>
17526
17527         * ipa-pure-const.c (varying_state): Break out from ...
17528         (get_function_state): ... here; always return varying_state
17529         when state would be NULL otherwise.
17530         (remove_node_data): Do not free varying state.
17531
17532 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17533
17534         PR bootstrap/44970
17535         PR middle-end/45009
17536         * postreload.c: Include "target.h".
17537         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
17538         into account.
17539         (fixup_debug_insns): Don't copy the rtx.
17540         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
17541         Don't copy when replacing.  Call fixup_debug_insns in the case where
17542         we merged one add with another.
17543         (reload_combine_recognize_pattern): Fail if there aren't any uses.
17544         Try harder to determine whether we're picking a valid index register.
17545         Don't set store_ruid for an insn we're going to scan in the
17546         next iteration.
17547         (reload_combine): Remove unused code.
17548         (reload_combine_note_use): When updating use information for
17549         an old insn, ignore a use that occurs after store_ruid.
17550         * Makefile.in (postreload.o): Update dependencies.
17551
17552         * function.c (record_hard_reg_sets): Restrict the previous change
17553         to cases where the incoming nominal mode is the same as the
17554         incoming promoted mode and everything happens in MODE_INT.
17555
17556 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
17557
17558         PR debug/45015
17559         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
17560         ASM_OPERANDS_OUTPUT_IDX.
17561         (adjust_insn): For inline asm with multiple sets ensure first
17562         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
17563         the insn.
17564
17565 2010-07-21  Richard Henderson  <rth@redhat.com>
17566
17567         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
17568         comparison for avoiding xmm register saves.  Emit the xmm register
17569         saves explicitly.
17570         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
17571         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
17572         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
17573         Remove patterns and the associated splitters.
17574
17575 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
17576
17577         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
17578         and imagine parts of a complex, so that they can have the same
17579         base and fall into the same group.
17580
17581 2010-07-21  Richard Guenther  <rguenther@suse.de>
17582
17583         PR lto/45018
17584         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
17585         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
17586         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
17587
17588 2010-07-21  Martin Jambor  <mjambor@suse.cz>
17589
17590         PR tree-optimization/44900
17591         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
17592         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
17593
17594 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
17595
17596         PR middle-end/44738
17597         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
17598
17599 2010-07-21  Richard Guenther  <rguenther@suse.de>
17600
17601         PR middle-end/45013
17602         * tree-ssa.c (useless_type_conversion_p): Dispatch to
17603         gimple_types_compatible_p only when in lto.
17604         * gimple.c (gimple_types_compatible_p): Use canonical types
17605         to speed up comparison.
17606
17607 2010-07-21  Richard Guenther  <rguenther@suse.de>
17608
17609         * tree-flow.h (referenced_var): Move define ...
17610         * tree-flow-inline.h (referenced_var): ... here as an inline
17611         function.  Assert here ...
17612         * tree-dfa.c (referenced_var_lookup): ... instead of here.
17613         * tree-ssa.c (maybe_optimize_var): Check if the variable
17614         is in referenced vars.
17615         (execute_update_addresses_taken): Remove old broken check.
17616         * gimple-pretty-print.c (pp_points_to_solution): Use
17617         referenced_var_lookup.
17618         * tree-into-ssa.c (dump_decl_set): Likewise.
17619
17620 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
17621
17622         PR debug/45003
17623         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
17624         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
17625         ZERO_EXTEND here.
17626
17627 2010-07-20  Richard Henderson  <rth@redhat.com>
17628
17629         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
17630
17631 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
17632
17633         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
17634         computing the sum of the stack pointer and a large constant.
17635         * config/arm/constraints.md (M): Remove superfluous parentheses.
17636         (Pc): New constraint.
17637
17638 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
17639
17640         PR debug/45006
17641         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
17642         operand's type if exp is tcc_unary class tree.
17643
17644 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
17645
17646         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
17647         Reverse sense of if_then_else condition.
17648
17649 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
17650
17651         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
17652         * config/rs6000/rs6000.c (rs6000_override_options): Set
17653         rs6000_block_move_inline_limit appropriately.
17654         (expand_block_move): Use rs6000_block_move_inline_limit.
17655         * doc/invoke.texi (mblock-move-inline-limit): Document.
17656
17657 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
17658
17659         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
17660         FROM and TO.  All callers changed.  Don't look for tracked uses,
17661         just scan the RTL for DEBUG_INSNs and substitute.
17662         (reload_combine_recognize_pattern): Call fixup_debug_insns.
17663         (reload_combine): Ignore DEBUG_INSNs.
17664
17665 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
17666
17667         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
17668         depth to 8 from 5.
17669
17670         PR debug/45003
17671         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
17672         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
17673         instead of the result's type.
17674
17675 2010-07-20  Richard Guenther  <rguenther@suse.de>
17676
17677         PR tree-optimization/44977
17678         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
17679         SSA form.
17680
17681 2010-07-20  Richard Guenther  <rguenther@suse.de>
17682
17683         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
17684         (lto_symtab_merge_decls_2): Likewise.
17685         * gimple.h (gimple_types_compatible_p): Declare.
17686         * gimple.c (gimple_queue_type_fixup): Remove.
17687         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
17688         (gimple_compatible_complete_and_incomplete_type_p): New function.
17689         (gimple_types_compatible_p): Adjust.
17690         (gimple_register_type): Remove type fixup code.
17691         (print_gimple_types_stats): Adjust.
17692         (free_gimple_type_tables): Likewise.
17693         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
17694         * tree-ssa.c (useless_type_conversion_p): Likewise.
17695
17696 2010-07-20  Richard Guenther  <rguenther@suse.de>
17697
17698         PR middle-end/44971
17699         PR middle-end/44988
17700         * tree-ssa.c (maybe_optimize_var): New function split out from ...
17701         (execute_update_addresses_taken): ... here.
17702         (non_rewritable_mem_ref_base): Likewise.
17703         (execute_update_addresses_taken): Do not iterate over all referenced
17704         vars but just all local decls and parms.
17705         Properly check call and asm arguments and rewrite call arguments.
17706
17707 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
17708
17709         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
17710         to top level.
17711         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
17712         definitions ...
17713         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
17714         New macro.
17715         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
17716
17717 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17718
17719         * gengtype.c (start_root_entry): New function, split out from
17720         write_root.  Check whether V is null and raise an error if so.
17721         (write_field_root): Check for V being null.  Don't raise an error here;
17722         set V to null instead.
17723         (write_root): Update comment above function.  Use start_root_entry.
17724
17725 2010-07-19  Xinliang David Li  <davidxl@google.com>
17726
17727         PR testsuite/44932
17728         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
17729         def edges.
17730         (find_uninit_use): Add dump.
17731         (is_use_properly_guarded): Ditto.
17732         (warn_uninitialized_phi): Ditto.
17733         (execute_late_warn_uninitialized): Ditto.
17734
17735 2010-07-19  Richard Guenther  <rguenther@suse.de>
17736
17737         PR middle-end/44941
17738         * expr.c (emit_block_move_hints): Move zero size check first.
17739         Move asserts to more useful places.
17740         * calls.c (load_register_parameters): Check for zero size.
17741
17742 2010-07-19  Richard Henderson  <rth@redhat.com>
17743
17744         * tree-optimize.c (execute_all_early_local_passes): New.  Change
17745         cgraph_state here ...
17746         (execute_early_local_optimizations): ... not here.  Remove.
17747         (pass_early_local_passes, pass_all_early_optimizations): Update.
17748
17749 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
17750
17751         * postreload.c (reload_combine_closest_single_use): Ignore the
17752         number of uses for DEBUG_INSNs.
17753         (fixup_debug_insns): New static function.
17754         (reload_combine_recognize_const_pattern): Use it.  Don't let the
17755         main loop be affected by DEBUG_INSNs.
17756         Really disallow moving adds past a jump insn.
17757         (reload_combine_recognize_pattern): Don't update use_ruid here.
17758         (reload_combine_note_use): Do it here.
17759         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
17760
17761 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
17762
17763         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
17764         of a loop.
17765         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
17766
17767 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
17768
17769         * config/i386/darwin.h: Define darwin_emit_branch_islands.
17770         (TARGET_MACHO_BRANCH_ISLANDS): New.
17771         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
17772         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
17773         default value.
17774         * config/i386/i386.c (output_pic_addr_const): Do not emit
17775         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
17776         (x86_output_mi_thunk): Adjust symbol creation.
17777         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
17778         Remove out of date comment.
17779         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
17780         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
17781         (DARWIN_GENERATE_ISLANDS): Ditto.
17782         (output_call):  Do not emit branch islands unless
17783         darwin_emit_branch_islands is set.
17784         * config/darwin.c: Declare darwin_emit_branch_islands.
17785         (machopic_indirect_data_reference): Do not emit unless
17786         darwin_emit_branch_islands is set.
17787         (darwin_override_options): Set darwin_emit_branch_islands
17788         where it is needed.
17789         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
17790
17791 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17792
17793         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17794         sse_runtime, sse2_runtime.
17795
17796 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
17797
17798         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
17799         low half of a single-register SCmode return value before ORing
17800         it with the high half.
17801         * config/mips/mips16.S (MERGE_GPRf): Likewise.
17802
17803 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17804
17805         PR target/44805
17806         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
17807         on all targets.
17808
17809 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
17810
17811         PR target/42235
17812         * postreload.c (reload_cse_move2add): Return bool, true if anything.
17813         changed.  All callers changed.
17814         (move2add_use_add2_insn): Likewise.
17815         (move2add_use_add3_insn): Likewise.
17816         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
17817         reload_combine.
17818         (RELOAD_COMBINE_MAX_USES): Bump to 16.
17819         (last_jump_ruid): New static variable.
17820         (struct reg_use): New members CONTAINING_MEM and RUID.
17821         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
17822         (reload_combine_split_one_ruid, reload_combine_split_ruids,
17823         reload_combine_purge_insn_uses, reload_combine_closest_single_use
17824         reload_combine_purge_reg_uses_after_ruid,
17825         reload_combine_recognize_const_pattern): New static functions.
17826         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
17827         is true for our reg and that we have available index regs.
17828         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
17829         callers changed.  Use them to initialize fields in struct reg_use.
17830         (reload_combine): Initialize last_jump_ruid.  Be careful when to
17831         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
17832         Call reload_combine_recognize_const_pattern.
17833         (reload_combine_note_store): Update REAL_STORE_RUID field.
17834
17835 2010-07-16  Jason Merrill  <jason@redhat.com>
17836
17837         * Makefile.in (opts-common.o): Depend on options.h.
17838
17839 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
17840
17841         * tree.c (build_common_builtin_nodes): Use build_function_type_list
17842         instead of build_function_type.
17843         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
17844         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17845
17846 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
17847
17848         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
17849         do all the work.
17850         (rs6000_emit_int_cmove): Use function pointers for insn generation.
17851         Don't force values into registers unnecessarily.
17852         (output_isel): Assert that we're not given conditions we can't handle.
17853         Delete corresponding code.
17854         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
17855         scc_comparison_operator constraint.  Permit 0 for the consequent
17856         operand.  Permit any GPR for the alternative operand.
17857         (isel_unsigned_<mode>): Likewise.
17858
17859 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
17860
17861         PR target/44942
17862         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
17863         argument to const_tree.
17864         * config/i386/i386.c (function_arg_advance): If padding needs to be
17865         inserted before argument, increment cum->words by number of padding
17866         words as well.
17867         (contains_aligned_value_p): Change argument to const_tree.
17868         (ix86_function_arg_boundary): Change second argument to const_tree.
17869
17870 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
17871
17872         PR target/42235
17873         * function.c (record_hard_reg_sets): New static function.
17874         (assign_parm_setup_reg): If an optab for extending exists and the
17875         generated code clobbbers no hard regs, emit the insn directly and
17876         create a REG_EQUIV note.
17877
17878 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17879
17880         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
17881         TREE_CHAIN.
17882         * c-typeck.c (push_init_level): Likewise.
17883         (process_init_element): Likewise.
17884
17885 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
17886
17887         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
17888         (integer_three_node): Add.
17889         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
17890         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
17891         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
17892         of call build_int_cst.
17893         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
17894         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
17895         (find_interesting_uses_address): Ditto.
17896         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
17897         * tree-eh.c (lower_eh_constructs_2): Ditto.
17898         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
17899         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
17900         * expmed.c (expand_divmod): Ditto.
17901         * tree-mudflap.c (mx_register_decls): Ditto.
17902         * varasm.c (array_size_for_constructor): Ditto.
17903         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
17904         * c-parser.c (c_parser_postfix_expression): Ditto.
17905
17906 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
17907
17908         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
17909         New static variables.
17910         (reload_combine_recognize_pattern): New static function, broken out
17911         of reload_combine.
17912         (reload_combine): Use it.  Only initialize first_index_reg and
17913         last_index_reg once.
17914
17915 2010-07-15  Richard Henderson  <rth@redhat.com>
17916
17917         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
17918         when done.
17919
17920 2010-07-15  Jan Hubicka  <jh@suse.cz>
17921
17922         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
17923         comdats for broken gold.
17924         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
17925
17926 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17927
17928         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
17929
17930 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
17931
17932         * tree.h (DECL_CHAIN): Define.
17933         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
17934         * c-decl.c: Likewise.
17935         * c-parser.c: Likewise.
17936         * c-typeck.c: Likewise.
17937         * cfgexpand.c: Likewise.
17938         * cgraph.c: Likewise.
17939         * cgraphunit.c: Likewise.
17940         * combine.c: Likewise.
17941         * config/alpha/alpha.c: Likewise.
17942         * config/arm/arm.c: Likewise.
17943         * config/frv/frv.c: Likewise.
17944         * config/i386/i386.c: Likewise.
17945         * config/i386/winnt-cxx.c: Likewise.
17946         * config/ia64/ia64.c: Likewise.
17947         * config/iq2000/iq2000.c: Likewise.
17948         * config/mep/mep.c: Likewise.
17949         * config/mips/mips.c: Likewise.
17950         * config/pa/som.h: Likewise.
17951         * config/rs6000/rs6000.c: Likewise.
17952         * config/s390/s390.c: Likewise.
17953         * config/sh/sh.c: Likewise.
17954         * config/sh/symbian-cxx.c: Likewise.
17955         * config/sparc/sparc.c: Likewise.
17956         * config/spu/spu.c: Likewise.
17957         * config/stormy16/stormy16.c: Likewise.
17958         * config/vxworks.c: Likewise.
17959         * config/xtensa/xtensa.c: Likewise.
17960         * coverage.c: Likewise.
17961         * dbxout.c: Likewise.
17962         * dwarf2out.c: Likewise.
17963         * emit-rtl.c: Likewise.
17964         * expr.c: Likewise.
17965         * function.c: Likewise.
17966         * gimple-low.c: Likewise.
17967         * gimple-pretty-print.c: Likewise.
17968         * gimplify.c: Likewise.
17969         * integrate.c: Likewise.
17970         * ipa-inline.c: Likewise.
17971         * ipa-prop.c: Likewise.
17972         * ipa-split.c: Likewise.
17973         * ipa-struct-reorg.c: Likewise.
17974         * ipa-type-escape.c: Likewise.
17975         * langhooks.c: Likewise.
17976         * lto-cgraph.c: Likewise.
17977         * omp-low.c: Likewise.
17978         * stor-layout.c: Likewise.
17979         * tree-cfg.c: Likewise.
17980         * tree-complex.c: Likewise.
17981         * tree-dfa.c: Likewise.
17982         * tree-dump.c: Likewise.
17983         * tree-inline.c: Likewise.
17984         * tree-mudflap.c: Likewise.
17985         * tree-nested.c: Likewise.
17986         * tree-object-size.c: Likewise.
17987         * tree-pretty-print.c: Likewise.
17988         * tree-sra.c: Likewise.
17989         * tree-ssa-live.c: Likewise.
17990         * tree-ssa-loop-niter.c: Likewise.
17991         * tree-ssa-math-opts.c: Likewise.
17992         * tree-ssa-reassoc.c: Likewise.
17993         * tree-ssa-sccvn.c: Likewise.
17994         * tree-ssa-structalias.c: Likewise.
17995         * tree-tailcall.c: Likewise.
17996         * tree-vrp.c: Likewise.
17997         * tree.c: Likewise.
17998         * var-tracking.c: Likewise.
17999         * varasm.c: Likewise.
18000
18001 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18002
18003         PR target/44877
18004         * config/spu/spu.c (spu_expand_builtin_1): Allow references
18005         (as well as pointers) as argument to mask_for_load builtins.
18006
18007 2010-07-15  Richard Guenther  <rguenther@suse.de>
18008
18009         PR tree-optimization/44946
18010         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
18011         with accessing only padding properly.
18012
18013 2010-07-15  Jan Hubicka  <jh@suse.cz>
18014
18015         * ipa.c (function_and_variable_visibility): Variables marked as used
18016         should not be localized.
18017
18018 2010-07-15  Jan Hubicka  <jh@suse.cz>
18019
18020         * cgraph.c: Include lto-streamer.h
18021         (change_decl_assembler_name): Work when assembler name hash is at place.
18022         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
18023         be sure to rename it to avoid name clash.
18024         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
18025         Localize hidden symbols only when locally defined.
18026
18027 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
18028
18029         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
18030
18031 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
18032             Kevin F. Quinn  <kevquinn@gentoo.org>
18033
18034         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
18035         * common.opt: Add -Wtrampolines.
18036         * doc/invoke.texi: Add -Wtrampolines.
18037
18038 2010-07-15  Jie Zhang  <jie@codesourcery.com>
18039
18040         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
18041         cortex_a8_issue_ls.
18042
18043 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
18044
18045         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
18046         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
18047
18048 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18049
18050         * config/spu/spu.c (reg_names): Remove prototype.
18051         (call_used_regs): Likewise.
18052
18053 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18054
18055         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
18056         "unused" with attribute "used".
18057         (__JCR_END__): Likewise.
18058         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
18059         "used" attribute.
18060         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
18061
18062 2010-07-14  Richard Guenther  <rguenther@suse.de>
18063
18064         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
18065         (maybe_fixup_decls): Likewise.
18066         (input_gimple_stmt): Do not fixup anything.
18067         * lto-streamer-out.c (output_gimple_stmt): Make sure all
18068         non-automatic variable uses are wrapped inside a MEM_REF.
18069
18070 2010-07-14  Richard Henderson  <rth@redhat.com>
18071
18072         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
18073         for functions.
18074         * varasm.c (assemble_variable): Remove early exit for functions;
18075         assert that we're given a variable.
18076
18077 2010-07-14  Jie Zhang  <jie@codesourcery.com>
18078
18079         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
18080         cortex_a8_default when neon_type is not none.
18081
18082 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18083
18084         * lower-subreg.c (subreg_context): New static bitmap.
18085         (decompose_multiword_subregs): Allocate and free it.
18086         (find_decomposable_subregs): Set a bit in it for a register that
18087         occurs in a subreg that changes mode but not size.
18088         (can_decompose_p): Test it instead of non_decomposable_context.
18089
18090 2010-07-14  Richard Guenther  <rguenther@suse.de>
18091
18092         PR tree-optimization/44824
18093         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
18094         is_gimple_mem_ref_addr.
18095         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
18096         non-decl_address_invariant_p addresses.
18097
18098 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18099
18100         * reload.c (find_reloads): Revert code to penalize small register
18101         classes that was brought in with the IRA merge.
18102
18103 2010-07-14  Richard Guenther  <rguenther@suse.de>
18104
18105         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
18106         as base of ARRAY_REFs.
18107
18108 2010-07-14  Richard Guenther  <rguenther@suse.de>
18109
18110         PR middle-end/44930
18111         * tree-pretty-print.c (do_niy): Do not print a newline.
18112
18113 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18114
18115         * ira-int.h (struct ira_object): New.
18116         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
18117         (struct ira_allocno): Remove members min, max,
18118         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
18119         conflict_allocnos_num and conflict_vec_p.  Add new member object.
18120         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
18121         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
18122         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
18123         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
18124         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
18125         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
18126         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
18127         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
18128         an ira_object_t rather than ira_allocno_t.  All uses changed.
18129         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18130         contains a vector of ira_object_t; all uses changed.
18131         (ira_objects_num): Declare variable.
18132         (ira_create_allocno_object): Declare function.
18133         (ira_conflict_vector_profitable_p): Adjust prototype.
18134         (ira_allocate_conflict_vec): Renamed from
18135         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
18136         (ira_allocate_object_conflicts): Renamed from
18137         ira_allocate_allocno_conflicts; first arg now ira_object_t.
18138         (struct ira_object_iterator): New.
18139         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
18140         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
18141         to conflict_vec_p.  All uses changed.
18142         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
18143         Changed to take into account that conflicts are now tracked for
18144         objects.
18145         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
18146         Args changed to accept ira_object_t.  All uses changed.
18147         (allocnos_conflict_p): New static function.
18148         (collected_conflict_objects): Renamed from collected_allocno_objects;
18149         now a vector of ira_object_t.  All uses changed.
18150         (build_conflict_bit_table): Changed to take into account that
18151         conflicts are now tracked for objects.
18152         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
18153         (print_allocno_conflicts, ira_build_conflicts): Likewise.
18154         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
18155         setup_allocno_left_conflicts_size, allocno_reload_assign,
18156         fast_allocation): Likewise.
18157         * ira-lives.c (make_hard_regno_born, make_allocno_born)
18158         process_single_reg_class_operands, process_bb_node_lives): Likewise.
18159         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
18160         Likewise.
18161         * ira-build.c (ira_objects_num): New variable.
18162         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18163         contains a vector of ira_object_t; all uses changed.
18164         (ira_object_id_map_vec): Corresponding change.
18165         (object_pool): New static variable.
18166         (initiate_allocnos): Initialize it.
18167         (finish_allocnos): Free it.
18168         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
18169         New functions.
18170         (ira_create_allocno): Don't set members that were removed.
18171         (ira_set_allocno_cover_class): Don't change conflict hard regs.
18172         (merge_hard_reg_conflicts): Changed to take into account that
18173         conflicts are now tracked for objects.
18174         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
18175         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
18176         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
18177         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
18178         setup_min_max_conflict_allocno_ids, ):  Likewise.
18179         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
18180         to ira_object_t; all callers changed.
18181         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
18182         to ira_object_t, all callers changed.
18183         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
18184         to ira_object_t, all callers changed.
18185         (conflict_check, curr_conflict_check_tick): Renamed from
18186         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
18187         changed.
18188         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
18189         arg changed to ira_object_t, all callers changed.
18190         (create_cap_allocno): Call ira_create_allocno_object.
18191         (finish_allocno): Free the corresponding object.
18192         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
18193         callers changed.  Adjusted for dealing with objects.
18194         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
18195         dealing with objects.
18196         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
18197
18198         * ira-int.h (struct live_range): Rename allocno member to object
18199         and change type to ira_object_t.
18200         (struct ira_object): New member live_ranges.
18201         (struct ira_allocno): Remove member live_ranges.
18202         (ALLOCNO_LIVE_RANGES): Remove.
18203         (OBJECT_LIVE_RANGES): New macro.
18204         (ira_create_live_range, ira_copy_live_range_list,
18205         ira_merge_live_range_list, ira_live_ranges_intersect_p,
18206         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
18207         * ira-build.c (ira_create_object): Initialize live ranges here.
18208         (ira_create_allocno): Not here.
18209         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
18210         changed to ira_object_t, all callers changed.
18211         (copy_live_range): Rename from copy_allocno_live_range, all callers
18212         changed.
18213         (ira_copy_live_range_list): Rename from
18214         ira_copy_allocno_live_range_list, all callers changed.
18215         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
18216         all callers changed.
18217         (ira_live_ranges_intersect_p): Rename from
18218         ira_allocno_live_ranges_intersect_p, all callers changed.
18219         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
18220         callers changed.
18221         (ira_finish_live_range_list): Rename from
18222         ira_finish_allocno_live_range_list, all callers changed.
18223         (change_object_in_range_list): Rename from change_allocno_in_range_list,
18224         last arg changed to ira_object_t, all callers changed.
18225         (finish_allocno): Changed to expect live ranges in the allocno's object.
18226         (move_allocno_live_ranges, copy_allocno_live_ranges,
18227         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
18228         ira_flattening, ira_build): Likewise.
18229         * ira-color.c (allocnos_have_intersected_live_ranges_p,
18230         slot_coalesced_allocno_live_ranges_intersect,
18231         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
18232         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18233         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
18234         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
18235         make_allocno_dead, create_start_finish_chains,
18236         remove_some_program_points_and_update_live_ranges,
18237         ira_debug_live_range_list): Likewise.
18238
18239         * ira-int.h (ira_object_conflict_iterator): Rename from
18240         ira_allocno_conflict_iterator.
18241         (ira_object_conflict_iter_init): Rename from
18242         ira_allocno_conflict_iter_init, second arg changed to
18243         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
18244         FOR_EACH_ALLOCNO_CONFLICT.
18245         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
18246         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
18247         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
18248         * ira-conflicts.c (print_allocno_conflicts): Likewise.
18249
18250 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
18251
18252         PR other/44874
18253         * tree-dump.c (dump_options): Add enumerate_locals entry.
18254         Add TDF_NOID exclusion to all entry.
18255         * tree-dump.h (dump_enumerated_decls): Declare.
18256         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
18257         Don't display type uid.
18258         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
18259         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
18260         * tree-ssa-live.c: Include gimple.h.
18261         (numbered_tree_d): New struct.
18262         (numbered_tree): New typedef.
18263         (DEF_VEC_O (numbered_tree): New.
18264         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
18265         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
18266         (dump_enumerated_decls): Likewise.
18267         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
18268         debug info and flag_dump_final_insns, call dump_enumerated_decls.
18269         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
18270         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
18271
18272 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
18273
18274         * expmed.h (MAX_BITS_PER_WORD): Move to...
18275         * defaults.h (MAX_BITS_PER_WORD): ...here.
18276
18277 2010-07-13  DJ Delorie  <dj@redhat.com>
18278
18279         * config/h8300/h8300.c (h8300_init_once): Default to
18280         -fstrict_volatile_bitfields.
18281
18282         * config/sh/sh.c (sh_override_options): Default to
18283         -fstrict_volatile_bitfields.
18284
18285         * config/rx/rx.c (rx_option_override): New.
18286
18287         * config/m32c/m32c.c (m32c_override_options): Default to
18288         -fstrict_volatile_bitfields.
18289
18290 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
18291
18292         * tree.h (build_function_call_expr): Delete.
18293         (build_call_expr_loc_array): New function.
18294         (build_call_expr_loc_vec): New function.
18295         * tree-flow.h (struct omp_region): Change type of ws_args field
18296         to a VEC.
18297         * builtins.c (build_function_call_expr): Delete.
18298         (build_call_expr_loc_array): New function.
18299         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
18300         (build_call_expr): Likewise.
18301         (build_call_expr_loc_vec): New function.
18302         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
18303         build_function_call_expr.
18304         * expr.c (emutls_var_address): Likewise.
18305         * varasm.c (emutls_common_1): Likewise.
18306         * omp-low.c (expand_omp_atomic_mutex): Likewise.
18307         (expand_omp_taskreg): Adjust for new type of region->ws_args.
18308         (get_ws_args_for): Return a VEC instead of a tree.
18309         (expand_parallel_call): Call build_call_expr_loc_vec instead of
18310         build_function_call_expr.
18311         * stor-layout.c (self_referential_size): Likewise.
18312
18313 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
18314
18315         PR testsuite/44701
18316         * recog.c (constrain_operands): Allow side-effects in memory
18317         operands if either < or > constraint is used, rather than if
18318         both < and > is used.
18319
18320 2010-07-13  Richard Guenther  <rguenther@suse.de>
18321
18322         PR middle-end/44911
18323         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
18324         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
18325         without name.
18326
18327 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
18328
18329         PR target/44761
18330         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
18331         to variable emited.
18332         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
18333         * config/sh/sh.md (symGOT_load): Likewise.
18334         (symDTPOFF2reg): Likewise.
18335         (symTPOFF2reg): Likewise.
18336
18337 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18338
18339         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
18340         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
18341
18342 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18343
18344         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
18345         explanation.
18346         Find ucontext_t * on Solaris 11.
18347         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
18348         Handle new Solaris 11 __sighndlr patterns.
18349
18350 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
18351
18352         PR debug/44901
18353         * vec.h (VEC_block_remove): Fix comment.
18354         * tree-ssa-live.c (remove_unused_locals): Don't use
18355         VEC_unordered_remove on local_decls, instead replace a single
18356         vector element in each iteration if at least one element had
18357         to be removed and VEC_truncate at the end.
18358         * omp-low.c (expand_omp_taskreg): Likewise.
18359
18360 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18361
18362         * c-decl.c (finish_function): Fix typo in comment.
18363
18364 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
18365
18366         PR bootstrap/44921
18367         * postreload.c (move2add_use_add3_insn): Silence gcc warning
18368         on min_regno.
18369
18370 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
18371
18372         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
18373         (simplify_stmt_using_ranges): Use it.
18374
18375 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18376
18377         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
18378         member.  Do not mark as GTY(()).
18379         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
18380         (spu_builtin_decls): New static variable.
18381         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
18382         (spu_init_builtins): Likewise.
18383         (spu_builtin_mul_widen_even): Likewise.
18384         (spu_builtin_mul_widen_odd): Likewise.
18385         (spu_builtin_mask_for_load): Likewise.
18386         (spu_builtin_vec_perm): Likewise.
18387         * config/spu/spu-c.c: Include "target.h".
18388         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
18389         of using spu_builtins[].fndecl.
18390
18391 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18392
18393         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
18394         imply -minterlink-mips16.
18395
18396 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18397
18398         * config/mips/mips.h (mips16_globals): Declare.
18399         (SWITCHABLE_TARGET): Define.
18400         * config/mips/mips.c: Include target-globals.h.
18401         (mips16_globals): New variable.
18402         (mips_set_mips16_mode): Use save_target_globals and
18403         restore_target_globals instead of target_reinit.
18404
18405 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18406
18407         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
18408         to say that the function can be called more than once.
18409         * target-globals.c (save_target_globals): Call init_reg_sets.
18410
18411 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18412
18413         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
18414         * bb-reorder.h: New file.
18415         * bb-reorder.c (default_target_bb_reorder): New variable.
18416         (this_target_bb_reorder): New conditional variable.
18417         (uncond_jump_length): Redefine as a macro.
18418         * target-globals.h (this_target_bb_reorder): Declare.
18419         (target_globals): Add a bb_reorder field.
18420         (restore_target_globals): Copy the bb_reorder field to
18421         this_target_bb-reorder.
18422         * target-globals.c: Include bb-reorder.h.
18423         (default_target_globals): Initialize the bb_reorder field.
18424         (save_target_globals): Likewise.
18425
18426 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18427
18428         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
18429         * gcse.h: New file.
18430         * gcse.c: Include gcse.h.
18431         (default_target_gcse): New variable.
18432         (this_target_gcse): New conditional variable.
18433         (can_copy): Redefine as a macro.
18434         (can_copy_init_p): New macro.
18435         (can_copy_p): Remove can_copy_init_p.
18436         * target-globals.h (this_target_gcse): Declare.
18437         (target_globals): Add a gcse field.
18438         (restore_target_globals): Copy the gcse field to this_target_gcse.
18439         * target-globals.c: Include gcse.h.
18440         (default_target_globals): Initialize the gcse field.
18441         (save_target_globals): Likewise.
18442
18443 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18444
18445         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
18446         and x_ira_prohibited_mode_move_regs_initialized_p.
18447         (ira_prohibited_mode_move_regs): Redefine as a macro.
18448         * ira.c (ira_prohibited_mode_move_regs): Delete.
18449         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
18450
18451 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18452
18453         * reload.h (target_reload): Add x_cached_reg_save_code and
18454         x_cached_reg_restore_code.
18455         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
18456         Redefine as macros.
18457
18458 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18459
18460         * Makefile.in (target-globals.o): Depend on builtins.h.
18461         * builtins.h: New file.
18462         * builtins.c: Include builtins.h.
18463         (default_target_builtins): New variable.
18464         (this_target_builtins): New conditional variable.
18465         (apply_args_mode, apply_result_mode): Redefine as macros.
18466         * target-globals.h (this_target_builtins): Declare.
18467         (target_globals): Add a builtins field.
18468         (restore_target_globals): Copy the builtins field to
18469         this_target_builtins.
18470         * target-globals.c: Include builtins.h.
18471         (default_target_globals): Initialize the builtins field.
18472         (save_target_globals): Likewise.
18473
18474 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18475
18476         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
18477         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
18478         from expmed.c.
18479         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
18480         (alg_hash, alg_hash_used_p): New macros.
18481         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
18482         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
18483         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
18484
18485 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18486
18487         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
18488         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
18489         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
18490         (this_op_costs, costs_classes): Redefine as macros.
18491         (record_reg_classes): Don't take op_costs as a parameter.
18492         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
18493         (scan_one_insn): Update call to record_operand_costs.
18494
18495 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18496
18497         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
18498         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
18499         (target_ira_int): New structure.
18500         (default_target_ira_int): Declare.
18501         (this_target_ira_int): Declare as a variable or define as a macro.
18502         (ira_reg_mode_hard_regset, ira_register_move_cost)
18503         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
18504         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
18505         (prohibited_class_mode_regs, ira_important_classes_num)
18506         (ira_important_classes, ira_reg_class_intersect)
18507         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
18508         (ira_reg_class_union): Redefine as macros.
18509         * ira.h (target_ira): New structure.
18510         (default_target_ira): Declare.
18511         (this_target_ira): Declare as a variable or define as a macro.
18512         (ira_available_class_regs, ira_hard_regno_cover_class)
18513         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
18514         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
18515         (ira_class_hard_regs_num): Redefine as macros.
18516         * ira.c (default_target_ira, default_target_ira_int): New variables.
18517         (this_target_ira, this_target_ira_int): New conditional variables.
18518         (ira_reg_mode_hard_regset, ira_memory_move_cost)
18519         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
18520         (ira_class_subset_p): Delete.
18521         (no_unit_alloc_regs): Redefine as a macro.
18522         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
18523         (ira_class_hard_regs_num, ira_class_hard_reg_index)
18524         (ira_available_class_regs): Delete.
18525         (alloc_reg_class_subclasses): Redefine as a macro.
18526         (ira_reg_class_cover_size, ira_reg_class_cover)
18527         (ira_important_classes_num, ira_important_classes)
18528         (ira_important_class_nums, ira_class_translate): Delete.
18529         (cover_class_order): Document the variable's lifetime.
18530         (reorder_important_classes): Don't set ira_important_class_nums.
18531         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
18532         (ira_reg_class_super_classes, ira_reg_class_union)
18533         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
18534         Delete.
18535         (setup_reg_class_nregs): Don't set ira_max_regs.
18536         (prohibited_class_mode_regs): Delete.
18537         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
18538         (target_globals): Add ira and ira_int fields.
18539         (restore_target_globals): Copy the ira field to this_target_ira
18540         and the ira_int field to this_target_ira_int.
18541         * target-globals.c: Include ira-int.h.
18542         (default_target_globals): Initialize the ira and ira_int fields.
18543         (save_target_globals): Likewise.
18544
18545 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18546
18547         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
18548         * cfgloop.h (target_cfgloop): New structure.
18549         (default_target_cfgloop): Declare.
18550         (this_target_cfgloop): Declare as a variable or define as a macro.
18551         (target_avail_regs, target_clobbered_regs, target_res_regs)
18552         (target_reg_cost, target_spill_cost): Redefine as macros.
18553         * cfgloopanal.c (default_target_cfgloop): New variable.
18554         (this_target_cfgloop): New conditional variable.
18555         (target_avail_regs, target_clobbered_regs, target_res_regs)
18556         (target_reg_cost, target_spill_cost): Delete.
18557         * target-globals.h (this_target_cfgloop): Declare.
18558         (target_globals): Add a cfgloop field.
18559         (restore_target_globals): Copy the cfgloop field to
18560         this_target_cfgloop.
18561         * target-globals.c: Include cfgloop.h.
18562         (default_target_globals): Initialize the cfgloop field.
18563         (save_target_globals): Likewise.
18564
18565 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18566
18567         * regs.h (target_regs): Add x_direct_load, x_direct_store and
18568         x_float_extend_from_mem.
18569         (direct_load, direct_store, float_extend_from_mem): New macros.
18570         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
18571
18572 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18573
18574         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
18575         (target-globals.o): Depend on $(LIBFUNCS_H).
18576         * libfuncs.h: Include hashtab.h.
18577         (libfunc_entry): Moved from optabs.c.
18578         (target_libfuncs): New structure.
18579         (default_target_libfuncs): Declare.
18580         (this_target_libfuncs): Declare as a variable or define as a macro.
18581         (libfunc_table): Redefine as a macro.
18582         * optabs.c (default_target_libfuncs): New variable.
18583         (this_target_libfuncs): New conditional variable.
18584         (libfunc_table): Delete.
18585         (libfunc_entry): Moved to optabs.h.
18586         (libfunc_hash): Redefine as a macro.
18587         (hash_libfunc, eq_libfunc): Fix comments.
18588         (init_optabs): Use libfunc_hash to detect cases where the function
18589         has already been called.  Clear the hash table instead of
18590         recreating it.
18591         * target-globals.h (this_target_libfuncs): Declare.
18592         (target_globals): Add a libfuncs field.
18593         (restore_target_globals): Copy the libfuncs field to
18594         this_target_libfuncs.
18595         * target-globals.c: Include libfuncs.h.
18596         (default_target_globals): Initialize the libfuncs field.
18597         (save_target_globals): Likewise.
18598
18599 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18600
18601         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
18602         in all dependency lists.
18603
18604 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18605
18606         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
18607         * optabs.h (target_optabs): New structure.
18608         (default_target_optabs): Declare.
18609         (this_target_optabs): Declare as a variable or define as a macro.
18610         (optab_table, convert_optab_table, direct_optab_table): Redefine
18611         as macros.
18612         * optabs.c (default_target_optabs): New variable.
18613         (this_target_optabs): New conditional variable.
18614         (optab_table, convert_optab_table, direct_optab_table): Delete.
18615         * target-globals.h (this_target_optabs): Declare.
18616         (target_globals): Add a optabs field.
18617         (restore_target_globals): Copy the optabs field to
18618         this_target_optabs.
18619         * target-globals.c: Include expr.h and optabs.h.
18620         (default_target_globals): Initialize the optabs field.
18621         (save_target_globals): Likewise.
18622
18623 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18624
18625         * flags.h (target_flagstate): Add x_flag_excess_precision.
18626         (flag_excess_precision): Redefine as a macro.
18627         * toplev.c (flag_excess_precision): Delete.
18628
18629 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18630
18631         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
18632         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
18633         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
18634         (no_caller_save_reg_set): Redefine as a macro.
18635         * reload.h (target_reload): Add x_caller_save_initialized_p and
18636         x_regno_save_mode.
18637         (caller_save_initialized_p): Redefine as a macro.
18638         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
18639         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
18640         (regno_save_mode): Redefine as a macro.
18641
18642 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18643
18644         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
18645         * expmed.h: New file.
18646         * expmed.c (default_target_costs): New variable.
18647         (this_target_costs): New conditional variable.
18648         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
18649         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
18650         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
18651         * target-globals.h (this_target_expmed): Declare.
18652         (target_globals): Add a expmed field.
18653         (restore_target_globals): Copy the expmed field to
18654         this_target_expmed.
18655         * target-globals.c: Include expmed.h.
18656         (default_target_globals): Initialize the expmed field.
18657         (save_target_globals): Likewise.
18658
18659 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18660
18661         * Makefile.in (target-globals.o): Depend on reload.h.
18662         * reload.h (target_reload): New structure.
18663         (default_target_reload): Declare.
18664         (this_target_reload): Declare as a variable or define as a macro.
18665         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
18666         * reload1.c (default_target_reload): New variable
18667         (this_target_reload): New conditional variable.
18668         (indirect_symref_ok, double_reg_address_ok): Delete.
18669         (spill_indirect_levels): Redefine as a macro.
18670         * target-globals.h (this_target_reload): Declare.
18671         (target_globals): Add a reload field.
18672         (restore_target_globals): Copy the reload field to
18673         this_target_reload.
18674         * target-globals.c: Include hard-reg-set.h.
18675         (default_target_globals): Initialize the reload field.
18676         (save_target_globals): Likewise.
18677
18678 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18679
18680         * rtl.h (target_rtl): Add x_static_reg_base_value.
18681         * alias.c (static_reg_base_value): Redefine as a macro.
18682
18683 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18684
18685         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
18686         (GTFILES): Remove reginfo.c.
18687         * rtl.h (target_rtl): Add x_top_of_stack.
18688         (top_of_stack): New macro.
18689         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
18690         (top_of_stack): Delete.
18691
18692 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18693
18694         * regs.h (target_regs): Add x_hard_regs_of_mode,
18695         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
18696         x_may_move_out_cost and x_last_mode_for_init_move_cost.
18697         (have_regs_of_mode, contains_reg_of_mode, move_cost)
18698         (may_move_in_cost, may_move_out_cost): Redefine as macros.
18699         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
18700         (may_move_in_cost, may_move_out_cost): Delete.
18701         (last_mode_for_init_move_cost): Redefine as a macro.
18702
18703 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18704
18705         * hard-reg-set.h (target_hard_regs): New structure.
18706         (default_target_hard_regs): Declare.
18707         (this_target_hard_regs): Declare as a variable or define as a macro.
18708         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
18709         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
18710         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
18711         (reg_class_size, reg_class_subclasses, reg_class_subunion)
18712         (reg_class_superunion, reg_names): Redefine as macros.
18713         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
18714         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
18715         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
18716         (reg_class_contents, reg_class_size, reg_class_subclasses)
18717         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
18718         (default_target_hard_regs): New variable
18719         (this_target_hard_regs, initial_call_really_used_regs)
18720         (initial_reg_alloc_order): New conditional variables.
18721         (initial_reg_names): New variable.
18722         (init_reg_sets): Assert that initial_call_really_used_regs,
18723         initial_reg_alloc_order and initial_reg_names
18724         are all the same size as their variable counterparts.  Use them to
18725         initialize those counterparts.
18726         * target-globals.h (this_target_hard_regs): Declare.
18727         (target_globals): Add a hard_regs field.
18728         (restore_target_globals): Copy the hard_regs field to
18729         this_target_hard_regs.
18730         * target-globals.c: Include hard-reg-set.h.
18731         (default_target_globals): Initialize the hard_regs field.
18732         (save_target_globals): Likewise.
18733
18734 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18735
18736         * Makefile.in (target-globals.o): Depend on $(RTL_H).
18737         * rtl.h (target_rtl): New structure.
18738         (default_target_rtl): Declare.
18739         (this_target_rtl): Declare as a variable or define as a macro.
18740         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
18741         Redefine as macros.
18742         * emit-rtl.c (default_target_rtl): New variable.
18743         (this_target_rtl): New conditional variable.
18744         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
18745         (return_address_pointer_rtx): Delete.
18746         (initial_regno_reg_rtx): New macro.
18747         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
18748         (init_emit_regs): Likewise.
18749         * target-globals.h (this_target_rtl): Declare.
18750         (target_globals): Add a rtl field.
18751         (restore_target_globals): Copy the rtl field to this_target_rtl.
18752         * target-globals.c: Include rtl.h.
18753         (default_target_globals): Initialize the rtl field.
18754         (save_target_globals): Likewise.
18755
18756 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18757
18758         * Makefile.in (target-globals.o): Depend on $(REGS_H).
18759         * regs.h (target_reg_modes): New structure.
18760         (default_target_reg_modes): Declare.
18761         (this_target_reg_modes): Declare as a variable or define as a macro.
18762         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
18763         * reginfo.c (default_target_reg_modes): New variable.
18764         (this_target_reg_modes): New conditional variable.
18765         (hard_regno_nregs, reg_raw_mode): Delete.
18766         * target-globals.h (this_target_regs): Declare.
18767         (target_globals): Add a regs field.
18768         (restore_target_globals): Copy the regs field to this_target_regs.
18769         * target-globals.c: Include regs.h.
18770         (default_target_globals): Initialize the regs field.
18771         (save_target_globals): Likewise.
18772
18773 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18774
18775         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
18776         * doc/tm.texi: Regenerate.
18777         * Makefile.in (OBJS-common): Add target-globals.o.
18778         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
18779         and target-globals.h.
18780         (target-globals.o): New rule.
18781         (GTFILES): Include $(srcdir)/target-globals.h.
18782         * defaults.h (SWITCHABLE_TARGET): Define.
18783         * gengtype.c (open_base_files): Add target-globals.h to the
18784         list of includes.
18785         * target-globals.h: New file.
18786         * target-globals.c: Likewise.
18787
18788         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
18789         * flags.h (target_flag_state): New structure.
18790         (default_target_flag_state): Declare.
18791         (this_target_flag_state): Declare as a variable or define as a macro.
18792         (align_loops_log): Redefine as a macro.
18793         (align_loops_max_skip, align_jumps_log): Likewise.
18794         (align_jumps_max_skip, align_labels_log): Likewise.
18795         (align_labels_max_skip, align_functions_log): Likewise.
18796         * toplev.c (default_target_flag_state): New variable.
18797         (this_target_flag_state): New conditional variable.
18798         (align_loops_log): Delete.
18799         (align_loops_max_skip, align_jumps_log): Likewise.
18800         (align_jumps_max_skip, align_labels_log): Likewise.
18801         (align_labels_max_skip, align_functions_log): Likewise.
18802         * target-globals.h (this_target_flag_state): Declare.
18803         (target_globals): Add a flag_state field.
18804         (restore_target_globals): Copy the flag_state field to
18805         this_target_flag_state.
18806         * target-globals.c: Include flags.h.
18807         (default_target_globals): Initialize the flag_state field.
18808         (save_target_globals): Likewise.
18809
18810 2010-07-12  Jie Zhang  <jie@codesourcery.com>
18811
18812         * postreload.c (reg_symbol_ref[]): New.
18813         (move2add_use_add2_insn): New.
18814         (move2add_use_add3_insn): New.
18815         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
18816         (move2add_note_store): Likewise.
18817
18818 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
18819
18820         PR rtl-optimization/44752
18821         * genautomata.c (main): Don't emit an empty file even if there
18822         is no automaton.
18823
18824 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18825
18826         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
18827         ix86_solaris_return_in_memory.
18828         * config/i386-protos.h: Reflect this.
18829         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
18830         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
18831         Move ...
18832         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
18833
18834 2010-07-12  Jie Zhang  <jie@codesourcery.com>
18835
18836         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
18837         align the stack when it's going to be saved.
18838
18839 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18840
18841         PR pch/14940
18842         * config/host-solaris.c (mmap_fixed): New function.
18843         (sol_gt_pch_get_address): Use it.
18844         (sol_gt_pch_use_address): Likewise.
18845
18846 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18847
18848         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18849         pentiumpro on Solaris 8 and 9/x86.
18850         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
18851         Document SSE/SSE2 support.
18852         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
18853
18854 2010-07-12  Andi Kleen  <ak@linux.intel.com>
18855
18856         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
18857         instead of gcc_assert to print better error message for multiple
18858         prevailing defs.
18859
18860 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
18861
18862         * config/i386/i386.c (ix86_asm_output_function_label): Change format
18863         string placeholder from 0x%x to %#x.
18864         (ix86_code_end): Use putc to output '\n'.
18865         (ix86_print_operand) <case ';'>: Use putc to output ';'.
18866
18867 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
18868
18869         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
18870         in directive -export.
18871
18872 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
18873
18874         * reginfo.h (reg_classes_intersect_p): Change arguments type to
18875         reg_class_t.
18876         * rtl.h (reg_classes_intersect_p): Adjust prototype.
18877
18878         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18879         Remove macros.
18880         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
18881         rs6000_memory_move_cost): Remove
18882         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
18883         TARGET_MEMORY_MOVE_COST): Define.
18884         (rs6000_register_move_cost): Make static. Change arguments type from
18885         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
18886         (rs6000_memory_move_cost): Make static. Change arguments type from
18887         'enum reg_class' to reg_class_t.
18888
18889 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
18890
18891         PR middle-end/42505
18892         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
18893         lookup code into....
18894         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
18895         new functions.
18896         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
18897         * cfgloopanal.c (target_clobbered_regs): Define.
18898         (init_set_costs): Initialize target_clobbered_regs.
18899         (estimate_reg_pressure_cost): Add call_p argument.  When true,
18900         adjust the number of available registers to exclude the
18901         call-clobbered registers.
18902         * cfgloop.h (target_clobbered_regs): Declare.
18903         (estimate_reg_pressure_cost): Adjust declaration.
18904         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
18905         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
18906         (determine_set_costs): Dump target_clobbered_regs.
18907         (loop_body_includes_call): New function.
18908         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
18909         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
18910         call_p flag through.
18911         (best_gain_for_invariant): Likewise.
18912         (find_invariants_to_move): Likewise.
18913         (move_single_loop_invariants): Likewise, using already-computed
18914         has_call field.
18915
18916 2010-07-10  Richard Guenther  <rguenther@suse.de>
18917             Joern Rennecke  <joern.rennecke@embecosm.com>
18918
18919         PR debug/44832
18920         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
18921         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
18922         unless they have DECL_IGNORED_P set.
18923
18924 2010-07-10  Richard Guenther  <rguenther@suse.de>
18925
18926         PR lto/44889
18927         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
18928         helper function.
18929         (gimple_types_compatible_p): Similar to pointed-to
18930         types allow and merge a mix of complete and incomplete aggregate.
18931         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
18932         (iterative_hash_gimple_type): Adjust for that.
18933
18934 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
18935
18936         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
18937
18938 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
18939
18940         PR objc/44140
18941         * config/darwin.c (output_objc_section_asm_op): Save and restore
18942         section when outputting ObjC section list.
18943
18944 2010-07-09  Jan Hubicka  <jh@suse.cz>
18945
18946         * lto-streamer-out.c (produce_symtab): Do not write alias
18947         cgraph/varpool nodes.
18948
18949 2010-07-09  Jan Hubicka  <jh@suse.cz>
18950
18951         * tree-inline.c (declare_return_variable): Fix ICE while
18952         inlining DECL_BY_VALUE function not in SSA form
18953
18954 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
18955
18956         PR tree-optimization/44576
18957         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
18958         New.  Pull out from is_loop_prefetching_profitable to implement
18959         the trip count to ahead ratio heuristic.
18960         (mem_ref_count_reasonable_p): New.  Pull out from
18961         is_loop_prefetching_profitable to implement the instruction to
18962         memory reference ratio heuristic.  Also consider not reasonable if
18963         the memory reference count is above a threshold (to avoid
18964         explosive compilation time.
18965         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
18966         is_loop_prefetching_profitable to implement the instruction to
18967         prefetch ratio heuristic.
18968         (is_loop_prefetching_profitable): Removed.
18969         (loop_prefetch_arrays): Distribute the cost analysis across the
18970         function to allow early exit of the prefetch analysis.
18971         is_loop_prefetching_profitable is splitted into three functions,
18972         with each one called as early as possible.
18973         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
18974         number of memory references in a loop is considered too many.
18975
18976 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
18977
18978         * reload.c (find_reloads): Don't clear badop if we have a winreg
18979         alternative, but not win, and the class only has fixed regs.
18980         * hard-reg-set.h (class_only_fixed_regs): Declare.
18981         * reginfo.c (class_only_fixed_regs): New array.
18982         (init_reg_sets_1): Initialize it.
18983         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
18984         discourage alternatives using the stack pointer.
18985
18986         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
18987
18988         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
18989
18990         * config/arm/arm.md (cbranchqi4): Fix array size.
18991         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
18992         calculating length.
18993
18994 2010-07-09  Richard Guenther  <rguenther@suse.de>
18995
18996         * gimple.c (struct type_fixup_s): New struct and VEC type.
18997         (gimple_register_type_fixups): New static global.
18998         (gimple_queue_type_fixup): New function.
18999         (gimple_types_compatible_p): Queue type fixups instead of
19000         applying them here.
19001         (gimple_register_type): Apply queued fixups for the
19002         canonical type.  Empty the type fixup queue.
19003
19004 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19005
19006         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
19007         * configure: Regenerate.
19008         * config.in: Ditto.
19009
19010 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19011             Denys Vlasenko  <dvlasenk@redhat.com>
19012             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19013
19014         PR tree-optimization/28632
19015         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
19016         (extract_range_from_binary_expr): Further optimize
19017         BIT_AND_EXPR and BIT_IOR_EXPR.
19018
19019 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
19020
19021         * tree-if-conv.c (fold_or_predicates): New.
19022         (add_to_predicate_list): Call it.
19023
19024 2010-07-09  Richard Guenther  <rguenther@suse.de>
19025
19026         PR middle-end/44890
19027         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
19028         if base is a pointer.
19029         * tree-cfg.c (verify_expr): Update MEM_REF checking.
19030
19031 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19032
19033         PR target/44877
19034         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
19035         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
19036         builtin mask for load/store builtins.
19037
19038 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19039
19040         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
19041         for "lock addl".
19042         * configure: Regenerate.
19043         * config/i386/i386.c (ix86_print_operand) <case ';'>:
19044         Remove TARGET_MACHO.
19045
19046 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
19047
19048         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
19049         default ISA flags.
19050         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
19051
19052 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
19053
19054         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
19055
19056 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19057
19058         * config/picochip/picochip.md (commsTestPort): Emit more
19059         efficient sequence for tstport instruction.
19060
19061 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19062
19063         * config/i386/i386.c (ix86_veclib_handler): Make static.
19064
19065 2010-07-09  Richard Guenther  <rguenther@suse.de>
19066
19067         PR tree-optimization/44852
19068         * tree-ssa-alias.c: Include toplev.h for exact_log2.
19069         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
19070         in MEM_REF.
19071         (indirect_refs_may_alias_p): Likewise.
19072         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
19073
19074 2010-07-09  Richard Guenther  <rguenther@suse.de>
19075
19076         PR tree-optimization/44882
19077         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
19078         sets do conflict.
19079         (vectorizable_load): Likewise.
19080
19081 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19082
19083         PR target/40657
19084         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
19085         All callers changed.
19086         Handle the case when we're called for the epilogue.
19087         (thumb_unexpanded_epilogue): Use it.
19088         (thumb1_expand_epilogue): Likewise.
19089
19090 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19091
19092         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
19093         both ranges are range_int_cst_p with non-negative minimum,
19094         try harder to derive smaller range.
19095
19096 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19097
19098         * genrecog.c: Include diagnostic-core.h before toplev.h.
19099         * genoutput.c: Likewise.
19100         * genextract.c: Likewise.
19101         * genautomata.c: Likewise.
19102         * genemit.c: Likewise.
19103         * genpeep.c: Likewise.
19104         * genattrtab.c: Likewise.
19105         * genconditions.c: Likewise.
19106         * genpreds.c: Likewise.
19107
19108 2010-07-08  Andi Kleen  <ak@linux.intel.com>
19109
19110         * lto-section-in.c (lto_section_name): Add missing comma.
19111
19112 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
19113
19114         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
19115         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
19116         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
19117         (ia64_override_options): Rename to...
19118         (ia64_option_override): ... this one. Make static.
19119
19120 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19121
19122         PR middle-end/44843
19123         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
19124         pointed-to type of the offset in a MEM_REF to compute the alignment.
19125
19126 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
19127
19128         * final.c (final_scan_insn): Replace
19129         TARGET_UNWIND_INFO macro check by unwind_emit
19130         hook NULL check.
19131         * targhooks.c (default_unwind_emit): Removed.
19132         * targhooks.h (default_unwind_emit): Likewise.
19133         * target.def (unwind_emit): Set default value to NULL.
19134
19135         * config/i386/i386-protos.h (ix86_asm_output_function_label):
19136         New prototype.
19137         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
19138         for NULL fntype argument and allow 64-bit targets.
19139         (ix86_asm_output_function_label): New function.
19140         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
19141         (ix86_handle_fndecl_attribute): Likewise.
19142         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
19143         * doc/doc/tm.texi: Regenerated.
19144         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
19145         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
19146         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
19147         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
19148         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19149         * config/elfos.h: Likewise.
19150         * config/i386/cygming.h: Likewise.
19151         * config/netbsd-aout.h: Likewise.
19152         * config/openbsd.h: Likewise.
19153         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
19154         by ix86_asm_output_function_label function call.
19155         * varasm.c (assemble_start_function): Use
19156         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19157
19158 2010-07-08  Jan Hubicka  <jh@suse.cz>
19159
19160         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
19161         New function.
19162         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
19163         Declare.
19164         * ipa-cp.c (ipcp_estimate_growth): Use it.
19165         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
19166         Likewise.
19167
19168 2010-07-08  Jan Hubicka  <jh@suse.cz>
19169
19170         * tree-inline.c (declare_return_variable): Allocate annotation for new
19171         temporary.
19172
19173 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19174
19175         PR tree-optimization/44710
19176         * tree-if-conv.c (parse_predicate): New.
19177         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
19178         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
19179
19180 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19181
19182         * common.opt (ftree-loop-if-convert): New flag.
19183         * doc/invoke.texi (ftree-loop-if-convert): Documented.
19184         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
19185         when flag_tree_loop_if_convert is set.
19186
19187 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
19188
19189         * config/i386/i386.c: Use short syntax for function calls
19190         through function pointers.
19191         * config/i386/i386.md: Ditto.
19192
19193 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19194
19195         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
19196
19197 2010-07-08  Richard Guenther  <rguenther@suse.de>
19198
19199         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
19200         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
19201
19202 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
19203
19204         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
19205         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
19206         (loc_list_from_tree): Likewise.
19207         (output_loc_operands): Handle outputting DW_OP_const[48]u
19208         with loc->dtprel set.
19209         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
19210
19211 2010-07-08  Jan Hubicka  <jh@suse.cz>
19212
19213         * ipa.c: Include pointer-set.h
19214         (cgraph_externally_visible_p): New attribute ALIASED;
19215         when in LTO, hidden symbols are local unless they are aliased.
19216         (function_and_variable_visibility): Compute aliased nodes;
19217         handle LTO and hidden symbol on functions and vars.
19218         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
19219         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
19220
19221 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19222
19223         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19224         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19225         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19226         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19227         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19228         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
19229         (ix86_gen_probe_stack_range): Likewise.
19230         (override_options): Set them.
19231         (ix86_target_stack_probe): New function.
19232         (ix86_compute_frame_layout): Force use of push instructions to
19233         save registers if stack checking with probes is enabled.
19234         (get_scratch_register_on_entry): New function.
19235         (release_scratch_register_on_entry): Likewise.
19236         (ix86_adjust_stack_and_probe): Likewise.
19237         (output_adjust_stack_and_probe): Likewise.
19238         (ix86_emit_probe_stack_range): Likewise.
19239         (output_probe_stack_range): Likewise.
19240         (ix86_expand_prologue): Emit stack checking code if static built-in
19241         stack checking is enabled.
19242         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
19243         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
19244         (output_adjust_stack_and_probe): Likewise.
19245         (output_probe_stack_range): Likewise.
19246         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19247         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
19248         TARGET_STACK_PROBE.
19249         (allocate_stack_worker_64): Likewise.
19250         (allocate_stack): Likewise.
19251         (adjust_stack_and_probe): New insn.
19252         (probe_stack_range): Likewise.
19253
19254 2010-07-08  Richard Guenther  <rguenther@suse.de>
19255
19256         PR tree-optimization/44831
19257         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
19258         a MEM_REF preserving TBAA info of the original dereference.
19259         Dereference the original pointer if the address is not invariant.
19260         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
19261         at least one invariant address that we are going to dereference.
19262
19263 2010-07-08  Richard Guenther  <rguenther@suse.de>
19264
19265         PR tree-optimization/44861
19266         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
19267         information when building MEM_REFs.
19268         (vectorizable_load): Likewise.
19269         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
19270
19271 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19272
19273         * config/sol2-c.c: Do not include diagnostic-core.h.
19274
19275 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19276
19277         PR bootstrap/44768
19278         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
19279         with respect to current_function_decl. Pass decl of the function.
19280         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
19281         * ipa-inline.c (compute_inline_parameters): Pass decl to
19282         estimated_stack_frame_size.
19283
19284 2010-07-08  Richard Guenther  <rguenther@suse.de>
19285
19286         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19287         New function.
19288         (valueize_refs): Call it.
19289
19290 2010-07-08  Richard Guenther  <rguenther@suse.de>
19291
19292         PR rtl-optimization/44838
19293         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
19294         SSA form do not use pointer equivalence.
19295
19296 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19297
19298         * dwarf2out.c (AT_linkage_name): Delete.
19299         (add_linkage_attr): New function.
19300         (add_linkage_name): Call it to emit the linkage attribute.
19301         (dwarf2out_finish): Likewise.
19302         (move_linkage_attr): Explicitly accept both attribute variants.
19303
19304 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19305
19306         * toplev.h: Do not include diagnostic-core.h.
19307         Include diagnostic-core.h in every file that includes toplev.h.
19308         * c-tree.h: Do not include toplev.h.
19309         * pretty-print.h: Update comment.
19310         * Makefile.in: Update dependencies.
19311         * alias.c: Include diagnostic-core.h in every file that includes
19312         toplev.h.
19313         * attribs.c: Likewise.
19314         * auto-inc-dec.c: Likewise.
19315         * bb-reorder.c: Likewise.
19316         * bt-load.c: Likewise.
19317         * caller-save.c: Likewise.
19318         * calls.c: Likewise.
19319         * cfg.c: Likewise.
19320         * cfganal.c: Likewise.
19321         * cfgbuild.c: Likewise.
19322         * cfgcleanup.c: Likewise.
19323         * cfghooks.c: Likewise.
19324         * cfgloop.c: Likewise.
19325         * combine.c: Likewise.
19326         * config/alpha/alpha.c: Likewise.
19327         * config/arc/arc.c: Likewise.
19328         * config/arm/arm.c: Likewise.
19329         * config/arm/pe.c: Likewise.
19330         * config/avr/avr.c: Likewise.
19331         * config/bfin/bfin.c: Likewise.
19332         * config/cris/cris.c: Likewise.
19333         * config/crx/crx.c: Likewise.
19334         * config/darwin-c.c: Likewise.
19335         * config/darwin.c: Likewise.
19336         * config/fr30/fr30.c: Likewise.
19337         * config/frv/frv.c: Likewise.
19338         * config/h8300/h8300.c: Likewise.
19339         * config/host-darwin.c: Likewise.
19340         * config/i386/i386.c: Likewise.
19341         * config/i386/netware.c: Likewise.
19342         * config/i386/nwld.c: Likewise.
19343         * config/i386/winnt-cxx.c: Likewise.
19344         * config/i386/winnt-stubs.c: Likewise.
19345         * config/i386/winnt.c: Likewise.
19346         * config/ia64/ia64-c.c: Likewise.
19347         * config/ia64/ia64.c: Likewise.
19348         * config/iq2000/iq2000.c: Likewise.
19349         * config/lm32/lm32.c: Likewise.
19350         * config/m32c/m32c-pragma.c: Likewise.
19351         * config/m32c/m32c.c: Likewise.
19352         * config/m32r/m32r.c: Likewise.
19353         * config/m68hc11/m68hc11.c: Likewise.
19354         * config/m68k/m68k.c: Likewise.
19355         * config/mcore/mcore.c: Likewise.
19356         * config/mep/mep-pragma.c: Likewise.
19357         * config/mep/mep.c: Likewise.
19358         * config/mmix/mmix.c: Likewise.
19359         * config/mn10300/mn10300.c: Likewise.
19360         * config/moxie/moxie.c: Likewise.
19361         * config/pa/pa.c: Likewise.
19362         * config/pdp11/pdp11.c: Likewise.
19363         * config/picochip/picochip.c: Likewise.
19364         * config/rs6000/rs6000-c.c: Likewise.
19365         * config/rs6000/rs6000.c: Likewise.
19366         * config/rx/rx.c: Likewise.
19367         * config/s390/s390.c: Likewise.
19368         * config/score/score.c: Likewise.
19369         * config/score/score3.c: Likewise.
19370         * config/score/score7.c: Likewise.
19371         * config/sh/sh.c: Likewise.
19372         * config/sh/symbian-base.c: Likewise.
19373         * config/sh/symbian-c.c: Likewise.
19374         * config/sh/symbian-cxx.c: Likewise.
19375         * config/sol2-c.c: Likewise.
19376         * config/sol2.c: Likewise.
19377         * config/sparc/sparc.c: Likewise.
19378         * config/spu/spu.c: Likewise.
19379         * config/stormy16/stormy16.c: Likewise.
19380         * config/v850/v850-c.c: Likewise.
19381         * config/v850/v850.c: Likewise.
19382         * config/vax/vax.c: Likewise.
19383         * config/vxworks.c: Likewise.
19384         * config/xtensa/xtensa.c: Likewise.
19385         * convert.c: Likewise.
19386         * cse.c: Likewise.
19387         * cselib.c: Likewise.
19388         * dbgcnt.c: Likewise.
19389         * dbxout.c: Likewise.
19390         * ddg.c: Likewise.
19391         * dominance.c: Likewise.
19392         * emit-rtl.c: Likewise.
19393         * explow.c: Likewise.
19394         * expmed.c: Likewise.
19395         * fixed-value.c: Likewise.
19396         * fold-const.c: Likewise.
19397         * fwprop.c: Likewise.
19398         * gcse.c: Likewise.
19399         * ggc-common.c: Likewise.
19400         * ggc-page.c: Likewise.
19401         * ggc-zone.c: Likewise.
19402         * gimple-low.c: Likewise.
19403         * gimplify.c: Likewise.
19404         * graph.c: Likewise.
19405         * haifa-sched.c: Likewise.
19406         * ifcvt.c: Likewise.
19407         * implicit-zee.c: Likewise.
19408         * integrate.c: Likewise.
19409         * ira-build.c: Likewise.
19410         * ira-color.c: Likewise.
19411         * ira-conflicts.c: Likewise.
19412         * ira-costs.c: Likewise.
19413         * ira-lives.c: Likewise.
19414         * ira.c: Likewise.
19415         * lists.c: Likewise.
19416         * loop-doloop.c: Likewise.
19417         * loop-iv.c: Likewise.
19418         * lto-opts.c: Likewise.
19419         * lto-symtab.c: Likewise.
19420         * main.c: Likewise.
19421         * modulo-sched.c: Likewise.
19422         * optabs.c: Likewise.
19423         * params.c: Likewise.
19424         * plugin.c: Likewise.
19425         * postreload-gcse.c: Likewise.
19426         * postreload.c: Likewise.
19427         * predict.c: Likewise.
19428         * profile.c: Likewise.
19429         * real.c: Likewise.
19430         * regcprop.c: Likewise.
19431         * reginfo.c: Likewise.
19432         * regmove.c: Likewise.
19433         * reorg.c: Likewise.
19434         * resource.c: Likewise.
19435         * rtl.c: Likewise.
19436         * rtlanal.c: Likewise.
19437         * sched-deps.c: Likewise.
19438         * sched-ebb.c: Likewise.
19439         * sched-rgn.c: Likewise.
19440         * sdbout.c: Likewise.
19441         * sel-sched-dump.c: Likewise.
19442         * sel-sched-ir.c: Likewise.
19443         * simplify-rtx.c: Likewise.
19444         * stmt.c: Likewise.
19445         * stor-layout.c: Likewise.
19446         * store-motion.c: Likewise.
19447         * targhooks.c: Likewise.
19448         * tree-cfg.c: Likewise.
19449         * tree-cfgcleanup.c: Likewise.
19450         * tree-dump.c: Likewise.
19451         * tree-eh.c: Likewise.
19452         * tree-inline.c: Likewise.
19453         * tree-nomudflap.c: Likewise.
19454         * tree-object-size.c: Likewise.
19455         * tree-optimize.c: Likewise.
19456         * tree-outof-ssa.c: Likewise.
19457         * tree-phinodes.c: Likewise.
19458         * tree-profile.c: Likewise.
19459         * tree-ssa-ccp.c: Likewise.
19460         * tree-ssa-coalesce.c: Likewise.
19461         * tree-ssa-live.c: Likewise.
19462         * tree-ssa-loop-niter.c: Likewise.
19463         * tree-ssa-loop-prefetch.c: Likewise.
19464         * tree-ssa-loop.c: Likewise.
19465         * tree-ssa-structalias.c: Likewise.
19466         * tree-ssa-uninit.c: Likewise.
19467         * tree-ssa.c: Likewise.
19468         * tree-vect-data-refs.c: Likewise.
19469         * tree-vect-loop-manip.c: Likewise.
19470         * tree-vect-loop.c: Likewise.
19471         * tree-vect-patterns.c: Likewise.
19472         * tree-vect-stmts.c: Likewise.
19473         * tree-vrp.c: Likewise.
19474         * varasm.c: Likewise.
19475         * vec.c: Likewise.
19476         * web.c: Likewise.
19477         * xcoffout.c: Likewise.
19478
19479 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
19480
19481         * gengtype.c (write_field_root): New function.
19482         (write_root): Use it.
19483
19484 2010-07-07  Wei Guozhi  <carrot@google.com>
19485
19486         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19487         of lowest bits to lshift/compare): Add a missing line.
19488
19489 2010-07-07  Wei Guozhi  <carrot@google.com>
19490
19491         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19492         of lowest bits to lshift/compare): New.
19493
19494 2010-07-07  Tom Tromey  <tromey@redhat.com>
19495
19496         * doc/tm.texi: Update.
19497         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
19498         Add @hook.
19499         * target.def (want_debug_pub_sections): New hook.
19500         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
19501         * dwarf2out.c (add_pubname_string): Check
19502         targetm.want_debug_pub_sections.
19503         (add_pubname): Likewise.
19504         (add_pubtype): Likewise.
19505
19506 2010-07-07  Jie Zhang  <jie@codesourcery.com>
19507
19508         * genautomata.c (output_automata_list_min_issue_delay_code):
19509         Correctly decompress min_issue_delay.
19510
19511 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
19512
19513         PR rtl-optimization/44404
19514         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
19515         possible, use reg_overlap_mentioned_p instead.
19516
19517 2010-07-07  Duncan Sands  <baldrick@free.fr>
19518
19519         PR middle-end/41355
19520         * tree.c (build_function_type_skip_args): Copy the original type using
19521         build_distinct_type_copy rather than copy_node.
19522
19523 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
19524
19525         PR target/44850
19526         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
19527         revision 161876.
19528         (ix86_expand_prologue): Likewise.
19529         (ix86_handle_fndecl_attribute): Likewise.
19530         (ix86_asm_declare_function_name): Likewise.
19531         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19532         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19533         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
19534         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
19535         * doc/extend.texi: Likewise.
19536
19537 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
19538
19539         PR target/44844
19540         * config/i386/i386.md (rdrand<mode>): Changed to expand to
19541         retry if the carry flag isn't valid.
19542         (rdrand<mode>_1): New.
19543
19544 2010-07-07  Richard Guenther  <rguenther@suse.de>
19545
19546         PR middle-end/44790
19547         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
19548         for expanding the constant offset for MEM_REFs.
19549
19550 2010-07-07  Richard Guenther  <rguenther@suse.de>
19551
19552         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
19553         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
19554         * gimple.h (is_gimple_operand): Remove.
19555         * gimple.c (is_gimple_operand): Likewise.
19556         (walk_gimple_op): Fix wi->val_only setting for calls.
19557         * tree-cfg.c (verify_gimple_call): Fix argument validation.
19558         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
19559         invalid gimple calls.
19560
19561 2010-07-06  Jan Hubicka  <jh@suse.cz>
19562
19563         * lto-cgraph.c (output_cgraph): Add missing declaration.
19564
19565 2010-07-06  Jan Hubicka  <jh@suse.cz>
19566
19567         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
19568         partition.
19569
19570 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
19571
19572         * doc/gimple.texi (GIMPLE_DEBUG): Document.
19573         * doc/rtl.texi (Debug Information): New node.
19574         (NOTE_INSN_VAR_LOCATION): Document.
19575         (debug_insn): Likewise.
19576         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
19577
19578 2010-07-07  Jan Hubicka  <jh@suse.cz>
19579
19580         With parts by Richard Guenther.
19581
19582         PR middle-end/44813
19583         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
19584         for functions passed by reference.
19585         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
19586         in memory when passed by reference.
19587         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
19588         beggining.
19589         * ipa-split.c (split_function): Cleanup way return value is passed;
19590         handle SSA DECL_BY_REFERENCE retvals.
19591         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
19592         DECL_BY_REFERENCE is set.
19593         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
19594         find_what_p_points_to): Handle RESULT_DECL.
19595         * tree-inline.c (declare_return_variable): Get new entry_block argument;
19596         when passing by reference ensure that RESULT_DECL is gimple_val.
19597         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
19598         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
19599
19600 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
19601
19602         PR rtl-optimization/44787
19603         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
19604         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
19605
19606 2010-07-06  Jan Hubicka  <jh@suse.cz>
19607
19608         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
19609         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
19610         with body can prevail.
19611         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
19612         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
19613         * cgraph.c (cgraph_get_node_or_alias): New function.
19614         * cgraph.h (cgraph_get_node_or_alias): Declare.
19615
19616 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
19617
19618         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
19619         support.
19620         (ix86_expand_prologue): Likewise.
19621         (ix86_handle_fndecl_attribute): Likewise.
19622         (ix86_asm_declare_function_name): New function for
19623         ASM_DECLARE_FUNCTION_NAME.
19624         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
19625         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
19626         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
19627         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
19628         * doc/extend.texi: Adjust documentation about ms_hook_prologue
19629         attribute.
19630
19631 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19632
19633         * config/i386/i386.md (immediate_operand): New mode attribute.
19634
19635         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
19636         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
19637         using P mode iterator.
19638         (pro_epilogue_adjust_stack_di_2): Rename from
19639         pro_epilogue_adjust_stack_rex64_2.
19640
19641         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
19642
19643 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19644
19645         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
19646         through gen_mov_insv_1 function pointer.
19647         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
19648         gen_truncxf<mode>2 through gen_truncxf function pointer.
19649         (remainder<mode>3): Ditto.
19650         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
19651         (allocate_stack): Call gen_allocate_stack_worker_64 or
19652         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
19653         function pointer.
19654         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
19655         function pointer.
19656
19657 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19658
19659         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
19660         operand constraint instead of <r><i>m.
19661
19662 2010-07-06  Richard Guenther  <rguenther@suse.de>
19663
19664         PR middle-end/44828
19665         * convert.c (convert_to_integer): Watch out for overflowing
19666         MULT_EXPR as well.
19667
19668 2010-07-05  Jan Hubicka  <jh@suse.cz>
19669
19670         * lto-streamer.c (write_symbol_vec): Rename to ...
19671         (write_symbol) ... this one; write only symbol given and when
19672         present in cache. Sanity check that what is defined is present
19673         in cgraph/varpool with body/finalized decl.
19674         (write_symbols_of_kind): Remove.
19675         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
19676         pairs to produce symtab.
19677         (produce_asm_for_decls): Update call of produce_symtab; don't do so
19678         when doing WPA streaming.
19679
19680 2010-07-05  Jan Hubicka  <jh@suse.cz>
19681
19682         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
19683         function is still available to fold into.
19684
19685 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19686
19687         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
19688         * function.h (struct_function): Change type of local_decls field
19689         to a VEC.
19690         (add_local_decl): New function.
19691         (FOR_EACH_LOCAL_DECL): New macro.
19692         * cfgexpand.c (init_vars_expansion): Adjust for new type of
19693         cfun->local_decls.
19694         (estimated_stack_frame_size): Likewise.
19695         (expand_used_vars): Likewise.
19696         * cgraphbuild.c (build_cgraph_edges): Likewise.
19697         * function.c (instantiate_decls_1): Likewise.
19698         * ipa-struct-reorg.c (build_data_structure): Likewise.
19699         * ipa-type-escape.c (analyze_function): Likewise.
19700         * lto-streamer-in.c (input_function): Likewise.
19701         * lto-streamer-out.c (output_function): Likewise.
19702         * tree-ssa-live.c (remove_unused_locals): Likewise.
19703         * tree.c (free_lang_data_in_decl): Likewise.
19704         (find_decls_types_in_node): Likewise.
19705         * omp-low.c (remove_exit_barrier): Likewise.
19706         (expand_omp_taskreg): Likewise.
19707         (list2chain): Rename to...
19708         (vec2chain): ...this.  Adjust.
19709         * cgraphunit.c (assemble_thunk): Call add_local_decl.
19710         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
19711         * gimple-low.c (record_vars_into): Likewise.
19712         * tree-inline.c (remap_decls): Likewise.
19713         (declare_return_variable): Likewise.
19714         (declare_inline_vars): Likewise.
19715         (copy_forbidden): Adjust for new type of cfun->local_decls.
19716         (add_local_variables): New function.
19717         (expand_call_inline): Call it.
19718         (tree_function_versioning): Likewise.
19719
19720 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19721
19722         AVX Programming Reference (June, 2010)
19723         * config/i386/cpuid.h (bit_F16C): New.
19724         (bit_RDRND): Likewise.
19725         (bit_FSGSBASE): Likewise.
19726
19727         * config/i386/i386-builtin-types.def: Add
19728         "DEF_FUNCTION_TYPE (UINT16)", function types for
19729         float16 <-> float conversions and
19730         "DEF_FUNCTION_TYPE (VOID, UINT64)".
19731
19732         * config/i386/i386-c.c (ix86_target_macros_internal): Support
19733         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
19734         OPTION_MASK_ISA_F16C.
19735
19736         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
19737         (OPTION_MASK_ISA_RDRND_SET): Likewise.
19738         (OPTION_MASK_ISA_F16C_SET): Likewise.
19739         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
19740         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
19741         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
19742         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
19743         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
19744         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
19745         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
19746         (override_options): Handle them.
19747         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
19748         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
19749         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
19750         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
19751         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
19752         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
19753         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
19754         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
19755         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
19756         (bdesc_args): Likewise.
19757         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
19758         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
19759         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
19760         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
19761         Handle non-memory store.
19762
19763         * config/i386/i386.h (TARGET_FSGSBASE): New.
19764         (TARGET_RDRND): Likewise.
19765         (TARGET_F12C): Likewise.
19766
19767         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
19768         (UNSPEC_VCVTPS2PH): Likewise.
19769         (UNSPECV_RDFSBASE): Likewise.
19770         (UNSPECV_RDGSBASE): Likewise.
19771         (UNSPECV_WRFSBASE): Likewise.
19772         (UNSPECV_WRGSBASE): Likewise.
19773         (UNSPECV_RDRAND): Likewise.
19774         (rdfsbase<mode>): Likewise.
19775         (rdgsbase<mode>): Likewise.
19776         (wrfsbase<mode>): Likewise.
19777         (wrgsbase<mode>): Likewise.
19778         (rdrand<mode>): Likewise.
19779
19780         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
19781
19782         * config/i386/immintrin.h (_rdrand_u16): New.
19783         (_rdrand_u32): Likewise.
19784         (_readfsbase_u32): Likewise.
19785         (_readfsbase_u64): Likewise.
19786         (_readgsbase_u32): Likewise.
19787         (_readgsbase_u64): Likewise.
19788         (_writefsbase_u32): Likewise.
19789         (_writefsbase_u64): Likewise.
19790         (_writegsbase_u32): Likewise.
19791         (_writegsbase_u64): Likewise.
19792         (_rdrand_u64): Likewise.
19793         (_cvtsh_ss): Likewise.
19794         (_mm_cvtph_ps): Likewise.
19795         (_mm256_cvtph_ps): Likewise.
19796         (_cvtss_sh): Likewise.
19797         (_mm_cvtps_ph): Likewise.
19798         (_mm256_cvtps_ph): Likewise.
19799
19800         * config/i386/sse.md (vcvtph2ps): New.
19801         (*vcvtph2ps_load): Likewise.
19802         (vcvtph2ps256): Likewise.
19803         (vcvtps2ph): Likewise.
19804         (*vcvtps2ph): Likewise.
19805         (*vcvtps2ph_store): Likewise.
19806         (vcvtps2ph256): Likewise.
19807
19808         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
19809
19810         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
19811
19812 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
19813
19814         PR bootstrap/44512
19815         * genenums.c (main): Output include of insn-constants.h
19816         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
19817
19818 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
19819
19820         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
19821         (override_options): Initialize it.
19822         (ix86_expand_prologue): Use it.
19823
19824 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
19825
19826         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
19827
19828 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
19829
19830         * double-int.h (fit_double_type): Remove declaration.
19831         * double-int.c (fit_double_type): Remove function.
19832         * tree.h (int_fits_type_p): Adjust prototype.
19833         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
19834         instead of fit_double_type.
19835         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
19836         instead of fit_double_type and build_int_cst_wide.
19837         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
19838         instead of fit_double_type and build_int_cst_wide.
19839         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
19840         of fit_double_type.
19841
19842 2010-07-05  Jan Hubicka  <jh@suse.cz>
19843
19844         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
19845         in_other_partition.
19846         * lto-cgraph.c (referenced_from_other_partition_p,
19847         reachable_from_other_partition_p): Use in_other_partition flags.
19848         (output_node, output_varpool_node): COMDAT nodes always have private
19849         copies and thus are never used from other partition.
19850
19851 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
19852
19853         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19854         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
19855         * config/ia64/ia64.c Include reload.h.
19856         (ia64_memory_move_cost): New function.
19857         (TARGET_MEMORY_MOVE_COST): Define.
19858         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
19859         memory_move_cost.
19860
19861 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
19862
19863         PR middle-end/42505
19864         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
19865         comments about cost model.
19866         (try_add_cand_for):  Add second strategy for choosing initial set
19867         based on original IVs, controlled by ORIGINALP argument.
19868         (get_initial_solution): Add ORIGINALP argument.
19869         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
19870         (find_optimal_iv_set): Try two different strategies for choosing
19871         the IV set, and return the one with lower cost.
19872
19873 2010-07-05  Richard Guenther  <rguenther@suse.de>
19874
19875         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
19876
19877 2010-07-05  Richard Guenther  <rguenther@suse.de>
19878
19879         * tree.c (reference_alias_ptr_type): New function.
19880         * tree.h (reference_alias_ptr_type): Declare.
19881         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
19882         allow non-TARGET_MEM_REF new refs.
19883         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
19884         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
19885         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
19886         (create_mem_ref): Get alias pointer type.  Adjust calls to
19887         create_mem_ref_raw.
19888         (maybe_fold_tmr): Likewise.
19889         * tree-flow.h (create_mem_ref): Adjust prototype.
19890
19891 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
19892
19893         PR c++/44808
19894         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
19895         *from_p is VAR_DECL.
19896
19897 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19898
19899         * tree.h (build_call_list): Remove.
19900         * tree.c (build_call_list): Remove.
19901
19902 2010-07-05  Richard Guenther  <rguenther@suse.de>
19903
19904         * double-int.h (double_int_sub): Declare.
19905         * double-int.c (double_int_sub): New function.
19906         * dwarf2out.c (field_byte_offset): Use it.
19907         * fixed-value.c (do_fixed_add): Likewise.
19908         (do_fixed_multiply): Likewise.
19909         (do_fixed_divide): Likewise.
19910         * tree-predcom.c (add_ref_to_chain): Likewise.
19911         (determine_roots_comp): Likewise.
19912         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19913
19914 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19915
19916         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
19917         implementations.
19918
19919 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
19920
19921         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
19922         * arm-modes.def (CC_NOTB): Don't define.
19923         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
19924         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
19925         (LTUGEU): New code_iterator.
19926         (cnb, optab): New corresponding code_attrs.
19927         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
19928         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
19929         using LTUGEU.
19930         (addsi3_carryin_shift_<optab>): Likewise.
19931         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
19932         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
19933         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
19934         (subsi3_compare): Renamed from subsi3_compare0_c.
19935         Change CC_NOTB to CC.
19936         (arm_subsi3_insn): Allow constants for operand 0.
19937         (compare_scc peephole for eq case): New.
19938         (compare_scc splitters): Change CC_NOTB to CC.
19939
19940 2010-07-05  Richard Guenther  <rguenther@suse.de>
19941
19942         * tree-ssa-loop-im.c (for_each_index): Do not handle
19943         ALIGN_INDIRECT_REF.
19944         (gen_lsm_tmp_name): Likewise.
19945         * tree-dump.c (dequeue_and_dump): Likewise.
19946         * tree-pretty-print.c (dump_generic_node): Likewise.
19947         (op_code_prio): Likewise.
19948         (op_symbol_code): Likewise.
19949         * tree.c (staticp): Likewise.
19950         (build1_stat): Likewise.
19951         * tree.h (INDIRECT_REF_P): Likewise.
19952         * fold-const.c (maybe_lvalue_p): Likewise.
19953         (operand_equal_p): Likewise.
19954         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19955         (ao_ref_init_from_vn_reference): Likewise.
19956         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
19957         (find_interesting_uses_address): Likewise.
19958         * dwarf2out.c (loc_list_from_tree): Likewise.
19959         * gimplify.c (gimplify_expr): Likewise.
19960         * tree-eh.c (tree_could_trap_p): Likewise.
19961         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19962         * cfgexpand.c (expand_debug_expr): Likewise.
19963         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19964         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
19965         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
19966         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
19967         * tree-ssa-operands.c (get_expr_operands): Likewise.
19968         * expr.c (safe_from_p): Likewise.
19969         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
19970         * tree-vect-data-refs.c (vect_setup_realignment): Build
19971         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
19972         * tree-vect-stmts.c (vectorizable_load): Likewise.
19973         * tree.def (ALIGN_INDIRECT_REF): Remove.
19974
19975 2010-07-05  Richard Guenther  <rguenther@suse.de>
19976
19977         PR tree-optimization/44784
19978         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
19979         for inserted stmts.
19980         (find_or_generate_expression): Fix SCCVN insertion check.
19981
19982 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
19983
19984         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
19985         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
19986         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
19987         directives.
19988
19989 2010-07-05  Ira Rosen  <irar@il.ibm.com>
19990
19991         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
19992         statements that are not vectorized.
19993         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
19994         in INSIDE_COST.
19995
19996 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
19997
19998         PR bootstrap/44820
19999         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20000
20001 2010-07-05  Richard Guenther  <rguenther@suse.de>
20002
20003         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
20004         RESULT_DECLs properly.
20005
20006 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20007
20008         PR rtl-optimization/44695
20009         * config/i386/i386.md (extract_code): Removed.
20010         (<u>divmodqi4): Likewise.
20011         (divmodqi4): New.
20012         (udivmodqi4): Likewise.
20013         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
20014         (udivmodhiqi3): Likewise.
20015
20016 2010-07-04  Jan Hubicka  <jh@suse.cz>
20017
20018         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
20019
20020 2010-07-04  Jan Hubicka  <jh@suse.cz>
20021
20022         * cgraphunit.c (init_cgraph): Only initialize dump file if it
20023         is not already initialized.
20024
20025 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20026
20027         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
20028         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
20029         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
20030         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
20031         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
20032         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
20033         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
20034         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
20035         (sync_new_nand_optab): Redefine as macros.
20036         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
20037         Delete.
20038         (direct_optab_index): New enum.
20039         (direct_optab_d): New structure.
20040         (direct_optab): New typedef.
20041         (direct_optab_table): Declare.
20042         (direct_optab_handler, set_direct_optab_handler): New functions.
20043         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20044         (sync_lock_release_optab): New macros.
20045         * optabs.c (direct_optab_table): New variable.
20046         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
20047         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
20048         cmpstr_optab and cmpstrn_optab.
20049         (emit_conditional_move): Likewise for movcc_optab.
20050         (can_conditionally_move_p): Likewise for movcc_gen_code.
20051         (init_insn_codes): Clear direct_optab_table.
20052         (init_optabs): Don't initialize the new "direct optabs" here.
20053         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
20054         vcond_gen_code.
20055         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
20056         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
20057         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
20058         (expand_sync_operation): Likewise other sync_*_optabs.
20059         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
20060         to sync_compare_and_swap_optab.
20061         (expand_sync_lock_test_and_set): Use direct_optab_handler for
20062         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
20063         to the names of both.
20064         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
20065         cmpstr_optab and cmpstrn_optab.
20066         (expand_builtin_lock_release): Likewise sync_lock_release.
20067         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
20068         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
20069         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
20070         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
20071         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
20072         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
20073         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
20074         (sync_lock_test_and_set, sync_lock_release): Delete.
20075         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
20076         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
20077         * genopinit.c (optabs): Use set_direct_optab_handler for the new
20078         macro optabs.
20079         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
20080         the "optab" local variable.  Use direct_optab_handler for optab and
20081         sync_compare_and_swap_optab.
20082         * reload1.c (reload_in_optab, reload_out_optab): Delete.
20083         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
20084         reload_in_optab and reload_out_optab.
20085         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20086         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
20087         * config/pa/pa.c (pa_secondary_reload): Likewise.
20088         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
20089         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
20090         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
20091         (VMSupportsCS8_builtin): Likewise.
20092
20093 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20094
20095         * optabs.h (optab_handlers): Change type of insn_code to int.
20096         (optab_handler, set_optab_handler, convert_optab_handler)
20097         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
20098         CODE_FOR_nothing".
20099         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
20100         (init_insn_codes): Zero both the above arrays.
20101         (init_optabs): Never call init_insn_codes first time around.
20102
20103 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20104
20105         * optabs.h (optab_handler, convert_optab_handler): Turn into
20106         inline functions that return an insn code.
20107         (set_optab_handler, set_convert_optab_handler): New functions.
20108         * builtins.c: Replace optab_handler(X)->insn_code with
20109         optab_handler or set_optab_handler thoughout.  Likewise
20110         convert_optab_handler(X)->insn_code with convert_optab_handler
20111         and set_convert_optab_handler.
20112         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
20113         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
20114         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
20115         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
20116         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
20117         config/spu/spu.c: Likewise.
20118
20119 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20120
20121         PR target/44531
20122         * config.gcc (sh*-*-*): Use regular expressions instead of
20123         the 'i' modifier for sed substitutions.
20124
20125 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
20126
20127         * gimple.c (gimple_body): Comments added.
20128
20129 2010-07-04  Richard Guenther  <rguenther@suse.de>
20130
20131         PR middle-end/44809
20132         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
20133         of an INDIRECT_REF.
20134
20135 2010-07-04  Richard Guenther  <rguenther@suse.de>
20136
20137         PR tree-optimization/44479
20138         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20139         extra SSA name copy statements which preserves points-to
20140         information.
20141         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20142         Copy points-to information for all pointers.  Properly handle
20143         MEM_REFs.
20144         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
20145         copy statements.
20146         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
20147         dependency.
20148
20149 2010-07-04  Richard Guenther  <rguenther@suse.de>
20150
20151         PR middle-end/44785
20152         * tree-inline.c (initialize_inlined_parameters): Do not
20153         re-use pointer-map slot over remap_type call.
20154
20155 2010-07-04  Richard Guenther  <rguenther@suse.de>
20156
20157         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
20158
20159 2010-07-04  Richard Guenther  <rguenther@suse.de>
20160
20161         PR tree-optimization/44656
20162         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
20163         again after value-replacing in the defintions lhs.
20164
20165 2010-07-04  Ira Rosen  <irar@il.ibm.com>
20166             Revital Eres  <eres@il.ibm.com>
20167
20168         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
20169         Document new arguments.
20170         * doc/tm.texi: Regenerate.
20171         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
20172         Handle unaligned store.
20173         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
20174         * target.def (builtin_vectorization_cost): Add new arguments.
20175         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
20176         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
20177         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
20178         (vect_vfa_segment_size): Fix indentation.
20179         * tree-vectorizer.h (struct _vect_peel_info): New.
20180         (struct _vect_peel_extended_info): New.
20181         (struct _loop_vec_info): Add new field for peeling hash table and a
20182         macro for its access.
20183         (VECT_MAX_COST): Define.
20184         (vect_get_load_cost): Declare.
20185         (vect_get_store_cost, vect_get_known_peeling_cost,
20186         vect_get_single_scalar_iteraion_cost): Likewise.
20187         (vect_supportable_dr_alignment): Add new argument.
20188         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
20189         field.
20190         (destroy_loop_vec_info): Free peeling hash table.
20191         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
20192         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
20193         vect_analyze_slp. Fix indentation.
20194         (vect_get_single_scalar_iteraion_cost): New function.
20195         (vect_get_known_peeling_cost): Likewise.
20196         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
20197         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
20198         statement. Move outside cost calculation inside unknown peeling case.
20199         Call vect_get_known_peeling_cost for known amount of peeling.
20200         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
20201         reference to the print message of forced alignment.
20202         (vect_verify_datarefs_alignment): Update call to
20203         vect_supportable_dr_alignment.
20204         (vect_get_data_access_cost): New function.
20205         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
20206         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
20207         vect_peeling_hash_choose_best_peeling): Likewise.
20208         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
20209         to store all the accesses in the loop and find best possible access to
20210         align using peeling for known alignment case. For unknown alignment
20211         check if stores are preferred or if peeling is worthy.
20212         (vect_find_same_alignment_drs): Analyze pairs of loads too.
20213         (vect_supportable_dr_alignment): Add new argument and check aligned
20214         accesses according to it.
20215         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
20216         (cost_for_stmt): Call vect_get_stmt_cost.
20217         (vect_model_simple_cost): Likewise.
20218         (vect_model_store_cost): Call vect_get_stmt_cost. Call
20219         vect_get_store_cost to calculate the cost of the statement.
20220         (vect_get_store_cost): New function.
20221         (vect_model_load_cost): Call vect_get_stmt_cost. Call
20222         vect_get_load_cost to calculate the cost of the statement.
20223         (vect_get_load_cost): New function.
20224         (vectorizable_store): Update call to vect_supportable_dr_alignment.
20225         (vectorizable_load): Likewise.
20226         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
20227         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
20228         arguments. Handle unaligned store.
20229         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
20230         (rs6000_builtin_support_vector_misalignment): Return true for word and
20231         double word alignments for VSX.
20232         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
20233         vect_supportable_dr_alignment and builtin_vectorization_cost.
20234
20235 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20236
20237         PR target/44597
20238         * config/pa/predicates.md (prefetch_cc_operand): Remove.
20239         (prefetch_nocc_operand): Likewise.
20240         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
20241         (prefetch_20): New insn.
20242         (prefetch_cc): Remove.
20243         (prefetch_nocc): Likewise.
20244
20245 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20246
20247         * expr.c (vector_mode_valid_p): Move to c-common.c.
20248         * expr.h (vector_mode_valid_p): Do not declare here.
20249         * system.h: Poison GCC_EXPR_H in front-ends.
20250         * Makefile.in: Update dependencies.
20251
20252 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20253
20254         PR target/44705
20255         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
20256
20257 2010-07-03  Jan Hubicka  <jh@suse.cz>
20258
20259         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
20260         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
20261         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
20262         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
20263         Likewise.
20264
20265         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
20266         Update timevars.V
20267         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
20268         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
20269         TV_IPA_LTO_DECL_OUT): New.
20270         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
20271
20272 2010-07-03  Jan Hubicka  <jh@suse.cz>
20273
20274         * ipa-inline.c (update_edge_key): Break out from ...
20275         update_callers_keys): ... here;
20276         (update_callee_keys): Update only the edges from caller to callee.
20277         (update_all_calle_keys): Do what update_calle_keys did.
20278         (decide_inlining_of_small_functions): Avoid recomputing of all
20279         callees when badness increase.
20280
20281 2010-07-03  Jie Zhang  <jie@codesourcery.com>
20282
20283         * config/arm/arm.c (arm_attr_length_move_neon): New.
20284         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
20285         * config/arm/neon.md (define_mode_attr V_slen): Remove.
20286         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
20287         to compute length attribute.
20288
20289 2010-07-03  Jie Zhang  <jie@codesourcery.com>
20290
20291         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
20292         as predicate for operand 1 and remove its constraint.
20293         * config/arm/predicates.md (vfp_register_operand): New.
20294         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
20295         (*push_fp_multi): Likewise.
20296
20297 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
20298
20299         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
20300
20301 2010-07-03  Jan Hubicka  <jh@suse.cz>
20302
20303         * config/i386/i386.c (override_options): Revert accidental commit.
20304
20305 2010-07-02  Le-Chun Wu  <lcwu@google.com>
20306
20307         PR c++/44128
20308         * doc/invoke.texi: Update documentation of -Wshadow.
20309
20310 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
20311             Julian Brown  <julian@codesourcery.com>
20312             Sandra Loosemore  <sandra@codesourcery.com>
20313
20314         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
20315         comparisons.  Adjust to take both operands.
20316         (arm_select_cc_mode): Handle DImode comparisons.
20317         (arm_gen_compare_reg): Generate a scratch register for DImode
20318         comparisons which require one.  Use xor for Thumb equality checks.
20319         (arm_const_double_by_immediates): New.
20320         (arm_print_operand): Allow 'Q' and 'R' for constants.
20321         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
20322         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
20323         arm_canonicalize_comparison.
20324         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
20325         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
20326         prototype.
20327         (arm_const_double_by_immediates): Declare.
20328         * config/arm/constraints.md (Di): New constraint.
20329         * config/arm/predicates.md (arm_immediate_di_operand)
20330         (arm_di_operand, cmpdi_operand): New.
20331         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
20332         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
20333         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
20334         (cstoredi4): Handle non-Cirrus also.
20335
20336 2010-07-02  Julian Brown  <julian@codesourcery.com>
20337             Sandra Loosemore  <sandra@codesourcery.com>
20338
20339         PR target/43703
20340         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
20341         (smax<mode>3): Disable for NEON float modes when
20342         flag_unsafe_math_optimizations is false.
20343         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
20344         (*mul<mode>3_neon)
20345         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
20346         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
20347         for NEON float modes when flag_unsafe_math_optimizations is false.
20348         (quad_halves_<code>v4sf): Only enable if
20349         flag_unsafe_math_optimizations is true.
20350         * doc/invoke.texi (ARM Options): Add note about floating point
20351         vectorization requiring -funsafe-math-optimizations.
20352
20353 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20354             Julian Brown  <julian@codesourcery.com>
20355
20356         * config/arm/neon.md (UNSPEC_VABA): Delete.
20357         (UNSPEC_VABAL): Delete.
20358         (UNSPEC_VABS): Delete.
20359         (UNSPEC_VMUL_N): Delete.
20360         (adddi3_neon): New.
20361         (subdi3_neon): New.
20362         (mul<mode>3add<mode>_neon): Make the pattern named.
20363         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
20364         (neon_vadd<mode>): Replace with define_expand, and move the remaining
20365         unspec parts...
20366         (neon_vadd<mode>_unspec): ...to this.
20367         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
20368         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
20369         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
20370         (neon_vaba<mode>): Rewrite in terms of vabd.
20371         (neon_vabal<mode>): Rewrite in terms of vabdl.
20372         (neon_vabs<mode>): Rewrite without unspec.
20373         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
20374         (*arm_subdi3): Likewise.
20375         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
20376         No_op attribute to disable assembly output checks.
20377         * config/arm/arm_neon.h: Regenerated.
20378         * doc/arm-neon-intrinsics.texi: Regenerated.
20379
20380 2010-07-02  Jan Hubicka  <jh@suse.cz>
20381
20382         * ipa-split.c (split_function): For aggregate values, set the return
20383         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
20384         *<retval> = fncall.part ().
20385         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
20386
20387 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20388
20389         * config/arm/neon.md (UNSPEC_VAND): Delete.
20390         (UNSPEC_VBIC): Delete.
20391         (UNSPEC_VCLZ): Delete.
20392         (UNSPEC_VCNT): Delete.
20393         (UNSPEC_VEOR): Delete.
20394         (UNSPEC_VORN): Delete.
20395         (UNSPEC_VORR): Delete.
20396         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
20397         core registers too.
20398         (anddi3_neon): Likewise.
20399         (orndi3_neon): Likewise.
20400         (bicdi3_neon): Likewise.
20401         (xordi3_neon): Likewise.
20402         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
20403         rid of unspec and handle unused operand.
20404         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
20405         * config/arm/predicates.md (imm_for_neon_logic_operand):
20406         Require TARGET_NEON.
20407         (imm_for_neon_inv_logic_operand): Likewise.
20408         * config/arm/arm.md (define_split for logical_binary_operator):
20409         Disable for NEON registers.
20410         (anddi3): Add new define_expand, and rename the insn.  Disable
20411         this insn for NEON, where anddi3_neon now applies.
20412         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
20413         (iordi3): As for anddi3.
20414         (xordi3): Likewise.
20415         * config/arm/neon.ml (Vand): Split DImode variants and mark them
20416         as No_op to disable testing for exact instruction match.
20417         (Vorr): Likewise.
20418         (Veor): Likewise.
20419         (Vbic): Likewise.
20420         (Vorn): Likewise.
20421         * config/arm/arm_neon.h: Regenerated.
20422         * doc/arm-neon-intrinsics.texi: Regenerated.
20423
20424 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
20425
20426         * expr.h (emit_stack_probe): Declare.
20427         * explow.c (emit_stack_probe): Make global.
20428         (anti_adjust_stack_and_probe): Fix comments.
20429         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20430         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20431         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20432         * config/sparc/sparc.c: Include except.h.
20433         (sparc_emit_probe_stack_range): New function.
20434         (output_probe_stack_range): Likewise.
20435         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
20436         built-in stack checking is enabled.
20437         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
20438         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20439         (probe_stack_range): New insn.
20440
20441 2010-07-02  Richard Guenther  <rguenther@suse.de>
20442
20443         PR target/43958
20444         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
20445         for argument alignment.
20446
20447 2010-07-02  Jan Hubicka  <jh@suse.cz>
20448
20449         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
20450         walk backwards from entry_bb to check only those basic block of header
20451         that might lead to execution of split part.
20452         (consider_split) ... here.
20453         (find_return_bb): Allow assignment in return BB.
20454         (find_retval): New.
20455         (split_function): Fix name of cloned function; take care of updating
20456         return value in return_bb containing move.
20457
20458 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
20459
20460         PR target/44771
20461         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
20462         used variable insn.
20463
20464 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
20465
20466         * implicit-zee.c (combine_reaching_defs): Fix long lines.
20467         (is_set_with_extension_DI): Delete.
20468         (struct zero_extend_info): New structure.
20469         (add_removable_zero_extend): New function.
20470         (find_removable_zero_extends): Use note_stores to find SETs.
20471         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
20472
20473 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
20474
20475         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
20476         is_miss_rate_acceptable. Pull total_positions computation
20477         out of the loops.  Early return if miss_positions exceeds
20478         the acceptable threshold.
20479         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
20480         is_miss_rate_acceptable after renaming of compute_miss_rate.
20481
20482 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
20483
20484         PR middle-end/44576
20485         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
20486         of 1000) for miss rate if the address diference is greater than or
20487         equal to the cache line size (the two reference will never hit the
20488         same cache line).
20489
20490 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
20491
20492         PR target/42835
20493         * config/arm/arm-modes.def (CC_NOTB): New mode.
20494         * config/arm/arm.c (get_arm_condition_code): Handle it.
20495         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
20496         * config/arm/arm.md (subsi3_compare0_c): New pattern.
20497         (compare_scc): Now a define_and_split.  Add a number of extra
20498         splitters before it.
20499
20500         PR target/42172
20501         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
20502         and ZERO_EXTEND.
20503         (arm_rtx_costs_1): Likewise.
20504         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
20505         * config/arm/arm.md (is_arch6): New attribute.
20506         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
20507         extendqisi2): Tighten the code somewhat, avoiding invalid
20508         RTL to occur in the expander patterns.
20509         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
20510         (thumb1_zero_extendhisi2_v6): Delete.
20511         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
20512         (thumb1_extendhisi2_v6): Delete.
20513         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
20514         (thumb1_extendqisi2_v6): Delete.
20515         (zero_extendhisi2 for register input splitter): New.
20516         (zero_extendqisi2 for register input splitter): New.
20517         (thumb1_extendhisi2 for register input splitter): New.
20518         (extendhisi2 for register input splitter): New.
20519         (extendqisi2 for register input splitter): New.
20520         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
20521         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
20522         and add support for a register alternative requiring a split.
20523         (thumb1_zero_extendqisi2): Likewise.
20524         (arm_zero_extendqisi2): Likewise.
20525         (arm_extendhisi2): Likewise.
20526         (arm_extendqisi2): Likewise.
20527
20528 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20529
20530         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
20531         instead of an unspec.
20532         (neon_expand_vector_init): Likewise.
20533         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
20534         (UNSPEC_VDUP_LANE): Delete.
20535         (UNSPEC VDUP_N): Delete.
20536         (UNSPEC_VGET_HIGH): Delete.
20537         (UNSPEC_VGET_LANE): Delete.
20538         (UNSPEC_VGET_LOW): Delete.
20539         (UNSPEC_VMVN): Delete.
20540         (UNSPEC_VSET_LANE): Delete.
20541         (V_double_vector_mode): New.
20542         (vec_set<mode>_internal): Make code emitted match that for the
20543         corresponding intrinsics.
20544         (vec_setv2di_internal): Likewise.
20545         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
20546         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
20547         (neon_vset_lane<mode>): Combine double and quad patterns and
20548         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
20549         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
20550         (neon_vdup_n<mode>): Rewrite RTL without unspec.
20551         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
20552         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
20553         with neon_vdup_lanev2di, adjusting the pattern from the latter
20554         to be predicable for consistency.
20555         (neon_vdup_lane<mode>_internal): New.
20556         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
20557         to avoid using an unspec.
20558         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
20559         (neon_vdup_lanev2di): Turn into a define_expand.
20560         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
20561         (neon_vget_high<mode>): Replace with....
20562         (neon_vget_highv16qi): New pattern using canonical RTL.
20563         (neon_vget_highv8hi): Likewise.
20564         (neon_vget_highv4si): Likewise.
20565         (neon_vget_highv4sf): Likewise.
20566         (neon_vget_highv2di): Likewise.
20567         (neon_vget_low<mode>): Replace with....
20568         (neon_vget_lowv16qi): New pattern using canonical RTL.
20569         (neon_vget_lowv8hi): Likewise.
20570         (neon_vget_lowv4si): Likewise.
20571         (neon_vget_lowv4sf): Likewise.
20572         (neon_vget_lowv2di): Likewise.
20573
20574         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
20575         test for this emitting vmov.
20576         (Vset_lane): Likewise.
20577         (Vdup_n): Likewise.
20578         (Vmov_n): Likewise.
20579
20580         * doc/arm-neon-intrinsics.texi: Regenerated.
20581
20582 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20583
20584         * config/arm/neon.md (vec_extractv2di): Correct error in register
20585         numbering to reconcile with neon_vget_lanev2di.
20586
20587 2010-07-02  Richard Guenther  <rguenther@suse.de>
20588
20589         * tree-ssa-structalias.c (pt_solution_set_var): New function.
20590         * tree-ssa-alias.h (pt_solution_set_var): Declare.
20591         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
20592         points-to information.
20593
20594 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
20595
20596         * config/s390/s390.c (override_options): Adopt prefetching
20597         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
20598
20599 2010-07-02  Jan Hubicka  <jh@suse.cz>
20600
20601         * df-problems.c (df_kill_notes): Do not collect dead  notes.
20602         (df_set_note): Just call add_reg_note.
20603         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
20604         df_create_unused_note): Do not deal with lists of old notes.
20605         (df_note_bb_compute): Likewise.
20606
20607 2010-07-02  Richard Guenther  <rguenther@suse.de>
20608
20609         * tree-ssa-structalias.c (find_func_aliases): Handle
20610         pointer alignment via BIT_AND_EXPR.
20611         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
20612
20613 2010-07-02  Richard Guenther  <rguenther@suse.de>
20614
20615         * tree-data-ref.c (initialize_data_dependence_relation): Handle
20616         mismatching number of dimensions properly.
20617
20618 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20619
20620         PR target/44707
20621         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
20622         (lo_sum (high ...) ...) patterns generated by earlier passes.
20623
20624 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20625
20626         * doc/install.texi (Prerequisites): Document Perl requirement on
20627         Solaris 2.
20628         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
20629
20630 2010-07-02  Richard Guenther  <rguenther@suse.de>
20631
20632         PR middle-end/44777
20633         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
20634
20635 2010-07-02  Jan Hubicka  <jh@suse.cz>
20636
20637         PR middle-end/44706
20638         * predict.c (predict_paths_for_bb): Handle case when control dependence
20639         BB has only abnormal edges.
20640
20641 2010-07-02  Richard Guenther  <rguenther@suse.de>
20642
20643         PR tree-optimization/44748
20644         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
20645         the embedded conversion in MEM_REFs.
20646
20647 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
20648
20649         * reload.c: Include toplev.h.
20650         * recog.c:  Likewise.
20651         * Makefile.in: Adjust dependencies.
20652
20653 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
20654
20655         PR debug/44694
20656         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
20657         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
20658
20659 2010-07-01  Richard Guenther  <rguenther@suse.de>
20660
20661         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
20662         types for offsets.
20663
20664 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
20665
20666         PR target/44732
20667         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
20668         Fix argument types.
20669
20670 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
20671
20672         PR target/44727
20673         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20674         Make sure operand 0 dies.
20675
20676 2010-07-01  Richard Guenther  <rguenther@suse.de>
20677
20678         PR middle-end/42834
20679         PR middle-end/44468
20680         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
20681         * doc/generic.texi (References to storage): Document MEM_REF.
20682         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
20683         (print_call_name): Likewise.
20684         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
20685         (build_simple_mem_ref_loc): New function.
20686         (mem_ref_offset): Likewise.
20687         * tree.h (build_simple_mem_ref_loc): Declare.
20688         (build_simple_mem_ref): Define.
20689         (mem_ref_offset): Declare.
20690         * fold-const.c: Include tree-flow.h.
20691         (operand_equal_p): Handle MEM_REF.
20692         (build_fold_addr_expr_with_type_loc): Likewise.
20693         (fold_comparison): Likewise.
20694         (fold_unary_loc): Fold
20695         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
20696         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
20697         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
20698         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
20699         (ptr_deref_may_alias_ref_p_1): Likewise.
20700         (ao_ref_base_alias_set): Properly differentiate base object for
20701         offset and TBAA.
20702         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
20703         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
20704         (indirect_refs_may_alias_p): Likewise.
20705         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
20706         chasing code.
20707         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
20708         (call_may_clobber_ref_p_1): Likewise.
20709         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
20710         * expr.c (expand_assignment): Handle MEM_REF.
20711         (store_expr): Handle MEM_REFs from STRING_CSTs.
20712         (store_field): If expanding a MEM_REF of a non-addressable
20713         decl use bitfield operations.
20714         (get_inner_reference): Handle MEM_REF.
20715         (expand_expr_addr_expr_1): Likewise.
20716         (expand_expr_real_1): Likewise.
20717         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
20718         * alias.c (ao_ref_from_mem): Handle MEM_REF.
20719         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
20720         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
20721         (dr_analyze_indices): Likewise.
20722         (dr_analyze_alias): Likewise.
20723         (object_address_invariant_in_loop_p): Likewise.
20724         * gimplify.c (mark_addressable): Handle MEM_REF.
20725         (gimplify_cond_expr): Build MEM_REFs.
20726         (gimplify_modify_expr_to_memcpy): Likewise.
20727         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
20728         (gimple_fold_indirect_ref): Adjust.
20729         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
20730         * tree.def (MEM_REF): New tree code.
20731         * tree-dfa.c: Include toplev.h.
20732         (get_ref_base_and_extent): Handle MEM_REF.
20733         (get_addr_base_and_unit_offset): New function.
20734         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
20735         * gimple-fold.c (may_propagate_address_into_dereference): Handle
20736         MEM_REF.
20737         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
20738         accesses if the array has just one dimension.  Remove always true
20739         parameter.  Do not require type compatibility here.
20740         (maybe_fold_offset_to_component_ref): Remove.
20741         (maybe_fold_stmt_indirect): Remove.
20742         (maybe_fold_reference): Remove INDIRECT_REF handling.
20743         Fold back to non-MEM_REF.
20744         (maybe_fold_offset_to_address): Simplify.  Deal with type
20745         mismatches here.
20746         (maybe_fold_reference): Likewise.
20747         (maybe_fold_stmt_addition): Likewise.  Also handle
20748         &ARRAY + I in addition to &ARRAY[0] + I.
20749         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
20750         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
20751         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
20752         * tree-ssa.c (useless_type_conversion_p): Make most pointer
20753         conversions useless.
20754         (warn_uninitialized_var): Handle MEM_REF.
20755         (maybe_rewrite_mem_ref_base): New function.
20756         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
20757         to SSA form.
20758         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
20759         INDIRECT_REF handling.
20760         (copy_tree_body_r): Handle MEM_REF.
20761         * gimple.c (is_gimple_addressable): Adjust.
20762         (is_gimple_address): Likewise.
20763         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
20764         invariant base are invariant.
20765         (is_gimple_min_lval): Adjust.
20766         (is_gimple_mem_ref_addr): New function.
20767         (get_base_address): Handle MEM_REF.
20768         (count_ptr_derefs): Likewise.
20769         (get_base_loadstore): Likewise.
20770         * gimple.h (is_gimple_mem_ref_addr): Declare.
20771         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
20772         * tree-cfg.c (verify_address): New function, split out from ...
20773         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
20774         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
20775         INDIRECT_REFs.
20776         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
20777         INDIRECT_REF.  Allow conversions.
20778         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
20779         a register does not change its size.
20780         (verify_types_in_gimple_reference): Verify MEM_REF.
20781         (verify_gimple_assign_single): Disallow INDIRECT_REF.
20782         Handle MEM_REF.
20783         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
20784         New.
20785         (mark_address_taken): Handle MEM_REF.
20786         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
20787         (get_asm_expr_operands): Pass opf_not_non_addressable.
20788         (get_expr_operands): Handle opf_[not_]non_addressable.
20789         Handle MEM_REF.  Remove INDIRECT_REF handling.
20790         * tree-vrp.c (check_array_ref): Handle MEM_REF.
20791         (search_for_addr_array): Likewise.
20792         (check_array_bounds): Likewise.
20793         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
20794         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
20795         (ref_always_accessed_p): Likewise.
20796         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
20797         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
20798         Handle MEM_REF.
20799         * cgraphbuild.c (mark_load): Properly check for NULL result
20800         from get_base_address.
20801         (mark_store): Likewise.
20802         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
20803         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
20804         handling for MEM_REF.
20805         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
20806         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
20807         * builtins.c (stabilize_va_list_loc): Use the function ABI
20808         valist type if we couldn't canonicalize the argument type.
20809         Always dereference with the canonical va-list type.
20810         (maybe_emit_free_warning): Handle MEM_REF.
20811         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
20812         memmove to memcpy.
20813         * builtins.c (fold_builtin_memory_op): Use ref-all types
20814         for all memcpy foldings.
20815         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
20816         (build_outer_var_ref): Likewise.
20817         (scan_omp_1_op): Likewise.
20818         (lower_rec_input_clauses): Likewise.
20819         (lower_lastprivate_clauses): Likewise.
20820         (lower_reduction_clauses): Likewise.
20821         (lower_copyprivate_clauses): Likewise.
20822         (expand_omp_atomic_pipeline): Likewise.
20823         (expand_omp_atomic_mutex): Likewise.
20824         (create_task_copyfn): Likewise.
20825         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
20826         Remove old union trick.  Initialize constant offsets.
20827         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
20828         INDIRECT_REF.  Init base_alias_set properly.
20829         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
20830         (vn_reference_fold_indirect): Adjust for MEM_REFs.
20831         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
20832         for ARRAY_REFs.
20833         (may_insert): Remove.
20834         (visit_reference_op_load): Do not test may_insert.
20835         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
20836         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
20837         a field to store the constant offset this op applies.
20838         (run_scc_vn): Adjust prototype.
20839         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
20840         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
20841         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
20842         bother about volatile qualifiers on pointers.
20843         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
20844         * tree-ssa-loop-ivopts.c
20845         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
20846         (strip_offset_1): Likewise.
20847         (find_interesting_uses_address): Replace INDIRECT_REF handling with
20848         MEM_REF handling.
20849         (get_computation_cost_at): Likewise.
20850         * ipa-pure-const.c (check_op): Handle MEM_REF.
20851         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
20852         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
20853         and constants.
20854         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
20855         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
20856         (eliminate_local_variables_1): Likewise.
20857         (create_call_for_reduction_1): Likewise.
20858         (create_loads_for_reductions): Likewise.
20859         (create_loads_and_stores_for_name): Likewise.
20860         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
20861         (ssa_accessed_in_tree): Handle MEM_REF.
20862         (ssa_accessed_in_assign_rhs): Likewise.
20863         (update_type_size): Likewise.
20864         (analyze_accesses_for_call_stmt): Likewise.
20865         (analyze_accesses_for_assign_stmt): Likewise.
20866         (transform_access_sites): Likewise.
20867         (transform_allocation_sites): Likewise.
20868         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
20869         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
20870         not handle INDIRECT_REF.
20871         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
20872         (cond_store_replacement): Likewise.
20873         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20874         MEM_REF, no not handle INDIRECT_REFs.
20875         (insert_into_preds_of_block): Properly initialize avail.
20876         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
20877         for ARRAY_REFs.  Properly handle reference lookups that
20878         require a bit re-interpretation.
20879         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
20880         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
20881         (build_ref_for_offset_1): Remove.
20882         (build_ref_for_offset): Build MEM_REFs.
20883         (gate_intra_sra): Disable for now.
20884         (sra_ipa_modify_expr): Handle MEM_REF.
20885         (ipa_early_sra_gate): Disable for now.
20886         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
20887         MEM_REF handling.
20888         (disqualify_base_of_expr): Likewise.
20889         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
20890         MEM_REF handling.
20891         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
20892         Use mem_ref_offset.  Remove bogus folding.
20893         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
20894         (make_fancy_name_1): Add support for MEM_REF.
20895         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
20896         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
20897         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
20898         (compute_complex_ancestor_jump_func): Likewise.
20899         (ipa_analyze_virtual_call_uses): Likewise.
20900         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
20901         INDIRECT_REF folding with more generalized MEM_REF folding.
20902         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
20903         (forward_propagate_addr_into_variable_array_index): Also handle
20904         &ARRAY + I in addition to &ARRAY[0] + I.
20905         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
20906         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
20907         creates assignments with overlap.
20908         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
20909         (get_frame_field): Likewise.
20910         (get_nonlocal_debug_decl): Likewise.
20911         (convert_nonlocal_reference_op): Likewise.
20912         (struct nesting_info): Add mem_refs pointer-set.
20913         (create_nesting_tree): Allocate it.
20914         (convert_local_reference_op): Insert to be folded mem-refs.
20915         (fold_mem_refs): New function.
20916         (finalize_nesting_tree_1): Perform defered folding of mem-refs
20917         (free_nesting_tree): Free the pointer-set.
20918         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
20919         (vectorizable_load): Likewise.
20920         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
20921         (propagate_with_phi): Likewise.
20922         * tree-object-size.c (addr_object_size): Handle MEM_REFs
20923         instead of INDIRECT_REFs.
20924         (compute_object_offset): Handle MEM_REF.
20925         (plus_stmt_object_size): Handle MEM_REF.
20926         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
20927         for &MEM_REF.
20928         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
20929         (symbol_marked_for_renaming): Likewise.
20930         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
20931         (fold-const.o): Add $(TREE_FLOW_H).
20932         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
20933         (find_func_clobbers): Likewise.
20934         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
20935         (decompose_access): Likewise.
20936         (replace_field_acc): Likewise.
20937         (replace_field_access_stmt): Likewise.
20938         (insert_new_var_in_stmt): Likewise.
20939         (get_stmt_accesses): Likewise.
20940         (reorg_structs_drive): Disable.
20941         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
20942         (ix86_canonical_va_list_type): Likewise.
20943
20944 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20945
20946         PR other/44566
20947         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
20948         * target.def (struct gcc_target): Replace enum reg_class with
20949         reg_class_t in hook argument / return types.
20950         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
20951         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
20952         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
20953         * targhooks.h (default_branch_target_register_class): Likewise.
20954         (default_ira_cover_classes, default_secondary_reload): Likewise.
20955         (default_memory_move_cost, default_register_move_cost): Likewise.
20956         * targhooks.c (default_branch_target_register_class): Likewise.
20957         (default_ira_cover_classes, default_secondary_reload): Likewise.
20958         (default_memory_move_cost, default_register_move_cost): Likewise.
20959         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
20960         * bt-load.c (branch_target_load_optimize): Likewise.
20961         * ira.c (setup_cover_and_important_classes): Likewise.
20962         * ira-costs.c (copy_cost): Likewise.
20963         * reload1.c (emit_input_reload_insns): Likewise.
20964         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20965         * config/frv/frv.c (frv_secondary_reload): Likewise.
20966         * config/s390/s390.c (s390_secondary_reload): Likewise.
20967         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
20968         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
20969         (ix86_register_move_cost): Likewise.
20970         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
20971         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
20972         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
20973         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
20974         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
20975         (rs6000_ira_cover_classes): Likewise.
20976         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
20977         * config/picochip/picochip-protos.h (picochip_secondary_reload):
20978         Likewise.
20979         * config/pa/pa.c (pa_secondary_reload): Likewise.
20980         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
20981         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
20982         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
20983         * doc/tm.texi: Regenerate.
20984
20985 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
20986
20987         PR bootstrrap/44726
20988         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
20989         use.
20990         (build_alias_set_optimal_p): Likewise.
20991         (build_base_obj_set_for_drs): Likewise.
20992
20993 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20994
20995         * target.def: Remove comment about licensing problems of function
20996         declarations.
20997
20998         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
20999         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
21000         * doc/tm.texi: Regenerate.
21001
21002         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
21003         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21004
21005         * target.def (enum_va_list_p): Use DEFHOOK.
21006         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
21007         Rename ptype to ptree.
21008         * doc/tm.texi: Regenerate.
21009
21010         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
21011         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
21012         * doc/tm.texi: Regenerate.
21013
21014         * target.def (memory_move_cost): Use DEFHOOK.
21015         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
21016         Rename regclass AKA class to rclass.
21017         * doc/tm.texi: Regenerate.
21018
21019         * target.def (pragma_parse): Use DEFHOOK.
21020         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
21021         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
21022         * doc/tm.texi: Regenerate.
21023
21024         * target.def (pass_by_reference): Use DEFHOOK.
21025         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
21026         * doc/tm.texi: Regenerate.
21027
21028         * target.def (resolve_overloaded_builtin): Rename params to arglist.
21029         Use DEFHOOK.
21030         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
21031         * doc/tm.texi: Regenerate.
21032
21033         * target.def (return_pops_args): Use DEFHOOK.
21034         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
21035         Rename stack-size to size.
21036         * doc/tm.texi: Regenerate.
21037
21038         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
21039         last-sched_cycle to last_clock, cur_cycle to clock.
21040         * doc/tm.texi.in: Use @hook.
21041         * doc/tm.texi: Regenerate.
21042
21043         * target.def (print_operand, print_operand_address): Update comment.
21044         (print_operand_punct_valid_p): Likewise.
21045
21046 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21047
21048         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
21049         to rtl.h.
21050         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
21051         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
21052         * rtl-error.h: New.
21053         * regrename.c: Do not include toplev.h. Include rtl-error.h.
21054         * rtl-error.c: Likewise.
21055         * reload.c: Likewise.
21056         * recog.c:  Likewise.
21057         * sel-sched.c: Likewise.
21058         * function.c: Likewise.
21059         * reg-stack.c: Likewise.
21060         * cfgrtl.c: Likewise.
21061         * reload1.c: Likewise.
21062         * final.c: Include rtl-error.
21063         * Makefile.in: Adjust dependencies.
21064
21065 2010-06-30  Jan Hubicka  <jh@suse.cz>
21066
21067         PR middle-end/PR44706
21068         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
21069         to return the value.
21070
21071 2010-06-30  Michael Matz  <matz@suse.de>
21072
21073         PR bootstrap/44699
21074         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
21075         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
21076         a gimple reg, attach the original VDEF to the last store in the
21077         sequence.
21078
21079 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
21080
21081         PR other/44034
21082         * config/darwin.c (darwin_override_options): Use renamed
21083         targetm.asm_out.emit_unwind_label.
21084
21085 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21086
21087         PR tree-optimization/39799
21088         * tree-inline.c (remap_ssa_name): Initialize variable only if
21089         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21090
21091 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
21092
21093         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
21094
21095 2010-06-30  Richard Guenther  <rguenther@suse.de>
21096
21097         PR target/44722
21098         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
21099         against oscillation with reverse peephole2.
21100
21101 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21102
21103         PR target/44721
21104         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21105         Fix last commit.
21106
21107 2010-06-30  Nick Clifton  <nickc@redhat.com>
21108
21109         * config/rx/rx-modes.def: New file.
21110         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
21111         (CC_REGNUM): Define.
21112         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
21113         register.
21114         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
21115         (SELECT_CC_MODE): Define.
21116         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
21117         (reg:CC CC_REG) instead of (cc0).
21118         (attr "cc"): Delete.
21119         (cbranchsi4): Do not split compare and branch here. Instead move
21120         it to...
21121         (cbranchsi4_<code>): ... here.  New patterns.
21122         (cmpsi): Call rx-compare_redundant to find out if it is necessary
21123         to emit the compare instruction.
21124         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
21125         cc_status flags.
21126         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
21127         FIRST_PSEUDO_REGNUM.
21128         (rx_expand_prologue, rx_expand_epilogue): Likewise.
21129         (rx_notice_update_cc): Delete.
21130         (rx_cc_modes_compatible): New function.
21131         (flags_needed_for_conditional): New function.
21132         (flags_from_mode): New function.
21133         (rx_compare_redundant): New function - scans backwards through
21134         insn list to find out if condition flags are already set correctly.
21135         (TARGET_CC_MODES_COMPATIBLE): Define.
21136         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
21137
21138         * config/rx/rx.h (BRANCH_COST): Define.
21139         (REGISTER_MOVE_COST): Define.
21140         * config/rx/predicates (rx_source_operand): Allow all constant types.
21141         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
21142         (tstsi4): New pattern.
21143         * config/rx/rx.c (rx_memory_move_cost): Define.
21144         (TARGET_MEMORY_MOVE_COST): Define.
21145
21146 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21147
21148         * tree.h (block_may_fallthru): Declare here.
21149         * tree-flow.h (block_may_fallthru): Do not declare here.
21150         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
21151         bitmap.h
21152         * Makefile.in (c-typeck.o): Update dependencies.
21153
21154 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
21155
21156         PR debug/44694
21157         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
21158         * cselib.c (cfa_base_preserved_regno): New static variable.
21159         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
21160         of REGNO (cfa_base_preserved_val->locs->loc).
21161         (cselib_preserve_cfa_base_value): Add regno argument, set
21162         cfa_base_preserved_regno to it.
21163         (cselib_invalidate_regno): Allow removal of registers other than
21164         cfa_base_preserved_regno from cfa_base_preserved_val.
21165         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
21166         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
21167         of MEM addresses, if not on LHS.
21168         (reverse_op): Don't add reverse ops for cfa_base_rtx.
21169         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
21170
21171 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21172
21173         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
21174         static variables.
21175         (peep2_buf_position): New static function.
21176         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
21177         peephole2_optimize): Use it.
21178         (peep2_attempt, peep2_update_life): New static functions, broken out
21179         of peephole2_optimize.
21180         (peep2_fill_buffer): New static function.
21181         (peephole2_optimize): Change the main loop to try to fill the buffer
21182         with the maximum number of insns before matching them against
21183         peepholes.  Use a forward scan.  Remove special case for targets with
21184         conditional execution.
21185         * genrecog.c (change_state): Delete dead code.
21186         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21187         Rewrite so as not to expect the second insn to have had a peephole
21188         applied yet.
21189
21190 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21191
21192         * genhooks.c (emit_findices): Cast field precision to int.
21193         (emit_documentation): Likewise.
21194
21195 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
21196
21197         PR tree-optimization/43801
21198         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
21199         if old_decl was DECL_ONE_ONLY.
21200
21201         PR debug/44668
21202         * dwarf2out.c (add_accessibility_attribute): New function.
21203         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
21204         instead of adding DW_AT_accessibility manually.
21205         (gen_enumeration_type_die, gen_struct_or_union_type_die,
21206         gen_typedef_die): Use it.
21207
21208 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21209
21210         * vmsdbgout.c (full_name): Just output the file name if not native.
21211
21212 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21213
21214         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
21215         (funcnam_table): New static table.
21216         (funcnum_table): New static table.
21217         (write_rtnbeg): Write value saved in funcnum_table.
21218         (write_rtnend): Write value saved in funcnum_table.
21219         (vmsdbgout_begin_function): Save current function info in
21220         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
21221         (vmsdbgout_finish): Iterate over funcnum_table.
21222
21223 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21224
21225         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
21226         (vmsdbgout_type_decl): Declare
21227         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
21228         (FUNC_EPILOGUE_LABEL): New macro
21229         (vmsdbgout_begin_epilogue): New function.
21230         (vmsdbgout_type_decl): New function.
21231
21232 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21233
21234         * vmsdbg.h: Update copyright.
21235
21236 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21237
21238         * vmsdbg.h (DST_K_TBG): New DST constant.
21239         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
21240         (write_modbeg): Cast module_language to avoid warning.
21241         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
21242
21243 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21244
21245         PR other/44034
21246         * target.def, doc/tm.texi.in, genhooks.c: New files.
21247         * target.h: Instead of defining individual hook members,
21248         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
21249         include target.def.
21250         * target-def.h: Instead of defining individual hook initializers,
21251         include target-hooks-def.h.
21252         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
21253         targetm.live_on_entry -> targetm.extra_live_on_entry
21254         targetm.sched.md_finish ->targetm.sched.finish
21255         targetm.sched.md_init -> targetm.sched.init
21256         targetm.sched.md_init_global -> targetm.sched.init_global
21257         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
21258         targetm.asm_out.except_table_label ->
21259           targetm.asm_out.emit_except_table_label
21260         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
21261         targetm.target_help -> targetm.help
21262         targetm.vectorize.builtin_support_vector_misalignment ->
21263           targetm.vectorize.support_vector_misalignment
21264         targetm.file_start_app_off -> targetm.asm_file_start_app_off
21265         targetm.file_start_file_directive ->
21266          targetm.asm_file_start_file_directive
21267         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
21268         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
21269         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
21270         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
21271           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
21272         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
21273           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
21274         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
21275         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
21276         * Makefile.in (TARGET_H): Depend on target.def.
21277         (TARGET_DEF_H): Depend on target-hooks-def.h.
21278         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
21279         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
21280         * doc/tm.texi: Regenerate.
21281
21282         * Makefile.in (s-tm-texi): Remove stray tab / rule.
21283
21284         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
21285         (targetm.sched.init): Likewise.
21286
21287 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21288
21289         PR bootstrap/44713
21290         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
21291         (function_arg_advance_32): Const-ify TYPE parameter.
21292         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
21293         (ix86_function_arg_advance): Change type of NAMED to bool.
21294         (function_arg_32): Const-ify CUM and TYPE parameters.
21295         (function_arg_64): Likewise.  Change type of NAMED to bool.
21296         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
21297         to bool.
21298         (ix86_function_arg): Change type of NAMED to bool.
21299         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
21300         last argument as a bool.
21301
21302 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21303
21304         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
21305         (OVERRIDE_OPTIONS): Add note of obsolescence.
21306         Replace references with references to TARGET_OPTION_OVERRIDE.
21307         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
21308          the macro).
21309         * targhooks.c (default_target_option_override): New function.
21310         * targhooks.h (default_target_option_override): Declare.
21311         * target.h (struct gcc_target): Add override member to
21312         target_option member.
21313         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
21314         targetm.target_option.override call.
21315         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
21316         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
21317
21318 2010-06-29  Jan Hubicka  <jh@suse.cz>
21319
21320         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
21321
21322 2010-06-29  Jan Hubicka  <jh@suse.cz>
21323
21324         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
21325         unreachable.
21326         (rebuild_frequencies): New function.
21327         * predict.h (rebuild_frequencies): Declare.
21328         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
21329         entry block and edge reaching new_entry.
21330         (tree_function_versioning): When doing partial cloning, rebuild
21331         frequencies when done.
21332         * passes.c (execute_function_todo): Use rebild_frequencies.
21333
21334 2010-06-29  Richard Guenther  <rguenther@suse.de>
21335
21336         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
21337         * tree-flow.h (enum noalias_state): Remove.
21338         (struct var_ann_d): Remove noalias_state member.
21339
21340 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
21341
21342         PR target/43902
21343         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
21344         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
21345         (maddhidi4): Likewise.
21346
21347         Revert parts of the change for PR25130.
21348         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21349         MEM_ALIAS_SET.
21350
21351 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21352
21353         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
21354         targetm.calls.function_incoming_arg, and
21355         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
21356         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
21357         * target.h (struct gcc_target): Add function_arg_advance,
21358         function_arg, and function_incoming_arg fields.
21359         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
21360         (TARGET_FUNCTION_INCOMING_ARG): Define.
21361         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
21362         and TARGET_FUNCTION_INCOMING_ARG.
21363         * targhooks.h (default_function_arg_advance): Declare.
21364         (default_function_arg, default_function_incoming_arg): Declare.
21365         * targhooks.c (default_function_arg_advance): New function.
21366         (default_function_arg, default_function_incoming_arg): New function.
21367         * config/i386/i386.c (function_arg_advance): Rename to...
21368         (ix86_function_arg_advance): ...this.  Make static.
21369         (function_arg): Rename to...
21370         (ix86_function_arg): ...this.  Make static.
21371         (TARGET_FUNCTION_ARG_ADVANCE): Define.
21372         (TARGET_FUNCTION_ARG): Define.
21373         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
21374         (FUNCTION_ARG): Delete.
21375         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
21376         (function_arg): Delete prototype.
21377
21378 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21379
21380         * reginfo.c (init_reg_sets_1): Adjust comments.
21381         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
21382         * calls.c (prepare_call_address): Likewise.
21383         (emit_call_1): Use targetm.calls.return_pops_args.
21384         (expand_call): Likewise.
21385         * function.c (assign_parms): Likewise.
21386         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
21387         * target.h (struct gcc_target) [struct calls]: Add
21388         return_pops_args field.
21389         * targhooks.h (default_return_pops_args): Declare.
21390         * targhooks.c (default_return_pops_args): Define.
21391         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
21392         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
21393         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
21394         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
21395         documentation.
21396         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
21397         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
21398         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
21399         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
21400         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
21401         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
21402         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
21403         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
21404         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
21405         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
21406         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
21407         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
21408         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
21409         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
21410         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
21411         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
21412         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
21413         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
21414         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
21415         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
21416         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
21417         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
21418         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
21419         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
21420         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
21421         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
21422         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
21423         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
21424         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
21425         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
21426         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
21427         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
21428         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
21429         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
21430         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
21431         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
21432         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
21433         * config/i386/i386.c (ix86_return_pops_args): Make static.
21434         Constify arguments.
21435         (TARGET_RETURN_POPS_ARGS): Define.
21436         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
21437         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
21438         (TARGET_RETURN_POPS_ARGS): Define.
21439         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
21440         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
21441         (TARGET_RETURN_POPS_ARGS): Define.
21442
21443 2010-06-29  Richard Guenther  <rguenther@suse.de>
21444
21445         PR middle-end/44667
21446         * tree-inline.c (initialize_inlined_parameters): Make sure
21447         to remap the inlined parameter variable substitutions types.
21448
21449 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
21450
21451         PR rtl-optimization/44659
21452         * combine.c (make_compound_operation) <SUBREG>: Do not return the
21453         result of force_to_mode if it partially re-expanded the compound.
21454
21455 2010-06-28  Jan Hubicka  <jh@suse.cz>
21456
21457         PR middle-end/44671
21458         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
21459         RESULT_DECL.
21460
21461 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
21462
21463         * double-int.h (force_fit_type_double): Remove declaration.
21464         * double-int.c (force_fit_type_double): Move to tree.c.
21465         * tree.h (force_fit_type_double): Declare.
21466         * tree.h (force_fit_type_double): Moved from double-int.c. Use
21467         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
21468         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
21469         * convert.c (convert_to_pointer): Adjust call to
21470         force_fit_type_double.
21471         * tree-vrp.c (extract_range_from_assert,
21472         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
21473         * fold-const.c: Update comment.
21474         (int_const_binop, fold_convert_const_int_from_int,
21475         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
21476         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
21477         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
21478         round_up_loc): Adjust call to force_fit_type_double.
21479
21480 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21481
21482         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
21483
21484 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21485
21486         * tree-sra.c (convert_callers): New parameter, change fndecls of
21487         recursive calls.
21488         (modify_function): Pass the old decl to convert_callers.
21489
21490 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21491
21492         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
21493         ipa_check_create_node_params and ipa_initialize_node_params with
21494         checking asserts they are not necessary.
21495
21496 2010-06-28  Jan Hubicka  <jh@suse.cz>
21497
21498         PR tree-optimization/44687
21499         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
21500
21501 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21502
21503         PR c++/44535
21504         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
21505         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
21506         instead of BINFO_BASE_BINFO.
21507
21508 2010-06-28  Michael Matz  <matz@suse.de>
21509
21510         PR middle-end/44592
21511         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
21512         proper VDEF chain for intermediate stores in the sequence.
21513
21514 2010-06-28  Jan Hubicka  <jh@suse.cz>
21515
21516         PR tree-optimization/44357
21517         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
21518         uninlinable functions.
21519
21520 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21521
21522         * config.gcc (powerpc*-*-*): Handle titan.
21523         * config/rs6000/rs6000.c (titan_cost): New costs.
21524         (rs6000_override_options): Add "titan" to processor_target_table.
21525         Add Titan to branch alignment logic.
21526         Correctly set rs6000_cost for titan.
21527         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
21528         * config/rs6000/titan.md: New file.
21529         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
21530
21531 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
21532
21533         * tree-browser.c (TB_history_stack): Convert to a VEC.
21534         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
21535         (TB_history_prev): Likewise.
21536
21537 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
21538
21539         * vec.h (vec_heap_free): Add parentheses around free.
21540
21541 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
21542
21543         * system.h: Poison GCC_EXCEPT_H for front-end files.
21544
21545         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
21546         langhook.
21547         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
21548         Define to NULL by default.
21549         * except.h: Define GCC_EXCEPT_H.
21550         (doing_eh): Remove prototype.
21551         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
21552         (lang_protect_cleanup_actions): Remove.
21553         * except.c (lang_protect_cleanup_actions): Remove.
21554         (doing_eh): Remove.
21555         (gen_eh_region): Don't check doing_eh here.
21556         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
21557         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
21558         instead of lang_protect_cleanup_actions.
21559         * omp-low.c (maybe_catch_exception): Likewise.
21560         * Makefile.in: Update dependencies.
21561
21562 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
21563
21564         * cgraph.h (struct varpool_node): new used_from_object_file flag.
21565         (struct cgraph_local_info): new used_from_object_file flag.
21566         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
21567         (cgraph_clone_node): initialize used_from_object_file.
21568         (cgraph_create_virtual_clone): initialize used_from_object_file.
21569         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
21570         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
21571         when compiling with -fwhole-program.
21572         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
21573         internal resolver.
21574         * ipa.c (function_and_variable_visibility): Set externally_visible
21575         flag of varpool_node if used_from_object_file flag is set.
21576         (cgraph_externally_visible_p): check used_from_object_file flag.
21577         * doc/invoke.texi (-fwhole-program option): Change description of
21578         externally_visible attribute accordingly.
21579         * doc/extend.texi (externally_visible): Ditto.
21580
21581 2010-06-27  Jan Hubicka  <jh@suse.cz>
21582
21583         * params.def (max-inline-insns-auto): Default to 40.
21584         * doc/invoke.texi (max-inline-insns-auto): Document the change.
21585
21586 2010-06-27  Jan Hubicka  <jh@suse.cz>
21587
21588         PR middle-end/44671
21589         PR middle-end/44686
21590         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
21591         signature change.
21592         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
21593         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
21594
21595 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
21596
21597         * target.h (struct gcc_target): Add register_move_cost field.
21598         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
21599         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
21600         * targhooks.c (default_register_move_cost): New function.
21601         * targhooks.h (default_register_move_cost): Declare function.
21602         * defaults.h (REGISTER_MOVE_COST): Delete.
21603         * ira-int.h (ira_register_move_cost): Update comment.
21604         * ira.c (ira_register_move_cost): Update comment.
21605         * reload.h (register_move_cost): Declare.
21606         * reginfo.c (register_move_cost): New function.
21607         (move_cost): Update comment.
21608         (init_move_cost, memory_move_secondary_cost): Replace
21609         REGISTER_MOVE_COST with register_move_cost.
21610         * postreload.c (reload_cse_simplify_set): (Ditto.).
21611         * reload.c (find_valid_class, find_reloads): (Ditto.).
21612         * reload1.c (choose_reload_regs): (Ditto.).
21613         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
21614         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
21615         * doc/md.texi (can_create_pseudo_p): Update documentation.
21616
21617         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21618         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21619         * config/i386/i386.h (ix86_memory_move_cost): Make static.
21620         (TARGET_MEMORY_MOVE_COST): Define.
21621
21622         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21623         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
21624         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
21625         (TARGET_MEMORY_MOVE_COST): Define.
21626
21627 2010-06-27  Richard Guenther  <rguenther@suse.de>
21628
21629         PR tree-optimization/44683
21630         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
21631         false edge from the inverted condition.
21632
21633 2010-06-27  Richard Guenther  <rguenther@suse.de>
21634
21635         PR middle-end/44684
21636         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
21637         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
21638         for register LHS.  Or non-store assignments.
21639
21640 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
21641
21642         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
21643         (sparc_emit_set_const64): Likewise.  Remove disabled code.
21644         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
21645         (sparc_emit_set_const64): Likewise.
21646
21647 2010-06-26  Catherine Moore  <clm@codesourcery.com>
21648
21649         * config/mips/mips.md (alu_type): New attribute.
21650         (type): Infer type from alu_type.
21651         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
21652         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
21653         *subsi3_extended, negsi2, negdi2, *low<mode>,
21654         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
21655         xor<mode>3, *nor<mode>3,
21656         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
21657         *zero_extendhi_truncqi):  Set alu_type instead of type.
21658
21659 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
21660
21661         * config/alpha/alpha.c (alpha_need_linkage): Adjust
21662         splay_tree_new_ggc call.
21663         (alpha_use_linkage): Likewise.
21664
21665 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
21666
21667         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
21668         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
21669         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
21670         (static_specs): Remove switches_need_spaces.
21671         (process_command, do_self_spec): Hardcode handling "-o" instead of
21672         checking switches_need_spaces.
21673         * system.h (SWITCHES_NEED_SPACES): Poison.
21674
21675 2010-06-26  Richard Guenther  <rguenther@suse.de>
21676
21677         PR tree-optimization/44393
21678         * tree-loop-distribution.c (generate_loops_for_partition): Fix
21679         stmt removal and VOP renaming.
21680         (generate_memset_zero): Remove redundant stmt updating.
21681         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
21682         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
21683
21684 2010-06-26  Jan Hubicka  <jh@suse.cz>
21685
21686         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
21687         edges comming from header are equivalent.
21688         (visit_bb): Handle PHIs correctly.
21689         * tree-inline.c (copy_phis_for_bb): Be able to copy
21690         PHI from entry edge.
21691         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
21692
21693 2010-06-26  Richard Guenther  <rguenther@suse.de>
21694
21695         PR middle-end/44674
21696         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
21697         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
21698
21699 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
21700
21701         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
21702         add_infile, alloc_switch): New.
21703         (process_command): Remove variable lang_n_infiles.  Process
21704         options in a single pass.  Use new functions for allocating
21705         infiles and switches arrays.  Properly skip operands of
21706         -Xpreprocessor and -Xassembler.
21707
21708 2010-06-26  Jan Hubicka  <jh@suse.cz>
21709
21710         PR middle-end/44671
21711         * cgraphunit.c (cgraph_function_versioning): Remove wrong
21712         cgraph_make_decl_local call; fix typo copying RTL data.
21713
21714 2010-06-25  DJ Delorie  <dj@redhat.com>
21715
21716         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
21717         (m32c_output_aligned_common): Likewise.
21718         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21719         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
21720         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
21721         (m32c_register_pragmas): Register it.
21722         * config/m32c/m32c.c (m32c_get_pragma_address): New.
21723         (m32c_insert_attributes): Set #pragma address decls volatile.
21724         (pragma_entry_eq): New.
21725         (pragma_entry_hash): New.
21726         (m32c_note_pragma_address): New.
21727         (m32c_get_pragma_address): New.
21728         (m32c_output_aligned_common): New.
21729         * doc/extend.texi: Document the new pragma.
21730
21731         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
21732         also.
21733         * config/m32c/predicates.md (m32c_any_operand): Check the code
21734         instead of memory_operand so as to allow matching volatile MEMs.
21735         (m32c_nonimmediate_operand): Likewise.
21736         (mra_operand): Allow volatiles.
21737
21738 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
21739
21740         PR debug/44610
21741         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
21742         address if the offset is unknown.
21743
21744 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
21745
21746         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
21747         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
21748         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
21749         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
21750         to ia64_start_function. Invoke it.
21751         * config/ia64/ia64.c (ia64_start_function): Call new function
21752         dwarf2out_vms_debug_main_pointer.
21753
21754 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21755
21756         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
21757         statements computing the true predicate.
21758
21759 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21760
21761         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
21762         to boolean_true_node.
21763         (reset_bb_predicate): New.
21764         (predicate_bbs): Call reset_bb_predicate.
21765
21766 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21767
21768         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
21769         (tree_if_conversion): Returns true when something has been changed.
21770         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
21771         changed something.
21772
21773 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21774
21775         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
21776         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
21777         * tree-if-conv.c: Include dbgcnt.h.
21778         (tree_if_conversion): Use if_conversion_tree to count the number of
21779         if-convertible loops.
21780
21781 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
21782
21783         * common.opt (fprefetch-loop-arrays): Re-define
21784         -fprefetch-loop-arrays as a tri-state option with the initial
21785         value of -1.
21786         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
21787         pass only when flag_prefetch_loop_arrays > 0.
21788         * toplev.c (process_options): Note that, with tri-states,
21789         flag_prefetch_loop_arrays>0 means prefetching is enabled.
21790         * config/i386/i386.c (override_options): Enable prefetching at -O3
21791         for a set of CPUs that sw prefetching is helpful.
21792         (software_prefetching_beneficial_p): New.  Return TRUE if software
21793         prefetching is beneficial for the given CPU.
21794
21795 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
21796
21797         PR rtl-optimization/44326
21798         * implicit-zee.c (find_removable_zero_extends): Replace
21799         INSN_P with NONDEBUG_INSN_P.
21800
21801 2010-06-25  Martin Jambor  <mjambor@suse.cz>
21802
21803         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
21804         (struct ipa_node_params): Removed the modification_analysis_done flag.
21805         (ipa_is_param_modified): Removed.
21806         (ipa_analyze_node): Declare.
21807         (ipa_compute_jump_functions): Remove declaration.
21808         (ipa_count_arguments): Likewise.
21809         (ipa_detect_param_modifications): Likewise.
21810         (ipa_analyze_params_uses): Likewise.
21811         * ipa-prop.c (struct param_analysis_info): New type.
21812         (visit_store_addr_for_mod_analysis): Removed.
21813         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
21814         moved down in the file.
21815         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
21816         (ipa_count_arguments): Made static.
21817         (mark_modified): New function.
21818         (is_parm_modified_before_call): New function.
21819         (compute_pass_through_member_ptrs): New parameter parms_info, call
21820         is_parm_modified_before_call instead of ipa_is_param_modified.
21821         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
21822         it to compute_pass_through_member_ptrs.
21823         (ipa_compute_jump_functions): New parameter parms_info, pass it to
21824         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
21825         on the callee if it is analyzed.  Made static.
21826         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
21827         is_parm_modified_before_call instead of ipa_is_param_modified.
21828         (ipa_analyze_call_uses): New parameter parms_info, pass it to
21829         ipa_analyze_indirect_call_uses.
21830         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
21831         ipa_analyze_call_uses.
21832         (ipa_analyze_params_uses): New parameter parms_info, pass it to
21833         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
21834         (ipa_analyze_node): New function.
21835         (ipa_print_node_params): Do not dump the modified flag.
21836         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
21837         it.  Do not stream the modified parameter flag.
21838         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
21839         it.  Do not stream the modified parameter flag.
21840         * ipa-cp.c (ipcp_analyze_node): Removed.
21841         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
21842         with only a call to ipa_analyze_node.
21843         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
21844         node with only a call to ipa_analyze_node.
21845
21846 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21847
21848         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
21849
21850 2010-06-25  Jan Hubicka  <jh@suse.cz>
21851
21852         * tree-pass.h (pass_split_functions): Declare.
21853         * opts.c (decode_options): Enable function splitting at -O2
21854         * timevar.def (TV_IPA_FNSPLIT): New macro.
21855         * ipa-split.c: New file.
21856         * common.opt (-fpartial-inlining): New flag.
21857         * Makefile.in (ipa-split.o): New object file.
21858         * passes.c (init_optimization_passes): Add ipa-split.
21859         * params.def (partial-inlining-entry-probability): New parameters.
21860         * doc/invoke.texi (-fpartial-inlining): New.
21861
21862 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21863
21864         PR 44665
21865         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
21866         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
21867         (gimplify_expr): Likewise.
21868
21869 2010-06-25  Martin Jambor  <mjambor@suse.cz>
21870
21871         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
21872         statements instead of bailing out on them.
21873         (ipa_analyze_indirect_call_uses): Do not require that loads from the
21874         parameter are in the same BB as the condition.  Update comments.
21875
21876 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
21877
21878         PR middle-end/43866
21879         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
21880         true or always false, return NULL_TREE.
21881         (tree_unswitch_single_loop): Optimize conditions even when reaching
21882         max-unswitch-level parameter.  If num > 0, optimize first all conditions
21883         using entry checks, then do still reachable block discovery and consider
21884         only conditions in still reachable basic blocks in the loop.
21885
21886         PR tree-optimization/44539
21887         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
21888         the call doesn't have LHS, but has VDEF.
21889
21890 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
21891
21892         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
21893         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
21894         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
21895         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
21896         * system.h (MODIFY_TARGET_NAME): Poison.
21897
21898 2010-06-25  Alan Modra  <amodra@gmail.com>
21899
21900         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
21901         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
21902         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
21903         CMODEL_LARGE as default.
21904         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
21905         (offsettable_ok_by_alignment): Delete.
21906         (rs6000_emit_move): Remove mcmodel=medium optimization.
21907
21908 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
21909
21910         With large parts from Jim Wilson:
21911         PR target/43902
21912         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
21913         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21914         * optabs.c (optab_for_tree_code): Likewise.
21915         (expand_widen_pattern_expr): Likewise.
21916         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
21917         out of execute_optimize_widening_mul.
21918         (convert_plusminus_to_widen): New function.
21919         (execute_optimize_widening_mul): Use the two new functions.
21920         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
21921         Remove code to generate widening multiply-accumulate.  Add support
21922         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21923         * gimple-pretty-print.c (dump_ternary_rhs): New function.
21924         (dump_gimple_assign): Call it when appropriate.
21925         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
21926         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
21927         (expand_gimple_stmt_1): Likewise.
21928         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
21929         WIDEN_MULT_MINUS_EXPR.
21930         * tree-ssa-operands.c (get_expr_operands): Likewise.
21931         * tree-inline.c (estimate_operator_cost): Likewise.
21932         * gimple.c (extract_ops_from_tree_1): Renamed from
21933         extract_ops_from_tree.  Add new arg for a third operand; fill it.
21934         (gimple_build_assign_stat): Support operations with three operands.
21935         (gimple_build_assign_with_ops_stat): Likewise.
21936         (gimple_assign_set_rhs_from_tree): Likewise.
21937         (gimple_assign_set_rhs_with_ops_1): Renamed from
21938         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
21939         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
21940         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
21941         WIDEN_MULT_MINUS_EXPR.
21942         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
21943         (extract_ops_from_tree_1): Adjust declaration.
21944         (gimple_assign_set_rhs_with_ops_1): Likewise.
21945         (gimple_build_assign_with_ops): Pass NULL for last operand.
21946         (gimple_build_assign_with_ops3): New macro.
21947         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
21948         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
21949         functions.
21950         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
21951         (verify_gimple_assign): Call it.
21952         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
21953         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
21954         functions for dealing with three-operand statements.
21955         * tree.c (commutative_ternary_tree_code): New function.
21956         * tree.h (commutative_ternary_tree_code): Declare it.
21957         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
21958         ternary statements.
21959         (gimple_assign_nonzero_warnv_p): Likewise.
21960         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
21961         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
21962         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
21963         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
21964         (struct hashtable_expr): New member ternary in the union.
21965         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
21966         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
21967         (iterative_hash_hashable_expr): Likewise.
21968         (print_expr_hash_elt): Handle EXPR_TERNARY.
21969         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
21970         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
21971         statements.  Handle GIMPLE_TERNARY_RHS.
21972
21973 2010-06-25  Jan Hubicka  <jh@suse.cz>
21974
21975         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
21976
21977 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
21978
21979         PR c/44517
21980         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
21981         parameters are not good.
21982         (c_parser_parameter_declaration): Error unknown type name if the type
21983         name can't start declaration specifiers.
21984
21985 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
21986
21987         * gcc.c (translate_options): Don't mention +e in comment.
21988         (process_command): Don't handle +e specially.
21989
21990 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
21991
21992         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
21993
21994         * ira-build.c (merge_hard_reg_conflicts): New function.
21995         (create_cap_allocno, copy_info_to_removed_store_destinations,
21996         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
21997         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
21998         (remove_unnecessary_allocnos, remove_low_level_allocnos)
21999         copy_nifo_to_removed_store_destination): Use them.
22000         * ira-lives.c (make_hard_regno_born): New function, split out of
22001         make_regno_born.
22002         (make_allocno_born): Likewise.
22003         (make_hard_regno_dead): New function, split out of make_regno_dead.
22004         (make_allocno_dead): Likewise.
22005         (inc_register_pressure): New function, split out of set_allocno_live.
22006         (dec_register_pressure): New function, split out of clear_allocno_live.
22007         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
22008         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
22009         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
22010         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
22011         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
22012         mark_pseudo_regno_live.
22013         (process_bb_node_lives): Use mark_pseudo_regno_live,
22014         make_hard_regno_born and make_allocno_dead.
22015         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
22016         set_allocno_live, clear_allocno_live): Delete functions.
22017
22018         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
22019         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
22020         functions.
22021         (ira_flattening): Use ira_parent_allocno.
22022         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
22023         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
22024
22025         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
22026         statement.
22027
22028         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
22029         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
22030         minmax_set_iter_cond, minmax_set_iter_next,
22031         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
22032         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
22033         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
22034         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
22035         uses changed.
22036
22037         * ira-int.h (struct live_range, live_range_t): Renamed from struct
22038         ira_allocno_live_range and allocno_live_range_t; all uses changed.
22039         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
22040         All uses changed.
22041
22042 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
22043
22044         * thumb2.md (thumb2_tlobits_cbranch): Delete.
22045         (peephole2 to convert zero_extract/compare of single bit to
22046          lshift/compare): New.
22047
22048 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
22049
22050         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
22051         recursive call and call to 'int_const_binop'.
22052         (build_range_check, fold_cond_expr_with_comparison, unextend,
22053         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
22054         multiple_of_p): Adjust call to const_binop.
22055
22056 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
22057
22058         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
22059         determine size of XFmode operand.
22060         (XFmode extended DFmode push splitter): Ditto.
22061         (XFmode extended SFmode push splitter): Ditto.
22062
22063 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22064
22065         PR target/44588
22066         * config/i386/i386.md (extract_code): New.
22067         (<u>divmodqi4): Likewise.
22068         (divmodhiqi3): Likewise.
22069         (udivmodhiqi3): Likewise.
22070         (<u>divqi3): Remvoved.
22071
22072 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
22073
22074         PR middle-end/44492
22075         * recog.h (struct recog_data): Add is_asm field.
22076         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
22077         present in constraints of inline-asm operand and memory operand
22078         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
22079         (extract_insn): Initialize recog_data.is_asm.
22080         * doc/md.texi (Constraints): Document operand side-effect rules.
22081
22082 2010-06-24  Andi Kleen  <ak@linux.intel.com>
22083
22084         * c-parser.c (c_parser_conditional_expression): Call
22085         warn_for_omitted_condop.
22086         * doc/invoke.texi: Document omitted condop warning.
22087
22088 2010-06-24  Nick Clifton<nickc@redhat.com>
22089
22090         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
22091         insn in the sequence is a jump insn before setting its label.
22092
22093 2010-06-24  Alan Modra  <amodra@gmail.com>
22094
22095         * collect2.c (main): Match exactly --version and --help.
22096
22097 2010-06-24  DJ Delorie  <dj@redhat.com>
22098
22099         * config/m32c/m32c-pragma.c: Don't include rtl.h.
22100
22101 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
22102
22103         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
22104         using X87MODEF mode iterator.
22105         (pushsf splitter): Macroize splitter using P mode iterator.
22106         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
22107         mode iterator.
22108
22109         (*movxf_internal): Rename from *movxf_integer.
22110         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
22111         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
22112         (*movdf_internal): Rename from *movdf_integer.
22113         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
22114         (*movsf_internal): Rename from *movdf_1.
22115
22116 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
22117
22118         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
22119         (const_gimple_seq_node): Removed typedefs.
22120
22121         * gimple.h (gimple_seq_node_d, gimple_seq_node)
22122         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
22123
22124 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22125
22126         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
22127         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
22128         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
22129         and CODE_FOR_vec_extract_lo_v4df.
22130
22131         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
22132         Changed to define_insn_and_split.
22133         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
22134         (vec_extract_lo_v16hi): Likewise.
22135         (vec_extract_lo_v32qi): Likewise.
22136         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
22137         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
22138
22139 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
22140
22141         PR target/44640
22142         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
22143         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
22144         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
22145         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
22146         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
22147
22148         PR target/44640
22149         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
22150
22151         PR other/44644
22152         * df-core.c (struct df): Rename to df_d.
22153         * df.h (struct df): Likewise.
22154         * dse.h (struct df): Remove forward declaration.
22155         * recog.h (struct insn_data): Rename to:
22156         (struct_insn_data_d).  Adjusted all users.
22157
22158 2010-06-23  Arnaud Charlet  <charlet@adacore.com
22159
22160         PR ada/22220
22161         * doc/install.texi: Update requirements to build GNAT.
22162
22163 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
22164
22165         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
22166         enum type.
22167         (m68k_sched_attr_opx_type): Remove unreachable return.
22168         (m68k_sched_attr_opy_type): Likewise.
22169         (m68k_sched_attr_size): Likewise.
22170         (sched_get_opxy_mem_type): Likewise.
22171         (m68k_sched_attr_op_mem): Likewise.
22172
22173 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
22174
22175         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
22176         new statement and adjust VDEF only if necessary.  Remove superfluous
22177         call to maybe_clean_or_replace_eh_stmt.
22178         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
22179         copy the flags.
22180         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
22181         * tree-inline.c (copy_bb): ...and not there.
22182
22183 2010-06-22  Cary Coutant  <ccoutant@google.com>
22184
22185         * dwarf2out.c (is_nested_in_subprogram): New function.
22186         (should_move_die_to_comdat): Use it.
22187         (copy_ancestor_tree): Don't mark DIEs here.
22188         (copy_decls_walk): Start walk from root of newly-added tree;
22189         mark DIEs here instead.
22190
22191 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22192
22193         * config/i386/i386.md (unit): Also check sseishft1.
22194
22195 2010-06-22  Jan Hubicka  <jh@suse.cz>
22196
22197         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
22198         enabled.
22199
22200 2010-06-22  Jan Hubicka  <jh@suse.cz>
22201
22202         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
22203         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
22204         Return true if something changed.
22205         * df.h (df_confluence_function_n): Return bool.
22206         * df-core.c (df_worklist_propagate_forward,
22207         df_worklist_propagate_backward): Track changes and ages.
22208         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
22209         track ages.
22210         * dse.c (dse_confluence_n): Return always true.
22211
22212 2010-06-22  Jan Hubicka  <jh@suse.cz>
22213
22214         * bitmap.c (bitmap_clear_bit): Micro optimize.
22215
22216 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
22217
22218         * config/i386/i386.md (SWI1248x): New mode iterator.
22219         (SWI48x): Ditto.
22220         (SWI12): Ditto.
22221         (SWI24): Ditto.
22222
22223         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
22224         SWI1248x mode iterator.
22225         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
22226         using SWI124 mode iterator.
22227         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
22228         mode iterator.
22229         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
22230         *pushdi2_prologue_rex64 using P mode iterator.
22231         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
22232         using SWI48 mode iterator.
22233         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
22234         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
22235         using SWI1248x mode iterator.
22236         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
22237         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
22238         SWI48 mode iterator.
22239         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
22240         iterator.
22241         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
22242         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
22243         SWI12 mode iterator.
22244         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
22245         SWI12 mode iterator.
22246         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
22247         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
22248         SWI24 mode iterator.
22249         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
22250         SWI48 mode iterator.
22251         (mov<mode>_insn_1): New expander.
22252         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
22253         using SWI48x mode iterator.
22254
22255         (*movoi_internal_avx): Rename from *movoi_internal.
22256         (*movti_internal_rex64): Rename from *movti_rex64.
22257         (*movti_internal_sse): Rename from *movti_sse.
22258         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
22259         (*movdi_internal): Rename from *movdi_2.
22260         (*movsi_internal): Rename from *movsi_1.
22261         (*movhi_internal): Rename from *movhi_1.
22262         (*movqi_internal): Rename from *movqi_1.
22263
22264         (insv): Update the call to gen_movsi_insv_1 for rename.
22265         * config/i386/i386.c (promote_duplicated_reg): Ditto.
22266
22267 2010-06-22  Jan Hubicka  <jh@suse.cz>
22268
22269         * passes.c (execute_function_todo): Move call of statistics_fini_pass
22270         to ...
22271         (execute_todo) ... this one.
22272
22273 2010-06-22  Alan Modra  <amodra@gmail.com>
22274
22275         PR target/44364
22276         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22277         * caller-save.c (insert_restore, insert_save): Use non-validate
22278         form of adjust_address.
22279
22280 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22281
22282         PR target/39690
22283         * config/pa/pa.c (override_options): Disable
22284         -freorder-blocks-and-partition.
22285
22286 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22287
22288         PR target/44615
22289         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
22290
22291         * config/i386/i386.md (type): Add sseishft1
22292
22293         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
22294         (ppro_insn_load): Likewise.
22295         (ppro_insn_store): Likewise.
22296         (ppro_insn_both): Likewise.
22297
22298         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
22299         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
22300         for type.
22301         (*vec_extractv2di_1_avx): Likewise.
22302         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
22303         type.  Remove atom_unit.
22304         (*vec_extractv2di_1_sse2): Likewise.
22305
22306 2010-06-21  DJ Delorie  <dj@redhat.com>
22307
22308         * diagnostic.h (diagnostic_classification_change_t): New.
22309         (diagnostic_context): Add history and push/pop list.
22310         (diagnostic_push_diagnostics): Declare.
22311         (diagnostic_pop_diagnostics): Declare.
22312         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
22313         from pragmas in a history chain instead of the global table.
22314         (diagnostic_push_diagnostics): New.
22315         (diagnostic_pop_diagnostics): New.
22316         (diagnostic_report_diagnostic): Scan history chain to find state
22317         of diagnostics as of the diagnostic location.
22318         * opts.c (set_option): Pass UNKNOWN_LOCATION to
22319         diagnostic_classify_diagnostic.
22320         (enable_warning_as_error): Likewise.
22321         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
22322         use in the history chain.
22323         * doc/extend.texi: Document pragma GCC diagnostic changes.
22324
22325 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
22326
22327         * dwarf2out.c (add_linkage_name): New function.  Don't add
22328         anything to DW_TAG_member DIEs.
22329         (add_name_and_src_coords_attributes): Use it.
22330         (gen_variable_die): Call it for C++ static data members if
22331         specification is DW_TAG_member.
22332
22333         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
22334         C++ char16_t and char32_t.
22335
22336         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
22337         * genattrtab.c: Include vecprim.h.
22338         (cached_attrs, cached_attr_count, attrs_seen_once,
22339         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
22340         attrs_cached_after): New variables.
22341         (find_attrs_to_cache): New function.
22342         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
22343         (write_test_expr): Add attrs_cached argument, return it too,
22344         attempt to cache non-const attributes used more than once in
22345         a single case handling.
22346         (write_attr_get): Use find_attrs_to_cache, for caching candidates
22347         emit cached_* variables.  Adjust write_attr_set callers.
22348         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
22349         to find attributes that should be cached in this block.  Adjust
22350         write_test_expr callers.
22351         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
22352         callers.
22353         (make_automaton_attrs): Adjust write_test_expr caller.
22354
22355         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
22356         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
22357         (make_automaton_attrs): If find_tune_attr returns non-NULL,
22358         write separate internal_dfa_insn_code_* and insn_default_latency_*
22359         functions for each attribute's value and emit init_sched_attrs
22360         function and function pointers.
22361         * genattr.c (const_attrs, reservations): New variables.
22362         (gen_attr): Add const attributes to const_attrs vector.
22363         (check_tune_attr, find_tune_attr): New functions.
22364         (main): Add reservations to reservations vector.  If find_tune_attr
22365         returns true, add prototype for init_sched_attrs and make
22366         internal_dfa_insn_code and insn_default_latency function pointers,
22367         otherwise define init_sched_attrs as dummy macro.
22368         * cfgexpand.c: Include insn-attr.h.
22369         (gimple_expand_cfg): Call init_sched_attrs.
22370
22371         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
22372
22373         PR target/44575
22374         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
22375         va_arg from a set of register save slots into a temporary,
22376         if the container is bigger than type size, do the copying
22377         using smaller mode or using memcpy.
22378
22379         PR bootstrap/44426
22380         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
22381         prototype.
22382         (sel_print_to_dot): Remove macro.
22383         (sel_print): Likewise.  New prototype.
22384         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
22385         (sel_print): New function.
22386
22387 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22388
22389         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
22390         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
22391
22392 2010-06-21  Nick Clifton  <nickc@redhat.com>
22393
22394         * config/rx/rx.h (PTRDIFF_TYPE): Define.
22395         (SMALL_REGISTER_CLASS): Define (to zero).
22396         (PRINT_OPERAND): Delete.
22397         (PRINT_OPERAND_ADDRESS): Delete.
22398         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
22399         (rx_print_operand_address): Delete prototype.
22400         * config/rx/rx.c (rx_print_operand): Make static.
22401         Allow %H and %L to handle CONST_DOUBLEs.
22402         (rx_print_operand_address): Make static.
22403         (rx_gen_move_template): Rename local variable 'template' to
22404         out_template.
22405         (rx_function_arg): Do not pass unknown sized objects in registers.
22406         (TARGET_PRINT_OPERAND): Define.
22407         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22408
22409 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
22410
22411         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
22412
22413 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
22414
22415         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
22416         stack-alignment for simple leaf-functions.
22417
22418 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
22419
22420         * doc/install.texi: Document bootstrap-lto.
22421
22422 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
22423
22424         PR debug/44248
22425         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
22426         (input_function): Drop them here, if VTA is disabled.
22427
22428 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
22429
22430         PR target/44546
22431         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
22432         New predicate.
22433         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
22434         ix86_swapped_fp_comparsion_operator instead of
22435         ix86_fp_comparison_operator.
22436
22437         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
22438         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
22439         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
22440         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
22441         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
22442         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
22443
22444 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
22445
22446         PR other/32998
22447         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
22448         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
22449         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
22450         (decode_cmdline_option): Update for this return value.  Set
22451         orig_option_with_args_text field.  Set arg field for unknown
22452         options.  Make static.
22453         (decode_cmdline_options_to_array): New.
22454         (prune_options): Update handling of find_opt return value.
22455         * opts.c (read_cmdline_option): Take decoded option.  Return void.
22456         (read_cmdline_options): Take decoded options.
22457         (decode_options): Add parameters for decoded options.  Use
22458         decode_cmdline_options_to_array.  Use decoded options for -O
22459         scan.  Use integral_argument for -O parameters.  Update call to
22460         read_cmdline_options.
22461         (enable_warning_as_error): Update handling of find_opt return value.
22462         * opts.h: Update comment on unknown options.
22463         (struct cl_decoded_option): Update comments on opt_index and arg.
22464         Add orig_option_with_args_text.
22465         (decode_cmdline_option): Remove.
22466         (decode_cmdline_options_to_array): Declare.
22467         (decode_options): Update prototype.
22468         * toplev.c (save_argv): Remove.
22469         (save_decoded_options, save_decoded_options_count): New.
22470         (read_integral_parameter): Remove.
22471         (print_switch_values): Use decoded options.
22472         (toplev_main): Don't set save_argv.  Update call to decode_options.
22473         * toplev.h (read_integral_parameter): Remove.
22474         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
22475
22476 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
22477
22478         PR target/44072
22479         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
22480         immediate.
22481         * constraints.md (Pw, Px): New constraints.
22482         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
22483
22484 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
22485
22486         * config/i386/sse.md (fma4modesuffixf4): Removed.
22487         (ssemodesuffixf2s): Likewise.
22488         (ssemodesuffixf4): Likewise.
22489         (ssemodesuffixf2c): Likewise.
22490         (ssescalarmodesuffix2s): Likewise.
22491         (avxmodesuffixf2c): Likewise.
22492         (ssemodesuffix): New.
22493         (ssescalarmodesuffix): Likewise.
22494         Update patterns with ssemodesuffix and ssescalarmodesuffix.
22495
22496 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
22497
22498         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
22499
22500 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22501
22502         * stor-layout.c (debug_rli): Remove unused local variables.
22503
22504 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
22505
22506         PR rtl-optimization/40900
22507         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
22508         original expression for later reuse.
22509         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
22510         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
22511
22512 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
22513
22514         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
22515         double_int_fits_in_uhwi_p): Implement as static inline.
22516         (double_int_xor): New inline function.
22517         (double_int_lrotate, double_int_rrotate, double_int_max,
22518         double_int_umax, double_int_smax, double_int_min, double_int_umin,
22519         double_int_smin): Declare.
22520         (lrotate_double, rrotate_double): Remove declaration.
22521         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
22522         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
22523         (double_int_lrotate, double_int_rrotate, double_int_max,
22524         double_int_umax, double_int_smax, double_int_min, double_int_umin,
22525         double_int_smin): New function.
22526         * fold-const.c (int_const_binop): Clean up, use double_int_*
22527         functions.
22528         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
22529         double_int_* and immed_double_int_const functions.
22530
22531 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
22532
22533         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
22534         * function.c (types_used_by_cur_var_decl): Likewise.
22535         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
22536
22537 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
22538
22539         * tree.h (record_layout_info): Change type of pending_statics field
22540         to a VEC.
22541         * stor-layout.c (start_record_layout): Store NULL into
22542         pending_statics.
22543         (debug_rli): Call debug_vec_tree instead of debug_tree.
22544         (place_field): Likewise.
22545         (finish_record_layout): Likewise.
22546
22547 2010-06-18  Alan Modra  <amodra@gmail.com>
22548
22549         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
22550
22551 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22552
22553         PR target/43740
22554         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
22555         for SET source operand from SET destination operand.
22556
22557 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
22558
22559         PR rtl-optimization/39871
22560         * reload1.c (init_eliminable_invariants): For flag_pic, disable
22561         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
22562         (function_invariant_p): Rule out a plus of frame or arg pointer with
22563         a SYMBOL_REF.
22564         * ira.c (find_reg_equiv_invariant_const): Likewise.
22565
22566 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
22567
22568         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
22569         print_operand_address and puts to output the operand for CONST.
22570
22571 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
22572
22573         PR debug/44572
22574         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
22575         hook.
22576
22577 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22578
22579         * v850-protos.h (print_operand): Delete.
22580         (print_operand_address): Delete.
22581         * v850.h (PRINT_OPERAND): Delete.
22582         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22583         (PRINT_OPERAND_ADDRESS): Delete.
22584         * v850.c (print_operand_address): Rename to...
22585         (v850_print_operand_address): ...this.  Make static. Call
22586         v850_print_operand.
22587         (print_operand): Rename to...
22588         (v850_print_operand): ...this.  Make static.  Call
22589         v850_print_operand_address.
22590         (v850_print_operand_punct_valid_p): New function.
22591         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22592         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22593
22594 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22595
22596         * config/sh/sh-protos.h (print_operand): Delete.
22597         (print_operand_address): Delete.
22598         * config/sh/sh.h (PRINT_OPERAND): Delete.
22599         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22600         (PRINT_OPERAND_ADDRESS): Delete.
22601         * config/sh/sh.c (sh_print_operand_address): Make static.
22602         (sh_print_operand): Make static.  Call sh_print_operand_address
22603         and sh_print_operand.
22604         (sh_print_operand_punct_valid_p): New function.
22605         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22606         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22607
22608 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22609
22610         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
22611         (mcore_print_operand_address): Delete.
22612         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
22613         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22614         (PRINT_OPERAND_ADDRESS): Delete.
22615         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
22616         (mcore_print_operand): Make static.
22617         (mcore_print_operand_punct_valid_p): New function.
22618         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
22619         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22620
22621 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22622
22623         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
22624         (print_operand_address): Delete.
22625         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
22626         (PRINT_OPERAND_ADDRESS): Delete.
22627         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
22628         static.
22629         (m68hc11_print_operand): Make static.
22630         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22631
22632 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22633
22634         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
22635         (m32r_print_operand_address): Delete.
22636         * config/m32r/m32r.h (m32r_punct_chars): Delete.
22637         (PRINT_OPERAND): Delete.
22638         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22639         (PRINT_OPERAND_ADDRESS): Delete.
22640         * config/m32r/m32r.c (m32r_punct_chars): Make static.
22641         (m32r_print_operand_address): Make static.
22642         (m32r_print_operand): Make static.
22643         (m32r_print_operand_punct_valid_p): New function.
22644         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22645         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22646
22647 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22648
22649         * config/iq2000/iq2000-protos.h (print_operand): Delete.
22650         (print_operand_address): Delete.
22651         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
22652         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22653         (PRINT_OPERAND_ADDRESS): Delete.
22654         (iq2000_print_operand_punct): Delete.
22655         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
22656         (iq2000_print_operand_address): Make static.
22657         (iq2000_print_operand): Make static.
22658         (iq2000_print_operand_punct_valid_p): New function.
22659         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22660         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22661
22662 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22663
22664         * config/frv/frv-protos.h (frv_print_operand): Delete.
22665         (frv_print_operand_address): Delete.
22666         * config/frv/frv.h (PRINT_OPERAND): Delete.
22667         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22668         (PRINT_OPERAND_ADDRESS): Delete.
22669         * config/frv/frv.c (frv_print_operand_address): Make static.
22670         (frv_print_operand): Make static.
22671         (frv_print_operand_punct_valid_p): New function.
22672         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22673         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22674
22675 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22676
22677         * tree.h (vec_member): Declare.
22678         * tree.c (vec_member): Define.
22679
22680 2010-06-17  Richard Guenther  <rguenther@suse.de>
22681
22682         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
22683         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
22684
22685 2010-06-17  Richard Guenther  <rguenther@suse.de>
22686
22687         * tree-inline.c (declare_return_variable): Remove bogus code.
22688
22689 2010-06-17  Richard Guenther  <rguenther@suse.de>
22690
22691         * gimplify.c (gimplify_bind_expr): Always promote complex
22692         and vector variables to registers if possible.
22693
22694 2010-06-17  Richard Guenther  <rguenther@suse.de>
22695
22696         * expr.c (get_inner_reference): Use double_int for bit_offset
22697         calculation.
22698
22699 2010-06-16  DJ Delorie  <dj@redhat.com>
22700
22701         * common.opt (-fstrict-volatile-bitfields): new.
22702         * doc/invoke.texi: Document it.
22703         * fold-const.c (optimize_bit_field_compare): For volatile
22704         bitfields, use the field's type to determine the mode, not the
22705         field's size.
22706         * expr.c (expand_assignment): Likewise.
22707         (get_inner_reference): Likewise.
22708         (expand_expr_real_1): Likewise.
22709         * expmed.c (store_fixed_bit_field): Likewise.
22710         (extract_bit_field_1): Likewise.
22711         (extract_fixed_bit_field): Likewise.
22712
22713 2010-06-16  Richard Guenther  <rguenther@suse.de>
22714
22715         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
22716
22717 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
22718
22719         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
22720         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
22721         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
22722         * debug.c: Likewise.
22723         * sdbout.c: Likewise.
22724         * vmsdbgout.c: Likewise.
22725         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
22726         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
22727         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
22728         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
22729         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
22730         * dwarf2out.c (dw_fde_struct): New fields
22731         dw_fde_vms_{end,begin}_prologue.
22732         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
22733         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
22734         (dwarf2out_vms_end_prologue): New function.
22735         (dwarf2out_vms_begin_epilogue): New function.
22736         (dw_val_struct): New value dw_val_class_vms_delta.
22737         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
22738         begin_epilogue for VMS.
22739         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
22740         new static functions.
22741         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
22742         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
22743         static functions.
22744         (print_die): New case dw_val_class_vms_delta.
22745         (attr_checksum): Likewise.
22746         (same_dw_val_p: Likewise.
22747         (size_of_die): Likewise.
22748         (value_format): Likewise.
22749         (output_die): Likewise.
22750         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
22751         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
22752         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
22753         dwarf2out_cfi_begin_epilogue
22754         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
22755
22756 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
22757
22758         * config/cris/cris-protos.h (cris_print_operand): Delete.
22759         (cris_print_operand_address): Delete.
22760         * config/cris/cris.h (PRINT_OPERAND): Delete.
22761         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22762         (PRINT_OPERAND_ADDRESS): Delete.
22763         * config/cris/cris.c (cris_print_operand_address): Make static.
22764         (cris_print_operand): Make static.
22765         (cris_print_operand_punct_valid_p): New function.
22766         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22767         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22768
22769 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
22770
22771         * config/arm/arm-protos.h (arm_print_operand): Delete.
22772         (arm_print_operand_address): Delete.
22773         * config/arm/arm.h (PRINT_OPERAND): Delete.
22774         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22775         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
22776         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
22777         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
22778         (arm_print_operand): Make static.
22779         (arm_print_operand_punct_valid_p): New function.
22780         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22781         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22782
22783 2010-06-16  Nick Clifton  <nickc@redhat.com>
22784
22785         * config/rx/constraints.md (NEGint4): New constraint.
22786         * config/rx/rx.md (attr cc): Add set_zsc.
22787         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
22788         initialised.
22789         (cmpsf): Likewise.
22790         (call_internal): Clobber the cc0 register.
22791         (call_value_internal): Likewise.
22792         (cstoresi4): Likewise.
22793         (movsieq): Likewise.
22794         (movsine): Likewise.
22795         (addsi3): Add alternative to handle small negative constants.
22796         (sunsi3): Likewise.
22797         (addsi3): Do not set the O bit in the cc0 register.
22798         (adddi3): Likewise.
22799         (subsi3): Likewise.
22800         (subdi3): Likewise.
22801         (andsi3): Reorder alternatives to prefer shorter forms.
22802         (mulsi3): Likewise.
22803         (iorsi3): Likewise.
22804         (negsi2): Note that the cc0 flags are set.
22805         (rotlsi3): Note that only the Z and S bits are set in cc0.
22806         (lshrsi3): Likewise.
22807         (ashlsi3): Likewise.
22808         (subsf3): Use %Q for the MEM operand.
22809         (fix_truncsfsi2): Likewise.
22810         (floatsisf2): Likewise.
22811         (bitset): Remove early clobber from destination.
22812         (bitset_in_memory): Likewise.
22813         (lrintsf2): Clobber the cc0 register.
22814         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
22815         (rx_print_operand): Handle %N.
22816
22817 2010-06-16  Jan Hubicka  <jh@suse.cz>
22818
22819         * df-core.c (df_compact_blocks): Free problem_temps vector.
22820
22821 2010-06-16  Martin Jambor  <mjambor@suse.cz>
22822
22823         PR tree-optimization/43905
22824         * tree-sra.c: Include tree-inline.h.
22825         (create_abstract_origin): Removed.
22826         (modify_function): Version the call graph node instead of creating
22827         abstract origins and dealing with same_body aliases.
22828         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
22829         function is versionable.
22830         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
22831
22832 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
22833
22834         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
22835         (CHOOSE_DYNAMIC_LINKER): Update.
22836
22837 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
22838
22839         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
22840         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
22841         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
22842         *prefetch_3dnow_rex.
22843
22844 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
22845
22846         * target.h (struct asm_out):Add declare_constant_name field.
22847         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22848         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
22849         * output.h (default_asm_declare_constant_name): Declare.
22850         (assemble_label): Update prototype.
22851         * varasm.c (assemble_constant_contents): Use
22852         targetm.asm_out.declare_constant_name target hook.
22853         (assemble_label): Add 'file' argument.
22854         (default_asm_declare_constant_name): New function.
22855         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
22856         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
22857         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
22858
22859         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
22860         * config/darwin.c (darwin_asm_declare_constant_name): New function.
22861         (machopic_output_indirection): Update assemble_label argument list.
22862         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
22863         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22864
22865 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
22866
22867         PR middle-end/44391
22868         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22869         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
22870
22871 2010-06-15  Richard Guenther  <rguenther@suse.de>
22872
22873         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
22874
22875 2010-06-15  Paul Brook  <paul@codesourcery.com>
22876
22877         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
22878         hard-float ABI.
22879
22880 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
22881
22882         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
22883         don't get a vector type for output.
22884
22885 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
22886
22887         PR fortran/44536
22888         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
22889         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
22890         (LANG_HOOKS_DECLS): Add it.
22891         * gimplify.c (omp_notice_variable): Call
22892         lang_hooks.decls.omp_report_decl.
22893
22894 2010-06-15  Martin Jambor  <mjambor@suse.cz>
22895
22896         PR lto/44464
22897         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
22898         on the newly dead SSA name.
22899
22900 2010-06-15  Alan Modra  <amodra@gmail.com>
22901
22902         * doc/invoke.texi: Add mcmodel to powerpc options.
22903         * configure.ac: Add HAVE_LD_LARGE_TOC test.
22904         * configure: Regenerate.
22905         * config.in: Regenerate.
22906         * config/rs6000/linux64.opt (mcmodel): New.
22907         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
22908         (TARGET_CMODEL, SET_CMODEL): Define.
22909         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
22910         select CMODEL_MEDIUM default.
22911         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
22912         (TARGET_CMODEL): Define default.
22913         * config/rs6000/rs6000.c (cmodel): New variable.
22914         (rs6000_explicit_options): Add cmodel field.
22915         (rs6000_handle_option): Handle -mcmodel.
22916         (create_TOC_reference): Add largetoc_reg param.  Generate high,
22917         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
22918         (rs6000_delegitimize_address): Recognise new toc reference rtl
22919         and minimal-toc rtl.
22920         (rs6000_legitimize_reload_address): Handle new toc references.
22921         (print_operand_address): Handle legitimate_constant_pool_address_p
22922         match before lo_sum.
22923         (rs6000_eliminate_indexed_memrefs): Tidy.
22924         (rs6000_emit_move): Tweak threshold for inlining constants.
22925         Keep rs6000_emit_allocate_stack large stack frame offsets
22926         loaded into r0 inline.
22927         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
22928         (tocrel_base, tocrel_offset): New variables.
22929         (toc_relative_expr_p): Set them here.
22930         (print_operand_address): Skip over any offset on constant pool address.
22931         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
22932         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
22933         (offsettable_ok_by_alignment): New function.
22934         (rs6000_emit_move): Address suitably aligned local symbol_refs
22935         relative to the toc pointer for -mcmodel=medium.
22936         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
22937         strict param.  Allow lo_sum version of addressing.  Verify reg
22938         used for -mminimal-toc and -mcmodel != small.  Update all callers.
22939         * config/rs6000/constraints.md: Update for above change.
22940         * config/rs6000/predicates.md: Likewise.
22941         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
22942         code.
22943         (tls_gd): Split for -mcmodel=medium/large.
22944         (tls_gd_high, tls_gd_low): New.
22945         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
22946         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
22947         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
22948         (largetoc_high, largetoc_low): New.
22949         (cmptf_internal2): Add clobber.
22950         * config/rs6000/rs6000-protos.h: Update.
22951
22952 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
22953
22954         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
22955         true if no prefetch is going to be generated for a given group.
22956         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
22957         estimate the prefetch_count.
22958         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
22959         prefetch count by considering the unroll_factor and prefetch_mod
22960         for is_loop_prefetching_profitable.
22961
22962 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
22963
22964         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
22965         anything if the argument is not a MEM.
22966
22967 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
22968
22969         PR debug/43650
22970         PR debug/44181
22971         PR debug/44247
22972         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
22973         debug stmts.
22974         (canonicalize_loop_ivs): Likewise.
22975
22976 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
22977
22978         PR debug/43656
22979         * haifa-sched.c (setup_insn_reg_pressure_info,
22980         update_register_pressure): Reject debug insns.
22981         (ready_sort): Don't setup reg pressure for debug insns.
22982         (schedule_insn): Don't update reg pressure for debug insns.
22983
22984 2010-06-14  Richard Guenther  <rguenther@suse.de>
22985
22986         * lto-streamer.c (cached_bp): Remove.
22987         (bitpack_delete): Likewise.
22988         (bitpack_create): Likewise.
22989         (bp_get_next_word): Likewise.
22990         (bp_pack_value, bp_unpack_value): Move ...
22991         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
22992         Re-implement.
22993         (struct bitpack_d): Likewise.
22994         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
22995         New inline functions.
22996         * lto-streamer-out.c (lto_output_bitpack): Remove.
22997         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
22998         (pack_value_fields): Adjust.
22999         (lto_write_tree): Likewise.
23000         (output_gimple_stmt): Likewise.
23001         (output_function): Likewise.
23002         * lto-streamer-in.c (input_gimple_stmt): Adjust.
23003         (input_function): Likewise.
23004         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23005         (lto_input_bitpack): Remove.
23006         (lto_materialize_tree): Adjust.
23007         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
23008         * lto-cgraph.c (lto_output_edge): Adjust.
23009         (lto_output_node): Likewise.
23010         (lto_output_varpool_node): Likewise.
23011         (lto_output_ref): Likewise.
23012         (input_node): Likewise.
23013         (input_varpool_node): Likewise.
23014         (input_ref): Likewise.
23015         (input_edge): Likewise.
23016         (output_node_opt_summary): Likewise.
23017         (input_node_opt_summary): Likewise.
23018         * ipa-pure-const.c (pure_const_write_summary): Likewise.
23019         (pure_const_read_summary): Likewise.
23020         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
23021         (ipa_read_indirect_edge_info): Likewise.
23022         (ipa_write_node_info): Likewise.
23023         (ipa_read_node_info): Likewise.
23024
23025 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23026
23027         PR target/44534
23028         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
23029         (vec_extract_lo_v16hi): Likewise.
23030         (vec_extract_lo_v32qi): Likewise.
23031
23032 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23033
23034         PR bootstrap/44426
23035         * tree.h (build_call_expr): Don't define as vararg macro, instead
23036         add a prototype.
23037         * builtins.c (build_call_nofold): Remove.
23038         (expand_builtin_int_roundingfn, expand_builtin_pow,
23039         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
23040         expand_builtin_memset_args, expand_builtin_strcmp,
23041         expand_builtin_strncmp, expand_builtin_memory_chk): Use
23042         build_call_nofold_loc instead of build_call_nofold.
23043         (build_call_expr): New function.
23044
23045         PR tree-optimization/44508
23046         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
23047         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
23048         don't eliminate trivially dead stmts.
23049         * tree-vrp.c (vrp_finalize): Pass false as last argument
23050         to substitute_and_fold.
23051         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
23052         to substitute_and_fold.
23053         * tree-ssa-ccp.c (ccp_finalize): Likewise.
23054
23055         PR bootstrap/44509
23056         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
23057
23058 2010-06-14  Ira Rosen  <irar@il.ibm.com>
23059
23060         PR tree-optimization/44507
23061         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
23062         to build initial vector for BIT_AND_EXPR.
23063         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
23064
23065 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23066
23067         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
23068         adjust z10prop set_attr.
23069
23070 2010-06-13  Jan Hubicka  <jh@suse.cz>
23071
23072         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
23073         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
23074         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
23075         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
23076         datastructure checks into checking asserts.
23077         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
23078         * tree-ssa-sccvn.c (VN_INFO): Likewise.
23079         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
23080         df_ref_create_structure): Likewise.
23081         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
23082         pool_free): Use gcc_checking_assert.
23083         * alias.c (get_alias_set): Likewise.
23084         * var-tracking.c (variable_htab_free, shared_hash_copy,
23085         canonicalize_values_mark, variable_merge_over_cur): Likewise.
23086         * lto-streamer.c (bp_unpack_value): Likewise.
23087
23088 2010-06-13  Richard Guenther  <rguenther@suse.de>
23089
23090         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
23091         Do not stream but initialize TYPE_CANONICAL to NULL.
23092         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
23093         * gimple.c (gimple_types_compatible_p): Disregard
23094         TYPE_STRUCTURAL_EQUALITY_P.
23095         (gimple_register_type): Use TYPE_CANONICAL as cache.
23096         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
23097         before registering common types.
23098         * config/i386/i386.c (ix86_function_arg_boundary): Do not
23099         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
23100         * tree.h (TYPE_CANONICAL): Clarify documentation.
23101
23102 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
23103
23104         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23105         LIBCALL_VALUE): Remove macros.
23106         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
23107         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23108         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23109         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
23110         (ia64_function_value): Make static. Handle receiving the function
23111         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
23112
23113 2010-06-12  Jan Hubicka  <jh@suse.cz>
23114
23115         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
23116         at correct place.
23117
23118 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
23119
23120         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
23121
23122 2010-06-12  Jan Hubicka  <jh@suse.cz>
23123
23124         * df-core.c (df_clear_bb_info): New function.
23125         (df_set_blocks): bb_info is always allocated.
23126         (df_get_bb_info): Use block_info_elt_size.
23127         (df_set_bb_info): Likewise.
23128         (df_compact_blocks): Update for new block_info.
23129         (grow_bb_info): New function.
23130         * df-problems.c (df_grow_bb_info): Move to df-core.c
23131         (df_rd_set_bb_info): Remove.
23132         (df_rd_free_bb_info): Do not free block pool.
23133         (df_rd_alloc): Do not create pool, use check for
23134         obstack presence instead of NULL pointer for new blocks.
23135         (df_rd_free): DO not free alloc pool; clear block_info.
23136         (problem_RD): Add size of block info structure.
23137         (df_lr_set_bb_info): Remove.
23138         (df_lr_free_bb_info): Do not free block pool.
23139         (df_lr_alloc): Do not create pool, use check for
23140         obstack presence instead of NULL pointer for new blocks.
23141         (df_lr_free): DO not free alloc pool; clear block_info.
23142         (problem_LR): Add size of block info structure.
23143         (df_live_set_bb_info): Remove.
23144         (df_live_free_bb_info): Do not free block pool.
23145         (df_live_alloc): Do not create pool, use check for
23146         obstack presence instead of NULL pointer for new blocks.
23147         (df_live_free): DO not free alloc pool; clear block_info.
23148         (problem_LIVE): Add size of block info structure.
23149         (problem_CHAIN): Add size of block info structure.
23150         (df_byte_lr_set_bb_info): Remove.
23151         (df_byte_lr_free_bb_info): Do not free block pool.
23152         (df_byte_lr_alloc): Do not create pool, use check for
23153         obstack presence instead of NULL pointer for new blocks.
23154         (df_byte_lr_free): DO not free alloc pool; clear block_info.
23155         (problem_BYTE_LR): Add size of block info structure.
23156         (problem_NOTE): Add size of block info structure.
23157         (df_byte_MD_set_bb_info): Remove.
23158         (df_byte_MD_free_bb_info): Do not free block pool.
23159         (df_byte_MD_alloc): Do not create pool, use check for
23160         obstack presence instead of NULL pointer for new blocks.
23161         (df_byte_MD_free): DO not free alloc pool; clear block_info.
23162         (problem_BD): Add size of block info structure.
23163         * df-scan.c (df_scan_free_internal): Free block pool.
23164         (df_scan_set_bb_info): Remove.
23165         (df_scan_free_bb_info): Check for artificial_defs instead
23166         of bb_info being non-NULL.
23167         (df_scan_alloc): DO not create df_scan_block pool.
23168         (problem_SCAN): Set size of block info.
23169         (df_bb_refs_record): Do not allocate bb_info.
23170         * df.h (df_problem): Add block_info_elt_size.
23171         (struct dataflow): Change block_info to void *.
23172         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
23173         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
23174         in-line structures.
23175
23176 2010-06-12  Jan Hubicka  <jh@suse.cz>
23177
23178         PR tree-optimize/44485
23179         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
23180         containing use of return value of noreturn function.
23181
23182 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
23183
23184         * targhooks.c (default_function_value): Don't use
23185         FUNCTION_OUTGOING_VALUE.
23186         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
23187         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
23188
23189 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
23190
23191         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
23192         Add crtfastmath.o to extra_parts.
23193         * config/mips/crtfastmath.c: New.
23194         * config/mips/linux.h (ENDFILE_SPEC): New.
23195
23196 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
23197
23198         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
23199         old_type in parameter.
23200         (gcc_type_for_value): Update call to gcc_type_for_interval.
23201         (compute_type_for_level_1): Renamed compute_type_for_level.
23202         Update call to gcc_type_for_interval.
23203
23204 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23205
23206         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
23207         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
23208
23209 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23210
23211         * opts-common.c: Include options.h.
23212         (integral_argument): Move from opts.c.
23213         (decode_cmdline_option): New.  Based on read_cmdline_option.
23214         * opts.c (integral_argument): Move to opts-common.c.
23215         (read_cmdline_option): Move most contents to
23216         decode_cmdline_option.  Use %qs in diagnostics.
23217         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
23218         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
23219         decode_cmdline_option): New.
23220
23221 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23222
23223         PR target/44481
23224         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
23225         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
23226         (partiysi2_cmp): Ditto.
23227         (*partiyhi2_cmp): Ditto.
23228         (*parityqi2_cmp): Remove.
23229
23230 2010-06-11  Jan Hubicka  <jh@suse.cz>
23231
23232         * bitmap.h (bmp_iter_next_bit): New.
23233         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
23234
23235 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
23236             Eric Botcazou  <ebotcazou@adacore.com>
23237
23238         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
23239         computed cost.
23240
23241 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23242
23243         * config/i386/i386.md (unspec): New define_c_enum.
23244         (unspecv): Ditto.
23245
23246 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
23247
23248         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
23249
23250 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
23251
23252         PR middle-end/44483
23253         * tree-if-conv.c (bb_predicate_s): New struct.
23254         (bb_predicate_p): New.
23255         (bb_has_predicate): New.
23256         (bb_predicate): New.
23257         (set_bb_predicate): New.
23258         (bb_predicate_gimplified_stmts): New.
23259         (set_bb_predicate_gimplified_stmts): New.
23260         (add_bb_predicate_gimplified_stmts): New.
23261         (init_bb_predicate): New.
23262         (free_bb_predicate): New.
23263         (is_predicated): Use bb_predicate.
23264         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
23265         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
23266         before processing their successors.
23267         (clean_predicate_lists): Removed.
23268         (find_phi_replacement_condition): Use bb_predicate.
23269         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
23270         computations.
23271         (insert_gimplified_predicates): New.
23272         (combine_blocks): Call insert_gimplified_predicates.
23273         (tree_if_conversion): Call free_bb_predicate instead of
23274         clean_predicate_lists.
23275
23276 2010-10-11  Paul Brook  <paul@codesourcery.com>
23277
23278         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
23279         * config/arm/arm.c (all_architectures): Change v7e-m default to
23280         cortexm4.
23281         * config/arm/arm-cores.def: Add cortex-m4.
23282         * config/arm/arm-tune.md: Regenerate.
23283
23284 2010-06-11  Jan Hubicka  <jh@suse.cz>
23285
23286         * ipa-pure-const.c (special_builtlin_state): New function.
23287         (check_call): Use it instead of special casign BUILT_IN_RETURN.
23288         (propagate_pure_const): Use it.
23289
23290 2010-06-11  Jan Hubicka  <jh@suse.cz>
23291
23292         * df-problems.c (df_live_scratch): Convert to bitmap_head.
23293         (df_live_alloc): Initialize df_live_scratch when initializing
23294         problem_data.
23295         (df_live_transfer_function): Update uses of df_live_scratch.
23296         (df_live_free): Free problem_data; clear df_live_scratch before
23297         releasing the obstack.
23298         (df_md_free): Free problem data.
23299
23300 2010-06-11  Jan Hubicka  <jh@suse.cz>
23301
23302         * doc/invoke.texi (Wsuggest-attribute): Document.
23303         (Wmissing-noreturn): Remove.
23304         * ipa-pure-const.c (warn_function_noreturn): New function.
23305         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
23306         warn_missing_noreturn.
23307         * common.opt (Wsuggest-attribute=noreturn): New.
23308         * tree-flow.h (warn_function_noreturn): Declare.
23309         * tree-cfg.c (execute_warn_function_noreturn): Use
23310         warn_function_noreturn.
23311         (gate_warn_function_noreturn): New.
23312         (pass_warn_function_noreturn): Update.
23313
23314 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23315
23316         * c-typeck.c (handle_warn_cast_qual): Add loc
23317         parameter. Improve warning message.
23318         (build_c_cast): Pass location to handle_warn_cast_qual.
23319
23320 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23321
23322         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
23323         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
23324         insn mnemonic.
23325         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
23326
23327 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
23328
23329         Fix bootstap on mips
23330         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
23331         be naming typedefs.
23332
23333 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
23334
23335         * system.h (helper_const_non_const_cast): New inline for
23336         gcc version <= 4.0.
23337         (CONST_CAST2): For gcc version <= 4.0 use
23338         new helper to do const/non-const casting.
23339
23340 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23341
23342         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
23343         * Makefile.in (OBJS-common): Include insn-enums.o.
23344         (insn-enums.o): New rule.
23345         (simple_generated_c): Add insn-enums.c.
23346         (build/genenums.o): New rule.
23347         (genprogmd): Add "enums".
23348         * genconstants.c (print_enum_type): Declare a C string array
23349         for each enum.
23350         * genenums.c: New file.
23351         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
23352         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
23353         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
23354
23355 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23356
23357         * doc/md.texi (define_enum_attr): Document.
23358         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
23359         * read-md.h (lookup_enum_type): Declare.
23360         * read-md.c (lookup_enum_type): New function.
23361         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
23362         * genattrtab.c (attr_desc): Add an enum_name field.
23363         (evaluate_eq_attr): Take the associated attribute as argument.
23364         Get the enum prefix from the enum_name field, if defined.
23365         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
23366         (simplify_test_exp): Pass attr to evaluate_eq_attr.
23367         (add_attr_value): New function, split out from...
23368         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
23369         (write_test_expr): Pass attr to evaluate_eq_attr.
23370         (write_attr_get): Use the enum_name as the enum tag, if defined.
23371         (write_attr_valueq): Use the enum_name as a prefix, if defined.
23372         (find_attr): Initialize enum_name.
23373         (main): Handle DEFINE_ENUM_ATTR.
23374         * gensupport.c (process_rtx): Likewise.
23375         * config/mips/mips.h (mips_tune_attr): Delete.
23376         * config/mips/mips.md (cpu): Use define_attr_enum.
23377
23378 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23379
23380         * doc/md.texi (define_c_enum, define_enum): Document.
23381         * read-md.h (md_constant): Add a parent_enum field.
23382         (enum_value, enum_type): New structures.
23383         (upcase_string, traverse_enum_types): Declare.
23384         * read-md.c (enum_types): New variable.
23385         (upcase_string, add_constant): New functions.
23386         (handle_constants): Don't create the hash table here.
23387         Use add_constant.
23388         (traverse_md_constants): Don't check for a null md_constants.
23389         (decimal_string, handle_enum, traverse_enum_types): New functions.
23390         (read_md_files): Initialize md_constants and md_enums.
23391         * genconstants.c (print_md_constant): Ignore info argument.
23392         Only print constants that belong to no enum.
23393         (print_enum_type): New function.
23394         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
23395         for each defined enum type.
23396         * config/mips/mips.md (processor): New define_enum.
23397         (unspec): New define_c_enum.
23398         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
23399         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
23400         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
23401         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
23402         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
23403         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
23404         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
23405         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
23406         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
23407         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
23408         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
23409         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
23410         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
23411         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
23412         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
23413         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
23414         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
23415         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
23416         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
23417         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
23418         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
23419         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
23420         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23421         (UNSPEC_RDDSP): Move to mips-dsp.md.
23422         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
23423         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
23424         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
23425         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
23426         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
23427         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
23428         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
23429         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
23430         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
23431         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
23432         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
23433         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
23434         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
23435         Moved to mips-dspr2.md.
23436         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
23437         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
23438         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
23439         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
23440         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
23441         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
23442         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23443         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23444         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23445         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23446         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23447         UNSPEC_LOONGSON_PSADBH)
23448         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23449         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23450         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
23451         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23452         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23453         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23454         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
23455         (cpu): Update comment.
23456         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
23457         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
23458         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
23459         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
23460         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
23461         UNSPEC_LOONGSON_PCMPEQ)
23462         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
23463         UNSPEC_LOONGSON_PINSR_0)
23464         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23465         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23466         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23467         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23468         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23469         UNSPEC_LOONGSON_PSADBH)
23470         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23471         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23472         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
23473         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23474         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23475         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23476         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
23477         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
23478         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
23479         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
23480         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
23481         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
23482         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
23483         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
23484         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
23485         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
23486         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
23487         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
23488         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
23489         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
23490         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
23491         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
23492         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
23493         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
23494         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
23495         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
23496         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23497         (UNSPEC_RDDSP): Moved from mips.md.
23498         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
23499         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
23500         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
23501         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
23502         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
23503         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
23504         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
23505         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
23506         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
23507         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
23508         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
23509         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
23510         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
23511         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
23512         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
23513         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
23514         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
23515         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
23516         (UNSPEC_SCC): Moved from mips.md.
23517         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
23518         "processor_type" to "processor".
23519         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
23520         * config/mips/mips.h (processor_type): Delete.
23521         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
23522         "processor_type" to "processor".
23523
23524 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23525
23526         * configure.ac (tm_include_list): Add insn-constants.h.
23527         * configure: Regenerate.
23528         * Makefile.in (GTM_H): Move insn-constants.h here from...
23529         (TM_H): ...here.
23530         * mkconfig.sh: Remove special handling for insn-constants.h.
23531
23532 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23533
23534         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
23535         (BUILD_MD): ...this new variable.
23536         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
23537         that include the old contents of simple_generated_h and
23538         simple_generated_c.
23539         (simple_generated_h, simple_generated_c): Include them.  Add
23540         insn-constants.h.
23541         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
23542         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
23543         Remove these dependencies from the main rule and include
23544         insn-conditions.md in the command line only if it appears
23545         in the dependency list.
23546         (insn-constants.h, s-constants): Delete.
23547         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
23548         or gensupport.h.
23549         (build/genmddeps.o): Likewise.
23550         (genprogrtl): New variable that contains everything from genprogmd
23551         except mddeps and constants.
23552         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
23553         depend on $(BUILD_MD)
23554         (genprog): New variable.  Make these programs depend on
23555         $(BUILD_ERRORS).
23556         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
23557         (main): Use read_md_files instead of init_rtx_reader_args.
23558         * genconstants.c: As for genmddeps.c.
23559         * read-md.h (read_skip_construct): Declare.
23560         * read-md.c (read_skip_construct): New function.
23561         (handle_file): Allow a null handle_directive, skipping the
23562         construct if so.
23563         (parse_include): Update the comment accordingly.
23564
23565 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23566
23567         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
23568         * genmddeps.c: Include read-md.h.
23569         (main): Call init_rtx_reader_args instead of init_md_reader_args.
23570         * genattr.c (main): Likewise.
23571         * genattrtab.c (main): Likewise.
23572         * genautomata.c (main): Likewise.
23573         * gencodes.c (main): Likewise.
23574         * genconditions.c (main): Likewise.
23575         * genconfig.c (main): Likewise.
23576         * genconstants.c (main): Likewise.
23577         * genemit.c (main): Likewise.
23578         * genextract.c (main): Likewise.
23579         * genflags.c (main): Likewise.
23580         * genopinit.c (main): Likewise.
23581         * genoutput.c (main): Likewise.
23582         * genpeep.c (main): Likewise.
23583         * genrecog.c (main): Likewise.
23584         * genpreds.c (main): Likewise.
23585         * gensupport.h (in_fname): Move to read-md.h.
23586         (init_md_reader_args_cb): Rename to...
23587         (init_rtx_reader_args_cb): ...this and return a bool.
23588         (init_md_reader_args): Rename to...
23589         (init_rtx_reader_args): ...this and return a bool.
23590         (include_callback): Move to read-md.h.
23591         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
23592         (file_name_list, first_dir_md_include): Move to read-md.c
23593         (first_bracket_include): Delete unused variable.
23594         (last_dir_md_include): Move to read-md.c.
23595         (process_include): Delete, moving code to read-md.c:handle_include.
23596         (process_rtx): Don't handle INCLUDE.
23597         (save_string): Delete.
23598         (rtx_handle_directive): New function.
23599         (init_md_reader_args_cb): Rename to...
23600         (init_rtx_reader_args_cb): ...this and return a boolean success value.
23601         Use read_md_args.
23602         (init_md_reader_args): Rename to...
23603         (init_rtx_reader_args): ...this and return a boolean success value.
23604         * rtl.def (INCLUDE): Delete.
23605         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
23606         argument.
23607         * read-rtl.c (read_conditions): Don't gobble ')' here.
23608         (read_mapping): Likewise.
23609         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
23610         Handle top-level non-rtx constructs here rather than in read_rtx_1.
23611         Store the whole queue in *X.  Remove call to init_md_reader.
23612         (read_rtx_1): Rename to...
23613         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
23614         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
23615         here.
23616         (read_nested_rtx): New function.  Handle (nil) here rather than
23617         in read_rtx_code.
23618         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
23619         gobble ')' here.
23620         * read-md.h (directive_handler_t): New type.
23621         (in_fname, include_callback): Moved from read-md.h.
23622         (read_constants, init_md_reader): Delete.
23623         (read_md_files): Declare.
23624         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
23625         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
23626         from gensupport.c.
23627         (read_constants): Rename to...
23628         (handle_constants): ...this.  Don't gobble ')' here.
23629         (handle_include, handle_file, handle_toplevel_file)
23630         (parse_include): New functions, mostly taken from gensupport.c.
23631         (init_md_reader): Subsume into...
23632         (read_md_files): ...this new function.
23633
23634 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23635
23636         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
23637         (unread_char): Decrement read_md_lineno after putting back '\n'.
23638         * read-md.c (fatal_with_file_and_line): Push back any characters
23639         that we decide not to add to the context.
23640         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
23641         fatal_expected_char in cases where '/' ends a line (for example).
23642         (read_name): Don't increment read_md_lineno here.
23643         (read_escape): Likewise.
23644         (read_quoted_string): Likewise.
23645         (read_braced_string): Likewise.
23646
23647 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23648
23649         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
23650         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
23651         * genconstants.c: Include read-md.h.
23652         * read-rtl.c (md_constants): Move to read-md.c.
23653         (md_name): Move to read-md.h.
23654         (initialize_iterators): Use leading_string_hash instead of def_hash
23655         and leading_string_eq_p instead of def_name_eq_p.
23656         (read_name): Move to read-md.c.
23657         (def_hash, def_name_eq_p): Delete.
23658         (read_constants, traverse_md_constants): Move to read-md.c.
23659         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
23660         * read-md.h: Include hashtab.h.
23661         (md_name): Moved from read-rtl.c.
23662         (md_constant): Moved from read-md.h.
23663         (leading_string_hash, leading_string_eq_p, read_name)
23664         (read_constants, traverse_md_constants): Declare.
23665         * read-md.c (md_constants): Moved from read-rtl.c.
23666         (leading_string_hash, leading_string_eq_p): New functions.
23667         (read_name, read_constants, traverse_md_constants): Moved from
23668         read-rtl.c.
23669
23670 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23671
23672         * read-rtl.c (md_name): New structure.
23673         (read_name): Take an md_name instead of a buffer pointer.
23674         Use the "string" field instead of strcpy when expanding constants.
23675         (read_constants): Remove the tmp_char argument.  Update the calls
23676         to read_name, using two local name buffers instead of the tmp_char
23677         argument.  Merge the constant-creation code.
23678         (read_conditions): Remove the tmp_char argument.  Update the calls
23679         to read_name, using a local name buffer instead of the tmp_char
23680         argument.
23681         (read_mapping): Replace tmp_char variable with a local name buffer.
23682         Update the calls to read_name.
23683         (read_rtx_1): Likewise.  Update the calls to read_constants and
23684         read_conditions.
23685
23686 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23687
23688         * Makefile.in (build/read-md.o): Depend on errors.h.
23689         * read-md.h (error_with_line): Declare.
23690         * read-md.c: Include errors.h.
23691         (message_with_line_1): New function, extracted from...
23692         (message_with_line): ...here.
23693         (error_with_line): New function.
23694         * genattrtab.c: If a call to message_with_line is followed by
23695         "have_error = 1;", replace both statements with a call to
23696         error_with_line.
23697         * genoutput.c: Likewise.
23698         * genpreds.c: Likewise.
23699         * genrecog.c: If a call to message_with_line is followed by
23700         "error_count++;", replace both statements with a call to
23701         error_with_line.
23702         (errorcount): Delete.
23703         (main): Don't check it.
23704         * gensupport.c: If a call to message_with_line is followed by
23705         "errors = 1;", replace both statements with a call to error_with_line.
23706         (errors): Delete.
23707         (process_define_cond_exec): Check have_error instead of errors.
23708         (init_md_reader_args_cb): Likewise.  Don't set errors.
23709
23710 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23711
23712         * read-md.h (read_md_file): Declare.
23713         (read_char, unread_char): New functions.
23714         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23715         (read_quoted_string, read_string): Remove FILE * argument.
23716         * read-md.c (read_md_file): New variable.
23717         (read_md_filename, read_md_lineno): Update comments and remove
23718         unnecessary initialization.
23719         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23720         (read_escape, read_quoted_string, read_braced_string, read_string):
23721         Remove FILE * argument.  Update calls accordingly, using read_char
23722         and unread_char instead of getc and ungetc.
23723         * rtl.h (read_rtx): Remove FILE * argument.
23724         * read-rtl.c (iterator_group): Remove FILE * argument from
23725         "find_builtin".
23726         (iterator_traverse_data): Remove "infile" field.
23727         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
23728         (add_mapping, read_name, read_constants, read_conditions)
23729         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
23730         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
23731         Remove file arguments from all calls, using read_char and unread_char
23732         instead of getc and ungetc.
23733         * gensupport.c (process_include): Preserve read_md_file around
23734         the include.  Set read_md_file to the handle of the included file.
23735         Update call to read_rtx.
23736         (init_md_reader_args_cb): Set read_md_file to the handle of the file
23737         and remove local FILE *.  Update calls to read_rtx.
23738
23739 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23740
23741         * read-md.h (read_rtx_lineno): Rename to...
23742         (read_md_lineno): ...this.
23743         (read_rtx_filename): Rename to...
23744         (read_md_filename): ...this.
23745         (copy_rtx_ptr_loc): Rename to...
23746         (copy_md_ptr_loc): ...this.
23747         (print_rtx_ptr_loc): Rename to...
23748         (print_md_ptr_loc): ...this.
23749         * read-md.c: Likewise.  Update references after renaming.
23750         (string_obstack): Replace RTL with MD in comment.
23751         (set_rtx_ptr_loc): Rename to...
23752         (set_md_ptr_loc): ...this.
23753         (get_rtx_ptr_loc): Rename to...
23754         (get_md_ptr_loc): ...this.
23755         * genconditions.c: Update references after renaming.
23756         * genemit.c: Likewise.
23757         * genoutput.c: Likewise.
23758         * genpreds.c: Likewise.
23759         * gensupport.c: Likewise.
23760         * read-rtl.c: Likewise.
23761
23762 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23763
23764         * Makefile.in (READ_MD_H): New variable.
23765         (BUILD_RTL): Add build/read-md.o.
23766         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
23767         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
23768         (build/genattrtab.o, build/genconditions.o build/genemit.o)
23769         (build/genextract.o, build/genflags.o, build/genoutput.o)
23770         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
23771         (build/read-md.o): New rule.
23772         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
23773         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
23774         * coretypes.h: ...here.
23775         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
23776         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
23777         * genattr.c: Include read-md.h.
23778         * genattrtab.c: Likewise.
23779         * genconditions.c: Likewise.
23780         * genemit.c: Likewise.
23781         * genextract.c: Likewise.
23782         * genflags.c: Likewise.
23783         * genoutput.c: Likewise.
23784         * genpreds.c: Likewise.
23785         * genrecog.c: Likewise.
23786         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
23787         (join_c_conditions, print_c_condition, read_rtx_filename)
23788         (read_rtx_lineno): Move to read-md.h.
23789         * read-rtl.c: Include read-md.h.
23790         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
23791         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
23792         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
23793         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
23794         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
23795         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
23796         (read_braced_string, read_string): Move to read-md.c.
23797         (read_rtx): Move some initialization to init_md_reader and call
23798         init_md_reader here.
23799         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
23800         Move to read-md.h.
23801         * gensupport.c: Include read-md.h.
23802         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
23803         * read-md.h, read-md.c: New files.
23804
23805 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
23806
23807         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23808         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23809         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
23810         * config/moxie/moxie.c (moxie_function_value): Make static.
23811         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
23812         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23813
23814 2010-06-10  Martin Jambor  <mjambor@suse.cz>
23815
23816         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
23817         * dbgcnt.def (tree_sra): New counter.
23818         * tree-sra.c: Include dbgcnt.h.
23819         (gate_intra_sra): Check tree_sra debug counter.
23820
23821 2010-06-10  Martin Jambor  <mjambor@suse.cz>
23822
23823         PR tree-optimization/44258
23824         * tree-sra.c (build_access_subtree): Return false iff there is a
23825         partial overlap.
23826         (build_access_trees): Likewise.
23827         (analyze_all_variable_accesses): Disqualify candidates if
23828         build_access_trees returns true for them.
23829
23830 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
23831
23832         PR debug/41371
23833         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
23834         tail-recurse into canonical node.  Fast-forward over
23835         non-canonical VALUEs.
23836
23837 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
23838
23839         PR boostrap/44470
23840         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
23841         (*addsi_1_zext) <TYPE_LEA>: Likewise.
23842         (add lea splitter): Likewise.
23843         (add_zext lea splitter): Likewise.
23844
23845 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
23846
23847         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
23848
23849 2010-06-10  Jan Hubicka  <jh@suse.cz>
23850
23851         * df-problems.c (df_live_problem_data): Add live_bitmaps.
23852         (df_live_alloc): Initialize problem data and live_osbtacks.
23853         (df_live_finalize): Remove obstack, problem data; do not
23854         clear all bitmaps.
23855         (df_live_top_dump, df_live_bottom_dump): Do not dump old
23856         data when not allocated.
23857         (df_live_verify_solution_start): Do not allocate problem data.
23858         (df_live_verify_solution_end): Check if out is allocated.
23859         (struct df_md_problem_data): New structure.
23860         (df_md_alloc): Allocate problem data.
23861         (df_md_free): Free problem data; do not clear bitmaps.
23862
23863 2010-06-10  Jan Beulich  <jbeulich@novell.com>
23864
23865         PR bootstrap/37304
23866         * configure.ac: Replace $() with ${} when intending to expand
23867         variables rather than invoking commands.
23868         * configure: Re-generate.
23869
23870 2010-06-10  Jan Hubicka  <jh@suse.cz>
23871
23872         PR rtl-optimization/44460
23873         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
23874         TYPE_NEEDS_CONSTRUCTING sanity check.
23875
23876 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
23877
23878         * doc/include/fdl.texi: Move to GFDL version 1.3.
23879
23880         * doc/cpp.texi: Move to GFDL version 1.3.
23881         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
23882         * doc/gccint.texi: Move to GFDL version 1.3.
23883         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
23884         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
23885         * doc/invoke.texi: Move to GFDL version 1.3.
23886
23887 2010-06-09  Jan Hubicka  <jh@suse.cz>
23888
23889         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
23890         Break out from ...
23891         (propagate) ... here; swap the order.
23892
23893 2010-06-09  Jan Hubicka  <jh@suse.cz>
23894
23895         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
23896         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
23897         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
23898         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
23899
23900 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
23901
23902         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
23903         Do not the gather memory reference in the outer loop if the step
23904         is not a constant.
23905
23906 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
23907
23908         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
23909         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
23910         8 to 4.  Minor change of the related comments.
23911
23912 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23913
23914         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
23915         the scev analysis when the variable is not used outside the loop
23916         in a close phi node: call compute_overall_effect_of_inner_loop.
23917
23918 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23919
23920         * graphite-sese-to-poly.c (single_pred_cond): Renamed
23921         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
23922         (build_sese_conditions_before): Renamed call to single_pred_cond.
23923         (build_sese_conditions_after): Same.
23924
23925 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
23926
23927         * graphite-poly.h: Fix comments and indentation.
23928         * graphite-sese-to-poly.c: Same.
23929         (build_sese_conditions_before): Compute stmt and gbb only when needed.
23930         * tree-chrec.c: Fix comments and indentation.
23931         (tree-ssa-loop-niter.c): Same.
23932
23933 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
23934
23935         PR rtl-optimization/42461
23936         * dce.c (deletable_insn_p): Return true for const or pure calls again.
23937         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
23938
23939 2010-06-09  Jan Hubicka  <jh@suse.cz>
23940
23941         * bitmap.c (bitmap_and): Walk array forward.
23942         (bitmap_and_compl_into): Likewise.
23943         (bitmap_xor): Likewise.
23944         (bitmap_xor_into):  Likewise.
23945         (bitmap_equal_p): Likewise.
23946         (bitmap_intersect_p): Likewise.
23947         (bitmap_intersect_compl_p): Likewise.
23948         (bitmap_ior_and_into): Likewise.
23949         (bitmap_elt_copy): Likewise.
23950         (bitmap_and_compl): Likewise.
23951         (bitmap_elt_ior): Likewise.
23952
23953 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
23954
23955         * opts-common.c (prune_options): Ensure replacement argv array
23956         is correctly terminated by a NULL entry.
23957
23958 2010-06-09  Jan Hubicka  <jh@suse.cz>
23959
23960         * cgraph.h (varpool_first_static_initializer,
23961         varpool_next_static_initializer): Make checking only when
23962         checking enabled.
23963         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
23964         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
23965         gcc_assert to gcc_checking_assert.
23966         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
23967         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
23968         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
23969         op_iter_init_phiuse, op_iter_init_phidef,
23970         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
23971         gcc_checking_assert.
23972         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
23973         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
23974         partition_is_global, live_on_entry, live_on_exit,
23975         live_merge_and_clear): Likewise.
23976         * system.h (gcc_checking_assert): New macro.
23977         * gimple.h (set_bb_seq): Use gcc_checking_assert.
23978
23979 2010-06-09  Jason Merrill  <jason@redhat.com>
23980
23981         * Makefile.in (TAGS): Collect tags info from c-family.
23982
23983 2010-06-09  Jan Hubicka  <jh@suse.cz>
23984
23985         * gimple.h (gcc_gimple_checking_assert): New macro.
23986         (gimple_set_def_ops, gimple_set_use_ops,
23987         gimple_set_vuse, gimple_set_vdef,
23988         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
23989         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
23990         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
23991         gimple_asm_output_op, gimple_asm_output_op_ptr,
23992         gimple_asm_set_output_op, gimple_asm_clobber_op,
23993         gimple_asm_set_clobber_op, gimple_asm_label_op,
23994         gimple_asm_set_label_op, gimple_try_set_kind,
23995         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
23996         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
23997         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
23998         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
23999         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
24000         gimple_omp_for_set_initial, gimple_omp_for_final,
24001         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
24002         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
24003         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
24004         conditional with ENABLE_GIMPLE_CHECKING.
24005         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
24006
24007 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
24008
24009         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
24010         (get_computation_cost_at): Use it.
24011         (determine_use_iv_cost_condition): Likewise.
24012         (determine_iv_cost): Likewise.
24013
24014 2010-06-09  Richard Guenther  <rguenther@suse.de>
24015
24016         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
24017         replace constants.
24018
24019 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
24020
24021         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
24022
24023 2010-06-09  Martin Jambor  <mjambor@suse.cz>
24024
24025         PR tree-optimization/44423
24026         * tree-sra.c (dump_access): Dump also grp_assignment_read.
24027         (analyze_access_subtree): Pass negative allow_replacements to children
24028         if the current type is scalar.
24029
24030 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24031
24032         PR testsuite/42843
24033         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
24034         * doc/plugins.texi (Plugin license check): Update information
24035         on type of plugin_is_GPL_compatible.
24036         * Makefile.in (PLUGINCC): Define as $(COMPILER).
24037         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
24038
24039 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
24040
24041         * config/arm/arm.c (thumb2_reorg): New function.
24042         (arm_reorg): Call it.
24043         * config/arm/thumb2.md (define_peephole2 for flag clobbering
24044         arithmetic operations): Delete.
24045
24046 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
24047
24048         PR target/44067
24049         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
24050         e500v2 target.
24051
24052 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24053
24054         PR plugins/44459
24055         * gcc-plugin.h: Encapsulate all declarations in extern "C".
24056
24057 2010-06-08  Jan Hubicka  <jh@suse.cz>
24058
24059         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
24060         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
24061
24062 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
24063
24064         PR tree-optimization/39874
24065         PR middle-end/28685
24066         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
24067         Declare.
24068         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
24069         same_bool_result_p): New.
24070         (and_var_with_comparison, and_var_with_comparison_1,
24071         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
24072         (or_var_with_comparison, or_var_with_comparison_1,
24073         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
24074         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
24075         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
24076         of combine_comparisons.
24077         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
24078
24079 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
24080
24081         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24082         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24083         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
24084         pdp11_function_value_regno_p): New functions.
24085         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24086         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24087
24088 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
24089
24090         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
24091         Thumb-2 in the MINUS case.
24092
24093 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24094
24095         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
24096
24097         * doc/gty.texi (GTY Options): Document typed GC allocation and
24098         variable_size GTY option.
24099
24100         * ggc-internal.h: New.
24101
24102         * ggc.h: Update copyright year.
24103         (digit_string): Move to stringpool.c.
24104         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
24105         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
24106         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
24107         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
24108         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
24109         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
24110         (ggc_force_collect, ggc_get_size, ggc_statistics)
24111         (ggc_print_common_statistics): Move to ggc-internal.h.
24112         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
24113         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
24114         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
24115         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
24116         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
24117         (ggc_alloc_zone_pass_stat): Remove.
24118         (ggc_internal_alloc_stat, ggc_internal_alloc)
24119         (ggc_internal_cleared_alloc_stat): New.
24120         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
24121         (ggc_internal_vec_alloc_stat)
24122         (ggc_internal_cleared_vec_alloc_stat)
24123         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
24124         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
24125         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
24126         (ggc_cleared_alloc_ptr_array_two_args): New.
24127         (htab_create_ggc, splay_tree_new_ggc): Redefine.
24128         (ggc_splay_alloc): Change the type of the first argument to
24129         enum gt_types_enum.
24130         (ggc_alloc_string): Make macro.
24131         (ggc_alloc_string_stat): New.
24132         (ggc_strdup): Redefine.
24133         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
24134         (ggc_alloc_rtvec_sized): New.
24135         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
24136         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
24137         (ggc_internal_cleared_alloc_zone_stat)
24138         (ggc_internal_zone_alloc_stat)
24139         (ggc_internal_zone_cleared_alloc_stat)
24140         (ggc_internal_zone_vec_alloc_stat)
24141         (ggc_alloc_zone_rtx_def_stat)
24142         (ggc_alloc_zone_tree_node_stat)
24143         (ggc_alloc_zone_cleared_tree_node_stat)
24144         (ggc_alloc_cleared_gimple_statement_d_stat): New.
24145
24146         * ggc-common.c: Include ggc-internal.h.
24147         (ggc_internal_cleared_alloc_stat): Rename from
24148         ggc_alloc_cleared_stat.
24149         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
24150         (ggc_calloc): Remove.
24151         (ggc_cleared_alloc_htab_ignore_args): New.
24152         (ggc_cleared_alloc_ptr_array_two_args): New.
24153         (ggc_splay_alloc): Add obj_type parameter.
24154         (init_ggc_heuristics): Formatting fixes.
24155
24156         * ggc-none.c: Update copyright year.
24157         (ggc_alloc_stat): Rename to ggc_alloc_stat.
24158         (ggc_alloc_cleared_stat): Rename to
24159         ggc_internal_cleared_alloc_stat.
24160         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24161
24162         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
24163         Remove references to ggc_alloc in comments.
24164         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
24165         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
24166         (new_ggc_zone, destroy_ggc_zone): Remove.
24167         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24168
24169         * ggc-zone.c: Include ggc-internal.h.  Remove references to
24170         ggc_alloc in comments.
24171         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
24172         (ggc_internal_alloc_zone_pass_stat): New.
24173         (ggc_internal_cleared_alloc_zone_stat): New.
24174         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
24175         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
24176         (new_ggc_zone, destroy_ggc_zone): Remove.
24177
24178         * stringpool.c: Update copyright year.  Include ggc-internal.h
24179         (digit_vector): Make static.
24180         (digit_string): Moved from ggc.h.
24181         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
24182         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
24183
24184         * Makefile.in (GGC_INTERNAL_H): New.
24185         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
24186         $(GGC_INTERNAL_H) to dependencies.
24187
24188         * gengtype.c: Update copyright year.
24189         (walk_type): Accept variable_size GTY option.
24190         (USED_BY_TYPED_GC_P): New macro.
24191         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
24192         whitespace at the end of strings.
24193         (get_type_specifier, variable_size_p): New functions.
24194         (alloc_quantity, alloc_zone): New enums.
24195         (write_typed_alloc_def): New function.
24196         (write_typed_struct_alloc_def): Likewise.
24197         (write_typed_typed_typedef_alloc_def): Likewise.
24198         (write_typed_alloc_defns): Likewise.
24199         (output_typename, write_splay_tree_allocator_def): Likewise.
24200         (write_splay_tree_allocators): Likewise.
24201         (main): Call write_typed_alloc_defns and
24202         write_splay_tree_allocators.
24203
24204         * lto-streamer.h (lto_file_decl_data_ptr): New.
24205
24206         * passes.c (order): Define using cgraph_node_ptr.
24207
24208         * strinpool.c (struct string_pool_data): Declare nested_ptr using
24209         ht_identifier_ptr.
24210
24211         * gimple.h (union gimple_statement_d): Likewise.
24212
24213         * rtl.h (struct rtx_def): Likewise.
24214         (struct rtvec_def): Likewise.
24215
24216         * tree.h (union tree_node): Likewise.
24217
24218         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
24219
24220         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
24221
24222         * tree-scalar-evolution.c (scev_initialize): Likewise.
24223
24224         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
24225
24226         * dwarf2asm.c (dw2_force_const_mem): Likewise.
24227
24228         * omp-low.c (lower_omp_critical): Likewise.
24229
24230         * bitmap.h (struct bitmap_head_def): Update comment to not
24231         reference ggc_alloc.
24232
24233         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
24234
24235         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
24236
24237         * ipa-prop.c (duplicate_ggc_array): Rename to
24238         duplicate_ipa_jump_func_array.  Use typed GC allocation.
24239         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
24240
24241         * gimple.c (gimple_alloc_stat): Use
24242         ggc_alloc_cleared_gimple_statement_d_stat.
24243
24244         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
24245
24246         * tree.c (make_node_stat): Use
24247         ggc_alloc_zone_cleared_tree_node_stat.
24248         (make_tree_vec_stat): Likewise.
24249         (build_vl_exp_stat): Likewise.
24250         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
24251         (make_tree_binfo_stat): Likewise.
24252         (tree_cons_stat): Likewise.
24253
24254         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
24255         (shallow_copy_rtx_stat): Likewise.
24256         (make_node_stat): Likewise.
24257
24258         * lto-symtab.c: Fix comment.
24259
24260         * tree-cfg.c (create_bb): Update comment to not reference
24261         ggc_alloc_cleared.
24262         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
24263
24264         * varpool.c (varpool_node): Use typed GC allocation.
24265         (varpool_extra_name_alias): Likewise.
24266
24267         * varasm.c (emutls_decl): Likewise.
24268         (get_unnamed_section): Likewise.
24269         (get_noswitch_section): Likewise.
24270         (get_section): Likewise.
24271         (get_block_for_section): Likewise.
24272         (build_constant_desc): Likewise.
24273         (create_constant_pool): Likewise.
24274         (force_const_mem): Likewise.
24275
24276         * tree.c (build_vl_exp_stat): Likewise.
24277         (build_real): Likewise.
24278         (build_string): Likewise.
24279         (decl_debug_expr_insert): Likewise.
24280         (decl_value_expr_insert): Likewise.
24281         (type_hash_add): Likewise.
24282         (build_omp_clause): Likewise.
24283
24284         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
24285
24286         * tree-ssa.c (init_tree_ssa): Likewise.
24287
24288         * tree-ssa-structalias.c (heapvar_insert): Likewise.
24289
24290         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24291
24292         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24293
24294         * tree-ssa-alias.c (get_ptr_info): Likewise.
24295
24296         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24297
24298         * tree-phinodes.c (allocate_phi_node): Likewise.
24299
24300         * tree-iterator.c (tsi_link_before): Likewise.
24301         (tsi_link_after): Likewise.
24302
24303         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24304
24305         * tree-dfa.c (create_var_ann): Likewise.
24306
24307         * tree-cfg.c (create_bb): Likewise.
24308
24309         * toplev.c (alloc_for_identifier_to_locale): Likewise.
24310         (general_init): Likewise.
24311
24312         * stringpool.c (stringpool_ggc_alloc): Likewise.
24313         (gt_pch_save_stringpool): Likewise.
24314
24315         * sese.c (if_region_set_false_region): Likewise.
24316
24317         * passes.c (do_per_function_toporder): Likewise.
24318
24319         * optabs.c (set_optab_libfunc): Likewise.
24320         (set_conv_libfunc): Likewise.
24321
24322         * lto-symtab.c (lto_symtab_register_decl): Likewise.
24323
24324         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24325         (input_eh_region): Likewise.
24326         (input_eh_lp): Likewise.
24327         (make_new_block): Likewise.
24328         (unpack_ts_real_cst_value_fields): Likewise.
24329
24330         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24331
24332         * lto-cgraph.c (input_node_opt_summary): Likewise.
24333
24334         * loop-init.c (loop_optimizer_init): Likewise.
24335
24336         * lambda.h (lambda_vector_new): Likewise.
24337
24338         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24339
24340         * ira.c (update_equiv_regs): Likewise.
24341
24342         * ipa.c (cgraph_node_set_new): Likewise.
24343         (cgraph_node_set_add): Likewise.
24344         (varpool_node_set_new): Likewise.
24345         (varpool_node_set_add): Likewise.
24346
24347         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
24348         (duplicate_ipa_jump_func_array): Likewise.
24349         (ipa_read_node_info): Likewise.
24350
24351         * ipa-cp.c (ipcp_create_replace_map): Likewise.
24352
24353         * integrate.c (get_hard_reg_initial_val): Likewise.
24354
24355         * gimple.c (gimple_alloc_stat): Likewise.
24356         (gimple_build_omp_for): Likewise.
24357         (gimple_seq_alloc): Likewise.
24358         (gimple_copy): Likewise.
24359
24360         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
24361         (gsi_insert_after_without_update): Likewise.
24362
24363         * function.c (add_frame_space): Likewise.
24364         (insert_temp_slot_address): Likewise.
24365         (assign_stack_temp_for_type): Likewise.
24366         (allocate_struct_function): Likewise.
24367         (types_used_by_var_decl_insert): Likewise.
24368
24369         * except.c (init_eh_for_function): Likewise.
24370         (gen_eh_region): Likewise.
24371         (gen_eh_region_catch): Likewise.
24372         (gen_eh_landing_pad): Likewise.
24373         (add_call_site): Likewise.
24374
24375         * emit-rtl.c (get_mem_attrs): Likewise.
24376         (get_reg_attrs): Likewise.
24377         (start_sequence): Likewise.
24378         (init_emit): Likewise.
24379
24380         * dwarf2out.c (new_cfi): Likewise.
24381         (queue_reg_save): Likewise.
24382         (dwarf2out_frame_init): Likewise.
24383         (new_loc_descr): Likewise.
24384         (find_AT_string): Likewise.
24385         (new_die): Likewise.
24386         (add_var_loc_to_decl): Likewise.
24387         (clone_die): Likewise.
24388         (clone_as_declaration): Likewise.
24389         (break_out_comdat_types): Likewise.
24390         (new_loc_list): Likewise.
24391         (loc_descriptor): Likewise.
24392         (add_loc_descr_to_each): Likewise.
24393         (add_const_value_attribute): Likewise.
24394         (tree_add_const_value_attribute): Likewise.
24395         (add_comp_dir_attribute): Likewise.
24396         (add_name_and_src_coords_attributes): Likewise.
24397         (lookup_filename): Likewise.
24398         (store_vcall_insn): Likewise.
24399         (dwarf2out_init): Likewise.
24400
24401         * dbxout.c (dbxout_init): Likewise.
24402
24403         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24404
24405         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24406
24407         * config/score/score7.c (score7_output_external): Likewise.
24408
24409         * config/score/score3.c (score3_output_external): Likewise.
24410
24411         * config/s390/s390.c (s390_init_machine_status): Likewise.
24412
24413         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24414         (rs6000_init_machine_status): Likewise.
24415         (output_toc): Likewise.
24416
24417         * config/pa/pa.c (pa_init_machine_status): Likewise.
24418         (get_deferred_plabel): Likewise.
24419
24420         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24421
24422         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24423
24424         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24425
24426         * config/mep/mep.c (mep_init_machine_status): Likewise.
24427         (mep_note_pragma_flag): Likewise.
24428
24429         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24430
24431         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24432
24433         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24434
24435         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24436         (i386_pe_maybe_record_exported_symbol): Likewise.
24437
24438         * config/i386/i386.c (get_dllimport_decl): Likewise.
24439         (ix86_init_machine_status): Likewise.
24440         (assign_386_stack_local): Likewise.
24441
24442         * config/frv/frv.c (frv_init_machine_status): Likewise.
24443
24444         * config/darwin.c (machopic_indirection_name): Likewise.
24445
24446         * config/cris/cris.c (cris_init_machine_status): Likewise.
24447
24448         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24449
24450         * config/avr/avr.c (avr_init_machine_status): Likewise.
24451
24452         * config/arm/arm.c (arm_init_machine_status): Likewise.
24453
24454         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24455         (alpha_need_linkage): Likewise.
24456         (alpha_use_linkage): Likewise.
24457
24458         * cgraph.c (cgraph_allocate_node): Likewise.
24459         (cgraph_create_edge_1): Likewise.
24460         (cgraph_create_indirect_edge): Likewise.
24461         (cgraph_add_asm_node): Likewise.
24462
24463         * cfgrtl.c (init_rtl_bb_info): Likewise.
24464
24465         * cfgloop.c (alloc_loop): Likewise.
24466         (rescan_loop_exit): Likewise.
24467
24468         * cfg.c (init_flow): Likewise.
24469         (alloc_block): Likewise.
24470         (unchecked_make_edge): Likewise.
24471
24472         * c-parser.c (c_parse_init): Likewise.
24473         (c_parse_file): Likewise.
24474
24475         * c-decl.c (bind): Likewise.
24476         (record_inline_static): Likewise.
24477         (push_scope): Likewise.
24478         (make_label): Likewise.
24479         (lookup_label_for_goto): Likewise.
24480         (finish_struct): Likewise.
24481         (finish_enum): Likewise.
24482         (c_push_function_context): Likewise.
24483
24484         * bitmap.c (bitmap_element_allocate): Likewise.
24485         (bitmap_gc_alloc_stat): Likewise.
24486
24487         * alias.c (record_alias_subset): Likewise.
24488         (init_alias_analysis): Likewise.
24489
24490 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
24491
24492         * fold-const.c (fold_comparison): Remove redundant parenthesis.
24493         * tree-inline.c (expand_call_inline): Pass translated return value of
24494         cgraph_inline_failed_string to diagnostic function.
24495
24496 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
24497             Shujing Zhao  <pearly.zhao@oracle.com>
24498
24499         PR c/37724
24500         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
24501         implicit bad conversions is initialization.
24502         (error_init): Use gmsgid instead of msgid for argument name and change
24503         the call for error.
24504         (pedwarn_init): Use gmsgid instead of msgid for argument name and
24505         change the call for pedwarn.
24506         (warning_init): Use gmsgid instead of msgid for argument name and
24507         change the call for warning.
24508
24509 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
24510
24511         * config/mips/mips-protos.h (mips_print_operand): Delete.
24512         (mips_print_operand_address): Delete.
24513         * config/mips/mips.h (mips_print_operand_punct): Delete.
24514         (PRINT_OPERAND): Delete.
24515         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24516         (PRINT_OPERAND_ADDRESS): Delete.
24517         * config/mips/mips.c (mips_print_operand_punct): Make static.
24518         (mips_print_operand_address): Make static.
24519         (mips_print_operand): Make static.  Call
24520         mips_print_operand_punct_valid_p.
24521         (mips_print_operand_punct_valid_p): New function.
24522         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24523         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24524
24525 2010-06-07  Jan Hubicka  <jh@suse.cz>
24526
24527         PR middle-end/44454
24528         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
24529         are allocated.
24530
24531 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
24532
24533         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
24534         name of RECORD.
24535
24536 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24537
24538         * doc/sourcebuild.texi (Effective-Target Keywords, Other
24539         attributes): Document gas.
24540
24541 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
24542
24543         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
24544         <TYPE_LEA>: Split instruction.
24545         <default>: Remove alternative 2 handling.
24546         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
24547         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
24548         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
24549
24550         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
24551         (ashift_zext lea splitter): Use DImode for multiplication.
24552
24553         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
24554         to generate addition.
24555
24556 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
24557
24558         * common.opt (fira-verbose): Use Var.
24559         (fpcc-struct-return): Use Init instead of VarExists.
24560         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
24561         toplev.c.
24562         * flags.h (flag_signed_char, flag_short_enums,
24563         flag_pcc_struct_return, flag_ira_verbose,
24564         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
24565         * toplev.c (flag_detailed_statistics, flag_signed_char,
24566         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
24567         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
24568         * toplev.h (flag_crossjumping, flag_if_conversion,
24569         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
24570         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
24571         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
24572         flag_cprop_registers, time_report, flag_ira_loop_pressure,
24573         flag_ira_coalesce, flag_ira_move_spills,
24574         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
24575
24576 2010-06-07  Jan Hubicka  <jh@suse.cz>
24577
24578         * df-core.c (df_analyze_problem): Do verification after allocation.
24579
24580         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
24581         (df_lr_alloc): Initialize problem data; move bitmaps to
24582         lr_bitmaps obstack.
24583         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
24584         (df_lr_verify_solution_start): Do not initialize problem data;
24585         allocate bitmaps in lr_bitmaps.
24586         (df_lr_verify_solution_end): Do not free problem data.
24587
24588 2010-06-07  Jan Hubicka  <jh@suse.cz>
24589
24590         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
24591         if caller is noreturn.
24592         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
24593         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
24594         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
24595         * ipa-pure-const.c (check_decl): Add IPA parameter.
24596         (state_from_flags): New function.
24597         (better_state, worse_state): New functions.
24598         (check_call): When in IPA mode, do not care about callees.
24599         (check_load, check_store): Update.
24600         (check_ipa_load, check_ipa_store): New.
24601         (check_stmt): When in IPA mode, use IPA checkers.
24602         (analyze_function): Use state_from_flags.
24603         (propagate): Check indirect edges and references.
24604
24605 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
24606
24607         PR rtl-optimization/44404
24608         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
24609         of count_occurrences to see if it's safe to modify mem_insn.
24610
24611 2010-06-07  Richard Guenther  <rguenther@suse.de>
24612
24613         * gimplify.c (gimplify_cleanup_point_expr): For empty body
24614         and EH-only cleanup drop the cleanup instead of inserting it
24615         unconditionally.
24616
24617 2010-06-07  Ira Rosen  <irar@il.ibm.com>
24618
24619         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
24620         documentation.
24621         * targhooks.c (default_builtin_vectorization_cost): New function.
24622         * targhooks.h (default_builtin_vectorization_cost): Declare.
24623         * target.h (enum vect_cost_for_stmt): Define.
24624         (builtin_vectorization_cost): Change argument and comment.
24625         * tree-vectorizer.h: Remove cost model macros.
24626         * tree-vect-loop.c: Include target.h.
24627         (vect_get_cost): New function.
24628         (vect_estimate_min_profitable_iters): Replace cost model macros with
24629         calls to vect_get_cost.
24630         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
24631         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
24632         default implementation.
24633         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
24634         calls to target hook builtin_vectorization_cost.
24635         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
24636         Likewise.
24637         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
24638         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
24639         implementation to return costs.
24640         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
24641         * config/spu/spu.h: Remove vectorizer cost model macros.
24642         * config/i386/i386.h: Likewise.
24643         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
24644         a call to target hook builtin_vectorization_cost.
24645
24646 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
24647
24648         PR target/44319
24649         * config/i386/i386.c (override_options): Turn zee pass on for level 2
24650         and above and defer till target is known.
24651         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
24652         turn off otherwise.
24653
24654 2010-05-25  Jan Hubicka  <jh@suse.cz>
24655
24656         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
24657         (df_compact_blocks): Likewise.
24658         * df.h (struct df): Turn hardware_regs_used,
24659         regular_block_artificial_uses, eh_block_artificial_uses,
24660         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
24661         bitmap_head.
24662         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
24663         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
24664         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
24665         df_scan_blocks, df_insn_delete, df_insn_rescan,
24666         df_insn_rescan_debug_internal, df_insn_rescan_all,
24667         df_process_deferred_rescans, df_process_deferred_rescans,
24668         df_notes_rescan, df_get_call_refs, df_get_call_refs,
24669         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
24670         df_record_entry_block_defs, df_record_exit_block_uses,
24671         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
24672         df_scan_verify): Update.
24673
24674 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
24675
24676         PR c++/44188
24677         * c-common.c (is_typedef_decl): Move this definition ...
24678         * tree.c (is_typedef_decl): ... here.
24679         (typdef_variant_p): Move definition here from cp/tree.c.
24680         * c-common.h (is_typedef_decl): Move this declaration ...
24681         * tree.h (is_typedef_decl): ... here.
24682         (typedef_variant_p): Move declaration here from cp/cp-tree.h
24683         * dwarf2out.c (is_naming_typedef_decl): New function.
24684         (gen_tagged_type_die): Split out of ...
24685         (gen_type_die_with_usage): ... this function. When an anonymous
24686         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24687         is emitted for the typedef.
24688         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24689         anonymous tagged types.
24690
24691 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24692
24693         PR c/20000
24694         * c-decl.c (grokdeclarator): Delete warning.
24695
24696 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24697
24698         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
24699         newly built CALL_EXPR.
24700         * tree-profile.c (tree_profiling): Don't profile functions produced
24701         for built-in stuff.
24702
24703 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
24704
24705         PR bootstrap/44427
24706         PR bootstrap/44428
24707         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
24708         endianness-independent.
24709
24710 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
24711
24712         * c-common.c: Move to c-family/.
24713         * c-common.def: Likewise.
24714         * c-common.h: Likewise.
24715         * c-cppbuiltin.c: Likewise.
24716         * c-dump.c: Likewise.
24717         * c-format.c: Likewise.
24718         * c-format.h : Likewise.
24719         * c-gimplify.c: Likewise.
24720         * c-lex.c: Likewise.
24721         * c-omp.c: Likewise.
24722         * c.opt: Likewise.
24723         * c-opts.c: Likewise.
24724         * c-pch.c: Likewise.
24725         * c-ppoutput.c: Likewise.
24726         * c-pragma.c: Likewise.
24727         * c-pragma.h: Likewise.
24728         * c-pretty-print.c: Likewise.
24729         * c-pretty-print.h: Likewise.
24730         * c-semantics.c: Likewise.
24731         * stub-objc.c: Likewise.
24732
24733         * gengtype.c (get_file_langdir): Special-case files in c-family/.
24734         (get_output_file_with_visibility): Fix name for c-common.h.
24735         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
24736
24737         * c-tree.h: Update include path for moved files.
24738         * c-lang.c: Likewise.
24739         * c-lang.h: Likewise.
24740         * c-parser.c: Likewise.
24741         * c-convert.c: Likewise.
24742         * c-decl.c: Likewise.
24743         * c-objc-common.c: Likewise.
24744         * configure.ac: Make sure c-family/ exists in the build directory.
24745         * configure: Regenerate.
24746         * Makefile.in: Update paths for moved files.  Regroup files per
24747         location and update dependencies.  Move generated_files down after
24748         ALL_GTFILES_H.
24749
24750         * config/spu/spu-c.c: Update paths for moved files.
24751         * config/mep/mep-pragma.c: Likewise.
24752         * config/darwin-c.c: Likewise.
24753         * config/i386/msformat-c.c: Likewise.
24754         * config/i386/i386-c.c: Likewise.
24755         * config/avr/avr-c.c: Likewise.
24756         * config/sol2-c.c: Likewise.
24757         * config/ia64/ia64-c.c: Likewise.
24758         * config/rs6000/rs6000-c.c: Likewise.
24759         * config/arm/arm.c: Likewise.
24760         * config/arm/arm-c.c: Likewise.
24761         * config/h8300/h8300.c: Likewise.
24762         * config/v850/v850-c.c: Likewise.
24763
24764         * config/t-darwin: Fix dependencies for moved files.
24765         * config/t-sol2: Fix dependencies for moved files.
24766         * config/mep/t-mep: Fix dependencies for moved files.
24767         * config/ia64/t-ia64: Fix dependencies for moved files.
24768         * config/rs6000/t-rs6000: Fix dependencies for moved files.
24769         * config/v850/t-v850: Fix dependencies for moved files.
24770         * config/v850/t-v850e: Fix dependencies for moved files.
24771
24772         * config/m32c/m32c-pragma.c
24773
24774         * po/exgettext: Look in c-family/ also.
24775
24776 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
24777
24778         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
24779         (mark_control_dependent_edges_necessary): Call it instead of marking
24780         the last statement manually.
24781         (propagate_necessity): Likewise.
24782
24783 2010-06-05  Jan Hubicka  <jh@suse.cz>
24784
24785         * basic-block.h (compute_dominance_frontiers): Updated.
24786         (compute_idf): Likewise.
24787
24788         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
24789         for dominance frontiers.
24790         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
24791         (insert_updated_phi_nodes_for): Likewise.
24792         (update_ssa): Likewise.
24793         * cfganal.c (compute_dominance_frontiers_1): Likewise.
24794         (compute_dominance_frontiers): Likewise.
24795         (compute_idf): Likewise.
24796         * df-problems.c (df_md_local_compute): Likewise.
24797
24798 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
24799
24800         * target.h (struct gcc_target): Add memory_move_cost field.
24801         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
24802         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
24803         * targhooks.c (default_memory_move_cost): New function.
24804         * targhooks.h (default_memory_move_cost): Declare function.
24805         * reload.h (memory_move_cost): Declare.
24806         (memory_move_secondary_cost): Change type of 'in' argument to bool.
24807         * reginfo.c (memory_move_cost): New function.
24808         (memory_move_secondary_cost): Change type of 'in' argument to bool.
24809         * ira.h (ira_memory_move_cost): Update comment.
24810         * ira.c (ira_memory_move_cost): Update comment.
24811         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
24812         with memory_move_cost.
24813         * postreload.c (reload_cse_simplify_set): (Ditto.).
24814         * reload1.c (choose_reload_regs): (Ditto.).
24815         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
24816         (MEMORY_MOVE_COST):  Revise documentation.
24817
24818         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
24819         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
24820         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
24821         type of 'in' argument to bool.
24822         (TARGET_MEMORY_MOVE_COST): Define.
24823
24824 2010-06-05  Jan Hubicka  <jh@suse.cz>
24825
24826         * ipa-pure-const.c (propagate): Fix typo in handling of functions
24827         that cannot return.  Be more careful when merging the results with
24828         previously known ones.
24829
24830 2010-06-05  Matthias Klose  <doko@ubuntu.com>
24831
24832         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
24833         function to add the -iplugindir option.
24834         (find_plugindir_spec_function): Add new declaration and function.
24835         (static_spec_func): Use it for "find-plugindir".
24836
24837 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
24838
24839         PR c++/44361
24840         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
24841         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
24842         statement expression.
24843
24844 2010-06-05  Jan Hubicka  <jh@suse.cz>
24845
24846         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
24847         (df_rd_problem_data): Convert sparse_invalidated_by_call,
24848         dense_invalidated_by_call to bitmap head.
24849         (df_rd_alloc, df_rd_bb_local_compute_process_def,
24850         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
24851         df_rd_start_dump, df_lr_verify_transfer_functions,
24852         df_live_verify_transfer_functions, df_chain_create_bb,
24853         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
24854         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
24855         df_simulate_one_insn_forwards, df_md_alloc,
24856         df_md_bb_local_compute_process_def,
24857         df_md_bb_local_compute_process_def, df_md_local_compute,
24858         df_md_transfer_function df_md_free): Update.
24859
24860 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
24861
24862         PR c/44322
24863         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
24864         target type for ADDR_EXPR; require no changes to qualifiers except
24865         for function types.
24866         * c-tree.h (c_build_type_variant): Remove.
24867
24868 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
24869
24870         * genautomata.c (get_excl_set): Do work per element, not per char.
24871         (check_presence_pattern_sets): Similar.
24872         (check_absence_pattern_sets): Similar.
24873
24874 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
24875
24876         * genautomata.c (curr_state_pass_num): Delete.
24877         (min_issue_delay_pass_states): Delete.
24878         (min_issue_delay): Delete.
24879         (initiate_min_issue_delay_pass_states): Delete.
24880         (output_min_issue_delay_table): Compute min_issue_delay_vect
24881         using a breadth-first search variant.
24882         (output_tables): Don't call initiate_min_issue_delay_pass_states.
24883
24884 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
24885
24886         PR boostrap/44421
24887         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
24888         (df_byte_lr_bb_local_compute): Likewise.
24889
24890 2010-06-03  Jason Merrill  <jason@redhat.com>
24891
24892         Implement noexcept operator (5.3.7)
24893         * c-common.c (c_common_reswords): Add noexcept.
24894         * c-common.h (enum rid): Add RID_NOEXCEPT.
24895
24896 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
24897
24898         * config/darwin-driver.c (darwin_default_min_version): Use
24899         GCC-specific formats in diagnostics.
24900         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
24901         diagnostics.
24902         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
24903         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
24904         eval_spec_function, handle_braces, process_brace_body, main,
24905         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
24906         getenv_spec_function, compare_version_strings,
24907         version_compare_spec_function): Use GCC-specific formats in
24908         diagnostics.
24909
24910 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
24911
24912         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
24913         that operand 0 and operand 1 are equal.
24914         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
24915         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
24916         and operand 1 are equal.
24917         <default>: Ditto.  Remove ??? comment.
24918         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
24919         and operand 1 are equal.
24920         <default>: Ditto.  Remove ??? comment.
24921         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
24922         are equal.
24923         (*add<mode>_4) <default>: Ditto.
24924         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
24925
24926 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
24927
24928         * config/i386/i386-protos.h (ix86_print_operand): Declare.
24929         * config/i386/i386.c (ix86_print_operand): Make non-static.
24930         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
24931         * output.h (output_operand): Declare.
24932         * final.c (output_operand): Make non-static.
24933
24934 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
24935
24936         PR rtl-optimization/44013
24937         * sched-deps.c (add_dependence_list_and_free): Don't free lists
24938         when processing debug insns.
24939
24940         PR debug/41371
24941         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
24942         recursing.  Check that recursion is bounded.  Rename inner var
24943         to avoid hiding incoming argument.
24944
24945 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
24946
24947         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
24948         operands[2] == 255.
24949         (*addqi_3): Ditto.
24950         (*addqi_4): Ditto.
24951         (*addqi_5): Ditto.
24952         (*addqi_ext_1_rex64): Ditto.
24953         (*addqi_ext_1): Ditto.
24954
24955         (*addqi_4): Check for incdec_operand in QImode.
24956
24957         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
24958         using SWI mode iterator.
24959         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
24960         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
24961         mode iterator.
24962         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
24963         using SWI mode iterator.
24964
24965 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24966
24967         PR c/25880
24968         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
24969         * c-format.c (gcc_diag_flag_specs): Add hash.
24970         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
24971         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
24972         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
24973         pp_c_cv_qualifiers. Handle qualifiers spelling here.
24974         (pp_c_type_qualifier_list): Call the function above.
24975         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
24976         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
24977         (WARN_FOR_QUALIFIERS): New macro.
24978         (convert_for_assignment): Use it.
24979
24980 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
24981
24982         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
24983
24984 2010-06-04  Jan Hubicka  <jh@suse.cz>
24985
24986         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
24987         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
24988         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
24989         DF_BYTE_LR_OUT): Update for embedded bitmaps.
24990         * fwprop.c (single_def_use_enter_block): Likewise.
24991         * ddg.c (create_ddg_dep_from_intra_loop_link,
24992         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
24993         * loop-iv.c (latch_dominating_def): Likewise.
24994         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
24995         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
24996         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
24997         df_rd_transfer_function, df_rd_top_dump,
24998         df_rd_bottom_dump): Update.
24999         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
25000         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
25001         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
25002         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
25003         df_lr_verify_solution_start, df_lr_verify_solution_end,
25004         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
25005         df_live_free_bb_info, df_live_alloc, df_live_reset,
25006         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
25007         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
25008         df_live_verify_solution_start, df_live_verify_solution_end,
25009         df_live_verify_transfer_functions, df_chain_create_bb,
25010         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
25011         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25012         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25013         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
25014         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
25015         df_byte_lr_transfer_function, df_byte_lr_top_dump,
25016         df_byte_lr_bottom_dump, df_create_unused_note,
25017         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
25018         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
25019         df_md_transfer_function, df_md_init, df_md_confluence_0,
25020         df_md_confluence_n,
25021         df_md_top_dump, df_md_bottom_dump): Update.
25022         (struct df_lr_problem_data): Embedd bitmap headers.
25023
25024 2010-06-04  Jan Hubicka  <jh@suse.cz>
25025
25026         * dce.c (dce_process_block): Do not re-scan already marked
25027         instructions.
25028
25029 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25030
25031         PR rtl-optimization/39871
25032         PR rtl-optimization/40615
25033         PR rtl-optimization/42500
25034         PR rtl-optimization/42502
25035         * ira.c (init_reg_equiv_memory_loc: New function.
25036         (ira): Call it twice.
25037         * reload.h (calculate_elim_costs_all_insns): Declare.
25038         * ira-costs.c: Include "reload.h".
25039         (regno_equiv_gains): New static variable.
25040         (init_costs): Allocate it.
25041         (finish_costs): Free it.
25042         (ira_costs): Call calculate_elim_costs_all_insns.
25043         (find_costs_and_classes): Take estimated elimination costs
25044         into account.
25045         (ira_adjust_equiv_reg_cost): New function.
25046         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
25047         * reload1.c (init_eliminable_invariants, free_reg_equiv,
25048         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
25049         (elim_bb): New static variable.
25050         (reload): Move code out of here into init_eliminable_invariants and
25051         free_reg_equiv.  Call them.
25052         (calculate_elim_costs_all_insns): New function.
25053         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
25054         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
25055         but call note_reg_elim_costly if we turned a valid memory address
25056         into an invalid one.
25057         * Makefile.in (ira-costs.o): Depend on reload.h.
25058
25059 2010-06-04  Julian Brown  <julian@codesourcery.com>
25060
25061         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
25062         for pool ranges.
25063
25064 2010-06-04  Richard Guenther  <rguenther@suse.de>
25065
25066         PR lto/41584
25067         * cgraph.h (struct varpool_node): Add lto_file_data field.
25068         * lto-cgraph.c (input_varpool_node): Initialize it.
25069
25070 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25071
25072         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
25073         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
25074         predicate in "type" attribute calculation.
25075         (*addsi_1_zext): Ditto.
25076         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
25077         (*addsi_2_zext): Ditto.
25078         (*add<mode>_3): Ditto.
25079         (*addsi_3_zext): Ditto.
25080         (*add<mode>_5): Ditto.
25081
25082 2010-06-03  Jan Hubicka  <jh@suse.cz>
25083
25084         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
25085         of bitmap_bit_p.
25086         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25087
25088 2010-06-03  Jan Hubicka  <jh@suse.cz>
25089
25090         * df-problems.c (df_create_unused_note, df_note_bb_compute):
25091         micro-optimize the checks when to add new note.
25092
25093 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
25094
25095         * final.c (output_asm_insn): Call
25096         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
25097         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
25098         (output_address): Call targetm.asm_out.print_operand_address.
25099         Update comments.
25100         * target.h (struct gcc_target): Add print_operand,
25101         print_operand_address, and print_operand_punct_valid_p fields.
25102         * targhooks.h (default_print_operand): Declare.
25103         (default_print_operand_address): Declare.
25104         (default_print_operand_punct_valid_p): Declare.
25105         * targhooks.c (default_print_operand): Define.
25106         (default_print_operand_address): Define.
25107         (default_print_operand_punct_valid_p): Define.
25108         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
25109         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
25110         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
25111         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
25112         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
25113         * vmsdbgout.c (addr_const_to_string): Update comment.
25114         * config/i386/i386.c (print_operand): Rename to...
25115         (ix86_print_operand): ...this.  Make static.
25116         (print_operand_address): Rename to...
25117         (ix86_print_operand_address): ...this.  Make static.  Call
25118         ix86_print_operand instead of PRINT_OPERAND.
25119         (ix86_print_operand_punct_valid_p): New function.
25120         (TARGET_PRINT_OPERAND): Define.
25121         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25122         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25123         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
25124         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25125         (PRINT_OPERAND): Delete.
25126         (PRINT_OPERAND_ADDRESS): Delete.
25127         * config/i386/i386-protos.h (print_operand): Delete prototype.
25128         (print_operand_address): Delete prototype.
25129
25130 2010-06-03  Richard Guenther  <rguenther@suse.de>
25131
25132         PR tree-optimization/44403
25133         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25134         Preserve pointer qualifiers.
25135         (vect_create_data_ref_ptr): Likewise.
25136
25137 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
25138
25139         PR c++/44294
25140         * defaults.h (MAX_FIXED_MODE_SIZE): New.
25141
25142         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
25143
25144 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
25145
25146         PR debug/44375
25147         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
25148         return false if merging the bbs would lead to goto_locus
25149         location being lost from the IL.
25150
25151 2010-06-03  Jan Hubicka  <jh@suse.cz>
25152             Jakub Jelinek  <jakub@redhat.com>
25153
25154         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
25155         set->regs[i] is NULL or has just one entry.
25156
25157 2010-06-03  Jan Hubicka  <jh@suse.cz>
25158
25159         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
25160         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
25161
25162 2010-06-03  Paul Brook  <paul@codesourcery.com>
25163
25164         * config/arm/arm.c (FL_TUNE): Define.
25165         (arm_default_cpu, arm_cpu_select): Remove.
25166         (all_cores): Populate core field.
25167         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
25168         (arm_find_cpu): New function.
25169         (arm_handle_option): Lookup cpu/architecture names.
25170         (arm_override_options): Cleanup mcpu/march/mtune handling.
25171         (arm_file_start): Ditto.
25172
25173 2010-06-03  Alan Modra  <amodra@gmail.com>
25174
25175         PR target/44169
25176         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
25177         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
25178         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
25179         (rs6000_emit_load_toc_table): Likewise.
25180
25181 2010-06-02  Jan Hubicka  <jh@suse.cz>
25182
25183         * passes.c (init_optimization_passes): Put ipa reference
25184         after ipa pure-const.
25185
25186 2010-06-02  Jan Hubicka  <jh@suse.cz>
25187
25188         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
25189         calls_read_all and calls_write_all.
25190         (get_reference_optimization_summary): Fix formatting.
25191         (is_proper_for_analysis): Check that decl is not readonly.
25192         (propagate_bits): Check CONST/PURE/noreturn flags.
25193         (ipa_init): Move all_module_statics to optimization_summary_obstack.
25194         (analyze_function): Ignore indirect edges.
25195         (copy_global_bitmap): For all module statics, do nothing.
25196         (generate_summary): Do not print calls_read_all/calls_write_all.
25197         (read_write_all_from_decl): Take node as argument; check
25198         cgraph_node_cannot_return.
25199         (propagate): Reorganize read_all/write_all computation;
25200         check indirect edges; check ecf flags; use all_module_statics
25201         in the results; do not free all_module_statics.
25202         (stream_out_bitmap): Handle all_module_statics.
25203         (ipa_reference_write_optimization_summary): Likewise; use
25204         varpool/cgraph encoders to get boundaries.
25205         (ipa_reference_read_optimization_summary): Read in all_module_statics;
25206         use it when possible.
25207
25208 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25209
25210         PR target/44218
25211         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
25212         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
25213
25214         * doc/extend.texi (powerpc builtins): Document vec_recip,
25215         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
25216
25217         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
25218         (rs6000_emit_swrsqrt): Ditto.
25219         (rs6000_emit_swdivsf): Delete.
25220         (rs6000_emit_swdivdf): Ditto.
25221         (rs6000_emit_swrsqrtsf): Ditto.
25222
25223         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
25224         describe the reciprocal estimate support for each type.
25225         (recip_options): Map -mrecip=<opt> into option bits.
25226         (gen_2arg_fn_t): New typedef for binary rtx gen function.
25227         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
25228         reciprocal estimate instructions.
25229         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
25230         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
25231         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
25232         cost information if -mdebug=cost or -mdebug=reg.
25233         (rs6000_override_options): Set -mrecip-precision for power6, and
25234         power7 machines.  If -mvsx or -mdfp, enable various options that
25235         came in previous instruction set ISAs, unless the option was
25236         explicitly disabled by the command line option.  Parse
25237         -mrecip=<opt> options.
25238         (rs6000_builtin_vectorized_function): Add support for vectorizing
25239         the reciprocal estimate builtins and expansions.
25240         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
25241         (bdesc_2arg): Add reciprocal estimate builtins.
25242         (bdesc_1arg): Add reciprocal square root estimate builtins.
25243         (rs6000_expand_builtin): Rewrite to use a switch statement,
25244         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
25245         (rs6000_init_builtins): Create declarations for reciprocal
25246         estimate builtins.
25247         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
25248         sized, prefer traditional floating point registers, if integer
25249         vector types, prefer altivec registers.  Don't actually look at
25250         the memory address any more.
25251         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
25252         builtins.
25253         (rs6000_load_constant_and_splat): New helper function to load up
25254         the constant for reciprocal estimate instructions.
25255         (rs6000_emit_madd): New helper function for generating
25256         multiply/add type instructions, based on the current switches.
25257         (rs6000_emit_msub): Ditto.
25258         (rs6000_emit_mnsub): Ditto.
25259         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
25260         replace a divide with a reciprocal estimate and fixup, adding
25261         support for machines with high precision and vectors.
25262         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
25263         low precision machines.
25264         (rs6000_emit_swdiv): New common function to be called to replace a
25265         division with reciprocal estimate and fixup.
25266         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
25267         for double and vector types.  Add support for high precision machines.
25268
25269         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
25270         the reciprocal estimate instructions can be generated.
25271         (TARGET_FRE): Ditto.
25272         (TARGET_FRSQRTES): Ditto.
25273         (TARGET_FRSQRTE): Ditto.
25274         (RS6000_RECIP_*): New macros for reciprocal estimate support.
25275
25276         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
25277         square root estimate on vectors.
25278         (re<mode>2): New insn for reciprocal division estimate on vectors.
25279
25280         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
25281         New builtin.
25282         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
25283         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
25284         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
25285         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
25286         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
25287         (RS6000_BUILTIN_RSQRT): Ditto.
25288         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
25289         floating point builtin.
25290
25291         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
25292         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
25293         __RECIP_PRECISION__ based on the command line switches.
25294         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
25295
25296         * config/rs6000/rs6000.opt (-mrecip): Document add support for
25297         replacing division instructions with reciprocal estimate and fixup.
25298         (-mrecip=<opt>): New option.
25299         (-mrecip-precision): Ditto.
25300
25301         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
25302         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
25303         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
25304         precision scalar.
25305
25306         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
25307         (UNSPEC_VREFP): Ditto.
25308         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
25309         conterparts with regard to support of -mno-fused-madd and -ffast-math.
25310         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
25311         reciprocal estimate instructions to be generated.
25312         (altivec_vrefp): Ditto.
25313
25314         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
25315         estimate support.
25316         (rreg): New mode attribute for reciprocal estimate support.
25317         (recip<mode>3): New insn for division using reciprocal estimate
25318         and fixup builtins.
25319         (divide define_split): New define_split to convert floating point
25320         division to use reciprocal estimate if the user used the
25321         appropriate options and the split is run when we can add new
25322         pseudo registers for the fixup.
25323         (rsqrt<mode>2): New insn for reciprocal square root support.
25324         (recipsf3): Move into recip<mode>3.
25325         (recipdf3): Ditto.
25326         (fres): Use TARGET_FRES.
25327         (rsqrtsf2): Move into rsqrt<mode>2.
25328         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
25329         (copysignsf3): Add support for VSX.
25330         (fred): Use TARGET_FRE.
25331         (fred_fpr): Ditto.
25332         (rsqrtdf_internal1): New function for frsqrte instruciton.
25333
25334         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
25335         (vec_rsqrt): Ditto.
25336
25337 2010-06-03  Richard Guenther  <rguenther@suse.de>
25338
25339         PR middle-end/44291
25340         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
25341         (set_user_assembler_libfunc): Likewise.
25342
25343 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25344
25345         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
25346         defaults.h.
25347         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
25348         to defaults.h
25349         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
25350         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
25351         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
25352         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
25353         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
25354         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
25355         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
25356         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
25357         * defaults.h: Updated for above mentioned changes.
25358
25359 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
25360
25361         * c-common.c: Remove header include of tm_p.h.
25362         * Makefile.in (c-common.o): Remove TM_P_H dependency.
25363
25364 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
25365
25366         * tree.h (struct tree_decl_map): New type.
25367         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
25368         (tree_decl_map_hash): New prototype.
25369         (debug_expr_for_decl, value_expr_for_decl): Change into
25370         tree_decl_map hashtab from tree_map.
25371         (init_ttree): Adjust initialization.
25372         (tree_decl_map_hash): New function.
25373         (decl_debug_expr_lookup, decl_debug_expr_insert,
25374         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
25375
25376 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25377
25378         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
25379         linker emulations.
25380         * configure: Regenerate.
25381         * config.in: Regenerate.
25382
25383         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
25384         (X86_64_EMULATION): Define.
25385         (TARGET_LD_EMULATION): Use them.
25386
25387         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
25388         (SPARC64_EMULATION): Define.
25389         (LINK_ARCH_SPEC): Use them.
25390
25391 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25392
25393         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
25394         smallest_mode_for_size for computing the precision types of new
25395         graphite IVs.  Do not call lang_hooks.types.type_for_size.
25396
25397 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25398
25399         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
25400         information.
25401         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
25402
25403 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25404
25405         PR middle-end/44363
25406         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
25407         return false instead.
25408
25409 2010-06-02  Jan Hubicka  <jh@suse.cz>
25410
25411         PR middle-end/44295
25412         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
25413         create new cgraph node to check callee.
25414
25415 2010-06-02  Richard Guenther  <rguenther@suse.de>
25416
25417         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
25418
25419 2010-06-02  Richard Guenther  <rguenther@suse.de>
25420
25421         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
25422         (lto_wrapper_cleanup): ... this.  Do not exit.
25423         (fatal): Adjust.  Exit here.
25424         (fatal_perror): Likewise.
25425         (fatal_signal): New function.
25426         (main): Set up signal handlers to cleanup temporary files.
25427         * Makefile.in (lto-wrapper.o): Adjust dependencies.
25428
25429 2010-06-02  Richard Guenther  <rguenther@suse.de>
25430
25431         PR tree-optimization/44377
25432         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
25433
25434 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25435
25436         * config/s390/2097.md (z10_fhex): Remove insn reservation.
25437         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
25438         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
25439         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
25440         instruction.
25441         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
25442
25443 2010-06-02  Jan Hubicka  <jh@suse.cz>
25444
25445         * bitmap.c (bitmap_descriptor): Add search_iter.
25446         (bitmap_find_bit): Increment it.
25447         (print_statistics): Print it.
25448
25449 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
25450
25451         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
25452         instead of gimple_build_call_vec.  Delete unnecessary local variable.
25453
25454 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25455
25456         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
25457         change from yesterday.
25458
25459 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25460
25461         * c-ada-spec.c: Clean up redundant includes.
25462
25463 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
25464
25465         * gimplify.c: Do not include except.h and optabs.h.
25466         (gimplify_body): Do not initialize RTL profiling.
25467         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
25468         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
25469         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
25470         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
25471         langhooks.h.
25472
25473         * tree-pretty-print.h: Include pretty-print.h.
25474         * gimple-pretty-print.h: Include pretty-print.h.
25475
25476         * tree-pretty-print.c: Do not include diagnostic.h.
25477         * tree-vrp.c: Likewise.
25478         * tree-tailcall.c: Likewise
25479         * tree-scalar-evolution.c: Likewise
25480         * tree-ssa-dse.c: Likewise
25481         * tree-chrec.c: Likewise
25482         * tree-ssa-sccvn.c: Likewise
25483         * tree-ssa-copyrename.c: Likewise
25484         * tree-nomudflap.c: Likewise
25485         * tree-call-cdce.c: Likewise
25486         * tree-stdarg.c: Likewise
25487         * tree-ssa-math-opts.c: Likewise
25488         * tree-nrv.c: Likewise
25489         * tree-ssa-sink.c: Likewise
25490         * tree-browser.c: Likewise
25491         * tree-ssa-loop-ivcanon.c: Likewise
25492         * tree-ssa-loop.c: Likewise
25493         * tree-parloops.c: Likewise
25494         * tree-ssa-address.c: Likewise
25495         * tree-ssa-ifcombine.c: Likewise
25496         * tree-if-conv.c: Likewise
25497         * tree-data-ref.c: Likewise
25498         * tree-affine.c: Likewise
25499         * tree-ssa-phiopt.c: Likewise
25500         * tree-ssa-coalesce.c: Likewise
25501         * tree-ssa-pre.c: Likewise
25502         * tree-ssa-live.c: Likewise
25503         * tree-predcom.c: Likewise
25504         * tree-ssa-forwprop.c: Likewise
25505         * tree-ssa-dce.c: Likewise
25506         * tree-ssa-ter.c: Likewise
25507         * tree-ssa-loop-prefetch.c: Likewise
25508         * tree-optimize.c: Likewise
25509         * tree-ssa-phiprop.c: Likewise
25510         * tree-object-size.c: Likewise
25511         * tree-outof-ssa.c: Likewise
25512         * tree-ssa-structalias.c: Likewise
25513         * tree-switch-conversion.c: Likewise
25514         * tree-ssa-reassoc.c: Likewise
25515         * tree-ssa-operands.c: Likewise
25516         * tree-vectorizer.c: Likewise
25517         * tree-vect-data-refs.c: Likewise
25518         * tree-vect-generic.c: Likewise
25519         * tree-vect-stmts.c: Likewise
25520         * tree-vect-patterns.c: Likewise
25521         * tree-vect-slp.c: Likewise
25522         * tree-vect-loop.c: Likewise
25523         * tree-ssa-loop-ivopts.c: Likewise
25524         * tree-ssa-loop-im.c: Likewise
25525         * tree-ssa-loop-niter.c: Likewise
25526         * tree-ssa-loop-unswitch.c: Likewise
25527         * tree-ssa-loop-manip.c: Likewise
25528         * tree-ssa-loop-ch.c: Likewise
25529         * tree-dump.c: Likewise
25530         * tree-complex.c: Likewise
25531
25532         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
25533         * tree-ssa-uninit.c: Likewise
25534         * tree-ssa-threadupdate.c: Likewise
25535         * tree-ssa-uncprop.c: Likewise
25536         * tree-ssa-ccp.c: Likewise
25537         * tree-ssa-dom.c: Likewise
25538         * tree-ssa-propagate.c: Likewise
25539         * tree-ssa-alias.c: Likewise
25540         * tree-dfa.c: Likewise
25541         * tree-cfgcleanup.c: Likewise
25542         * tree-sra.c: Likewise
25543         * tree-ssa-copy.c: Likewise
25544         * tree-ssa.c: Likewise
25545         * tree-profile.c: Likewise
25546         * tree-cfg.c: Likewise
25547         * tree-ssa-threadedge.c: Likewise
25548         * tree-vect-loop-manip.c: Likewise
25549
25550         * tree-inline.c: Do not include diagnostic.h and expr.h.
25551         Include rtl.h.
25552         (copy_decl_for_dup_finish): Do not use NULL_RTX.
25553
25554         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
25555         * tree-loop-distribution.c: Likewise.
25556
25557 2010-06-01  Jan Hubicka  <jh@suse.cz>
25558
25559         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
25560
25561 2010-06-01  Jan Hubicka  <jh@suse.cz>
25562
25563         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
25564         remove return value.
25565         (split_bbs_on_noreturn_calls) .... here.
25566         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
25567         * tree-flow.h (fixup_noreturn_call): New.
25568
25569 2010-06-01  Jan Hubicka  <jh@suse.cz>
25570
25571         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
25572
25573 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
25574
25575         * tree.h (build_nt_call_list): Delete.
25576         * tree.c (build_nt_call_list): Delete.
25577
25578 2010-06-01  Jan Hubicka  <jh@suse.cz>
25579
25580         * fwprop.c: Make emit-rtl.h include last.
25581         * rtlanal.c: Include emit-rtl.h.
25582         * genautomata.c: Output emit-rtl include into insn-automata.c
25583         * df-scan.c: Include emit-rtl.h.
25584         * haifa-sched.c: Indlude emit-rtl.h.
25585         * mode-switching.c: Indlude emit-rtl.h.
25586         * graph.c: Indlude emit-rtl.h.
25587         * sel-sched.c: Include emit-rtl.h.
25588         * sel-sched-ir.c: Include emit-rtl.h.
25589         * ira-build.c: Include emit-rtl.h.
25590         * emit-rtl.c (first_insn, last_insn): Remove defines.
25591         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
25592         Move to emit-rtl.h.
25593         (set_new_first_and_last_insn, get_last_insn_anywhere,
25594         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
25595         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
25596         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
25597         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
25598         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
25599         Use accessor functions.
25600         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25601          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25602         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25603         mem_expr_equal_p): Move here from rtl.h.
25604         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
25605         Move here from emit-rtl.c; make inline.
25606         * cfglayout.h: Include emit-rtl.h.
25607         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25608          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25609         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25610         mem_expr_equal_p, get_insns, set_first-insn,
25611         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
25612         * reg-stack.c: Include emit-rtl.h.
25613         * dce.c: Likewise.
25614
25615 2010-06-01  Jan Hubicka  <jh@suse.cz>
25616
25617         * cgraph.h (tree_function_versioning): Update prototype.
25618         (cgraph_function_versioning): Update prototype.
25619         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
25620         bitmap.
25621         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
25622         (cgraph_materialize_clone, save_inline_function_body): Update use of
25623         tree_function_versioning.
25624         * tree-inline.c (copy_bb): Look for previous copied block to link
25625         after; fix debug output.
25626         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
25627         (copy_body): Likewise.
25628         (expand_call_inline): Update use of copy_body.
25629         (tree_function_versioning): Update use of copy body; accept
25630         blocks_to_copy and new_entry.
25631
25632 2010-06-01  Jan Hubicka  <jh@suse.cz>
25633
25634         * gegenrtl.c: Remove unnecesary prototypes.
25635         (gendecl): Remove.
25636         (gendef): Produce static inline.
25637         (gencode): Remove.
25638         (main): Do not decode parameters; generate header only.
25639         * Makefile.in (genrtl.c): Remove.
25640
25641 2010-06-01  Jan Hubicka  <jh@suse.cz>
25642
25643         * tree-switch-conversion.c (build_one_array): Make it readonly.
25644
25645 2010-06-01  Richard Guenther  <rguenther@suse.de>
25646
25647         * optabs.c (init_optabs): Guard all accesses to reinit.
25648         * ipa-pure-const.c (propagate): Fix another typo.
25649         * opts.c (common_handle_option): Split assignment to bool.
25650         * c-opts.c (c_common_handle_option): Likewise.
25651
25652 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
25653             Matthew Gingell  <gingell@adacore.com>
25654
25655         * doc/invoke.texi: Mention -fdump-ada-spec.
25656         * tree-dump.c (dump_files): Add ada-spec.
25657         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
25658         * tree-pass.h (tree_dump_index): Add TDI_ada.
25659         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
25660         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
25661         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
25662         * c-decl.c: Include c-ada-spec.h.
25663         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
25664         functions.
25665         (c_write_global_declarations): Add handling of -fdump-ada-spec.
25666         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
25667         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
25668         * c-ada-spec.h, c-ada-spec.c: New files.
25669
25670 2010-06-01  Richard Guenther  <rguenther@suse.de>
25671
25672         PR lto/43853
25673         * ipa-pure-const.c (get_function_state): Hand back varying state
25674         if we do not have one.
25675         (has_function_state): New function.
25676         (duplicate_node_data): Adjust.
25677         (remove_node_data): Likewise.
25678         (pure_const_write_summary): Likewise.
25679         (propagate): Likewise.  Fix typo.
25680
25681 2010-06-01  Jan Hubicka  <jh@suse.cz>
25682
25683         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
25684         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
25685         (execute_all_ipa_transforms): Do not play with the states.
25686
25687 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
25688
25689         * config/arm/t-linux-androideabi: New.
25690         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
25691
25692 2010-06-01  Jan Hubicka  <jh@suse.cz>
25693
25694         * tree-inline.c (estimate_num_insns): For stdarg functions look
25695         into call statement to count cost of argument passing.
25696
25697 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
25698
25699         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
25700         argument for fprintf.
25701         (ix86_output_addr_diff_elt): Likewise.
25702         (x86_function_profiler): Likewise.
25703         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
25704         (LPREFIX): Likewise.
25705         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
25706
25707 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
25708
25709         PR target/44338
25710         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
25711         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
25712         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
25713         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
25714         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
25715         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
25716         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
25717         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
25718         TARGET_FUSED_MADD.
25719
25720 2010-05-31  Jan Hubicka  <jh@suse.cz>
25721
25722         * tree.h (tree_range_check_failed): Declare noreturn.
25723
25724 2010-05-31  Jan Hubicka  <jh@suse.cz>
25725
25726         * gimple.c (gimple_call_builtin_p): New function.
25727         * gimple.h (gimple_call_builtin_p): Declare.
25728         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
25729         to exit.
25730         (execute_warn_function_return): BUILT_IN_RETURN is return.
25731         (split_critical_edges): Return edges are not critical.
25732         (is_ctrl_altering_stmt): Builtin_in_return is altering.
25733         (gimple_verify_flow_info): Handle built_in_return.
25734         (execute_warn_function_return): Handle built_in_return.
25735         * ipa-pure-const.c (check_call): Ignore builtin_return.
25736
25737 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
25738
25739         PR middle-end/44337
25740         * expr.c (expand_assignment): Don't store anything for out-of-bounds
25741         array accesses with non-MEM.
25742
25743         PR tree-optimization/44182
25744         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
25745         newly needs to end a bb is followed by debug stmts, instead return
25746         true from the function at the end.
25747         (maybe_move_debug_stmts_to_successors): New function.
25748         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
25749
25750 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
25751
25752         PR target/44161
25753         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
25754
25755 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25756
25757         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
25758         for nested functions in non-optimized compilation.
25759
25760 2010-05-31  Richard Guenther  <rguenther@suse.de>
25761
25762         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
25763
25764 2010-05-30  Jan Hubicka  <jh@suse.cz>
25765
25766         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
25767
25768 2010-05-30  Richard Guenther  <rguenther@suse.de>
25769
25770         PR lto/42975
25771         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
25772         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
25773         no longer needed.
25774
25775 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
25776
25777         * config/darwin.c (output_objc_section_asm_op): Add comment.
25778         (name_needs_quotes): Add '_' to list of valid comment chars.
25779         (machopic_output_function_base_name): Remove unneeded quotes.
25780         (darwin_encode_section_info): Adjust asm whitespace.
25781         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
25782         (ASM_OUTPUT_LOCAL): Ditto.
25783         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
25784         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
25785         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
25786
25787 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
25788
25789         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
25790         RS6000_OUTPUT_BASENAME unconditionally.
25791         (rs6000_output_function_epilogue): Likewise.
25792
25793 2010-05-30  Jan Hubicka  <jh@suse.cz>
25794
25795         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
25796         nodes.
25797
25798 2010-05-30  Richard Guenther  <rguenther@suse.de>
25799
25800         * tree-cfg.c (verify_gimple_assign_single): Implement
25801         verification for COND_EXPR rhs.
25802
25803 2010-05-30  Jan Hubicka  <jh@suse.cz>
25804
25805         * cgraph.h (cgraph_dump_file): Declare.
25806         * cgraphunit.c (cgraph_dump_file): Export.
25807         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
25808
25809 2010-05-30  Jan Hubicka  <jh@suse.cz>
25810
25811         * dwarf2out.c (reference_to_unused,
25812         premark_types_used_by_global_vars_helper): Avoid creation of new
25813         varpool nodes.
25814
25815 2010-05-30  Jan Hubicka  <jh@suse.cz>
25816
25817         * cgraph.h (cgraph_node_cannot_return,
25818         cgraph_edge_cannot_lead_to_return): New functions.
25819         * cgraph.c (cgraph_node_cannot_return,
25820         cgraph_edge_cannot_lead_to_return): Use them.
25821         * ipa-pure-const.c (pure_const_names): New static var.
25822         (check_call): Handle calls not leading to return.
25823         (pure_const_read_summary): Dump info read.
25824         (propagate): Dump info about propagation process; ignore side effects
25825         of functions not leading to exit; fix handling of pure functions.
25826
25827 2010-05-30  Jan Hubicka  <jh@suse.cz>
25828
25829         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
25830         for tail call epilogues.
25831
25832 2010-05-30  Jan Hubicka  <jh@suse.cz>
25833
25834         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
25835         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
25836         dump files.
25837
25838 2010-05-29  Jan Hubicka  <jh@suse.cz>
25839
25840         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
25841         node; remove references in node we no longer keep in cgrpah but need
25842         body of.
25843
25844 2010-05-29  Jan Hubicka  <jh@suse.cz>
25845
25846         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
25847
25848 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25849
25850         PR target/44165
25851         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
25852
25853 2010-05-29  Jan Hubicka  <jh@suse.cz>
25854
25855         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
25856         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
25857         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
25858         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
25859         debug_names_replaced_by, debug_update_ssa): Likewise.
25860         * sbitmap.c (debug_sbitmap): Likewise.
25861         * genrecog.c (debug_decision, debug_decision_list): Likewise.
25862         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
25863         debug_tree_chain): Likewise.
25864         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
25865         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
25866         * optabs.c (debug_optab_libfuncs): Likewise.
25867         (verify_loop_closed_ssa): Likewise.
25868         * value-prof.c (verify_histograms): Likewise.
25869         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
25870         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
25871         * cfghooks.c (verify_flow_info): Likewise.
25872         * fold-const.c (debug_fold_checksum): Likewise.
25873         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
25874         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
25875         Likewise.
25876         * omega.c (debug_omega_problem): Likewise.
25877         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
25878         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
25879         * dominance.c (verify_dominators, debug_dominance_info,
25880         debug_dominance_tree): Likewise.
25881         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
25882         * df_regno_debug, df_ref_debug,
25883         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
25884         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
25885         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
25886         * sel-sched.c (debug_state): Likewise.
25887         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
25888         Likewise.
25889         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
25890         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
25891         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
25892         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
25893         Likewise.
25894         * c-pretty-print.c (debug_c_tree): Likewise.
25895         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
25896         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
25897         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
25898         * ebitmap.c (debug_ebitmap): Likewise.
25899         * function.c (debug_find_var_in_block_tree): Likewise.
25900         * print-rtl.c (debug_rtx): Likewise.
25901         (debug_rtx_count): Likewise.
25902         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
25903         * stor-layout.c (debug_rli): Likewise.
25904         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
25905         * tree-data-ref.c (debug_data_references,
25906         debug_data_dependence_relations, debug_data_reference,
25907         debug_data_dependence_relation, debug_rdg_vertex,
25908         debug_rdg_component, debug_rdg): Likewise.
25909         * tree-affine.c (debug_aff): Likewise.
25910         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
25911         Likewise.
25912         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
25913         * emit-rtl.c (verify_rtl_sharing): Likewise.
25914         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
25915         debug_value_expressions): Likewise.
25916         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
25917         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
25918         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
25919         * cfglayout.c (verify_insn_chain): Likewise.
25920         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
25921         debug_clast_stmt, debug_generated_program): Likewise.
25922         * ggc-page.c (debug_print_page_list): Likewise.
25923         * tree-ssa-ter.c (debug_ter): Likewise.
25924         * graphite-dependences.c (debug_pddr): Likewise.
25925         * sched-deps.c (debug_ds): Likewise.
25926         * tree-ssa.c (verify_ssa): Likewise.
25927         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
25928         debug_scattering_functions, debug_iteration_domains, debug_pdr,
25929         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
25930         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
25931         * tree-inline.c (debug_find_tree): Likewise.
25932         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
25933         debug_ppl_powerset_matrix): Likewise.
25934         * var-tracking.c (debug_dv): Likewise.
25935         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
25936         * cfgloop.c (verify_loop_structure): Likewise.
25937         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
25938         * c-common.c (verify_sequence_points): Likewise.
25939         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
25940         debug_candidates, debug_rgn_dependencies): Likewise.
25941         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
25942         * debug_constraint_graph, debug_solution_for_var,
25943         debug_sa_points_to_info): Likewise.
25944         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
25945         Likewie.
25946         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
25947         debug_loops, debug_loop, debug_loop_num): Likewise.
25948         * passes.c (debug_pass): Likewise.
25949         (dump_properties): Likewise; add cfglayout property.
25950         (debug_properties): Likewise.
25951         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
25952         * varpool.c (debug_varpool): Likewise.
25953         * regcprop.c (debug_value_data): Likewise.
25954         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
25955         debug_immediate_uses_for): Likewise.
25956
25957 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
25958
25959         PR bootstrap/44315
25960         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
25961         Filter out insn-flags.h.
25962
25963 2010-05-29  Jan Hubicka  <jh@suse.cz>
25964
25965         * cgraph.h (struct varpool_node_set_def,
25966         struct cgraph_node_set_def): Remove unused AUX pointer.
25967         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
25968         VEC_empty macro.
25969
25970 2010-05-29  Jan Hubicka  <jh@suse.cz>
25971
25972         PR middle-end/44324
25973         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
25974
25975 2010-05-29  Richard Guenther  <rguenther@suse.de>
25976
25977         * lto-streamer.c (cached_bp): New global variable.
25978         (bitpack_create): Return the cached bitpack, if available.
25979         (bitpack_delete): Clear and cache the bitpack, if appropriate.
25980         (bp_pack_value): Remove redundant asserts.
25981
25982 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
25983
25984         PR middle-end/44306
25985         * tree-if-conv.c (is_true_predicate): New.
25986         (is_predicated): Use is_true_predicate.
25987         (add_to_predicate_list): Same.  Do not use unshare_expr.
25988         (add_to_dst_predicate_list): Same.
25989
25990 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
25991
25992         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
25993         field on edges.
25994         (predicate_bbs): Same.
25995         (clean_predicate_lists): Same.
25996         (find_phi_replacement_condition): Do not AND the predicate from
25997         edge->aux.
25998
25999 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26000
26001         PR bootstrap/44315
26002         * Makefile.in (build/gencondmd.o): Add a missing `\'.
26003
26004 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26005
26006         PR target/44261
26007         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
26008         (negdf2): Adjust expander pattern and use negdf2_slow.
26009         (negsf2): Likewise.
26010
26011 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
26012
26013         * basic-block.h (struct control_flow_graph): Move last_label_uid field
26014         up.
26015         * df.h (struct df_base_ref): Move regno field up.
26016         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
26017         * expr.h (struct separate_ops): Move location field up.
26018         * optabs.h (struct optab_d): Move libcall_basename field down.
26019         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
26020         * config/i386/i386.h (struct machine_function): Convert call_abi field
26021         into a bitfield.  Move cfa field to the end of the structure.
26022
26023 2010-05-29  Jan Hubicka  <jh@suse.cz>
26024
26025         * varpool.c (varpool_get_node): Fix lookup.
26026
26027 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26028
26029         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
26030         RTL specific prototypes with #ifdef RTX_CODE.
26031         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
26032         * config/spu/t-spu-elf: Fix dependencies.
26033
26034         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
26035
26036 2010-05-29  Mike Stump  <mikestump@comcast.net>
26037
26038         PR bootstrap/44315
26039         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
26040         TM_H when building to avoid dependency loops.
26041
26042 2010-05-29  Jan Hubicka  <jh@suse.cz>
26043
26044         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
26045         refs and body; not the whole node for masters of materialized clones.
26046
26047 2010-05-29  Mike Stump  <mikestump@comcast.net>
26048
26049         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
26050
26051 2010-05-29  Jan Hubicka  <jh@suse.cz>
26052
26053         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
26054         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
26055         use of clone_function_name.
26056         * cgraph.h (cgraph_create_virtual_clone,
26057         cgraph_function_versioning): update prototypes.
26058         (clone_function_name): Declare.
26059         * ipa-cp.c (ipcp_insert_stage): Update call of
26060         cgraph_create_virtual_clone.
26061         * omp-low.c (create_omp_child_function_name): Use
26062         cgraph_create_virtual_clone.
26063         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
26064         (cgraph_function_versioning): Take SUFFIX argument; produce new name
26065         and make decl local.
26066
26067 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26068
26069         * vec.h: Include statistics.h
26070         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
26071         with VEC_H.
26072
26073 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26074
26075         * c-lex.c: Do not include c-tree.h.
26076         * c-pretty-print.c: Likewise.
26077         * c-opts.c: Likewise.
26078         * c-gimplify.c: Likewise.
26079         * c-common.c: Likewise.
26080         * c-dump.c: Likewise.  Include c-common.h.
26081
26082 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26083
26084         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
26085         before including diagnostic-core.h.
26086         (c_cpp_error): New prototype moved from c-tree.h.
26087         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
26088         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
26089         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
26090         (c_cpp_error): Prototype moved to c-common.h.
26091         * Makefile.in: Update dependency for C_COMMON_H.
26092
26093 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26094
26095         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
26096         * c-common.c (c_register_addr_space): Remove here.
26097         * c-decl.c (c_register_addr_space): Re-add here.
26098
26099 2010-05-28  Mike Stump  <mikestump@comcast.net>
26100
26101         * config/darwin-c.c: Remove c-tree.h include.
26102
26103 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26104
26105         * gcc.c: Include diagnostic.h.
26106         (error_count): Remove.  All users changed to use errorcount.
26107         (programname): Remove.  All users changed to use progname.
26108         (fancy_abort, internal_error, fatal_error, error, warning, inform,
26109         fnotice): Remove.
26110         (execute): Don't include "Internal error" and bug reporting
26111         information in argument of internal_error call.
26112         (process_command): Don't increment error_count after calling
26113         perror_with_name.
26114         (input_filename): Rename to gcc_input_filename.  All users
26115         changed.
26116         (main): Call diagnostic_initialize.  Register delete_temp_files
26117         with atexit.  Use seen_error to test for errors.
26118         * gcc.h: Include diagnostic-core.h.
26119         (fatal_error, error, warning): Remove.
26120         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
26121         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
26122         (gcc.o): Update dependencies.
26123
26124 2010-05-28  Jeff Law  <law@redhat.com>
26125
26126         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
26127         functions.
26128         * ira.h (ira_bad_reload_regno): Declare
26129         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
26130
26131         * ira-color.c (update_curr_costs): Free updated hard reg costs.
26132         (ira_reassign_conflict_allocnos): Remove bogus asserts.
26133         (allocno_reload_assign): Likewise.
26134
26135 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
26136
26137         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
26138         build1_stat.
26139
26140 2010-05-28  Richard Guenther  <rguenther@suse.de>
26141
26142         PR lto/44312
26143         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
26144         Stream fixed-point constants mode.
26145         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
26146         and TYPE_PRECISION.
26147         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
26148         Stream fixed-point constants mode.
26149         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
26150         and TYPE_PRECISION.
26151
26152 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26153
26154         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
26155         only place it was called from.
26156         (number_of_latch_executions): Do not return chrec_dont_know when the
26157         may_be_zero is a runtime condition: instead, return a COND_EXPR
26158         including the may_be_zero condition.
26159         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
26160         of nb_iterations.
26161         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
26162         COND_EXPRs.
26163
26164 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26165
26166         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
26167         generate COND_EXPRs for degenerate_phi_result.
26168
26169 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26170
26171         PR middle-end/44293
26172         * tree-if-conv.c (if_convertible_loop_p): Check the
26173         if-convertibility of phi nodes in non predicated BBs.
26174
26175 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26176
26177         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
26178
26179 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26180
26181         PR driver/15303
26182         * gcc.c (inform, warning, inform): New functions.
26183         (fatal_ice): Rename to internal_error; change cmsgid parameter to
26184         gmsgid.  All callers changed.
26185         (notice): Rename to fnotice; add parameter fp.  All callers changed.
26186         (fatal_error): Rename to fatal_signal.  All users changed.
26187         (fatal): Rename to fatal_error; change cmsgid parameter to
26188         gmsgid.  All callers changed.
26189         (process_command): Use warning instead of error for warnings.
26190         (end_going_arg): Don't use _() around argument of error.
26191         (do_spec_1): Use inform for message from %n specs.  Use warning
26192         instead of error for warnings.
26193         (main): Use inform for comparison messages.  Use warning for
26194         message about unused linker input.
26195         (error): Increment error_count.  Print "error: ".
26196         * gcc.h (fatal): Change to fatal_error.
26197         (warning): Declare.
26198         * config/darwin-driver.c (darwin_default_min_version): Use warning
26199         instead of fprintf for warnings.
26200         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
26201
26202 2010-05-28  Julian Brown  <julian@codesourcery.com>
26203
26204         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
26205         (*thumb2_addsi3_compare0_scratch): New.
26206         * config/arm/constraints.md (Pv): New.
26207         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
26208         for ARM mode only.
26209         (*addsi3_compare0_scratch): Likewise.
26210
26211 2010-05-28  Jan Hubicka  <jh@suse.cz>
26212
26213         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
26214         check.
26215         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
26216         only on local statics.
26217
26218 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
26219
26220         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
26221
26222 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
26223
26224         PR bootstrap/44314
26225         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
26226         (OPTION_GLIBC): Define.
26227
26228 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
26229
26230         PR debug/41048
26231         * dwarf2out.c (double_int_type_size_in_bits): New function.
26232         (round_up_to_align): Change first argument and return value to
26233         double_int.
26234         (field_byte_offset): Work internally on double_ints.
26235
26236         PR target/43636
26237         * builtins.c (expand_movstr): Use a temporary pseudo instead
26238         of target even when target is not NULL and not const0_rtx, but
26239         fails movstr predicate.
26240         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
26241
26242 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26243
26244         * final.c (rest_of_clean_state): Use %m in errors instead of
26245         strerror (errno).
26246         * gengtype.c (read_input_list, close_output_files): Use xstrerror
26247         instead of strerror.
26248         * toplev.c (process_options): Use %m in errors instead of strerror
26249         (errno).
26250         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
26251         (errno).
26252
26253 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
26254
26255         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
26256         (ix86_canonical_va_list_type): Make static.  Add declaration.
26257         (ix86_enum_va_list): Make static.  Reindent.
26258         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
26259         (ix86_canonical_va_list_type): Ditto.
26260         (ix86_enum_va_list): Ditto.
26261
26262 2010-05-28  Richard Guenther  <rguenther@suse.de>
26263
26264         * lto-wrapper.c (run_gcc): With -save-temps generate a
26265         user-visible ltrans filename.  Fixup ltrans unit numbering.
26266
26267 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
26268
26269         * c-common.c (c_common_nodes_and_builtins): Replace use
26270         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
26271         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
26272         to ix86_enum_va_list.
26273         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
26274         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
26275         (TARGET_ENUM_VA_LIST_P): Add hook description.
26276         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
26277         * target.h (gcc_target): Add enum_va_list hook.
26278
26279         PR bootstrap/44299
26280         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
26281         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
26282         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
26283
26284 2010-05-28  Alan Modra  <amodra@gmail.com>
26285
26286         PR target/44266
26287         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
26288         emit_library_call machinery to set up __tls_get_addr calls.
26289
26290 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26291
26292         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
26293
26294 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
26295
26296         Revert fix for PR c++/44188
26297         * c-common.c (is_typedef_decl): Revert the moving of  this
26298         definition ...
26299         * tree.c (is_typedef_decl): ... here.
26300         (typdef_variant_p): Revert the moving of this  definition
26301         here from cp/tree.c.
26302         * c-common.h (is_typedef_decl): Revert the moving of this
26303         declaration ...
26304         * tree.h (is_typedef_decl): ... here.
26305         (typedef_variant_p): Revert the moving of this  declaration here
26306         from cp/cp-tree.h
26307         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
26308         (gen_tagged_type_die): Revert the splitting out of ...
26309         (gen_type_die_with_usage): ... this function. Revert the anonymous
26310         tagged type handling.
26311         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
26312         typedefs naming anonymous tagged types.
26313
26314 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
26315
26316         * config/rs6000/rs6000-modes.def (PSImode): Delete.
26317
26318 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
26319
26320         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
26321         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
26322         throughout.
26323         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
26324         "xer" to "ca".
26325         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
26326         XER_REGS to CA_REGS throughout.
26327         * config/rs6000/rs6000.h: Same.
26328         (ADDITIONAL_REGISTER_NAMES): Add "xer".
26329         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
26330         that mode_iterator "P" is the size for arithmetic carries as well.
26331         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
26332
26333 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
26334
26335         PR bootstrap/44255
26336         * combine.c (struct rtx_subst_pair): Define unconditionally.
26337         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
26338         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
26339         Call make_compound_operation on pair->to.
26340         (propagate_for_debug): Don't call make_compound_operation here.
26341         Always use simplify_replace_fn_rtx.
26342
26343 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
26344
26345         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
26346         * config/xtensa/xtensa.c (override_options): Check
26347           TARGET_FORCE_NO_PIC and set flag_pic.
26348         * config/xtensa/xtensa.opt: Document -mforce-no-pic
26349
26350 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
26351
26352         PR bootstrap/44299
26353         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
26354         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
26355
26356 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
26357
26358         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
26359         toplev.h.
26360         * diagnostic.c: Don't include toplev.h.
26361         (progname): Define.  Moved from toplev.c.
26362         (seen_error): New function.
26363         * diagnostic.h: Include diagnostic-core.h.
26364         (diagnostic_t, emit_diagnostic): Don't declare here.
26365         * toplev.c (progname): Move to toplev.c.
26366         (emit_debug_global_declarations, compile_file, finalize,
26367         do_compile, toplev_main): Use seen_error.
26368         * toplev.h: Include diagnostic-core.h.
26369         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
26370         internal_error, warning, warning_at, error, error_n, error_at,
26371         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
26372         verbatim, fnotice, progname): Move to diagnostic-core.h.
26373         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
26374         (expand_builtin_expect): Use seen_error.
26375         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
26376         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
26377         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
26378         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
26379         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
26380         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
26381         errorcount for errors.
26382         * c-opts.c (c_common_finish): Use seen_error.
26383         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26384         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
26385         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
26386         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
26387         (get_coverage_counts): Use seen_error.
26388         * dwarf2out.c (dwarf2out_finish): Use seen_error.
26389         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
26390         gimplify_body): Use seen_error.
26391         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
26392         * ipa-pure-const.c (gate_pure_const): Use seen_error.
26393         * ipa-reference.c (gate_reference): Use seen_error.
26394         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
26395         * lambda-code.c: Include diagnostic-core.h instead of
26396         diagnostic.h.
26397         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26398         * lto-compress.c: Include diagnostic-core.h instead of
26399         diagnostic.h.
26400         * lto-section-in.c: Include diagnostic-core.h instead of
26401         diagnostic.h.
26402         * lto-streamer-out.c: Include diagnostic-core.h instead of
26403         diagnostic.h.
26404         * lto-streamer.c: Include diagnostic-core.h instead of
26405         diagnostic.h.
26406         (gate_lto_out): Use seen_error.
26407         * matrix-reorg.c: Include diagnostic-core.h instead of
26408         diagnostic.h.
26409         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
26410         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
26411         (gate_expand_omp, lower_omp_1): Use seen_error.
26412         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
26413         (rest_of_decl_compilation, rest_of_type_compilation,
26414         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
26415         * tree-cfg.c (label_to_block_fn): Use seen_error.
26416         * tree-inline.c (optimize_inline_calls): Use seen_error.
26417         * tree-mudflap.c (mudflap_finish_file): Use
26418         seen_error.
26419         * tree-optimize.c (gate_all_optimizations,
26420         gate_all_early_local_passes, gate_all_early_optimizations): Use
26421         seen_error.
26422         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
26423         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
26424         (varpool_remove_unreferenced_decls,
26425         varpool_assemble_pending_decls): Use seen_error.
26426         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
26427         (TOPLEV_H, DIAGNOSTIC_H): Update.
26428         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
26429         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
26430         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
26431         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
26432         coverage.o, lambda-code.o): Update dependencies.
26433
26434 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
26435
26436         PR c++/44188
26437         * c-common.c (is_typedef_decl): Move this definition ...
26438         * tree.c (is_typedef_decl): ... here.
26439         (typdef_variant_p): Move definition here from cp/tree.c.
26440         * c-common.h (is_typedef_decl): Move this declaration ...
26441         * tree.h (is_typedef_decl): ... here.
26442         (typedef_variant_p): Move declaration here from cp/cp-tree.h
26443         * dwarf2out.c (is_naming_typedef_decl): New function.
26444         (gen_tagged_type_die): Split out of ...
26445         (gen_type_die_with_usage): ... this function. When an anonymous
26446         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26447         is emitted for the typedef.
26448         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26449         anonymous tagged types.
26450
26451 2010-05-27  Jason Merrill  <jason@redhat.com>
26452
26453         * print-tree.c (debug_vec_tree): New fn.
26454         (print_vec_tree): New fn.
26455         * tree.h: Declare them.
26456         * gdbinit.in (pvt): New command.
26457
26458         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
26459
26460         * gdbinit.in (pdd): New command.
26461
26462 2010-05-27  Jan Hubicka  <jh@suse.cz>
26463
26464         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
26465         (update_caller_keys): Return early if there are no callers;
26466         only update fibheap when decresing the key.
26467         (update_callee_keys): Avoid recursion.
26468         (decide_inlining_of_small_functions): When badness does not match;
26469         re-insert into fibheap.
26470
26471 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
26472
26473         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
26474         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
26475         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
26476         (ALL_HOST_OBJS): Now a union of the above two.
26477         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
26478         all files in ALL_HOST_FRONTEND_OBJS.
26479         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
26480
26481         * c-common.c: Pretend to be a backend file by undefining
26482         IN_GCC_FRONTEND (still need rtl.h here).
26483
26484 2010-05-27  Jan Hubicka  <jh@suse.cz>
26485
26486         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
26487         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
26488
26489 2010-05-27  Jan Hubicka  <jh@suse.cz>
26490
26491         * sched-ebb.c: Rename struct deps to struct deps_desc.
26492         * ddg.c: Likewise.
26493         * sel-sched-ir.c: Likewise.
26494         * sched-deps.c: Likewise.
26495         * sched-int.h: Likewise.
26496         * sched-rgn.c: Likewise.
26497
26498 2010-05-27  Jon Beniston  <jon@beniston.com>
26499
26500         PR 43726
26501         * config/lm32/lm32.h: Remove definition of
26502         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
26503
26504 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26505
26506         PR lto/44230
26507         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
26508
26509 2010-05-27  Richard Guenther  <rguenther@suse.de>
26510
26511         PR tree-optimization/44284
26512         * tree-vect-stmts.c (vectorizable_assignment): Handle
26513         sign-changing conversions as simple copy.
26514
26515 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26516
26517         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
26518         Bionic C library.
26519         (__gthread_active_p): Check for pthread_create if compiling against
26520         Bionic C library.
26521
26522 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26523
26524         Support compilation for Android platform.  Reimplement -mandroid.
26525
26526         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
26527         (*android*): Set ANDROID_DEFAULT.
26528         (arm*-*-linux*): Include linux-android.h.
26529         (arm*-*-eabi*): Don't include previous -mandroid implementation.
26530         * config/arm/eabi.h: Remove, move Android-specific parts ...
26531         * config/linux-android.h: ... here.  New file.
26532         * config/arm/eabi.opt: Rename to ...
26533         * config/linux-android.opt: ... this.
26534         (mandroid): Allow -mno-android option.  Initialize based on
26535         ANDROID_DEFAULT.
26536         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
26537         Move logic to corresponding LINUX_TARGET_* macros.
26538         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
26539         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
26540         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
26541         Android definitions.
26542         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
26543         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
26544         Document.
26545
26546 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26547
26548         Add support for Bionic C library
26549
26550         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
26551         macro.
26552         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
26553         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
26554
26555         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
26556         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
26557         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
26558         to support multiple C libraries.  Handle Bionic.
26559         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
26560         (BIONIC_DYNAMIC_LINKER64): Define.
26561         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
26562         Update.
26563         (TARGET_HAS_SINCOS): Enable for Bionic.
26564
26565         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
26566         the last option specified on command line take effect.
26567         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
26568         (mbionic): New.
26569         (mglibc, muclibc): Update.
26570
26571         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
26572         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
26573         DEFAULT_LIBC.
26574
26575         * doc/invoke.texi (-mglibc, -muclibc): Update.
26576         (-mbionic): Document.
26577
26578 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26579
26580         * c-common.h (c_register_addr_space): Add prototype.
26581         (ADDR_SPACE_KEYWORD): Remove.
26582         * c-common.c (c_register_addr_space): New function.
26583         (c_addr_space_name): Reimplement.
26584         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
26585
26586         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
26587         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
26588
26589         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
26590         Remove TARGET_ADDR_SPACE_KEYWORDS.
26591
26592 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
26593
26594         * input.c: New file.
26595         * input.h (main_input_filename): Move declaration to toplev.h.
26596         * toplev.c (input_location, line_table): Move to input.c
26597         * toplev.h (main_input_filename): Move declaration from input.h.
26598         * tree.c (expand_location): Move to input.c.
26599         * Makefile.in (OBJS-common): Add input.o.
26600         (input.o): Add dependencies.
26601
26602 2010-05-27  Richard Guenther  <rguenther@suse.de>
26603
26604         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
26605         for non-existant files.
26606         (fork_execute): Mark args_name file as deleted.
26607
26608 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
26609
26610         PR bootstrp/44287
26611         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
26612         (narrow_signed_type): Likewise.
26613
26614 2010-05-26  Jan Hubicka  <jh@suse.cz>
26615
26616         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
26617         edge only when checking is enabled; check using former_clone_of;
26618         check inline clones too.
26619         (cgraph_materialize_clone): Record former_clone_of pointer.
26620         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
26621         combining redirections; dump args_to_skip bitmap
26622         (cgraph_materialize_all_clones): Do no redirection here.
26623         * ipa-inline.c (inline_transform): Do redirection here.
26624         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
26625         cheking only).
26626
26627 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26628
26629         * config/avr/avr-c.c: Do not include regs.h.
26630         Include cpplib.h for cpp_define and tree.h for c-common.h.
26631         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
26632         * config/avr/t-avr: Fix dependencies for avr-c.o.
26633
26634 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26635
26636         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
26637         string instead of SYMBOL_REF rtx.
26638         * rtl.h (set_stack_check_libfunc): Move prototype from here...
26639         * libfuncs.h: ...to here.  Adjust for explow.c change.
26640
26641 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
26642
26643         * pretty-print.c: Don't include ggc.h.
26644         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
26645         (identifier_to_locale): Use them for allocation.
26646         * pretty-print.h (identifier_to_locale_alloc,
26647         identifier_to_locale_free): Declare.
26648         * toplev.c (alloc_for_identifier_to_locale): New.
26649         (general_init): Set identifier_to_locale_alloc and
26650         identifier_to_locale_free.
26651         * Makefile.in (pretty-print.o): Update dependencies.
26652
26653 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
26654
26655         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
26656         pointer types if they have different alignment or mode.
26657
26658 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
26659
26660         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26661         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26662         * config/sparc/sparc-protos.h (function_value): Remove declaration.
26663         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
26664         sparc_function_value_regno_p): New functions.
26665         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26666         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26667         (function_value): Rename to...
26668         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
26669         argument to 'outgoing'.
26670         (function_arg_record_value, function_arg_union_value,
26671         function_arg_vector_value): Update comment.
26672
26673 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
26674
26675         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
26676         (fde_needed_for_eh_p): New predicate.
26677         (output_call_frame_info): Use it throughout to decide whether FDEs
26678         are needed for EH purpose.
26679         (dwarf2out_begin_prologue): Reorder assignments.
26680
26681 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26682
26683         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
26684         special case loop->header.
26685         (is_predicated): New.
26686         (if_convertible_loop_p): Call it.
26687
26688 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26689
26690         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
26691         iterator in parameter.  Do not generate code during the analysis.
26692         (tree_if_convert_cond_stmt): Removed.
26693         (tree_if_convert_stmt): Removed.
26694         (predicate_bbs): New.
26695         (if_convertible_loop_p): Call predicate_bbs.
26696         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
26697         now contains all the analysis part.
26698
26699 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26700
26701         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
26702         statements in the analysis part.
26703         (tree_if_convert_stmt): Update comment.
26704         (remove_conditions_and_labels): New.
26705         (combine_blocks): Call remove_conditions_and_labels.
26706         (tree_if_conversion): Update comment.
26707
26708 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26709
26710         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
26711         than 2 predecessors or more than 2 successors.
26712
26713 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26714
26715         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
26716         of loops in which the data dependence analysis fails.
26717
26718 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26719
26720         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
26721         CDI_POST_DOMINATORS.
26722         (tree_if_conversion): Same.
26723
26724 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26725
26726         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
26727
26728 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26729
26730         * tree-if-conv.c: Update copyright years.  Fix comments.
26731         Fix indentation.
26732
26733 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
26734
26735         * builtin-types.def (BT_INT128): New primitive type.
26736         (BT_UINT128): Likewise.
26737         * c-common.c (c_common_r): Add __int128 keyword.
26738         (c_common_type_for_size): Handle __int128.
26739         (c_common_type_for_mode): Likewise.
26740         (c_common_signed_or_unsigned_type): Likewise.
26741         (c_common_nodes_and_builtins): Add builtin type
26742         if target supports 128-bit integer scalar.
26743         * c-common.h (enum rid): Add RID_INT128.
26744         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
26745         if target supports 128-bit integer scalar.
26746         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
26747         (finish_declspecs): Likewise.
26748         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
26749         (c_token_starts_declspecs): Likewise.
26750         (c_parser_declspecs): Likewise.
26751         (c_parser_attributes): Likewise.
26752         (c_parser_objc_selector): Likewise.
26753         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
26754         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
26755         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
26756         * tree.c (make_or_reuse_type): Likewise.
26757         (make_unsigned_type): Likewise.
26758         (build_common_tree_nodes_2): Likewise.
26759         * tree.h (enum integer_type_kind): Add itk_int128 and
26760         itk_unsigned_int128.
26761         (int128_integer_type_node): New define.
26762         (int128_unsigned_type_node): New define.
26763         * doc/extend.texi: Add documentation about __int128 type.
26764
26765 2010-05-26  Richard Guenther  <rguenther@suse.de>
26766
26767         * tree-ssa-sccvn.c (copy_nary): Adjust.
26768         (copy_phis): Rename to ...
26769         (copy_phi): ... this.  Adjust.
26770         (copy_references): Rename to ...
26771         (copy_reference): ... this.  Adjust.
26772         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
26773         result into the valid table.
26774
26775 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26776
26777         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
26778         insn-config.h, insn-codes.h, recog.h, and optabs.h.
26779
26780 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26781
26782         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
26783
26784 2010-05-26  Richard Guenther  <rguenther@suse.de>
26785
26786         * opts.c (common_handle_option): Handle OPT_Ofast.
26787
26788 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
26789
26790         * diagnostic.c: Don't include opts.h.
26791         (permissive_error_option): Define.
26792         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
26793         for classify_diagnostic.  Don't use memset for
26794         classify_diagnostic.  Initialize new and recently added fields.
26795         (diagnostic_classify_diagnostic): Use context->n_opts instead of
26796         N_OPTS.
26797         (diagnostic_report_diagnostic): Pass context parameter to
26798         diagnostic_report_warnings_p.  Use option_enabled and option_name
26799         hooks from context.
26800         (emit_diagnostic): Use permissive_error_option.
26801         (permerror): Likewise.
26802         * diagnostic.h: Don't include options.h.
26803         (struct diagnostic_context): Add n_opts, opt_permissive,
26804         inhibit_warnings, warn_system_headers, option_enabled and
26805         option_name fields.  Change classify_diagnostic to a pointer.
26806         * opts-diagnostic.h: New file.
26807         * opts.c: Include opts-diagnostic.h.
26808         (common_handle_option): Set global_dc fields for -Wfatal-errors,
26809         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
26810         (option_name): New function.
26811         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
26812         (c_common_handle_option): Set global_dc->permissive for
26813         -fpermissive.
26814         * c-common.c (c_cpp_error): Save and restore
26815         global_dc->warn_system_headers, not variable warn_system_headers.
26816         * toplev.c: Include opts-diagnostic.h.
26817         (general_init): Update call to diagnostic_initialize.  Set
26818         global_dc->show_column, global_dc->option_enabled and
26819         global_dc->option_name.
26820         (process_options): Don't set global_dc fields here.
26821         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
26822         (diagnostic.o, opts.o, toplev.o): Update dependencies.
26823
26824 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26825
26826         * config/picochip/picochip.md (movsi): Split a movsi from a
26827         const after reload.
26828
26829 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26830
26831         * ggc-zone.c: Update copyright year.
26832         (poison_region): Mark memory for Valgrind as undefined before
26833         memset () call and inaccessible afterwards.
26834         (ggc_pch_total_size): Change type of i to int.
26835
26836 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26837
26838         * ggc-common.c (ggc_free_overhead): Allow empty slot.
26839
26840 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26841
26842         * ggc-common.c: Update copyright year.
26843         (ggc_rlimit_bound): Remove prototype.  Compile only if
26844         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
26845         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
26846         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
26847         (ggc_min_heapsize_heuristic): Likewise.
26848
26849 2010-05-26  Richard Guenther  <rguenther@suse.de>
26850
26851         PR rtl-optimization/44164
26852         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
26853         no-common access-path disambiguation.
26854         (indirect_ref_may_alias_decl_p): Adjust.
26855         (indirect_refs_may_alias_p): Likewise.
26856         (refs_may_alias_p_1): Likewise.
26857
26858 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26859
26860         * c-typeck.c: Do not include expr.h.
26861
26862 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26863
26864         * rtl.h (decl_default_tls_model): Move prototype from here...
26865         * output.h: ...to here.
26866         * c-decl.c: Do not include rtl.h.
26867         * c-pragma.c: Likewise.
26868         * c-parser.c: Likewise.
26869         * c-gimplify.c: Likewise.  And also not hard-reg-set.
26870         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
26871         FIXME note for it.  Add a FIXME note for expr.h.
26872         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
26873         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
26874         defined.
26875
26876 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
26877
26878         PR target/44199
26879         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
26880         or total_size is larger than red zone size for non-V4 ABI, emit a
26881         stack_tie resp. frame_tie insn before stack pointer restore.
26882         * config/rs6000/rs6000.md (frame_tie): New insn.
26883
26884 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
26885
26886         * function.h (struct function): Add can_throw_non_call_exceptions bit.
26887         * lto-streamer-in.c (input_function): Stream it in.
26888         * lto-streamer-out.c (output_function): Stream it out.
26889         * function.c (allocate_struct_function): Set it.
26890         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
26891         for flag_non_call_exceptions.
26892         * cfgbuild.c (control_flow_insn_p): Likewise.
26893         (make_edges): Likewise.
26894         * cfgexpand.c (expand_stack_alignment): Likewise.
26895         * combine.c (distribute_notes): Likewise.
26896         * cse.c (cse_extended_basic_block): Likewise.
26897         * except.c (insn_could_throw_p): Likewise.
26898         * gcse.c (simple_mem): Likewise.
26899         * ipa-pure-const.c (check_call): Likewise.
26900         (check_stmt ): Likewise.
26901         * lower-subreg.c (lower-subreg.c): Likewise.
26902         * optabs.c (emit_libcall_block): Likewise.
26903         (prepare_cmp_insn): Likewise.
26904         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
26905         * postreload.c (rest_of_handle_postreload): Likewise.
26906         * reload1.c (reload_as_needed): Likewise.
26907         (emit_input_reload_insns): Likewise.
26908         (emit_output_reload_insns): Likewise.
26909         (fixup_abnormal_edges): Likewise.
26910         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
26911         * store-motion.c (find_moveable_store): Likewise.
26912         * tree-eh.c (stmt_could_throw_p): Likewise.
26913         (tree_could_throw_p): Likewise.
26914         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26915         * config/arm/arm.c (arm_expand_prologue): Likewise.
26916         (thumb1_expand_prologue): Likewise.
26917         * config/rx/rx.md (cbranchsf4): Likewise.
26918         (cmpsf): Likewise.
26919         * config/s390/s390.c (s390_emit_prologue): Likewise.
26920         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
26921         (inline_forbidden_into_p): New predicate.
26922         (expand_call_inline): Use it to forbid inlining.
26923         (tree_can_inline_p): Likewise.
26924
26925 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26926
26927         * config/i386/i386-c.c: Do not include rtl.h.
26928         * config/i386/t-i386: Update dependencies.
26929
26930 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26931
26932         * attribs.c: Do not include rtl.h.
26933         * Makefile.in: Update dependencies.
26934
26935 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
26936
26937         * double-int.h (double_int_and): New.
26938         * combine.c (try_combine): Clean up, use double_int_* and
26939         immed_double_int_const functions.
26940
26941 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26942
26943         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
26944         stderr to /dev/null instead of grep -q.
26945         * configure: Regenerate.
26946
26947 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
26948
26949         * Makefile.in (EXCEPT_H): Fix typo.
26950
26951 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
26952
26953         * ira-build.c (update_conflict_hard_reg_costs): New.
26954         (ira_build): Call update_conflict_hard_reg_costs.
26955
26956 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
26957
26958         PR debug/41371
26959         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
26960         ENABLE_CHECKING.
26961         (intersect_loc_chains): Walk the s2var's loc_chain together
26962         with s1node chain as long as the locations are equal, don't
26963         call find_loc_in_1pdv in that case.
26964
26965         PR debug/42801
26966         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
26967         (copy_bind_expr): ... instead of here.
26968         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
26969         if the block hasn't been remapped.
26970         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
26971         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
26972
26973 2010-05-25  Richard Guenther  <rguenther@suse.de>
26974
26975         PR middle-end/44069
26976         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
26977         out-of-bounds array accesses.
26978
26979 2010-05-25  Richard Guenther  <rguenther@suse.de>
26980
26981         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
26982         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
26983         (run_gcc): Re-organize to make cleanup easier.
26984
26985 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26986
26987         * config/s390/s390.c (optimization_options): Fix and move the
26988         flag_prefetch_loop_arrays override ...
26989         (override_options): ... here.
26990
26991 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
26992
26993         * diagnostic.c: Don't include plugin.h.
26994         (diagnostic_report_diagnostic): Don't handle plugins specially
26995         here.  Pass context to internal_error callback.
26996         * diagnostic.h (struct diagnostic_context): Add context parameter
26997         to internal_error callback.
26998         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
26999         * plugin.h (struct diagnostic_context): Declare.
27000         (warn_if_plugins, plugins_internal_error_function): Declare.
27001         * toplev.c (general_init): Set global_dc->internal_error.
27002         * Makefile.in (diagnostic.o): Update dependencies.
27003
27004 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
27005
27006         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
27007         * config/rs6000/t-darwin64: New.
27008         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
27009         build crt2.
27010
27011 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
27012
27013         PR 44203
27014         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
27015         match the original (and intended) behaviour before r159557.  This
27016         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
27017         in two ways.
27018
27019 2010-05-25  Richard Guenther  <rguenther@suse.de>
27020
27021         * doc/invoke.texi: Document -Ofast.
27022         * target.h (struct gcc_target): Add handle_ofast.
27023         * target-def.h (TARGET_HANDLE_OFAST): Add.
27024         (TARGET_INITIALIZER): Adjust.
27025         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
27026         * common.opt (Ofast): Add.
27027
27028 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27029
27030         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
27031         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
27032
27033 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27034
27035         PR target/43610
27036         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
27037         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
27038         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
27039         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
27040
27041 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27042
27043         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
27044         DW_OP_minus with negated offset instead of DW_OP_plus.
27045         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
27046
27047 2010-05-25  Wei Guozhi  <carrot@google.com>
27048
27049         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
27050         tst instruction and a new alternative.
27051         * config/arm/constraints.md (Pu): New constraint.
27052
27053 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
27054
27055         * function.c (assign_stack_local_1): Initialize variable
27056         to avoid warning when bootstrapping at -O3.
27057
27058 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
27059
27060         * configure.ac (all_lang_makefiles): Remove everything related to it.
27061         * configure: Regenerate.
27062         * Makefile.in: Fix reference to ada Make-lang.in.
27063         Remove support for LANG_MAKEFILES.
27064
27065 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
27066             Sandra Loosemore  <sandra@codesourcery.com>
27067
27068         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
27069         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
27070         description.  Add arm_neon_fp16_ok.
27071         (Add Options): Add arm_neon and arm_neon_fp16.
27072
27073 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
27074
27075         * diagnostic.c: Don't include flags.h.
27076         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
27077         context parameters.  Check flags in the context passed as a parameter.
27078         (diagnostic_build_prefix): Add context parameter.  Check
27079         show_column flag in context.
27080         (diagnostic_action_after_output): Check fatal_errors flag in context.
27081         (diagnostic_report_current_module): Check show_column flag in context.
27082         (default_diagnostic_starter): Update call to
27083         diagnostic_build_prefix.
27084         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
27085         (emit_diagnostic): Pass context to permissive_error_kind.
27086         (permerror): Pass context to permissive_error_kind.
27087         * diagnostic.h (struct diagnostic_context): Add show_column,
27088         pedantic_errors, permissive and fatal_errors fields.
27089         (diagnostic_build_prefix): Update prototype.
27090         * langhooks.c
27091         * toplev.c (process_options): Set flags in global_dc from
27092         flag_show_column, flag_pedantic_errors, flag_permissive,
27093         flag_fatal_errors.
27094         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
27095         to diagnostic_build_prefix.
27096         * Makefile.in (diagnostic.o): Update dependencies.
27097
27098 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
27099
27100         * config/i386/ia32intrin.h (__crc32q): Define only if
27101         __SSE4_2__ is defined.
27102
27103 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
27104
27105         PR target/44132
27106         PR middle-end/43602
27107         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
27108         DECL_VISIBILITY_SPECIFIED.
27109         (emutls_decl): Set DECL_PRESERVE_P and copy
27110         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
27111         (emutls_finalize_control_var): New callback.
27112         (emutls_finish): Finalize emutls control variables.
27113         * toplev.c (compile_file): Move the call to emutls_finish ()
27114         before varpool_assemble_pending_decls ().
27115
27116 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
27117
27118         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
27119         added to the preprocessor condition.
27120
27121 2010-05-24  Paul Brook  <paul@codesourcery.com>
27122
27123         * gengtype-lex.l: Add HARD_REG_SET.
27124         * expr.c (expand_expr_real_1): Record writes to hard registers.
27125         * function.c (rtl_data): Add asm_clobbers.
27126         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
27127         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
27128         Use crtl->asm_clobbers.
27129
27130 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27131
27132         * doc/makefile.texi (Makefile): Mention stages 'profile'
27133         and 'feedback' for profiledbootstrap.
27134
27135 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
27136
27137         PR target/44245
27138         * config/i386/i386.c (def_builtin): Properly check
27139         OPTION_MASK_ISA_64BIT.
27140
27141 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
27142
27143         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
27144         typedefs with different but compatible types.  Allow duplicate
27145         typedefs with the same type except for pedantic non-C1X, but give
27146         warning for variably modified types.
27147         * c-typeck.c (tagged_types_tu_compatible_p,
27148         function_types_compatible_p, type_lists_compatible_p,
27149         comptypes_internal): Add parameter different_types_p; set
27150         *different_types_p for different but compatible types.  All
27151         callers changed.
27152         (comptypes_check_different_types): New.
27153         * c-tree.h (comptypes_check_different_types): Declare.
27154
27155 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27156
27157         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
27158         * jump.c: Include basic-block.h.
27159         * profile.c: Likewise.
27160         * tree-profile.c: Likewise.
27161         * coverage.c: Likewise.
27162         * basic-block.h (optimize_function_for_size_p): Move to function.h.
27163         (optimize_function_for_speed_p): Likewise.
27164         * function.h (optimize_function_for_size_p,
27165         optimize_function_for_speed_p): Moved here from basic-block.h.
27166         * Makefile.in: Update dependencies.
27167
27168 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27169
27170         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
27171         before calling make; allow override through $MAKE.
27172         * doc/invoke.texi (Optimize Options): Document override.
27173
27174 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
27175
27176         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
27177         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27178         (rs6000_mode_dependent_address_ptr): Make static.
27179         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27180         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
27181         Remove.
27182
27183 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
27184
27185         PR target/43869
27186         * config/i386/i386.c: Make sure that the correct regparm is passed.
27187
27188 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27189
27190         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
27191         * sbitmap.c: ...to here to internalize sbitmap element access.
27192         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
27193         Explain why basic-block.h is included.
27194         * function.h: Include tm.h for CUMULATIVE_ARGS.
27195         * Makefile.in: Update dependencies.
27196
27197 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27198
27199         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
27200         New core types.
27201         * sbitmap.h (struct sbitmap_def): Do not typedef here.
27202         * sbitmap.c: Include sbitmap.h.
27203         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
27204         hard-reg-set.h.  Split everything related to regsets out from here...
27205         * regset.h: ...to here.  New file.
27206         * df.h: Include regset.h and sbitmap.h.
27207         * tree-flow.h: Likewise.
27208         * cfgloop.h: Likewise.
27209         * except.h: Do not include sbitmap.h.  Include hashtab.h.
27210         * cgraph.h: Include vec.h and function.h.
27211         * reload.h (struct insn_chain): Change types of live_throughout
27212         and dead_or_set from regset_head to bitmap_head.
27213         (compute_use_by_pseudos): Be defined also if regset.h is not included.
27214         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
27215         spilled_regs from regset_head to bitmap_head to avoid dependency
27216         in regset.h.
27217         * sel-sched-ir.h: Include regset.h.
27218         * reload.c: Include df.h before reload.h.
27219         * caller-save.c: Likewise.
27220         * reload1.c: Likewise.
27221         * ira.c: Likewise.
27222         (mark_elimination): Update type of r to bitmap, consistent with
27223         DF_LR_IN.
27224         * dominance.c: Include bitmap.h.
27225         * modulo-sched.c: Include df.h.
27226         * cfganal.c: Include bitmap.h and sbitmap.h.
27227         * cfgbuild.c: Include sbitmap.h.
27228         * lcm.c: Include sbitmap.h.
27229         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
27230         * domwalk.c: Include sbitmap.h, exclude ggc.h.
27231         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
27232         * cselib.c: Include bitmap.h.
27233         * tree-optimize.c: Include regset.h.
27234         * stmt.c: Include bitmap.h.
27235         * Makefile.in: Update dependencies.
27236
27237 2010-05-22  Jan Hubicka  <jh@suse.cz>
27238
27239         * cgraph.h (struct varpool_node): Add same_comdat_group.
27240         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
27241         pointer.
27242         (output_varpool): Update call of lto_output_varpool_node.
27243         (input_varpool): Read same_comdat_group pointer.
27244         (input_varpool_1): Fixup same_comdat_group pointer.
27245         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
27246         group is needed, all are.
27247         * varpool.c (varpool_remove_node): Remove node from same comdat group
27248         linklist too.
27249         (varpool_analyze_pending_decls): Walk same comdat groups.
27250
27251 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27252
27253         * rtl.h (union rtunion_def): Remove rt_bit member.
27254         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
27255         * print-rtl (print_rtx): Do not print the member.
27256         * gengtype.c (adjust_field_rtx_def): Do not handle it.
27257         * gengenrtl.c (type_from_format): Likewise.
27258         (accessor_from_format): Likewise.
27259
27260 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
27261
27262         * dbgcnt.c: Include toplev.h instead of errors.h.
27263         * ira-emit.c: Don't include errors.h.
27264         * ira.c: Include toplev.h instead of errors.h.
27265         * lto-compress.c: Include toplev.h instead of errors.h.
27266         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
27267         ira.o, dbgcnt.o): Update dependencies.
27268
27269 2010-05-22  Richard Guenther  <rguenther@suse.de>
27270
27271         * gimple.c (gimple_types_compatible_p): Check type qualifications
27272         before merging pointer to complete and pointer to incomplete type.
27273         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
27274         we use our own resolution algorithm.  The gold linker plugin
27275         doesn't do the job we want it to do here.
27276
27277 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
27278
27279         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27280         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27281         (sparc_mode_dependent_address_p): New function.
27282
27283 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27284
27285         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
27286
27287         * timevar.c: Do not include any core headers.
27288         (timevar_print): De-i18n-ize.
27289         (print_time): Likewise.
27290         * timevar.h (timevar_push, timevar_pop): Make inline functions.
27291
27292 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
27293
27294         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
27295         langhooks-def.h.
27296         (diagnostic_initialize): Initialize x_data not last_function.
27297         (diagnostic_report_current_function): Move to tree-diagnostic.c.
27298         (default_diagnostic_starter): Call
27299         diagnostic_report_current_module not
27300         diagnostic_report_current_function.
27301         (diagnostic_report_diagnostic): Initialize x_data not
27302         abstract_origin.
27303         (verbatim): Likewise.
27304         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
27305         x_data.
27306         (struct diagnostic_context): Change last_function to x_data.
27307         (diagnostic_auxiliary_data): Replace with
27308         diagnostic_context_auxiliary_data and
27309         diagnostic_info_auxiliary_data.
27310         (diagnostic_last_function_changed, diagnostic_set_last_function,
27311         diagnostic_report_current_function): Move to tree-diagnostic.h.
27312         (print_declaration, dump_generic_node, print_generic_stmt,
27313         print_generic_stmt_indented, print_generic_expr,
27314         print_generic_decl, debug_c_tree, dump_omp_clauses,
27315         print_call_name, debug_generic_expr, debug_generic_stmt,
27316         debug_tree_chain, default_tree_printer): Move to
27317         tree-pretty-print.h.
27318         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
27319         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
27320         gimple-pretty-print.h.
27321         * pretty-print.c: Don't include tree.h
27322         (pp_base_format): Don't handle %K here.
27323         (pp_base_tree_identifier): Move to tree-pretty-print.c.
27324         * pretty-print.h (text_info): Change abstract_origin to x_data.
27325         (pp_tree_identifier, pp_unsupported_tree,
27326         pp_base_tree_identifier): Move to tree-pretty-print.h.
27327         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
27328         tree-pretty-print.h: New files.
27329         * tree-pretty-print.c: Include tree-pretty-print.h.
27330         (percent_K_format): New.  Moved from pretty-print.c.
27331         (pp_base_tree_identifier): Move from pretty-print.c.
27332         * c-objc-common.c: Include tree-pretty-print.h.
27333         (c_tree_printer): Handle %K here.
27334         * langhooks.c: Include tree-diagnostic.h.
27335         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
27336         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
27337         (default_tree_printer): Handle %K using percent_K_format.
27338         (general_init): Use default_tree_diagnostic_starter.
27339         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
27340         (free_lang_data): Use default_tree_diagnostic_starter.
27341         * c-pretty-print.c: Include tree-pretty-print.h.
27342         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27343         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27344         * dwarf2out.c: Include tree-pretty-print.h.
27345         * except.c: Include tree-pretty-print.h.
27346         * gimple-pretty-print.c: Include tree-pretty-print.h and
27347         gimple-pretty-print.h.
27348         * gimplify.c: Include tree-pretty-print.h.
27349         * graphite-poly.c: Include tree-pretty-print.h and
27350         gimple-pretty-print.h.
27351         * ipa-cp.c: Include tree-pretty-print.h.
27352         * ipa-inline.c: Include gimple-pretty-print.h.
27353         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27354         * ipa-pure-const.c: Include gimple-pretty-print.h.
27355         * ipa-struct-reorg.c: Include tree-pretty-print.h and
27356         gimple-pretty-print.h.
27357         * ipa-type-escape.c: Include tree-pretty-print.h.
27358         * print-rtl.c: Include tree-pretty-print.h.
27359         * print-tree.c: Include gimple-pretty-print.h.
27360         * sese.c: Include tree-pretty-print.h.
27361         * tree-affine.c: Include tree-pretty-print.h.
27362         * tree-browser.c: Include tree-pretty-print.h.
27363         * tree-call-cdce.c: Include gimple-pretty-print.h.
27364         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27365         * tree-chrec.c: Include tree-pretty-print.h.
27366         * tree-data-ref.c: Include tree-pretty-print.h and
27367         gimple-pretty-print.h.
27368         * tree-dfa.c: Include tree-pretty-print.h.
27369         * tree-if-conv.c: Include tree-pretty-print.h and
27370         gimple-pretty-print.h.
27371         * tree-inline.c: Include tree-pretty-print.h.
27372         * tree-into-ssa.c: Include tree-pretty-print.h and
27373         gimple-pretty-print.h.
27374         * tree-nrv.c: Include tree-pretty-print.h.
27375         * tree-object-size.c: Include tree-pretty-print.h and
27376         gimple-pretty-print.h.
27377         * tree-outof-ssa.c: Include tree-pretty-print.h and
27378         gimple-pretty-print.h.
27379         * tree-parloops.c: Include tree-pretty-print.h and
27380         gimple-pretty-print.h.
27381         * tree-predcom.c: Include tree-pretty-print.h and
27382         gimple-pretty-print.h.
27383         * tree-scalar-evolution.c: Include tree-pretty-print.h and
27384         gimple-pretty-print.h.
27385         * tree-sra.c: Include tree-pretty-print.h.
27386         * tree-ssa-address.c: Include tree-pretty-print.h.
27387         * tree-ssa-alias.c: Include tree-pretty-print.h.
27388         * tree-ssa-ccp.c: Include tree-pretty-print.h and
27389         gimple-pretty-print.h.
27390         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
27391         * tree-ssa-copy.c: Include tree-pretty-print.h and
27392         gimple-pretty-print.h.
27393         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
27394         * tree-ssa-dce.c: Include tree-pretty-print.h and
27395         gimple-pretty-print.h.
27396         * tree-ssa-dom.c: Include tree-pretty-print.h and
27397         gimple-pretty-print.h.
27398         * tree-ssa-dse.c: Include gimple-pretty-print.h.
27399         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
27400         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
27401         * tree-ssa-live.c: Include tree-pretty-print.h and
27402         gimple-pretty-print.h.
27403         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
27404         gimple-pretty-print.h.
27405         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
27406         gimple-pretty-print.h.
27407         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
27408         gimple-pretty-print.h.
27409         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
27410         gimple-pretty-print.h.
27411         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
27412         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
27413         * tree-ssa-operands.c: Include tree-pretty-print.h and
27414         gimple-pretty-print.h.
27415         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
27416         gimple-pretty-print.h.
27417         * tree-ssa-pre.c: Include tree-pretty-print.h and
27418         gimple-pretty-print.h.
27419         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
27420         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
27421         gimple-pretty-print.h.
27422         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
27423         gimple-pretty-print.h.
27424         * tree-ssa-sink.c: Include gimple-pretty-print.h.
27425         * tree-ssa-ter.c: Include tree-pretty-print.h and
27426         gimple-pretty-print.h.
27427         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
27428         * tree-ssa.c: Include tree-pretty-print.h and
27429         gimple-pretty-print.h.
27430         * tree-stdarg.c: Include gimple-pretty-print.h.
27431         * tree-switch-conversion.c: Include gimple-pretty-print.h.
27432         * tree-tailcall.c: Include tree-pretty-print.h and
27433         gimple-pretty-print.h.
27434         * tree-vect-data-refs.c: Include tree-pretty-print.h and
27435         gimple-pretty-print.h.
27436         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
27437         gimple-pretty-print.h.
27438         * tree-vect-loop.c: Include tree-pretty-print.h and
27439         gimple-pretty-print.h.
27440         * tree-vect-patterns.c: Include gimple-pretty-print.h.
27441         * tree-vect-slp.c: Include tree-pretty-print.h and
27442         gimple-pretty-print.h.
27443         * tree-vect-stmts.c: Include tree-pretty-print.h and
27444         gimple-pretty-print.h.
27445         * tree-vectorizer.c: Include tree-pretty-print.h.
27446         * tree-vrp.c: Include tree-pretty-print.h and
27447         gimple-pretty-print.h.
27448         * value-prof.c: Include tree-pretty-print.h and
27449         gimple-pretty-print.h.
27450         * var-tracking.c: Include tree-pretty-print.h.
27451         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
27452         (tree-diagnostic.o): New dependencies.
27453         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
27454         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
27455         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
27456         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
27457         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
27458         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
27459         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
27460         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
27461         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
27462         tree-ssa-address.o, tree-ssa-loop-niter.o,
27463         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
27464         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
27465         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
27466         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
27467         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
27468         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
27469         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
27470         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
27471         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
27472         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
27473         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
27474         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
27475         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
27476         tree-switch-conversion.o, var-tracking.o, value-prof.o,
27477         cfgexpand.o, pretty-print.o): Update dependencies.
27478
27479 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
27480
27481         * tree-ssa-structalias.c: Remove tm_p.h from include.
27482
27483 2010-05-21  Jeff Law  <law@redhat.com>
27484
27485         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
27486
27487 2010-05-21  Jason Merrill  <jason@redhat.com>
27488
27489         * tree-eh.c (cleanup_is_dead_in): New.
27490         (lower_try_finally): Don't generate a dead cleanup region.
27491         (lower_cleanup): Likewise.
27492
27493 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
27494
27495         PR debug/44223
27496         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
27497         unchain each use from the cyclic next_regno_use chain first.
27498
27499 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27500
27501         * real: Do not include gmp.h, mpfr.h, and mpc.h.
27502         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
27503         (real_value_negate, real_value_abs): New prototypes.
27504         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
27505         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
27506         new include file for interface between MPFR and REAL_VALUE_TYPE.
27507         * real.c: Include realmpfr.h.
27508         (real_arithmetic2): Remove legacy function.
27509         (real_value_negate): New.
27510         (real_value_abs): New.
27511         (mfpr_from_real, real_from_mpfr): Move from here...
27512         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
27513         * builtins.c: Include realmpfr.h.
27514         * fold-const.c: Include realmpfr.h.
27515         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
27516         (fold_negate_const): Likewise.
27517         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
27518         * toplev.c: Include realmpfr.h.
27519         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
27520         and real_value_negate.
27521         * fixed-value.c (check_real_for_fixed_mode): Likewise.
27522         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
27523         (vfp3_const_double_index): Likewise.
27524         (arm_print_operand): Likewise.
27525         * Makefile.in: Update dependencies.
27526
27527 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27528
27529         * config/s390/s390.c (override_options): Increase the default
27530         of max-completely-peel-times.
27531
27532 2010-05-21  Julian Brown  <julian@codesourcery.com>
27533             Mark Mitchell  <mark@codesourcery.com>
27534
27535         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
27536         sibling calls for Thumb-1.
27537         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
27538         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
27539         Thumb-2.
27540         (*call_insn, *call_value_insn): Don't use for Thumb-2.
27541         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
27542         for Thumb-2.
27543         (return): New expander.
27544         (*arm_return): New name for ARM return insn.
27545         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
27546
27547 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
27548
27549         * config.gcc (sparc64-*-rtems*): New target.
27550
27551 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
27552
27553         * tree.c (build_function_decl_skip_args): Fix grammar.
27554         (build_function_type_list_1): Fix typos, adjust formatting.
27555
27556 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27557
27558         * tree.h: Include real.h and fixed-value.h as basic datatypes.
27559         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
27560         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
27561         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
27562         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
27563         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
27564         tree-pretty-print.c, tree-loop-distribution.c,
27565         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
27566         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
27567         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
27568         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
27569         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
27570         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
27571         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
27572         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
27573         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
27574         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
27575         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
27576         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
27577         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
27578         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
27579         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
27580         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
27581         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
27582         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
27583         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
27584         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
27585         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
27586         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
27587         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
27588         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
27589         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
27590         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
27591         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
27592         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
27593         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
27594         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
27595         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
27596         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
27597         config/score/score7.c, config/score/score.c, config/arm/arm.c,
27598         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
27599         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
27600         config/bfin/bfin.c: Clean up redundant includes.
27601         * Makefile.in: Update accordingly.
27602
27603 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
27604
27605         PR middle-end/44204
27606         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
27607         statement has no arguments.
27608
27609 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
27610
27611         PR/44139
27612         * varasm.c (emutls_decl): Merge attributes to new decl.
27613
27614 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
27615
27616         PR middle-end/44101
27617         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
27618         around the uniquized constructor if its type requires a conversion.
27619
27620 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
27621
27622         PR debug/44205
27623         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
27624         at -O0 goto_locus of any of the incoming edges differs from
27625         goto_locus of outgoing edge, or gimple_location of any of the
27626         labels differs.
27627
27628 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
27629
27630         * ira.c (ira_non_ordered_class_hard_regs): Define.
27631         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
27632         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
27633         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
27634         cost of unaligned hard regs when allocating multi-reg pseudos.
27635
27636 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
27637
27638         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
27639         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
27640         for TARGET_NO_FLOAT.
27641         * config/mips/mips.c (mips_file_start): Expand conditional expression
27642         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
27643         (mips_override_options): Move -mno-float override -msoft-float and
27644         -mhard-float.
27645         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
27646         Condition(TARGET_SUPPORTS_NO_FLOAT).
27647         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
27648         __mips_no_float here.
27649         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
27650         (TARGET_SUPPORTS_NO_FLOAT): Define.
27651         * config/mips/sdemtk.opt: Delete.
27652
27653 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
27654
27655         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
27656
27657 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
27658
27659         PR target/43733
27660         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
27661         * configure: Regenerate.
27662         * config.in: Regenerate.
27663         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
27664         instead of sahf only for 64bit targets.
27665
27666 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
27667
27668         PR debug/44178
27669         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
27670         setup_ref_regs for DEBUG_INSNs.
27671
27672 2010-05-20  Jan Hubicka  <jh@suse.cz>
27673
27674         PR middle-end/44197
27675         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
27676
27677 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
27678
27679         PR bootstrap/43870
27680         * df-scan.c (df_ref_compare): Stabilize sort.
27681
27682 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
27683
27684         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
27685         argument.  Don't use DW_OP_piece if offset is non-zero,
27686         put offset into second DW_OP_bit_piece argument.
27687         (dw_sra_loc_expr): Adjust callers.  For memory expressions
27688         compute offset.
27689
27690 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
27691
27692         PR target/44202
27693         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
27694         settings for 16-bit-constant "addo" alternative.
27695
27696 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
27697
27698         * config/mips/mips-dsp.md (add<DSPV:mode>3,
27699         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
27700
27701         PR target/43764
27702         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
27703         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
27704         Use it.
27705
27706 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
27707
27708         * diagnostic.c (FLOAT, FFS): Don't undefine.
27709         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
27710         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
27711         include ordering.
27712
27713 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27714
27715         * combine.c (propagate_for_debug): Call make_compound_operation
27716         on the source value.
27717         (try_combine): When implementing a split chosen by find_split_point,
27718         either copy i2src or set it to null.  Assert that i2src is not null
27719         before substituting into CALL_INSN_FUNCTION_USAGE.
27720
27721 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
27722
27723         * double-int.h (double_int_ior): New function.
27724         * tree.h (build_int_cst_wide_type): Remove.
27725         * tree.c (build_int_cst_wide_type): Remove.
27726         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
27727         of build_int_cst_wide_type.
27728         * stor-layout.c (set_sizetype): (Ditto.).
27729         * dojump.c (do_jump): Use build_int_cstu instead of
27730         build_int_cst_wide_type.
27731
27732 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27733
27734         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
27735         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
27736         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
27737         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
27738         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
27739         propagate the 'data' argument to copy_tree_r.
27740         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
27741         Propagate 'data' argument to walk_tree.
27742         (copy_if_shared): New function.
27743         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
27744         (unmark_visited): New function.
27745         (unshare_body): Call copy_if_shared instead of doing it manually.
27746         (unvisit_body): Call unmark_visited instead of doing it manually.
27747
27748 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
27749
27750         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
27751         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
27752         * hooks.c: Likewise.
27753         * target-def.h (TARGET_FOLD_BUILTIN): Define to
27754         hook_tree_tree_int_treep_bool_null.
27755         * target.h (struct gcc_target): Update signature of fold_builtin
27756         field.
27757         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
27758         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
27759         instead of the call expression.
27760         (fold_builtin_call_array): Pass n and argarray directly.
27761         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
27762         consing a list.
27763         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
27764         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
27765         `i' and use it in place of `arity'.
27766         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
27767         Dereference `args' directly.
27768         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
27769
27770 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27771
27772         * doc/sourcebuild.texi (Effective-Target Keywords): Document
27773         3dnow, sse3, sse2.
27774         (Directives): Document optional dg-require-effective-target
27775         selector.
27776
27777 2010-05-19  Richard Guenther  <rguenther@suse.de>
27778
27779         PR lto/44196
27780         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
27781
27782 2010-05-19  Richard Guenther  <rguenther@suse.de>
27783
27784         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
27785         * common.opt (fwhopr=): New.
27786         * opts.c (common_handle_option): Handle OPT_fwhopr.
27787         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
27788         * collect2.c (main): Match -fwhopr*.
27789         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
27790         Execute ltrans stage in parallel when jobs is bigger than 1.
27791
27792 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27793
27794         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
27795         pentiumpro on Solaris 8/x86 with Sun as.
27796         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
27797         hidden alias bug.
27798         (gcc_cv_as_ix86_quad): Check for .quad directive.
27799         * configure: Regenerate.
27800         * config.in: Regenerate.
27801         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
27802
27803 2010-05-19  Martin Jambor  <mjambor@suse.cz>
27804
27805         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
27806         also for indirect edges.  Actual printing moved...
27807         (ipa_print_node_jump_functions_for_edge): ...here.
27808         (ipa_compute_jump_functions): Renamed to
27809         ipa_compute_jump_functions_for_edge and made static.
27810         (ipa_compute_jump_functions): New function.
27811         (make_edge_direct_to_target): Check if the number of arguments on
27812         the newly direct edge is the same as the number of parametrs of
27813         the callee.
27814         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
27815         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
27816         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
27817         analysis functions unconditionally, call the new
27818         ipa_analyze_params_uses on the node instead of every edge.
27819
27820 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
27821
27822         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
27823         to tree.
27824         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
27825         also checks for a constant int vs.  non-constant but
27826         loop-invariant steps.
27827         (find_or_create_group): Change the sort algorithm to only consider
27828         steps that are constant ints.
27829         (idx_analyze_ref): Adopt code to handle a tree instead of a
27830         HOST_WIDE_INT for step.
27831         (gather_memory_references_ref): Handle tree instead of int and be
27832         prepared to see a NULL_TREE.
27833         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
27834         prefetches if the step cannot be calculated at compile time.
27835         (issue_prefetch_ref): Issue prefetches for non-constant but
27836         loop-invariant steps.
27837
27838 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
27839
27840         Revert:
27841         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
27842
27843         * tree.h (build_call_list): Remove.
27844         * tree.c (build_call_list): Remove.
27845
27846 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
27847
27848         * tree.h (build_call_list): Remove.
27849         * tree.c (build_call_list): Remove.
27850
27851 2010-05-18  Jan Hubicka  <jh@suse.cz>
27852
27853         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
27854
27855 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
27856
27857         PR rtl-optimization/43332
27858         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
27859
27860 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
27861
27862         * tree.h (build_int_cstu): Implement as static inline.
27863         * tree.c (build_int_cstu): Remove function.
27864         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
27865         sign extended.
27866
27867 2010-05-18  Richard Guenther  <rguenther@suse.de>
27868
27869         PR lto/44143
27870         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
27871         (debug): Initialize from -save-temps.
27872         (collect_execute): Print command-line when verbose.
27873         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
27874         for ltrans invocation.  Produce -dumpbase flag again.
27875         (process_args): Remove.
27876         (main): Simplify.
27877         * collect2.c (maybe_run_lto_and_relink): Only pass object
27878         files to lto-wrapper.
27879         * gcc.c (LINK_COMMAND_SPEC): Likewise.
27880
27881 2010-05-18  Jan Hubicka  <jh@suse.cz>
27882
27883         * opts.c (decode_options): Do not disable whopr at ipa_cp.
27884         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
27885
27886 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
27887
27888         PR lto/44184
27889         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
27890         in a GIMPLE_ASM.
27891         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
27892         in a GIMPLE_ASM.
27893
27894 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
27895
27896         PR debug/41371
27897         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
27898         rtx_equal_p inline.
27899
27900 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
27901
27902         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
27903         lto-macho as lto_binary_reader.
27904
27905         * darwin.c (darwin_asm_named_section): Do not add assembler comment
27906         after .section directive; just print it before the directive instead.
27907
27908 2010-05-17  Jan Hubicka  <jh@suse.cz>
27909
27910         * cgraph.c (cgraph_create_virtual_clone): Only check
27911         versionable_function_p when not in wpa and checking is enabled.
27912         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
27913         there are no more functions to materialize.
27914
27915 2010-05-17  Jan Hubicka  <jh@suse.cz>
27916
27917         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
27918         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
27919         New functions.
27920         (output_cgraph): Call output_cgraph_opt_summary.
27921         (input_cgrpah): Call input_cgraph_opt_summary.
27922         (output_cgraph_opt_summary_p, output_node_opt_summary,
27923         input_node_opt_summary, input_cgraph_opt_section): New functions.
27924         * lto-section-in.c (lto_section_name): Add cgraphopt.
27925         * tree-inline.c (tree_function_versioning): Handle parm_num.
27926         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
27927         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
27928
27929 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
27930
27931         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
27932         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
27933         the insn to prefetch ratio heuristic to loops with known trip count.
27934
27935 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
27936
27937         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
27938         (schedule_prefetches): Do not generate a prefetch if the unroll factor
27939         is far from what is required by the prefetch.
27940
27941 2010-05-17  Jan Hubicka  <jh@suse.cz>
27942
27943         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
27944         (ipcp_estimate_growth): Likewise.
27945         (ipcp_const_param_count): Likewise.
27946         (ipcp_insert_stage): Likewise.
27947         * ipa-prop.c (visit_load_for_mod_analysis): New function.
27948         (visit_store_addr_for_mod_analysis): Set used flag.
27949         (ipa_detect_param_modifications): Set used flag for SSE params;
27950         update use of walk_stmt_load_store_addr_ops.
27951         (ipa_print_node_params): Print used flag.
27952         (ipa_write_node_info): Stream used flag.
27953         (ipa_read_node_info): Likewise.
27954         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
27955         (ipa_is_param_used): New function.
27956         (lto_ipa_fixup_call_notes): Remove unused declaration.
27957
27958 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27959
27960         PR target/44074
27961         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
27962         * configure: Regenerate.
27963         * config.in: Regenerate.
27964         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
27965         !HAVE_AS_IX86_REP_LOCK_PREFIX.
27966         Don't emit whitespace.
27967         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
27968         (*rep_movsi): Likewise.
27969         (*rep_movsi_rex64): Likewise.
27970         (*rep_movqi): Likewise.
27971         (*rep_movqi_rex64): Likewise.
27972         (*rep_stosdi_rex64): Likewise.
27973         (*rep_stossi): Likewise.
27974         (*rep_stossi_rex64): Likewise.
27975         (*rep_stosqi): Likewise.
27976         (*rep_stosqi_rex64): Likewise.
27977         (*cmpstrnqi_nz_1): Use {%;} after repz.
27978         (*cmpstrnqi_nz_rex_1): Likewise.
27979         (*cmpstrnqi_1): Likewise.
27980         (*cmpstrnqi_rex_1): Likewise.
27981         (*strlenqi_1): Use {%;} after repnz.
27982         (*strlenqi_rex_1): Likewise.
27983         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
27984         (*sync_compare_and_swap<mode>): Likewise.
27985         (sync_double_compare_and_swap<mode>): Likewise.
27986         (*sync_double_compare_and_swapdi_pic): Likewise.
27987         (sync_old_add<mode>): Likewise.
27988         (sync_add<mode>): Likewise.
27989         (sync_sub<mode>): Likewise.
27990         (sync_<code><mode>): Likewise.
27991
27992 2010-05-17  Martin Jambor  <mjambor@suse.cz>
27993
27994         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
27995         otr_token and polymorphic.
27996         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
27997         (cgraph_clone_edge): Copy the above fields.
27998         * tree.c (get_binfo_at_offset): New function.
27999         * tree.h (get_binfo_at_offset): Declare.
28000         * ipa-prop.h (enum jump_func_type): Added known_type jump function
28001         type, reordered items, updated comments.
28002         (union jump_func_value): Added base_type field, reordered fields.
28003         (enum ipa_lattice_type): Moved down in the file.
28004         (struct ipa_param_descriptor): New field polymorphic.
28005         (ipa_is_param_polymorphic): New function.
28006         * ipa-prop.c: Include gimple.h and gimple-fold.h.
28007         (ipa_print_node_jump_functions): Print known type jump functions.
28008         (compute_complex_pass_through): Renamed to...
28009         (compute_complex_assign_jump_func): this.
28010         (compute_complex_ancestor_jump_func): New function.
28011         (compute_known_type_jump_func): Likewise.
28012         (compute_scalar_jump_functions): Create known type and complex ancestor
28013         jump functions.
28014         (ipa_note_param_call): New parameter polymorphic, set the corresponding
28015         flag in the call note accordingly.
28016         (ipa_analyze_call_uses): Renamed to...
28017         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
28018         variable var only in the block where it is used.
28019         (ipa_analyze_virtual_call_uses): New function.
28020         (ipa_analyze_call_uses): Likewise.
28021         (combine_known_type_and_ancestor_jfs): Likewise.
28022         (update_jump_functions_after_inlining): Implemented handling of a
28023         number of new jump function types combination.
28024         (print_edge_addition_message): Removed.
28025         (make_edge_direct_to_target): New function.
28026         (try_make_edge_direct_simple_call): Likewise.
28027         (try_make_edge_direct_virtual_call): Likewise.
28028         (update_call_notes_after_inlining): Renamed to...
28029         (update_indirect_edges_after_inlining): this.  Moved edge creation for
28030         indirect calls to try_make_edge_direct_simple_call, also calls
28031         try_make_edge_direct_virtual_call for virtual calls.
28032         (ipa_print_node_params): Changed the header message.
28033         (ipa_write_jump_function): Stream also known type jump functions.
28034         (ipa_read_jump_function): Likewise.
28035         (ipa_write_indirect_edge_info): Stream new fields in
28036         cgraph_indirect_call_info.
28037         (ipa_read_indirect_edge_info): Likewise.
28038         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
28039         GIMPLE_FOLD_H.
28040
28041 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28042
28043         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
28044
28045 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28046
28047         * tree.h (CALL_EXPR_ARGS): Delete.
28048         (call_expr_arglist): Delete.
28049         * tree.c (call_expr_arglist): Delete.
28050         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
28051         targetm.fold_builtin.
28052         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
28053         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
28054         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
28055         arglist parameter.  Use CALL_EXPR_ARG.
28056         (picochip_expand_builtin_3op): Likewise.
28057         (picochip_expand_builtin_2opvoid): Likewise.
28058         (picochip_expand_array_get): Likewise.
28059         (picochip_expand_array_put): Likewise.
28060         (picochip_expand_array_testport): Likewise.
28061         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
28062         rather than arglist.
28063         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
28064         CALL_EXPR_ARGS.
28065         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
28066         than TREE_VALUE and TREE_CHAIN.
28067         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
28068         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
28069         the arglist.
28070
28071 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28072
28073         PR bootstrap/42347
28074         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
28075         to have no fallthru edge.
28076
28077         PR middle-end/44102
28078         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
28079         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
28080         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
28081         add BARRIER after previous bb if needed.
28082
28083 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28084
28085         * tree.c (build_function_type_list_1): Remove bogus assert condition.
28086
28087 2010-05-17  Alan Modra  <amodra@gmail.com>
28088
28089         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
28090         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
28091         with copy_reg rtx param.
28092         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
28093         Correct cases where code for ABI_V4 did not initialise the reg
28094         used to access frame.  Also leave frame_reg_rtx as sp for large
28095         frames that save no regs.
28096
28097 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28098
28099         PR middle-end/44133
28100         * tree-sra.c (create_access_replacement): New parameter rename, mark
28101         the replaement for renaming only when it is true.
28102         (get_access_replacement): Pass true in the rename parameter of
28103         create_access_replacement.
28104         (get_unrenamed_access_replacement): New function.
28105         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
28106         replacement declaration from it.
28107
28108 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
28109
28110         * function.c (try_fit_stack_local, add_frame_space): New static
28111         functions.
28112         (assign_stack_local_1): Use them.  Look for opportunities to use
28113         space previously wasted on alignment.
28114         * function.h (struct frame_space): New.
28115         (struct rtl_data): Add FRAME_SPACE_LIST member.
28116         * reload1.c (something_was_spilled): New static variable.
28117         (alter_reg): Set it.
28118         (reload): Test it in addition to testing if the frame size changed.
28119
28120 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
28121
28122         * config/s390/s390.c: Define sane prefetch settings and activate
28123         flag_prefetch_loop_arrays on -O3.
28124         * config/s390/s390.h: Declare that read can use write prefetch.
28125
28126 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28127
28128         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
28129         build.
28130
28131 2010-05-16  Jan Hubicka  <jh@suse.cz>
28132
28133         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
28134         function body; do not check stdarg field of struct function.
28135
28136 2010-05-16  Jan Hubicka  <jh@suse.cz>
28137
28138         * cgraph.c (dump_cgraph_node): Dump versionable flag.
28139         * cgraph.h (cgraph_local_info): Add versionable flag.
28140         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
28141         (ipcp_versionable_function_p): Use it.
28142         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28143         versionable flag.
28144
28145 2010-05-16  Jan Hubicka  <jh@suse.cz>
28146
28147         * cgraph.c (cgraph_clone_node): Take decl argument and insert
28148         clone into hash when it is different from orig.
28149         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
28150         * cgraph.h (cgraph_clone_node): Update prototype.
28151         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
28152         (lto_cgraph_encoder_delete): Delete body map.
28153         (lto_cgraph_encoder_size): Move to header.
28154         (lto_cgraph_encoder_encode_body_p,
28155         lto_set_cgraph_encoder_encode_body): New.
28156         (lto_output_node): Do not take written_decls argument; output clone_of
28157         pointer.
28158         (add_node_to): Add include_body_argument; call
28159         lto_set_cgraph_encoder_encode_body on master of the clone.
28160         (add_references): Update use of add_node_to.
28161         (compute_ltrans_boundary): Likewise.
28162         (output_cgraph): Do not create written_decls bitmap.
28163         (input_node): Take nodes argument; stream in clone_of correctly.
28164         (input_cgraph_1): Update use of input_node.
28165         * lto-streamer-out.c (lto_output): Use encoder info to decide
28166         what bodies to output.
28167         * ipa-inline.c (cgraph_clone_inlined_nodes,
28168         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
28169         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
28170         (lto_cgraph_encoder_size): Define here.
28171         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
28172         Declare.
28173
28174 2010-05-16  Richard Guenther  <rguenther@suse.de>
28175
28176         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
28177         -fipa-type-escape.
28178         * ipa-type-escape.c (gate_type_escape_vars): Run when
28179         -fipa-struct-reorg runs.
28180         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
28181         * common.opt (fipa-type-escape): Remove.
28182
28183 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28184
28185         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
28186         (decode_options): Likewise.
28187         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
28188
28189 2010-05-16  Jan Hubicka  <jh@suse.cz>
28190
28191         * ipa.c (function_and_variable_visibility): Also bring local all
28192         aliases.
28193
28194 2010-05-16  Richard Guenther  <rguenther@suse.de>
28195
28196         * alias.c (nonoverlapping_memrefs_p): Remove use of
28197         IPA type-escape information.
28198
28199 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
28200
28201         * c-common.c (c_common_reswords): Add _Static_assert for C.
28202         * c-parser.c (c_token_starts_declaration,
28203         c_parser_next_token_starts_declaration,
28204         c_parser_static_assert_declaration_no_semi,
28205         c_parser_static_assert_declaration): New.
28206         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
28207         Handle static assertions if static_assert_ok.
28208         (c_parser_external_declaration, c_parser_declaration_or_fndef,
28209         c_parser_compound_statement_nostart, c_parser_label,
28210         c_parser_for_statement, c_parser_objc_methodprotolist,
28211         c_parser_omp_for_loop): All callers of
28212         c_parser_declaration_or_fndef changed.
28213         (c_parser_struct_declaration): Handle static assertions.
28214         (c_parser_compound_statement_nostart): Use
28215         c_parser_next_token_starts_declaration and
28216         c_token_starts_declaration to detect start of declarations.
28217         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
28218         Likewise.
28219
28220 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
28221
28222         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28223         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28224         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28225         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28226         (mmix_function_outgoing_value): Rename to...
28227         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
28228         (mmix_function_value_regno_p): Make static.
28229         (mmix_libcall_value): New function.
28230         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
28231         mmix_function_value_regno_p): Remove declaration.
28232
28233 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28234
28235         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
28236         BUILT_IN_ALLOCA if stack checking is enabled.
28237
28238 2010-05-16  Richard Guenther  <rguenther@suse.de>
28239
28240         * var-tracking.c (vars_copy_1): Inline ...
28241         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28242         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
28243         (variable_merge_over_cur): Adjust.  Merge asserts.
28244         (variable_merge_over_src): Likewise.
28245         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
28246         (variable_post_merge_new_vals): Merge asserts.
28247         (variable_post_merge_perm_vals): Likewise.
28248         (find_mem_expr_in_1pdv): Likewise.
28249         (dataflow_set_different_value): Remove.
28250         (onepart_variable_different_p): Merge asserts.
28251         (variable_different_p): Likewise.
28252         (dataflow_set_different_1): Inline ...
28253         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28254         (emit_notes_for_differences_1): Merge asserts.
28255
28256 2010-05-16  Richard Guenther  <rguenther@suse.de>
28257
28258         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
28259         * optabs.c (libfunc_decl_hash): Likewise.
28260         * varasm.c (emutls_decl): Likewise.
28261
28262 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
28263
28264         * c-decl.c: Don't include gimple.h.
28265         (merge_decls): Do not copy gimple_body.
28266
28267 2010-05-15  Jason Merrill  <jason@redhat.com>
28268
28269         * c.opt: Add -fnothrow-opt.
28270
28271 2010-05-15  Jan Hubicka  <jh@suse.cz>
28272
28273         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
28274         analyzed.
28275         * passes.c (ipa_write_summaries): Write all analyzed nodes.
28276
28277 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
28278
28279         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
28280         * Makefile.in: Add it.
28281         Fix all other Makefile dependencies for changes below.
28282         * tree.h: Include it instead of defining VEC primitives here.
28283         * gimple.h: Likewise.
28284         * rtl.h: Likewise.
28285         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
28286         * except.h: Include vecir.h, break dependence on tree.h.
28287
28288         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
28289         Move from here...
28290         * tree-iterator.c: ...to here.
28291         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
28292
28293         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
28294         tm_p.h.
28295         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
28296         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
28297         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
28298         tree-mudflap.h, and target.h.
28299         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
28300         predict.h, tree-inline.h, gimple.h, and langhooks.h.
28301         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
28302         Add FIXME for why gimple.h is still included (should be unnecessary
28303         since GCC 4.5 gimplification unit-at-a-time).
28304         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
28305         * c-pragma.c: Add FIXME for why function.h needs to be included just
28306         for cfun, at front-end level.
28307         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
28308         Do not include ggc.h, but include vecprim.h for VEC(char).
28309         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
28310         Explain why target.h is included.
28311         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
28312         Explain why gimple.h is included.
28313         * c-ppoutput.c: Do not include tm.h.
28314         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
28315         * c-parses.c: Explain why rtl.h is included, and that this (and only
28316         this) is also why tm.h must be included.
28317         Do not include except.h.
28318         * c-lang.c: Do not include ggc.h.
28319
28320 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
28321
28322         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
28323
28324 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
28325
28326         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
28327         unions by default if those structs and unions have no tags.  Do
28328         not condition anonymous struct and unions handling on flag_iso.
28329         Allow anonymous structs and unions for C1X.
28330         (finish_struct): Do not diagnose lack of named fields when
28331         anonymous structs and unions present for C1X.  Accept flexible
28332         array members in structure with anonymous structs or unions but no
28333         directly named fields.
28334         * doc/extend.texi (Unnamed Fields): Update.
28335
28336 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
28337
28338         * gimple.h (compare_field_offset): Rename into...
28339         (gimple_compare_field_offset): ...this.
28340         * gimple.c (compare_field_offset): Rename into...
28341         (gimple_compare_field_offset): ...this.  Compare the full access if
28342         the offset is self-referential.
28343         (gimple_types_compatible_p): Adjust for above renaming.
28344         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
28345         DECL_NONADDRESSABLE_P flag of fields before merging them.
28346
28347 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
28348
28349         * tree.h (ctor_to_list): Delete.
28350         * tree.c (ctor_to_list): Delete.
28351
28352 2010-05-15  Jan Hubicka  <jh@suse.cz>
28353
28354         * ipa-reference.c: Include toplev.h
28355         (is_proper_for_analysis): Only add to all_module_statics
28356         if it is allocated.
28357         (write_node_summary_p, stream_out_bitmap,
28358         ipa_reference_write_optimization_summary,
28359         ipa_reference_read_optimization_summary): New.
28360         (struct ipa_opt_pass_d pass_ipa_reference): Add
28361         optimization summary streaming.
28362         * lto-cgraph.c (referenced_from_this_partition_p,
28363         reachable_from_this_partition_p): New functions.
28364         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
28365         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
28366         * opts.c (decode_options): Enable ipa_reference.
28367         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
28368         * lto-streamer.h (referenced_from_this_partition_p,
28369         reachable_from_this_partition_p): Declare.
28370
28371 2010-05-15  Richard Guenther  <rguenther@suse.de>
28372
28373         PR tree-optimization/44038
28374         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
28375         taking the address of a V_C_E of a constant.
28376
28377 2010-05-14  Jan Hubicka  <jh@suse.cz>
28378
28379         * tree.h (memory_identifier_string): Remove.
28380         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
28381         (ipa_reference_global_vars_info_d): Remove statics_not_read and
28382         statics_not_written.
28383         (ipa_reference_optimization_summary_d): New structure.
28384         (ipa_reference_optimization_summary_t): New type and vector.
28385         (ipa_reference_vars_info_d): Embedd structures instead of using
28386         pointers.
28387         (reference_vars_to_consider): Remove out of GGC space.
28388         (module_statics_escape): Remove.
28389         (global_info_obstack): Rename to ...
28390         (optimization_summary_obstack): ... this one.
28391         (initialization_status_t): Remove.
28392         (memory_identifier_string): Remove.
28393         (get_reference_vars_info): Fix indenting.
28394         (set_reference_vars_info): Likewise.
28395         (get_reference_optimization_summary): New.
28396         (set_reference_optimization_summary): New.
28397         (get_global_reference_vars_info): Remove.
28398         (ipa_reference_get_read_global): Remove.
28399         (ipa_reference_get_written_global): Remove.
28400         (ipa_reference_get_not_read_global): Update.
28401         (ipa_reference_get_not_written_global): Update.
28402         (is_proper_for_analysis): Outlaw addressable.
28403         (propagate_bits): Update for new datastructures.
28404         (analyze_variable): Remove.
28405         (init_function_info): Update for new datastructures.
28406         (clean_function_local_data): Remove.
28407         (clean_function): Remove.
28408         (copy_global_bitmap): Use optimizations_summary_obstack.
28409         (duplicate_node_data): Duplicate optimization summary only.
28410         (remove_node_data): Remove optimization summary only.
28411         (generate_summary): Do not analyze variables; do not compute
28412         module_statics_escape; do not prune solutions by it.
28413         (read_write_all_from_decl): Fix typos in comments.
28414         (propagate): Doscover readonly and nonaddressable first;
28415         update for new datastructures; share global bitmaps.
28416         * ipa-reference.h (ipa_reference_get_read_global,
28417         ipa_reference_get_written_global): Remove.
28418         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
28419         * Makefile.in: Remove ipa-refereference from GT files.
28420
28421 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
28422
28423         PR debug/44112
28424         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
28425         for all SYMBOL_REF_DECLs.
28426
28427 2010-05-14  Jan Hubicka  <jh@suse.cz>
28428
28429         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
28430         (varpool_all_refs_explicit_p): New inline function.
28431         * ipa-reference.c: Update comment.
28432         (module_statics_written): Remove.
28433         (get_static_decl): Remove.
28434         (ipa_init): Do not initialize module_statics_written.
28435         (analyze_function): Likewise.
28436         (generate_summary): Likewise; do not compute module_statics_readonly
28437         and do not update variable flags.
28438         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
28439         * ipa.c: Inlucde flags.h
28440         (cgraph_local_node_p): New.
28441         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
28442         promote functions to local.
28443         (ipa_discover_readonly_nonaddressable_vars): New function.
28444         (function_and_variable_visibility): Use cgraph_local_node_p.
28445         * varpool.c (varpool_finalize_decl): Set force_output for
28446         DECL_PRESERVE_P vars.
28447
28448 2010-05-14  Jan Hubicka  <jh@suse.cz>
28449
28450         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
28451
28452 2010-05-14  Richard Guenther  <rguenther@suse.de>
28453
28454         PR tree-optimization/44119
28455         * tree-ssa-pre.c (eliminate): Properly mark replacement of
28456         a PHI node necessary.
28457
28458 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
28459
28460         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
28461
28462 2010-05-14  Jason Merrill  <jason@redhat.com>
28463
28464         PR c++/44127
28465         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
28466         (gimple_call_set_nothrow): New.
28467         * gimple.c (gimple_build_call_from_tree): Call it.
28468         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
28469
28470         PR c++/44127
28471         * gimplify.c (gimplify_seq_add_stmt): No longer static.
28472         * gimple.h: Declare it.
28473         * gimple.c (gimple_build_eh_filter): No ops.
28474
28475 2010-05-14  Jan Hubicka  <jh@suse.cz>
28476
28477         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
28478         nodes already in queue.
28479         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
28480         re-enqueueing node.
28481
28482 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
28483
28484         PR debug/44136
28485         * cfgexpand.c (expand_debug_expr): If non-memory op0
28486         has BLKmode, return NULL.
28487
28488 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
28489
28490         * config.gcc: Add support for --with-cpu option for bdver1.
28491         * config/i386/i386.h (TARGET_BDVER1): New macro.
28492         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
28493         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28494         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
28495         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28496         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
28497         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
28498         (processor_type): Add PROCESSOR_BDVER1.
28499         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
28500         processor_type in config/i386/i386.h.
28501         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
28502         movaps <reg, reg> instead of movapd <reg, reg> when replacing
28503         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
28504         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
28505         to emit packed xor instead of packed double/packed integer
28506         xor for SSE and AVX when moving a zero value.
28507         * config/i386/sse.md: Add check for
28508         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
28509         movapd/movdqa for SSE and AVX.
28510         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
28511         single logical operations i.e and, or and xor instead of packed double
28512         logical operations for SSE and AVX.
28513         * config/i386/i386-c.c (ix86_target_macros_internal):
28514         Add PROCESSOR_BDVER1.
28515         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
28516         (has_fma4, has_xop): New.
28517         * config/i386/i386.c (bdver1_cost): New variable.
28518         (m_BDVER1): New macro.
28519         (m_AMD_MULTIPLE): Add m_BDVER1.
28520         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
28521         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
28522         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
28523         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
28524         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
28525         x86_tune_sse_partial_reg_dependency,
28526         x86_tune_sse_unaligned_load_optimal,
28527         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
28528         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
28529         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
28530         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
28531         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
28532         Enable/disable for bdver1.
28533         (processor_target_table): Add bdver1_cost.
28534         (cpu_names): Add bdver1.
28535         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
28536          processor_alias_table.
28537         (ix86_expand_vector_move_misalign): Change.
28538         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
28539         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
28540         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
28541         of movupd/movdqu for SSE and AVX.
28542         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
28543         (ix86_tune_adjust_cost): Add code for bdver1.
28544         (standard_sse_constant_opcode): Add check for
28545         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
28546         of packed double xor for SSE and AVX.
28547
28548 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
28549
28550         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
28551         result to unsigned.
28552
28553 2010-05-14  Tristan Gingold  <gingold@adacore.com>
28554
28555         * toplev.c (default_debug_hooks): Remove this variable.
28556         (process_options): Remove assignments to default_debug_hooks.
28557
28558 2010-05-14  Martin Jambor  <mjambor@suse.cz>
28559
28560         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
28561         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
28562         * langhooks.h (struct lang_hooks_for_decls): Removed field
28563         fold_obj_type_ref.
28564         * tree.c (free_lang_data): Remove assignment to
28565         lang_hooks.fold_obj_type_ref.
28566         * tree.def (OBJ_TYPE_REF): Update comment.
28567
28568 2010-05-14  Richard Guenther  <rguenther@suse.de>
28569
28570         PR tree-optimization/44124
28571         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
28572
28573 2010-05-14  Alan Modra  <amodra@gmail.com>
28574
28575         PR target/44075
28576         * config/rs6000/rs6000.c (struct machine_function): Reorder
28577         fields for better packing.  Add lr_save_state.
28578         (rs6000_ra_ever_killed): Return lr_save_state if set.
28579         (rs6000_emit_eh_reg_restore): Set lr_save_state.
28580
28581 2010-05-13  Jan Hubicka  <jh@suse.cz>
28582
28583         * varpool.c (decide_is_variable_needed): Drop code checking
28584         TREE_SYMBOL_REFERENCED.
28585
28586 2010-05-13  Jan Hubicka  <jh@suse.cz>
28587
28588         * final.c (output_addr_const): Do not call mark_decl_referenced.
28589         * cgraphunit.c (process_function_and_variable_attributes): Use
28590         mark_needed_node dirrectly.
28591         (assemble_thunk): Do not call mark_decl_referenced.
28592
28593 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
28594
28595         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
28596
28597 2010-05-13  Jeff Law  <law@redhat.com>
28598
28599         * ira-conflicts.c (print_allocno_conflicts): New function broken out
28600         from...
28601         (print_conflicts): Call print_allocno_conflicts.
28602
28603 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
28604
28605         PR debug/44104
28606         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
28607         if it is NULL.
28608
28609 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
28610
28611         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
28612         t-mingw-w64 or t-mingw-w32 for multilib configuration.
28613         * config/i386/t-mingw-w32: New.
28614         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
28615
28616 2010-05-13  Martin Jambor  <mjambor@suse.cz>
28617
28618         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
28619         gimple-fold.c).
28620         * gimple-fold.c (get_base_binfo_for_type): New function.
28621         (gimple_get_relevant_ref_binfo): Likewise.
28622         (gimple_fold_obj_type_ref_known_binfo): Likewise.
28623         (gimple_fold_obj_type_ref): Likewise.
28624         (fold_gimple_call): Simplify condition for folding virtual calls
28625         and call gimple_fold_obj_type_ref.
28626         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
28627         (gimple_fold_obj_type_ref_known_binfo): Likewise.
28628
28629 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
28630
28631         * config/rs6000/rs6000-protos.h
28632         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
28633         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
28634         (rs6000_debug_mode_dependent_address)
28635         (rs6000_mode_dependent_address_ptr): Likewise.
28636
28637 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
28638
28639         PR debug/43983
28640         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
28641         by SRA.
28642         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
28643         * tree-sra.c (create_access_replacement): Call unshare_expr before
28644         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
28645         * dwarf2out.c: Include tree-flow.h.
28646         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
28647         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
28648         Handle DW_OP_bit_piece.
28649         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
28650         construct_piece_list, adjust_piece_list): New functions.
28651         (add_var_loc_to_decl): Handle SRA optimized variables.
28652         Adjust for var_loc_note to loc field renaming.
28653         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
28654         in VAR_LOCATION note.
28655         (new_loc_descr_op_bit_piece): New function.
28656         (dw_sra_loc_expr): New function.
28657         (dw_loc_list): Use it.  Don't handle the last range after the
28658         loop, handle it inside of the loop.  Adjust for var_loc_note
28659         to loc field renaming.
28660         (add_location_or_const_value_attribute): Only special case
28661         single entry loc lists if loc is NOTE_P.  Adjust for
28662         var_loc_note to loc field renaming.
28663         (dwarf2out_var_location): Don't set newloc->var_loc_note
28664         and newloc->next here.
28665
28666 2010-05-12  Jan Hubicka  <jh@suse.cz>
28667
28668         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
28669         flag.
28670         * cgraph.h (cgraph_only_called_directly_p,
28671         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
28672         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
28673         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
28674         (assemble
28675         * ipa.c (cgraph_remove_unreachable_nodes): Use
28676         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
28677         flags.
28678         * tree-inline.c (copy_bb): Check address_taken flag.
28679         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
28680         externally_visible flag.
28681
28682 2010-05-12  Jason Merrill  <jason@redhat.com>
28683
28684         PR bootstrap/44048
28685         PR target/44099
28686         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
28687         * sdbout.c (plain_type_1): Likewise.
28688         * dwarf2out.c (is_base_type): Likewise.
28689         (gen_type_die_with_usage): Likewise.  Generate
28690         DW_TAG_unspecified_type for any LANG_TYPE.
28691
28692 2010-05-12  Jan Hubicka  <jh@suse.cz>
28693
28694         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
28695         indrect edges too.
28696         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
28697         (cgraph_clone_edge): Update.
28698         (cgraph_node_remove_callees): Remove indirect calls too.
28699         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
28700         (cgraph_create_indirect_edge): Update prototype.
28701         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
28702         is_proper_for_analysis.
28703         (add_new_function, visited_nodes, function_insertion_hook_holder,
28704         get_local_reference_vars_info, mark_address_taken, mark_address,
28705         mark_load, mark_store, check_asm_memory_clobber, check_call,
28706         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
28707         (ipa_init): Do not initialize visited_nodes;
28708         function_insertion_hook_holder.
28709         (analyze_variable): Rewrite.
28710         (analyze_function): Rewrite.
28711         (copy_local_bitmap): Remove.
28712         (duplicate_node_dat): Do not duplicate local info.
28713         (generate_summary): Simplify to only walk cgraph.
28714         (write_node_summary_p, ipa_reference_write_summary,
28715         ipa_reference_read_summary): Remove.
28716         (propagate): Do not remove function insertion;
28717         generate summary.
28718         (pass_ipa_reference): NULLify summary handling fields.
28719         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
28720         (input_edge): Input ecf_flags.
28721         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
28722         (update_indirect_edges_after_inlining): Ignore edges with unknown
28723         param.
28724
28725 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
28726
28727         * implicit-zee.c: New file.
28728         * tree-pass.h (pass_implicit_zee): Declare.
28729         * passes.c (init_optimization_passes): Add zee pass.
28730         * common.opt (fzee): New flag.
28731         * timevar.def (TV_ZEE): Define.
28732         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
28733         and beyond.
28734         * Makefile.in (implicit-zee.o): Add new build file.
28735
28736 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28737             Nathan Froyd  <froydnj@codesourcery.com>
28738
28739         * c-common.c (sync_resolve_params): Remove write-only variable.
28740
28741 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
28742
28743         * target.h (struct gcc_target): Add mode_dependent_address_p field.
28744         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28745         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
28746         * targhooks.c (default_mode_dependent_address_p): New function.
28747         * targhooks.h (default_mode_dependent_address_p): Declare function.
28748         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28749         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
28750         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
28751         target hook. Change return type to bool.
28752         * recog.h (mode_dependent_address_p): Change return type to bool.
28753
28754 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28755             Nathan Froyd  <froydnj@codesourcery.com>
28756
28757         * tree-mudflap.c (build_function_type_0, build_function_type_1,
28758         build_function_type_2, build_function_type_3): Remove.
28759         (mudflap_init): Use build_function_type_list.
28760
28761 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28762             Nathan Froyd  <froydnj@codesourcery.com>
28763
28764         * coverage.c (build_fn_info_value): Call build_constructor instead of
28765         build_constructor_from_list.
28766         (build_ctr_info_value): Likewise.
28767         (build_gcov_info): Likewise.
28768
28769 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
28770
28771         * tree.c (build_constructor): Compute TREE_CONSTANT for the
28772         resultant constructor.
28773         (build_constructor_single): Don't set TREE_CONSTANT.
28774         (build_constructor_from_list): Don't compute TREE_CONSTANT.
28775
28776 2010-05-12  Jan Hubicka  <jh@suse.cz>
28777
28778         * cgraph.h (struct varpool_node): Add aux.
28779         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
28780         * varpool.c (varpool_remove_node): Do not remove initializer.
28781         (varpool_reset_queue): Export.
28782         (varpool_finalize_decl): Volatile vars are forced to be output.
28783         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
28784         replaced decl.
28785         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
28786         process_references, varpool_can_remove_if_no_refs): New functions.
28787         (cgraph_remove_unreachable_nodes): Handle variables too.
28788
28789 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
28790
28791         PR target/44088
28792         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
28793
28794 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
28795
28796         PR middle-end/44085
28797         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
28798         change value of ORT_TASK.
28799         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
28800         (omp_notice_threadprivate_variable): New function.
28801         (omp_notice_variable): Call it for threadprivate variables.
28802         If enclosing ctx is a task, print enclosing task rather than
28803         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
28804         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
28805         if task has untied clause.
28806
28807         PR debug/42278
28808         * dwarf2out.c (base_type_die): Don't add name attribute here.
28809         (modified_type_die): Instead of sizetype use
28810         its underlying original type.  If a DW_TAG_base_type doesn't
28811         have name added, add __unknown__.
28812         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
28813         always call force_type_die instead.
28814
28815 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
28816
28817         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
28818         for __stack_chk_guard.
28819
28820 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
28821
28822         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
28823         don't call start_source_file debug hook here...
28824         (finish_options): ... but here, after outputting predefined and
28825         command line defines and undefs.
28826
28827         PR middle-end/44071
28828         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
28829         no fallthru edge.
28830         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
28831         optimizing away empty bb with no successors, move over its
28832         footer chain to fallthru predecessor.
28833         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
28834         (rtl_split_edge): For asm goto call patch_jump_insn even if
28835         splitting fallthru edge.
28836
28837         PR c++/44059
28838         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
28839         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
28840         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
28841         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
28842         on DW.ref.* decls.
28843
28844         PR c++/44062
28845         * c-parser.c (c_parser_expression): Mark LHS of a comma
28846         expression as read if it is a decl, handled component or
28847         COMPOUND_EXPR with that on the RHS.
28848         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
28849         if it is a decl or handled component.
28850
28851 2010-05-11  Jan Hubicka  <jh@suse.cz>
28852
28853         * lto-symtab.c (lto_symtab_free): New function.
28854         * lto-streamer.h (lto_symtab_free): Declare.
28855
28856 2010-05-11  Jan Hubicka  <jh@suse.cz>
28857
28858         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
28859         that if function is needed it is reachable.
28860         (lto_output_node): See if it the function is reachable or referenced.
28861         (output_cgraph): Update call of lto_output_node.
28862         * lto-streamer.h (reachable_from_other_partition_p): Declare.
28863
28864 2010-05-11  Jan Hubicka  <jh@suse.cz>
28865
28866         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
28867         Mark as used.
28868
28869 2010-05-11  Jan Hubicka  <jh@suse.cz>
28870
28871         PR tree-optimize/44063
28872         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
28873         queue.
28874         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
28875         limits.
28876         (estimate_function_body_sizes): Compute sizes even when disregarding.
28877
28878 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
28879
28880         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
28881
28882 2010-05-11  Jan Hubicka  <jh@suse.cz>
28883
28884         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
28885         into every boundary.
28886
28887 2010-05-11  Jan Hubicka  <jh@suse.cz>
28888
28889         * matrix-reorg.c (matrix_reorg): Rebuild edges.
28890
28891 2010-05-11  Jan Hubicka  <jh@suse.cz>
28892
28893         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
28894         lto_streamer_cache_delete): Put nodes into heap.
28895         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
28896         heap.
28897
28898 2010-05-11  Jan Hubicka  <jh@suse.cz>
28899
28900         * cgraphbuild.c (cgraph_rebuild_references): New.
28901         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
28902         out extern inlines.
28903         * cgraph.h (cgraph_rebuild_references): Declare.
28904         * tree-inline.c (tree_function_versioning): Use it.
28905         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
28906
28907 2010-05-11  Jan Hubicka  <jh@suse.cz>
28908
28909         * cgraph.c: Include ipa-utils.h
28910         (cgraph_create_virtual_clone): Update references.
28911         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
28912
28913 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
28914
28915         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
28916         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
28917         cache size.
28918
28919 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
28920
28921         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
28922
28923 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
28924
28925         * gcc.c (execute): For -### don't quote arguments that
28926         contain just alphanumerics and _/-. characters.
28927         * doc/invoke.texi: Document that change for -###.
28928
28929         PR debug/44023
28930         * df-problems.c (struct dead_debug): Add to_rescan field.
28931         (dead_debug_init): Clear to_rescan field.
28932         (dead_debug_finish): Rescan all debug insns in to_rescan
28933         bitmap and free the bitmap.
28934         (dead_debug_insert_before): Instead of rescanning debug insns
28935         immediately queue their rescanning until dead_debug_finish.
28936         (df_note_bb_compute): After dead_debug_add do continue instead
28937         of break.
28938
28939 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
28940
28941         PR debug/44028
28942         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
28943         clear also INSN_REG_USE_LIST.
28944
28945 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28946
28947         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
28948
28949 2010-05-10  Jan Hubicka  <jh@suse.cz>
28950
28951         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
28952         commited change.
28953
28954 2010-05-10  Jan Hubicka  <jh@suse.cz>
28955
28956         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
28957         Allocate encoders.
28958         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
28959         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
28960         (lto_streamer_cache_create): Init alloc pool.
28961         (lto_streamer_cache_delete): Free alloc pool.
28962         * lto-streamer.h: Include alloc pool.
28963         (lto_streamer_cache_d): Use alloc pool.
28964         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
28965
28966 2010-05-10  Jan Hubicka  <jh@suse.cz>
28967
28968         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
28969         * cgraphbuild.c: Include except.h
28970         (record_type_list, record_eh_tables): New function.
28971         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
28972
28973 2010-05-10  Jan Hubicka  <jh@suse.cz>
28974
28975         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
28976         __frame_dummy_init_array_entry, force_to_data): Attribute as used
28977         rather than unused.
28978
28979 2010-05-10  Michael Matz  <matz@suse.de>
28980
28981         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
28982         (can_reassociate_p): Use FLOAT_TYPE_P.
28983         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
28984         (vect_force_simple_reduction): ... this.
28985         * tree-parloops.c (gather_scalar_reductions): Use
28986         vect_force_simple_reduction.
28987         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
28988         vect_is_simple_reduction, add modify argument, if true rewrite
28989         "a-b" into "a+(-b)".
28990         (vect_is_simple_reduction, vect_force_simple_reduction): New
28991         functions.
28992         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
28993
28994 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
28995             Vladimir Makarov  <vmakarov@redhat.com>
28996
28997         PR rtl-optimization/44012
28998         * ira-build.c (remove_unnecessary_allocnos): Nullify
28999         regno_allocno_map of the removed allocno.
29000
29001 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29002
29003         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
29004         to /dev/null.
29005         * configure: Regenerate.
29006
29007 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29008
29009         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
29010         unused.
29011         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
29012         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
29013         support in Sun ld.
29014         * configure: Regenerate.
29015
29016 2010-05-10  Richard Guenther  <rguenther@suse.de>
29017
29018         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
29019         marked if the entry identifier is marked.
29020
29021 2010-05-10  Richard Guenther  <rguenther@suse.de>
29022
29023         * c-common.c (struct c_common_attributes): Add fnspec attribute.
29024         (handle_fnspec_attribute): New function.
29025         * gimple.h (gimple_call_return_flags): Declare.
29026         (gimple_call_arg_flags): Likewise.
29027         * gimple.c (gimple_call_arg_flags): New function.
29028         (gimple_call_return_flags): Likewise.
29029         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
29030         New argument flags.
29031         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
29032         return value flags.
29033         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
29034         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
29035         main work to ...
29036         (make_heapvar_for): ... this new function.
29037         (handle_rhs_call): Handle fnspec attribute argument specifiers.
29038         (handle_lhs_call): Likewise.
29039         (find_func_aliases): Adjust.
29040
29041 2010-05-10  Richard Guenther  <rguenther@suse.de>
29042
29043         PR tree-optimization/44050
29044         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
29045
29046 2010-05-10  Wei Guozhi  <carrot@google.com>
29047
29048         PR target/42879
29049         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
29050
29051 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29052
29053         PR c/10676
29054         * c-typeck.c (lookup_field): Take a type directly.  Update
29055         recursive calls.
29056         (build_component_ref): Update call to lookup_field.
29057         (set_init_label): Use lookup_field to find initialized field.
29058         Handle returned list of fields like a sequence of designators.
29059
29060 2010-05-09  Richard Guenther  <rguenther@suse.de>
29061
29062         PR middle-end/44024
29063         * fold-const.c (tree_single_nonzero_warnv_p): Properly
29064         handle &FUNCTION_DECL.
29065
29066 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29067
29068         PR c/4784
29069         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
29070         structures and unions recursively.
29071         (detect_field_duplicates): Move duplicate detection with a hash to
29072         detect_field_duplicates_hash.  Always use a hash if anonymous
29073         structures or unions are present.
29074         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
29075         give errors.
29076
29077 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
29078
29079         PR target/44046
29080         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
29081         detect Atom, Core 2 and Core i7.
29082
29083 2010-05-09  Richard Guenther  <rguenther@suse.de>
29084
29085         * gcc.c (store_arg): Handle temporary file deletion for
29086         joined arguments.
29087
29088 2010-05-09  Richard Guenther  <rguenther@suse.de>
29089
29090         PR middle-end/44043
29091         * ipa-inline.c (estimate_function_body_sizes): Return after
29092         disregarding inline limits.
29093
29094 2010-05-09  Richard Guenther  <rguenther@suse.de>
29095
29096         * gcc.c (store_arg): Revert last change.
29097
29098 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
29099
29100         PR middle-end/28685
29101         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
29102         (optimize_ops_list): Call it.
29103
29104 2010-05-08  Richard Guenther  <rguenther@suse.de>
29105
29106         PR tree-optimization/44030
29107         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
29108         NECESSARY flag if we propagate from a inserted expression.
29109
29110 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
29111
29112         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
29113         domain types as equal if they are both PLACEHOLDER_EXPRs.
29114
29115 2010-05-08  Richard Guenther  <rguenther@suse.de>
29116
29117         * lto-wrapper.c (run_gcc): Remove linker output from
29118         command line for LTRANS invocation.
29119
29120 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29121
29122         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
29123         lto-macho as lto_binary_reader.
29124         * target.h (struct gcc_target): New hooks lto_start and lto_end.
29125         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
29126         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
29127         in lto_start and lto_end calls.
29128         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
29129         magic numbers.
29130         (scan_prog_file): Update is_elf_or_coff call.
29131         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
29132
29133         * collect2.c (main): Fix enum comparison.
29134
29135         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
29136         Add prototypes.
29137         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
29138         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
29139         and TARGET_ASM_LTO_END.
29140         * darwin.c: Include obstack.h and lto-streamer.h.
29141         (lto_section_names_offset, lto_section_names_obstack,
29142         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
29143         global variables.
29144         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
29145         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
29146         to a temporary file.
29147         (darwin_asm_lto_end): New function.  Restore asm_out_file.
29148         (darwin_asm_named_section): For LTO sections, replace the name with
29149         the offset of the section name in a string table, and build this
29150         table.
29151         (darwin_file_start): Initialize global vars for LTO support.
29152         (darwin_file_end): If output to asm_out_file was redirected, append it
29153         to the proper asm_out_file here.  Add the section names section.
29154
29155 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29156
29157         * c-pragma.c (pending_weak_d, pending_weak): New.
29158         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
29159         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
29160         handle_pragma_weak): Update the uses of pending_weaks.
29161
29162 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29163
29164         PR documentation/44016
29165         * doc/standards.texi (Standards): Link to unversioned
29166         cxx0x_status.html page.
29167
29168 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
29169
29170         PR target/43708
29171         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
29172         in addition to TREE_USED, to avoid "set but unused" warnings.
29173
29174 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29175
29176         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
29177         (is_loop_prefetching_profitable): Do not insert prefetches
29178         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
29179         times the prefetch ahead distance.
29180
29181 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29182
29183         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
29184         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
29185         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
29186         the unroll_factor.
29187
29188 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29189
29190         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
29191         a diagnostic info when the insn-to-mem ratio is too small.
29192
29193 2010-05-07  Richard Guenther  <rguenther@suse.de>
29194
29195         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
29196         the linker plugin.
29197         (store_arg): Queue temp_filename for deletion instead of
29198         the whole argument.
29199
29200 2010-05-07  Richard Guenther  <rguenther@suse.de>
29201
29202         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
29203         (run_gcc): Handle LTRANS phase invocation.
29204         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
29205
29206 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
29207
29208         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
29209         this is also meaningful on PARM_DECLs and RESULT_DECLs.
29210
29211 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29212
29213         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
29214
29215 2010-05-07  Richard Guenther  <rguenther@suse.de>
29216
29217         PR tree-optimization/44020
29218         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
29219         code when PRE is not yet initialized.
29220
29221 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29222
29223         * config/mips/dbxmdebug.h: Remove.
29224         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
29225
29226 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
29227
29228         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
29229         with null pointer and also warn about ordered comparison of zero with
29230         pointer if -Wextra.
29231
29232 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29233
29234         * graphite-blocking.c
29235         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
29236         * graphite-clast-to-gimple.c
29237         (clast_to_gcc_expression): Same.
29238         (precision_for_value): Same.
29239         (precision_for_interval): Same.
29240         (gcc_type_for_interval): Same.
29241         (graphite_create_new_guard): Same.
29242         (compute_bounds_for_level): Same.
29243         (graphite_create_new_loop_guard): Same.
29244         * graphite-interchange.c
29245         (build_linearized_memory_access): Same.
29246         (pdr_stride_in_loop): Same.
29247         (memory_strides_in_loop_1): Same.
29248         (memory_strides_in_loop): Same.
29249         (extend_scattering): Same.
29250         (psct_scattering_dim_for_loop_depth): Same.
29251         (pbb_number_of_iterations): Same.
29252         * graphite-poly.h
29253         (debug_iteration_domains): Same.
29254         * graphite-ppl.c
29255         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
29256         (ppl_set_inhomogeneous_gmp): Same.
29257         (ppl_strip_loop): Same.
29258         (ppl_lexico_compare_linear_expressions): Same.
29259         (ppl_read_polyhedron_matrix): Same.
29260         (ppl_max_for_le_pointset): Same.
29261         * graphite-ppl.h
29262         (ppl_read_polyhedron_matrix): Same.
29263         (tree_int_to_gmp): Same.
29264         (gmp_cst_to_tree): Same.
29265         (ppl_set_inhomogeneous): Same.
29266         (ppl_set_inhomogeneous_tree): Same.
29267         (ppl_set_coef): Same.
29268         (ppl_set_coef_tree): Same.
29269         * graphite-sese-to-poly.c
29270         (build_pbb_scattering_polyhedrons): Same.
29271         (build_scop_scattering): Same.
29272         (scan_tree_for_params_right_scev): Same.
29273         (scan_tree_for_params): Same.
29274         (find_params_in_bb): Same.
29275         (find_scop_parameters): Same.
29276         (add_upper_bounds_from_estimated_nit): Same.
29277         (build_loop_iteration_domains): Same.
29278         (add_condition_to_domain): Same.
29279         (pdr_add_memory_accesses): Same.
29280
29281 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29282
29283         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
29284         CLooG's value_* macros to their respective mpz_* counterparts.
29285         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
29286         (graphite_create_new_loop_guard): Same.
29287         * graphite-interchange.c (build_linearized_memory_access): Same.
29288         (pdr_stride_in_loop): Same.
29289         (memory_strides_in_loop_1): Same.
29290         (1st_interchange_profitable_p): Same.
29291         * graphite-poly.c (extend_scattering): Same.
29292         (psct_scattering_dim_for_loop_depth): Same.
29293         (pbb_number_of_iterations): Same.
29294         (pbb_number_of_iterations_at_time): Same.
29295         * graphite-poly.h (new_1st_loop): Same.
29296         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
29297         (oppose_constraint): Same.
29298         (insert_constraint_into_matrix): Same.
29299         (ppl_set_inhomogeneous_gmp): Same.
29300         (ppl_set_coef_gmp): Same.
29301         (ppl_strip_loop): Same.
29302         (ppl_lexico_compare_linear_expressions): Same.
29303         (ppl_max_for_le_pointset): Same.
29304         (ppl_min_for_le_pointset): Same.
29305         (ppl_build_realtion): Same.
29306         * graphite-ppl.h (gmp_cst_to_tree): Same.
29307         (ppl_set_inhomogeneous): Same.
29308         (ppl_set_inhomogeneous_tree): Same.
29309         (ppl_set_coef): Same.
29310         (ppl_set_coef_tree): Same.
29311         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29312         (build_scop_scattering): Same.
29313         (add_value_to_dim): Same.
29314         (scan_tree_for_params_right_scev): Same.
29315         (scan_tree_for_params_int): Same.
29316         (scan_tree_for_params): Same.
29317         (find_params_in_bb): Same.
29318         (find_scop_parameters): Same.
29319         (add_upper_bounds_from_estimated_nit): Same.
29320         (build_loop_iteration_domains): Same.
29321         (create_linear_expr_from_tree): Same.
29322         (add_condition_to_domain): Same.
29323         (pdr_add_memory_accesses): Same.
29324
29325 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
29326             Jason Merrill  <jason@redhat.com>
29327
29328         * c-common.c (c_common_reswords): Add nullptr.
29329         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
29330         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
29331         (gen_type_die_with_usage): Likewise.
29332         * dbxout.c (dbxout_type): Likewise.
29333         * sdbout.c (plain_type_1): Likewise.
29334
29335 2010-05-06  Jason Merrill  <jason@redhat.com>
29336
29337         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
29338         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
29339         ret appropriately.
29340         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
29341
29342         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
29343         stripping WITH_SIZE_EXPR.
29344         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
29345         change.
29346
29347 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29348
29349         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
29350         list of obsolete configurations.
29351         Disabled check for obsolete configurations.
29352         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
29353         Removed support for previous versions.
29354         * config/mips/iris.h: Removed.
29355         * config/mips/iris5.h: Removed.
29356         * config/mips/iris6.h: Merged old iris.h contents.
29357         (TARGET_IRIX): Removed.
29358         (DRIVER_SELF_SPECS): Removed mabi=32.
29359         (IDENT_ASM_OP): Removed undef.
29360         (STARTFILE_SPEC): Removed mabi=32.
29361         (ENDFILE_SPEC): Likewise.
29362         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
29363         (MACHINE_TYPE): Update for IRIX 6.5.
29364         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
29365         TARGET_IRIX by TARGET_IRIX6.
29366         (mips_file_start): Likewise.
29367         (mips_output_external): Remove IRIX 5/6 O32 support.
29368         (mips_output_function_prologue): Likewise.
29369         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
29370         TARGET_IRIX6.
29371         (TARGET_CPU_CPP_BUILTINS): Likewise.
29372         (TARGET_IRIX): Removed.
29373         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
29374         (MULTILIB_DIRNAMES): Removed 32.
29375         (MULTILIB_OSDIRNAMES): Removed ../lib.
29376         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
29377         (Specific, mips-sgi-irix5): Document removal.
29378         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
29379         Remove references to older IRIX 6 releases and the O32 ABI.
29380
29381 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
29382
29383         PR bootstrap/43994
29384         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
29385         instead of DF_REF_REAL_REG.
29386
29387 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
29388
29389         PR target/43888
29390         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
29391         handling to still return true for x64 targets.
29392
29393 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
29394
29395         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
29396
29397 2010-05-06  Jan Hubicka  <jh@suse.cz>
29398
29399         PR tree-optimization/43791
29400         * ipa-inline.c (update_caller_keys): Remove bogus
29401         disregard_inline_limits check.
29402
29403 2010-05-06  Michael Matz  <matz@suse.de>
29404
29405         PR tree-optimization/43984
29406         * tree-ssa-pre.c (inserted_phi_names): Remove.
29407         (inserted_exprs): Change to bitmap.
29408         (create_expression_by_pieces): Set bits, don't append to vector.
29409         (insert_into_preds_of_block): Don't handle inserted_phi_names.
29410         (eliminate): Don't look at inserted_phi_names, remove deleted
29411         insns from inserted_exprs.
29412         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
29413         (init_pre, fini_pre): Allocate and free bitmaps.
29414         (execute_pre): Insert insns on edges before elimination.
29415
29416 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
29417
29418         * tree.c (initializer_zerop): Handle STRING_CST.
29419
29420 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29421
29422         PR 40989
29423         * doc/invoke.texi (Wimplicit): Document as C only.
29424         * opts.c (common_handle_option): Add argument kind.
29425         (handle_option): Rename as read_cmdline_option. Factor out code to...
29426         (handle_option): ... here. New.
29427         (handle_options): Rename as read_cmdline_options.
29428         (decode_options): Update call.
29429         (set_option): Use option index instead of option pointer. Classify
29430         diagnostics correctly.
29431         (enable_warning_as_error): Call handle_option.
29432         * opts.h (set_option): Update declaration.
29433         (handle_option): Declare.
29434         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
29435         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
29436         * c-opts.c (set_Wimplicit): Delete.
29437         (c_family_lang_mask): New static constant.
29438         (c_common_handle_option): Add argument kind. Use handle_option
29439         instead of set_Wimplicit.
29440         (c_common_post_options): warn_implicit and warn_implicit_int
29441         are disabled by default.
29442         * c-common.c (warn_implicit): Do not define here.
29443         * c-common.h (warn_implicit): Do not declare here.
29444         (c_common_handle_option): Update declaration.
29445         * lto-opts.c (lto_reissue_options): Update call to set_option.
29446
29447 2010-05-06  Richard Guenther  <rguenther@suse.de>
29448
29449         PR tree-optimization/43571
29450         * domwalk.c (walk_dominator_tree): Walk the dominator
29451         sons in more optimal order.
29452
29453 2010-05-06  Richard Guenther  <rguenther@suse.de>
29454
29455         PR tree-optimization/43934
29456         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
29457         (stmt_cost): Likewise.
29458         (extract_true_false_args_from_phi): New helper.
29459         (determine_max_movement): For PHI nodes verify we can hoist them
29460         and compute their cost.
29461         (determine_invariantness_stmt): Handle PHI nodes.
29462         (move_computations_stmt): Likewise.  Hoist PHI nodes in
29463         if-converted form using COND_EXPRs.
29464         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
29465         (tree_ssa_lim): Likewise.
29466         * tree-flow.h (tree_ssa_lim): Adjust prototype.
29467         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
29468
29469 2010-05-06  Richard Guenther  <rguenther@suse.de>
29470
29471         PR tree-optimization/43987
29472         * tree-ssa-structalias.c (could_have_pointers): For possibly
29473         address-taken variables force pointers to be recorded.
29474         (create_variable_info_for_1): Likewise.
29475         (push_fields_onto_fieldstack): Pass in wheter all fields
29476         must have pointers.
29477         (find_func_aliases): Query types instead of vars whether
29478         they contain pointers where appropriate.
29479
29480 2010-05-06  Jan Hubicka  <jh@suse.cz>
29481
29482         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
29483         (record_reference, mark_address, mark_load, mark_store): Record
29484         references.
29485         (record_references_in_initializer): Update call of record_references.
29486         (rebuild_cgraph_edges): Remove all references before rebuiding.
29487         * cgraph.c (cgraph_create_node): Clear ref list.
29488         (cgraph_remove_node): Remove references.
29489         (dump_cgraph_node): Dump references.
29490         (cgraph_clone_node): Clone references.
29491         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
29492         (struct cgraph_node, varpool_node): Add ref_lst.
29493         * ipa-ref.c: New file.
29494         * ipa-ref.h: New file.
29495         * ipa-ref-inline.h: New file.
29496         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
29497         (referenced_from_other_partition_p): New function.
29498         (lto_output_varpool_node): Take set arugment; call
29499         referenced_from_other_partition.
29500         (lto_output_ref): New.
29501         (add_references): New.
29502         (output_refs): New.
29503         (output_cgraph): Compute boundary based on references; output refs.
29504         (output_varpool): Accept cgraph_node_set argument.
29505         (input_ref): New.
29506         (input_refs): New.
29507         (input_cgraph): Call input_refs.
29508         * lto-section-in.c (lto_section_name): Add refs.
29509         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
29510         (ipa-ref.o): New file.
29511         * varpool.c (varpool_node): Clear ipa ref list.
29512         (varpool_remove_node): Remove references.
29513         (dump_varpool_node): Dump references.
29514         (varpool_assemble_decl): Only compile finalized ones.
29515         (varpool_extra_name_alias): Initialize ref list.
29516         * lto-streamer.c (lto-get_section_name): Add .refs section.
29517         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
29518         (referenced_from_other_partition_p): Declared.
29519
29520 2010-05-06  Ira Rosen  <irar@il.ibm.com>
29521
29522         PR tree-optimization/43901
29523         * tree-vect-stmts.c (vectorizable_call): Assert that vector
29524         type is not NULL if it's transformation phase, and return
29525         FALSE if it's analysis.
29526         (vectorizable_conversion, vectorizable_operation,
29527         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
29528
29529 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
29530
29531         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29532         Delete.
29533         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29534         New define.
29535         * config/mips/mips-protos.h
29536         (mips_small_register_classes_for_mode_p): Delete prototype.
29537
29538 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
29539
29540         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
29541         * config/arm/arm.c (multiple_operation_profitable_p,
29542         compute_offset_order): New static functions.
29543         (load_multiple_sequence, store_multiple_sequence): Use them.
29544         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
29545         memory offsets, not register numbers.
29546         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
29547
29548 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
29549
29550         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
29551         (get_pending_sizes, put_pending_size, put_pending_sizes):
29552         Update the uses of pending_sizes.
29553         * c-decl.c (store_parm_decls): Likewise.
29554         * c-tree.h (struct c_arg_info): Likewise.
29555         * tree.h: Update the prototype for get_pending_sizes and
29556         put_pending_sizes.
29557
29558 2010-05-05  Jason Merrill  <jason@redhat.com>
29559
29560         PR debug/43370
29561         * c-common.c (handle_aligned_attribute): Respect
29562         ATTR_FLAG_TYPE_IN_PLACE.
29563
29564         PR testsuite/43758
29565         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
29566         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29567         (TARGET_INITIALIZER): Use it.
29568         * c-common.c (attribute_takes_identifier_p): Call it.
29569         * c-common.h: Update prototype.
29570         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
29571         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29572
29573 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
29574
29575         PR debug/43950
29576         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
29577         DW_ID_down_case for Fortran compilation units.
29578
29579 2010-05-05  Jan Hubicka  <jh@suse.cz>
29580
29581         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
29582         handle aliases.
29583
29584 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
29585
29586         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
29587         a variable-sized RESULT_DECL.
29588
29589 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
29590
29591         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
29592
29593 2010-05-05  Jason Merrill  <jason@redhat.com>
29594
29595         PR c++/43787
29596         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
29597         returns GS_OK.
29598         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
29599
29600 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
29601             Jakub Jelinek  <jakub@redhat.com>
29602
29603         PR debug/43478
29604         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
29605         (dead_debug_init, dead_debug_finish): New functions.
29606         (dead_debug_add, dead_debug_insert_before): Likewise.
29607         (df_note_bb_compute): Initialize a dead_debug object, add dead
29608         debug uses to it, insert debug bind insns before death insns,
29609         reset debug insns that refer to pending uses at the end.
29610         * rtl.h (make_debug_expr_from_rtl): New prototype.
29611         * varasm.c (make_debug_expr_from_rtl): New function.
29612
29613 2010-05-05  Jan Hubicka  <jh@suse.cz>
29614
29615         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
29616         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
29617         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
29618         lto_varpool_encoder_deref, lto_varpool_encoder_size,
29619         lto_varpool_encoder_encode_initializer_p,
29620         lto_set_varpool_encoder_encode_initializer): New functions.
29621         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
29622         call output_varpool.
29623         (input_varpool_node): Do not always set analyzed.
29624         (input_cgraph_1): Return vector of cgraph nodes.
29625         (input_varpool_1): Return vector of varpools.
29626         (input_cgraph): Free the vectors.
29627         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29628         output only initializers needed.
29629         (lto_output): Only call output_cgraph.
29630         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
29631         * lto-section-out.c (lto_new_out_decl_state): Initialize
29632         state->varpool_node_encoder.
29633         * lto-streamer.h (lto_varpool_encoder_d): New.
29634         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
29635         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
29636         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
29637         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
29638         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
29639         Declare.
29640         (output_varpool, input_varpool): Remove declarations.
29641
29642 2010-05-05  Jan Hubicka  <jh@suse.cz>
29643
29644         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
29645         with body can prevail.
29646
29647 2010-05-05  Jan Hubicka  <jh@suse.cz>
29648
29649         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
29650         size.
29651
29652 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29653
29654         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
29655
29656         * gengtype.h (erro_at_line): Constify pos argument.
29657
29658         * gengtype.c: Include hashtab.h.
29659         (enum gc_used): Document GC_MAYBE_POINTED_TO.
29660         (error_at_line): Constify pos argument.
29661         (do_typedef): Initialize p->opt field.
29662         (get_file_gtfilename): Fix comment typo.
29663         (struct walk_type_data): Constify line field.
29664         (get_output_file_for_structure): New function.
29665         (write_local_func_for_structure): Constify orig_s argument.
29666         Use get_output_file_for_structure.
29667         (write_func_for_structure): Use get_output_file_for_structure.
29668         (INDENT): New define.
29669         (dump_pair, dump_type, dump_type_list, dump_typekind)
29670         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
29671         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
29672         functions.
29673         (seen_types): New variable.
29674         (main): New variable do_dump.  Process "-d" command line option.
29675         Call dump_everything if dump requested.
29676
29677 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
29678
29679         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
29680         in a temporary instead of invoking the macro multiple times.
29681         (track_expr_p): Likewise.
29682
29683 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
29684
29685         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
29686         per new semantics.
29687         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
29688         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
29689         conditions for printing notes.
29690         * common.opt (-Wcoverage-mismatch): Allow negative, default to
29691         true, update documentation.
29692         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
29693
29694 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
29695
29696         PR c/43981
29697         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
29698         on dimen.
29699
29700 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
29701
29702         PR target/43799
29703         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
29704         (*sse_prologue_save_insn1): Likewise.
29705         (SSE prologue save splitter): Likewise.
29706
29707 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
29708
29709         * tree.c (free_lang_data_in_one_sizepos): New inline function.
29710         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
29711         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
29712         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
29713         all decls.  Call it on DECL_FIELD_OFFSET of fields.
29714         (find_decls_types_r): Follow DECL_VALUE_EXPR.
29715         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
29716
29717 2010-05-04  Martin Jambor  <mjambor@suse.cz>
29718
29719         * tree-sra.c (build_access_from_expr_1): The first parameter type
29720         changed to simple tree.
29721         (build_access_from_expr): Likewise, gsi parameter was eliminated.
29722         (scan_assign_result): Renamed to assignment_mod_result, enum elements
29723         renamed as well.
29724         (build_accesses_from_assign): Removed all parameters except for a
29725         simple gimple statement.  Now returns a simple bool.
29726         (scan_function): All non-analysis parts moved to separate functions
29727         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
29728         parameters and updated both callers.
29729         (sra_modify_expr): Removed parameter data.
29730         (sra_modify_function_body): New function.
29731         (perform_intra_sra): Call sra_modify_function_body to modify the
29732         function body.
29733         (replace_removed_params_ssa_names): Parameter data changed into
29734         adjustments vector.
29735         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
29736         changed the parameter dont_convert to convert with the opposite
29737         meaning.
29738         (sra_ipa_modify_assign): Parameter data changed into adjustments
29739         vector, return value changed to bool.
29740         (ipa_sra_modify_function_body): New function.
29741         (sra_ipa_reset_debug_stmts): Updated a comment.
29742         (modify_function): Use ipa_sra_modify_function_body to modify function
29743         body.
29744
29745 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
29746
29747         PR middle-end/43671
29748         * alias.c (true_dependence): Handle the same VALUE in x and mem.
29749         (canon_true_dependence): Likewise.
29750         (write_dependence_p): Likewise.
29751
29752 2010-05-04  Jan Hubicka  <jh@suse.cz>
29753
29754         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
29755         * cgraphbuild.c: Include ipa-utils.h
29756         (record_reference_ctx): New struct.
29757         (record_reference): Simplify to work on initializers; not statements.
29758         (mark_address, mark_load, mark_store): New.
29759         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29760         walk PHI nodes too.
29761         (record_references_in_initializer): Update use of record_reference.
29762         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29763         walk PHI nodes too.
29764
29765 2010-05-04  Jan Hubicka  <jh@suse.cz>
29766
29767         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
29768         node will be removed anyway.
29769         (lto_varpool_replace_node): Allow also unanalyzed nodes;
29770         relink aliases of node into prevailing node.
29771         * varpool.c (varpool_remove_node): Remove aliases properly;
29772         when removing node, remove all its aliases too; remove DECL_INITIAL
29773         of removed node; ggc_free the varpool node.
29774
29775 2010-05-04  Richard Guenther  <rguenther@suse.de>
29776
29777         PR tree-optimization/43879
29778         * tree-ssa-structalias.c (alias_get_name): Use
29779         DECL_ASSEMBLER_NAME if available.
29780         (create_function_info_for): Return the varinfo node.
29781         (ipa_pta_execute): Associate same-body aliases and extra names
29782         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
29783
29784 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
29785
29786         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
29787
29788 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
29789
29790         PR bootstrap/43964
29791         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
29792         only if HONOR_REG_ALLOC_ORDER is not defined.
29793
29794 2010-05-04  Richard Guenther  <rguenther@suse.de>
29795
29796         PR tree-optimization/43949
29797         * tree-vrp.c (extract_range_from_binary_expr): Only handle
29798         TRUNC_MOD_EXPR.
29799
29800 2010-04-26  Jason Merrill  <jason@redhat.com>
29801
29802         * c.opt (-fstrict-enums): New.
29803         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
29804
29805 2010-05-03  David Ung  <davidu@mips.com>
29806             James E. Wilson  <wilson@codesourcery.com>
29807
29808         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
29809         emit the trap instruction before the divide for TUNE_74K.
29810
29811 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
29812
29813         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
29814         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
29815         based on the above, for new target hook.
29816
29817         * hooks.c (hook_bool_mode_true): New generic hook.
29818         * hooks.h (hook_bool_mode_true): Add prototype.
29819
29820         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
29821         target hook.
29822         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
29823         target hook, set to hook_bool_mode_false.
29824         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
29825         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
29826         with targetm.small_register_classes_for_mode_p.
29827         (find_reusable_reload): Likewise.
29828         (combine_reloads): Likewise.
29829         * reload1.c (reload_as_needed): Likewise.
29830         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
29831         * ifcvt.c (noce_process_if_block, check_cond_move_block,
29832         dead_or_predicable): Likewise.
29833         * regmove.c (optimize_reg_copy_1): Likewise.
29834         * calls.c (prepare_call_address): Likewise.
29835         (precompute_register_parameters): Likewise.
29836
29837         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
29838         hook definition.
29839         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
29840         implementation of the hook that considers all register classes
29841         small except for SH64.
29842         (sh_override_options): Use the new hook.
29843         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
29844         Add prototype.
29845
29846         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
29847         hook definition.
29848         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
29849         implementation of the hook that considers all register classes
29850         small for THUMB1.
29851         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
29852         Add prototype.
29853
29854         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
29855         hook definition.
29856         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
29857         implementation of the hook that considers all register classes
29858         small for MIPS16.
29859         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
29860         Add prototype.
29861
29862         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
29863         hook definition.
29864         * config/m32c/m32c.h: Likewise.
29865         * config/pdp11/pdp11.h: Likewise.
29866         * config/avr/avr.h: Likewise.
29867         * config/xtensa/xtensa.h: Likewise.
29868         * config/m68hc11/m68hc11.h: Likewise.
29869         * config/mn10300/mn10300.h: Likewise.
29870         * config/mcore/mcore.h: Likewise.
29871         * config/h8300/h8300.h: Likewise.
29872         * config/bfin/bfin.h: Likewise.
29873
29874         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
29875         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
29876
29877 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
29878
29879         * double-int.h (tree_to_double_int): Remove macro.
29880         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
29881         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29882         (tree_to_double_int): New function.
29883         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
29884         Move ...
29885         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29886
29887 2010-05-03  Richard Guenther  <rguenther@suse.de>
29888
29889         PR tree-optimization/43971
29890         * tree-ssa-structalias.c (get_constraint_for_1): Fix
29891         constraints in the !flag_delete_null_pointer_checks case.
29892
29893 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
29894
29895         PR debug/43972
29896         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
29897         result mode matches original rtl mode.
29898
29899 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
29900
29901         PR target/43888
29902         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
29903
29904 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29905
29906         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
29907         when processing flag options.
29908
29909 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29910
29911         * gcov-iov.c (main): Change format string placeholder
29912         from %#08x to 0x%08x.
29913         * genchecksum.c (dosum): Change format string placeholder
29914         from %#02x to 0x%02x.
29915
29916 2010-05-02  Richard Guenther  <rguenther@suse.de>
29917
29918         PR tree-optimization/43879
29919         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
29920
29921 2010-05-02  Bruno Haible  <bruno@clisp.org>
29922
29923         * doc/extend.texi (Function Attributes): Fix a typo.
29924
29925 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29926
29927         Revert:
29928         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
29929         placeholder from 0x%x to %#x.
29930         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29931         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29932         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29933         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29934         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29935         * config/i386/i386.c (ix86_target_string): Ditto.
29936         * config/i386/i386.c (output_pic_addr_const): Ditto.
29937         (print_operand): Ditto.
29938
29939 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
29940
29941         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
29942         placeholder from 0x%x to %#x.
29943         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
29944         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
29945         (ASM_OUTPUT_DEBUG_DATA): Ditto.
29946         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
29947         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
29948         * optc-gen.awk: Ditto.
29949         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
29950         (HOST_WIDE_INT_PRINT_HEX): Ditto.
29951         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
29952         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29953
29954 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
29955
29956         * target.h (struct calls): Add function_value_regno_p field.
29957         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
29958         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
29959         * targhooks.c (default_function_value_regno_p): New function.
29960         * targhooks.h (default_function_value_regno_p): Declare function.
29961         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
29962         * builtins.c. (apply_result_size): (Ditto.).
29963         * combine.c. (likely_spilled_retval_p): (Ditto.).
29964         * mode-switching.c. Include 'target.h'.
29965         (create_pre_exit): Use function_value_regno_p hook.
29966         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
29967         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
29968         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
29969
29970         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
29971         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
29972         (ix86_function_value_regno_p): Declare as static, change argument
29973         type to const unsigned int.
29974         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
29975
29976 2010-05-01  Richard Guenther  <rguenther@suse.de>
29977
29978         PR tree-optimization/43949
29979         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
29980         types.
29981         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
29982
29983 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
29984
29985         * rtl.h (CONST_DOUBLE_P): Define.
29986         (rtx_to_double_int): Declare.
29987         * emit-rtl.c (rtx_to_double_int): New function.
29988         * dwarf2out.c (insert_double): New function.
29989         (loc_descriptor, add_const_value_attribute): Clean up, use
29990         rtx_to_double_int and insert_double functions.
29991
29992 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
29993
29994         * doc/extend.texi (Inline): Add missing return keyword to examples.
29995         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
29996         "command-line".
29997
29998 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
29999
30000         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
30001         the variable part of the offset as well.  Use highest_pow2_factor for
30002         all alignment checks.
30003
30004 2010-04-30  Richard Guenther  <rguenther@suse.de>
30005
30006         PR tree-optimization/43879
30007         * tree-ssa-structalias.c (type_could_have_pointers): Functions
30008         can have pointers.
30009
30010 2010-04-30  Jan Hubicka  <jh@suse.cz>
30011
30012         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
30013         varpool.
30014         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
30015
30016 2010-04-30  Jan Hubicka  <jh@suse.cz>
30017
30018         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
30019         New.
30020         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
30021         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
30022         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
30023         cgraph_node_set_needs_ltrans_p): Remove.
30024
30025 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30026
30027         * sdbout.c: Include vec.h, do not include varray.h.
30028         (deferred_global_decls, sdbout_global_decl,
30029         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
30030         * toplev.c: Do not include varray.h.
30031         (dump_memory_report): Do not dump VARRAY statistics.
30032         * gengtype.c (open_base_file): Ignore varray.h.
30033         * Makefile.in: Update for abovementioned changes.
30034         Remove all traces of varray.c and varray.h.
30035         * varray.c: Remove file.
30036         * varray.h: Remove file.
30037
30038 2010-04-30  Jan Hubicka  <jh@suse.cz>
30039
30040         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
30041         references.
30042
30043 2010-04-30  Jan Hubicka  <jh@suse.cz>
30044
30045         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
30046         needed.
30047
30048 2010-04-30  Richard Guenther  <rguenther@suse.de>
30049
30050         * tree-ssa-structalias.c (get_constraint_for_1): Generate
30051         constraints for CONSTRUCTOR.
30052
30053 2010-04-30  Richard Guenther  <rguenther@suse.de>
30054
30055         PR lto/43946
30056         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
30057         first after all lowering passes.
30058
30059 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30060
30061         * toplev.c: Include varray.h for statistics dumping.
30062         * tree.h: Do not declare varray_head_tag.
30063         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
30064         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
30065         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
30066         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
30067         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
30068         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
30069         c-common.c, c-common.h, reg-stack.c, basic-block.h,
30070         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
30071         include varray.h.
30072         * Makefile.in: Update for abovementioned changes.
30073
30074 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
30075
30076         PR debug/43942
30077         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
30078
30079 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
30080
30081         * config/picochip/picochip.c (picochip_legitimize_address): Define.
30082         Use this function to do machine-specific conversion.
30083         (picochip_legitimize_reload_address): Likewise.
30084         (picochip_legitimate_address_p): Check valid base register only if
30085         strict.
30086         (picochip_check_conditional_copy): Check for modw only if opnd is
30087         register.
30088         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
30089         to call the function in c.
30090         * config/picochip/picochip-protos.h
30091         (picochip_legitimize_reload_address): Define.
30092         * config/picochip/picochip.md (supported_compare1): Define.
30093
30094 2010-04-30  Jan Hubicka  <jh@suse.cz>
30095
30096         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
30097         (cgraph_global_info): Remove inlined.
30098         (LTO_cgraph_tag_names): Remove.
30099         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
30100         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
30101         simplify cgraph tags and document.
30102         (lto_output_node): Use only LTO_cgraph_unavail_node and
30103         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
30104         for_functions_valid, global info, process and output flags.
30105         (input_overwrite_node): Initialize estimated stack size and
30106         estimated growth.  Do not read flags we no longer store.
30107         (input_node): Likewise do not read info no longer stored.
30108         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
30109         flag.
30110
30111 2010-04-30  Richard Guenther  <rguenther@suse.de>
30112
30113         PR tree-optimization/43879
30114         * tree-ssa-structalias.c (get_constraint_for_1): Properly
30115         handle non-zero initializers.
30116
30117 2010-04-30  Richard Guenther  <rguenther@suse.de>
30118
30119         * builtins.c (fold_builtin_1): Delete free (0).
30120
30121 2010-04-29  Jan Hubicka  <jh@suse.cz>
30122
30123         * gengtype.c (open_base_files): Add lto-streamer.h
30124         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
30125         (pass_ipa_cp): GGC collect.
30126         * toplev. (compile_file): Do not output symbols.
30127         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
30128         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
30129         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
30130         * lto-section-in.c: Include ggc.h
30131         (lto_new_in_decl_state): Alloc in GGC.
30132         (lto_delete_in_decl_state): Likewise.
30133         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
30134         Collect.
30135
30136 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30137
30138         PR target/42895
30139         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
30140         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
30141         (HONOR_REG_ALLOC_ORDER): Describe new macro.
30142         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
30143         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
30144         account only if HONOR_REG_ALLOC_ORDER is not defined.
30145         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
30146         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
30147
30148 2010-04-29  Jon Grant  <04@jguk.org>
30149
30150         * collect2.c (vflag): Change type from int to bool.
30151         (debug): Likewise.
30152         (helpflag): New global bool.
30153         (main): Set vflag and debug with boolean, not integer truth values.
30154         Accept new "--help" option and output usage text if found.
30155         * collect2.h (vflag): Update prototype.
30156         (debug): Likewise.
30157
30158 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30159
30160         PR bootstrap/43936
30161         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
30162
30163 2010-04-29  Richard Guenther  <rguenther@suse.de>
30164
30165         PR bootstrap/43935
30166         * plugin.h (invoke_plugin_callbacks): Annotate arguments
30167         with ATTRIBUTE_UNUSED.
30168
30169 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30170
30171         PR target/43921
30172         * config/i386/i386.c (get_some_local_dynamic_name): Replace
30173         INSN_P with NONDEBUG_INSN_P.
30174         (distance_non_agu_define): Likewise.
30175         (distance_agu_use): Likewise.
30176
30177 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30178
30179         From Dominique d'Humieres  <dominiq@lps.ens.fr>
30180         PR bootstrap/43858
30181         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
30182         test_set.
30183
30184 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
30185
30186         * plugin.h (invoke_plugin_callbacks): New inline function.
30187         * plugin.c (flag_plugin_added): New global flag.
30188         (add_new_plugin): Initialize above flag.
30189         (invoke_plugin_callbacks): Rename to ...
30190         (invoke_plugin_callbacks_full): ... this.
30191
30192 2010-04-28  Jan Hubicka  <jh@suse.cz>
30193
30194         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
30195         (lto_varpool_replace_node): New.
30196         (lto_symtab_resolve_symbols): Resolve varpool nodes.
30197         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
30198         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
30199         * cgraph.h (varpool_node_ptr): New type.
30200         (varpool_node_ptr): New vector.
30201         (varpool_node_set_def): New structure.
30202         (varpool_node_set): New type.
30203         (varpool_node_set): New vector.
30204         (varpool_node_set_element_def): New structure.
30205         (varpool_node_set_element, const_varpool_node_set_element): New types.
30206         (varpool_node_set_iterator): New type.
30207         (varpool_node): Add prev pointers, add used_from_other_partition,
30208         in_other_partition.
30209         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
30210         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
30211         varpool_get_node, varpool_remove_node): Declare.
30212         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
30213         varpool_node_set_size): New inlines.
30214         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
30215         * tree-pass.h (varpool_node_set_def): Forward declare.
30216         (ipa_opt_pass_d): Summary writting takes vnode sets too.
30217         (ipa_write_optimization_summaries): Update prototype.
30218         * ipa-cp.c (ipcp_write_summary): Update.
30219         * ipa-reference.c (ipa_reference_write_summary): Update.
30220         * lto-cgraph.c (lto_output_varpool_node): New static function.
30221         (output_varpool): New function.
30222         (input_varpool_node): New static function.
30223         (input_varpool_1): New function.
30224         (input_cgraph): Input varpool.
30225         * ipa-pure-const.c (pure_const_write_summary): Update.
30226         * lto-streamer-out.c (lto_output): Update, output varpool too.
30227         (write_global_stream): Kill WPA hack.
30228         (produce_asm_for_decls): Update.
30229         (output_alias_pair_p): Handle variables.
30230         (output_unreferenced_globals): Output only needed partition of varpool.
30231         * ipa-inline.c (inline_write_summary): Update.
30232         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
30233         cgraph.
30234         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
30235         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
30236         varpool_node_set_new, varpool_node_set_add,
30237         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
30238         debug_varpool_node_set): New functions.
30239         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
30240         (execute_one_pass): Process new decls too.
30241         (ipa_write_summaries_2): Pass around vsets.
30242         (ipa_write_summaries_1): Likewise.
30243         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
30244         to add.
30245         (ipa_write_optimization_summaries_1): Pass around vsets.
30246         (ipa_write_optimization_summaries): Likewise.
30247         * varpool.c (varpool_get_node): New.
30248         (varpool_node): Update doubly linked lists.
30249         (varpool_remove_node): New.
30250         (dump_varpool_node): More dumping.
30251         (varpool_enqueue_needed_node): Update doubly linked lists.
30252         (decide_is_variable_needed): Kill ltrans hack.
30253         (varpool_finalize_decl): Kill lto hack.
30254         (varpool_assemble_decl): Skip decls in other partitions.
30255         (varpool_assemble_pending_decls): Update doubly linkes lists.
30256         (varpool_empty_needed_queue): Likewise.
30257         (varpool_extra_name_alias): Likewise.
30258         * lto-streamer.c (lto_get_section_name): Add vars section.
30259         * lto-streamer.h (lto_section_type): Update.
30260         (output_varpool, input_varpool): Declare.
30261
30262 2010-04-28  Mike Stump  <mikestump@comcast.net>
30263
30264         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
30265
30266 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30267
30268         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
30269         record or union type with RECORD_OR_UNION_TYPE_P predicate.
30270         (lto_input_ts_type_tree_pointers): Likewise.
30271         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
30272         (lto_output_ts_type_tree_pointers): Likewise.
30273
30274 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30275
30276         Uniquization of constants at the Tree level
30277         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
30278         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
30279         bit to the end.
30280         (tree_output_constant_def): Declare.
30281         * gimplify.c (gimplify_init_constructor): When using block copy, first
30282         uniquize the constant constructor on the RHS.
30283         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
30284         DECL_IN_CONSTANT_POOL flag.
30285         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
30286         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
30287         constant pool.
30288         (assemble_variable): Deal with symbols belonging to the tree constant
30289         pool.
30290         (get_constant_section): Add ALIGN parameter and simplify.
30291         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
30292         (assemble_constant_contents): Use the expression of the VAR_DECL.
30293         (output_constant_def_contents): Use the alignment of the VAR_DECL.
30294         (tree_output_constant_def): New global function.
30295         (mark_constant): Use the expression of the VAR_DECL.
30296         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
30297         its expression.
30298         (output_object_block): Likewise and assemble the expression.
30299
30300 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30301
30302         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
30303         hash_tree, eq_tree): New tree hash table.
30304         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
30305         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
30306         lto_orig_address_remove): Reimplement.
30307
30308 2010-04-28  Xinliang David Li  <davidxl@google.com>
30309
30310         PR c/42643
30311         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
30312         (compute_uninit_opnds_pos): New function.
30313         (is_non_loop_exit_postdominating): New function.
30314         (compute_control_dep_chain): New function.
30315         (find_pdom): New function.
30316         (convert_control_dep_chain_into_preds): New function.
30317         (find_predicates): New function.
30318         (find_control_equiv_block): New function.
30319         (collect_phi_def_edges): New function.
30320         (find_def_preds): New function.
30321         (find_dom): New function.
30322         (dump_predicates): New function.
30323         (get_cmp_code): New function.
30324         (is_value_included_in): New function.
30325         (find_matching_predicate_in_rest_chains): New function.
30326         (use_pred_not_overlap_with_undef_path_pred): New function.
30327         (is_use_properly_guarded): New function.
30328         (normalize_cond_1): New function.
30329         (is_and_or_or): New function.
30330         (normalize_cond): New function.
30331         (is_gcond_subset_of): New function.
30332         (is_subset_of_any): New function.
30333         (is_or_set_subset_of): New function.
30334         (is_and_set_subset_of): New function.
30335         (is_norm_cond_subset_of): New function.
30336         (is_pred_expr_subset_of): New function.
30337         (is_pred_chain_subset_of): New function.
30338         (is_included_in): New function.
30339         (is_superset_of): New function.
30340         (find_uninit_use): New function.
30341         (warn_uninitialized_phi): New function.
30342         (compute_possibly_undefined_names): New function.
30343         (ssa_undefined_value_p): New function.
30344         (execute_late_warn_uninitialized): New function.
30345         * tree-ssa.c (ssa_undefined_value_p): Removed.
30346         (warn_uninit): Changed to extern.
30347         (warn_uninitialized_phi): Removed.
30348         (warn_uninitialized_vars): Changed to extern.
30349         (execute_late_warn_uninitialized): Removed
30350         * tree-flow.h: Add new prototypes.
30351         * timevar.def: Add new time variable.
30352         * Makefile.in: Add new build file.
30353
30354 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
30355
30356         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
30357         type if available.
30358
30359 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30360
30361         PR target/22224
30362         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
30363
30364 2010-04-28  Martin Jambor  <mjambor@suse.cz>
30365
30366         * cgraph.h (struct cgraph_node): New field indirect_calls.
30367         (struct cgraph_indirect_call_info): New type.
30368         (struct cgraph_edge): Removed field indirect_call. New fields
30369         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
30370         (cgraph_create_indirect_edge): Declare.
30371         (cgraph_make_edge_direct): Likewise.
30372         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
30373         * ipa-prop.h (struct ipa_param_call_note): Removed.
30374         (struct ipa_node_params): Removed field param_calls.
30375         (ipa_create_all_structures_for_iinln): Declare.
30376         * cgraph.c: Described indirect edges and uids in initial comment.
30377         (cgraph_add_edge_to_call_site_hash): New function.
30378         (cgraph_edge): Search also among the indirect edges, use
30379         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
30380         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
30381         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
30382         site hash.
30383         (initialize_inline_failed): Assign a reason to indirect edges.
30384         (cgraph_create_edge_1): New function.
30385         (cgraph_create_edge): Moved some functionality to
30386         cgraph_create_edge_1.
30387         (cgraph_create_indirect_edge): New function.
30388         (cgraph_edge_remove_callee): Add an assert checking for
30389         non-indirectness.
30390         (cgraph_edge_remove_caller): Special-case indirect edges.
30391         (cgraph_remove_edge): Likewise.
30392         (cgraph_set_edge_callee): New function.
30393         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
30394         (cgraph_make_edge_direct): New function.
30395         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
30396         the declaration of the call statement matches.
30397         (cgraph_node_remove_callees): Special-case indirect edges.
30398         (cgraph_clone_edge): Likewise.
30399         (cgraph_clone_node): Clone also the indirect edges.
30400         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
30401         indirect_call, dump count of indirect_calls edges.
30402         * ipa-prop.c (iinlining_processed_edges): New variable.
30403         (ipa_note_param_call): Create indirect edges instead of
30404         creating notes.  New parameter node.
30405         (ipa_analyze_call_uses): New parameter node, pass it on to
30406         ipa_note_param_call.
30407         (ipa_analyze_stmt_uses): Likewise.
30408         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
30409         (print_edge_addition_message): Work on edges rather than on notes.
30410         (update_call_notes_after_inlining): Likewise, renamed to
30411         update_indirect_edges_after_inlining.
30412         (ipa_create_all_structures_for_iinln): New function.
30413         (ipa_free_node_params_substructures): Do not free notes.
30414         (ipa_edge_duplication_hook): Propagate bits within
30415         iinlining_processed_edges bitmap.
30416         (ipa_node_duplication_hook): Do not duplicate notes.
30417         (free_all_ipa_structures_after_ipa_cp): Renamed to
30418         ipa_free_all_structures_after_ipa_cp.
30419         (free_all_ipa_structures_after_iinln): Renamed to
30420         ipa_free_all_structures_after_iinln.
30421         (ipa_write_param_call_note): Removed.
30422         (ipa_read_param_call_note): Removed.
30423         (ipa_write_indirect_edge_info): New function.
30424         (ipa_read_indirect_edge_info): Likewise.
30425         (ipa_write_node_info): Do not stream notes, do stream information
30426         in indirect edges.
30427         (ipa_read_node_info): Likewise.
30428         (lto_ipa_fixup_call_notes): Removed.
30429         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
30430         * ipa-inline.c (pass_ipa_inline): Likewise.
30431         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
30432         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
30433         * tree-inline.c (copy_bb): Removed an unnecessary double check for
30434         is_gimple_call.
30435         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
30436         edges.
30437         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
30438         (output_cgraph): Stream also indirect edges.
30439         (lto_output_edge): Added capability to stream indirect edges.
30440         (input_edge): Likewise.
30441         (input_cgraph_1): Likewise.
30442         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
30443         of indirect edges.
30444
30445 2010-04-28  Richard Guenther  <rguenther@suse.de>
30446
30447         PR tree-optimization/43879
30448         PR tree-optimization/43909
30449         * tree-ssa-structalias.c (struct variable_info): Add
30450         only_restrict_pointers flag.
30451         (new_var_info): Initialize it.  Increment stats.total_vars here.
30452         (create_function_info_for): Do not increment stats.total_vars here.
30453         (get_function_part_constraint): Fix build with C++.
30454         (insert_into_field_list): Remove.
30455         (push_fields_onto_fieldstack): Properly merge fields.
30456         (create_variable_info_for): Split and simplify.
30457         (create_variable_info_for_1): New piece.
30458         (intra_create_variable_infos): Properly make restrict constraints
30459         from parameters.
30460
30461 2010-04-28  Richard Guenther  <rguenther@suse.de>
30462
30463         PR c++/43880
30464         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
30465
30466 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30467             Jan Hubicka  <hubicka@ucw.cz>
30468
30469         * doc/invoke.texi (-Wsuggest-attribute=const,
30470         -Wsuggest-attribute=pure): Document.
30471         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
30472         (function_always_visible_to_compiler_p,
30473         suggest_attribute, warn_function_pure, warn_function_const):
30474         New functions.
30475         (check_call): Improve debug info.
30476         (analyze_function): Do not check availability.
30477         (add_new_function): Check availability.
30478         (propagate): Output warnings.
30479         (skip_function_for_local_pure_const): New function.
30480         (local_pure_const): Use it; output warnings.
30481         * common.opt (Wsuggest-attribute=const,
30482         Wsuggest-attribute=pure): New.
30483
30484 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
30485
30486         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
30487         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
30488         or DW_CFA_def_cfa_offset{,_sf}.
30489
30490 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30491
30492         * tree.h: Fix truncated long macros.
30493
30494 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
30495
30496         * collect2.c (TARGET_64BIT): Redefine to target's default.
30497         * tlink.c: Likewise.
30498         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
30499         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
30500         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
30501         for underscoring __USER_LABEL_PREFIX__.
30502         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
30503         (SUB_LINK_ENTRY32): New.
30504         (SUB_LINK_ENTRY64): New.
30505         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
30506         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
30507         (SUB_LINK_ENTRY64): New.
30508         (SUB_LINK_ENTRY): New.
30509         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
30510         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
30511         x64 target is choosen.
30512         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
30513         * configure: Regenerated.
30514         * configure.ac (leading-mingw64-underscores): Option added.
30515
30516 2010-04-27  Jan Hubicka  <jh@suse.cz>
30517
30518         * doc/invoke.texi (-fipa-profile): Document.
30519         * opts.c (decode_options): Enable ipa-profile at -O1.
30520         * timevar.def (TV_IPA_PROFILE): Define.
30521         * common.opt (fipa-profile): Add.
30522         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
30523         flag for clones.
30524         (cgraph_propagate_frequency): Handle only local ones.
30525         * tree-pass.h (pass_ipa_profile): Declare.
30526         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
30527         (pass_ipa_profile): Use TV_IPA_PROFILE.
30528         * ipa.c (ipa_profile): New function.
30529         (gate_ipa_profile): Likewise.
30530         (pass_ipa_profile): New global variable.
30531         * passes.c (pass_ipa_profile): New.
30532
30533 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
30534
30535         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
30536
30537 2010-04-27  Martin Jambor  <mjambor@suse.cz>
30538
30539         PR middle-end/43812
30540         * ipa.c (dissolve_same_comdat_group_list): New function.
30541         (function_and_variable_visibility): Call
30542         dissolve_same_comdat_group_list when comdat group contains external or
30543         newly local nodes.
30544         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
30545         lists are circular and that they contain only DECL_ONE_ONLY nodes.
30546
30547 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30548
30549         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
30550         (const_hash_1) <VECTOR_CST>: New case.
30551         (compare_constant) <VECTOR_CST>: Likewise.
30552         <ADDR_EXPR>: Deal with LABEL_REFs.
30553         (copy_constant) <VECTOR_CST>: New case.
30554
30555 2010-04-27  Jan Hubicka  <jh@suse.cz>
30556
30557         * cgraph.c (cgraph_propagate_frequency): New function.
30558         * cgraph.h (cgraph_propagate_frequency): Declare.
30559         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
30560         cgraph_propagate_frequency.
30561
30562 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
30563
30564         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
30565
30566 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
30567
30568         PR target/40657
30569         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
30570         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
30571         here to determine which regs to push and how much stack to reserve.
30572
30573 2010-04-27  Jie Zhang  <jie@codesourcery.com>
30574
30575         * doc/gimple.texi (gimple_statement_with_ops): Remove
30576         addresses_taken field.
30577         (gimple_statement_with_memory_ops): Likewise.
30578
30579 2010-04-27  Jan Hubicka  <jh@suse.cz>
30580
30581         * tree-inline.c (eni_inlining_weights): Remove.
30582         (estimate_num_insns): Special case more builtins.
30583
30584 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
30585
30586         PR c/32207
30587         * c-typeck.c (build_binary_op): Move forward check for comparison
30588         pointer with null pointer constant and adjust the diagnostic message.
30589
30590 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
30591
30592         PR lto/42776
30593         * configure.ac (gcc_cv_as_section_has_align): Set if installed
30594         binutils supports extended .section directive needed by LTO, or
30595         warn if older binutils found.
30596         (LTO_BINARY_READER): New AC_SUBST'd variable.
30597         (LTO_USE_LIBELF): Likewise.
30598         * config.gcc (lto_binary_reader): New target-specific configure
30599         variable.
30600         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
30601         (LTO_USE_LIBELF): Likewise.
30602         * configure: Regenerate.
30603
30604         * collect2.c (is_elf): Rename from this ...
30605         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
30606          object files in addition to ELF-formatted ones.
30607         (scan_prog_file): Caller updated.  Also allow for LTO info marker
30608         symbol to be prefixed or not by an extra underscore.
30609
30610         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
30611         * config/i386/winnt.c: Also #include lto-streamer.h
30612         (i386_pe_asm_named_section): Specify 1-byte section alignment for
30613         LTO named sections.
30614         (i386_pe_asm_output_aligned_decl_common): Add comment.
30615         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
30616
30617 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
30618
30619         PR target/43889
30620         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
30621         Add missing earlyclobber for second alternative.
30622
30623 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
30624
30625         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
30626         bits for artificial defs at the top of the block.
30627         * fwprop.c (single_def_use_enter_block): Don't call it.
30628
30629 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
30630
30631         PR 43715
30632         * configure.ac: Use "$gcc_cv_nm -g" on darwin
30633         instead of "$gcc_cv_objdump -T".
30634         Use "-undefined dynamic_lookup" on darwin.
30635         * configure: Regenerate.
30636
30637 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
30638
30639         PR c/43893
30640         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
30641
30642 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
30643
30644         * c-parser.c (struct c_token): Move location field up.
30645         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
30646         (struct c_declspecs): Convert typespec_word, storage_class, and
30647         default_int_p into bitfields.
30648         (struct c_declarator): Move loc field up.
30649
30650 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
30651
30652         * cfgloop.h (struct loop): Move can_be_parallel field up.
30653         * ipa-prop.h (struct ip_node_params): Move bitfields up.
30654         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
30655         down.
30656         (struct iv_cand): Convert pos field into a bitfield.
30657         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
30658         field up.
30659         (struct _stmt_vec_info): Shuffle fields for better packing.
30660
30661 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
30662
30663         * varasm.c (IN_NAMED_SECTION): Remove guard.
30664         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
30665         (IN_NAMED_SECTION_P): ...this.
30666         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
30667         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
30668
30669 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
30670
30671         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
30672         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
30673         of shadowing it.  Fix comments.
30674
30675 2010-04-26  Jan Hubicka  <jh@suse.cz>
30676
30677         * cgraph.c (cgraph_create_node): Set node frequency to normal.
30678         (cgraph_clone_node): Copy function frequency.
30679         * cgraph.h (node_frequency): New enum
30680         (struct cgraph_node): Add.
30681         * final.c (rest_of_clean_state): Update.
30682         * lto-cgraph.c (lto_output_node): Output node frequency.
30683         (input_overwrite_node): Input node frequency.
30684         * tre-ssa-loop-ivopts (computation_cost): Update.
30685         * lto-streamer-out.c (output_function): Do not output function
30686         frequency.
30687         * predict.c (maybe_hot_frequency_p): Update and handle functions
30688         executed once.
30689         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
30690         attribute lookup.
30691         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
30692         (compute_function_frequency): Set noreturn functions to be executed
30693         once.
30694         (choose_function_section): Update.
30695         * lto-streamer-in.c (input_function): Do not input function frequency.
30696         * function.c (allocate_struct_function): Do not initialize function
30697         frequency.
30698         * function.h (function_frequency): Remove.
30699         (struct function): Remove function frequency.
30700         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
30701         (try_update): Update.
30702         * tree-inline.c (initialize_cfun): Do not update function frequency.
30703         * passes.c (pass_init_dump_file): Update.
30704         * i386.c (ix86_compute_frame_layout): Update.
30705         (ix86_pad_returns): Update.
30706
30707 2010-04-26  Jie Zhang  <jie@codesourcery.com>
30708
30709         PR tree-optimization/43833
30710         * tree-vrp.c (range_int_cst_p): New.
30711         (range_int_cst_singleton_p): New.
30712         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
30713         when both operands are constants.  Use range_int_cst_p in
30714         BIT_IOR_EXPR case.
30715
30716 2010-04-26  Jan Hubicka  <jh@suse.cz>
30717
30718         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
30719
30720 2010-04-26  Richard Guenther  <rguenther@suse.de>
30721
30722         PR lto/43080
30723         * gimple.c (gimple_decl_printable_name): Deal gracefully
30724         with a NULL DECL_NAME.
30725
30726 2010-04-26  Richard Guenther  <rguenther@suse.de>
30727
30728         PR lto/42425
30729         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
30730         if emitting debug information and it is either a function
30731         or a namespace decl.
30732
30733 2010-04-26  Ira Rosen  <irar@il.ibm.com>
30734
30735         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
30736         determine if the statement is vectorizable, and a macro to access it.
30737         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30738         Skip statements that can't be vectorized. If the analysis fails,
30739         mark the statement as unvectorizable if vectorizing basic block.
30740         (vect_compute_data_refs_alignment): Likewise.
30741         (vect_verify_datarefs_alignment): Skip statements marked as
30742         unvectorizable. Add print.
30743         (vect_analyze_group_access): Skip statements that can't be
30744         vectorized. If the analysis fails, mark the statement as
30745         unvectorizable if vectorizing basic block.
30746         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
30747         * tree-vect-stmts.c (vectorizable_store): Fix the number of
30748         generated stmts for SLP.
30749         (new_stmt_vec_info): Initialize the new field.
30750         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
30751         statements marked as unvectorizable.
30752
30753 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
30754
30755         * c-common.c (flag_isoc1x): New.
30756         (flag_isoc99): Update comment.
30757         * c-common.h (flag_isoc1x): New.
30758         (flag_isoc99): Update comment.
30759         * c-cppbuiltin.c (builtin_define_float_constants): Also define
30760         __<type>_DECIMAL_DIG__.
30761         * c-opts.c (set_std_c1x): New.
30762         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
30763         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
30764         * c.opt (-std=c1x, -std=gnu1x): New options.
30765         * doc/cpp.texi: Mention -std=c1x.
30766         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
30767         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
30768         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
30769         * doc/standards.texi: Mention C1X.
30770         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
30771         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
30772         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
30773         Define for C1X.
30774
30775 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
30776
30777         * config/i386/gmon-sol2.c (_mcleanup): Change format string
30778         placeholder from 0x%x to %#x.
30779         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30780         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30781         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30782         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30783         * config/i386/i386.c (ix86_target_string): Ditto.
30784         (output_pic_addr_const): Ditto.
30785         (print_operand): Ditto.
30786
30787 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
30788
30789         * combine.c (find_split_point): Add third argument.  Use it
30790         to find nested multiply-accumulate instructions.  Adjust calls.
30791         (try_combine): Adjust call to find_split_point.
30792
30793 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
30794
30795         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
30796
30797 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
30798
30799         PR tree-optimization/41442
30800         * fold-const.c (merge_truthop_with_opposite_arm): New function.
30801         (fold_binary_loc): Call it.
30802
30803 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30804
30805         * toplev.c (general_init): Set default for fdiagnostics-show-option.
30806         * opts.c (common_handle_option): Allow disabling it.
30807         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
30808
30809 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
30810
30811         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
30812         between modes if both types are integral.
30813
30814 2010-04-23  Richard Guenther  <rguenther@suse.de>
30815
30816         PR tree-optimization/43572
30817         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
30818
30819 2010-04-23  Richard Guenther  <rguenther@suse.de>
30820
30821         PR lto/43455
30822         * tree-inline.c (tree_can_inline_p): Also check compatibility
30823         of return types.
30824
30825 2010-04-23  Martin Jambor  <mjambor@suse.cz>
30826
30827         PR tree-optimization/43846
30828         * tree-sra.c (struct access): New flag grp_assignment_read.
30829         (build_accesses_from_assign): Set grp_assignment_read.
30830         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
30831         (enum mark_read_status): New type.
30832         (analyze_access_subtree): Propagate grp_assignment_read, create
30833         accesses also if both direct_read and root->grp_assignment_read.
30834
30835 2010-04-23  Martin Jambor  <mjambor@suse.cz>
30836
30837         PR middle-end/43835
30838         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
30839         function does not have type attributes.
30840
30841 2010-04-23  Richard Guenther  <rguenther@suse.de>
30842
30843         PR lto/42653
30844         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
30845         of FUNCTION_DECLs.
30846
30847 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30848
30849         * sese.h (create_if_region_on_edge): Remove.
30850
30851         * sese.c (create_if_region_on_edge): Make static.
30852
30853         * tree-inline.c: Do not include ggc.h.
30854
30855         * expr.c: Do not include ggc.h.
30856
30857         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
30858         dependencies.
30859
30860 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
30861
30862         PR target/43744
30863         * config/sh/sh.c (find_barrier): Don't emit a constant pool
30864         in the middle of insns for casesi_worker_2.
30865
30866 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
30867
30868         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
30869
30870 2010-04-22  Ira Rosen  <irar@il.ibm.com>
30871
30872         PR tree-optimization/43842
30873         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
30874         loop unrolling in update of exit phis. Fix comment.
30875         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
30876         least two reduction statements in the loop before starting SLP
30877         analysis.
30878
30879 2010-04-22  Nick Clifton  <nickc@redhat.com>
30880
30881         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
30882
30883 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
30884
30885         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
30886         to simplify a + ~a.
30887
30888 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30889
30890         * tree-parloops.c (loop_parallel_p): New argument
30891         parloop_obstack.  Pass it down.
30892         (parallelize_loops): New variable parloop_obstack.  Initialize it,
30893         pass it down, free it.
30894
30895         * tree-loop-linear.c (linear_transform_loops): Pass down
30896         lambda_obstack.
30897
30898         * tree-data-ref.h (lambda_compute_access_matrices): New argument
30899         of type struct obstack *.
30900
30901         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
30902         scratch_obstack.  Initialize it, pass down, free it.
30903
30904         * lambda.h (lambda_loop_new): Remove.
30905         (lambda_matrix_new, lambda_matrix_inverse)
30906         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
30907         argument of type struct obstack *.
30908
30909         * lambda-trans.c (lambda_trans_matrix_new): New argument
30910         lambda_obstack.  Pass it down, use obstack allocation for ret.
30911         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
30912         it down.
30913
30914         * lambda-mat.c (lambda_matrix_get_column)
30915         (lambda_matrix_project_to_null): Remove.
30916         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
30917         allocation for mat.
30918         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
30919         lambda_obstack.
30920
30921         * lambda-code.c (lambda_loop_new): New function.
30922         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
30923         (lambda_compute_auxillary_space, lambda_compute_target_space)
30924         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
30925         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
30926         (build_access_matrix): New argument lambda_obstack.  Use obstack
30927         allocation for am.
30928         (lambda_compute_step_signs, lambda_compute_access_matrices): New
30929         argument lambda_obstack.  Pass it down.
30930
30931 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30932
30933         * optabs.h (expand_widening_mult): Declare.
30934
30935 2010-04-22  Richard Guenther  <rguenther@suse.de>
30936
30937         PR tree-optimization/43845
30938         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
30939         lookup the CALL_EXPR function and arguments.
30940
30941 2010-04-22  Nick Clifton  <nickc@redhat.com>
30942
30943         * config/stormy16/stormy16.c
30944         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
30945         * config/stormy16/stormy16.h: Tidy up formatting.
30946         (DONT_USE_BUILTIN_SETJMP): Remove definition.
30947         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
30948         (ineqbranchsi): Delete pattern.
30949         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
30950         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
30951         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
30952         stormy16-lib2-ucmpsi2.c.
30953
30954 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30955
30956         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
30957         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
30958         extra set merge_set_noclobber, and use it to relax the final test
30959         slightly.
30960         * df.h (df_simulate_find_noclobber_defs): Declare.
30961         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
30962         conditional defs.
30963         (df_simulate_find_noclobber_defs): New function.
30964
30965 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
30966
30967         * config/i386/i386.md: Use {} around multi-line preparation statements.
30968
30969 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30970
30971         * c-tree.h (push_init_level, pop_init_level, set_init_index)
30972         (process_init_element): New argument of type struct obstack *.
30973
30974         * c-typeck.c (push_init_level, pop_init_level, set_designator)
30975         (set_init_index, set_init_label, set_nonincremental_init)
30976         (set_nonincremental_init_from_string, find_init_member)
30977         (output_init_element, output_pending_init_elements)
30978         (process_init_element): New argument braced_init_obstack.  Pass it
30979         down.
30980         (push_range_stack, add_pending_init): New argument
30981         braced_init_obstack.  Use obstack allocation.
30982
30983         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
30984         braced_init_obstack.  Pass it down.
30985         (c_parser_braced_init): New variables ret, braced_init_obstack.
30986         Initialize obstack, pass it down and finally free it.
30987
30988 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
30989
30990         PR middle-end/29274
30991         * tree-pass.h (pass_optimize_widening_mul): Declare.
30992         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
30993         gate_optimize_widening_mul): New static functions.
30994         (pass_optimize_widening_mul): New.
30995         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
30996         <case MULT_EXPR>: Remove support for widening multiplies.
30997         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
30998         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
30999         simplify_gen_unary rather than directly building extensions.
31000         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
31001         WIDEN_MULT_EXPR.
31002         * expmed.c (expand_widening_mult): New function.
31003         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
31004
31005 2010-04-21  Jan Hubicka  <jh@suse.cz>
31006
31007         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
31008         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
31009         * lto-wpa-fixup.c: Remove.
31010         * Makefile.in (lto-wpa-fixup.o): Remove.
31011         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
31012         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
31013         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
31014
31015 2010-04-21  Jan Hubicka  <jh@suse.cz>
31016
31017         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
31018         add write_optimization_summary, read_optimization_summary.
31019         (ipa_write_summaries_of_cgraph_node_set): Remove.
31020         (ipa_write_optimization_summaries): Declare.
31021         (ipa_read_optimization_summaries): Declare.
31022         * ipa-cp.c (pass_ipa_cp): Update.
31023         * ipa-reference.c (pass_ipa_reference): Update.
31024         * ipa-pure-const.c (pass_ipa_pure_const): Update.
31025         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
31026         Update.
31027         * ipa-inline.c (pass_ipa_inline): Update.
31028         * ipa.c (pass_ipa_whole_program): Update.
31029         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
31030         * passes.c (ipa_write_summaries_1): Do not test wpa.
31031         (ipa_write_optimization_summaries_1): New.
31032         (ipa_write_optimization_summaries): New.
31033         (ipa_read_summaries): Do not test ltrans.
31034         (ipa_read_optimization_summaries_1): New.
31035         (ipa_read_optimization_summaries): New.
31036
31037 2010-04-21  Jan Hubicka  <jh@suse.cz>
31038
31039         * lto-cgraph.c (lto_output_node): Do not output comdat groups
31040         for boundary nodes.
31041         (output_cgraph): Do not arrange comdat groups for boundary nodes.
31042
31043 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31044
31045         PR debug/40040
31046         * dwarf2out.c (add_name_and_src_coords_attributes): Add
31047         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
31048
31049 2010-04-21  Jan Hubicka  <jh@suse.cz>
31050
31051         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
31052
31053 2010-04-21  Jan Hubicka  <jh@suse.cz>
31054
31055         * varpool.c (decide_is_variable_needed): Variable is always needed
31056         during ltrans.
31057
31058 2010-04-21  Jan Hubicka  <jh@suse.cz>
31059
31060         * opts.c (decode_options): Enable pure-const pass for whopr.
31061
31062 2010-04-21  Jan Hubicka  <jh@suse.cz>
31063
31064         * cgraph.c (dump_cgraph_node): Dump also assembler name.
31065         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
31066         at WPA dumping.
31067         (cgraph_decide_inlining): Do not expect callee to be removed in all
31068         cases.
31069
31070 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
31071
31072         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
31073
31074 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31075
31076         * config/i386/i386.md (x86_shrd): Add athlon_decode and
31077         amdfam10_decode attributes.
31078
31079 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31080
31081         PR middle-end/43570
31082         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
31083         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
31084         (lower_copyprivate_clauses): Use private var in outer
31085         context instead of original var.  Make sure the types
31086         are correct for VLAs.
31087
31088 2010-04-21  Richard Guenther  <rguenther@suse.de>
31089
31090         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
31091         to non-pointer objects.
31092
31093 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31094
31095         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
31096         last chain entry if it starts with the still current label.
31097         (add_location_or_const_value_attribute): Check that
31098         loc_list->first->next is NULL instead of comparing ->first with ->last.
31099         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
31100         to add_var_loc_to_decl.
31101
31102         * dwarf2out.c (output_call_frame_info): For dw_cie_version
31103         >= 4 add also address size and segment size fields into CIE header.
31104
31105         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
31106         long as address size is the same as sizeof (void *) and
31107         segment size is 0.
31108         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
31109         address size or segment size is unexpected, return DW_EH_PE_omit.
31110         (classify_object_over_fdes): If get_cie_encoding returned
31111         DW_EH_PE_omit, return -1.
31112         (init_object): If classify_object_over_fdes returned -1,
31113         pretend there were no FDEs at all.
31114
31115 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31116
31117         * config/i386/i386.md (bswap<mode>2): Macroize expander from
31118         bswap{si,di}2 using SWI48 mode iterator.
31119         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
31120         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
31121         set modrm attribute of bswap insn to 0 and remove length attribute.
31122         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
31123         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
31124         set mode attribute to <MODE> and remove length attribute.
31125
31126 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
31127
31128         PR rtl-optimization/43520
31129         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
31130         zero available registers.
31131
31132 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31133
31134         * builtins.c (fold_builtin_cproj): Fold more cases.
31135
31136 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31137
31138         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
31139         (fold_builtin_1): Fold builtin cproj.
31140         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
31141         Use ATTR_CONST_NOTHROW_LIST.
31142
31143 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
31144
31145         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
31146         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
31147         ffsi2_no_cmove for !TARGET_CMOVE.
31148         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
31149         (ffssi2): Remove expander.
31150         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
31151         mode iterator.
31152         (ctz<mode>2): Ditto from ctz{si,di}2.
31153         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
31154         mode iterator.
31155         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
31156         mode iterator.
31157
31158 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31159
31160         * dwarf2out.c (AT_linkage_name): Define.
31161         (clone_as_declaration): Handle DW_AT_linkage_name.
31162         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
31163         of DW_AT_MIPS_linkage_name.
31164         (move_linkage_attr): Likewise.
31165         (dwarf2out_finish): Likewise.
31166
31167 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
31168
31169         PR middle-end/41952
31170         * fold-const.c (fold_comparison): New folding rule.
31171
31172 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
31173
31174         * double-int.h (double_int_setbit): Declare.
31175         * double-int.c (double_int_setbit): New function.
31176         * rtl.h (immed_double_int_const): Declare.
31177         * emit-rtl.c (immed_double_int_const): New function.
31178         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
31179         and immed_double_int_const functions.
31180         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
31181         expand_copysign_bit): (Ditto.).
31182         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
31183         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
31184         * dojump.c (prefer_and_bit_test): (Ditto.).
31185         * expr.c (convert_modes, reduce_to_bit_field_precision,
31186         const_vector_from_tree): (Ditto.).
31187         * expmed.c (mask_rtx, lshift_value): (Ditto.).
31188
31189 2010-04-20  Jan Hubicka  <jh@suse.cz>
31190
31191         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
31192         (dump_cgraph_node): Dump new flags.
31193         * cgraph.h (struct cgraph_node): Add flags
31194         reachable_from_other_partition and in_other_partition.
31195         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
31196         other partition can not be removed.
31197         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
31198         the other partition must be output; silence sanity checking on
31199         leaking functions bodies from other paritition.
31200         * lto-cgraph.c (reachable_from_other_partition_p): New function.
31201         (lto_output_node): Output new flags; do not sanity check that inline
31202         clones are output; drop lto_forced_extern_inline_p code; do not mock
31203         visibility flags at partition boundaries.
31204         (add_node_to): New function.
31205         (output_cgraph): Use it to sort functions so masters appear before
31206         clones.
31207         (input_overwrite_node): Input new flags.
31208         * passes.c (ipa_write_summaries): Do not call
31209         lto_new_extern_inline_states.
31210         * lto-section-out.c (forced_extern_inline,
31211         lto_new_extern_inline_states lto_delete_extern_inline_states,
31212         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
31213         * lto-streamer.h (lto_new_extern_inline_states,
31214         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
31215         lto_forced_extern_inline_p): Kill.
31216
31217 2010-04-20  Richard Guenther  <rguenther@suse.de>
31218
31219         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
31220         from vars that can have pointers.
31221         (process_constraint): Dump useless constraints.
31222
31223 2010-04-20  Richard Guenther  <rguenther@suse.de>
31224
31225         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
31226         (dump_sa_points_to_info): Remove asserts.
31227         (init_base_vars): nothing_id isn't an escape point nor does it
31228         have pointers.
31229
31230 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31231
31232         * tree.h (TYPE_REF_IS_RVALUE): Define.
31233         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
31234         should_move_die_to_comdat, prune_unused_types_walk): Handle
31235         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
31236         (modified_type_die, gen_reference_type_die): Emit
31237         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
31238         if TYPE_REF_IS_RVALUE and -gdwarf-4.
31239
31240 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31241
31242         PR target/43635
31243         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
31244         calls for -fpic -m31 if they have been sibcall optimized.
31245
31246 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
31247
31248         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
31249         ar.lc fixed and call-used.
31250
31251         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
31252
31253 2010-04-19  Jan Hubicka  <jh@suse.cz>
31254
31255         * opts.c (decode_options): Disable whpr incompatible passes.
31256         * lto/lto.c (lto_1_to_1_map): Skip clones.
31257         (read_cgraph_and_symbols): Do not mark everything as needed.
31258         (do_whole_program_analysis): Do map only after optimizing;
31259         set proper cgraph_state; use passmanager.
31260
31261 2010-04-19  DJ Delorie  <dj@redhat.com>
31262
31263         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
31264         POINTER_PLUS_EXPR and fix them.
31265
31266 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
31267
31268         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
31269         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
31270         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
31271         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
31272         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
31273         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
31274         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
31275         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
31276         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
31277         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
31278         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
31279
31280 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
31281
31282         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
31283         (check_cond_move_block): Likewise.
31284         (cond_move_process_if_block): Likewise.
31285         (noce_find_if_block): Improve formatting.
31286         (find_if_header): Pass 0 to memset and tweak conditions.
31287         (cond_exec_find_if_block): Fix long lines and tweak conditions.
31288
31289 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
31290
31291         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
31292         for -gdwarf-4.
31293
31294         PR middle-end/43337
31295         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
31296         with non-local decl doesn't need chain.
31297
31298 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31299
31300         * ira-color.c (allocno_reload_assign): Avoid accumulating
31301         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
31302
31303 2010-04-19  Martin Jambor  <mjambor@suse.cz>
31304
31305         * gimple.h (create_tmp_reg): Declare.
31306         * gimplify.c (create_tmp_reg): New function.
31307         (gimplify_return_expr): Use create_tmp_reg.
31308         (gimplify_omp_atomic): Likewise.
31309         (gimple_regimplify_operands): Likewise.
31310         * tree-dfa.c (make_rename_temp): Likewise.
31311         * tree-predcom.c (predcom_tmp_var): Likewise.
31312         (reassociate_to_the_same_stmt): Likewise.
31313         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
31314         (get_replaced_param_substitute): Likewise.
31315         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
31316         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
31317         * tree-ssa-pre.c (get_representative_for): Likewise.
31318         (create_expression_by_pieces): Likewise.
31319         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
31320         (create_tailcall_accumulator): Likewise.
31321
31322 2010-04-19  Martin Jambor  <mjambor@suse.cz>
31323
31324         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
31325         new_stmt.
31326         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
31327
31328 2010-04-19  Richard Guenther  <rguenther@suse.de>
31329
31330         PR tree-optimization/43796
31331         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
31332         from SCEV in the lattice.
31333         (vrp_visit_phi_node): Dump change.
31334
31335 2010-04-19  Richard Guenther  <rguenther@suse.de>
31336
31337         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
31338         * configure: Re-generated.
31339
31340 2010-04-19  Richard Guenther  <rguenther@suse.de>
31341
31342         PR tree-optimization/43783
31343         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
31344         constant ARRAY_REF operands two and three if possible.
31345
31346 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
31347
31348         PR target/43766
31349         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
31350
31351 2010-04-19  Jie Zhang  <jie@codesourcery.com>
31352
31353         PR target/43662
31354         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
31355
31356 2010-04-19  Ira Rosen  <irar@il.ibm.com>
31357
31358         PR tree-optimization/37027
31359         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
31360         and macro to access it.
31361         (vectorizable_reduction): Add argument.
31362         (vect_get_slp_defs): Likewise.
31363         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
31364         statements for possible use in SLP.
31365         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
31366         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
31367         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
31368         add new argument.
31369         (vectorizable_reduction): Likewise.
31370         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
31371         vect_get_slp_defs.
31372         (vectorizable_type_demotion, vectorizable_type_promotion,
31373         vectorizable_store): Likewise.
31374         (vect_analyze_stmt): Update call to vectorizable_reduction.
31375         (vect_transform_stmt): Likewise.
31376         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
31377         (vect_build_slp_tree): Fix indentation. Check that there are no loads
31378         from different interleaving chains in same node.
31379         (vect_slp_rearrange_stmts): New function.
31380         (vect_supported_load_permutation_p): Allow load permutations for
31381         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
31382         inside SLP nodes if necessary.
31383         (vect_analyze_slp_instance): Handle reductions.
31384         (vect_analyze_slp): Try to build SLP instances originating from groups
31385         of reductions.
31386         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
31387         (vect_get_constant_vectors): Create initial vectors for reductions
31388         according to reduction code. Add new argument.
31389         (vect_get_slp_defs): Add new argument, pass it to
31390         vect_get_constant_vectors.
31391         (vect_schedule_slp_instance): Remove SLP tree root statements.
31392
31393 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
31394
31395         * tree.h (ENUM_IS_SCOPED): Define.
31396         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
31397         for ENUM_IS_SCOPED enums.
31398
31399 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
31400
31401         * fold-const.c (fold_comparison): Use ssizetype.
31402         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
31403         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
31404         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
31405         * tree-object-size.c (compute_object_sizes): Use size_type_node.
31406
31407         * tree.h (initialize_sizetypes): Remove parameter.
31408         (build_common_tree_nodes): Remove second parameter.
31409         * stor-layout.c (initialize_sizetypes): Remove parameter.
31410         Always create an unsigned type.
31411         (set_sizetype): Assert that the passed type is unsigned and simplify.
31412         * tree.c (build_common_tree_nodes): Remove second parameter.
31413         Adjust call to initialize_sizetypes.
31414         * c-decl.c (c_init_decl_processing): Remove second argument in call to
31415         build_common_tree_nodes.
31416
31417 2010-04-18  Matthias Klose  <doko@ubuntu.com>
31418
31419         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
31420
31421 2010-04-18  Ira Rosen  <irar@il.ibm.com>
31422
31423         PR tree-optimization/43771
31424         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
31425         load permutation doesn't have gaps.
31426
31427 2010-04-18  Jan Hubicka  <jh@suse.cz>
31428
31429         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
31430         (sse_prologue_save_insn expander): Use new pattern.
31431         (sse_prologue_save_insn1): New pattern and splitter.
31432         (sse_prologue_save_insn): Update to deal also with 64bit aligned
31433         blocks.
31434         * i386.c (setup_incoming_varargs_64): Do not compute jump
31435         destination here.
31436         (ix86_gimplify_va_arg): Update alignment needed.
31437         (ix86_local_alignment): Do not align all local arrays to 128bit.
31438
31439 2010-04-17  Jan Hubicka  <jh@suse.cz>
31440
31441         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
31442
31443 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31444
31445         * arm.md (negdi2): Remove redundant code to force values into a
31446         register.
31447
31448 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31449
31450         * arm/bpabi.S: Add EABI alignment attributes to objects.
31451         * arm/bpabi-v6m.S: Likewise.
31452         * arm/crti.asm: Likewise.
31453         * arm/crtn.asm: Likewise.
31454         * arm/lib1funcs.asm: Likewise.
31455         * arm/libunwind.S: Likewise.
31456
31457 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31458
31459         * arm-protos.h (tune_params): New structure.
31460         * arm.c (current_tune): New variable.
31461         (arm_constant_limit): Delete.
31462         (struct processors): Add pointer to the tune parameters.
31463         (arm_slowmul_tune): New tuning option.
31464         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
31465         (all_cores): Adjust to pick up the tuning model.
31466         (arm_constant_limit): New function.
31467         (arm_override_options): Select the appropriate tuning model.  Delete
31468         initialization of arm_const_limit.
31469         (arm_split_constant): Use the new constant-limit model.
31470         (arm_rtx_costs): Pick up the current tuning model.
31471         * arm.md (is_strongarm, is_xscale): Delete.
31472         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
31473         for Xscale variant architectures.
31474         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
31475
31476 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31477
31478         * config/arm/arm.c (arm_gen_constant): Remove unused variable
31479         can_shift.
31480         (arm_rtx_costs_1): Remove unused variable extra_cost.
31481         (arm_unwind_emit_set): Use variable offset.
31482         (thumb1_output_casesi): Remove unused variable flags.
31483
31484 2010-04-16  Jeff Law  <law@redhat.com>
31485
31486         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
31487         needing assignment rather than doing a two-phase assignment.  Remove
31488         unused variable 'm'.
31489
31490 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31491
31492         PR bootstrap/43767
31493         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
31494
31495 2010-04-16  Doug Kwan  <dougkwan@google.com>
31496
31497         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
31498         (next_operand_entry_id): New static variable.
31499         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
31500         (add_to_ops_vec): Assigned unique ID to operand entry.
31501         (struct oecount_s): New field ID.
31502         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
31503         (undistribute_ops_list): Assign unique IDs to oecounts.
31504         (init_reassoc): reset next_operand_entry_id.
31505
31506 2010-04-16  Doug Kwan  <dougkwan@google.com>
31507
31508         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
31509         missing left parenthesis.
31510
31511 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
31512
31513         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
31514         *btdi_rex64 using SWI48 mode iterator.
31515         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
31516         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
31517         *jcc_btdi_mask_rex64.
31518
31519 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
31520
31521         * double-int.h (tree_to_double_int): Convert to macro.
31522         * double-int.c (tree_to_double_int): Remove.
31523
31524 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31525
31526         PR debug/43762
31527         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
31528         with want_address 2 and in case a single element list might be
31529         possible, call it again with want_address 0.
31530
31531 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
31532
31533         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
31534         case 'W' print operands for HI mode.
31535         * config/h8300/h8300.h (Y0, Y2) : New constraints.
31536         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
31537         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
31538         * config/h8300/predicate.md (bit_register_indirect_operand): New.
31539
31540         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
31541
31542         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
31543         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
31544         #xx:3 and #xx:4 mode.
31545
31546         * config/h8300/h8300.md (inverted load with HImode dest): Add
31547         support for H8300SX.
31548
31549         * config/h8300/predicate.md (bit_operand): Allow immediate values that
31550         satisfy 'U' constraint.
31551
31552 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31553
31554         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
31555         * configure: Regenerate.
31556         * config.in: Regenerate.
31557         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
31558         works.
31559
31560 2010-04-16  Richard Guenther  <rguenther@suse.de>
31561
31562         * tree.h (struct tree_decl_minimal): Move pt_uid ...
31563         (struct tree_decl_common): ... here.
31564         (DECL_PT_UID): Adjust.
31565         (SET_DECL_PT_UID): Likewise.
31566         (DECL_PT_UID_SET_P): Likewise.
31567
31568 2010-04-16  Richard Guenther  <rguenther@suse.de>
31569
31570         PR tree-optimization/43572
31571         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
31572         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
31573         * tree-flow.h (is_call_clobbered): Remove.
31574         * tree-flow-inline.h (is_call_clobbered): Likewise.
31575         * tree-dfa.c (dump_variable): Do not dump call clobber state.
31576         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
31577         (execute_return_slot_opt): Adjust.
31578         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
31579         check for call clobbered vars here.
31580         (find_tail_calls): Move tailcall verification to the
31581         proper place.
31582
31583 2010-04-16  Diego Novillo  <dnovillo@google.com>
31584
31585         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
31586
31587 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
31588
31589         PR target/40603
31590         * config/arm/arm.md (cbranchqi4): New pattern.
31591         * config/arm/predicates.md (const0_operand,
31592         cbranchqi4_comparison_operator): New predicates.
31593
31594 2010-04-16  Richard Guenther  <rguenther@suse.de>
31595
31596         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
31597         (dump_gimple_stmt): Likewise.
31598
31599 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
31600
31601         * recog.h (struct recog_data): New field is_operator.
31602         (struct insn_operand_data): New field is_operator.
31603         * recog.c (extract_insn): Set recog_data.is_operator.
31604         * genoutput.c (output_operand_data): Emit code to set the
31605         is_operator field.
31606         * reload.c (find_reloads): Use it rather than testing for an
31607         empty constraint string.
31608
31609         PR target/41514
31610         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
31611         If the previous insn is a cbranchsi4_insn with the same arguments,
31612         omit the compare instruction.
31613
31614         * config/arm/arm.md (addsi3_cbranch): If destination is a high
31615         register, inputs must be low registers and we need a low register
31616         scratch.  Handle alternative 2 like alternative 3.
31617
31618 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31619
31620         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
31621         don't call get_addr on both.  If one expression is a VALUE and
31622         the other a REG, check VALUE's locs if the REG isn't among them.
31623
31624 2010-04-16  Christian Bruel  <christian.bruel@st.com>
31625
31626         * config/sh/sh.h (sh_frame_pointer_required): New function.
31627         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
31628         (flag_omit_frame_pointer) Set.
31629         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
31630         (rounded_frame_size): Adjust size with outgoing_args_size.
31631         (sh_set_return_address): Must return from stack pointer.
31632         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
31633         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
31634         (ACCUMULATE_OUTGOING_ARGS): Define.
31635         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
31636         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
31637
31638 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
31639
31640         PR target/43471
31641         * config/sh/sh.c (sh_legitimize_reload_address): Use
31642         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
31643         Remove a unneeded check for offset_base.
31644
31645 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
31646
31647         * configure: Regenerated.
31648
31649 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31650
31651         * config/s390/s390.c (s390_call_save_register_used): Switch back
31652         to HARD_REGNO_NREGS.
31653
31654 2010-04-15  Richard Guenther  <rguenther@suse.de>
31655
31656         * alias.c (alias_set_subset_of): Handle alias-set zero
31657         child properly.
31658
31659 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
31660             Julian Brown  <julian@codesourcery.com>
31661
31662         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
31663         alternatives according to use of high and low regs.
31664         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
31665         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
31666         optimizing for size on Thumb-2.
31667
31668 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
31669
31670         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
31671
31672 2010-04-15  Richard Guenther  <rguenther@suse.de>
31673
31674         * tree-ssa-structalias.c (struct variable_info): Add
31675         is_fn_info flag.
31676         (new_var_info): Initialize it.
31677         (dump_constraints): Support printing last added constraints.
31678         (debug_constraints): Adjust.
31679         (dump_constraint_graph): Likewise.
31680         (make_heapvar_for): Check for NULL cfun.
31681         (get_function_part_constraint): New function.
31682         (get_fi_for_callee): Likewise.
31683         (find_func_aliases): Properly implement IPA PTA constraints.
31684         (process_ipa_clobber): New function.
31685         (find_func_clobbers): Likewise.
31686         (insert_into_field_list_sorted): Remove.
31687         (create_function_info_for): Properly allocate vars for IPA mode.
31688         Do not use insert_into_field_list_sorted.
31689         (create_variable_info_for): Properly generate constraints for
31690         global vars in IPA mode.
31691         (dump_solution_for_var): Always dump the solution.
31692         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
31693         (find_what_var_points_to): Adjust.
31694         (pt_solution_set): Change.
31695         (pt_solution_ior_into): New function.
31696         (pt_solution_empty_p): Export.
31697         (pt_solution_includes_global): Adjust.
31698         (pt_solution_includes_1): Likewise.
31699         (pt_solutions_intersect_1): Likewise.
31700         (dump_sa_points_to_info): Check some invariants.
31701         (solve_constraints): Move constraint dumping ...
31702         (compute_points_to_sets): ... here.
31703         (ipa_pta_execute): ... and here.
31704         (compute_may_aliases): Do not re-compute points-to info
31705         locally if IPA info is available.
31706         (ipa_escaped_pt): New global var.
31707         (ipa_pta_execute): Properly implement IPA PTA.
31708         * tree-into-ssa.c (dump_decl_set): Support dumping
31709         decls not in referenced-vars.
31710         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
31711         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
31712         (dump_points_to_solution): Likewise.
31713         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
31714         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
31715         (remap_gimple_stmt): Reset call clobber/use information if necessary.
31716         (copy_decl_to_var): Copy DECL_PT_UID.
31717         (copy_result_decl_to_var): Likewise.
31718         * tree.c (make_node_stat): Initialize DECL_PT_UID.
31719         (copy_node_stat): Copy it.
31720         * tree.h (DECL_PT_UID): New macro.
31721         (SET_DECL_PT_UID): Likewise.
31722         (DECL_PT_UID_SET_P): Likewise.
31723         (struct tree_decl_minimal): Add pt_uid member.
31724         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
31725         (pt_solution_empty_p): Declare.
31726         (pt_solution_set): Adjust.
31727         (ipa_escaped_pt): Declare.
31728         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
31729         * gimple-pretty-print.c (pp_points_to_solution): New function.
31730         (dump_gimple_call): Dump call clobber/use information.
31731         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
31732         * tree-pass.h (TDF_ALIAS): New dump option.
31733         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
31734         * doc/invoke.texi (-fipa-pta): Update documentation.
31735
31736 2010-04-15  Richard Guenther  <rguenther@suse.de>
31737
31738         * Makefile.in (OBJS-common): Add gimple-fold.o.
31739         (gimple-fold.o): New rule.
31740         * tree.h (maybe_fold_offset_to_reference,
31741         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
31742         prototypes ...
31743         * gimple.h: ... here.
31744         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
31745         may_propagate_address_into_dereference): Move prototypes ...
31746         * gimple.h: ... here.
31747         * tree-ssa-ccp.c (get_symbol_constant_value,
31748         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
31749         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
31750         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
31751         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
31752         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
31753         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
31754         gimplify_and_update_call_from_tree): Move ...
31755         * gimple-fold.c: ... here.  New file.
31756         (ccp_fold_builtin): Rename to ...
31757         (gimple_fold_builtin): ... this.
31758         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
31759
31760 2010-04-15  Richard Guenther  <rguenther@suse.de>
31761
31762         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
31763         fit_double_type, force_fit_type_double, add_double_with_sign,
31764         neg_double, mul_double_with_sign, lshift_double, rshift_double,
31765         lrotate_double, rrotate_double, div_and_round_double): Move ...
31766         * double-int.c: ... here.
31767         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
31768         add_double, neg_double, mul_double_with_sign, mul_double,
31769         lshift_double, rshift_double, lrotate_double, rrotate_double,
31770         div_and_round_double): Move prototypes ...
31771         * double-int.h: ... here.
31772
31773 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
31774
31775         PR target/43742
31776         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
31777         matching constraints to ensure inputs match the output.
31778
31779 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
31780
31781         PR target/43742
31782         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
31783         in an input-only operand.
31784
31785 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
31786
31787         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
31788         (double_int_not, double_int_lshift, double_int_rshift): Declare.
31789         (double_int_negative_p): Convert to static inline function.
31790         * double-int.c (double_int_lshift, double_int_lshift): New functions.
31791         (double_int_negative_p): Remove.
31792         * tree.h (lshift_double, rshift_double):
31793         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
31794         * fold-const.c (fold_convert_const_int_from_real,
31795         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
31796         (lshift_double): Change type of arith argument to bool.
31797         (rshift_double): Change type of arith argument to bool. Correct
31798         comment.
31799         * expmed.c (mask_rtx, lshift_value): (Ditto.).
31800
31801 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
31802
31803         PR target/21803
31804         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
31805         at the start and end of the then/else blocks, and omit them from the
31806         conversion.
31807         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
31808         argument; all callers changed.  Pass zero to old_insns_match_p instead.
31809         (flow_find_head_matching_sequence): New function.
31810         (old_insns_match_p): Check REG_EH_REGION notes for calls.
31811         * basic-block.h (flow_find_cross_jump,
31812         flow_find_head_matching_sequence): Declare functions.
31813
31814 2010-04-14  Jason Merrill  <jason@redhat.com>
31815
31816         PR c++/36625
31817         * c-common.c (attribute_takes_identifier_p): New fn.
31818         * c-common.h: Declare it.
31819
31820 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31821
31822         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
31823         splitter condition.
31824         (*udivmod<mode>4): Ditto.
31825
31826 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31827
31828         * config/i386/i386.md (maxmin_int): Rename code attribute from
31829         maxminiprefix and update all users.
31830         (maxmin_float): Ditto from maxminfprefix.
31831         (logic): Ditto from logicprefix.
31832         (absneg_mnemonic): Ditto from absnegprefix.
31833         * config/i386/mmx.md: Update all users of maxminiprefix,
31834         maxminfprefix and logicprefix for rename.
31835         * config/i386/sse.md: Ditto.
31836         * config/i386/sync.md (sync_<code><mode>): Update for
31837         logicprefix rename.
31838
31839 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31840
31841         PR 42966
31842         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
31843         warnings converted to errors.
31844
31845 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31846
31847         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
31848         used insn_type variable.
31849         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
31850         to avoid set-but-not-used warning.
31851
31852 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31853
31854         * df-core.c (df_ref_debug): Change format string placeholder
31855         from 0x%x to %#x.
31856         * dwarf2asm.c (dw2_asm_output_data_raw,
31857         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
31858         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
31859         * dwarf2out.c (output_cfi, output_cfi_directive,
31860         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
31861         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
31862         Ditto.
31863         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
31864         * print-rtl.c (print_rtx): Ditto.
31865
31866 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
31867
31868         PR middle-end/42694
31869         * builtins.c (expand_builtin_pow_root): New function to expand pow
31870         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
31871         series of sqrt and cbrt calls under -ffast-math.
31872         (expand_builtin_pow): Call it.
31873
31874 2010-04-14  Michael Matz  <matz@suse.de>
31875
31876         PR tree-optimization/42963
31877         * tree-cfg.c (touched_switch_bbs): New static variable.
31878         (group_case_labels_stmt): New function broken out from ...
31879         (group_case_labels): ... here, use the above.
31880         (start_recording_case_labels): Allocate touched_switch_bbs.
31881         (end_recording_case_labels): Deallocate it, call
31882         group_case_labels_stmt.
31883         (gimple_redirect_edge_and_branch): Remember index of affected BB.
31884
31885 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31886
31887         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
31888         from insn template.
31889
31890 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
31891
31892         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
31893
31894 2010-04-13  Jan Hubicka  <jh@suse.cz>
31895
31896         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
31897         of optimized out static functions.
31898         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
31899         cost computation.  Also sanity check for overflows.
31900         (update_caller_keys): Update cgraph_edge_badness call; properly
31901         update fibheap and sanity check that it is up to date.
31902         (add_new_edges_to_heap): Update cgraph_edge_badness.
31903         (cgraph_decide_inlining_of_small_function): Likewise;
31904         add sanity checking that badness in heap is up to date;
31905         improve dumping of reason; Update badness of calls to the
31906         offline copy of function currently inlined; dump badness
31907         of functions not inlined because of unit growth limits.
31908
31909 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
31910
31911         PR middle-end/32628
31912         * c-common.c (pointer_int_sum): Disregard overflow that occured only
31913         because of sign-extension change when converting to sizetype here...
31914         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
31915
31916         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
31917         the folding to constants.  Remove redundant final conversion.
31918         (fold_binary) <associate>: Do not associate if the re-association of
31919         constants alone overflows.
31920         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
31921         to the end of the list.
31922         (multiple_of_p) <COND_EXPR>: New case.
31923
31924 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31925
31926         * opt-functions.awk (opt_sanitized_name): New.
31927         (opt_enum): New.
31928         * optc-gen.awk: Use it
31929         * opth-gen.awk: Use it.
31930
31931 2010-04-13  Martin Jambor  <mjambor@suse.cz>
31932
31933         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
31934         (sra_modify_assign): Delete stmts loading dead data even if racc has no
31935         children.  Call replace_uses_with_default_def_ssa_name to handle
31936         SSA_NAES on lhs.
31937
31938 2010-04-13  Michael Matz  <matz@suse.de>
31939
31940         PR middle-end/43730
31941         * builtins.c (expand_builtin_interclass_mathfn): Also create
31942         a register if the predicate doesn't match.
31943
31944 2010-04-13  Diego Novillo  <dnovillo@google.com>
31945
31946         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
31947         * c-pch.c: Include timevar.h.
31948         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
31949         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
31950         * ggc-common.c: Include timevar.h.
31951         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
31952         * timevar.def (TV_PCH_SAVE): Define.
31953         (TV_PCH_CPP_SAVE): Define.
31954         (TV_PCH_PTR_REALLOC): Define.
31955         (TV_PCH_PTR_SORT): Define.
31956         (TV_PCH_RESTORE): Define.
31957         (TV_PCH_CPP_RESTORE): Define.
31958
31959 2010-04-13  Michael Matz  <matz@suse.de>
31960
31961         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
31962         into MINUS_EXPRs.
31963         (can_reassociate_p): New function.
31964         (break_up_subtract_bb, reassociate_bb): Use it.
31965
31966 2010-04-13  Richard Guenther  <rguenther@suse.de>
31967
31968         PR bootstrap/43737
31969         * builtins.c (c_readstr): Fix assert.
31970
31971 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
31972
31973         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
31974         when generating cltd insn.
31975
31976         (*ashl<mode>3_1): Remove special handling for register operand 2.
31977         (*ashlsi3_1_zext): Ditto.
31978         (*ashlhi3_1): Ditto.
31979         (*ashlhi3_1_lea): Ditto.
31980         (*ashlqi3_1): Ditto.
31981         (*ashlqi3_1_lea): Ditto.
31982         (*<shiftrt_insn><mode>3_1): Ditto.
31983         (*<shiftrt_insn>si3_1_zext): Ditto.
31984         (*<shiftrt_insn>qi3_1_slp): Ditto.
31985         (*<rotate_insn><mode>3_1): Ditto.
31986         (*<rotate_insn>si3_1_zext): Ditto.
31987         (*<rotate_insn>qi3_1_slp): Ditto.
31988
31989 2010-04-13  Richard Guenther  <rguenther@suse.de>
31990
31991         * tree-ssa-structalias.c (callused_id): Remove.
31992         (call_stmt_vars): New.
31993         (get_call_vi): Likewise.
31994         (lookup_call_use_vi): Likewise.
31995         (lookup_call_clobber_vi): Likewise.
31996         (get_call_use_vi): Likewise.
31997         (get_call_clobber_vi): Likewise.
31998         (make_transitive_closure_constraints): Likewise.
31999         (handle_const_call): Adjust to do per-call call-used handling.
32000         (handle_pure_call): Likewise.
32001         (find_what_var_points_to): Remove general callused handling.
32002         (init_base_vars): Likewise.
32003         (init_alias_vars): Initialize call_stmt_vars.
32004         (compute_points_to_sets): Process call-used and call-clobbered
32005         vars for call statements.
32006         (delete_points_to_sets): Free call_stmt_vars.
32007
32008 2010-04-13  Richard Guenther  <rguenther@suse.de>
32009
32010         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32011         Only add RW dependence for dependence distance zero.
32012         Adjust maximal vectorization factor according to dependences.
32013         Move alignment handling ...
32014         (vect_find_same_alignment_drs): ... here.  New function.
32015         (vect_analyze_data_ref_dependences): Adjust.
32016         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
32017         (vect_analyze_data_refs): Adjust minimal vectorization factor
32018         according to data references.
32019         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
32020         dependences before determining the vectorization factor.
32021         Analyze alignment after determining the vectorization factor.
32022         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
32023         dependences before alignment.
32024         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
32025         Adjust prototype.
32026         (vect_analyze_data_refs): Likewise.
32027         (MAX_VECTORIZATION_FACTOR): New define.
32028
32029 2010-04-13  Duncan Sands  <baldrick@free.fr>
32030
32031         * except.h (lang_eh_type_covers): Remove.
32032         * except.c (lang_eh_type_covers): Likewise.
32033
32034 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32035             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32036
32037         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
32038         * config/s390/s390.c: Replace UNTIS_PER_WORD with
32039         UNITS_PER_LONG where it is ABI relevant.
32040         (s390_return_addr_rtx): Likewise.
32041         (s390_back_chain_rtx): Likewise.
32042         (s390_frame_area): Likewise.
32043         (s390_frame_info): Likewise.
32044         (s390_initial_elimination_offset): Likewise.
32045         (save_gprs): Likewise.
32046         (s390_emit_prologue): Likewise.
32047         (s390_emit_epilogue): Likewise.
32048         (s390_function_arg_advance): Likewise.
32049         (s390_function_arg): Likewise.
32050         (s390_va_start): Likewise.
32051         (s390_gimplify_va_arg): Likewise.
32052         (s390_function_profiler): Likewise.
32053         (s390_optimize_prologue): Likewise.
32054         (s390_rtx_costs): Likewise.
32055         (s390_secondary_reload): Likewise.
32056         (s390_promote_function_mode): Likewise.
32057         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
32058         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
32059         registers available.
32060         (s390_unwind_word_mode): New function.
32061         (s390_function_value): Split 64 bit values into register pair if
32062         used as return value.
32063         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
32064         function call parameters.  Handle parallels.
32065         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
32066         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
32067         (DWARF_CIE_DATA_ALIGNMENT): New macro.
32068         (s390_expand_setmem): Remove unused variable src_addr.
32069         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
32070         deal with 64 bit registers.
32071         * config/s390/s390.h: Define __zarch__ predefined macro.
32072         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
32073         (UNITS_PER_LONG): New macro.
32074         * libjava/include/s390-signal.h: Define extended ucontext
32075         structure containing the upper halfs of the 64 bit registers.
32076
32077 2010-04-13  Simon Baldwin  <simonb@google.com>
32078
32079         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
32080
32081 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32082
32083         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
32084         rvalue on the RHS if the LHS is of a non-renamable type.
32085         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
32086
32087 2010-04-13  Matthias Klose  <doko@ubuntu.com>
32088
32089         * gcc.c (cc1_options): Handle -iplugindir before processing
32090         the cc1 spec. Only add -iplugindir once.
32091         (cpp_unique_options): Add -iplugindir option if -fplugin* options
32092         found.
32093         * common.opt (iplugindir): Remove `Separate' property, initialize.
32094         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
32095         option.
32096         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
32097         (distclean): Remove plugin dir.
32098         * doc/invoke.texi: Document -iplugindir.
32099
32100 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
32101
32102         * doc/plugins.texi (Loading Plugins): Document short
32103         -fplugin=foo option.
32104         (Plugin API): Mention default_plugin_dir_name function.
32105
32106         * gcc.c (find_file_spec_function): Add new declaration.
32107         (static_spec_func): Use it for "find-file".
32108         (find_file_spec_function): Add new function.
32109         (cc1_options): Add -iplugindir option if -fplugin* options found.
32110
32111         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
32112
32113         * plugin.c (add_new_plugin): Updated comment, and handle short
32114         plugin name.
32115         (default_plugin_dir_name): Added new function.
32116
32117         * common.opt (iplugindir): New option to set the plugin directory.
32118
32119 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
32120
32121         * config/i386/i386.md (any_rotate): New code iterator.
32122         (rotate_insn): New code attribute.
32123         (rotate): Ditto.
32124         (SWIM124): New mode iterator.
32125         (<rotate_insn>ti3): New expander.
32126         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
32127         any_rotate code iterator.
32128         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
32129         using any_rotate code iterator and SWIM124 mode iterator.
32130         (ix86_rotlti3): New insn_and_split pattern.
32131         (ix86_rotrti3): Ditto.
32132         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
32133         ix86_rotl{di,ti}3 patterns.
32134         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
32135         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
32136         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
32137         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
32138         code iterator and SWI mode iterator.
32139         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
32140         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
32141         code iterator.
32142         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
32143         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
32144         (bswap rotatert splitter): Add splitter.
32145         (bswap splitter): Macroize splitter using any_rotate code iterator.
32146         Add insn predicate to split only for TARGET_USE_XCHGB or when
32147         optimizing function for size.
32148
32149 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32150
32151         * config/pa/pa.c (emit_move_sequence): Remove use of
32152         deleted variable flag_argument_noalias.
32153
32154 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32155
32156         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
32157         configurations.
32158         Add to unsupported targets list.
32159         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
32160         sparc*-sun-solaris2.[567]* from target lists.
32161         * configure: Regenerate.
32162         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
32163         removal.
32164         Remove Solaris 7 patch references.
32165         (Specific, sparc-sun-solaris2.7): Removed.
32166         (sparc-sun-solaris2*): Update Solaris 7 example.
32167         (sparc64-*-solaris2*): Likewise.
32168
32169 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32170
32171         * config.build (alpha*-dec-osf4*): Remove.
32172         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
32173         of obsolete configurations.
32174         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
32175         support.
32176         * config/alpha/t-osf4: Renamed to ...
32177         * config/alpha/t-osf5: ... this.
32178         * config/alpha/osf.h: Renamed to ...
32179         * config/alpha/osf5.h: ... this.
32180         Merged old osf5.h contents.
32181         Update comments.
32182         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
32183         (EXTRA_SPECS): Removed.
32184         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
32185         reflect removal of Tru64 UNIX V4.0/V5.0 support.
32186         Document that.
32187
32188 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32189
32190         * doc/contrib.texi (Contributors, Rainer Orth): Update.
32191
32192 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
32193
32194         PR/43702
32195         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
32196         __thiscall convention.
32197
32198 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32199
32200         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
32201         orig_base.
32202         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
32203
32204 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32205
32206         * function.c (assign_parms_initialize_all): Add unused attribute
32207         to fntype.
32208
32209 2010-04-12  Richard Guenther  <rguenther@suse.de>
32210
32211         * gsstruct.def (GSS_CALL): New.
32212         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
32213         * gimple.h: Include tree-ssa-alias.h.
32214         (struct gimple_statement_call): New.
32215         (union gimple_statement_struct_d): Add gimple_call member.
32216         (gimple_call_reset_alias_info): Declare.
32217         (gimple_call_use_set): New function.
32218         (gimple_call_clobber_set): Likewise.
32219         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
32220         * gimple.c (gimple_call_reset_alias_info): New function.
32221         (gimple_build_call_1): Call it.
32222         * lto-streamer-in.c (input_gimple_stmt): Likewise.
32223         * tree-inline.c (remap_gimple_stmt): Likewise.
32224         (expand_call_inline): Remove callused handling.
32225         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
32226         * tree-dfa.c (dump_variable): Likewise.
32227         * tree-parloops.c (parallelize_loops): Likewise.
32228         * tree-ssa.c (init_tree_ssa): Likewise.
32229         (delete_tree_ssa): Likewise.
32230         * tree-flow-inline.h (is_call_used): Remove.
32231         * tree-flow.h (struct gimple_df): Remove callused member.
32232         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
32233         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
32234         (ref_maybe_used_by_call_p_1): Simplify.
32235         (call_may_clobber_ref_p_1): Likewise.
32236         * tree-ssa-structalias.c (compute_points_to_sets): Set
32237         the call stmt used and clobbered sets.
32238         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
32239         (find_tail_calls): Verify the tail call.
32240
32241 2010-04-12  Richard Guenther  <rguenther@suse.de>
32242
32243         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
32244         single-iteration always-inline inlining.
32245         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
32246         (cgraph_decide_inlining): Do not handle always-inline specially.
32247         (try_inline): Remove always-inline cycle detection special case.
32248         Do not recurse on always-inlines.
32249         (cgraph_early_inlining): Do not iterate if not optimizing.
32250         (cgraph_gate_early_inlining): remove.
32251         (pass_early_inline): Run unconditionally.
32252         (gate_cgraph_decide_inlining): New function.
32253         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
32254         not inlining or optimizing.
32255         (cgraph_decide_inlining_of_small_functions): Also consider
32256         always-inline functions.
32257         (cgraph_default_inline_p): Return true for nodes which should
32258         disregard inline limits.
32259         (estimate_function_body_sizes): Assume zero size and time for
32260         nodes which are marked as disregarding inline limits.
32261         (cgraph_decide_recursive_inlining): Do not perform recursive
32262         inlining on always-inline nodes.
32263
32264 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
32265
32266         PR bootstrap/43699
32267         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
32268         for exprs satisfying handled_component_p.
32269
32270 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
32271
32272         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
32273         non-constant aggregate elements.
32274
32275         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
32276         is a real initialization.
32277
32278 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
32279
32280         PR c/36774
32281         * c-decl.c (start_function): Move forward check for nested function.
32282
32283 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
32284
32285         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
32286         * config/sh/sh.c: Include reload.h.
32287         (sh_legitimize_reload_address): New.
32288         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
32289         sh_legitimize_reload_address.
32290
32291 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32292
32293         * config/sh/sh.md (*movqi_pop): New insn pattern.
32294         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
32295
32296 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32297
32298         * config/i386/i386.md (any_shiftrt): New code iterator.
32299         (shiftrt_insn): New code attribute.
32300         (shiftrt): Ditto.
32301         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
32302         using any_shiftrt code iterator.
32303         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
32304         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
32305         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
32306         pattern from corresponding peephole2 patterns.
32307         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
32308         using any_shiftrt code iterator.
32309         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
32310         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
32311         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
32312         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
32313         *{ashr,lshr}<mode>3_cmp_zext.
32314         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
32315
32316 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32317
32318         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
32319         scratch register.
32320         (*lshr<mode>3_cconly): Ditto.
32321
32322 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32323
32324         * config/i386/i386.md (lshr<mode>3): Macroize expander from
32325         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32326         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32327         pattern from *lshr{di,ti}3_1 and corresponding splitters using
32328         DWI mode iterator.
32329         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32330         from corresponding peephole2 patterns.
32331         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
32332         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
32333         and *lshrdi3_1_rex64 using SWI mode iterator.
32334         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
32335         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
32336         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
32337         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
32338         and *lshrdi3_cmp_rex64 using SWI mode iterator.
32339         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
32340         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
32341         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
32342         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
32343         SWI mode iterator.
32344
32345 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
32346
32347         * config/i386/i386.md (ashr<mode>3): Macroize expander from
32348         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32349         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32350         pattern from *ashr{di,ti}3_1 and corresponding splitters using
32351         DWI mode iterator.
32352         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32353         from corresponding peephole2 patterns.
32354         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
32355         (ashrsi3_cvt): Rename from ashrsi3_31.
32356         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
32357         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
32358         and x86_64_shift_adj_3 using SWI48 mode iterator.
32359         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
32360         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
32361         and *ashrdi3_1_rex64 using SWI mode iterator.
32362         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
32363         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
32364         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
32365         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
32366         and *ashrdi3_cmp_rex64 using SWI mode iterator.
32367         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
32368         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
32369         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
32370         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
32371         SWI mode iterator.
32372         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
32373         * config/i386/i386.c (ix86_split_ashr): Update for renamed
32374         x86_shift<mode>_adj_3 expanders.
32375
32376 2010-04-10  Wei Guozhi  <carrot@google.com>
32377
32378         PR target/42601
32379         * config/arm/arm.c (arm_pic_static_addr): New function.
32380         (legitimize_pic_address): Call arm_pic_static_addr when it detects
32381         a static symbol.
32382         (arm_output_addr_const_extra): Output expression for new pattern.
32383         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
32384
32385 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
32386
32387         * ira-costs.c (record_reg_classes): Ignore alternatives that are
32388         not enabled.
32389
32390         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
32391         * web.c: Include "insn-config.h" and "recog.h".
32392         (union_match_dups): New function.
32393         (web_main): Call it.
32394         (union_defs): Don't try to recognize match_dups.
32395
32396         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
32397         if doing so would replace the entire pattern.
32398
32399 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
32400
32401         PR target/43707
32402         PR target/43709
32403         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
32404         and splitter pattern.  Change splitter operand 1 predicate to
32405         nonmemory_operand.
32406
32407 2010-04-09  Martin Jambor  <mjambor@suse.cz>
32408
32409         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
32410         lattices are addresses of CONST_DECLs with the same initial value.
32411         (ipcp_print_all_lattices): Print values of CONST_DECLs.
32412         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
32413
32414 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
32415             Bernd Schmidt  <bernds@codesourcery.com>
32416
32417         * loop-invariant.c (replace_uses): New static function.
32418         (move_invariant_reg): Use it to ensure we can replace the uses.
32419
32420 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
32421
32422         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
32423         function template.
32424         (picochip_override_options): Enable section anchors only above -O1.
32425         (picochip_reorg): Fixed a couple of build warnings.
32426
32427 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32428
32429         * configure.ac (plugin -rdynamic test): Log result.
32430         * configure: Regenerate.
32431         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
32432         (RDYNAMIC_SPEC): Define.
32433         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
32434
32435 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32436
32437         * configure.ac: Determine Sun ld version numbers.
32438         (comdat_group): Restrict GNU ld version checks to gld.
32439         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
32440         (enable_comdat): Support --enable-comdat.
32441         * configure: Regenerate.
32442         * doc/install.texi (Configuration): Document --enable-comdat.
32443
32444 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32445
32446         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
32447         * config/sol2-gld.h: ... here.
32448         * config.gcc (sparc*-*-solaris2*): Reflect this.
32449         (i[34567]86-*-solaris2*): Use it.
32450
32451 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
32452
32453         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
32454         setup_clocks_p.
32455         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
32456
32457 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32458
32459         PR 42965
32460         * diagnostic.c (diagnostic_initialize): Initialize
32461         some_warnings_are_errors.
32462         (diagnostic_finish): New.
32463         (diagnostic_action_after_output): Call it before exiting.
32464         (diagnostic_report_diagnostic): Do not print message here. Set
32465         some_warnings_are_errors.
32466         * diagnostic.h (diagnostic_context): Delete
32467         issue_warnings_are_errors_message. Add some_warnings_are_errors.
32468         (diagnostic_finish): Declare.
32469         * toplev.c (toplev_main): Call it before exit.
32470
32471 2010-04-09  Jason Merrill  <jason@redhat.com>
32472
32473         PR c++/42623
32474         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
32475         for incomplete type.
32476
32477         PR c++/41788
32478         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
32479         based on a warning flag.
32480
32481 2010-04-09  Richard Guenther  <rguenther@suse.de>
32482
32483         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
32484
32485 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
32486
32487         PR bootstrap/43684
32488         * varasm.c (default_assemble_visibility): Wrap vars that are
32489         set, but unused, by targets without GAS.
32490         * config/rs6000/rs6000.c (paired_emit_vector_compare):
32491         Remove set, but unused, vars.
32492         (rs6000_legitimize_tls_address): Likewise.
32493         (altivec_expand_dst_builtin): Likewise.
32494         * config/darwin.c (machopic_classify_symbol): Likewise.
32495         (machopic_indirection_name): Likewise.
32496
32497 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
32498
32499         * config/i386/i386.md (DWI): New mode iterator.
32500         (S): New mode attribute.
32501         (shift_operand): Ditto.
32502         (shift_immediate_operand): Ditto.
32503         (ashl_input_operand): Ditto.
32504         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
32505         using SDWIM mode iterator.
32506         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32507         pattern from *ashl{di,ti}3_1 and corresponding splitters using
32508         DWI mode iterator.
32509         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
32510         from corresponding peephole2 patterns.
32511         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
32512         and x86_64_shift_adj_1 using SWI48 mode iterator.
32513         (x86_shift<mode>_adj_2): Ditto.
32514         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
32515         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
32516         using SWI48 mode iterator.
32517         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
32518         *ashldi3_cmp_rex64 using SWI mode iterator.
32519         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
32520         *ashldi3_cconly_rex64 using SWI mode iterator.
32521         * config/i386/i386.c (ix86_split_ashl): Update for renamed
32522         x86_shift<mode>_adj_{1,2}.
32523         (ix86_split_ashr): Ditto.
32524         (ix86_split_lshr): Ditto.
32525
32526 2010-04-09  Richard Guenther  <rguenther@suse.de>
32527
32528         * target.h (builtin_conversion): Pass in input and output types.
32529         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
32530         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
32531         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
32532         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
32533
32534         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
32535         Handle AVX modes.
32536         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
32537
32538 2010-04-09  Richard Guenther  <rguenther@suse.de>
32539
32540         PR target/43152
32541         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
32542
32543 2010-04-09  Richard Guenther  <rguenther@suse.de>
32544
32545         * tree-vectorizer.h (struct _stmt_vec_info): Document
32546         that vectype is the type of the LHS.
32547         (supportable_widening_operation, supportable_narrowing_operation):
32548         Get both input and output vector types as arguments.
32549         (vect_is_simple_use_1): Declare.
32550         (get_same_sized_vectype): Likewise.
32551         * tree-vect-loop.c (vect_determine_vectorization_factor):
32552         Set STMT_VINFO_VECTYPE to the vector type of the def.
32553         (vectorizable_reduction): Adjust.
32554         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
32555         Adjust.  Specify the output vector type.
32556         (vect_pattern_recog_1): Adjust.
32557         * tree-vect-stmts.c (get_same_sized_vectype): New function.
32558         (vectorizable_call): Adjust.
32559         (vectorizable_conversion): Likewise.
32560         (vectorizable_operation): Likewise.
32561         (vectorizable_type_demotion): Likewise.
32562         (vectorizable_type_promotion): Likewise.
32563         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
32564         the def.
32565         (vect_is_simple_use_1): New function.
32566         (supportable_widening_operation): Get both input and output
32567         vector types.
32568         (supportable_narrowing_operation): Likewise.
32569         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
32570
32571 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
32572
32573         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
32574         __thiscall and _thiscall as predefined macros.
32575         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
32576         thiscall attribute handling.
32577         (ix86_comp_type_attributes): Likewise.
32578         (ix86_function_regparm): Likewise.
32579         (ix86_return_pops_args): Likewise.
32580         (init_cumulative_args): Likewise.
32581         (find_drap_reg): Likewise.
32582         (ix86_static_chain): Likewise.
32583         (x86_this_parameter): Likewise.
32584         (x86_output_mi_thunk): Likewise.
32585         (ix86_attribute_table): Add description for thiscall attribute.
32586         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
32587         * doc/extend.texi: Add documentation for thiscall.
32588
32589 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32590
32591         PR c++/28584
32592         * c.opt (Wint-to-pointer-cast): Available in C++.
32593         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
32594
32595 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
32596
32597         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
32598         * calls.c (expand_call): Pass the function type to aggregate_value_p.
32599         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
32600         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
32601         function type instead.  Reorder and simplify checks.
32602
32603         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
32604
32605 2010-04-08  Jing Yu  <jingyu@google.com>
32606             Zdenek Dvorak  <ook@ucw.cz>
32607
32608         PR tree-optimization/42720
32609         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
32610         loop unswitch conditions here from ...
32611         (tree_unswitch_single_loop): ... here.
32612
32613 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
32614
32615         * tree-if-conv.c: Fix comments and simplify logic.
32616
32617 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
32618
32619         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
32620         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
32621         (main_tree_if_conversion): Update call to tree_if_conversion.
32622
32623 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32624
32625         PR 42485
32626         * doc/invoke.texi (-b,-V): Delete.
32627         * doc/tm.texi: Do not mention -b.
32628         * gcc.c (display_help): Delete -b and -V.
32629         (process_command): Delete -b and -V.
32630         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
32631
32632 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
32633             Wolfgang Gellerich  <gellerich@de.ibm.com>
32634
32635         Implement target hook for loop unrolling
32636         * target.h (loop_unroll_adjust): Add a new target hook function.
32637         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
32638         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
32639         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
32640         (s390_loop_unroll_adjust): Implement the new target hook for s390.
32641         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
32642         target hook.
32643         (decide_unroll_stupid): Likewise.
32644
32645 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32646
32647         PR target/43643
32648         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
32649
32650 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32651
32652         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
32653         (Specific, *-*-solaris2*): Likewise.
32654         Don't prefer Sun as over GNU as.
32655
32656 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
32657
32658         * config/s390/s390.c (override_options): Adjust the z10 defaults
32659         for max-unroll-times, max-completely-peeled-insns
32660         and max-completely-peel-times.
32661
32662 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32663
32664         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
32665         instructions for z10.
32666         (s390_expand_setmem): Likewise.
32667         (s390_expand_cmpmem): Likewise.
32668
32669 2010-04-08  Richard Guenther  <rguenther@suse.de>
32670
32671         PR tree-optimization/43679
32672         * tree-ssa-pre.c (eliminate): Only propagate copies.
32673
32674 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
32675
32676         PR bootstrap/43681
32677         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
32678         set but not used variable warning.
32679
32680 2010-04-08  Wei Guozhi  <carrot@google.com>
32681
32682         PR target/41653
32683         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
32684         (arm_size_rtx_costs): Call the new function when optimized for size.
32685
32686 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
32687
32688         PR debug/43670
32689         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
32690         op0 is not a MEM, just return NULL instead of assertion
32691         failure.
32692         (discover_nonconstant_array_refs): Don't walk debug stmts.
32693
32694 2010-04-08  Doug Kwan  <dougkwan@google.com>
32695
32696         * configure.ac: Recognize gold and do not use its version number
32697         to test ld features.
32698         * configure: Regenerate.
32699
32700 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
32701
32702         PR middle-end/40815
32703         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
32704         (negate_value): Move code to push elements to broken_up_substracts ...
32705         (eliminate_plus_minus_pair): ... here.  Push operands that have no
32706         negative pair to plus_negates.
32707         (repropagate_negates, init_reassoc, fini_reassoc): Update.
32708
32709 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32710
32711         * doc/install.texi (Configuration): Move description of
32712         --enable-lto, --with-libelf*, --enable-gold from Java section to
32713         general section.
32714
32715         * doc/generic.texi (Working with declarations)
32716         (Function Properties, C and C++ Trees): Fix typos.
32717         * doc/sourcebuild.texi (Top Level): Likewise.
32718
32719 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
32720
32721         PR c/18624
32722         * tree.h (DECL_READ_P): Define.
32723         (struct tree_decl_common): Add decl_read_flag.
32724         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
32725         a set but not used warning.
32726         (merge_decls): Merge DECL_READ_P flag.
32727         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
32728         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
32729         * c-common.c (handle_used_attribute, handle_unused_attribute):
32730         Likewise.
32731         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
32732         New prototypes.
32733         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
32734         New functions.
32735         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
32736         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
32737         c_parser_binary_expression, c_parser_cast_expression,
32738         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
32739         Call default_function_array_read_conversion instead of
32740         default_function_array_conversion where needed.
32741         (c_parser_unary_expression, c_parser_conditional_expression,
32742         c_parser_postfix_expression_after_primary, c_parser_initelt):
32743         Likewise.  Call mark_exp_read where needed.
32744         (c_parser_statement_after_labels, c_parser_asm_operands,
32745         c_parser_typeof_specifier, c_parser_sizeof_expression,
32746         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
32747         where needed.
32748         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
32749         New.
32750         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
32751         (warn_unused_but_set_parameter): Default to warn_unused
32752         && extra_warnings.
32753         * doc/invoke.texi: Document -Wunused-but-set-variable and
32754         -Wunused-but-set-parameter.
32755
32756         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
32757         used count variable.
32758         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
32759         when operandN variables aren't used in the body of the expander
32760         or splitter.
32761         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
32762         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
32763         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
32764         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
32765         FOR_EACH_IMM_USE_ON_STMT): Likewise.
32766         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
32767         * tree.c (PROCESS_ARG): Likewise.
32768
32769 2010-04-07  Simon Baldwin  <simonb@google.com>
32770
32771         * diagnostic.h (diagnostic_override_option_index): New macro to
32772         set a diagnostic's option_index.
32773         * c-tree.h (c_cpp_error): Add warning reason argument.
32774         * opts.c (_warning_as_error_callback): New.
32775         (register_warning_as_error_callback): Store callback for
32776         warnings enabled via enable_warning_as_error.
32777         (enable_warning_as_error): Call callback, minor code tidy.
32778         * opts.h (register_warning_as_error_callback): Declare.
32779         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
32780         response to -Werror=.
32781         (c_common_init_options): Register warning_as_error_callback in opts.c.
32782         * common.opt: Add -Wno-cpp option.
32783         * c-common.c (struct reason_option_codes_t): Map cpp warning
32784         reason codes to gcc option indexes.
32785         * (c_option_controlling_cpp_error): New function, lookup the gcc
32786         option index for a cpp warning reason code.
32787         * (c_cpp_error): Add warning reason argument, call
32788         c_option_controlling_cpp_error for diagnostic_override_option_index.
32789         * doc/invoke.texi: Document -Wno-cpp.
32790
32791 2010-04-07  Richard Guenther  <rguenther@suse.de>
32792
32793         * ipa-reference.c (mark_load): Use get_base_address.
32794         (mark_store): Likewise.
32795
32796         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
32797         inserting GIMPLE_NOPs into the IL.
32798         * tree-ssa-structalias.c (get_constraint_for_component_ref):
32799         Explicitly strip handled components and indirect references.
32800
32801         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
32802         folding address expressions.
32803         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
32804         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
32805         operand_equal_p to compare decls.
32806         (ptr_deref_may_alias_decl_p): Likewise.
32807         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
32808         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
32809         Handle reversed comparison ops.
32810         * tree-sra.c (asm_visit_addr): Use get_base_address.
32811         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
32812         * ipa-reference.c (mark_address): Use get_base_address.
32813
32814 2010-04-07  Richard Guenther  <rguenther@suse.de>
32815
32816         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
32817         Propagate constants everywhere.
32818
32819 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
32820
32821         PR debug/43516
32822         * tree.c (MAX_INT_CACHED_PREC): Define.
32823         (nonstandard_integer_type_cache): New array.
32824         (build_nonstandard_integer_type): Cache results for precision
32825         <= MAX_INT_CACHED_PREC.
32826
32827 2010-04-07  Richard Guenther  <rguenther@suse.de>
32828
32829         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
32830         -fargument-noalias-global, -fargument-noalias-anything): Remove.
32831         * common.opt: Likewise.
32832         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
32833         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
32834         (nonoverlapping_memrefs_p): Likewise.
32835         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
32836         * opts.c (common_handle_option): Handle OPT_fargument_alias,
32837         OPT_fargument_noalias, OPT_fargument_noalias_anything and
32838         OPT_fargument_noalias_global for backward compatibility.
32839
32840 2010-04-07  Richard Guenther  <rguenther@suse.de>
32841
32842         PR tree-optimization/43270
32843         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
32844         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
32845         * tree-ssa-pre.c (phi_translate_1): Adjust.
32846         (fully_constant_expression): Split out vn_reference handling to ...
32847         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
32848         Fold reads from constant strings.
32849         (vn_reference_lookup): Handle fully constant references.
32850         (vn_reference_lookup_pieces): Likewise.
32851         * Makefile.in (expmed.o-warn): Add -Wno-error.
32852
32853 2010-04-07  Martin Jambor  <mjambor@suse.cz>
32854
32855         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
32856
32857 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
32858
32859         PR driver/41594
32860         * gcc.c: Add -static-libstdc++ to list of recognized options.
32861
32862 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32863
32864         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
32865
32866 2010-04-07  Richard Guenther  <rguenther@suse.de>
32867
32868         PR middle-end/42617
32869         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
32870         bases build simple mem attributes to retain points-to information.
32871
32872 2010-04-07  Richard Guenther  <rguenther@suse.de>
32873
32874         PR middle-end/42617
32875         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
32876         preserve points-to related information.
32877
32878 2010-04-07  Richard Guenther  <rguenther@suse.de>
32879
32880         PR middle-end/42617
32881         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
32882         discard plain indirect references.
32883         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
32884         * tree.c (tree_nop_conversion): Likewise.
32885
32886 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
32887
32888         PR debug/43628
32889         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
32890
32891 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
32892
32893         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
32894         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
32895
32896 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32897
32898         * tree-if-conv.c: Fix indentation and comments.
32899
32900 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32901
32902         * tree-if-conv.c: Sort static functions in topological order.
32903
32904 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
32905
32906         * tree-if-conv.c: Fix indentation and comments.
32907
32908 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32909
32910         PR middle-end/43519
32911         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
32912         lang_hooks.types.type_for_size instead of
32913         build_nonstandard_integer_type.
32914         When converting an unsigned type to signed, double its precision.
32915         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
32916         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
32917         (graphite_create_new_loop_guard): When ub + 1 wraps around,
32918         use lb <= ub.
32919
32920 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32921
32922         PR middle-end/43519
32923         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
32924         POINTER_PLUS_EXPR for pointer types.
32925
32926 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32927
32928         PR middle-end/43519
32929         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
32930         * graphite-clast-to-gimple.c: Include langhooks.h.
32931         (max_signed_precision_type): New.
32932         (max_precision_type): Takes two types as arguments.
32933         (precision_for_value): New.
32934         (precision_for_interval): New.
32935         (gcc_type_for_interval): New.
32936         (gcc_type_for_value): New.
32937         (gcc_type_for_clast_term): New.
32938         (gcc_type_for_clast_red): New.
32939         (gcc_type_for_clast_bin): New.
32940         (gcc_type_for_clast_expr): Split up into several functions.
32941         (gcc_type_for_clast_eq): Rewritten.
32942         (compute_bounds_for_level): New.
32943         (compute_type_for_level_1): New.
32944         (compute_type_for_level): New.
32945         (gcc_type_for_cloog_iv): Removed.
32946         (gcc_type_for_iv_of_clast_loop): Rewritten.
32947         (graphite_create_new_loop): Compute the lower and upper bound types
32948         with gcc_type_for_clast_expr.
32949         (graphite_create_new_loop_guard): Same.
32950         (find_cloog_iv_in_expr): Removed.
32951         (compute_cloog_iv_types_1): Removed.
32952         (compute_cloog_iv_types): Removed.
32953         (gloog): Do not call compute_cloog_iv_types.
32954         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
32955         GBB_CLOOG_IV_TYPES.
32956         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
32957         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
32958         (GBB_CLOOG_IV_TYPES): Removed.
32959
32960 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32961
32962         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
32963         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
32964         (detect_commutative_reduction): Same.
32965
32966 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32967
32968         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
32969         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
32970         argument.
32971         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
32972         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
32973         (rewrite_commutative_reductions_out_of_ssa): Same.
32974         * passes.c (execute_function_todo): Call verify_ssa for every pass
32975         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
32976         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
32977         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
32978         with an extra argument.
32979         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
32980         verify_ssa only when the extra argument is true.
32981         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
32982         with an extra argument.
32983         (tree_transform_and_unroll_loop): Same.
32984
32985 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
32986
32987         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
32988         for all the passes of the LNO having LOOP_CLOSED_SSA.
32989         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
32990         * tree-loop-distribution.c (pass_loop_distribution): Same.
32991         * tree-pass.h (TODO_verify_loops): Removed.
32992         * tree-ssa-loop.c (pass_tree_loop_init): Same.
32993         (pass_lim): Same.
32994         (pass_tree_unswitch): Same.
32995         (pass_predcom): Same.
32996         (pass_vectorize): Same.
32997         (pass_linear_transform): Same.
32998         (pass_graphite_transforms): Same.
32999         (pass_iv_canon): Same.
33000         (pass_complete_unroll): Same.
33001         (pass_complete_unrolli): Same.
33002         (pass_parallelize_loops): Same.
33003         (pass_loop_prefetch): Same.
33004         (pass_iv_optimize): Same.
33005
33006 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
33007
33008         PR middle-end/32824
33009         * passes.c (init_optimization_passes): Move pass_lim before
33010         pass_copy_prop and pass_dce_loop.
33011
33012 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33013
33014         PR target/43667
33015         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
33016         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
33017         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
33018         MULTI_* defines for 4 argument vpermil2p* builtins.
33019
33020 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33021
33022         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
33023         * config/i386/i386.c (x86_maybe_negate_const_int): New.
33024         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
33025         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
33026         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
33027         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
33028         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
33029         Use x86_maybe_negate_const_int to output insn mnemonic.
33030         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
33031         check from instruction predicate.  Update comments.
33032         * config/i386/sync.md (sync_add<mode>): Use
33033         x86_maybe_negate_const_int to output insn mnemonic.
33034
33035 2010-04-06  Jan Hubicka  <jh@suse.cz>
33036
33037         PR tree-optimization/42906
33038         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
33039         IGNORE_SELF argument.  Set visited_control_parents for fully
33040         processed BBs.
33041         (find_obviously_necessary_stmts): Update call of
33042         mark_control_dependent_edges_necessary.
33043         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
33044
33045 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33046
33047         * config/i386/i386.md: Remove comment about 'e' and 'E'
33048         operand modifier.
33049
33050 2010-04-06  Richard Guenther  <rguenther@suse.de>
33051
33052         PR tree-optimization/43627
33053         * tree-vrp.c (extract_range_from_unary_expr): Widenings
33054         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
33055         not varying.
33056
33057 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33058
33059         * BASE-VER: Change to 4.6.0.
33060
33061         PR target/43638
33062         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
33063         handling.
33064
33065 2010-04-06  Richard Guenther  <rguenther@suse.de>
33066
33067         PR middle-end/43661
33068         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
33069
33070 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33071
33072         * doc/invoke.texi (Optimize Options): Document that LTO
33073         won't remove object access purely due to incompatible
33074         declarations.
33075
33076 2010-04-04  Matthias Klose  <doko@ubuntu.com>
33077
33078         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
33079         Initialize variable.
33080
33081 2010-04-03  Richard Guenther  <rguenther@suse.de>
33082
33083         PR middle-end/42509
33084         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
33085         require a non-NULL MEM_OFFSET.
33086
33087 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
33088
33089         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
33090         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
33091         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
33092         config/alpha/predicates.md, config/arm/arm.md,
33093         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
33094         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
33095         config/darwin9.h, config/darwin.c, config/darwin.h,
33096         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
33097         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
33098         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
33099         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
33100         config/mips/mips.md, config/mn10300/mn10300.c,
33101         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
33102         config/rs6000/aix.h, config/rs6000/dfp.md,
33103         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
33104         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
33105         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
33106         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
33107         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
33108         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
33109         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
33110         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
33111         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
33112         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
33113         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
33114         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
33115         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
33116         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
33117         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
33118         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
33119         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
33120         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
33121         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
33122         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
33123         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
33124         opt-functions.awk, opth-gen.awk, params.def, passes.c,
33125         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
33126         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
33127         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
33128         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
33129         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
33130         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
33131         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
33132         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
33133         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
33134         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
33135         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
33136         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
33137         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
33138         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
33139
33140 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33141
33142         PR other/43620
33143         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
33144         * aclocal.m4: Regenerate.
33145
33146 2010-04-02  Richard Guenther  <rguenther@suse.de>
33147
33148         PR tree-optimization/43629
33149         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
33150         if we have seen a constant value.
33151
33152 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
33153
33154         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
33155
33156 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
33157
33158         PR target/43469
33159         * arm.c (legitimize_tls_address): Adjust call to
33160         gen_tls_load_dot_plus_four.
33161         (arm_note_pic_base): New function.
33162         (arm_cannot_copy_insn_p): Use it.
33163         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
33164         constraint.
33165
33166 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33167
33168         PR bootstrap/43531
33169
33170         Revert:
33171         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33172
33173         * Makefile.in ($(out_object_file)): Depend on
33174         gt-$(basename $(notdir $(out_file))).h.
33175
33176 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
33177
33178         * config.gcc (lm32-*-rtems*): Add t-lm32.
33179
33180 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
33181
33182         * config.gcc: Add lm32-*-rtems*.
33183         * config/lm32/rtems.h: New file.
33184
33185 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
33186
33187         PR target/42609
33188         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
33189
33190 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
33191
33192         * dwarf2out.c (output_compilation_unit_header): For
33193         -gdwarf-4 use version 4 instead of version 3.
33194         (output_line_info): For version 4 and above emit additional
33195         maximum ops per insn header field.
33196         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
33197
33198         * dwarf2out.c (is_c_family, is_java): Remove.
33199         (lower_bound_default): New function.
33200         (add_bound_info, gen_descr_array_type_die): Use it.
33201
33202 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
33203
33204         PR debug/43325
33205         * dwarf2out.c (gen_variable_die): Allow debug info for variable
33206         re-declaration when it happens in a function.
33207
33208 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
33209
33210         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
33211         (cgraph_remove_function_insertion_hook): Same.
33212         (cgraph_call_function_insertion_hooks): Same.
33213
33214 2010-04-01  Richard Guenther  <rguenther@suse.de>
33215
33216         PR middle-end/43614
33217         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
33218         and TREE_THIS_VOLATILE.
33219         (copy_ref_info): Likewise.
33220         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
33221         * tree.c (build6_stat): Ignore side-effects of all but arg5
33222         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
33223         TARGET_MEM_REF.
33224
33225 2010-04-01  Richard Guenther  <rguenther@suse.de>
33226
33227         PR tree-optimization/43607
33228         * ipa-type-escape.c (check_call): Do not access non-existing
33229         arguments.
33230
33231 2010-04-01  Richard Guenther  <rguenther@suse.de>
33232
33233         PR middle-end/43602
33234         Revert
33235         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
33236                     Jack Howarth  <howarth@bromo.med.uc.edu>
33237
33238         * tree-profile.c (tree_init_ic_make_global_vars): Make static
33239         variables TLS.
33240
33241 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33242
33243         * doc/install.texi (Prerequisites): Document libelf usability on
33244         IRIX 5/6 and Solaris 2.
33245         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
33246         Update GNU as, GNU ld requirements.
33247         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
33248         Document Sun Studio compiler download.
33249         Update and simplify as, ld recommendations.
33250         (Specific, *-*-solaris2.7): Note obsoletion, removal.
33251
33252 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33253
33254         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
33255         with_tune_32 to pentium4.
33256
33257 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
33258
33259         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
33260
33261 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33262
33263         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
33264         obsoletion, removal.
33265         Update IDO URL.
33266         Document GNU as requirement.
33267         Update configure requirements.
33268         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
33269         Recomment IRIX 6.5.18+.
33270         Document IDF/IDL requirement.
33271         Document GNU as requirement.
33272         Document GNU ld bootstrap failure.
33273         Remove freeware.sgi.com reference.
33274
33275 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33276
33277         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
33278         UNIX V4.0, V5.0 obsoletion, removal.
33279         Remove --with-gc=simple reference.
33280         Update VM requirements during bootstrap.
33281         Remove -oldas bootstrap description.
33282         Update binutils reference.
33283         Remove comparison failure note.
33284
33285 2010-03-31  Richard Guenther  <rguenther@suse.de>
33286             Zdenek Dvorak  <ook@ucw.cz>
33287             Sebastian Pop  <sebastian.pop@amd.com>
33288
33289         PR middle-end/43464
33290         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
33291         with multiple arguments.
33292         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
33293
33294 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33295
33296         * graphite-dependences.c (print_pddr): Call print_pdr with an
33297         extra argument.
33298         * graphite-poly.c (debug_pdr): Add an extra argument for the
33299         verbosity level.
33300         (print_pdr): Same.
33301         (print_pbb_domain): Same.
33302         (print_pbb): Same.
33303         (print_scop_context): Same.
33304         (print_scop): Same.
33305         (print_cloog): Same.
33306         (debug_pbb_domain): Same.
33307         (debug_pbb): Same.
33308         (print_pdrs): Same.
33309         (debug_pdrs): Same.
33310         (debug_scop_context): Same.
33311         (debug_scop): Same.
33312         (debug_cloog): Same.
33313         (print_scop_params): Same.
33314         (debug_scop_params): Same.
33315         (print_iteration_domain): Same.
33316         (print_iteration_domains): Same.
33317         (debug_iteration_domain): Same.
33318         (debug_iteration_domains): Same.
33319         (print_scattering_function): Same.
33320         (print_scattering_functions): Same.
33321         (debug_scattering_function): Same.
33322         (debug_scattering_functions): Same.
33323         * graphite-poly.h (debug_pdr): Update declaration.
33324         (print_pdr): Same.
33325         (print_pbb_domain): Same.
33326         (print_pbb): Same.
33327         (print_scop_context): Same.
33328         (print_scop): Same.
33329         (print_cloog): Same.
33330         (debug_pbb_domain): Same.
33331         (debug_pbb): Same.
33332         (print_pdrs): Same.
33333         (debug_pdrs): Same.
33334         (debug_scop_context): Same.
33335         (debug_scop): Same.
33336         (debug_cloog): Same.
33337         (print_scop_params): Same.
33338         (debug_scop_params): Same.
33339         (print_iteration_domain): Same.
33340         (print_iteration_domains): Same.
33341         (debug_iteration_domain): Same.
33342         (debug_iteration_domains): Same.
33343         (print_scattering_function): Same.
33344         (print_scattering_functions): Same.
33345         (debug_scattering_function): Same.
33346         (debug_scattering_functions): Same.
33347
33348 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33349
33350         * graphite-poly.c (print_scattering_function_1): New.
33351         (print_scattering_function): Call it.
33352         (print_scop_params): Remove spaces at the end of lines.
33353         (print_cloog): New.
33354         (debug_cloog): New.
33355         * graphite-poly.h (print_cloog): Declared.
33356         (debug_cloog): Declared.
33357
33358 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33359
33360         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
33361         in loop->header.
33362         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
33363         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
33364         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
33365         to switch between adding the IV bump in loop->latch or in loop->header.
33366
33367 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33368
33369         * graphite-poly.c (print_scattering_function): Pretty print following
33370         the scoplib format.
33371         (print_pdr): Same.
33372         (print_pbb_domain): Same.
33373         (dump_gbb_cases): Same.
33374         (dump_gbb_conditions): Same.
33375         (print_pdrs): Same.
33376         (print_pbb): Same.
33377         (print_scop_params): Same.
33378         (print_scop_context): Same.
33379         (print_scop): Same.
33380         (print_pbb_body): New.
33381         (lst_indent_to): New.
33382         (print_lst): Start new lines with a #.
33383         * graphite-poly.h (pbb_bb): New.
33384         (pbb_index): Use pbb_bb.
33385         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
33386         disjuncts.
33387         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
33388
33389 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
33390
33391         * dwarf2out.c (size_of_die): For -gdwarf-4 use
33392         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
33393         and 0 instead of 1 for dw_val_class_flag.
33394         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
33395         dw_val_class_range_list, dw_val_class_loc_list,
33396         dw_val_class_lineptr and dw_val_class_macptr, use
33397         DW_FORM_flag_present for dw_val_class_flag and
33398         DW_FORM_exprloc for dw_val_class_loc.
33399         (output_die): For -gdwarf-4 print dw_val_class_loc
33400         size as uleb128 instead of 1 or 2 bytes and don't print
33401         anything for dw_val_class_flag.
33402
33403         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
33404         instead of cselib_lookup following by tweaking locs->setting_insn.
33405
33406         PR bootstrap/43596
33407         * cselib.c (cselib_process_insn): Clear cselib_current_insn
33408         even before returning from label, setjmp call or volatile asm
33409         handling.
33410
33411 2010-03-31  Richard Guenther  <rguenther@suse.de>
33412
33413         PR middle-end/43600
33414         * cgraphunit.c (cgraph_output_in_order): Do not allocate
33415         temporary data on stack.
33416
33417 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33418
33419         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
33420         (PUSHSECTION_ASM_OP): Remove.
33421         (POPSECTION_ASM_OP): Remove.
33422         (PUSHSECTION_FORMAT): Remove.
33423         * config/sol2.h (PUSHSECTION_FORMAT): Define.
33424         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
33425         * config/sol2.c (solaris_output_init_fini): Use it.
33426
33427 2010-03-31  Jie Zhang  <jie@codesourcery.com>
33428
33429         PR 43574
33430         * opt-functions.awk (var_type_struct): Use signed char type
33431         for simple variables.
33432
33433 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33434
33435         * config/sol2.c: Include output.h.
33436         (solaris_assemble_visibility): New function.
33437         * config/t-sol2 (sol2.o): Add output.h dependency.
33438         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
33439         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
33440         Redefine.
33441
33442 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
33443
33444         PR target/43580
33445         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
33446         V2SImode or XFmode on PRE_DEC.
33447
33448         PR debug/43557
33449         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
33450         BLKmode.
33451
33452 2010-03-31  Jie Zhang  <jie@codesourcery.com>
33453
33454         PR 43562
33455         * reload.h (caller_save_initialized_p): Declare.
33456         * toplev.c (backend_init_target): Don't call
33457         init_caller_save but set caller_save_initialized_p to false.
33458         * caller-save.c (caller_save_initialized_p): Define.
33459         (init_caller_save): Check caller_save_initialized_p.
33460         * ira.c (ira): Call init_caller_save if flag_caller_saves.
33461
33462 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33463
33464         PR target/39048
33465         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
33466         and soft-fp/t-softfp to tmake_file.
33467         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
33468         (LIBGCC2_TF_CEXT): Define.
33469         (TF_SIZE): Define.
33470
33471 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
33472
33473         PR debug/42977
33474         * cselib.c (n_useless_values): Document handling of debug locs.
33475         (n_useless_debug_values, n_debug_values): New variables.
33476         (new_elt_loc_list): Don't add to debug values, keep count.
33477         (promote_debug_loc): New.
33478         (cselib_reset_table): Zero new variables.
33479         (entry_and_rtx_equal_p): Promote debug locs.
33480         (discard_useless_locs): Increment n_useless_debug_values for
33481         debug values.
33482         (remove_useless_values): Adjust n_useless_values and n_debug_values
33483         with n_useless_debug_values.
33484         (add_mem_for_addr): Promote debug locs.
33485         (cselib_lookup_mem): Likewise.
33486         (cselib_lookup_addr): Renamed to...
33487         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
33488         (cselib_log_lookup): ... this.  Turn into...
33489         (cselib_lookup_addr): ... new wrapper.
33490         (cselib_lookup_from_insn): New.
33491         (cselib_invalidate_regno): Increment n_useless_debug_values for
33492         debug values.
33493         (cselib_invalidate_mem): Likewise.
33494         (cselib_process_insn): Take n_deleted and n_debug_values into
33495         account to guard remove_useless_value call.
33496         (cselib_finish): Zero n_useless_debug_values.
33497         * cselib.h (cselib_lookup_from_insn): Declare.
33498         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
33499         (sched_analyze_2): Likewise.
33500
33501 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
33502
33503         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
33504         functions.
33505         (adjust_mems): Replace narrowing SUBREG of expression containing
33506         just PLUS, MINUS, MULT and ASHIFT of registers and constants
33507         with operations in the narrower mode.
33508
33509         PR debug/43593
33510         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
33511         regs_invalidated_by_call instead all call_used_reg_set registers.
33512
33513 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
33514
33515         PR middle-end/43430
33516         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
33517         pointer comparisons with types_compatible_p.
33518         * tree-vect-stmts.c (vectorizable_call): Same.
33519         (vectorizable_condition): Same.
33520
33521 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33522
33523         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
33524         stack check if the mask would be zero.
33525
33526 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
33527             Jack Howarth  <howarth@bromo.med.uc.edu>
33528
33529         * tree-profile.c (tree_init_ic_make_global_vars): Make static
33530         variables TLS.
33531
33532 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
33533
33534         PR other/25232
33535         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
33536         and __unordtf2.
33537         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
33538         Include ___unordxf2 and ___unordtf2.
33539         * config/i386/libgcc-glibc.ver: Do not define inheritance from
33540         GCC_4.4.0 here.
33541
33542 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
33543
33544         * config/lm32/t-lm32: New file.
33545         * config.gcc: Use the above file when targetting lm32.
33546
33547 2010-03-28  Duncan Sands  <baldrick@free.fr>
33548
33549         * Makefile.in (PLUGIN_HEADERS): Add except.h.
33550
33551 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
33552
33553         PR middle-end/43431
33554         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
33555         Improve vectorization cost model diagnostic.
33556
33557 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
33558
33559         PR middle-end/43436
33560         * tree-vect-data-refs.c (vect_analyze_data_refs): When
33561         compute_data_dependences_for_loop returns false, early exit
33562         and output an extra diagnostic for the failed data reference
33563         analysis.
33564
33565 2010-03-29  Richard Guenther  <rguenther@suse.de>
33566
33567         PR tree-optimization/43560
33568         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
33569         (can_sm_ref_p): Treat stores to readonly locations as trapping.
33570
33571 2010-03-29  Jie Zhang  <jie@codesourcery.com>
33572
33573         PR 43564
33574         * toplev.c (process_options): Set optimization_default_node
33575         and optimization_current_node.
33576         * opts.c (decode_options): Don't set optimization_default_node
33577         and optimization_current_node.
33578
33579 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
33580
33581         * config/rtems.h: Abandon -qrtems_debug.
33582
33583 2010-03-28  Jan Hubicka  <jh@suse.cz>
33584
33585         PR tree-optimization/43505
33586         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
33587         map should not be copied.
33588
33589 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33590
33591         PR middle-end/41674
33592         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
33593         cdtors, set DECL_PRESERVE_P.
33594         * ipa.c (cgraph_externally_visible_p): Return true if declaration
33595         should be preseved.
33596
33597 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
33598
33599         PR tree-optimization/43528
33600         * stor-layout.c (place_field): Check that constant fits into
33601         unsigned HWI when skipping calculation of MS bitfield layout.
33602
33603 2010-03-27  Jan Hubicka  <jh@suse.cz>
33604
33605         PR middle-end/43391
33606         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
33607         notice_global_symbol work.
33608
33609 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
33610
33611         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
33612         instead of dwarf2out_decl.
33613         (struct var_loc_node): Remove section_label field.
33614         (dwarf2out_function_decl): New function.
33615         (dwarf2out_var_location): Don't set section_label field.
33616         (dwarf2out_begin_function): Don't empty decl_loc_table here.
33617
33618 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
33619
33620         PR tree-optimization/43544
33621         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33622         First argument for builtin vectorized function hook is now a
33623         tree to be able to distinguish between machine specific and
33624         standard builtins.
33625         * targhooks.c (default_builtin_vectorized_function): Ditto.
33626         * targhooks.h (default_builtin_vectorized_function): Ditto.
33627         * target.h (struct gcc_target): Ditto.
33628         * tree-vect-stmts.c (vectorizable_function): Ditto.
33629         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
33630         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
33631         Ditto.
33632
33633 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
33634
33635         PR c/43381
33636         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
33637         nested binding iff it is a FUNCTION_DECL.
33638         (store_parm_decls_newstyle): Pass nested=true to bind for
33639         FUNCTION_DECLs amongst parameters.
33640
33641 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
33642
33643         * var-tracking.c (vt_expand_loc_callback): Don't run
33644         cselib_expand_value_rtx_cb in dummy mode if
33645         cselib_dummy_expand_value_rtx_cb returned false.
33646
33647         * var-tracking.c (emit_note_insn_var_location): For one part
33648         notes with offset 0, don't add EXPR_LIST around the location.
33649         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
33650         add_location_or_const_value_attribute): Adjust for that change.
33651
33652         PR debug/43540
33653         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
33654         into first operand and location into second.
33655         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
33656         dw_cfi_oprnd_loc for DW_CFA_expression.
33657         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
33658         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
33659         assume first argument is regnum and second argument is location.
33660
33661 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
33662
33663         PR target/42113
33664         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
33665         of scratch register to DImode.  Split to DImode comparison operator.
33666         Use SImode subreg of scratch register in the multiplication.
33667         (*cmp_sadd_sidi): Ditto.
33668         (*cmp_ssub_si): Ditto.
33669         (*cmp_ssub_sidi): Ditto.
33670
33671 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
33672
33673         PR target/43524
33674         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
33675         Remove invalid assert and wrong comment.
33676
33677 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
33678
33679         PR debug/43516
33680         * flags.h (final_insns_dump_p): New extern.
33681         * final.c (final_insns_dump_p): New variable.
33682         (rest_of_clean_state): Set it before -fdump-final-insns=
33683         dumping, clear afterwards.
33684         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
33685         MEM_ALIAS_SET on MEMs.
33686
33687 2010-03-26  David S. Miller  <davem@davemloft.net>
33688
33689         * configure.ac: Fix sparc GOTDATA_OP bug check.
33690         * configure: Rebuild.
33691
33692 2010-03-26  Alan Modra  <amodra@gmail.com>
33693
33694         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
33695
33696 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33697
33698         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
33699         TLS_SECTION_ASM_FLAG.
33700
33701 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
33702
33703         PR bootstrap/43511
33704         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
33705         Clear first_function_block_is_cold.
33706
33707         PR c/43385
33708         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
33709         argument if the argument is truth_value_p.
33710
33711 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33712
33713         * config/rs6000/constraints.md: Update copyright year for my changes.
33714
33715         PR target/43484
33716         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
33717         used in reg+reg addressing, swap registers.
33718
33719 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
33720
33721         PR debug/43293
33722         * target.h (struct gcc_target): Add code_end hook.
33723         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
33724         if not yet defined.
33725         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
33726         * toplev.c (compile_file): Call targetm.asm_out.code_end
33727         hook before unwind info/debug info output.
33728         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
33729         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
33730         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33731         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
33732         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33733         * config/i386/i386.c (ix86_file_end): Renamed to...
33734         (ix86_code_end): ... this.  Make static.  Don't call
33735         file_end_indicate_exec_stack.  Emit unwind info using
33736         final_start_function/final_end_function.
33737         (darwin_x86_file_end): Remove.
33738         (TARGET_ASM_CODE_END): Define.
33739         * config/i386/i386.h (TARGET_ASM_FILE_END,
33740         NEED_INDICATE_EXEC_STACK): Don't define.
33741         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
33742         (TARGET_ASM_FILE_END): Define to darwin_file_end.
33743         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
33744         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
33745
33746         PR target/43498
33747         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
33748         at the beginning and final_end_function at the end.
33749         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
33750
33751 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33752
33753         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
33754         and Sun as TLS syntax.
33755         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
33756         * configure: Regenerate.
33757         * config.in: Regenerate.
33758         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
33759         (default_elf_asm_named_section): Use it.
33760         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
33761         (i386_output_dwarf_dtprel): Likewise.
33762         (output_addr_const_extra): Likewise.
33763         (output_pic_addr_const): Lowercase @GOTTPOFF.
33764         (output_addr_const_extra): Likewise.
33765         (output_pic_addr_const): Lowercase @GOTNTPOFF.
33766         (output_addr_const_extra): Likewise.
33767         (output_pic_addr_const): Lowercase @INDNTPOFF.
33768         (output_addr_const_extra): Likewise.
33769         (output_pic_addr_const): Lowercase @NTPOFF.
33770         (output_addr_const_extra): Likewise.
33771         (output_pic_addr_const): Lowercase @TPOFF.
33772         (output_addr_const_extra): Likewise.
33773         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
33774         (*tls_global_dynamic_64): Likewise.
33775         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
33776         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
33777
33778         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
33779         (ASM_OUTPUT_TLS_COMMON): Use it.
33780         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
33781
33782         PR target/38118
33783         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
33784         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
33785         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
33786         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
33787         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
33788         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
33789
33790 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33791
33792         * config/i386/i386.c (override_options): Don't accept
33793         -mtls-dialect=sun any longer.
33794         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
33795         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
33796         (*tls_local_dynamic_base_32_sun): Likewise.
33797         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
33798
33799 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
33800
33801         PR debug/43508
33802         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33803         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
33804
33805         PR debug/43479
33806         * ira.c (adjust_cleared_regs): New function.
33807         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
33808
33809         PR debug/19192
33810         PR debug/43479
33811         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
33812         from gimple_block.
33813         * expr.c (expand_expr_real): Restore previous
33814         curr_insn_source_location and curr_insn_block after
33815         expand_expr_real_1 call.
33816         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
33817         instead of expand_expr_real_1.
33818
33819 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
33820
33821         PR rtl-optimization/43413
33822         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
33823         hard regs too.
33824
33825 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
33826
33827         PR target/43348
33828         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
33829         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
33830
33831 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
33832
33833         * config/i386/i386.c (ix86_target_string): Add -mfma.
33834         Fix a typo in comment.
33835
33836 2010-03-22  Mike Stump  <mikestump@comcast.net>
33837
33838         PR target/23071
33839         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
33840         Don't overly align based upon packed packed fields.
33841
33842 2010-03-22  Jason Merrill  <jason@redhat.com>
33843
33844         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
33845         Use () rather than [], and move before the element type.
33846
33847 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33848
33849         * doc/configfiles.texi (Configuration Files): Removed
33850         fixinc/Makefile*, intl/Makefile.*.
33851         * doc/makefile.texi: Fixed markup. Abstract from version
33852         control system used.
33853         (Makefile): Removed obsolete java/parse.y example.
33854         * doc/sourcebuild.texi: Likewise.
33855         (Top Level): Added config, gnattools, libdecnumber, libgcc,
33856         libgomp, libssp.  Removed fastjar.
33857         (Miscellaneous Docs): Clarify location.
33858         Added COPYING3, COPYING3.LIB.
33859         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
33860
33861 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33862
33863         PR target/38085
33864         * config/i386/i386.c (x86_function_profiler)
33865         [!NO_PROFILE_COUNTERS]: Fix typo.
33866         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
33867         instead of callq.
33868
33869 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
33870             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33871
33872         * doc/sourcebuild.texi (Test Directives): Split into six
33873         subsections, with most of the current text in new subsections
33874         Directives, Selectors, and Final Actions.
33875         (Directives): Split list of test directives into multiple
33876         subsubsections.
33877         (Selectors): Describe use and syntax of selectors.
33878         (Effective-Target Keywords): Describe all existing keywords.
33879         (Add Options): Describe features for dg-add-options.
33880         (Require Support): Describe variants of dg-require-support.
33881         (Final Actions): Describe commands to use in dg-final.
33882
33883 2010-03-22  Michael Matz  <matz@suse.de>
33884
33885         PR middle-end/43475
33886         * recog.c (validate_replace_rtx_group): Replace also in
33887         REG_EQUAL and REG_EQUIV notes.
33888
33889 2010-03-22  Richard Guenther  <rguenther@suse.de>
33890
33891         PR tree-optimization/43390
33892         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
33893         sure vector extracts are type correct.
33894
33895 2010-03-22  Richard Guenther  <rguenther@suse.de>
33896
33897         PR middle-end/40106
33898         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
33899         x * sqrt (x) even when optimizing for size if the target
33900         has native support for sqrt.
33901
33902 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
33903
33904         * varasm.c (make_decl_rtl_for_debug): Also clear
33905         flag_mudflap for the duration of make_decl_rtl call.
33906
33907         PR debug/43443
33908         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
33909         locs from preserved VALUEs.
33910
33911 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33912
33913         PR middle-end/42718
33914         * pa.md (movmemsi): Set align to one if zero.
33915         (movmemdi): Likewise.
33916
33917 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
33918
33919         PR target/42321
33920         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
33921         with their corresponding prologue pushes.
33922
33923 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
33924
33925         PR target/43156
33926         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
33927         at the begining or end.
33928         (spu_expand_epilogue): Likewise.
33929
33930 2010-03-20  Richard Guenther  <rguenther@suse.de>
33931
33932         PR rtl-optimization/43438
33933         * combine.c (make_extraction): Properly zero-/sign-extend an
33934         extraction of the low part of a CONST_INT.  Also handle
33935         CONST_DOUBLE.
33936
33937 2010-03-19  Mike Stump  <mikestump@comcast.net>
33938
33939         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
33940         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
33941         (override_options): Use SUBTARGET32_DEFAULT_CPU.
33942
33943 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
33944
33945         PR c/43211
33946         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
33947         an error.
33948
33949 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
33950
33951         PR rtl-optimization/42258
33952         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
33953         use that may match DEF.
33954
33955         PR target/40697
33956         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
33957         the cost of loading the constant rather than assuming
33958         COSTS_N_INSNS (1).
33959         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
33960         outer code is AND, do the same tests as the andsi3 expander and
33961         return COSTS_N_INSNS (1) if and is cheap.
33962
33963         * optabs.c (avoid_expensive_constant): Fix formatting.
33964
33965 2010-03-19  Michael Matz  <matz@suse.de>
33966
33967         PR c++/43116
33968         * attribs.c (decl_attributes): When rebuilding a function pointer
33969         type use the same qualifiers as the original pointer type.
33970
33971 2010-03-19  Martin Jambor  <mjambor@suse.cz>
33972
33973         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
33974         and is_gimple_ip_invariant_address.
33975
33976 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33977
33978         Revert
33979         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33980
33981         * config/arm/arm.c (arm_override_options): Turn off
33982         flag_dwarf2_cfi_asm for AAPCS variants.
33983
33984 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33985
33986         PR target/43399
33987         * config/arm/arm.c (emit_multi_reg_push): Update comments.
33988         Use PRE_MODIFY instead of PRE_DEC.
33989         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
33990         (vfp_emit_fstmd): Likewise.
33991
33992 2010-03-19  Michael Matz  <matz@suse.de>
33993
33994         PR target/43305
33995         * builtins.c (expand_builtin_interclass_mathfn,
33996         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
33997         if that fails.
33998
33999 2010-03-19  Richard Guenther  <rguenther@suse.de>
34000
34001         PR tree-optimization/43415
34002         * tree-ssa-pre.c (phi_translate): Split out worker to ...
34003         (phi_translate_1): ... this.
34004         (phi_translate): Move all caching here.  Cache all NARY
34005         and REFERENCE translations.
34006
34007 2010-03-19  David S. Miller  <davem@davemloft.net>
34008
34009         With help from Eric Botcazou.
34010         * config/sparc/sparc.c: Include dwarf2out.h.
34011         (emit_pic_helper): Delete.
34012         (pic_helper_symbol_name): Delete.
34013         (pic_helper_emitted_p): Delete.
34014         (pic_helper_needed): New.
34015         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
34016         (get_pc_thunk_name): New.
34017         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
34018         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
34019         Set pic_helper_needed to true.  Don't call emit_pic_helper.
34020         (sparc_expand_prologue): Update load_pic_register call.
34021         (sparc_output_mi_thunk): Likewise.
34022         (sparc_file_end): Emit a hidden comdat symbol for the PIC
34023         thunk if possible.  Output CFI information as needed.
34024
34025 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34026             Jack Howarth  <howarth@bromo.med.uc.edu>
34027
34028         PR target/36399
34029         * config/i386/i386.h: Fix ABI on darwin x86-32.
34030
34031 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
34032
34033         * tree.h: Declare make_decl_rtl_for_debug.
34034         * varasm.c (make_decl_rtl_for_debug): New.
34035         * dwarf2out.c (rtl_for_decl_location): Call it.
34036         * cfgexpand.c (expand_debug_expr): Call it.
34037
34038 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34039
34040         PR bootstrap/43399
34041         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
34042         mem_mode.
34043
34044         PR bootstrap/43403
34045         * var-tracking.c (vt_init_cfa_base): Do nothing if
34046         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
34047
34048 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
34049
34050         PR debug/42873
34051         * var-tracking.c (canonicalize_vars_star): New.
34052         (dataflow_post_merge_adjust): Use it.
34053
34054 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34055
34056         PR debug/43058
34057         * var-tracking.c (non_suitable_const): New function.
34058         (add_uses): For DEBUG_INSNs with constants, don't record any
34059         value, instead just the constant value itself.
34060         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
34061         is not VAR_LOC_UNKNOWN_P, set var to the constant.
34062         (emit_notes_in_bb): Likewise.
34063         (emit_note_insn_var_location): For onepart variables if
34064         cur_loc is a VOIDmode constant, use DECL_MODE.
34065
34066 2010-03-18  Martin Jambor  <mjambor@suse.cz>
34067
34068         PR middle-end/42450
34069         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
34070         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
34071         all non-clones.  Moved call redirection...
34072         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
34073         (cgraph_materialize_all_clones): Dispose of all
34074         combined_args_to_skip bitmaps.
34075         (verify_cgraph_node): Do not check for edges pointing to wrong
34076         nodes in inline clones.
34077         * tree-inline.c (copy_bb): Call
34078         cgraph_redirect_edge_call_stmt_to_callee.
34079         * ipa.c (cgraph_remove_unreachable_nodes): Call
34080         cgraph_node_remove_callees even when there are used clones.
34081
34082 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34083
34084         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
34085
34086 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34087
34088         PR target/43383
34089         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
34090         for 32bit.
34091
34092 2010-03-18  Michael Matz  <matz@suse.de>
34093
34094         PR middle-end/43419
34095         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
34096         into sqrt(x) if we need to preserve signed zeros.
34097
34098 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
34099             Eric Botcazou  <ebotcazou@adacore.com>
34100
34101         PR rtl-optimization/43360
34102         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
34103         note if we don't know its invariant status.
34104
34105 2010-03-18  Michael Matz  <matz@suse.de>
34106
34107         PR tree-optimization/43402
34108         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
34109         PHI chains of ssa names registered for update.
34110
34111 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
34112
34113         PR target/42427
34114         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
34115         non-offsettable and pre_modify update addressing.
34116         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
34117         and "2" alternatives "#".
34118         (*movdd_softfloat32): Make all alternatives "#";
34119         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
34120         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
34121         (*movdf_softfloat32): Make all alternatives "#";
34122         (movdi): Use the new DIFD mode iterator to create a common splitter
34123         for movdi, movdf and movdd patterns.
34124
34125 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
34126
34127         * common.opt (dumpdir): Remove redundant tab.
34128
34129 2010-03-17  Martin Jambor  <mjambor@suse.cz>
34130
34131         PR tree-optimization/43347
34132         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
34133         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
34134
34135 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
34136
34137         PR rtl-optimization/42216
34138         * regrename.c (create_new_chain): New function, broken out from...
34139         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
34140         appending a use to an empty chain.
34141         (build_def_use): Remove previous changes that convert OP_INOUT to
34142         OP_OUT operands; instead detect the case where an OP_INOUT operand
34143         uses a previously untracked register and create an empty chain for it.
34144
34145 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34146
34147         * doc/extend.texi (Function Attributes): Rewrite unfinished
34148         sentence in ms_abi documentation.
34149
34150 2010-03-17  Alan Modra  <amodra@gmail.com>
34151
34152         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
34153         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
34154         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
34155         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
34156
34157 2010-03-16  Richard Henderson  <rth@redhat.com>
34158
34159         PR middle-end/43365
34160         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
34161         (lower_try_finally): Save and restore eh_seq around the expansion
34162         of the try-finally.
34163
34164 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34165
34166         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
34167         statements before splitting block.
34168
34169 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34170
34171         * doc/sourcebuild.texi (Testsuites): Fix markup.
34172         Use pathnames relative to gcc/testsuite.
34173         (Test Directives): Move description of how timeout is determined.
34174         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
34175         (C Tests): Correct gcc.misc-tests directory.
34176         Framework tests now live in gcc.test-framework.
34177
34178 2010-03-16  Richard Guenther  <rguenther@suse.de>
34179
34180         PR middle-end/43379
34181         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
34182         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
34183
34184 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34185             Alexandre Oliva  <aoliva@redhat.com>
34186
34187         PR tree-optimization/42917
34188         * lambda-code.c (remove_iv): Skip debug statements.
34189         (lambda_loopnest_to_gcc_loopnest): Likewise.
34190         (not_interesting_stmt): Debug statements are not interesting.
34191
34192 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
34193
34194         PR debug/43051
34195         PR debug/43092
34196         * cselib.c (cselib_preserve_constants,
34197         cfa_base_preserved_val): New static variables.
34198         (preserve_only_constants): New function.
34199         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
34200         clear its REG_VALUES.  If cselib_preserve_constants, don't
34201         empty the whole hash table, but preserve there VALUEs with constants,
34202         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
34203         (cselib_preserve_cfa_base_value): New function.
34204         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
34205         (cselib_init): Change argument to int bitfield.  Set
34206         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
34207         is in it.
34208         (cselib_finish): Clear cselib_preserve_constants and
34209         cfa_base_preserved_val.
34210         * cselib.h (enum cselib_record_what): New enum.
34211         (cselib_init): Change argument to int.
34212         (cselib_preserve_cfa_base_value): New prototype.
34213         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
34214         * dse.c (dse_step1): Likewise.
34215         * cfgcleanup.c (thread_jump): Likewise.
34216         * sched-deps.c (sched_analyze): Likewise.
34217         * gcse.c (local_cprop_pass): Likewise.
34218         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
34219         If FN is non-NULL, call the callback always and whenever it returns
34220         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
34221         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
34222         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
34223         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
34224         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
34225         * var-tracking.c: Include recog.h.
34226         (bb_stack_adjust_offset): Remove.
34227         (vt_stack_adjustments): Don't call it, instead just gather the
34228         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
34229         (adjust_stack_reference): Remove.
34230         (compute_cfa_pointer): New function.
34231         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
34232         (struct adjust_mem_data): New type.
34233         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
34234         functions.
34235         (get_address_mode): New function.
34236         (replace_expr_with_values): Use it.
34237         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
34238         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
34239         (adjust_sets): Remove.
34240         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
34241         Use get_address_mode.
34242         (get_adjusted_src): Remove.
34243         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
34244         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
34245         (add_with_sets): Don't call adjust_sets.
34246         (fp_setter, vt_init_cfa_base): New functions.
34247         (vt_initialize): Change return type to bool.  Move most of pool etc.
34248         initialization to the beginning of the function from end.  Pass
34249         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
34250         If !frame_pointer_needed, call vt_stack_adjustment before mos
34251         vector is filled, call vt_init_cfa_base if argp/framep has been
34252         eliminated to sp.  If frame_pointer_needed and argp/framep has
34253         been eliminated to hard frame pointer, set
34254         hard_frame_pointer_adjustment and call vt_init_cfa_base after
34255         encountering fp setter in the prologue.  For MO_ADJUST, call
34256         log_op_type before pusing the op into mos vector, not afterwards.
34257         Call adjust_insn before cselib_process_insn/add_with_sets,
34258         call cancel_changes (0) afterwards.
34259         (variable_tracking_main_1): Adjust for vt_initialize calling
34260         vt_stack_adjustments and returning whether it succeeded or not.
34261
34262 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
34263
34264         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
34265         debug statements.
34266
34267 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
34268
34269         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
34270         has been set.
34271         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
34272         drap_reg has not been set.
34273
34274 2010-03-15  Michael Matz  <matz@suse.de>
34275
34276         PR middle-end/43300
34277         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
34278         use it to expand block copies.
34279         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
34280         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
34281         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
34282
34283 2010-03-15  Richard Guenther  <rguenther@suse.de>
34284
34285         PR tree-optimization/43367
34286         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
34287         elimination check.
34288
34289 2010-03-15  Richard Guenther  <rguenther@suse.de>
34290
34291         PR tree-optimization/43317
34292         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
34293
34294 2010-03-15  Martin Jambor  <mjambor@suse.cz>
34295
34296         PR tree-optimization/43141
34297         * tree-sra.c (create_abstract_origin): New function.
34298         (modify_function): Call create_abstract_origin.
34299
34300 2010-03-15  Chris Demetriou  <cgd@google.com>
34301
34302         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
34303         wasn't copied.
34304
34305 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34306
34307         PR middle-end/43354
34308         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
34309         call insert_out_of_ssa_copy for default definitions.
34310
34311 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34312
34313         * graphite-clast-to-gimple.c (my_long_long): Defined.
34314         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
34315         * graphite-sese-to-poly.c (my_long_long): Defined.
34316         (scop_ivs_can_be_represented): Use it.
34317
34318 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34319
34320         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
34321         graphite-max-bbs-per-function, and loop-block-tile-size.
34322         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
34323         with "maximum".
34324         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
34325
34326 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34327
34328         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
34329         forward declaration.
34330         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
34331         (add_upper_bounds_from_estimated_nit): New.
34332         (build_loop_iteration_domains): Use it.
34333
34334 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34335
34336         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
34337
34338 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34339
34340         PR middle-end/43306
34341         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
34342         should be an INTEGER_CST.  Also handle CASE_CONVERT.
34343
34344 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34345
34346         * graphite.c (graphite_initialize): To bound the number of bbs per
34347         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
34348         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
34349         * doc/invoke.texi: Document it.
34350
34351 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34352
34353         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
34354         * graphite-sese-to-poly.h (build_poly_scop): Same.
34355
34356 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34357
34358         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
34359         the number of parameters in the scop.  Use as an upper bound
34360         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
34361         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
34362         * doc/invoke.texi: Document it.
34363
34364 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
34365
34366         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
34367         * doc/c-tree.texi: Remove.
34368         * doc/generic.texi: Merge c-tree.texi here.
34369         * doc/gccint.texi (Trees): Remove menu entry.
34370         (c-tree.texi): Remove @include.
34371         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
34372         * doc/languages.texi (Reading RTL): Ditto.
34373
34374 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
34375
34376         PR target/42869
34377         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
34378
34379 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
34380
34381         PR middle-end/42431
34382         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
34383         code added to work around reload clobbering CONST insns.
34384
34385 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
34386
34387         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
34388         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
34389         (cselib_preserve_only_values): Remove retain argument, don't
34390         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
34391         * cselib.h (cselib_preserve_only_values): Remove retain argument.
34392         * var-tracking.c (micro_operation): Move insn field before union.
34393         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
34394         (struct variable_tracking_info_def): Remove n_mos field, change
34395         mos into a vector of micro_operations.
34396         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
34397         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
34398         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
34399         changing into a vector.
34400         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
34401         come before all other uops generated by add_stores.
34402         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
34403         argument removal.
34404         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
34405         a vector.  Run just one pass over the bbs instead of separate counting
34406         and computation phase.
34407         (vt_finalize): Free VTI (bb)->mos vector instead of array.
34408
34409         PR debug/43329
34410         * tree-inline.c (remap_decls): Put old_var rather than origin_var
34411         into *nonlocalized_list vector.
34412         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
34413         even if origin is non-NULL.
34414         (gen_variable_die): Likewise.
34415         (process_scope_var): Don't change origin.
34416         (gen_decl_die): Likewise.
34417         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
34418         before adding new edges instead of after it, fix moving over
34419         debug stmts.
34420
34421 2010-03-11  David S. Miller  <davem@davemloft.net>
34422
34423         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
34424         of four.
34425         * configure: Rebuild.
34426
34427 2010-03-11  Martin Jambor  <mjambor@suse.cz>
34428
34429         PR tree-optimization/43257
34430         * tree.c (assign_assembler_name_if_neeeded): New function.
34431         (free_lang_data_in_cgraph): Assembler name assignment moved to the
34432         above new function.
34433         * tree.h (assign_assembler_name_if_neeeded): Declare.
34434         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
34435         the function if needed.
34436
34437 2010-03-11  Chris Demetriou  <cgd@google.com>
34438
34439         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
34440         include/stdint-gcc.h, and include/stdint.h world-readable.
34441
34442 2010-03-11  Richard Guenther  <rguenther@suse.de>
34443
34444         PR tree-optimization/43255
34445         * tree-vrp.c (process_assert_insertions_for): Do not insert
34446         asserts for trivial conditions.
34447
34448 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34449
34450         PR tree-optimization/43280
34451         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
34452         generation.  Move calculation of size out of the if branch.
34453         (find_bswap): Modify compare number generation.
34454
34455 2010-03-11  Richard Guenther  <rguenther@suse.de>
34456
34457         PR lto/43200
34458         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
34459         (input_gimple_stmt): Fixup handled component types during
34460         operand read.  Also fix up decls in ADDR_EXPRs.
34461
34462 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
34463
34464         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
34465         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
34466
34467 2010-03-10  Jan Hubicka  <jh@suse.cz>
34468
34469         PR c/43288
34470         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
34471         * varasm.c (get_variable_section): Don't do that here...
34472         (make_decl_rtl): ... and here.
34473         (do_assemble_alias): Produce decl RTL.
34474         (assemble_alias): Likewise.
34475
34476 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
34477
34478         PR debug/43290
34479         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
34480         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
34481         of fde->vdrap_reg.
34482         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
34483         (based_loc_descr): Only express drap or vdrap regno based expressions
34484         using DW_OP_fbreg when not optimizing.
34485         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
34486         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
34487         REG_CFA_SET_VDRAP note.
34488
34489 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
34490
34491         PR tree-optimization/43236
34492         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
34493         error in calculation of base address in reverse iteration case.
34494         (generate_builtin): Take number of latch executions if the statement
34495         is in the latch.
34496
34497 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
34498
34499         PR middle-end/42859
34500         * tree-eh.c: Include pointer-set.h.
34501         (lower_eh_dispatch): Filter out duplicate case labels and
34502         remove the unneeded edge when the label is unused.  Return
34503         true when some edges are removed.
34504         (execute_lower_eh_dispatch): When any lowering resulted in
34505         removing an edge, also delete unreachable blocks.
34506
34507 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
34508
34509         PR bootstrap/43287
34510         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34511         UNSPEC_MACHOPIC_OFFSET.
34512
34513 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
34514
34515         PR target/43294
34516         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
34517         (m68k_delegitimize_address): New function.
34518
34519 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
34520
34521         PR debug/43299
34522         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
34523
34524         PR debug/43299
34525         * var-tracking.c (adjust_sets): New function.
34526         (count_with_sets, add_with_sets): Use it.
34527         (get_adjusted_src): New inline function.
34528         (add_stores): Use it.
34529
34530         PR debug/43304
34531         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
34532         call cselib_dummy_expand_value_rtx_cb instead of
34533         cselib_expand_value_rtx_cb.
34534
34535         PR debug/43293
34536         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
34537         * config/i386/i386.c: Include debug.h and dwarf2out.h.
34538         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
34539         and .cfi_endproc around the pic thunks.
34540         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
34541         all queued unwind info register saves are saved before the call.
34542         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
34543         considered as sp-=4 for unwind info and the pop as sp+=4 which
34544         also clobbers dest, but doesn't actually restore it.
34545
34546         PR debug/43290
34547         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
34548         RTX_FRAME_RELATED_P.
34549
34550 2010-03-09  Jie Zhang  <jie@codesourcery.com>
34551
34552         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
34553         whitespaces in output template.
34554
34555 2010-03-09  Jie Zhang  <jie@codesourcery.com>
34556
34557         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
34558         out array boundary.
34559
34560 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
34561
34562         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
34563         builtins.exp in a separate job.
34564
34565 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34566
34567         * graphite-sese-to-poly.c (add_param_constraints): Use
34568         lower_bound_in_type and upper_bound_in_type.
34569
34570 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34571
34572         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
34573         instead of unsigned_type_node.
34574
34575 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34576             Reza Yazdani  <reza.yazdani@amd.com>
34577
34578         PR middle-end/43065
34579         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
34580         on pointer type parameters.
34581
34582 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
34583
34584         PR middle-end/42644
34585         PR middle-end/42130
34586         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
34587         handle conversions from pointer to integers.
34588         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
34589         induction variable, to be able to work with code generated by CLooG.
34590         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
34591         (build_poly_scop): Bail out if we cannot codegen a loop.
34592
34593 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
34594
34595         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
34596         code generation with gloog_error.
34597
34598 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34599
34600         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
34601         Call fold_convert on all the returned values.
34602         (expand_scalar_variables_expr): Pass to
34603         expand_scalar_variables_ssa_name the type of the resulting expression.
34604
34605 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34606
34607         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
34608         ppl_min_for_le_pointset.
34609         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
34610         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
34611
34612 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34613
34614         * graphite-dependences.c (map_into_dep_poly): Removed.
34615         (dependence_polyhedron_1): Use combine_context_id_scat.
34616
34617 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34618
34619         * graphite-poly.h (struct poly_scattering): Add layout documentation.
34620         (struct poly_bb): Same.
34621         (combine_context_id_scat): New.
34622
34623 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34624
34625         PR middle-end/42326
34626         * sese.c (name_defined_in_loop_p): Return false for default
34627         definitions.
34628
34629 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34630
34631         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
34632         and clean up the logic.
34633
34634 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34635
34636         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
34637         early return.
34638
34639 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
34640
34641         * var-tracking.c (remove_cselib_value_chains): Define only for
34642         ENABLE_CHECKING.
34643         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
34644         delete_slot_part, emit_notes_for_differences_1): Don't call
34645         remove_cselib_value_chains here.
34646         (set_slot_part, emit_notes_for_differences_2): Don't call
34647         add_cselib_value_chains here.
34648         (preserved_values): New vector.
34649         (preserve_value): New function.
34650         (add_uses, add_stores, vt_add_function_parameters): Use it
34651         instead of cselib_preserve_value.
34652         (changed_values_stack): New vector.
34653         (check_changed_vars_0): New function.
34654         (check_changed_vars_1, check_changed_vars_2): Use it.
34655         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
34656         changed_values_stack VALUEs.
34657         (vt_emit_notes): For all preserved_values call
34658         add_cselib_value_chains.  If ENABLE_CHECKING call
34659         remove_cselib_value_chains before verifying value_chains is empty.
34660         Initialize and free changed_values_stack.
34661         (vt_initialize): Initialize preserved_values.
34662         (vt_finalize): Free preserved_values.
34663
34664 2010-03-08  Richard Guenther  <rguenther@suse.de>
34665
34666         PR tree-optimization/43269
34667         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
34668         region detection.
34669
34670 2010-03-08  Martin Jambor  <mjambor@suse.cz>
34671
34672         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
34673         (ipa_is_param_called): Removed.
34674         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
34675         (ipa_print_node_params): Do not print the called flag.
34676         (ipa_write_node_info): Do not stream the called flag.
34677         (ipa_read_node_info): Likewise.
34678
34679 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
34680
34681         PR debug/43176
34682         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
34683         * cselib.c (struct expand_value_data): Add dummy field.
34684         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
34685         dummy to false.
34686         (cselib_dummy_expand_value_rtx_cb): New function.
34687         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
34688         any rtl.
34689         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
34690         * var-tracking.c: Include pointer-set.h.
34691         (variable): Change n_var_parts to char from int.  Add
34692         cur_loc_changed and in_changed_variables fields.
34693         (variable_canonicalize): Remove.
34694         (shared_var_p): New inline function.
34695         (unshare_variable): Maintain cur_loc_changed and
34696         in_changed_variables fields.  If var was in changed_variables,
34697         replace it there with new_var.  Just copy cur_loc instead of
34698         resetting it to something else.
34699         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
34700         (dataflow_set_union): Don't call variable_canonicalize.
34701         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
34702         of their DEBUG_EXPR_TREE_DECLs.
34703         (canonicalize_loc_order_check): Verify that cur_loc is NULL
34704         and in_changed_variables and cur_loc_changed is false.
34705         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
34706         and cur_loc_changed.  Don't update cur_loc here.
34707         (variable_merge_over_src): Don't call variable_canonicalize.
34708         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
34709         removing loc that is equal to cur_loc, clear cur_loc,
34710         set cur_loc_changed and ensure variable_was_changed is called.
34711         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
34712         compare pointers in cur_loc check, if it is equal to loc,
34713         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
34714         (variable_different_p): Remove compare_current_location argument,
34715         don't compare cur_loc.
34716         (dataflow_set_different_1): Adjust variable_different_p caller.
34717         (variable_was_changed): If dv had some var in changed_variables
34718         already, reset in_changed_variables flag for it and propagate
34719         cur_loc_changed over to the new variable.  On empty var
34720         always set cur_loc_changed.  Set in_changed_variables on whatever
34721         var is added to changed_variables.
34722         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
34723         Use shared_var_p.  When removing loc that is equal to cur_loc,
34724         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
34725         end, don't set it to something else, just call variable_was_changed.
34726         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
34727         loc being removed, clear cur_loc and set cur_loc_changed.
34728         Set cur_loc_changed if all locations have been removed.
34729         (struct expand_loc_callback_data): New type.
34730         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
34731         allocated.  Always create SUBREGs if simplify_subreg failed.
34732         Prefer to use cur_loc, when that fails and still in
34733         changed_variables (and seen first time) recompute it.  Set
34734         cur_loc_changed of variables which had to change cur_loc and
34735         compute elcd->cur_loc_changed if any of the subexpressions used
34736         had to change cur_loc.
34737         (vt_expand_loc): Adjust to pass arguments in
34738         expand_loc_callback_data structure.
34739         (vt_expand_loc_dummy): New function.
34740         (emitted_notes): New variable.
34741         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
34742         that weren't used for any other decl in current
34743         emit_notes_for_changes call call vt_expand_loc_dummy to update
34744         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
34745         first loc_chain location if NULL before.  Always use just
34746         cur_loc instead of first loc_chain location.  When cur_loc_changed
34747         is false, when not --enable-checking=rtl just don't emit any note.
34748         When rtl checking, compute the note and assert it is the same
34749         as previous note.  Clear cur_loc_changed and in_changed_variables
34750         at the end before removing from changed_variables.
34751         (check_changed_vars_3): New function.
34752         (emit_notes_for_changes): Traverse changed_vars to call
34753         check_changed_vars_3 on each changed var.
34754         (emit_notes_for_differences_1): Clear cur_loc_changed and
34755         in_changed_variables.  Recompute cur_loc of new_var.
34756         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
34757         (vt_emit_notes): Initialize and destroy emitted_notes.
34758
34759 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
34760
34761         PR rtl-optimization/42220
34762         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
34763         Use verify_reg_tracked to determine if we should use OP_OUT rather
34764         than OP_INOUT.
34765         (build_def_use): If we see an in-out operand for a register that we
34766         know nothing about, treat is an output if possible, fail the block if
34767         not.
34768
34769 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34770
34771         PR debug/42897
34772         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
34773         permanently.
34774
34775 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34776
34777         PR debug/42897
34778         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
34779         uses of relevant DEFs that are dead outside the loop too.
34780
34781 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34782
34783         * var-tracking.c (dataflow_set_merge): Swap src and src2.
34784         Reverted:
34785         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
34786         PR debug/41371
34787         * var-tracking.c (values_to_unmark): New variable.
34788         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
34789         values_to_unmark vector.  Moved body to...
34790         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
34791         instead queue it into values_to_unmark vector.
34792         (vt_find_locations): Free values_to_unmark vector.
34793
34794 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
34795
34796         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
34797         (site.exp): Export them when plugins are enabled.
34798
34799 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
34800
34801         PR middle-end/42326
34802         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
34803         that contain scevs.
34804         (chrec_fold_multiply): Same.
34805
34806 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
34807
34808         PR c/43248
34809         * c-decl.c (build_compound_literal): Return early if init is
34810         an error_mark_node.
34811
34812 2010-03-04  Martin Jambor  <mjambor@suse.cz>
34813
34814         PR tree-optimization/43164
34815         PR tree-optimization/43191
34816         * tree-sra.c (type_consists_of_records_p): Reject records with
34817         zero-size bit-fields at the end.
34818
34819 2010-03-04  Mike Stump  <mikestump@comcast.net>
34820
34821         * Makefile.in (TAGS): Remove *.y.
34822
34823 2010-03-04  Richard Guenther  <rguenther@suse.de>
34824
34825         PR tree-optimization/40761
34826         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
34827         in reverse order.
34828         (my_rev_post_order_compute): New function.
34829         (init_pre): Call it.
34830
34831 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
34832
34833         PR middle-end/43209
34834         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
34835         decrease the cost of an IV candidate when the cost is infinite.
34836
34837 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34838
34839         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
34840         Use '3DNow!' for the extension of that name, ensure normal space
34841         after the string.
34842         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
34843
34844 2010-03-03  Jeff Law  <law@redhat.com>
34845
34846         * PR middle-end/32693
34847         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
34848         than gen_rtx_SUBREG.
34849         (extract_bit_field_1): Likewise.
34850
34851 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
34852
34853         * doc/sourcebuild.texi (Test directives): Document that arguments
34854         include-opts and exclude-opts are now optional for dg-skip-if,
34855         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
34856
34857 2010-03-03  Jason Merrill  <jason@redhat.com>
34858
34859         PR c++/12909
34860         * cgraph.h (varpool_node): Add extra_name field.
34861         * varpool.c (varpool_extra_name_alias): New.
34862         (varpool_assemble_decl): Emit extra name aliases.
34863         (varpool_mark_needed_node): Look past an extra name alias.
34864         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
34865         * lto-streamer-in.c (lto_input_tree): Read it.
34866         * lto-streamer-out.c (output_unreferenced_globals): Write it.
34867
34868 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
34869
34870         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
34871         (sparc*-*-solaris2*): ...this.
34872
34873 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
34874
34875         PR debug/43229
34876         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
34877         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
34878         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
34879         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
34880
34881         PR debug/43237
34882         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
34883         fallthrough to default handling, just with want_address 0 instead of 2.
34884         For single element lists, add_AT_loc directly, otherwise create an
34885         artificial variable DIE and stick location list to it.
34886
34887         PR debug/43177
34888         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
34889         (VAL_EXPR_HAS_REVERSE): Define.
34890         (reverse_op): New function.
34891         (add_stores): For reversible operations add an extra MO_VAL_USE.
34892
34893 2010-03-02  Jason Merrill  <jason@redhat.com>
34894
34895         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
34896
34897 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
34898
34899         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
34900         (sparc64-*-linux*): Likewise.
34901         (sparc64-*-solaris2*): Include assembler files before linker ones.
34902         (sparc-*-solaris2*): Simplify and reorder to match previous case.
34903         * config/sparc/gas.h: Delete.
34904         * config/sparc/sol2-64.h: Add copyright notice.
34905         * config/sparc/sol2-gas-bi.h: Likewise.
34906         * config/sparc/sol2-gld.h: Likewise.
34907         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
34908         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
34909         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
34910         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
34911         (sparc_elf_asm_named_section): Rename into...
34912         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
34913
34914 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
34915
34916         * config/alpha/alpha.c (override_options): Fix -mtune error message.
34917
34918 2010-03-02  Jeff Law  <law@redhat.com>
34919
34920         PR middle-end/42431
34921         * reload1.c (rtx_p, substitute_stack): Declare.
34922         (substitute): Record addresses of changed rtxs.
34923         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
34924         Restore the original rtx when complete.
34925         (reload): Free subsitute_stack when complete.
34926
34927 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
34928
34929         * doc/gccint.texi (menu): Add Testsuites as a chapter.
34930         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
34931         new chapter.
34932         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
34933         LTO Testing, gcov Testing, profopt Testing, compat Testing,
34934         Torture Tests): Change from subsection to section.
34935
34936 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
34937             Steven Bosscher  <steven@gcc.gnu.org>
34938
34939         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
34940         instead of bb.
34941
34942 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
34943
34944         PR middle-end/42640
34945         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
34946         the assignment from the new induction variable to the assignment
34947         of the value from the original loop PHI function.
34948
34949 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
34950             Daniel Jacobowitz  <dan@codesourcery.com>
34951
34952         * doc/sourcebuild.texi (Test directives): Clarify options to
34953         dg-skip-if.
34954
34955 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34956
34957         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
34958         Disable cfi directives unless GCC and gas agree on using read-only
34959         .eh_frame sections for 64-bit.
34960         * configure: Regenerate.
34961
34962 2010-03-01  Richard Guenther  <rguenther@suse.de>
34963
34964         PR tree-optimization/43220
34965         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
34966         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
34967
34968 2010-03-01  Richard Guenther  <rguenther@suse.de>
34969             Martin Jambor  <mjambor@suse.cz>
34970
34971         PR middle-end/41250
34972         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
34973         gimplified parameters.
34974
34975 2010-03-01  Christian Bruel  <christian.bruel@st.com>
34976
34977         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
34978
34979 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
34980
34981         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
34982
34983 2010-03-01  Richard Guenther  <rguenther@suse.de>
34984
34985         PR middle-end/43213
34986         * expr.c (expand_assignment): Use the alias-oracle to tell
34987         if the rhs aliases the result decl.
34988
34989 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34990
34991         PR pch/14940
34992         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
34993         to sol_gt_pch_get_address.
34994         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
34995         64-bit, SPARC and x86.
34996         (sol_gt_pch_get_address): New function.
34997
34998 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
34999
35000         * toplev.h (inform_n, error_n): Declare.
35001         * diagnostic.c (inform_n, error_n): New function.
35002
35003 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
35004
35005         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
35006         has no rtl yet when processing local_decls, queue it and recheck
35007         if deferred stack allocation hasn't assigned it rtl.
35008
35009 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
35010
35011         * config/sh/sh.c (unspec_bbr_uid): New.
35012         (gen_block_redirect): Use it instead of INSN_UID.
35013         (gen_far_branch): Likewise.
35014
35015 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
35016
35017         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
35018         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
35019
35020 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35021
35022         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
35023         (Warning Options): -Wno-conversion-null is valid for
35024         Objective-C++ as well.
35025         * doc/tm.texi (Named Address Spaces): Likewise.
35026         * doc/plugins.texi (Plugins): Replace TABs with spaces.
35027         * doc/tree-ssa.texi (Tree SSA): Likewise.
35028
35029 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35030
35031         PR bootstrap/43202
35032         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
35033         by default.  Don't set the default arch for
35034         i[34567]86-*-darwin*|x86_64-*-darwin*.
35035
35036 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35037
35038         PR bootstrap/43202
35039         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
35040         default.  Set the default 32bit/64bit archs with $with_arch
35041         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
35042
35043 2010-02-27  Richard Guenther  <rguenther@suse.de>
35044
35045         PR tree-optimization/43186
35046         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
35047         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
35048         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
35049         unroller iterations.
35050
35051 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35052
35053         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
35054         required and i[34567]86-*-* targets don't support 64bit ISA.
35055
35056 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
35057
35058         PR ada/43096
35059         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35060         the same alias set.
35061
35062 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35063
35064         * config.gcc: Set the default arch at least to Prescott for
35065         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
35066         if SSE math is enabled.
35067
35068 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35069
35070         * diagnostic.c (diagnostic_initialize): Update.
35071         (diagnostic_report_diagnostic): Test inhibit_notes_p for
35072         informative notes.
35073         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
35074         (diagnostic_inhibit_notes): New.
35075         * toplev.c (process_options): inhibit notes with -fcompare-debug.
35076
35077 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35078
35079         PR c/20631
35080         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
35081         * doc/standards.texi: Likewise.
35082         * doc/extend.texi: Likewise.
35083         * doc/trouble.texi: Likewise.
35084         * doc/cppopts.texi: Likewise.
35085         * doc/install.texi: Likewise.
35086         * c.opt (std=c90,std=gnu90): New options.
35087         * c-opts.c (c_common_handle_option): Handle them.
35088
35089 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35090
35091         PR c/24577
35092         * c-decl.c (undeclared_variable): Use an informative note.
35093
35094 2010-02-26  Richard Guenther  <rguenther@suse.de>
35095
35096         PR tree-optimization/43186
35097         * gimple.h (gimple_fold): Remove.
35098         * gimple.c (gimple_fold): Remove.  Inline into single user ...
35099         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
35100         Try harder for conditions.
35101
35102 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35103
35104         PR debug/43190
35105         * function.c (used_types_insert): Don't skip through named pointer
35106         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
35107         and it is different from the main variant's type.
35108
35109 2010-02-26  Nick Clifton  <nickc@redhat.com>
35110
35111         * config/rx/rx.md (sminsi3): Remove bogus alternative.
35112
35113 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35114
35115         * config.gcc: Support --with-fpmath=sse for x86.
35116
35117         * config/i386/ssemath.h: New.
35118
35119         * doc/install.texi (--with-fpmath=sse): Documented.
35120
35121 2010-02-26  Richard Guenther  <rguenther@suse.de>
35122
35123         PR tree-optimization/43188
35124         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
35125         vector types of over-aligned element type.
35126
35127 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
35128
35129         PR target/43175
35130         * config/i386/i386.c (expand_vec_perm_blend): Use correct
35131         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
35132
35133 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
35134
35135         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
35136
35137 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35138
35139         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
35140         * var-tracking.c: Include diagnostic.h.
35141         (debug_dv): New function.
35142         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
35143
35144         PR debug/43160
35145         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
35146         (add_value_chain, add_value_chains, remove_value_chain,
35147         remove_value_chains): Handle DEBUG_EXPRs.
35148         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
35149
35150         PR debug/43161
35151         * regcprop.c (struct queued_debug_insn_change): New type.
35152         (struct value_data_entry): Add debug_insn_changes field.
35153         (struct value_data): Add n_debug_insn_changes field.
35154         (debug_insn_changes_pool): New variable.
35155         (free_debug_insn_changes, apply_debug_insn_changes,
35156         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
35157         (kill_value_one_regno): Call free_debug_insn_changes if needed.
35158         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
35159         fields.
35160         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
35161         changes for them.
35162         (copyprop_hardreg_forward_1): Don't call apply_change_group for
35163         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
35164         changes, call cprop_find_used_regs via note_stores.
35165         (copyprop_hardreg_forward): When copying vd from predecessor
35166         which has any queued DEBUG_INSN changes, make sure the pointers are
35167         cleared.  At the end call df_analyze and then if there are any
35168         DEBUG_INSN changes queued at the end of some basic block for still
35169         live registers, apply them.
35170         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
35171
35172 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
35173
35174         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
35175         (arm*-*-*): Ditto.
35176
35177 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
35178
35179         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
35180         targets.  Set the default with_cpu/with_arch from arch/cpu.
35181         Allow x86-64 and native for with_cpu/with_arch.
35182
35183 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
35184
35185         * ebitmap.c: Change calls to verify_popcount with calls to
35186         sbitmap_verify_popcount.
35187         (ebitmap_clear_bit): Fixed map->cacheindex test and
35188         map>cache update when bit clearing results in an empty
35189         element.
35190
35191 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35192
35193         PR target/43154
35194         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
35195         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
35196         and support both V2DF and V2DI modes.
35197         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
35198         support both V2DF and V2DI modes.
35199         (general): Delete trailing whitespace from a few patterns.
35200
35201         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
35202         V2DF/V2DI interleave high/low builtins.
35203
35204         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
35205         new VSX builtins.
35206
35207         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
35208         interleave high/low functions.
35209
35210 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
35211
35212         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
35213         #pragma extern_prefix.
35214
35215 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
35216
35217         PR debug/43166
35218         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
35219         BLKmode, assert op0 is a MEM and just adjust its mode.
35220
35221         PR debug/43165
35222         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
35223         if bitpos isn't multiple of mode's bitsize.
35224
35225 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35226
35227         * c.opt (-ftemplate-depth=): New.
35228         (-ftemplate-depth-): Deprecate.
35229         * optc-gen.awk: Handle -ftemplate-depth=.
35230         * opth-gen.awk: Likewise.
35231         * c-opts.c (c_common_handle_option): Likewise.
35232         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
35233
35234 2010-02-24  Jason Merrill  <jason@redhat.com>
35235
35236         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
35237
35238 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35239
35240         * cfg.c (alloc_aux_for_block): Remove inline.
35241         (alloc_aux_for_edge): Likewise.
35242
35243 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35244
35245         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
35246
35247 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35248
35249         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
35250         * config/i386/sol2-gas.h: New file.
35251         * config.gcc (i[34567]86-*-solaris2*): Use it.
35252
35253 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35254
35255         PR c/43128
35256         * c-typeck.c (ep_convert_and_check): New.
35257         (build_conditional_expr): Use it.
35258         (build_binary_op): Likewise.
35259
35260 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
35261
35262         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
35263
35264         PR debug/43150
35265         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
35266         bounds even for -O+.
35267         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
35268         expr needs to have DECL_NAME set.
35269
35270 2010-02-24  Nick Clifton  <nickc@redhat.com>
35271
35272         * config/mep/mep.c: Include gimple.h.
35273         (mep_function_uses_sp): Delete unused function.
35274         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
35275         parameters.  Use unsigned integers to count args.  Return a
35276         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
35277
35278 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
35279
35280         PR target/43107
35281         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
35282         greater or equal to nelt instead of 2 * nelt.
35283         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
35284         with nelt - 1.
35285
35286 2010-02-23  Jason Merrill  <jason@redhat.com>
35287
35288         PR debug/42800
35289         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
35290         in cfun->local_decls even if they have register types.
35291
35292         PR c++/42837
35293         * stor-layout.c (place_field): Don't warn about unnecessary
35294         DECL_PACKED if the type is packed.
35295
35296 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
35297
35298         PR target/43139
35299         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
35300         GOTOFF relocs, even when the base reg isn't pic pointer.
35301
35302 2010-02-23  Michael Matz  <matz@suse.de>
35303
35304         PR debug/43077
35305         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
35306         (expand_gimple_basic_block): Generate and use debug temps if there
35307         are debug uses left after the last real use of TERed ssa names.
35308         Unlink debug immediate uses when they are expanded.
35309
35310 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35311
35312         PR 43123
35313         * config/i386/i386.c (override_options): Reorganise to provide
35314         better error messages.
35315
35316 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35317
35318         PR middle-end/43083
35319         * graphite-scop-detection.c (create_single_exit_edge): Move
35320         the call to find_single_exit_edge to....
35321         (create_sese_edges): ...here.  Don't handle multiple edges
35322         exiting the function.
35323         (build_graphite_scops): Don't handle multiple edges
35324         exiting the function.
35325
35326 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35327
35328         PR middle-end/43097
35329         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
35330         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
35331
35332 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35333
35334         PR middle-end/43026
35335         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
35336
35337 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35338
35339         PR c++/43126
35340         * c-typeck.c (convert_arguments): Print declaration location.
35341         * c-common.c (validate_nargs): Rename as
35342         builtin_function_validate_nargs.
35343         (check_builtin_function_arguments): Update.
35344
35345 2010-02-22  Richard Guenther  <rguenther@suse.de>
35346
35347         PR lto/43045
35348         * tree-inline.c (declare_return_variable): Use the type of
35349         the call stmt lhs if available.
35350
35351 2010-02-22  Duncan Sands  <baldrick@free.fr>
35352
35353         * passes.c (register_pass): Always consider all pass lists when
35354         ref_pass_instance_number is zero.
35355
35356 2010-02-22  Richard Guenther  <rguenther@suse.de>
35357
35358         PR tree-optimization/42749
35359         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
35360         parameter.  Do arithmetic in the original type.
35361         (update_accumulator_with_ops): Likewise.
35362         (adjust_accumulator_values): Adjust.
35363
35364 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35365
35366         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
35367         (QI to BLKmode splitter): New splitter.
35368
35369 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
35370
35371         * config/i386/i386.c (initial_ix86_tune_features): Turn on
35372         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
35373
35374 2010-02-22  Richard Guenther  <rguenther@suse.de>
35375
35376         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
35377
35378 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
35379
35380         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
35381         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
35382         ($(T)crti.o, $(T)crtn.o): Remove rules.
35383
35384 2010-02-21  Tobias Burnus  <burnus@net-b.de>
35385
35386         PR fortran/35259
35387         * doc/invoke.texi (-fassociative-math): Document that this
35388         option is automatically enabled for Fortran.
35389
35390 2010-02-20  David S. Miller  <davem@davemloft.net>
35391
35392         * configure.ac: Test if linker and assembler properly support
35393         GOTDATA_OP relocations.
35394         * configure: Rebuild.
35395         * config.in: Likewise.
35396         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
35397         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
35398         (movsi_high_pic): Likewise.
35399         (movdi_lo_sum_pic): Likewise.
35400         (movdi_high_pic): Likewise.
35401         (movsi_pic_gotdata_op): New pattern.
35402         (movdi_pic_gotdata_op): Likewise.
35403         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
35404         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
35405
35406 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
35407
35408         PR target/43067
35409         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
35410         attribute to ssemul.
35411         (xop_mulv2div2di3_high): Ditto.
35412
35413 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35414
35415         PR c++/35669
35416         * c.opt (Wconversion-null): New option.
35417         * doc/invoke.texi (Wconversion-null): Document.
35418
35419 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35420
35421         * common.opt (Wlarger-than-): Add Undocumented.
35422
35423 2010-02-19  Mike Stump  <mikestump@comcast.net>
35424
35425         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
35426
35427 2010-02-19  Jason Merrill  <jason@redhat.com>
35428
35429         PR target/40332
35430         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
35431         * configure: Likewise.
35432
35433 2010-02-20  Alan Modra  <amodra@gmail.com>
35434
35435         PR middle-end/42344
35436         * cgraph.h (cgraph_make_decl_local): Declare.
35437         * cgraph.c (cgraph_make_decl_local): New function.
35438         (cgraph_make_node_local): Use it.
35439         * cgraphunit.c (cgraph_function_versioning): Likewise.
35440         * ipa.c (function_and_variable_visibility): Likewise.
35441
35442 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35443
35444         PR bootstrap/43121
35445         * except.c (sjlj_emit_function_enter): Don't call
35446         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
35447         directly.
35448         * rtl.h (add_reg_br_prob_note): Remove prototype.
35449
35450 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35451
35452         PR 41779
35453         * c-common.c (conversion_warning): Remove widening conversions
35454         before checking the conversion of integers to reals.
35455
35456 2010-02-19  Mike Stump  <mikestump@comcast.net>
35457
35458         PR middle-end/43125
35459         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
35460
35461         PR objc/43061
35462         * cgraphunit.c (process_function_and_variable_attributes): Check
35463         DECL_PRESERVE_P instead of looking up attribute "used".
35464         * ipa-pure-const.c (check_decl): Likewise.
35465         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
35466         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
35467         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
35468         instead of attribute "used".
35469         * config/sol2-c.c (solaris_pragma_init): Likewise.
35470         (solaris_pragma_fini): Likewise.
35471
35472 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35473
35474         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
35475         Use XCNEW instead of xcalloc.
35476         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
35477         XNEW instead of xmalloc.
35478         (get_fields): Use XNEWVEC instead of xmalloc.
35479
35480         PR debug/43084
35481         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
35482         populate vars array.
35483         (create_new_general_access): For debug stmts just reset value.
35484         (get_stmt_accesses): For accesses within debug stmts just record them
35485         using add_access_to_acc_sites instead of preventing the peeling or
35486         counting them as accesses.
35487
35488         PR middle-end/42233
35489         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
35490
35491 2010-02-19  Richard Guenther  <rguenther@suse.de>
35492
35493         PR tree-optimization/42916
35494         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
35495         instructions.
35496
35497 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
35498
35499         * configure.ac: Replace all uses of changequote in macro arguments
35500         with proper quoting.
35501
35502 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35503
35504         PR middle-end/42233
35505         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
35506
35507 2010-02-19  Richard Guenther  <rguenther@suse.de>
35508
35509         PR tree-optimization/42944
35510         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
35511         test for aliasing with errno.
35512
35513 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35514
35515         PR middle-end/42233
35516         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
35517         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
35518         * dojump.c: Include output.h.
35519         (inv): New inline function.
35520         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
35521         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
35522         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
35523         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
35524         argument, pass it down to other calls.
35525         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
35526         add REG_BR_PROB note to the conditional jump.
35527         * cfgexpand.c (add_reg_br_prob_note): Removed.
35528         (expand_gimple_cond): Don't call it, add the probability
35529         as last argument to jumpif_1/jumpifnot_1.
35530         * Makefile.in (dojump.o): Depend on output.h.
35531         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
35532         callers.
35533         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
35534         * stmt.c (do_jump_if_equal): Likewise.
35535         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
35536         * loop-unswitch.c (compare_and_jump_seq): Likewise.
35537         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
35538         Likewise.
35539         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
35540         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
35541         jumpifnot_1 callers.
35542         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
35543         callers.
35544         (store_expr): Adjust jumpifnot caller.
35545         (store_constructor): Adjust jumpif caller.
35546
35547         PR middle-end/42233
35548         * gimplify.c (gimple_boolify): For __builtin_expect call
35549         gimple_boolify also on its first argument.
35550
35551 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
35552
35553         * configure.ac (gnu-unique-object): Wrap regexps using [] in
35554         changequote block.
35555         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
35556         * configure: Regenerated.
35557
35558 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35559
35560         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
35561         lang_hooks.types_compatible_p instead of comptypes.
35562
35563 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35564
35565         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
35566         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
35567         if __prefer_thumb__ is defined.
35568
35569 2010-02-18  Martin Jambor  <mjambor@suse.cz>
35570
35571         PR tree-optimization/43066
35572         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
35573         array with zero-sized element type.
35574
35575 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
35576
35577         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
35578         rtx, allocate struct var_loc_node here and return it to the
35579         caller, and only if it is actually needed.
35580         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
35581         move it earlier and return immediately if it returns NULL.
35582
35583 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
35584
35585         * config/sparc/gas.h: New file.  Restore
35586         TARGET_ASM_NAMED_SECTION to its ELF default.
35587         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
35588         check !HAVE_GNU_AS.
35589         * config/sparc/sparc.c (sparc_elf_asm_named_section):
35590         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
35591         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
35592         after sparc/sysv4.h.
35593
35594 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
35595
35596         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
35597
35598 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
35599
35600         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
35601         patterns from predicated pattern.
35602
35603 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
35604
35605         PR target/43103
35606         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
35607         for insn mnemonic suffix.
35608
35609 2010-02-17  Richard Guenther  <rguenther@suse.de>
35610
35611         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
35612         to loop PHI nodes.
35613
35614 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
35615
35616         PR debug/42918
35617         * caller-save.c (save_call_clobbered_regs): If BB ends with
35618         a DEBUG_INSN, move any notes in between last real insn and the last
35619         DEBUG_INSN after the last DEBUG_INSN.
35620
35621 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
35622
35623         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
35624         Fix return type.  Fix argument type.  Explain meaning of return value.
35625
35626 2010-02-16  Richard Guenther  <rguenther@suse.de>
35627
35628         PR tree-optimization/41043
35629         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
35630         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
35631         statements ...
35632         (vrp_visit_phi_node): ... but only for loop PHI nodes.
35633
35634 2010-02-16  Ira Rosen  <irar@il.ibm.com>
35635
35636         PR tree-optimization/43074
35637         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
35638         * tree-vect-loop.c (vect_analyze_loop_operations): Add
35639         vectorizable cycles in hybrid SLP check.
35640         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
35641
35642 2010-02-16  Richard Guenther  <rguenther@suse.de>
35643
35644         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
35645         (true_dependence): If memrefs_conflict_p computes must-alias
35646         trust it.  Move TBAA check after offset-based disambiguation.
35647         (canon_true_dependence): Likewise.
35648
35649 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
35650
35651         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
35652         * doc/invoke.texi: Document it.
35653         * var-tracking.c: Include toplev.h and params.h.
35654         (vt_find_locations): Return bool indicating success.  Compute
35655         hash sizes unconditionally.  Check new parameter, report.
35656         (variable_tracking_main_1): Check vt_find_locations results and
35657         retry.  Renamed from...
35658         (variable_tracking_main): ... this.  New wrapper to preserve
35659         flag_var_tracking_assignments.
35660         * Makefile.in (var-tracking.o): Adjust dependencies.
35661
35662 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
35663             Jakub Jelinek  <jakub@redhat.com>
35664
35665         PR target/42854
35666         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
35667         if weak_import attribute is present.
35668         * config/darwin.c (machopic_select_section): Likewise.
35669
35670 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
35671
35672         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
35673         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
35674         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
35675         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
35676
35677         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
35678         types.
35679
35680         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35681         Fix argument types.
35682
35683         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
35684         Rewrite text to refer to the names.
35685
35686 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
35687
35688         * config/i386/i386-builtin-types.def
35689         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
35690         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
35691         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
35692         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
35693         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
35694         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
35695         IX86_BUILTIN_VPERMIL2PS256.
35696         (MULTI_ARG_4_DF2_DI_I): Defined.
35697         (MULTI_ARG_4_DF2_DI_I1): Defined.
35698         (MULTI_ARG_4_SF2_SI_I): Defined.
35699         (MULTI_ARG_4_SF2_SI_I1): Defined.
35700         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
35701         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
35702         __builtin_ia32_vpermil2ps256.
35703         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35704         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35705         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
35706         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35707         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35708         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
35709         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
35710         CODE_FOR_xop_vpermil2v8sf3.
35711         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
35712         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
35713         * config/i386/xopintrin.h (_mm_permute2_pd): New.
35714         (_mm256_permute2_pd): New.
35715         (_mm_permute2_ps): New.
35716         (_mm256_permute2_ps): New.
35717
35718 2010-02-15  Nick Clifton  <nickc@redhat.com>
35719
35720         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
35721         boolean parameters.  Use emit_jump_insn when emitting a pop
35722         instruction containing a return insn.
35723         (push): Use 'true' rather than '1' as second parameter to F.
35724         (h8300_expand_prologue): Likewise.
35725         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
35726         (h8300_expand_epilogue): Likewise.
35727
35728 2010-02-15  Richard Guenther  <rguenther@suse.de>
35729
35730         PR middle-end/43068
35731         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
35732         if that is zero.
35733
35734 2010-02-15  Nick Clifton  <nickc@redhat.com>
35735
35736         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
35737         delta.
35738
35739 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
35740
35741         * intl.c (fake_ngettext): New function.
35742         * intl.h (fake_ngettext): Declare.
35743         (ngettext): Define macro.
35744         * collect2.c (notice_translated): New function.
35745         (main): Use notice_translated and ngettext.
35746         * collect2.h (notice_translated): Declare.
35747
35748 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
35749
35750         * reorg.c (delete_computation): Comment fixes.
35751         * caller-save.c (setup_save_areas): Idem.
35752         * sel-sched-dump.c (dump_lv_set): Idem.
35753         * rtl.def: Idem.
35754
35755 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35756
35757         * config/s390/s390.c (s390_sched_init): New function.
35758         (TARGET_SCHED_INIT): Target hook defined.
35759
35760 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
35761             Jack Howarth  <howarth@bromo.med.uc.edu>
35762             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
35763
35764         PR target/42982
35765         Partial revert of unintended change in fix for PR41605.
35766         * config/darwin.h: Fix typo.
35767         * config/darwin9.h: Same.
35768
35769 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
35770
35771         * c-pch.c (pch_init): Clear v.
35772
35773 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35774
35775         PR middle-end/42930
35776         * graphite-scop-detection.c (graphite_can_represent_scev): Call
35777         graphite_can_represent_init for MULT_EXPR.
35778
35779 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35780
35781         PR middle-end/42914
35782         PR middle-end/42530
35783         * graphite-sese-to-poly.c (remove_phi): New.
35784         (translate_scalar_reduction_to_array): Call remove_phi.
35785
35786 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35787
35788         PR middle-end/42771
35789         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
35790         * graphite-clast-to-gimple.h (gloog): Update declaration.
35791         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
35792         * graphite-poly.h (struct poly_bb): Add missing comments.
35793         (struct scop): Add poly_scop_p field.
35794         (POLY_SCOP_P): New.
35795         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
35796         * graphite.c (graphite_transform_loops): Build the polyhedral
35797         representation for each scop before code generation.
35798         * sese.c (rename_variables_in_operand): Removed.
35799         (rename_variables_in_expr): Return the renamed expression.
35800         (rename_sese_parameters): New.
35801         * sese.h (rename_sese_parameters): Declared.
35802
35803 2010-02-11  Richard Guenther  <rguenther@suse.de>
35804
35805         PR tree-optimization/42998
35806         * tree-ssa-pre.c (create_expression_by_pieces): Treat
35807         POINTER_PLUS_EXPR properly.
35808
35809 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35810             Changpeng Fang  <changpeng.fang@amd.com>
35811
35812         PR middle-end/40886
35813         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
35814         the cost of an IV candidate when the IV is used in a test against zero.
35815
35816         * gcc.dg/tree-ssa/ivopts-3.c: New.
35817
35818 2010-02-11  Richard Guenther  <rguenther@suse.de>
35819
35820         PR lto/41664
35821         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
35822         pointer-vs-decl case by swapping refs.  Handle some cases
35823         of pointer-vs-decl disambiguations more conservatively.
35824         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
35825         to false after expanding.
35826
35827 2010-02-11  Richard Guenther  <rguenther@suse.de>
35828
35829         PR driver/43021
35830         * gcc.c (process_command): Handle LTO file@offset case more
35831         appropriately.
35832
35833 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
35834
35835         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
35836         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
35837         of DEBUG_INSNs.
35838         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
35839
35840         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
35841         if MEM's mode size isn't DWARF2_ADDR_SIZE.
35842         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
35843         Optimize eq/ne comparisons when both arguments are known to be
35844         zero-extended.
35845         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
35846         Don't mask operands unnecessarily if they are known to be already
35847         zero-extended.
35848
35849 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
35850
35851         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
35852         instead of loop.
35853
35854 2010-02-10  Richard Guenther  <rguenther@suse.de>
35855
35856         PR tree-optimization/43017
35857         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
35858         for wrapping signed arithmetic.
35859
35860 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
35861
35862         PR debug/43010
35863         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
35864         if no debug info should be emitted for it.
35865
35866 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
35867
35868         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
35869         note when flag_exceptions is set.
35870
35871 2010-02-10  Duncan Sands  <baldrick@free.fr>
35872
35873         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
35874
35875 2010-02-10  Richard Guenther  <rguenther@suse.de>
35876
35877         PR c/43007
35878         * tree.c (get_unwidened): Handle constants.
35879         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
35880
35881 2010-02-10  Martin Jambor  <mjambor@suse.cz>
35882
35883         PR lto/42985
35884         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
35885         check for variable argument counts independently.
35886
35887 2010-02-10  Christian Bruel  <christian.bruel@st.com>
35888
35889         PR target/42841
35890         * config/sh/sh.c (find_barrier): Increase length for non delayed
35891         conditional branches.
35892
35893 2010-02-10  Christian Bruel  <christian.bruel@st.com>
35894
35895         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
35896
35897 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
35898
35899         * builtins.c (set_builtin_user_assembler_name): Also handle
35900         ffs if int is smaller than word.
35901
35902 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
35903
35904         PR middle-end/42973
35905         * ira-conflicts.c (get_dup): Remove.
35906         (process_reg_shuffles): Add new parameter.  Use it as an
35907         additional guard for copy generation.
35908         (add_insn_allocno_copies): Rewrite.
35909
35910 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
35911
35912         * common.opt (fsched2-use-traces): Preserved for backward
35913         compatibility.
35914         * doc/invoke.texi: Remove the documentation about option
35915         -fsched2-use-traces.
35916         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
35917         flag_sched2_use_traces.
35918         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
35919         the backward compatibility flag section.
35920
35921 2010-02-09  Richard Guenther  <rguenther@suse.de>
35922
35923         PR tree-optimization/43008
35924         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
35925         make HEAP variables initialized from global memory if they
35926         are not known builtin functions.
35927         (find_func_aliases): Adjust.
35928
35929 2010-02-09  Richard Guenther  <rguenther@suse.de>
35930
35931         PR tree-optimization/43000
35932         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
35933         arithmetic manually.
35934
35935 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
35936
35937         PR tree-optimization/42931
35938         * tree-loop-linear.c (try_interchange_loops): Don't call
35939         double_int_mul if estimated_loop_iterations failed.
35940
35941 2010-02-08  Martin Jambor  <mjambor@suse.cz>
35942
35943         PR middle-end/42898
35944         * tree-sra.c (build_accesses_from_assign): Do not mark in
35945         should_scalarize_away_bitmap if stmt has volatile ops.
35946         (sra_modify_assign): Do not process assigns piecemeal if if stmt
35947         has volatile ops.
35948
35949 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
35950
35951         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
35952
35953 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
35954
35955         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
35956         before the pattern.
35957
35958 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
35959
35960         PR middle-end/42946
35961         * df-core.c (df_finish_pass): Change type of saved_flags to int.
35962
35963 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
35964
35965         PR middle-end/42988
35966         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
35967         to unknown_dependence.
35968         (graphite_legal_transform_dr): Handle the unknown_dependence.
35969         (graphite_carried_dependence_level_k): Same.
35970
35971 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
35972
35973         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
35974
35975 2010-02-07  Richard Guenther  <rguenther@suse.de>
35976
35977         PR middle-end/42991
35978         * expr.c (get_inner_reference): Always initialize *pbitsize.
35979
35980 2010-02-07  Richard Guenther  <rguenther@suse.de>
35981
35982         PR middle-end/42956
35983         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
35984         new ARRAY_REFs on variable size element or minimal index arrays.
35985         Complete.
35986         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
35987         gimple_fold_indirect_ref.
35988
35989 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
35990
35991         PR target/42957
35992         * arm.c (arm_override_options): Just return if the user has specified
35993         an invalid fpu name.
35994
35995 2010-02-03  Jason Merrill  <jason@redhat.com>
35996
35997         PR c++/42870
35998         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
35999         i386_pe_maybe_record_exported_symbol.
36000
36001 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
36002
36003         PR target/42924
36004         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36005         (pa_delegitimize_address): New function.
36006
36007 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
36008
36009         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
36010         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
36011
36012 2010-02-05  Richard Guenther  <rguenther@suse.de>
36013
36014         PR lto/42762
36015         * lto-streamer-in.c (get_resolution): Deal with references
36016         to undefined functions.
36017
36018 2010-02-05  Richard Guenther  <rguenther@suse.de>
36019
36020         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
36021         (fold_const_aggregate_ref): Likewise.
36022         (ccp_fold_stmt): Substitute loads.
36023         (maybe_fold_reference): Verify types before substituting.
36024         Unshare properly.
36025         (fold_gimple_assign): Unshare properly.
36026         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
36027
36028 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
36029
36030         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
36031         for rs6000_gen_cell_microcode.
36032
36033 2010-02-04  Richard Guenther  <rguenther@suse.de>
36034
36035         PR rtl-optimization/42952
36036         * dse.c (const_or_frame_p): Remove MEM handling.
36037
36038 2010-02-04  Nick Clifton  <nickc@redhat.com>
36039
36040         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
36041         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36042         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
36043         (mn10300_asm_output_mi_thunk): New function.
36044         (mn10300_can_output_mu_thunk): New function.
36045         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
36046         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
36047         (FUNCTION_ARG): Delete incorrect comment.
36048
36049 2010-02-03  Jason Merrill  <jason@redhat.com>
36050
36051         PR c++/40138
36052         * fold-const.c (operand_equal_p): Handle erroneous types.
36053
36054 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
36055
36056         * config/h8300/h8300.md (can_delay): Fix attibute condition.
36057
36058 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
36059
36060         PR rtl-optimization/42941
36061         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
36062         of xmalloc.
36063
36064 2010-02-03  Jason Merrill  <jason@redhat.com>
36065
36066         PR c++/35652
36067         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
36068
36069 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
36070
36071         PR debug/42896
36072         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
36073         (cselib_reset_table): Renamed from...
36074         (cselib_reset_table_with_next_value): ... this.
36075         (cselib_get_next_uid): Renamed from...
36076         (cselib_get_next_unknown_value): ... this.
36077         * cselib.c (next_uid): Renamed from...
36078         (next_unknown_value): ... this.
36079         (cselib_clear_table): Adjust.
36080         (cselib_reset_table): Adjust.  Renamed from...
36081         (cselib_reset_table_with_next_value): ... this.
36082         (cselib_get_next_uid): Adjust.  Renamed from...
36083         (cselib_get_next_unknown_value): ... this.
36084         (get_value_hash): Use hash.
36085         (cselib_hash_rtx): Likewise.
36086         (new_cselib_val): Adjust.  Set and dump uid.
36087         (cselib_lookup_mem): Pass next_uid as hash.
36088         (cselib_subst_to_values): Likewise.
36089         (cselib_log_lookup): Dump uid.
36090         (cselib_lookup): Pass next_uid as hash.  Adjust.
36091         (cselib_process_insn): Adjust.
36092         (cselib_init): Initialize next_uid.
36093         (cselib_finish): Adjust.
36094         (dump_cselib_table): Likewise.
36095         * dse.c (canon_address): Dump value uid.
36096         * print-rtl.c (print_rtx): Print value uid.
36097         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
36098         (dvuid): New type.
36099         (dv_uid): New function, sort of renamed from...
36100         (dv_htab_hash): ... this, reimplemented in terms of it and...
36101         (dv_uid2hash): ... this.  New.
36102         (variable_htab_eq): Drop excess assertions.
36103         (tie_break_pointers): Removed.
36104         (canon_value_cmp): Compare uids.
36105         (variable_post_merge_New_vals): Print uids.
36106         (vt_add_function_parameters): Adjust.
36107         (vt_initialize): Reset table.  Adjust.
36108
36109 2010-02-03  Richard Guenther  <rguenther@suse.de>
36110
36111         PR tree-optimization/42944
36112         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
36113         (call_may_clobber_ref_p_1): Likewise.  Properly handle
36114         malloc and calloc clobbering errno.
36115
36116 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
36117
36118         * doc/invoke.texi: Fix name of sched1 dump.
36119
36120         * opts.c (decode_options): Set flag_tree_switch_conversion
36121         only conditionally on optimize >= 2.
36122
36123         * gcse.c: Assorted comment fixes in pass description.
36124
36125 2010-02-03  Anthony Green  <green@moxielogic.com>
36126
36127         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
36128         nop padding in order to maintain alignment of storage location of
36129         target function address.
36130         (moxie_trampoline_init): Store target function address at newly
36131         aligned location.
36132         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
36133         to 32.
36134         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
36135
36136 2010-02-03  Richard Guenther  <rguenther@suse.de>
36137
36138         PR middle-end/42927
36139         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
36140
36141 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36142
36143         * config.gcc: Reenable check for obsolete targets.
36144         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
36145         mips-sgi-irix6.[0-4]*.
36146
36147 2010-02-02  Nick Clifton  <nickc@redhat.com>
36148
36149         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
36150         constant size of 4 as being the same as 0.
36151         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
36152         can take values in the range 0..4.
36153
36154 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
36155
36156         PR java/41991
36157         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
36158         as _darwin10_Unwind_FindEnclosingFunction().
36159         * libgcc-libsystem.ver: New.
36160
36161 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
36162
36163         PR target/41399
36164         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
36165         implicitly set registers.
36166
36167 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
36168
36169         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
36170         (arm_override_options): Allow automatic selection of the thread
36171         pointer register if thumb2.
36172         (legitimize_pic_address): Improve code sequences for Thumb2.
36173         (arm_call_tls_get_addr): Likewise.
36174         (legitimize_tls_address): Likewise.
36175         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
36176         (pic_load_addr_32bit): ... this.  New named pattern.
36177         * thumb2.md (pic_load_addr_thumb2): Delete.
36178         (pic_load_dot_plus_four): Delete.
36179         (tls_load_dot_plus_four): New named pattern.
36180
36181 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36182
36183         PR libgomp/29986
36184         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
36185         Document fix for TLS bug.
36186
36187 2010-01-31  Richard Guenther  <rguenther@suse.de>
36188
36189         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
36190         conservatively correct.
36191
36192 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36193
36194         PR target/42850
36195         Revert:
36196         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36197
36198         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36199
36200 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36201
36202         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
36203
36204 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
36205
36206         * config.gcc: Adjust order of makefile fragments for mingw targets.
36207
36208 2010-01-31  Richard Guenther  <rguenther@suse.de>
36209
36210         PR middle-end/42898
36211         * gimplify.c (gimplify_init_constructor): For volatile LHS
36212         initialize a temporary.
36213
36214 2010-01-31  Matthias Klose  <doko@ubuntu.com>
36215
36216         * configure.ac: Fix __stack_chk_fail check for cross builds configured
36217         --with-headers
36218         * configure: Regenerate.
36219
36220 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
36221
36222         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36223         the same alias set and their sizes different constantness.
36224         (aliasing_component_refs_p): Revert 2009-10-24 change.
36225
36226 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36227
36228         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
36229         unused.
36230
36231 2010-01-29  Richard Guenther  <rguenther@suse.de>
36232
36233         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
36234         Assert we successfully updated the call.
36235
36236 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
36237
36238         PR rtl-optimization/42889
36239         * df.h (df_set_bb_dirty_nonlr): New prototype.
36240         * df-core.c (df_set_bb_dirty_nonlr): New function.
36241         * df-scan.c (df_insn_rescan): Call it instead of
36242         df_set_bb_dirty for DEBUG_INSNs.
36243
36244 2010-01-29  Richard Guenther  <rguenther@suse.de>
36245
36246         PR middle-end/37448
36247         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
36248         quadratic behavior in most cases.
36249
36250 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
36251
36252         PR target/42891
36253         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
36254         in the call to gen_x86_movsicc_0_m1.
36255
36256 2010-01-28  Richard Guenther  <rguenther@suse.de>
36257
36258         PR tree-optimization/42871
36259         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
36260
36261 2010-01-28  Richard Guenther  <rguenther@suse.de>
36262
36263         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
36264         into call arguments.
36265
36266 2010-01-28  Richard Guenther  <rguenther@suse.de>
36267
36268         PR middle-end/42883
36269         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
36270         the forwarder if the destination is an EH landing pad.
36271
36272 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
36273
36274         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
36275         block list passed to gimple_duplicate_sese_tail.
36276         (parallelize_loops): Avoid parallelization when the function
36277         has_nonlocal_label.
36278         Avoid parallelization when the preheader is IRREDUCIBLE.
36279         Try to optimize when estimated_loop_iterations_int is unresolved.
36280         Add the loop's location to the dump file.
36281         * tree-cfg.c (add_phi_args_after_redirect): Remove.
36282         (gimple_duplicate_sese_tail): Remove the check for the latch.
36283         Redirect nexits to the exit block.
36284         Remove handling of the incoming edges to the latch.
36285         Redirect the backedge from the copied latch to the exit bb.
36286
36287 2010-01-28  Michael Matz  <matz@suse.de>
36288
36289         PR target/42881
36290         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
36291         Wrap force_reg into a sequence, emit it before user.
36292
36293 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
36294
36295         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
36296         (arm_rev): New.
36297         (arm_legacy_rev): Likewise.
36298         (thumb_legacy_rev): Likewise.
36299
36300 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
36301
36302         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
36303         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
36304         on MEM's address failed, try avoid_constant_pool_reference and
36305         recurse if it returned something different.
36306         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
36307         address, try avoid_constant_pool_reference and recurse if it
36308         returned something different.
36309         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
36310         address and avoid_constant_pool_reference returned something
36311         different, don't set have_address.
36312
36313 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
36314
36315         PR debug/42861
36316         * var-tracking.c (val_store): Add modified argument, obey it.
36317         Adjust callers.
36318         (count_uses): Move down logging of main.
36319         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
36320         don't need resolution.
36321         (emit_notes_in_bb): Likewise.
36322
36323 2010-01-27  Richard Guenther  <rguenther@suse.de>
36324
36325         PR middle-end/42878
36326         * tree-inline.c (remap_decl): Delay remapping of SSA name
36327         default definitions until we need them.
36328
36329 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
36330
36331         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36332         (rs6000_delegitimize_address): New function.
36333
36334         * config/s390/s390.c (s390_delegitimize_address): Call
36335         delegitimize_mem_from_attrs.
36336
36337         PR middle-end/42874
36338         * tree-inline.c (cannot_copy_type_1): Removed.
36339         (copy_forbidden): Don't forbid copying of functions containing
36340         records/unions with variable length fields.
36341
36342 2010-01-27  Christian Bruel  <christian.bruel@st.com>
36343
36344         Revert:
36345         PR target/42841
36346         * config/sh/sh.c (find_barrier): Increase length for non delayed
36347         conditional branches.
36348
36349 2010-01-27  Matthias Klose  <doko@ubuntu.com>
36350
36351         * configure.ac (gnu-unique-object): Fix ldd version check.
36352         * configure: Regenerate.
36353
36354 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36355
36356         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
36357         HAVE_GNU_AS value.
36358         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
36359         Test for HAVE_GNU_AS value.
36360
36361 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36362
36363         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
36364         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
36365         INT64_TYPE): Define.
36366         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
36367         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
36368         INT_LEAST64_TYPE): Define.
36369         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
36370         UINT_LEAST64_TYPE): Define.
36371         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
36372         INT_FAST64_TYPE): Define.
36373         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
36374         UINT_FAST64_TYPE): Define.
36375         (INTMAX_TYPE, UINTMAX_TYPE): Define.
36376         (INTPTR_TYPE, UINTPTR_TYPE): Define.
36377         (SIG_ATOMIC_TYPE): Define.
36378
36379 2010-01-26  Richard Guenther  <rguenther@suse.de>
36380
36381         * df-scan.c (df_scan_set_bb_info): Remove assert.
36382         (df_insn_rescan_debug_internal): Merge asserts.
36383         (df_install_ref): Likewise.
36384         (df_mark_reg): Use bitmap_set_range.
36385         (df_hard_reg_used_p): Remove assert.
36386         (df_hard_reg_used_count): Likewise.
36387
36388 2010-01-26  Richard Guenther  <rguenther@suse.de>
36389
36390         PR rtl-optimization/42685
36391         * web.c (web_main): Ignore DEBUG_INSNs.
36392
36393 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
36394
36395         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
36396
36397         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
36398         Fix types of fndecl and arglist parameters.
36399
36400 2010-01-26  Richard Guenther  <rguenther@suse.de>
36401
36402         PR middle-end/42806
36403         * tree-eh.c (unsplit_eh): Skip debug insns.
36404
36405 2010-01-26  Richard Guenther  <rguenther@suse.de>
36406
36407         PR tree-optimization/42250
36408         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
36409
36410 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
36411
36412         PR fortran/42866
36413         * omp-low.c (expand_omp_sections): Only use single_pred if
36414         l2_bb is single_pred_p.
36415
36416 2010-01-25  Christian Bruel  <christian.bruel@st.com>
36417
36418         PR target/42841
36419         * config/sh/sh.c (find_barrier): Increase length for non delayed
36420         conditional branches.
36421         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
36422
36423 2010-01-24  David S. Miller  <davem@davemloft.net>
36424
36425         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
36426         define if not using GAS.
36427         * config/sparc/sparc.c (sparc_elf_asm_named_section):
36428         Likewise.  Delete SECTION_MERGE code, which is only applicable
36429         when using GAS.
36430
36431 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
36432
36433         PR c++/42748
36434         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
36435         mangling of va_list in system headers.
36436
36437 2010-01-23  Toon Moene  <toon@moene.org>
36438
36439         * tree-predcom.c (combine_chains): Return NULL, not false.
36440
36441 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
36442
36443         * tree-loop-distribution.c (distribute_loop): Fix declaration and
36444         initialization of variable res to agree with return type.
36445
36446 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
36447
36448         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
36449         * tree-sra.c: Add include of expr.h.
36450
36451 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
36452
36453         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
36454         insert the debug stmt on the single non-EH edge from the stmt.
36455
36456 2010-01-22  Richard Henderson  <rth@redhat.com>
36457
36458         PR tree-opt/42833
36459         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
36460         the RHS until after generate_subtree_copies has insertted its
36461         code before the current statement.
36462
36463 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
36464
36465         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
36466
36467         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
36468
36469 2010-01-21  Martin Jambor  <mjambor@suse.cz>
36470
36471         PR tree-optimization/42585
36472         * tree-sra.c (struct access): New field grp_total_scalarization.
36473         (dump_access): Dump the new field.
36474         (should_scalarize_away_bitmap): New variable.
36475         (cannot_scalarize_away_bitmap): Likewise.
36476         (sra_initialize): Allocate new bitmaps.
36477         (sra_deinitialize): Free new bitmaps.
36478         (create_access_1): New function.
36479         (create_access): Parts moved to create_access_1.
36480         (type_consists_of_records_p): New function.
36481         (completely_scalarize_record): Likewise.
36482         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
36483         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
36484         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
36485         access.
36486         (analyze_all_variable_accesses): Completely scalarize small eligible
36487         records.
36488
36489 2010-01-21  Martin Jambor  <mjambor@suse.cz>
36490
36491         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
36492
36493 2010-01-21  Andrew Haley  <aph@redhat.com>
36494
36495         * gcc.c (process_command): Move lang_specific_driver before
36496         setting cc_libexec_prefix.
36497
36498 2010-01-21  Richard Guenther  <rguenther@suse.de>
36499
36500         PR middle-end/19988
36501         * fold-const.c (negate_expr_p): Pretend only negative
36502         real constants are easily negatable.
36503
36504 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
36505             Jason Merrill  <jason@redhat.com>
36506
36507         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
36508         (TYPE_TRANSPARENT_AGGR): this, for union and record.
36509         * calls.c (initialize argument_information): Handle it.
36510         * c-common.c (handle_transparent_union_attribute): Use new name.
36511         * c-decl.c (finish_struct): Ditto.
36512         * c-typeck.c (type_lists_compatible_p): Ditto.
36513         (convert_for_assignment): Use new name and also handle record.
36514         * function.c (aggregate_value_p): Handle it.
36515         (pass_by_reference): Ditto.
36516         (assign_parm_data_types): Ditto.
36517         * print-tree.c (print_node): Ditto.
36518         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
36519         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
36520         * tree.c (first_field): New fn.
36521
36522 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
36523
36524         PR target/42818
36525         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
36526         even when linking statically, for now.
36527
36528 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
36529
36530         PR debug/42715
36531         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
36532         without a cselib val.
36533         (count_uses): Accept MO_VAL_SET with no val on stores.
36534         (add_stores): Likewise.
36535
36536 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36537
36538         * var-tracking.c (check_value_val): Add a compile time assertion.
36539         (dv_is_decl_p): Simplify.
36540         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
36541         gcc_assert if ENABLE_CHECKING.
36542
36543 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
36544
36545         PR debug/42782
36546         * var-tracking.c: Include tree-flow.h.
36547         (mem_dies_at_call): New.
36548         (dataflow_set_preserve_mem_locs): Use it.
36549         (dataflow_set_remove_mem_locs): Likewise.
36550         (dump_var): Renamed from dump_variable.  Adjust all callers.
36551         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
36552         * Makefile.in (var-tracking.o): Adjust deps.
36553
36554 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
36555
36556         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
36557
36558 2010-01-20  Richard Guenther  <rguenther@suse.de>
36559
36560         PR tree-optimization/42717
36561         * tree-ssa-dce.c (get_live_post_dom): Remove.
36562         (forward_edge_to_pdom): Take an arbitrary edge to copy
36563         degenerate PHI args from.
36564         (remove_dead_stmt): Use the first post-dominator even if it
36565         does not contain live statements as redirection destination.
36566
36567 2010-01-20  Richard Guenther  <rguenther@suse.de>
36568
36569         * tree-inline.c (estimate_num_insns): Handle EH builtins.
36570
36571 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36572
36573         * sel-sched.c (create_speculation_check): Remove set but not used
36574         variable twin.
36575         (try_transformation_cache): Remove set but not used variable ds.
36576         (calculate_privileged_insns): Remove set but not used variables
36577         cur_insn and min_spec_insn.
36578         (find_best_expr): Remove set but not used variable avail_n.
36579         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
36580         variable e.
36581         * cgraphunit.c (assemble_thunk): Remove set but not used variable
36582         false_label.
36583         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
36584         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
36585         new_scop_exit_edge.
36586
36587 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
36588
36589         PR bootstrap/42786
36590         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
36591         cpu types.  Add support for *-sse3 cpu types.
36592         (x86_64-*-*): Ditto.
36593
36594 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36595
36596         PR middle-end/42803
36597         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
36598         argument, call initializer_constant_valid_p_1 instead of
36599         initializer_constant_valid_p, pass CACHE to it, return NULL
36600         immediately if first call returns NULL.
36601         (initializer_constant_valid_p_1): New function.
36602         (initializer_constant_valid_p): Use it.
36603
36604 2010-01-20  Thomas Quinot  <quinot@adacore.com>
36605
36606         * tree.def (PLACEHOLDER_EXPR): Fix comment.
36607
36608 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36609
36610         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
36611         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
36612         (loc_list_from_tree): Don't handle unsigned division.  Handle
36613         signed modulo using DW_OP_{over,over,div,mul,minus}.
36614         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
36615         modulo instead of signed.
36616
36617 2010-01-20  DJ Delorie  <dj@redhat.com>
36618
36619         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
36620         (Fpa): Pass it
36621         (h8300_emit_stack_adjustment): Propogate it.
36622         (push): Pass it.
36623         (h8300_expand_prologue): Likewise.
36624         (h8300_expand_epilogue): Likewise.
36625
36626 2010-01-19  Michael Matz  <matz@suse.de>
36627
36628         PR tree-optimization/41783
36629         * tree-data-ref.c (toplevel): Include flags.h.
36630         (dump_data_dependence_relation):  Also dump the inputs if the
36631         result will be unknown.
36632         (split_constant_offset_1): Look through some conversions.
36633         * tree-predcom.c (determine_roots_comp): Restart a new chain if
36634         the offset from last element is too large.
36635         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
36636         (reassociate_to_the_same_stmt): Handle vector registers.
36637         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
36638         (e.g. conversions).
36639         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
36640         wide_prolog_niters argument, emit widening instructions.
36641         (vect_do_peeling_for_alignment): Adjust caller, use widened
36642         variant of the iteration cound.
36643         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
36644
36645 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36646
36647         PR target/38697
36648         * config/arm/neon-testgen.m (emit_automatics): New parameter
36649         features. Adjust for Fixed_return_reg feature.
36650         (test_intrinsic): Call emit_automatics with new feature.
36651         * config/arm/neon.ml: Update copyright years.
36652         (features): New Fixed_return_reg feature.
36653         (ops): Update feature for Vget_low.
36654
36655 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
36656
36657         PR tree-optimization/42719
36658         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
36659         stmt uses.
36660
36661         PR debug/42728
36662         * fwprop.c (all_uses_available_at): Return false if def_set dest
36663         is a REG that is used in def_insn.
36664
36665 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
36666
36667         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
36668
36669         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
36670         Add argument names.
36671
36672         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
36673
36674         * target.h (struct gcc_target) <secondary_reload>: Change type
36675         of last argument to secondary_reload_info *.
36676
36677 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
36678
36679         PR target/42774
36680         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
36681         memory references with unaligned offsets.  Remove CQImode handling.
36682         (unaligned_memory_operand): Return 1 for memory references with
36683         unaligned offsets.  Remove CQImode handling.
36684
36685 2010-01-18  Richard Guenther  <rguenther@suse.de>
36686
36687         PR middle-end/39954
36688         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
36689         builtin calls.
36690
36691 2010-01-18  Richard Guenther  <rguenther@suse.de>
36692
36693         PR tree-optimization/42781
36694         * tree-ssa-structalias.c (find_what_var_points_to): Skip
36695         restrict processing only if the original variable was artificial.
36696
36697 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
36698
36699         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
36700         find number of popped argument bytes.
36701
36702         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
36703         Fix the text that describes the return value for invalid insns.
36704
36705         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
36706
36707         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
36708         Clarify what 'cost of the -dependence' is.  Fix quoting.
36709
36710         * toplev.c (default_get_pch_validity): Rename argument to "sz".
36711         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
36712
36713 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
36714
36715         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36716         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
36717
36718 2010-01-17  Richard Guenther  <rguenther@suse.de>
36719
36720         PR middle-end/42248
36721         * function.c (split_complex_args): Take a VEC to modify.
36722         (assign_parms_augmented_arg_list): Build a VEC instead of
36723         a chain of PARM_DECLs.
36724         (assign_parms_unsplit_complex): Take a VEC of arguments.
36725         Do not fixup unmodified parms.
36726         (assign_parms): Deal with the VEC.
36727         (gimplify_parameters): Likewise.
36728
36729 2010-01-17  Richard Guenther  <rguenther@suse.de>
36730
36731         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
36732         node existence check.
36733         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
36734         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
36735         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
36736         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
36737         (gimple_execute_on_growing_pred): Likewise.
36738
36739 2010-01-17  Richard Guenther  <rguenther@suse.de>
36740
36741         PR tree-optimization/42773
36742         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
36743         (compute_antic_aux): Likewise.
36744         (compute_partial_antic_aux): Likewise.
36745
36746 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
36747
36748         PR debug/42767
36749         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
36750         and US_TRUNCATE.
36751
36752 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
36753
36754         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
36755         appearance.
36756
36757         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
36758         Fix markup for strict argument.
36759
36760         (TARGET_SCHED_REORDER2): Fix argument types.
36761
36762         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
36763         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
36764
36765         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
36766         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
36767
36768         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
36769         Add argument name.
36770
36771         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
36772         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
36773         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
36774         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
36775         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
36776
36777         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
36778
36779         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
36780
36781         (TARGET_ASM_RELOC_RW_MASK): Add return type.
36782         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
36783
36784         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
36785
36786         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
36787         Use prototype.
36788
36789         (TARGET_ASM_NAMED_SECTION): Fix argument list.
36790
36791         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
36792         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
36793
36794         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
36795
36796         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
36797
36798         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
36799         referring to it.  Fix language.
36800
36801         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
36802
36803         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
36804
36805         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
36806
36807         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
36808
36809         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
36810         '@var{stream}.  Remove stray 'and'.
36811
36812         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
36813
36814         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
36815
36816         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
36817
36818         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
36819         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
36820
36821         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
36822         Fix description of return value.
36823         Rename argument "sz" to "len."
36824
36825         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
36826         Clarify meaning of 'true' return value.
36827
36828         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
36829
36830         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
36831         rep_mode versus mode_rep.
36832
36833         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
36834
36835         (TARGET_BUILTIN_DECL): Fix name.
36836
36837         (TARGET_COMMUTATIVE_P): Fix type of first argument.
36838
36839         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
36840
36841         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
36842
36843         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
36844
36845         (TARGET_RELAXED_ORDERING): Use @deftypevr.
36846
36847         (TARGET_GET_DRAP_RTX): Note that this is a hook.
36848         Clarify language.
36849
36850         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
36851         Rename argument tm_fn to md_fn.
36852
36853         (TARGET_OPTION_PRINT): Fix argument list.
36854
36855 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
36856
36857         PR target/42664
36858         * config/i386/i386.c (ix86_fixup_binary_operands):
36859         Revert FMA4 fixup of operands.
36860
36861 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36862
36863         PR other/42525
36864         * Makefile.in (write_entries_to_file, install-plugin):
36865         Use \012 instead of \n with tr.
36866
36867 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
36868
36869         * configure.ac (HAVE_AS_REF): New C macro.
36870         * configure: Regenerate.
36871         * config.in: Likewise.
36872         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
36873         if HAVE_AS_REF.
36874         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
36875         if HAVE_AS_REF.
36876
36877 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
36878
36879         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
36880
36881         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
36882
36883         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
36884
36885         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
36886
36887         (TARGET_IN_SMALL_DATA_P): Fix argument type.
36888
36889         (TARGET_BINDS_LOCAL_P): Fix argument type.
36890
36891         (TARGET_ASM_FILE_END): Use prototype.
36892
36893         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
36894
36895         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
36896
36897         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
36898
36899         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
36900
36901         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
36902         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
36903
36904         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
36905         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
36906
36907         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
36908         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
36909         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
36910         (TARGET_ADDR_SPACE_CONVERT): Likewise.
36911
36912         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
36913
36914         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
36915
36916         (TARGET_INIT_BUILTINS): Use prototype.
36917
36918         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
36919         Put 'const char *' in braces.  Fix parameter types.
36920         (TARGET_INVALID_CONVERSION): Fix parameter types.
36921         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
36922         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
36923
36924         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
36925         Fix argument type.
36926
36927         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
36928
36929         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
36930
36931 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
36932
36933         * doc/tm.texi (TARGET_HELP): Fix return type.
36934
36935         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
36936         in braces.  Fix argument types.
36937
36938         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
36939
36940         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
36941
36942         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
36943
36944         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
36945         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
36946
36947         (TARGET_MANGLE_TYPE): Fix argument types.
36948
36949         (TARGET_IRA_COVER_CLASSES): Use prototype.
36950
36951         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
36952
36953         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
36954
36955         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
36956
36957         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
36958
36959         (TARGET_CALLEE_COPIES): Fix argument types.
36960
36961         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
36962
36963         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
36964
36965         (TARGET_FUNCTION_VALUE): Fix argument types.
36966
36967         (TARGET_RETURN_IN_MSB): Fix argument type.
36968
36969         (TARGET_RETURN_IN_MEMORY): Fix argument types.
36970
36971         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
36972
36973         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
36974
36975         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
36976         agree with return type.
36977
36978         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
36979
36980 2010-01-15  Jing Yu  <jingyu@google.com>
36981
36982         PR rtl-optimization/42691
36983         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
36984         a pseudo to a constant and are merged, and adjust comments.
36985
36986 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
36987
36988         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
36989
36990 2010-01-15  Richard Guenther  <rguenther@suse.de>
36991
36992         PR middle-end/42739
36993         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
36994         labels of computed or non-local gotos to the destination.
36995         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
36996         landing pad label is the first label.
36997
36998 2010-01-15  Richard Guenther  <rguenther@suse.de>
36999
37000         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
37001
37002 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
37003
37004         PR target/42747
37005         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
37006         to allow generation of the xssqrtdp instruction on power7.
37007         (sqrtdf2_fpr): Ditto.
37008
37009 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37010
37011         PR middle-end/42674
37012         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
37013         functions with noreturn attribute.
37014
37015         PR c++/42608
37016         * varasm.c (declare_weak): Add weak attribute to decl if it
37017         doesn't have one already.
37018         (assemble_external): Only add decls to weak_decls if they also
37019         have weak attribute.
37020
37021 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
37022
37023         * var-tracking.c (var_reg_delete): Don't delete the association
37024         between REGs and values or one-part variables if the register
37025         isn't clobbered.
37026
37027 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37028
37029         PR debug/42657
37030         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
37031         because its first operand is a non-localized variable.
37032
37033 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37034
37035         PR tree-optimization/42706
37036         * tree-sra.c (encountered_recursive_call): New variable.
37037         (encountered_unchangable_recursive_call): Likewise.
37038         (sra_initialize): Initialize both new variables.
37039         (callsite_has_enough_arguments_p): New function.
37040         (scan_function): Call decl and flags check only for IPA-SRA, check
37041         whether there is a recursive call and whether it has enough arguments.
37042         (all_callers_have_enough_arguments_p): New function.
37043         (convert_callers): Look for recursive calls only when
37044         encountered_recursive_call is set.
37045         (ipa_early_sra): Bail out either if
37046         !all_callers_have_enough_arguments_p or
37047         encountered_unchangable_recursive_call.
37048
37049 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37050
37051         * sel-sched.c: Add 2010 to copyright years.
37052         * sel-sched-ir.c: Likewise.
37053         * sel-sched-ir.h: Likewise.
37054
37055 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37056
37057         PR tree-optimization/42714
37058         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
37059         constructors specially.
37060
37061 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37062
37063         * config/i386/drivers-i386.c (detect_caches_intel):
37064         Add l2sizekb parameter and fill in.
37065         (host_detect_local_cpu): Add l2sizekb, fill in.
37066         Add Atom small cache heuristic.
37067
37068 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37069
37070         * config/i386/drivers-i386.c (detect_caches_cpuid4):
37071         Add level3 parameter and fill in.
37072         (detect_caches_intel): Handle level3 cache.
37073
37074 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37075
37076         * config/i386/drivers-i386.c (host_detect_local_cpu):
37077         Fix core duo detection.
37078
37079 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37080
37081         * config/i386/drivers-i386.c (host_detect_local_cpu):
37082         Fix Atom detection.
37083
37084 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37085
37086         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
37087         (rs6000_variable_issue_1): this.  Use...
37088         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
37089
37090 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37091
37092         * sel-sched-ir.c (sel_restore_other_notes): Rename to
37093         sel_restore_notes.  Update all callers.  Call reemit_notes
37094         for all insns.
37095
37096 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37097
37098         PR rtl-optimization/42246
37099         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
37100         loops.
37101
37102 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37103
37104         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
37105         all successors is the same as number of successors in current region.
37106
37107 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37108
37109         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
37110         to rename is not separable.  Otherwise check that its LHS is not NULL.
37111
37112 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37113
37114         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
37115
37116 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37117
37118         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
37119         available registers when failed to discover LHS register class.
37120         Fix indentation.  Update comment.
37121
37122 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37123             Alexander Monakov  <amonakov@ispras.ru>
37124
37125         PR rtl-optimization/42389
37126         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
37127         to can_issue_more.
37128         (advance_state_on_fence): Likewise.
37129         (sel_target_adjust_priority): Print debug output only when
37130         sched_verbose >= 4, not 2.
37131         (get_expr_cost): Do not issue all unique insns on the next cycle.
37132         (fill_insns): Initialize can_issue_more from the value saved
37133         with the fence.
37134         * sel-sched-ir.c (flist_add): New parameter issue_more.
37135         Init FENCE_ISSUE_MORE with it.
37136         (merge_fences): Likewise.
37137         (init_fences): Update call to flist_add.
37138         (add_to_fences, add_clean_fence_to_fences)
37139         (add_dirty_fence_to_fences): Likewise.
37140         (move_fence_to_fences): Update call to merge_fences.
37141         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
37142         sched groups.
37143         * sel-sched-ir.h (struct _fence): New field issue_more.
37144         (FENCE_ISSUE_MORE): New accessor macro.
37145
37146 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37147
37148         PR rtl-optimization/42388
37149         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
37150         that have no predecessors nor successors.  Do not call move_bb_info
37151         for empty blocks outside of current region.
37152
37153 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37154
37155         PR rtl-optimization/42294
37156         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
37157         * sel-sched.c (move_exprs_to_boundary): Transitively add all
37158         originators' originators.
37159
37160 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37161
37162         PR rtl-optimization/39453
37163         PR rtl-optimization/42246
37164         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
37165         for pipelining_p.
37166         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
37167
37168 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37169             Alexander Monakov  <amonakov@ispras.ru>
37170
37171         PR middle-end/42245
37172         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
37173         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
37174         argument.  Update all callers.
37175         (tidy_control_flow): ... and here.  Recompute topological order
37176         of basic blocks in region if necessary.
37177         (sel_redirect_edge_and_branch): Change return type.  Return true
37178         if topological order might have been invalidated.
37179         (purge_empty_blocks): Export and move from...
37180         * sel-sched.c (purge_empty_blocks): ... here.
37181         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
37182         (maybe_tidy_empty_bb): Delete prototype.
37183         (purge_empty_blocks): Declare.
37184
37185 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37186
37187         PR rtl-optimization/42249
37188         * sel-sched.c (try_replace_dest_reg): When chosen register
37189         and original register is the same, do not bail out early, but
37190         still check all original insns for validity of replacing destination
37191         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
37192         in this case.
37193
37194 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37195
37196         PR c/42721
37197         Port from no-undefined-overflow branch:
37198         2009-03-09  Richard Guenther  <rguenther@suse.de>
37199
37200         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
37201
37202 2010-01-14  Richard Guenther  <rguenther@suse.de>
37203
37204         PR lto/42665
37205         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
37206
37207 2010-01-14  Ira Rosen  <irar@il.ibm.com>
37208
37209         PR tree-optimization/42709
37210         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
37211         as scalar type in creation of constant vector operand.
37212
37213 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37214
37215         PR testsuite/42414
37216         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
37217         (check-parallel-%): Match `testsuite' directory component only
37218         at the end.
37219
37220 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
37221
37222         PR translation/39521
37223         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
37224         strings with _().
37225
37226 2010-01-13  Richard Guenther  <rguenther@suse.de>
37227
37228         PR tree-optimization/42730
37229         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
37230         offset zero.
37231
37232 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
37233
37234         PR target/pr42542
37235         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
37236         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
37237         them signed.
37238
37239 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
37240
37241         * config/bfin/libgcc-bfin.ver: Regenerate based on current
37242         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
37243         ___umulsi3_highpart.
37244
37245         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
37246         rather than schedule_insns if the pass is enabled.
37247
37248 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37249
37250         PR tree-optimization/42704
37251         * tree-sra.c (sra_modify_assign): Do not delete assignments to
37252         SSA_NAMEs.
37253
37254 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37255
37256         PR tree-optimization/42703
37257         * tree-sra.c (analyze_access_subtree): Check that we can build a
37258         reference to the original data within the aggregate.
37259
37260 2010-01-13  Richard Guenther  <rguenther@suse.de>
37261
37262         PR tree-optimization/42705
37263         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
37264
37265 2010-01-13  Richard Guenther  <rguenther@suse.de>
37266
37267         PR middle-end/42716
37268         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
37269
37270 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
37271
37272         PR debug/41371
37273         * var-tracking.c (values_to_unmark): New variable.
37274         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37275         values_to_unmark vector.  Moved body to...
37276         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
37277         instead queue it into values_to_unmark vector.
37278         (vt_find_locations): Free values_to_unmark vector.
37279
37280 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
37281
37282         * config/s390/s390.c (override_options): Set
37283         default of max-pending-list-length to 256
37284
37285 2010-01-13  Richard Guenther  <rguenther@suse.de>
37286
37287         PR lto/42678
37288         * tree-pass.h (PROP_gimple_lcx): New.
37289         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
37290         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
37291         before the final cleanup_eh.
37292         (dump_properties): Dump PROP_gimple_lcx.
37293         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
37294         (tree_lower_complex_O0): Remove.
37295         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
37296         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
37297         tree_lower_complex, schedule TODO_update_ssa.
37298         * lto-streamer-out.c (output_function): Stream the functions
37299         properties.
37300         * lto-streamer-in.c (input_function): Likewise.
37301         (lto_read_body): Do not override them here.
37302
37303 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
37304
37305         PR c/42708
37306         * c-typeck.c (build_c_cast): Fold value cast to union type before
37307         wrapping it in a CONSTRUCTOR.
37308
37309 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
37310
37311         PR rtl-optimization/42699
37312         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
37313         involved.
37314
37315 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37316
37317         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37318         SUBTARGET_WARN_UNUSED_SPEC): Move ...
37319         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37320         SUBTARGET_WARN_UNUSED_SPEC): ... here
37321         * config/mips/iris5.h (LIBGCC_SPEC): Define.
37322
37323 2010-01-12  Julian Brown  <julian@codesourcery.com>
37324
37325         * config/arm/neon-schedgen.ml (Utils): Don't try to
37326         open missing module.
37327         (find_with_result): New.
37328
37329 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
37330
37331         PR debug/42662
37332         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
37333         sharing when canonicalizing ({lt,ge}u (plus a b) b).
37334
37335         PR tree-optimization/42645
37336         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
37337         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
37338         decl_map, set processing_debug_stmt to -1 and return name without
37339         any remapping.
37340
37341 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
37342
37343         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
37344         binutils version, and reword target configuration description.
37345
37346 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
37347
37348         * config/avr/avr.h (LINKER_NAME): Remove.
37349
37350 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
37351
37352         PR target/42416
37353         * config/rs6000/rs6000.c (rs6000_override_options): On targets
37354         that support VSX, warn for -mno-altivec if vsx is not disabled,
37355         and disable vsx.
37356
37357 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
37358             Shujing Zhao  <pearly.zhao@oracle.com>
37359
37360         PR translation/42469
37361         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
37362         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
37363         character between option name and help text.
37364         * c.opt (imultilib): Likewise.
37365
37366 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
37367
37368         * lto-streamer-out.c (output_unreferenced_globals): Output static
37369         variables.
37370
37371 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
37372
37373         PR rtl-optimization/42621
37374         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
37375         optimizing for size.
37376         (duplicate_computed_gotos): Remove now-redundant check.
37377
37378 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
37379
37380         PR target/37454
37381         * configure.ac: Save and restore LDFLAGS and LIBS
37382         * configure: Regenerate.
37383
37384 2010-01-10  Richard Guenther  <rguenther@suse.de>
37385
37386         PR middle-end/42667
37387         * builtins.c (fold_builtin_strlen): Add type argument and
37388         convert the resulting length to it.
37389         (fold_builtin_1): Adjust.
37390
37391 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
37392
37393         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
37394         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
37395         1 insn.
37396         (num_insns_constant_wide): Adjust for that change.
37397
37398 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37399
37400         PR debug/42631
37401         * web.c (union_defs): Add used argument, to combine uses of
37402         uninitialized regs.
37403         (entry_register): Adjust type and tests of used argument.
37404         (web_main): Widen used for new use.  Pass it to union_defs.
37405         * df.h (union_defs): Adjust prototype.
37406
37407 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37408
37409         PR debug/42630
37410         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
37411         uses in new incoming argument.  Free body.
37412         (reset_debug_uses_in_loop): New.
37413         (analyze_insn_to_expand_var): Call the latter if the former found
37414         anything.  Fix whitespace.  Reject invalid dest overlaps before
37415         going through all insns in the loop.
37416
37417 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37418
37419         PR debug/42629
37420         * haifa-sched.c (dying_use_p): Debug insns don't count.
37421
37422 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37423
37424         PR middle-end/42363
37425         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
37426         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
37427         (verify_gimple_call): Reject LHS in noreturn calls.
37428
37429 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37430
37431         PR debug/42604
37432         PR debug/42395
37433         * tree-vect-loop-manip.c (adjust_info): New type.
37434         (adjust_vec): New pointer to vector.
37435         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
37436         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
37437         (slpeel_update_phis_for_duplicate_loop): Use them.
37438         (slpeel_update_phi_nodes_for_guard1): Likewise.
37439         (slpeel_update_phi_nodes_for_guard2): Likewise.
37440         (slpeel_tree_peel_loop_to_edge): Likewise.
37441         (vect_update_ivs_after_vectorizer): Likewise.
37442
37443 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37444
37445         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
37446         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
37447
37448 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37449
37450         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
37451         bogus uninitialized warning.
37452
37453 2010-01-09  Richard Guenther  <rguenther@suse.de>
37454
37455         PR middle-end/42512
37456         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
37457         the evolution is compatible with the initial condition.
37458
37459 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
37460
37461         * gcc.c (process_command): Update copyright notice dates.
37462         * gcov.c (print_version): Likewise.
37463         * gcov-dump.c (print_version): Likewise.
37464         * mips-tfile.c (main): Likewise.
37465         * mips-tdump.c (main): Likewise.
37466
37467 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
37468
37469         PR target/41885
37470         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
37471         (rotlhi3): Delete.
37472         (rotlhi3_8): Delete.
37473         (rotlsi3): Delete.
37474         (rotlsi3_8): Delete.
37475         (rotlsi3_16): Delete.
37476         (rotlsi3_24): Delete.
37477         (rotl<mode>3): New.
37478         (*rotw<mode>3): New.
37479         (*rotb<mode>3): New.
37480         * config/avr/avr.c (avr_rotate_bytes): New function.
37481         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
37482
37483 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
37484
37485         PR target/37454
37486         * configure.ac: Modify -rdynamic check.
37487         * configure: Regenerate.
37488
37489 2010-01-08  DJ Delorie  <dj@redhat.com>
37490
37491         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
37492         register popping order.
37493
37494 2010-01-08  Richard Guenther  <rguenther@suse.de>
37495
37496         PR lto/42528
37497         * c.opt (fsigned-char): Also let LTO handle this option.
37498         (funsigned-char): Likewise.
37499
37500 2010-01-07  Richard Guenther  <rguenther@suse.de>
37501
37502         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
37503         (gimple_op): Likewise.
37504         (gimple_op_ptr): Likewise.
37505         (gimple_assign_set_lhs): Remove gcc_assert.
37506         (gimple_assign_set_rhs1): Likewise.
37507         (gimple_assign_set_rhs2): Likewise.
37508         (gimple_call_set_lhs): Likewise.
37509         (gimple_call_set_fn): Likewise.
37510         (gimple_call_set_fndecl): Likewise.
37511         (gimple_call_fndecl): Likewise.
37512         (gimple_call_return_type): Likewise.
37513         (gimple_call_set_chain): Likewise.
37514         (gimple_call_num_args): Likewise.
37515         (gimple_call_set_arg): Likewise.
37516         (gimple_cond_set_code): Likewise.
37517         (gimple_cond_set_lhs): Likewise.
37518         (gimple_cond_set_rhs): Likewise.
37519         (gimple_cond_set_true_label): Likewise.
37520         (gimple_cond_set_false_label): Likewise.
37521         (gimple_label_set_label): Likewise.
37522         (gimple_goto_set_dest): Likewise.
37523         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
37524         (gimple_debug_bind_get_value): Likewise.
37525         (gimple_debug_bind_get_value_ptr): Likewise.
37526         (gimple_debug_bind_set_var): Likewise.
37527         (gimple_debug_bind_set_value): Likewise.
37528         (gimple_debug_bind_reset_value): Likewise.
37529         (gimple_debug_bind_has_value_p): Likewise.
37530         (gimple_return_retval_ptr): Remove gcc_assert.
37531         (gimple_return_retval): Likewise.
37532         (gimple_return_set_retval): Likewise.
37533         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
37534         (safe_referenced_var_iterator): Remove.
37535         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
37536         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
37537         (fill_referenced_var_vec): Remove.
37538         (first_readonly_imm_use): Remove redundant gcc_assert.
37539         (phi_arg_index_from_use): Combine gcc_asserts.
37540         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
37541         (first_imm_use_stmt): Remove redundant gcc_assert.
37542         * tree-cfg.c (verify_gimple_call): Verify function and chain
37543         operands.  Verify arguments.
37544         (verify_types_in_gimple_stmt): Verify condition code and labels.
37545
37546 2010-01-07  Richard Guenther  <rguenther@suse.de>
37547
37548         PR tree-optimization/42641
37549         * sese.c (rename_map_elt_info): Use the SSA name version, do
37550         not hash pointers.
37551
37552 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
37553
37554         PR tree-optimization/42625
37555         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
37556         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
37557
37558 2010-01-07  Duncan Sands  <baldrick@free.fr>
37559
37560         * Makefile.in (PLUGIN_HEADERS): Add version.h.
37561
37562 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
37563
37564         PR target/42511
37565         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
37566         note itself is not function_invariant_p.
37567
37568 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
37569
37570         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
37571         Do not add the DF_NOTE problem.
37572         * store-motion.c (execute_rtl_store_motion): Likewise.
37573
37574 2010-01-07  Martin Jambor  <mjambor@suse.cz>
37575
37576         PR tree-optimization/42157
37577         * tree-sra.c (compare_access_positions): Stabilize sort if both
37578         accesses have integer types, return zero immediately if they are the
37579         same.
37580
37581 2010-01-06  Richard Henderson  <rth@redhat.com>
37582
37583         PR middle-end/41883
37584         * haifa-sched.c (add_to_note_list): Merge into ...
37585         (concat_note_lists): ... here, and ...
37586         (unlink_other_notes, rm_other_notes): Merge into...
37587         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
37588         NOTE_INSN_EPILOGUE_BEG.
37589
37590 2010-01-06  Richard Guenther  <rguenther@suse.de>
37591
37592         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
37593         not inline regular functions into always-inline functions.
37594
37595 2010-01-06  Nick Clifton  <nickc@redhat.com>
37596
37597         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
37598         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
37599         used together.
37600         (OVERRIDE_OPTIONS): Delete.
37601         (OPTIMIZATION_OPTIONS): Define.
37602         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
37603         * config/rx/rx.c (rx_handle_option): Issue an error message if
37604         -mcpu=rx200 and -fpu are used together.
37605         (rx_set_optimization_options): New function.  Issue an error
37606         message if an optimization attribute attempts to reset the FPU/
37607         math optimization pairing.
37608         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
37609         * config/rx/rx.opt: Set the default to 32-bit doubles.
37610         * config/rx/t-rx: Add multilibs for -nofpu option.
37611         * doc/invoke.texi: Update documentation of RX options.
37612
37613 2010-01-06  Richard Guenther  <rguenther@suse.de>
37614
37615         * tree-ssa-pre.c (name_to_id): New global.
37616         (alloc_expression_id): Simplify SSA name handling.
37617         (lookup_expression_id): Likewise.
37618         (init_pre): Zero name_to_id.
37619         (fini_pre): Free it.
37620
37621 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
37622
37623         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
37624
37625 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
37626
37627         PR target/42542
37628         * config/i386/sse.md (smaxv2di3): New.
37629         (umaxv2di3): Likewise.
37630         (sminv2di3): Likewise.
37631         (uminv2di3): Likewise.
37632
37633 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37634
37635         PR target/42564
37636         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
37637         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
37638         (legitimize_tls_address): Likewise.
37639         (sparc_tls_referenced_p): Likewise.
37640         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
37641         and adjust calls to legitimize_pic_address.
37642         (legitimate_constant_p) Use sparc_tls_referenced_p.
37643         (legitimate_pic_operand_p): Likewise.
37644         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
37645         (sparc_tls_symbol_ref_1): Delete.
37646         (sparc_tls_referenced_p): Make static, recognize specific patterns.
37647         (legitimize_tls_address): Make static, handle CONST patterns.
37648         (legitimize_pic_address): Make static, remove unused parameter and
37649         adjust recursive calls.
37650         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
37651         and adjust call to legitimize_pic_address.
37652         (sparc_output_mi_thunk): Likewise.
37653
37654 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
37655             H.J. Lu  <hongjiu.lu@intel.com>
37656
37657         PR target/42542
37658         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
37659         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
37660         operands to make them signed.
37661
37662         Revert:
37663         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
37664
37665         PR target/42542
37666         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
37667         GTU to GT for V4SI and V2DI.
37668
37669         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
37670         (umin<mode>3): Removed.
37671         (uminv8hi3): New.
37672         (uminv4si3): Likewise.
37673
37674 2010-01-05  Martin Jambor  <mjambor@suse.cz>
37675
37676         PR tree-optimization/42462
37677         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
37678         current_function_decl to helper functions and macros.
37679
37680 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37681
37682         PR bootstrap/41771
37683         * flags.h: Don't include real.h.
37684         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
37685         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
37686         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
37687         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
37688         * dominance.c: Update copyright.
37689         * gimple.c (walk_gimple_op): Remove inline.
37690         * tree-ssa-reassoc.c: Include real.h.
37691         * Makefile.in (FLAGS_H): Remove $(REAL_H).
37692         (tree-ssa-reassoc.o): Depend on $(REAL_H).
37693
37694 2010-01-05  Nick Clifton  <nickc@redhat.com>
37695
37696         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
37697         register to push into the stack frame when the accumulator has to
37698         be saved during interrupts.
37699
37700 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
37701
37702         * doc/invoke.texi: Remove the documentation about option
37703         -Wunreachable-code.
37704         * common.opt (Wunreachable-code):  Preserved for backward
37705         compatibility.
37706         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
37707         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
37708         the backward compatibility flag section.
37709
37710 2010-01-05  Richard Guenther  <rguenther@suse.de>
37711
37712         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
37713
37714 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
37715
37716         PR other/42611
37717         * cfgexpand.c (expand_one_var): Diagnose too large variables.
37718
37719         PR tree-optimization/42508
37720         * tree-sra.c (convert_callers): Check for recursive call
37721         by comparing cgraph nodes instead of decls.
37722         (modify_function): Call ipa_modify_formal_parameters also
37723         on all same_body aliases.
37724
37725         * cgraphunit.c (cgraph_materialize_all_clones): Compare
37726         cgraph nodes when checking for same_body aliases.
37727
37728 2010-01-05  Richard Guenther  <rguenther@suse.de>
37729
37730         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
37731         allocation and lookup.
37732         (get_or_alloc_expr_for_constant): Likewise.
37733         (phi_translate): Sink allocation.
37734
37735 2010-01-04  Richard Guenther  <rguenther@suse.de>
37736
37737         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
37738         a new entry only if needed.
37739         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
37740         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
37741         hashtable lookup.
37742         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
37743         the result array.
37744         (phi_translate): Handle CONSTANTs early.
37745
37746 2010-01-04  Martin Jambor  <mjambor@suse.cz>
37747
37748         PR tree-optimization/42398
37749         * tree-sra.c (struct access): Removed flag grp_different_types.
37750         (dump_access): Do not dump the removed flag.
37751         (sort_and_splice_var_accesses): Do not set the removed flag.
37752         (sra_modify_expr): Check for type compatibility directly.
37753
37754 2010-01-04  Martin Jambor  <mjambor@suse.cz>
37755
37756         PR tree-optimization/42366
37757         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
37758         edges with variable number of parameters.
37759         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
37760         flag instead of asserting it.
37761         (ipa_read_node_info): Read uses_analysis_done flag.
37762
37763 2010-01-04  Richard Guenther  <rguenther@suse.de>
37764
37765         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
37766         iterative_hash_* as intended.
37767         (vn_reference_compute_hash): Likewise.  Simplify hashing
37768         SSA names.
37769         (vn_reference_lookup_2): Likewise.
37770         (vn_nary_op_compute_hash): Likewise.
37771         (vn_phi_compute_hash): Likewise.
37772         (expressions_equal_p): Remove strange code.
37773         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
37774         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
37775         (bitmap_insert_into_set_1): Take value-id as parameter.
37776         (add_to_value): Pass it.
37777         (bitmap_insert_into_set): Likewise.
37778         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
37779
37780 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
37781
37782         PR driver/42442
37783         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
37784         (do_self_spec): For switches with SWITCH_IGNORE set set also
37785         SWITCH_IGNORE_PERMANENTLY.
37786         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
37787         of SWITCH_IGNORE.
37788
37789 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
37790
37791         * lto-streamer-out.c (output_unreferenced_globals): Output the full
37792         tree of an unreferenced global var.
37793
37794 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
37795
37796         PR target/42542
37797         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
37798         GTU to GT for V4SI and V2DI.
37799
37800         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
37801         (umin<mode>3): Removed.
37802         (uminv8hi3): New.
37803         (uminv4si3): Likewise.
37804
37805 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
37806
37807         PR lto/42581
37808         * collect2.c (main): Turn on trace in collect2 if -v is passed
37809         to gcc with LTO.
37810
37811 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
37812
37813         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
37814         description of expression operand.
37815
37816 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
37817
37818         * configure.ac: Add install-html to target_list for Make-hooks.
37819         * configure: Regenerate.
37820         * fortran/Make-lang.in (F95_HTMLFILES): New.
37821         (fortran.html): Use it.
37822         (fortran.install-html): New.
37823         * Makefile.in (install-html): Add lang.install-html.
37824         * java/Make-lang.in (JAVA_HTMLFILES): New.
37825         (java.html): Use it.
37826         (java.install-html): New.
37827         * objc/Make-lang.in (objc.install-html): New.
37828         * objcp/Make-lang.in (obj-c++.install-html): New.
37829         * cp/Make-lang.in (c++.install-html): New.
37830         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
37831         * lto/Make-lang.in (lto.install-html): New.
37832
37833 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
37834
37835         PR lto/42520
37836         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
37837
37838 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
37839
37840         PR rtl-optimization/41862
37841         * store-motion.c (store_killed_in_insn, compute_store_table,
37842         remove_reachable_equiv_notes, replace_store_insn,
37843         build_store_vectors): Ignore all DEBUG_INSNs.
37844
37845 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
37846
37847         PR lto/41564
37848         * common.opt: Add dumpdir.
37849
37850         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
37851         isn't specified.
37852         (option_map): Add --dumpdir.
37853
37854         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
37855
37856         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
37857
37858         * opts.c (decode_options): Try dump_dir_name first if
37859         dump_base_name isn't an absolute path.
37860         (common_handle_option): Handle OPT_dumpdir.
37861
37862         * toplev.c (dump_dir_name): New.
37863         (print_switch_values): Also ignore -dumpdir.
37864
37865         * toplev.h (dump_dir_name): New.
37866
37867 2010-01-03  Richard Guenther  <rguenther@suse.de>
37868
37869         PR tree-optimization/42589
37870         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
37871         double-word expansion of bswap32.
37872
37873 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
37874
37875         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
37876         with BLOCK_FOR_INSN.
37877         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
37878         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
37879         noce_process_if_block): Likewise.
37880         * gcse.c (compute_local_properties, insert_expr_in_table,
37881         insert_set_in_table, canon_list_insert, find_avail_set,
37882         pre_insert_copy_insn): Likewise.
37883
37884         * basic-block.h (BLOCK_NUM): Move from here...
37885         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
37886
37887 2010-01-03  Richard Guenther  <rguenther@suse.de>
37888
37889         PR tree-optimization/42438
37890         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
37891         contains_may_not_return_call flag.
37892         (BB_MAY_NOTRETURN): New.
37893         (valid_in_sets): Trapping nary operations are not valid
37894         in blocks that may not return.
37895         (insert_into_preds_of_block): Remove check for trapping expressions.
37896         (compute_avail): Compute also BB_MAY_NOTRETURN.
37897
37898 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
37899
37900         * doc/invoke.texi: Add 2010 to copyright years.
37901
37902 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
37903
37904         * config/sparc/sparc.c: Fix formatting nits.
37905
37906 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
37907             Alexander Monakov  <amonakov@ispras.ru>
37908
37909         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
37910
37911 2010-01-02  Richard Guenther  <rguenther@suse.de>
37912
37913         PR middle-end/42577
37914         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
37915         (simplify_switch_using_ranges): Mark to be removed edges
37916         as non-executable.
37917
37918 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37919
37920         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37921
37922         * collect2.c (scan_libraries): Add missing argument in call to
37923         scan_prog_file.
37924
37925 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
37926
37927         PR target/42448
37928         * config/alpha/predicates.md (aligned_memory_operand): Return false
37929         for CQImode.
37930         (unaligned_memory_operand): Return true for CQImode.
37931         * config/alpha/alpha.c (get_aligned_mem): Assert that location
37932         doesn not cross aligned SImode word boundary.
37933
37934 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
37935
37936         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
37937         Remove.
37938         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
37939         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
37940
37941 2010-01-02  Richard Guenther  <rguenther@suse.de>
37942
37943         PR lto/41597
37944         * toplev.c (compile_file): Emit LTO marker properly.  Change
37945         it to __gnu_lto_v1.
37946         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
37947
37948 2010-01-01  Richard Guenther  <rguenther@suse.de>
37949
37950         PR debug/42455
37951         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
37952
37953 2010-01-01  Richard Guenther  <rguenther@suse.de>
37954
37955         PR c/42570
37956         * c-decl.c (grokdeclarator): For zero-size arrays force
37957         structural equality checks as layout_type does.
37958
37959 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
37960
37961         * builtins.c: Update copyright to 2010.
37962
37963 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
37964
37965         PR lto/42531
37966         * lto-streamer-out.c (produce_asm): Revert the last change.
37967         (copy_function): Likewise.
37968
37969         * lto-streamer.c (lto_get_section_name): Skip any leading
37970         asterisk in name.
37971
37972 2010-01-01  Richard Guenther  <rguenther@suse.de>
37973
37974         PR middle-end/42559
37975         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
37976         for LABEL_DECLs.
37977
37978 \f
37979 Copyright (C) 2010 Free Software Foundation, Inc.
37980
37981 Copying and distribution of this file, with or without modification,
37982 are permitted in any medium without royalty provided the copyright
37983 notice and this notice are preserved.