OSDN Git Service

883413473cdc641a68e6e2f99b837a93b2fadf95
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * Makefile.in (dce.o): Add $(EXCEPT_H).
4         * dce.c: Include except.h and delete redundant vector definitions.
5         (deletable_insn_p): Return false for non-call insns that can throw
6         if DF is running.
7
8 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
9
10         * gcse.c (ae_gen): Remove.
11         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
12         and make non-static function to make it available in store-motion.c.
13         Update call sites with search-and-replace.
14         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
15         extract_mentioned_regs, extract_mentioned_regs_helper,
16         find_moveable_store, compute_store_table, load_kills_store, find_loads,
17         store_killed_in_insn, store_killed_after, store_killed_before,
18         build_store_vectors, insert_insn_start_basic_block, insert-store,
19         remove_reachable_equiv_notes, replace_store_insn, delete_store,
20         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
21         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
22         * store-motion.c: ...new file.  Also copy data structures from gcse.c
23         and clean up to remove parts not used by store motion.
24         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
25         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
26
27 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28
29         PR target/38571
30         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
31         when optimizing for size.
32
33 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
34
35         * gcse.c (gcse_constant_p): Fix typo in last change.
36
37 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
38
39         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
40
41 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
42
43         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
44
45 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
46
47         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
48         CONST_HIGH_PART result.
49
50 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
51
52         * config/avr/avr.c (initial_elimination_offset): Rename to
53         avr_initial_elimination_offset.
54         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
55         change return type to bool.
56         (avr_can_eliminate): New function.
57         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
58         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
59         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
60         * config/avr/avr-protos.h (initial_elimination_offset) : Rename to
61         avr_initial_elimination_offset.
62         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
63         (avr_initial_elimination_offset): Define.
64
65 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
66             Steven Bosscher  <steven@gcc.gnu.org>
67
68         PR rtl-optimization/39938
69         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
70         * cfgrtl.c: Include insn-attr.h.
71         (rest_of_pass_free_cfg): New function.
72         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
73         * resource.c (init_resource_info): Remove call to df_analyze.
74
75 2009-04-29  Richard Guenther  <rguenther@suse.de>
76
77         PR target/39943
78         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
79         allow conversion to signed integers.
80
81 2009-04-29  Richard Guenther  <rguenther@suse.de>
82
83         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
84         shifts of floating point vectors if the shift amount is
85         a constant multiple of the element size.
86
87 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
88             Michael Matz  <matz@suse.de>
89
90         PR middle-end/39927
91         PR bootstrap/39929
92         * tree-outof-ssa.c (emit_partition_copy): New function.
93         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
94         insert_part_to_rtx_on_edge): Perform the partition base var
95         copy using emit_partition_copy.
96         (insert_value_copy_on_edge): Convert constants to the right mode.
97         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
98         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
99
100 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
101
102         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
103         scan backwards to try to find a constant to initialize it.
104
105         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
106         insn before the loop_end instruction, don't look past labels.
107
108 2009-04-29  Richard Guenther  <rguenther@suse.de>
109
110         PR middle-end/39937
111         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
112         loose type conversions.
113         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
114         stmts only if there are no uses of its definition.
115
116 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
117
118         * config/bfin/bfin.h (splitting_loops): Declare.
119         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
120         Reorder bit definitions to be ascending.
121         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
122         * config/bfin/bfin.c (splitting_loops): New variable.
123         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
124         (struct loop_info): Remove members INIT and LOOP_INIT.
125         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
126         the LSETUP sequence.  Allow LC to be loaded from any register, but also
127         add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
128         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
129         set to 1.
130         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
131         of reload_completed.
132         From Jie Zhang:
133         * config/bfin/bfin.md (movsi_insn): Refine constraints.
134
135 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
136
137         * Makefile.in (PLUGIN_VERSION_H): New.
138         (OBJS-common): Remove plugin-version.o.
139         (plugin.o): Depend on (PLUGIN_VERSION_H).
140         (plugin-version.o): Remove.
141         * configure: Regenerate
142         * configure.ac: Create plugin-version.h.
143         * gcc-plugin.h (plugin_gcc_version): Remove.
144         (plugin_default_version_check): Change signature.
145         * plugin-version.c: Remove.
146         * plugin.c: Include plugin-version.h.
147         (str_plugin_gcc_version_name): Remove.
148         (try_init_one_plugin): Pass gcc version to plugin_init.
149         (plugin_default_version_check): Both gcc and plugin versions are now
150         arguments.
151
152 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
153         
154         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
155         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
156         Remove special case testing for last insn of inner loops. Don't fail if
157         the loop ends with a jump, emit an extra nop instead.
158
159         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
160         DREGS rather than comparing directly.  Remove code that tries to
161         account for latencies.
162
163 2009-04-29  Richard Guenther  <rguenther@suse.de>
164
165         PR tree-optimization/39941
166         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
167         eliminating an indirect call.
168
169 2009-04-29  Richard Guenther  <rguenther@suse.de>
170
171         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
172         parameter.  Allow invariants as base if !require_lvalue.
173         (verify_gimple_assign_single): Adjust.
174
175 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
176
177         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
178         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
179         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3, ssubhi3,
180         ssaddhi3_parts and sssubhi3_parts.
181         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
182         a VEC_SELECT.
183         * config/bfin/bfin.c (bfin_expand_builtin, case BFIN_BUILTIN_CPLX_SQU):
184         Adjust accordingly.
185
186 2009-04-28  Richard Guenther  <rguenther@suse.de>
187
188         * tree-vect-loop.c (get_initial_def_for_induction): Use
189         correct types for pointer increment.
190
191 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
192
193         * toplev.c (print_version): Update GMP version string calculation.
194
195 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
196
197         PR rtl-optimization/39938
198         * resource.c (init_resource_info): Add call to df_analyze.
199
200 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
201
202         * config/alpha/alpha.md (usegp): Cast the result of
203         alpha_find_lo_sum_using_gp to enum attr_usegp.
204         * config/alpha/alpha.c (override_options): Remove end-of-structure
205         marker element from cpu_table.  Use array size of cpu_table to handle
206         -mcpu and -mtune options.
207         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
208
209 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
210
211         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
212         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
213         tune_32 and tune_64.
214         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
215         support on PowerPC.
216         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
217         * config/rs6000/option-defaults.h: ... here.  New file.
218         (OPT_64, OPT_32): Define.
219         (MASK_64BIT): Define to 0 if not already defined.
220         (OPT_ARCH64, OPT_ARCH32): Define.
221         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
222         and tune_64.
223
224 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
225
226         * config/arm/arm.c (arm_override_options): Emit error on using
227         fpa with AAPCS.
228
229 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
230
231         PR rtl-optimization/39914
232         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
233         registers for allocnos created from user-defined variables only
234         when not optimizing.
235
236 2009-04-28  Richard Guenther  <rguenther@suse.de>
237
238         PR middle-end/39937
239         * fold-const.c (fold_binary): Use distribute_real_division only
240         on float types.
241
242 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
243
244         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
245         add hpux-stdint.h to tm_file.
246         (hppa[12]*-*-hpux11*): Ditto.
247         (ia64*-*-hpux*): Ditto.
248         * config/hpux-stdint.h: New.
249         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
250         __STDC_EXT__ for all compiles.
251         * config/pa/pa-hpux.h: Ditto.
252         * config/pa/pa-hpux10.h: Ditto.
253         * config/pa/pa-hpux11.h: Ditto.
254
255 2009-04-28  Catherine Moore  <clm@codesourcery.com>
256
257         * debug.h (set_name): Add comment.
258
259 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
260
261         PR target/39929
262         * config/darwin.c (machopic_gen_offset): Check
263         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
264         * config/arm/arm.c (require_pic_register): Likewise.
265
266 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
267
268         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
269         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
270         m32c_promote_prototypes): Delete.
271
272 2009-04-28  Michael Matz  <matz@suse.de>
273
274         PR middle-end/39922
275         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
276         constants.
277
278 2009-04-28  Richard Guenther  <rguenther@suse.de>
279
280         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
281
282 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
283
284         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
285         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
286         * config/arm/arm-tune.md: Regenerate.
287
288 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
289
290         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
291         block if there are complex incoming edges.
292         (sel_merge_blocks): Remove useless assert.
293         (sel_redirect_edge_and_branch): Check that edge was redirected.
294         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
295         (sel_find_rgns): Delete declaration.
296         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
297         the region when it is not a preheader.
298
299 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
300
301         PR c/39323
302         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
303
304 2009-04-28  Richard Guenther  <rguenther@suse.de>
305
306         * tree.h (SSA_NAME_VALUE): Remove.
307         (struct tree_ssa_name): Remove value_handle member.
308         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
309         array for jump threading.
310         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
311         SSA_NAME_VALUEs.
312         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
313         * tree-flow.h (threadedge_initialize_values): Declare.
314         (threadedge_finalize_values): Likewise.
315         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
316         (SSA_NAME_VALUE): Define.
317         (threadedge_initialize_values): New function.
318         (threadedge_finalize_values): Likewise.
319         * tree-ssa-dom.c (ssa_name_values): New global variable.
320         (SSA_NAME_VALUE): Define.
321         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
322
323 2009-04-28  Ira Rosen  <irar@il.ibm.com>
324
325         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
326         Use REPORT_VECTORIZED_LOCATIONS instead 
327         REPORT_VECTORIZED_LOOPS.
328         * tree-vectorizer.c (vect_verbosity_level): Make static.
329         (vect_loop_location): Rename to vect_location.
330         (vect_set_verbosity_level): Update comment.
331         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
332         and vect_location.
333         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
334         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
335         instead REPORT_UNVECTORIZED_LOOPS.
336         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
337         vect_loop_def to vect_external_def and vect_internal_def.
338         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
339         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
340         REPORT_UNVECTORIZED_LOCATIONS.
341         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
342         and vect_used_in_loop and to vect_unused_in_scope and 
343         vect_used_in_scope.
344         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
345         (vect_verbosity_level): Remove declaration.
346         (vect_analyze_operations): Likewise.
347         (vect_analyze_stmt): Declare.
348         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
349         REPORT_UNVECTORIZED_LOCATIONS.
350         (vect_get_loop_niters): Fix indentation.
351         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
352         (vect_analyze_loop_operations): New function.
353         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
354         vect_analyze_operations.
355         (vect_is_simple_reduction): Use new names.
356         (vectorizable_live_operation, vect_transform_loop): Likewise.
357         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
358         specify whether the data references can be a part of interleaving chain.
359         (vect_analyze_data_ref_dependence): Use new names.
360         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
361         (vect_create_addr_base_for_vector_ref): Remove redundant code.
362         * tree-vect-patterns.c (widened_name_p): Use new names.
363         (vect_recog_dot_prod_pattern): Likewise.
364         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
365         (process_use, vect_mark_stmts_to_be_vectorized, 
366         vect_model_simple_cost, vect_model_store_cost,
367         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
368         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
369         vectorizable_operation, vectorizable_type_demotion,
370         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
371         vectorizable_condition): Likewise.
372         (vect_analyze_operations): Split into vect_analyze_loop_operations
373         and ...
374         (vect_analyze_stmt): ... new function.
375         (new_stmt_vec_info): Use new names.
376         (vect_is_simple_use): Use new names and fix comment.
377         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
378         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
379
380 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
381
382         PR target/39911
383         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
384         and integer modes for x87 operands.  Do not ICE for unsupported size,
385         generate error instead.  Generate error for unsupported operand types.
386         ['z']: Do not handle HImode memory operands specially.  Warning
387         for floating-point operands.  Fallthru to 'Z' for unsupported operand
388         types.  Do not ICE for unsupported size, generate error instead.
389         (output_387_binary_op): Use %Z to output operands.
390         (output_fp_compare): Ditto.
391         (output_387_reg_move): Ditto.
392
393 2009-04-28  Ben Elliston  <bje@au.ibm.com>
394
395         PR c++/35652
396         Revert:
397
398         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
399
400         * builtins.c (c_strlen): Do not warn here.
401         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
402         * c-common.c (pointer_int_sum): Take an explicit location.
403         Warn about offsets out of bounds.
404         * c-common.h (pointer_int_sum): Adjust declaration.
405
406 2009-04-27  Ian Lance Taylor  <iant@google.com>
407
408         * collect2.c (is_ctor_dtor): Change type of ret field in struct
409         names to symkind.
410         * dce.c (run_fast_df_dce): Change type of old_flags to int.
411         * df-core.c (df_set_flags): Change return type to int.  Change
412         type of old_flags to int.
413         (df_clear_flags): Likewise.
414         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
415         (df_get_conditional_uses): Likewise.
416         * df.h (df_set_flags, df_clear_flags): Update declarations.
417         * dwarf2out.c (struct indirect_string_node): Change type of form
418         field to enum dwarf_form.
419         (AT_string_form): Change return type to enum dwarf_form.
420         * fixed-value.c (fixed_compare): Add cast to enum type.
421         * fwprop.c (update_df): Change 0 to VOIDmode.
422         * gensupport.c: Change 0 to UNKNOWN.
423         * gimple.h (gimple_cond_code): Add cast to enum type.
424         * haifa-sched.c (reemit_notes): Add cast to enum type.
425         * hooks.c (hook_int_void_no_regs): Remove function.
426         * hooks.h (hook_int_void_no_regs): Remove declaration.
427         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
428         * predict.c (combine_predictions_for_insn): Add casts to enum type.
429         * real.c (real_arithmetic): Add cast to enum type.
430         (real_compare): Likewise.
431         * target.h (struct gcc_target): Change return type of
432         branch_target_register_class to enum reg_class.
433         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
434         default_branch_target_register_class.
435         * targhooks.c (default_branch_target_register_class): New function.
436         * targhooks.h (default_branch_target_register_class): Declare.
437         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
438         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
439         cast to int.
440         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
441         ERROR_MARK.
442         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
443         vect_uninitialized_def.  Change 0 to ERROR_MARK.
444         * tree-vect-stmts.c (supportable_widening_operation): Don't
445         initialize icode1 and icode2.
446         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
447         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
448         and to STD_C89.
449         (cmn_err_flag_specs): Change 0 to STD_C89.
450         (cmn_err_char_table): Likewise.
451         * config/arm/arm.c (get_arm_condition_code): Change type of code
452         to enum arm_cond_code.
453         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
454         (IWMMXT_BUILTIN2): Likewise.
455         (neon_builtin_type_bits): Don't define typedef.
456         (neon_builtin_datum): Change type of bits field to int.
457         (arm_expand_neon_args): Add cast to enum type.
458         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
459         TLS_MODEL_NONE.
460         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
461         casts to enum type.
462         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
463         MIPS_FP_COND_f.
464         * config/mips/mips.md (jal_macro): Return enum constant.
465         (single_insn): Likewise.
466         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
467         CODE_FOR_nothing.
468         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
469         casts to enum type.
470         * config/s390/s390.c (s390_tune_flags): Change type to int.
471         (s390_arch_flags): Likewise.
472         (s390_handle_arch_option): Change flags field of struct pta to int.
473         * config/s390/s390.h (s390_tune_flags): Update declaration.
474         (s390_arch_flags): Likewise.
475         * config/sh/sh.c (prepare_move_operands): Compare
476         tls_symbolic_operand result with enum constant.
477         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
478         (sh_expand_prologue): Add cast to enum type.
479         (sh_expand_epilogue): Likewise.
480         (tls_symbolic_operand): Change return type to enum tls_model.
481         (fpscr_set_from_mem): Add cast to enum type.
482         (legitimize_pic_address): Compare tls_symbolic_operand result with
483         enum constant.
484         (sh_target_reg_class): Change return type to enum reg_class.
485         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
486         PROCESSOR_xxx.
487         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
488         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
489         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
490         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
491         (delayed_branch, tls_call_delay): Likewise.
492         (eligible_for_sibcall_delay): Likewise.
493         (eligible_for_return_delay): Likewise. 
494         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
495         (spu_expand_builtin_1): Likewise.
496
497         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
498         for all types of conversions.
499         (output_init_element): Issue -Wc++-compat warning if needed when
500         initializing a bitfield with enum type.
501         * c-parser.c (c_parser_expression): Set original_type to
502         original_type of right hand operand of comman operator.
503
504 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
505
506         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
507         grammar nits.
508         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
509         * doc/cpp.texi (Standard Predefined Macros)
510         (Implementation-defined behavior): Likewise.
511         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
512         * doc/gimple.texi (GIMPLE Exception Handling)
513         (@code{GIMPLE_ASSIGN}): Likewise.
514         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
515         * doc/invoke.texi (Warning Options, Optimize Options)
516         (AVR Options, Darwin Options): Likewise.
517         (Optimize Options): Reformulate -fwhole-program description.
518         * doc/loop.texi (Lambda): Likewise.
519         * doc/md.texi (Output Template, Define Constraints)
520         (Standard Names, Insn Splitting): Likewise.
521         * doc/options.texi (Option properties): Likewise.
522         * doc/passes.texi (Tree-SSA passes): Likewise.
523         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
524         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
525         (File Names and DBX): Likewise.
526         * doc/trouble.texi (Incompatibilities): Likewise.
527
528 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
529
530         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
531         instruction is correct.
532
533 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
534
535         Allow non-constant arguments to conversion intrinsics.
536         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
537         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
538         * spu.c (print_operand): Handle 'v' and 'w'.
539         (exp2_immediate_p, spu_gen_exp2): Define.
540         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
541         spu_convtf_1): Update parameter descriptions.
542         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
543         * constraints.md ('v', 'w'): New.
544         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
545         Remove.
546         (i2f, I2F): New define_mode_attr.
547         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
548         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
549         fixuns_truncv4sfv4si2):  Update to use mode attribute.
550         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
551         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
552         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
553         patterns for combine.
554
555 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
556
557         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
558         (cprop, hoist, pre, store_motion): New debug counters.
559         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
560         is not an RTL pass anymore.
561         (pass_profiling): Remove extern decl for pass removed in 2005.
562         (pass_gcse, pass_jump_bypass): Remove.
563         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
564         to 0 for clean state.
565         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
566         * cse.c (gate_handle_cse_after_global_opts,
567         rest_of_handle_cse_after_global_opts): New functions.
568         (pass_cse_after_global_opts): New pass, does local CSE.
569         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
570         (TV_CPROP): New timevar.
571         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
572         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
573         (gcse_main, recompute_all_luids): Remove.
574         (compute_hash_table_work): Call max_reg_num instead of reading
575         max_gcse_regno.
576         (cprop_jump): Don't set run_jump_opt_after_gcse.
577         (constprop_register): Always allow to alter jumps.
578         (cprop_insn): Likewise.
579         (do_local_cprop): Likewise.
580         (local_cprop_pass): Likewise.  Return non-zero if something changed.
581         (cprop): Remove function, fold interesting bits into one_cprop_pass.
582         (find_implicit_sets): Add note about missed optimization opportunity.
583         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
584         pass_rtl_cprop execute function.
585         Don't bother tracking the pass number, each pass gets its own dumpfile
586         now anyway.
587         Always allow to alter jumpsand bypass jumps.
588         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
589         will just find no suitable set.
590         (pre_edge_insert): Fix dumping, this function is for PRE only.
591         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
592         pass_rtl_pre execute function.
593         (hoist_code): Return non-zero if something changed.  Keep track of
594         substitutions and insertions for statistics gathering similar to PRE.
595         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
596         called from the pass_rtl_hoist execute function.  Show pass statistics.
597         (compute_store_table): Use max_reg_num directly instead of using the
598         formerly global max_gcse_regno.
599         (build_store_vectors): Likewise.
600         (replace_store_insn): Fix dumping.
601         (store_motion): Rename to ...
602         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
603         pass, called from the pass_rtl_store_motion execute function.  Keep
604         track of substitutions and insertions for statistics gathering similar
605         to PRE.
606         (bypass_jumps): Remove, fold interesting bits into ...
607         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
608         from the pass_rtl_cprop execute function.
609         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
610         pass_jump_bypass): Remove.
611         (gate_handle_gcse, rest_of_handle_gcse): Remove.
612         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
613         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
614         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
615         (gate_rtl_store_motion, execute_rtl_store_motion,
616         pass_rtl_store_motion): New.
617         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
618         make it clear that -fcse-skip-blocks is a no-op for backward compat.
619         * passes.c (init_optimization_passes): Remove pass_gcse and
620         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
621         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
622         instead of pass_jump_bypass.
623
624 2009-04-27  Richard Guenther  <rguenther@suse.de>
625
626         PR middle-end/39928
627         * gimplify.c (gimplify_expr): If we are required to create
628         a temporary make sure it ends up as register.
629
630 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
631
632         PR target/39903
633         * config/i386/i386.c (construct_container): Don't call
634         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
635         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
636
637 2009-04-27  Michael Matz  <matz@suse.de>
638
639         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
640         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
641         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
642         (dump_replaceable_exprs): Take a bitmap.
643         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
644         array.
645         (expand_gimple_basic_block): Likewise.
646         * tree-ssa-ter.c (struct temp_expr_table_d): Make
647         replaceable_expressions member a bitmap.
648         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
649         (mark_replaceable): Likewise.
650         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
651         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
652
653 2009-04-27  Richard Guenther  <rguenther@suse.de>
654
655         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
656         (verify_stmts): Dispatch to gimple/type verification code.
657         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
658         issue with call argument types.
659
660 2009-04-27  Michael Matz  <matz@suse.de>
661
662         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
663         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
664         to above.
665
666 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
667             Eric Botcazou  <ebotcazou@adacore.com>
668
669         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
670         a label's basic block.
671         (mark_target_live_regs): Tidy and rework obsolete comments.
672         Change back DF problem to LIVE.  If a label starts a basic block,
673         assume that all registers that used to be live then still are.
674         (init_resource_info): If a label starts a basic block, set its
675         BLOCK_FOR_INSN accordingly.
676         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
677
678 2009-04-27  Richard Guenther  <rguenther@suse.de>
679
680         * tree-flow-inline.h (function_ann): Remove.
681         (get_function_ann): Likewise.
682         * tree-dfa.c (create_function_ann): Remove.
683         * tree-flow.h (struct static_var_ann_d): Remove.
684         (struct function_ann_d): Likewise.
685         (union tree_ann_d): Remove fdecl member.
686         (function_ann_t): Remove.
687         (function_ann, get_function_ann, create_function_ann): Remove
688         declarations.
689
690 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
691
692         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
693
694 2009-04-27  Jan Hubicka  <jh@suse.cz>
695
696         * ipa-pure-const.c (struct funct_state_d): New fields
697         state_previously_known, looping_previously_known; remove
698         state_set_in_source.
699         (analyze_function): Use new fields.
700         (propagate): Avoid assumption that state_set_in_source imply
701         nonlooping.
702
703         * tree-ssa-loop-niter.c (finite_loop_p): New function.
704         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
705         * cfgloop.h (finite_loop_p): Declare.
706
707 2009-04-26  Michael Matz  <matz@suse.de>
708
709         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
710
711 2009-04-26  Michael Matz  <matz@suse.de>
712
713         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
714         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
715         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
716         pass_mark_used_blocks): Remove.
717         * tree-optimize.c (pass_free_datastructures,
718         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
719         * passes.c (init_optimization_passes): Don't call
720         pass_mark_used_blocks, remove dead code.
721
722 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
723
724         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
725         * tree-ssa-live.h (register_ssa_partition): Likewise.
726
727 2009-04-26  Michael Matz  <matz@suse.de>
728
729         Expand from SSA.
730         * builtins.c (fold_builtin_next_arg): Handle SSA names.
731         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
732         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
733         SSA names. 
734         (compare_pairs): Swap cost comparison.
735         (coalesce_ssa_name): Don't use change_partition_var.
736         * tree-nrv.c (struct nrv_data): Add modified member.
737         (finalize_nrv_r): Set it.
738         (tree_nrv): Use it to update statements.
739         (pass_nrv): Require PROP_ssa.
740         * tree-mudflap.c (mf_decl_cache_locals,
741         mf_build_check_statement_for): Use make_rename_temp.
742         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
743         * alias.c (find_base_decl): Handle SSA names.
744         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
745         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
746         * rtl.h (set_reg_attrs_for_parm): Declare.
747         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
748         to "optimized", remove unused locals at finish.
749         (execute_free_datastructures): Make global, call
750         delete_tree_cfg_annotations.
751         (execute_free_cfg_annotations): Don't call
752         delete_tree_cfg_annotations.
753
754         * ssaexpand.h: New file.
755         * expr.c (toplevel): Include ssaexpand.h.
756         (expand_assignment): Handle SSA names the same as register variables.
757         (expand_expr_real_1): Expand SSA names.
758         * cfgexpand.c (toplevel): Include ssaexpand.h.
759         (SA): New global variable.
760         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
761         (SSAVAR): New macro.
762         (set_rtl): New helper function.
763         (add_stack_var): Deal with SSA names, use set_rtl.
764         (expand_one_stack_var_at): Likewise.
765         (expand_one_stack_var): Deal with SSA names.
766         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
767         before unique numbers.
768         (expand_stack_vars): Use set_rtl.
769         (expand_one_var): Accept SSA names, add asserts for them, feed them
770         to above subroutines.
771         (expand_used_vars): Expand all partitions (without default defs),
772         then only the local decls (ignoring those expanded already).
773         (expand_gimple_cond): Remove edges when jumpif() expands an
774         unconditional jump.
775         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
776         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
777         SSA name.
778         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
779         members of SA; deal with PARM_DECL partitions here; expand
780         all PHI nodes, free tree datastructures and SA.  Commit instructions
781         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
782         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
783         info and statements at start, collect garbage at finish.
784         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
785         (VAR_ANN_PARTITION) Remove.
786         (change_partition_var): Don't declare.
787         (partition_to_var): Always return SSA names.
788         (var_to_partition): Only accept SSA names.
789         (register_ssa_partition): Only check argument.
790         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
791         member.
792         (delete_var_map): Don't free it.
793         (var_union): Only accept SSA names, simplify.
794         (partition_view_init): Mark only useful SSA names as used.
795         (partition_view_fini): Only deal with SSA names.
796         (change_partition_var): Remove.
797         (dump_var_map): Use ssa_name instead of partition_to_var member.
798         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
799         basic blocks.
800         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
801         (struct _elim_graph): New member const_dests; nodes member vector of
802         ints.
803         (set_location_for_edge): New static helper.
804         (create_temp): Remove.
805         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
806         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
807         (new_elim_graph): Allocate const_dests member.
808         (clean_elim_graph): Truncate const_dests member.
809         (delete_elim_graph): Free const_dests member.
810         (elim_graph_size): Adapt to new type of nodes member.
811         (elim_graph_add_node): Likewise.
812         (eliminate_name): Likewise.
813         (eliminate_build): Don't take basic block argument, deal only with
814         partition numbers, not variables.
815         (get_temp_reg): New static helper.
816         (elim_create): Use it, deal with RTL temporaries instead of trees.
817         (eliminate_phi): Adjust all calls to new signature.
818         (assign_vars, replace_use_variable, replace_def_variable): Remove.
819         (rewrite_trees): Only do checking.
820         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
821         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
822         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
823         contains_tree_r, MAX_STMTS_IN_LATCH,
824         process_single_block_loop_latch, analyze_edges_for_bb,
825         perform_edge_inserts): Remove.
826         (expand_phi_nodes): New global function.
827         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
828         functions, initialize new parameter, remember partitions having a
829         default def.
830         (finish_out_of_ssa): New global function.
831         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
832         don't reset in_ssa_p here, don't disable TER when mudflap.
833         (pass_del_ssa): Remove.
834         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
835         partition members.
836         (execute_free_datastructures): Declare.
837         * Makefile.in (SSAEXPAND_H): New variable.
838         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
839         * basic-block.h (commit_one_edge_insertion): Declare.
840         * passes.c (init_optimization_passes): Move pass_nrv and
841         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
842         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
843         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
844         (redirect_branch_edge): Deal with super block when expanding, split
845         out jump patching itself into ...
846         (patch_jump_insn): ... here, new static helper.
847
848 2009-04-26  Michael Matz  <matz@suse.de>
849
850         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
851         beyond num_ssa_names.
852         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
853         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
854
855 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
856
857         PR inline-asm/39543
858         * fwprop.c (forward_propagate_asm): New function.
859         (forward_propagate_and_simplify): Propagate also into __asm, if it
860         doesn't increase the number of referenced registers.
861
862         PR c/39889
863         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
864
865 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
866
867         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
868         note_nonlocal_vla_type for nonlocal VLAs.
869         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
870         contains_remapped_vars, remap_vla_decls): New functions.
871         (convert_nonlocal_reference_stmt): If not optimizing, call
872         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
873         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
874         if it wasn't found in var_map.
875         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
876         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
877         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
878         declare_vars.
879         * gimplify.c (nonlocal_vlas): New variable.
880         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
881         referenced VLAs.
882         (gimplify_body): Create and destroy nonlocal_vlas.
883
884         * dwarf2out.c (loc_descr_plus_const): New function.
885         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
886         mem_loc_descriptor, loc_descriptor_from_tree_1,
887         descr_info_loc, gen_variable_die): Use it.
888
889         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
890         !TREE_STATIC VAR_DECLs.
891         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
892         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
893         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
894         DECL_BY_REFERENCE is valid.
895         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
896         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
897         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
898         Copy DECL_BY_REFERENCE.
899         (struct nesting_copy_body_data): New type.
900         (nesting_copy_decl): New function.
901         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
902         if they have variable length.
903
904 2009-04-26  Michael Matz  <matz@suse.de>
905
906         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
907         mark new temporaries for renaming.
908
909 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
910
911         PR c/39581
912         * c-decl.c (global_bindings_p): Return negative value.
913         (c_variable_size): New.  Based on variable_size from
914         stor-layout.c.
915         (grokdeclarator): Call c_variable_size not variable_size.
916
917 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
918
919         * config/i386/i386.c (print_operand) ['z']: Fix typo.
920
921 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
922
923         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
924         Redefine it to just use mingw/include.
925         (ASM_SPEC): Rules for -m32 and -m64.
926         (LINK_SPEC): Use Likewise.
927         (SPEC_32): New define.
928         (SPEC_64): Likewise.
929         (SUB_LINK_SPEC): Likewise.
930         (MULTILIB_DEFAULTS): New define.
931         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
932         Add multilib options.
933         (MULTILIB_DIRNAMES): Likewise.
934         (MULTILIB_OSDIRNAMES): Likewise.
935         (LIBGCC): Likewise.
936         (INSTALL_LIBGCC): Likewise.
937
938 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
939
940         PR c/39556
941         * c-tree.h (enum c_inline_static_type): New.
942         (record_inline_static): Declare.
943         * c-decl.c (struct c_inline_static, c_inline_statics,
944         record_inline_static, check_inline_statics): New.
945         (pop_file_scope): Call check_inline_statics.
946         (start_decl): Call record_inline_static instead of pedwarning
947         directly for static in inline function.
948         * c-typeck.c (build_external_ref): Call record_inline_static
949         instead of pedwarning directly for static referenced in inline
950         function.
951
952 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
953
954         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
955         not new but only being rescanned.
956         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
957         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
958         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
959         record_set_info, compute_set, grealloc): Remove.
960         (recompute_all_luids): New function.
961         (gcse_main): Don't compute sets, and don't do related memory
962         allocations/free-ing.  If something changed before the end of the
963         pass, update LUIDs using recompute_all_luids.
964         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
965         (free_gcse_mem): Don't free it either.
966         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
967         Use the df insn LUIDs.
968         (load_killed_in_block): Likewise.
969         (compute_hash_table_work): Don't compute reg_set_in_block.
970         (compute_transp): Use DF_REG_DEF_CHAINs.
971         (local_cprop_pass): Don't use compute_sets and related functions.
972         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
973         Use get_max_uid() instead of max_cuid.
974         (insert_insn_end_basic_block, pre_insert_copy_insn,
975         update_ld_motion_stores): Don't try to
976         keep reg_set tables up to date.
977         (pre_insert_copies): Use df insn LUIDs.
978         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
979         (reg_set_info): Don't use extra bitmap argument.
980         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
981         information to compute regs_set_in_block.
982         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
983         (bypass_jumps): Don't use compute_sets and friends.
984
985 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
986
987         PR testsuite/39710
988         * opts.c (undocumented_msg): Do not leave blank even with
989         ENABLE_CHECKING.
990
991 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
992
993         * c-decl.c (build_enumerator): Allow values folding to integer
994         constants but not integer constant expressions with a pedwarn if
995         pedantic.
996
997 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
998
999         PR c/39582
1000         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
1001         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
1002         type is an integer constant.
1003
1004 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
1005
1006         PR target/39897
1007         * config/i386/i386.c (print_operand) ['z']: Revert handling of
1008         HImode operands.
1009
1010 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
1011
1012         PR c/39564
1013         * c-decl.c (grokdeclarator): Diagnose declarations of functions
1014         with variably modified return type and no storage class
1015         specifiers, except for the case of nested functions.  Distinguish
1016         extern declarations of functions with variably modified return
1017         types from those of objects with variably modified types.
1018
1019 2009-04-25  Jan Hubicka  <jh@suse.cz>
1020
1021         * tree.c (list_equal_p): New function.
1022         * tree.h (list_equal_p): Declare.
1023         * coretypes.h (edge_def, edge, const_edge, basic_block_def
1024         basic_block_def, basic_block, const_basic_block): New.
1025         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
1026         (redirect_eh_edge): New function.
1027         (make_eh_edge_update_phi): EH edges are not abnormal.
1028         * except.c: Include tree-flow.h.
1029         (list_match): New function.
1030         (eh_region_replaceable_by_p): New function.
1031         (replace_region): New function.
1032         (hash_type_list): New function.
1033         (hash_eh_region): New function.
1034         (eh_regions_equal_p): New function.
1035         (merge_peers): New function.
1036         (remove_unreachable_regions): Verify EH tree when checking;
1037         merge peers.
1038         (copy_eh_region_1): New function.
1039         (copy_eh_region): New function.
1040         (push_reachable_handler): New function.
1041         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
1042         regions without label but with live RESX.
1043         * except.h (redirect_eh_edge_to_label): New.
1044         * tree-flow.h (redirect_eh_edge): New.
1045         * coretypes.h (edge_def, edge, const_edge, basic_block_def
1046         basic_block_def, basic_block, const_basic_block): Remove.
1047         * Makefile.in (except.o): Add dependency on tree-flow.h
1048         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
1049         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
1050         Remove.
1051
1052 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
1053
1054         PR bootstrap/39645
1055         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
1056         on the destination of memcpy.
1057
1058 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
1059
1060         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1061         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
1062         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
1063
1064 2009-04-25  Jan Hubicka  <jh@suse.cz>
1065
1066         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
1067         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
1068         to be reached by different label than left.
1069         (update_eh_edges): Update comment; remove edge_to_remove if possible
1070         and return true if suceeded.
1071         (cleanup_empty_eh): Accept sharing map; handle shared regions.
1072         (cleanup_eh): Compute sharing map.
1073         * except.c (remove_eh_handler_and_replace): Add argument if we should
1074         update regions.
1075         (remove_unreachable_regions): Update for label sharing.
1076         (label_to_region_map): Likewise.
1077         (get_next_region_sharing_label): New function.
1078         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
1079         prev_try pointers.
1080         (remove_eh_handler): Update.
1081         (remove_eh_region_and_replace_by_outer_of): New function.
1082         * except.h (struct eh_region): Add next_region_sharing_label.
1083         (remove_eh_region_and_replace_by_outer_of,
1084         get_next_region_sharing_label): Declare.
1085         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
1086
1087 2009-04-25  Jan Hubicka  <jh@suse.cz>
1088
1089         * tree-cfg.c (split_critical_edges): Split also edges where we can't
1090         insert code even if they are not critical.
1091
1092 2009-04-25  Jan Hubicka  <jh@suse.cz>
1093
1094         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1095         (gimple_can_remove_branch_p): EH edges won't remove branch by
1096         redirection.
1097         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
1098         updating of non-abnormal EH edges.
1099         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
1100         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
1101         (split_critical_edges): Split also edges where emitting code on them
1102         will lead to splitting later.
1103
1104 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
1105             H.J. Lu  <hongjiu.lu@intel.com>
1106
1107         PR target/39590
1108         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
1109         the configured assembler supports fildq and fistpq mnemonics.
1110         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
1111         * configure: Regenerated.
1112         * config.in: Ditto.
1113
1114         * config/i386/i386.c (print_operand): Handle 'Z'.
1115         ['z']: Remove handling of special fild/fist suffixes.
1116         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
1117         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
1118         suffix of fild insn.
1119         (*floatsi<mode>2_vector_mixed): Ditto.
1120         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
1121         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
1122         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
1123         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
1124         * config/i386/gas.h (GAS_MNEMONICS): Remove.
1125
1126 2009-04-25  Ben Elliston  <bje@au.ibm.com>
1127  
1128         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
1129         the source of a set operation.
1130
1131 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
1132
1133         * target.h (struct gcc_target): Add case_values_threshold field.
1134         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
1135         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
1136         * targhooks.c (default_case_values_threshold): New function.
1137         * targhooks.h (default_case_values_threshold): Declare function.
1138         * stmt.c (expand_case): Use case_values_threshold target hook.
1139         * expr.h (case_values_threshold): Remove declartation.
1140         * expr.c (case_values_threshold): Remove function.
1141         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
1142
1143         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
1144         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1145         (avr_case_values_threshold): Declare as static.
1146         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
1147
1148         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
1149         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
1150         (mn10300_case_values_threshold): New function.
1151
1152 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1153
1154         * ira.c (setup_cover_and_important_classes): Add enum cast.
1155
1156 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1157
1158         * genpreds.c (write_enum_constraint_num): Output definition of
1159         CONSTRAINT_NUM_DEFINED_P macro.
1160         * ira.c (setup_cover_and_important_classes): Use
1161         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
1162         
1163 2009-04-24  DJ Delorie  <dj@redhat.com>
1164
1165         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
1166         __SH2A_SINGLE_ONLY__ also.
1167
1168 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
1169
1170         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
1171         (movdf_internal): Ditto.
1172         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
1173         SFmode and DFmode constants.
1174         (ia64_print_operand): Add 'G' format for printing
1175         floating point constants.
1176
1177 2009-04-24  Richard Guenther  <rguenther@suse.de>
1178
1179         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
1180         from unsigned additions.
1181
1182 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
1183
1184         * c-typeck.c (set_init_index): Allow array designators that are
1185         not integer constant expressions with a pedwarn if pedantic.
1186
1187 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1188
1189         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
1190         zero if no overlap in nonzero bits between the operands.
1191
1192 2009-04-24  Ian Lance Taylor  <iant@google.com>
1193
1194         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
1195         (record_dead_and_set_regs): Likewise.
1196         * df.h (struct df_mw_hardreg): Change flags field to int.
1197         (struct df_base_ref): Likewise.
1198         (struct df): Change changeable_flags field to int.
1199         * df-scan.c (df_defs_record): Change clobber_flags to int.
1200         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
1201         constants rather than #define macros.
1202         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
1203         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
1204         (enum dwarf_calling_convention): Likewise.
1205         (enum dwarf_line_number_x_ops): Likewise.
1206         (enum dwarf_call_frame_info): Likewise.
1207         (enum dwarf_source_language): Likewise.
1208         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
1209         (add_calling_convention_attribute): Likewise.
1210         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
1211         (combine_comparisons): Change compcode to int.  Add cast to enum type.
1212         * genrecog.c (maybe_both_true_2): Change c to int.
1213         (write_switch): Likewise.  Add cast to enum type.
1214         * gimplify.c (gimplify_omp_for): Handle return values from
1215         gimplify_expr using MIN rather than bitwise or.
1216         (gimplify_expr): Add cast to enum type.
1217         * ipa-prop.c (update_jump_functions_after_inlining): Change
1218         IPA_BOTTOM to IPA_JF_UNKNOWN.
1219         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
1220         Add casts to enum type.
1221         (setup_cover_and_important_classes): Change cl to int.  Add casts
1222         to enum type.
1223         (setup_class_translate): Change cl and mode to int.
1224         (ira_init_once): Change mode to int.
1225         (free_register_move_costs): Likewise.
1226         (setup_prohibited_mode_move_regs): Add casts to enum type.
1227         * langhooks.c (add_builtin_function_common): Rework assertion that
1228         value fits bitfield.
1229         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
1230         * omega.c (omega_do_elimination): Avoid math on enum types.
1231         * optabs.c (expand_vec_shift_expr): Remove casts to int.
1232         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
1233         int local to handle integral_argment value.
1234         * regmove.c (try_auto_increment): Change PUT_MODE to
1235         PUT_REG_NOTE_KIND.
1236         * reload.c (push_secondary_reload): Add casts to enum type.
1237         (secondary_reload_class, find_valid_class): Likewise.
1238         * reload1.c (emit_input_reload_insns): Likewise.
1239         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
1240         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
1241         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
1242         constant.
1243         * tree.c (build_common_builtin_nodes): Add casts to enum type.
1244         * tree-complex.c (complex_lattice_t): Typedef to int rather than
1245         enum type.
1246         (expand_complex_libcall): Add casts to enum type.
1247         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
1248         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
1249         with ERROR_MARK, not NUM_TREE_CODES.
1250         (vect_create_epilog_for_reduction): Likewise.
1251         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
1252         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
1253         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
1254         enum machine_mode.
1255         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
1256         vect_unused_in_loop.  Change 0 to loop_vect.
1257         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
1258         * var-tracking.c (get_init_value): Change return type to enum
1259         var_init_status.
1260         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
1261         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
1262         arm_fp_model.
1263         (arm_override_options): Add casts to enum type.
1264         (arm_emit_tls_decoration): Likewise.
1265         * config/i386/i386.c (ix86_function_specific_restore): Add casts
1266         to enum type.
1267         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
1268         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
1269         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
1270         enum type.
1271         * config/s390/s390.c (code_for_builtin_64): Change to array of
1272         enum insn_code.
1273         (code_for_builtin_31): Likewise.
1274         (s390_expand_builtin): Change code_for_builtin to enum insn_code
1275         const *.
1276         * config/sparc/sparc.c (sparc_override_options): Change value
1277         field in struct code_model to enum cmodel.  In initializer change
1278         0 to NULL and add cast to enum type.
1279
1280         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
1281         Change all callers.  Issue a -Wc++-compat warning using
1282         lhs_origtype if necessary.
1283         (convert_for_assignment): Issue -Wc++-compat warnings about
1284         invalid conversions to enum type on assignment.
1285         * c-common.h (build_modify_expr): Update declaration.
1286
1287 2009-04-24  Nick Clifton  <nickc@redhat.com>
1288
1289         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
1290         (function_arg_advance): Likewise.
1291         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
1292         5th alternative.
1293
1294 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1295
1296         * config/s390/constraints.md ('I', 'J'): Fix condition.
1297
1298 2009-04-24  Diego Novillo  <dnovillo@google.com>
1299
1300         * gengtype-parse.c (parse_error): Add newline after message.
1301
1302 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         * config/i386/sse.md (avxmodesuffixs): Removed.
1305         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
1306         (*avx_pinsr<ssevecsize>): This.
1307
1308 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1309
1310         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
1311         follow chains of regs with a single definition, and allow expressions
1312         that are function_invariant_p.
1313         (simple_rhs_p): Allow expressions that are function_invariant_p.
1314
1315 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
1316
1317         PR middle-end/39867
1318         * fold-const.c (fold_cond_expr_with_comparison): When folding
1319         > and >= to MAX, make sure the MAX uses the same type as the
1320         comparison's operands.
1321
1322 2009-04-24  Nick Clifton  <nickc@redhat.com>
1323
1324         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
1325         addressing for DImode accesses.
1326         (frv_print_operand_address): Handle PLUS case.
1327         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
1328
1329 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
1330
1331         PR rtl-optimization/39794
1332         * alias.c (canon_true_dependence): Add x_addr argument.
1333         * rtl.h (canon_true_dependence): Adjust prototype.
1334         * cse.c (check_dependence): Adjust canon_true_dependence callers.
1335         * cselib.c (cselib_invalidate_mem): Likewise.
1336         * gcse.c (compute_transp): Likewise.
1337         * dse.c (scan_reads_nospill): Likewise.
1338         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
1339         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
1340         canon_base_addr of the group, plus optional offset.
1341         (struct group_info): Rename canon_base_mem to
1342         canon_base_addr.
1343         (get_group_info): Set canon_base_addr to canon_rtx of base, not
1344         canon_rtx of base_mem.
1345
1346 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
1347
1348         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1349         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
1350
1351 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1352
1353         * config/spu/spu-builtins.h: Delete file.
1354
1355         * config/spu/spu.h (enum spu_builtin_type): Move here from
1356         spu-builtins.h.
1357         (struct spu_builtin_description): Likewise.  Add GTY marker.
1358         Do not use enum spu_function_code or enum insn_code.
1359         (spu_builtins): Add extern declaration.
1360
1361         * config/spu/spu.c: Do not include "spu-builtins.h".
1362         (enum spu_function_code, enum spu_builtin_type_index,
1363         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
1364         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
1365         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
1366         unsigned_V2DI_type_node): Move here from spu-builtins.h.
1367         (spu_builtin_types): Make static.  Add GTY marker.
1368         (spu_builtins): Add extern declaration with GTY marker.
1369         Include "gt-spu.h".
1370
1371         * config/spu/spu-c.c: Do not include "spu-builtins.h".
1372         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
1373         Check programmatically whether all parameters are scalar.
1374
1375         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
1376
1377 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1378
1379         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
1380         assignment from the constructor either if the target is volatile.
1381
1382 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
1383
1384         * config/arm/arm.md (insv): Do not share operands[0].
1385
1386 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
1387
1388         * config/vxlib-tls.c (active_tls_threads): Delete.
1389         (delete_hook_installed): New.
1390         (tls_delete_hook): Don't delete the delete hook.
1391         (tls_destructor): Delete it here.
1392         (__gthread_set_specific): Adjust installing the delete hook.
1393         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
1394         __gthread_leave_tsd_dtor_context.
1395
1396 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
1397
1398         * c-format.c (gcc_tdiag_char_table): Add support for %E.
1399
1400 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
1401
1402         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
1403         enum type.
1404         (alpha_rtx_costs): Ditto.
1405         (emit_unlikely_jump): Use add_reg_note.
1406         (emit_frame_store_1): Ditto.
1407         (alpha_expand_prologue): Ditto.
1408         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1409         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
1410
1411 2009-04-23  Nick Clifton  <nickc@redhat.com>
1412
1413         * config/v850/v850.md (epilogue): Remove suppressed code.
1414         (return): Rename to return_simple and remove test of frame size.
1415         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
1416         to gen_return_simple.
1417
1418 2009-04-22  Jing Yu  <jingyu@google.com>
1419
1420         PR testsuite/39781
1421         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
1422
1423 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1424
1425         PR C/31499
1426         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
1427         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
1428         value is a VECTOR_CST, the element type is the element type of the
1429         vector.
1430
1431 2009-04-22  DJ Delorie  <dj@redhat.com>
1432
1433         * config/m32c/m32c.h: Update GTY annotations to new syntax.
1434
1435 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
1436
1437         * alias.c (find_base_term): Move around LO_SUM case, so that
1438         CONST falls through into PLUS/MINUS handling.
1439
1440         PR c/39855
1441         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
1442         into 0, use omit_one_operand.
1443
1444 2009-04-23  Ben Elliston  <bje@au.ibm.com>
1445
1446         * config/rs6000/linux-unwind.h (get_regs): Remove type
1447         puns. Change the type of `pc' to an array of unsigned ints and
1448         update all users.  Constify frame24.
1449
1450 2009-04-22  DJ Delorie  <dj@redhat.com>
1451
1452         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
1453         declarations before code.
1454         (current_function_special_page_vector): Likewise.
1455         (m32c_expand_insv): Silence a warning.
1456
1457 2009-04-21  Taras Glek  <tglek@mozilla.com>
1458
1459         * alias.c: Update GTY annotations to new syntax.
1460         * basic-block.h: Likewise.
1461         * bitmap.h: Likewise.
1462         * c-common.h: Likewise.
1463         * c-decl.c: Likewise.
1464         * c-parser.c: Likewise.
1465         * c-pragma.c: Likewise.
1466         * c-tree.h: Likewise.
1467         * cfgloop.h: Likewise.
1468         * cgraph.h: Likewise.
1469         * config/alpha/alpha.c: Likewise.
1470         * config/arm/arm.h: Likewise.
1471         * config/avr/avr.h: Likewise.
1472         * config/bfin/bfin.c: Likewise.
1473         * config/cris/cris.c: Likewise.
1474         * config/darwin.c: Likewise.
1475         * config/frv/frv.c: Likewise.
1476         * config/i386/i386.c: Likewise.
1477         * config/i386/i386.h: Likewise.
1478         * config/i386/winnt.c: Likewise.
1479         * config/ia64/ia64.h: Likewise.
1480         * config/iq2000/iq2000.c: Likewise.
1481         * config/mips/mips.c: Likewise.
1482         * config/mmix/mmix.h: Likewise.
1483         * config/pa/pa.c: Likewise.
1484         * config/pa/pa.h: Likewise.
1485         * config/rs6000/rs6000.c: Likewise.
1486         * config/s390/s390.c: Likewise.
1487         * config/sparc/sparc.c: Likewise.
1488         * config/xtensa/xtensa.c: Likewise.
1489         * cselib.h: Likewise.
1490         * dbxout.c: Likewise.
1491         * dwarf2out.c: Likewise.
1492         * except.c: Likewise.
1493         * except.h: Likewise.
1494         * fixed-value.h: Likewise.
1495         * function.c: Likewise.
1496         * function.h: Likewise.
1497         * gimple.h: Likewise.
1498         * integrate.c: Likewise.
1499         * optabs.c: Likewise.
1500         * output.h: Likewise.
1501         * real.h: Likewise.
1502         * rtl.h: Likewise.
1503         * stringpool.c: Likewise.
1504         * tree-data-ref.c: Likewise.
1505         * tree-flow.h: Likewise.
1506         * tree-scalar-evolution.c: Likewise.
1507         * tree-ssa-address.c: Likewise.
1508         * tree-ssa-alias.h: Likewise.
1509         * tree-ssa-operands.h: Likewise.
1510         * tree.c: Likewise.
1511         * tree.h: Likewise.
1512         * varasm.c: Likewise.
1513         * varray.h: Likewise.
1514         * vec.h: Likewise.
1515         * coretypes.h: Do not define GTY macro if it is already defined.
1516         * doc/gty.texi: Update GTY documentation to new syntax.
1517         * gengtype-lex.l: Enforce attribute-like syntax for GTY
1518         annotations on structs.
1519         * gengtype-parse.c: Likewise.
1520
1521 2009-04-22  Mark Heffernan  <meheff@google.com>
1522
1523         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
1524
1525 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
1526
1527         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
1528         where appropriate.
1529
1530 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
1531
1532         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
1533         the same as a PLUS without a shift.  Increase the cost of a
1534         CONST_INT in MULT.
1535
1536 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1537
1538         * Makefile.in: Update dependencies.
1539         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
1540         * errors.h: Remove bogus comment about compatibility.
1541         (warning): Update declaration.
1542         * genautomata.c: Update all calls to warning.
1543         * gimple.c: Do not include errors.h. Include toplev.h.
1544         * tree-ssa-structalias.c: Do not include errors.h.
1545         * omega.c: Likewise.
1546         * tree-ssa-reassoc.c: Likewise.
1547         * config/spu/spu-c.c: Likewise.
1548         * config/spu/t-spu-elf: Update dependencies.
1549
1550 2009-04-22  Richard Guenther  <rguenther@suse.de>
1551
1552         PR tree-optimization/39824
1553         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
1554         make sure the types are compatible.
1555
1556 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1557
1558         PR c++/14875
1559         * c-common.c (c_parse_error): Take a token_flags parameter.
1560         Use token_type for the token type instead.
1561         Pass token_flags to cpp_type2name.
1562         * c-common.h (c_parse_error): Update declaration.
1563         * c-parser.c (c_parser_error): Pass 0 as token flags.
1564
1565 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
1566
1567         PR rtl-optimization/39580
1568         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
1569         
1570 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1571
1572         * function.c (expand_function_end): Do not emit a jump to the "naked"
1573         return label for fall-through returns.
1574         * except.c (sjlj_emit_function_exit): Always place the call to the
1575         unregister function at the location installed by expand_function_end.
1576
1577 2009-04-22  Richard Guenther  <rguenther@suse.de>
1578
1579         PR tree-optimization/39845
1580         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
1581         (gen_inbound_check): Likewise.
1582
1583 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
1584
1585         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
1586         padding for PPC.
1587         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
1588         * config/vxlib.c (__gthread_once): Add race guard for PPC.
1589
1590 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1591
1592         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
1593         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
1594         shift counts to avoid out-of-bounds array accesses.
1595
1596 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1597
1598         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
1599         (Pmode): Move above.
1600
1601 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
1602
1603         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
1604         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
1605         GET_CODE macro.  Use IN_RANGE macro where appropriate.
1606         * config/alpha/alpha.h: Ditto.
1607         * config/alpha/alpha.md: Ditto.
1608         * config/alpha/constraints.md: Ditto.
1609         * config/alpha/predicates.md: Ditto.
1610         
1611 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
1612
1613         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
1614         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1615         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1616         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1617         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1618         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1619         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1620         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1621         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1622         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1623         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1624         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1625         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1626         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1627         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1628         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1629         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1630         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1631         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1632         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1633         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1634         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1635         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1636         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1637         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1638         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1639         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1640
1641 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1642
1643         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
1644         references from comments.
1645         * cfgbuild.c: (count_basic_blocks): Delete.
1646         (find_basic_blocks_1): Delete.
1647         (find_basic_blocks): Delete.
1648         * except.c (finish_eh_generation): Make static.  Move comment from
1649         except.h here.  Remove find_basic_blocks references from comments.
1650         * except.h (finish_eh_generation): Delete.
1651         * basic-block.h (find_basic_blocks): Delete.
1652         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
1653
1654 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1655
1656         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
1657         (sdbout_parms):  Likewise.
1658
1659 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1660
1661         * config/sh/sh.c (prepare_cbranch_operands): Use
1662         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
1663         (expand_cbranchdi4): Likewise.
1664         (from_compare): Add cast to enum type.
1665         (expand_cbranchsi4): Use add_reg_note.
1666         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
1667         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
1668         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
1669         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1670         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
1671         instead of CODE_FOR_nothing.
1672         (cbranchdi4): Likewise.  Fix the order of arguments for
1673         gen_rtx_fmt_ee.
1674         (push_fpscr): Use add_reg_note.
1675         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
1676         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
1677         
1678 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
1679
1680         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
1681         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
1682         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
1683         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
1684         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
1685         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
1686         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
1687         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
1688         config/alpha/x-vms, config/arc/t-arc,
1689         config/arm/README-interworking, config/arm/arm-c.c,
1690         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
1691         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
1692         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
1693         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
1694         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
1695         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
1696         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
1697         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
1698         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
1699         config/cris/t-elfmulti, config/crx/t-crx,
1700         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
1701         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
1702         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
1703         config/h8300/t-h8300, config/i386/athlon.md,
1704         config/i386/darwin-libgcc.10.4.ver,
1705         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
1706         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
1707         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
1708         config/i386/t-linux64, config/i386/t-nwld,
1709         config/i386/t-rtems-i386, config/i386/t-sol2-10,
1710         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
1711         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
1712         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
1713         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
1714         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
1715         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
1716         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
1717         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
1718         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
1719         config/m68k/t-uclinux, config/mcore/t-mcore,
1720         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
1721         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
1722         config/mips/crtn.asm, config/mips/irix-crti.asm,
1723         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
1724         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
1725         config/mips/mips-fixed.md, config/mips/sb1.md,
1726         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
1727         config/mips/t-iris6, config/mips/t-isa3264,
1728         config/mips/t-libgcc-mips16, config/mips/t-linux64,
1729         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
1730         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
1731         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
1732         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
1733         config/mn10300/t-linux, config/mn10300/t-mn10300,
1734         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
1735         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
1736         config/picochip/libgccExtras/clzsi2.asm,
1737         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
1738         config/rs6000/darwin-libgcc.10.4.ver,
1739         config/rs6000/darwin-libgcc.10.5.ver,
1740         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
1741         config/rs6000/t-aix43, config/rs6000/t-aix52,
1742         config/rs6000/t-darwin, config/rs6000/t-fprules,
1743         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
1744         config/rs6000/t-lynx, config/rs6000/t-netbsd,
1745         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
1746         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
1747         config/rs6000/t-rtems, config/rs6000/t-spe,
1748         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
1749         config/score/t-score-elf, config/sh/divcost-analysis,
1750         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
1751         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
1752         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
1753         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
1754         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
1755         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
1756         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
1757         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
1758         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
1759         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
1760         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
1761         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
1762         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
1763         limitx.h, version.c, xcoff.h: Add copyright and license notices.
1764         * config/h8300/genmova.sh: Include copyright and license notices
1765         in generated output.
1766         * config/h8300/mova.md: Regenerate.
1767         * doc/install.texi2html: Include word "Copyright" in copyright
1768         notice and use name "Free Software Foundation, Inc.".
1769         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
1770         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
1771         ChangeLog-2007, ChangeLog-2008: Correct dates.
1772
1773 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
1774
1775         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
1776         NE_EXPR operations as well.
1777         * c-parser.c (c_parser_condition): Do not set location information on
1778         the condition.
1779         (c_parser_conditional_expression): Likewise.
1780         (c_parser_binary_expression): Set location information on operators.
1781         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
1782         TRUTH_NOT_EXPR has been folded.
1783         * fold-const.c (fold_truth_not_expr): Copy location information from
1784         the incoming expression to the outgoing one.
1785         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
1786         recursive calls on the LHS of the operator but pass that of the
1787         operator to recursive calls on the RHS of the operator.  Set it
1788         on the COND_EXPR.
1789         (shortcut_cond_expr): Set the locus of the operator on the second
1790         COND_EXPR and that of the expression on the first in degenerate cases.
1791         Pass the locus of the expression to calls to shortcut_cond_r.
1792         Set the locus of the 'then' block on the associated jump, if any.
1793         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
1794         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
1795         expression to call to gimplify_boolean_expr.
1796
1797 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
1798
1799         * config.gcc: Add additional configuration for
1800         i686-w64-mingw* and x86_64-w64-mingw* triplet.
1801         * config/i386/mingw-w64.h: New mingw-w64 specific header.
1802         (CPP_SPEC): Redefine for allowing -municode option.
1803         (STARTFILE_SPEC): Likewise.
1804         * config/i386/t-mingw-w64: New.
1805         * config/i386/mingw-w64.opt: New.
1806         (municode): Add new target option.
1807         * doc/invoke.texi (municode): Add documentation for new option.
1808
1809 2009-04-21  Ian Lance Taylor  <iant@google.com>
1810
1811         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1812         Correct test for number of arguments.
1813         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1814
1815 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
1816
1817         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
1818         argument of emit_library_call.
1819
1820 2009-04-21  Richard Guenther  <rguenther@suse.de>
1821
1822         PR middle-end/39829
1823         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
1824         inside VIEW_CONVERT_EXPRs.
1825
1826 2009-04-21  Martin Jambor  <mjambor@suse.cz>
1827
1828         * tree-switch-conversion.c (build_constructors): Split a long line.
1829         (constructor_contains_same_values_p): New function.
1830         (build_one_array): Create assigns of constants if possible, do not
1831         call mark_sym_for_renaming, call update_stmt.
1832         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
1833         make_rename_temp.  Do not call mark_symbols_for_renaming, call
1834         update_stmt.
1835         (gen_def_assigns): Do not call mark_symbols_for_renaming or
1836         find_new_referenced_vars, call update_stmt.
1837         (gen_inbound_check): Use create_tmp_var and create ssa names manually
1838         instead of calling make_rename_temp.  Do not call
1839         find_new_referenced_vars or mark_symbols_for_renaming, call
1840         update_stmt.
1841
1842 2009-04-21  Richard Guenther  <rguenther@suse.de>
1843
1844         PR tree-optimization/39827
1845         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
1846         (tree_ssa_phiprop): Pass the correct array size.
1847
1848 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
1849
1850         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
1851
1852 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1853
1854         PR 16202
1855         * c-typeck.c (lvalue_p): Move declaration ...
1856         * c-common.h (lvalue_p): ... to here.
1857         * c-common.c (candidate_equal_p): New.
1858         (add_tlist): Use it.
1859         (merge_tlist): Use it.
1860         (warn_for_collisions_1): Likewise.
1861         (warning_candidate_p): Accept more candidates.
1862         (verify_tree): A warning candidate can be an expression. Use
1863         candidate_equal_p.
1864
1865 2009-04-21  Ben Elliston  <bje@au.ibm.com>
1866
1867         PR target/5267
1868         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
1869         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
1870         options.  Remove -mcall-solaris documentation.
1871
1872 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1873
1874         PR c++/13358
1875         * doc/invoke.texi (-Wlong-long): Update description.
1876         * c-lex (interpret_integer): Only warn if there was no previous
1877         overflow and -Wlong-long is enabled.
1878         * c-decl.c (declspecs_add_type): Drop redundant flags.
1879         * c.opt (Wlong-long): Init to -1.
1880         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
1881         and front-end warn_long_long. Wlong-long only depends on other
1882         flags if it is uninitialized.
1883         * c-parser.c (disable_extension_diagnostics): warn_long_long is
1884         the same for CPP and FE.
1885         (restore_extension_diagnostics): Likewise.
1886
1887 2009-04-20  Ian Lance Taylor  <iant@google.com>
1888
1889         Fix enum conversions which are invalid in C++:
1890         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
1891         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
1892         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
1893         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
1894         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
1895         (dbxout_parms): Likewise.
1896         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
1897         (df_clear_flags): Likewise.
1898         * df-problems.c (df_rd_bb_local_compute_process_def): Change
1899         top_flag parameter to int.
1900         (df_chain_create_bb_process_use): Likewise.
1901         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
1902         Remove cast.
1903         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
1904         (df_ref_create_structure, df_def_record_1): Likewise.
1905         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
1906         (df_notes_rescan): Change 0 to VOIDmode in function call.
1907         (df_get_call_refs, df_insn_refs_collect): Likewise.
1908         (df_bb_regs_collect): Likewise.
1909         (df_entry_block_defs_collect): Likewise.
1910         (df_exit_block_uses_collect): Likewise.
1911         * df.h: Update declarations.
1912         * double-int.c (double_int_divmod): Add cast to enum type.
1913         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
1914         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
1915         (based_loc_descr): Likewise.
1916         (loc_descriptor_from_tree_1): Change first_op and second_op to
1917         enum dwarf_location_atom.  Add cast to enum type.
1918         * expmed.c (init_expmed): Change 0 to SET in function call.
1919         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
1920         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
1921         (do_store_flag): Likewise.
1922         * fixed-value.h (struct fixed_value): Change mode to enum
1923         machine_mode.
1924         * function.c (assign_parms): Change 0 to VOIDmode in function call.
1925         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
1926         function call.
1927         (insert_insn_decl, insert_decl, insert_state): Likewise.
1928         (automata_list_finish): Likewise.
1929         * genrecog.c (process_define_predicate): Add cast to enum type.
1930         * gensupport.c (init_predicate_table): Add cast to enum type.
1931         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
1932         function call.
1933         (gimple_build_call_1, gimple_build_label): Likewise.
1934         (gimple_build_goto, gimple_build_asm_1): Likewise.
1935         (gimple_build_switch_1, gimple_build_cdt): Likewise.
1936         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
1937         (enum fallback): Rename from enum fallback_t.
1938         (fallback_t): Typedef as int.
1939         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
1940         GSI_SAME_STMT in function call.
1941         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
1942         enum type.
1943         (setup_reg_class_relations): Likewise.
1944         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
1945         (setup_prohibited_class_mode_regs): Add cast to enum type.
1946         (setup_prohibited_mode_move_regs): Likewise.
1947         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
1948         (record_address_regs): Change i to enum reg_class.
1949         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
1950         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
1951         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
1952         (GET_MODE_2XWIDER_MODE): Likewise.
1953         (GET_CLASS_NARROWEST_MODE): Likewise.
1954         * omp-low.c (expand_omp_for): Add cast to enum type.
1955         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
1956         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
1957         * postreload.c (reload_cse_simplify_operands): Change rclass local
1958         to enum reg_class.
1959         * predict.c (combine_predictions_for_insn): Change best_predictor
1960         and predictor to enum br_predictor.
1961         (combine_predictions_for_bb): Likewise.
1962         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
1963         use SET_PREDICT_EXPR_OUTCOME.
1964         * real.c (real_arithmetic): Change icode to code in function call.
1965         * reginfo.c (init_move_cost): Add casts to enum type.
1966         (init_reg_sets_1, init_fake_stack_mems): Likewise.
1967         * regmove.c (regclass_compatible_p): Change class0 and class1 to
1968         enum reg_class.
1969         * reload.c (find_valid_class): Add casts to enum type.
1970         (push_reload): Change 0 to NO_REGS in function call.
1971         (find_reloads): Change this_alternative to array of enum
1972         reg_class.  Remove some now-unnecessary casts.
1973         (make_memloc): Change 0 to VOIDmode in function call.
1974         * reload1.c (reload): Change 0 to VOIDmode in function call.
1975         (eliminate_regs_1, elimination_effects): Likewise.
1976         (eliminate_regs_in_insn): Likewise.
1977         (emit_input_reload_insns): Add cast to enum type.
1978         (delete_output_reload): Change 0 to VOIDmode in function call.
1979         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
1980         to enum type in function call.
1981         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
1982         (SET_PREDICT_EXPR_OUTCOME): Define.
1983         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
1984         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
1985         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
1986         (dump_function): Likewise.
1987         * tree-dump.h: Update declarations.
1988         * tree-pass.h: Update declarations.
1989         * varasm.c (assemble_integer): Change mclass to enum mode_class.
1990         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
1991         enum type.
1992         (arm_rtx_costs_1): Correct parenthesization.
1993         (arm_rtx_costs): Add casts to enum type.
1994         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
1995         (vfp_emit_fstmd): Use add_rg_note.
1996         (emit_multi_reg_push, emit_sfm): Likewise.
1997         (thumb_set_frame_pointer): Likewise.
1998         (arm_expand_prologue): Likewise.
1999         (arm_regno_class): Change return type to enum reg_class.
2000         (thumb1_expand_prologue): Use add_reg_note.
2001         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
2002         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
2003         in function call.
2004         * config/arm/gentune.sh: Add cast to enum type.
2005         * config/arm/arm-tune.md: Rebuild.
2006         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
2007         (ix86_split_fp_branch, predict_jump): Likewise.
2008         (ix86_expand_multi_arg_builtin): Change sub_code from enum
2009         insn_code to enum rtx_code.
2010         (ix86_builtin_vectorized_function): Add cast to enum type.
2011         * config/i386/i386.md (truncdfsf2): Change slot to enum
2012         ix86_stack_slot.
2013         (truncxf<mode>2, isinf<mode>2): Likewise.
2014         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
2015         enum type.
2016         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
2017         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
2018         (insert_bundle_state): Change 1 to INSERT in function call.
2019         (ia64_add_bundle_selector_before): Likewise.
2020         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
2021         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
2022         (restore_stack_nonlocal): Likewise.
2023         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
2024         function call.
2025         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
2026         function call.
2027         (mips_rtx_costs): Likewise.
2028         (mips_override_options): Add casts to enum type.
2029         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
2030         in function call.
2031         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
2032         (store_reg, set_reg_plus_d): Likewise.
2033         (hppa_expand_prologue, hppa_profile_hook): Likewise.
2034         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2035         cast to enum type.
2036         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
2037         function call.
2038         (emit_unlikely_jump): Use add_reg_note.
2039         (rs6000_emit_allocate_stack): Likewise.
2040         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
2041         (output_toc): Change 1 to INSERT in function call.
2042         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
2043         (rs6000_initialize_trampoline): Likewise.
2044         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
2045         function call.
2046         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
2047         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
2048         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
2049         (save_gprs): Use add_reg_note.
2050         (s390_emit_prologue): Likewise.
2051         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2052         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
2053         (sparc_fold_builtin): Add cast to enum type.
2054         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
2055         enum insn_code.
2056         (spu_expand_prologue): Use add_reg_note.
2057         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
2058
2059 2009-04-20  Ian Lance Taylor  <iant@google.com>
2060
2061         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
2062         (c_parser_postfix_expression_after_primary): Get VEC for list of
2063         arguments.  Get original types of arguments.  Call
2064         build_function_call_vec.
2065         (cached_expr_list_1, cached_expr_list_2): New static variables.
2066         (c_parser_expr_list): Change return type to VEC *.  Add
2067         p_orig_types parameter.  Change all callers.
2068         (c_parser_release_expr): New static function.
2069         (c_parser_vec_to_tree_list): New static function.
2070         * c-typeck.c (build_function_call): Rewrite to build a VEC and
2071         call build_function_call_vec.
2072         (build_function_call_vec): New function, based on old
2073         build_function_call.
2074         (convert_arguments): Remove nargs and argarray parameters.  Change
2075         values to a VEC.  Add origtypes parameter.
2076         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
2077         (convert_for_assignment): Add origtype parameter.  Change all
2078         callers.  If warn_cxx_compat, check for conversion to an enum
2079         type when calling a function.
2080         (store_init_value): Add origtype parameter.  Change all callers.
2081         (digest_init): Likewise.
2082         (struct init_node): Add origtype field.
2083         (add_pending_init): Add origtype parameter.  Change all callers.
2084         (output_init_element): Likewise.
2085         (output_pending_init_elements): Pass origtype from init_node to
2086         output_init_element.
2087         (process_init_element): Pass origtype from c_expr to
2088         output_init_element.
2089         (c_finish_return): Add origtype parameter.  Change all callers.
2090         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
2091         caller.
2092         (sync_resolve_params): Likewise.
2093         (sync_resolve_return): Change params to first_param.  Change caller.
2094         (resolve_overloaded_builtins): Change params to VEC *.  Change
2095         callers.  Save first parameter around call to build_function_call_vec.
2096         * c-decl.c (finish_decl): Add origtype parameter.  Change all
2097         callers.  Call build_function_call_vec rather than
2098         build_function_call for cleanup.
2099         * c-tree.h: Update declarations.
2100         * c-common.h: Update declarations.
2101         * stub-objc.c (objc_rewrite_function_call): Change parameter from
2102         params to first_param.
2103         * target.h (struct gcc_target): Change resolve_overloaded_builtin
2104         params parameter from tree to void *.
2105         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2106         Change arglist parameter to have type void *, and to be a pointer
2107         to a VEC.
2108         * config/rs6000/rs6000-protos.h
2109         (altivec_resolve_overloaded_builtin): Update declaration.
2110         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
2111         fnargs parameter to have type void *, and to be a pointer to a
2112         VEC.  Call build_function_call_vec instead of
2113         build_function_call.
2114         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
2115
2116 2009-04-20  Joey Ye  <joey.ye@intel.com>
2117             Xuepeng Guo  <xuepeng.guo@intel.com>
2118             H.J. Lu  <hongjiu.lu@intel.com>
2119
2120         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
2121
2122         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
2123         (IX86_LEA_PRIORITY): Likewise.
2124         (distance_non_agu_define): New function.
2125         (distance_agu_use): Likewise.
2126         (ix86_lea_for_add_ok): Likewise.
2127         (ix86_dep_by_shift_count): Likewise.
2128
2129         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
2130         should split for LEA.
2131
2132         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
2133         function.
2134         (ix86_dep_by_shift_count): Likewise.
2135
2136 2009-04-20  Richard Guenther  <rguenther@suse.de>
2137
2138         * expr.c (handled_component_p): Move ...
2139         * tree.h (handled_component_p): ... here.
2140         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
2141         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
2142         and REALPART_EXPR to be in one group.
2143
2144 2009-04-20  Richard Guenther  <rguenther@suse.de>
2145
2146         * basic-block.h (get_all_dominated_blocks): Declare.
2147         * dominance.c (get_all_dominated_blocks): New function.
2148         * tree-cfg.c (get_all_dominated_blocks): Remove.
2149         (remove_edge_and_dominated_blocks): Adjust.
2150         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
2151         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
2152         instead of recursing.
2153
2154 2009-04-20  Doug Kwan  <dougkwan@google.com>
2155
2156         * cgraph.h (cgraph_node_ptr): New type for vector functions.
2157         (struct cgraph_node_set_def): New type.
2158         (cgraph_node_set) New type. Also declare vector functions.
2159         (struct cgraph_node_set_element_def): New type.
2160         (cgraph_node_set_element): Ditto.
2161         (cgraph_node_set_iterator): New iterator type.
2162         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
2163         cgraph_node_set_remove, dump_cgraph_node_set,
2164         debug_cgraph_node_set): New prototypes.
2165         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
2166         cgraph_node_set_size): New inlines.
2167         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
2168         including cgraph.h.
2169         (struct ipa_opt_pass): Add struct cgraph_node_set_def
2170         argument to function 'write_summary'.
2171         * ipa.c: Include ggc.h.
2172         (hash_cgraph_node_set_element,
2173         eq_cgraph_node_set_element, cgraph_node_set_new,
2174         cgraph_node_set_add, cgraph_node_set_remove,
2175         cgraph_node_set_find, dump_cgraph_node_set,
2176         debug_cgraph_node_set): New functions.
2177         * Makefile.in (ipa.o): Add dependency on GGC_H.
2178
2179 2009-04-20  Ira Rosen  <irar@il.ibm.com>
2180
2181         PR tree-optimization/39675
2182         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
2183         check of the return code of vect_schedule_slp. Check that
2184         stmt_vec_info still exists for the statement, before checking its
2185         vectorization type.
2186
2187 2009-04-20  Michael Matz  <matz@suse.de>
2188
2189         * Makefile.in (generated_files): Take out $(simple_generated_c).
2190
2191 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
2192
2193         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
2194         (UINTPTR_TYPE):  Likewise.
2195
2196 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
2197
2198         PR c/37481
2199         * c-typeck.c (digest_init): Check for initializing an array with a
2200         string literal.
2201
2202 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
2203
2204         PR c/19771
2205         * c-semantics.c (pop_stmt_list): Propagate
2206         STATEMENT_LIST_HAS_LABEL to parent statement list.
2207
2208 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
2209
2210         * config/mips/mips.h (mips_tune_attr): New macro.
2211         * config/mips/mips.md (cpu): Use it.
2212
2213 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
2214
2215         PR c/38243
2216         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
2217         declaring a tag.
2218
2219 2009-04-19  Diego Novillo  <dnovillo@google.com>
2220
2221         * toplev.c (compile_file): Move call to coverage_finish ...
2222         * cgraphunit.c (ipa_passes): ... here.
2223         Call cgraph_process_new_functions.
2224         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
2225         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
2226
2227 2009-04-19  Jan Hubicka  <jh@suse.cz>
2228
2229         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
2230         cfun.
2231         (dump_cgraph_node): Dump can throw external flag.
2232         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
2233
2234 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2235
2236         PR c/32061
2237         PR c++/36954
2238         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
2239         * common.opt (Wlogical-op): Move from here...
2240         * c.opt (Wlogical-op): ... to here.
2241         * c-typeck.c (parser_build_binary_op): Update call to
2242         warn_logical_operator.
2243         * c-opts.c (c_common_post_options): Enable warn_logical_op with
2244         extra_warnings.
2245         * c-common.c (warn_logical_op): Update.
2246         * c-common.h (warn_logical_op): Update declaration.
2247
2248 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2249
2250         * tree.c (protected_set_expr_location): Fix formatting.
2251
2252 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
2253
2254         PR c/27676
2255         * c-typeck.c (readonly_warning): new.
2256         (build_unary_op, build_modify_expr): Use readonly_warning for
2257         storing into something readonly but not const-qualified.
2258
2259 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
2260
2261         PR c/22367
2262         * c-typeck.c (build_unary_op): Check for taking address of
2263         expression of type void.
2264
2265 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
2266
2267         PR c/35210
2268         * c-typeck.c (build_function_call): Check for calling a function
2269         with qualified void return types.  Call require_complete_type when
2270         generating a trap.
2271
2272 2009-04-18  Jan Hubicka  <jh@suse.cz>
2273
2274         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
2275         Set nothrow flag.
2276         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
2277         can_throw_external flag.
2278         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
2279         * ipa-pure-const.c (ignore_edge): New function.
2280         (propagate): Compute order for NOTHROW computation; set NOTHROWs
2281         only over can_throw_external edges.
2282         (local_pure_const): Add nothrow flag.
2283         * ipa-utils.c (searchc): Add ignore_edge callback.
2284         (ipa_utils_reduced_inorder): Add ignore_edge callback.
2285         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
2286         (set_nothrow_function_flags): Update cgraph.
2287         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
2288
2289 2009-04-18  Richard Guenther  <rguenther@suse.de>
2290
2291         PR middle-end/39804
2292         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
2293         (fold_stmt): ... this and ...
2294         (fold_stmt_inplace): ... this.
2295         (fold_stmt_1): Fold references in calls and asms.
2296         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
2297
2298 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2299
2300         * tree-vrp.c (ssa_name_nonzero_p): Remove.
2301         * tree.h: Remove the prototype for ssa_name_nonzero_p.
2302
2303 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2304
2305         * tree.c (function_args_count): Remove.
2306         * tree.h: Remove the prototype for function_args_count.
2307
2308 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2309
2310         * tree-iterator.c (expr_only): Remove.
2311         * tree.h: Remove the prototype for expr_only.
2312
2313 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2314
2315         * reginfo.c (cannot_change_mode_set_regs): Remove.
2316         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
2317
2318 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
2319
2320         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
2321         whether operands 0 and 1 overlaps.
2322
2323 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2324
2325         PR middle-end/36902
2326         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
2327         pointer. Use warning_at instead of warning.
2328         (search_for_addr_array): Likewise.
2329         (check_array_bounds): Likewise.
2330         (check_all_array_refs): Check that the incoming edge is not in the
2331         list of edges to be removed.
2332         (check_all_array_refs): Avoid the temporal pointer.
2333         (vrp_visit_cond_stmt): Fix typo.
2334         (simplify_switch_using_ranges): Handle the case where the switch
2335         index is an integer constant.
2336
2337 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
2338
2339         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
2340
2341 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
2342
2343         * doc/extend.texi, doc/invoke.texi: Fix typos.
2344
2345 2009-04-17  Cary Coutant  <ccoutant@google.com>
2346
2347         * tree-flow-inline.h (get_lineno): Fix inverted test.
2348
2349 2009-04-17  Diego Novillo  <dnovillo@google.com>
2350
2351         * tree-ssa-pre.c (create_expression_by_pieces): Remove
2352         assertion for AVAIL_OUT.
2353
2354 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
2355
2356         PR target/38627
2357         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
2358         * config/sh/linux-atomic.asm: Likewise.
2359
2360 2009-04-17  Diego Novillo  <dnovillo@google.com>
2361
2362         * except.c (debug_eh_tree): New.
2363         (struct eh_region, struct eh_status): Move ...
2364         * except.h: ... here.
2365         (add_type_for_runtime): Declare extern.
2366         (lookup_type_for_runtime): Likewise.
2367         (debug_eh_tree): Declare.
2368         * Makefile.in (GTFILES): List except.h before except.c
2369
2370 2009-04-17  Diego Novillo  <dnovillo@google.com>
2371
2372         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
2373         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2374         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
2375         (find_vars_r): ... here.
2376         * tree-flow.h (find_referenced_vars_in): Declare.
2377         * tree-ssa-pre.c (create_expression_by_pieces): Assert
2378         that AVAIL_OUT exists for BLOCK.
2379         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
2380         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
2381         (tree-parloops.o): Likewise.
2382
2383 2009-04-17  Simon Baldwin  <simonb@google.com>
2384
2385         * toplev.c (default_tree_printer): Add handling for %E format.
2386
2387 2009-04-17  Diego Novillo  <dnovillo@google.com>
2388
2389         * tree-pretty-print.c (dump_generic_node): Add break after
2390         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
2391         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
2392         FUNCTION_TYPE together.  Call print_struct_decl when printing
2393         structures and TDF_SLIM is not given.
2394         (print_struct_decl): Fix logic for detecting recursion.
2395
2396 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
2397
2398         PR 31567
2399         * gcc.c (create_at_file): New.
2400         (compile_input_file_p): New.
2401         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
2402         * main.c (main): Update call to toplev_main.
2403         * toplev.c (toplev_main): Change signature. Call expandargv.
2404         * toplev.h (toplev_main): Change signature.
2405
2406 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2407
2408         * dwarf2out.c (field_byte_offset): Use the type size as the field size
2409         if the latter is not constant.
2410
2411 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
2412
2413         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
2414
2415 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2416
2417         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
2418         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
2419
2420 2009-04-17  Richard Guenther  <rguenther@suse.de>
2421
2422         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2423         Handle component references view-converting an invariant address.
2424
2425 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
2426
2427         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
2428         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
2429         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
2430         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
2431         Use @deftypevr rather than @deftypevar.
2432
2433 2009-04-17  Richard Guenther  <rguenther@suse.de>
2434
2435         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
2436         (get_prop_source_stmt): Likewise.
2437         (can_propagate_from): Likewise.
2438
2439 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
2440
2441         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
2442         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
2443         (--with-multilib-list): Add default value.
2444         * configure: Regenerate.
2445         * Makefile.in (TM_ENDIAN_CONFIG): Define.
2446         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
2447         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
2448         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
2449         Don't add default cpu to multilib list unnecessarily, but do enable
2450         the relevant compiler option..
2451         Add support for --with-multilib-list=<blank> and
2452         --with-multilib-list=!<somelib> to supress unwanted multilibs.
2453         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
2454         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
2455         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
2456         TM_MULTILIB_CONFIG.
2457         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
2458         (MULTILIB_OSDIRNAMES): New variable.
2459         * config/sh/t-1e: Delete file.
2460         * config/sh/t-mlib-sh1: Delete file.
2461         * config/sh/t-mlib-sh2: Delete file.
2462         * config/sh/t-mlib-sh2a: Delete file.
2463         * config/sh/t-mlib-sh2a-nofpu: Delete file.
2464         * config/sh/t-mlib-sh2a-single: Delete file.
2465         * config/sh/t-mlib-sh2a-single-only: Delete file.
2466         * config/sh/t-mlib-sh2e: Delete file.
2467         * config/sh/t-mlib-sh3e: Delete file.
2468         * config/sh/t-mlib-sh4: Delete file.
2469         * config/sh/t-mlib-sh4-nofpu: Delete file.
2470         * config/sh/t-mlib-sh4-single: Delete file.
2471         * config/sh/t-mlib-sh4-single-only: Delete file.
2472         * config/sh/t-mlib-sh4a: Delete file.
2473         * config/sh/t-mlib-sh4a-nofpu: Delete file.
2474         * config/sh/t-mlib-sh4a-single: Delete file.
2475         * config/sh/t-mlib-sh4a-single-only: Delete file.
2476         * config/sh/t-mlib-sh4al: Delete file.
2477         * config/sh/t-mlib-sh5-32media: Delete file.
2478         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
2479         * config/sh/t-mlib-sh5-64media: Delete file.
2480         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
2481         * config/sh/t-mlib-sh5-compact: Delete file.
2482         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
2483         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
2484         * doc/install.texi (Options specification): Add
2485         --with-multilib-list and --with-endian.
2486
2487 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
2488
2489         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
2490         REVISION_c.
2491         (OBJS-common): Add plugin-version.o.
2492         (plugin-version.o): New.
2493         * gcc-plugin.h (plugin_gcc_version): New.
2494         (plugin_default_version_check): New.
2495         (plugin_init_func, plugin_init): Add version argument.
2496         * plugin-version.c: New.
2497         * plugin.c (str_plugin_gcc_version_name): New.
2498         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
2499         pass it to the init function.
2500         (plugin_default_version_check): New.
2501
2502 2009-04-17  Richard Guenther  <rguenther@suse.de>
2503
2504         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
2505         for decl-vs-decl disambiguation.
2506
2507 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
2508
2509         * config/s390/s390.h (s390_tune_attr): New macro definition.
2510         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
2511
2512 2009-04-17  Richard Guenther  <rguenther@suse.de>
2513
2514         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
2515         (fold_stmt_r): Likewise.
2516         (maybe_fold_reference): New function.
2517         (fold_gimple_assign): Handle cases fold_stmt_r did.
2518         (fold_stmt): Do not use fold_stmt_r.
2519         (fold_stmt_inplace): Likewise.
2520
2521 2009-04-17  Richard Guenther  <rguenther@suse.de>
2522
2523         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
2524         (record_equivalences_from_stmt): Remove useless checks and
2525         simplifications.
2526         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
2527         the type is already suitable.
2528
2529 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
2530
2531         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
2532
2533 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
2534
2535         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
2536         (CMPtype): Define as __gcc_CMPtype.
2537
2538 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
2539
2540         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
2541         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
2542
2543 2009-04-17  Richard Guenther  <rguenther@suse.de>
2544
2545         PR tree-optimization/39746
2546         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
2547         special-casing for builtins and static variable use/def.
2548         (call_may_clobber_ref_p_1): Likewise.
2549
2550 2009-04-16  Ian Lance Taylor  <iant@google.com>
2551
2552         * df.h: Include "timevar.h".
2553         (struct df_problem): Change tv_id field to timevar_id_t.
2554         * tree-pass.h: Include "timevar.h".
2555         (struct opt_pass): Change tv_id field to timevar_id_t.
2556         * timevar.h (timevar_id_t): Define TV_NONE.
2557         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
2558         TV_NONE rather than tv_id != 0.
2559         (execute_one_pass): Likewise.
2560         * Makefile.in (DF_H): Add $(TIMEVAR_H).
2561         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
2562         dependencies to $(TREE_PASS_H).
2563         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
2564         to TV_NONE.
2565         (pass_branch_target_load_optimize2): Likewise.
2566         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
2567         (pass_outof_cfg_layout_mode): Likewise.
2568         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
2569         (pass_rebuild_cgraph_edges): Likewise.
2570         (pass_remove_cgraph_callee_edges): Likewise.
2571         * df-core.c (pass_df_initialize_opt): Likewise.
2572         (pass_df_initialize_no_opt): Likewise.
2573         (pass_df_finish): Likewise.
2574         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
2575         * except.c (pass_set_nothrow_function_flags): Likewise.
2576         (pass_convert_to_eh_region_ranges): Likewise.
2577         * final.c (pass_compute_alignments): Likewise.
2578         * function.c (pass_instantiate_virtual_regs): Likewise.
2579         (pass_init_function): Likewise.
2580         (pass_leaf_regs): Likewise.
2581         (pass_match_asm_constraints): Likewise.
2582         * gimple-low.c (pass_lower_cf): Likewise.
2583         (pass_mark_used_blocks): Likewise.
2584         * init-regs.c (pass_initialize_regs): Likewise.
2585         * integrate.c (pass_initial_value_sets): Likewise.
2586         * ira.c (pass_ira): Likewise.
2587         * jump.c (pass_cleanup_barriers): Likewise.
2588         * omp-low.c (pass_expand_omp): Likewise.
2589         (pass_lower_omp): Likewise.
2590         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
2591         * recog.c (pass_split_all_insns): Likewise.
2592         (pass_split_after_reload): Likewise.
2593         (pass_split_before_regstack): Likewise.
2594         (pass_split_before_sched2): Likewise.
2595         (pass_split_for_shorten_branches): Likewise.
2596         * reginfo.c (pass_reginfo_init): Likewise.
2597         (pass_subregs_of_mode_init): Likewise.
2598         (pass_subregs_of_mode_finish): Likewise.
2599         * passes.c (pass_postreload): Likewise.
2600         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
2601         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
2602         (pass_warn_function_return): Likewise.
2603         (pass_warn_function_noreturn): Likewise.
2604         * tree-complex.c (pass_lower_complex): Likewise.
2605         (pass_lower_complex_O0): Likewise.
2606         * tree-if-conv.c (pass_if_conversion): Likewise.
2607         * tree-into-ssa.c (pass_build_ssa): Likewise.
2608         * tree-mudflap.c (pass_mudflap_1): Likewise.
2609         (pass_mudflap_2): Likewise.
2610         * tree-nomudflap.c (pass_mudflap_1): Likewise.
2611         (pass_mudflap_2): Likewise.
2612         * tree-nrv.c (pass_return_slot): Likewise.
2613         * tree-object-size.c (pass_object_sizes): Likewise.
2614         * tree-optimize.c (pass_all_optimizations): Likewise.
2615         (pass_early_local_passes): Likewise.
2616         (pass_all_early_optimizations): Likewise.
2617         (pass_cleanup_cfg): Likewise.
2618         (pass_cleanup_cfg_post_optimizing): Likewise.
2619         (pass_free_datastructures): Likewise.
2620         (pass_free_cfg_annotations): Likewise.
2621         (pass_fixup_cfg): Likewise.
2622         (pass_init_datastructures): Likewise.
2623         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
2624         (pass_late_warn_uninitialized): Likewise.
2625         (pass_update_address_taken): Likewise.
2626         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
2627         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
2628         (pass_cse_sincos): Likewise.
2629         (pass_convert_to_rsqrt): Likewise.
2630         * tree-ssa-structalias.c (pass_build_alias): Likewise.
2631         * tree-stdarg.c (pass_stdarg): Likewise.
2632         * tree-tailcall.c (pass_tail_recursion): Likewise.
2633         (pass_tail_calls): Likewise.
2634         * tree-vect-generic.c (pass_lower_vector): Likewise.
2635         (pass_lower_vector_ssa): Likewise.
2636         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
2637
2638 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
2639
2640         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
2641         XLR entry.
2642         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
2643         Handle -march=xlr.
2644         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
2645         logical and signext.
2646
2647 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2648
2649         PR target/39767
2650         * config/sh/predicates.md (arith_operand): Check if the operand
2651         of TRUNCATE is a REG.
2652
2653 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2654
2655         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
2656         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
2657
2658 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2659
2660         * tree-iterator.c (tsi_split_statement_list_after,
2661         tsi_split_statement_list_before): Remove.
2662         * tree-iterator.h: Remove the prototypes for
2663         tsi_split_statement_list_after and tsi_split_statement_list_before.
2664
2665 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2666
2667         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
2668         * tree-ssa-propagate.h: Remove the prototype for
2669         stmt_makes_single_load.
2670
2671 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2672
2673         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
2674         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
2675
2676 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2677
2678         * tree-iterator.c (EXPR_LAST_BODY): Remove.
2679
2680 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2681
2682         * except.c (eh_region_outer_p): Remove.
2683         * except.h: Remove the prototype for eh_region_outer_p.
2684
2685 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
2686
2687         * function.c (current_function_assembler_name): Remove.
2688         * function.h: Remove the prototype for
2689         current_function_assembler_name.
2690
2691 2009-04-16  Ian Lance Taylor  <iant@google.com>
2692
2693         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
2694         (add_reg_note): Call alloc_reg_note.
2695         * rtl.h (alloc_reg_note): Declare.
2696         * combine.c (try_combine): Use alloc_reg_note.
2697         (recog_for_combine, move_deaths): Likewise.
2698         (distribute_notes): Use alloc_reg_note and add_reg_note.
2699         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
2700         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
2701         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
2702
2703 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
2704
2705         PR rtl-optimization/39762
2706         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
2707         ira_may_move_out_cost): Add comments about way of their usage.
2708         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2709
2710         * ira-conflicts.c (process_regs_for_copy): Use function
2711         ira_get_register_move_cost instead of global
2712         ira_register_move_cost.
2713
2714         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
2715         color_pass, move_spill_restore, update_curr_costs): Ditto.
2716
2717         * ira-lives.c (process_single_reg_class_operands): Ditto.
2718
2719         * ira-emit.c (emit_move_list): Ditto.
2720
2721         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
2722         (record_reg_classes): Ditto.  Use functions
2723         ira_get_register_move_cost and ira_get_may_move_cost instead of
2724         global vars ira_register_move_cost, ira_may_move_out_cost and
2725         ira_may_move_in_cost.
2726         (record_address_regs): Don't call ira_init_register_move_cost.
2727         Use function ira_get_may_move_cost instead of global
2728         ira_may_move_in_cost.
2729         (process_bb_node_for_hard_reg_moves): Use function
2730         ira_get_register_move_cost instead of global ira_register_move_cost.
2731         (ira_costs): Don't call ira_init_register_move_cost.
2732
2733 2009-04-16  Richard Guenther  <rguenther@suse.de>
2734
2735         * tree-cfg.c (verify_gimple_assign_binary):
2736         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
2737         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
2738         (create_general_new_stmt): Note that this function is broken.
2739
2740 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2741
2742         * common.opt (fhelp): Add Var(help_flag).
2743         * gcc-plugin.h (plugin_info): Add help.
2744         * plugin.c (plugin_name_args): Add help.
2745         (register_plugin_info): Set plugin->help.
2746         (print_help_one_plugin): New.
2747         (print_plugins_help): New.
2748         * plugin.h (print_plugins_help): New.
2749         * toplev.c (toplev_main): Call print_plugins_help if needed.
2750
2751 2009-04-16  Richard Guenther  <rguenther@suse.de>
2752
2753         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
2754         (gimple_ior_addresses_taken_1): New function.
2755         (gimple_ior_addresses_taken): Likewise.
2756         * gimple.h (struct gimple_statement_with_ops_base): Remove
2757         addresses_taken member.
2758         (gimple_ior_addresses_taken): Declare.
2759         (gimple_addresses_taken, gimple_addresses_taken_ptr,
2760         gimple_set_addresses_taken): Remove.
2761         * ipa-reference.c (mark_address): New function.
2762         (scan_stmt_for_static_refs): Use it for marking addresses taken.
2763         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
2764         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
2765         (gimple_add_to_addresses_taken): Remove.
2766         (get_tmr_operands): Call mark_address_taken.
2767         (get_asm_expr_operands): Likewise.
2768         (get_expr_operands): Likewise.
2769         (build_ssa_operands): Do not clear the addresses_taken bitmap.
2770         (free_stmt_operands): Do not free it.
2771         * tree-ssa.c (delete_tree_ssa): Likewise.
2772         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
2773
2774 2009-04-16  Richard Guenther  <rguenther@suse.de>
2775
2776         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
2777         (walk_stmt_load_store_ops): Likewise.
2778         * gimple.c (get_base_loadstore): New function.
2779         (walk_stmt_load_store_addr_ops): Likewise.
2780         (walk_stmt_load_store_ops): Likewise.
2781         * ipa-pure-const.c (check_op): Simplify.
2782         (check_load, check_store): New functions.
2783         (check_stmt): Use walk_stmt_load_store_ops.
2784         * ipa-reference.c (mark_load): Adjust signature.
2785         (mark_store): Likewise.
2786         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
2787
2788 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2789
2790         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
2791         (plugin_info): New.
2792         * opts.c (common_handle_option): Don't call print_version.
2793         * plugin.c (plugin_name_args): Add version.
2794         (register_plugin_info): New.
2795         (register_callback): Handle PLUGIN_INFO.
2796         (try_init_one_plugin): New.
2797         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
2798         if failed to init.
2799         (finalize_one_plugin): New.
2800         (finalize_plugins): New.
2801         (print_one_plugin): New.
2802         (print_plugins_versions): New.
2803         * plugin.h (print_plugins_versions): New.
2804         (finalize_plugins): New.
2805         * toplev.c (compile_file): Don't call initialize_plugins.
2806         (print_version): Call print_plugins_versions.
2807         (toplev_main): Call initialize_plugins. Print version if needed.
2808         Call finalize_plugins.
2809
2810 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2811
2812         * common.opt (fversion): New.
2813         * gcc.c (print_version): New.
2814         (process_command): Don't print the version. Just set print_version.
2815         (main): Print version. Call subprocesses if print_version and
2816         verbose_flag are set.
2817         * opts.c (common_handle_option): Handle OPT_fversion.
2818
2819 2009-04-16  Richard Guenther  <rguenther@suse.de>
2820             Ira Rosen  <irar@il.ibm.com>
2821
2822         PR tree-optimization/39698
2823         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
2824         type of the reduction variable.  Only generate the def if
2825         it is needed.
2826
2827         * omp-low.c (expand_omp_for_generic): When converting to a pointer
2828         make sure to first convert to an integer of the same precision.
2829         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
2830         the type of the evolution correctly in computing the new
2831         induction variable base.
2832
2833 2009-04-16  Richard Guenther  <rguenther@suse.de>
2834
2835         PR middle-end/39625
2836         * tree-cfg.c (make_blocks): Split statements with to-be
2837         abnormal SSA names on the lhs.
2838
2839 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
2840
2841         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
2842         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
2843         * c-typeck.c (really_start_incremental_init): Likewise.
2844         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
2845         (TARGET_INITIALIZER): Remove it.
2846         * target.h (struct target): Remove vector_opaque_p.
2847         * tree.c (build_opaque_vector_type): New.
2848         * tree.h (TYPE_VECTOR_OPAQUE): New.
2849         (build_opaque_vector_type): Declare.
2850         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
2851         * config/rs6000/rs6000.c (build_opaque_vector_type,
2852         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
2853         (rs6000_init_builtins): Use build_opaque_vector_type for
2854         opaque_V4SI_type_node.
2855
2856 2009-04-15  Catherine Moore  <clm@codesourcery.com>
2857
2858         * debug.h (set_name):  Declare.
2859         * dwarf2out.c (dwarf2out_set_name): Declare.
2860         (dwarf2_debug_hooks): Add set_name.
2861         (find_AT_string): New.
2862         (add_AT_string): Call find_AT_string.
2863         (dwarf2out_set_name): New.
2864         * cp/decl.c (grokdeclarator): Call set_name.
2865         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
2866         * debug.c (do_nothing_debug_hooks):  Likewise.
2867         * dbxout.c (dbx_debug_hooks): Likewise.
2868         * sdbout.c (sdb_debug_hooks): Likewise.
2869
2870 2009-04-15  Michael Eager  <eager@eagercon.com>
2871
2872         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
2873         reg for single-precision FPU.
2874         * config/rs6000/rs6000.md (movsi_internal1): Only for
2875         !TARGET_SINGLE_FPU.
2876         (movsi_internal1_single): New. Add pattern to move SI values to/from
2877         single-precision FP regs.
2878
2879 2009-04-15  Richard Guenther  <rguenther@suse.de>
2880
2881         * omp-low.c (lower_rec_input_clauses): Build correct address
2882         expressions.
2883         (expand_omp_for_generic): Fix multiplication type.
2884         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
2885         (generate_memset_zero): Fix types.
2886         * tree-profile.c (prepare_instrumented_value): Correctly
2887         widen a pointer.
2888
2889 2009-04-15  Ian Lance Taylor  <iant@google.com>
2890
2891         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
2892         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
2893         for -Wall and for -Wc++-compat.
2894         (c_common_post_options): For C++, set warn_enum_compare if not
2895         already set.
2896         * c-tree.h (struct c_expr): Add field original_type.
2897         (build_external_ref): Update declaration.
2898         * c-parser.c (c_parser_braced_init): Set original_type.
2899         (c_parser_initelt): Likewise.
2900         (c_parser_expr_no_commas): Likewise.
2901         (c_parser_conditional_expression): Likewise.
2902         (c_parser_cast_expression): Likewise.
2903         (c_parser_unary_expression): Likewise.  Pull setting of
2904         original_code to top of function.
2905         (c_parser_sizeof_expression): Set original_type.
2906         (c_parser_alignof_expression): Likewise.
2907         (c_parser_postfix_expression): Likewise.  Pull setting of
2908         original_code to top of function.
2909         (c_parser_postfix_expression_after_paren_type): Set original_type.
2910         (c_parser_postfix_expression_after_primary): Likewise.
2911         (c_parser_expression): Likewise.
2912         * c-typeck.c (build_external_ref): Add type parameter.  Change all
2913         callers.
2914         (c_expr_sizeof_expr): Set original_type field.
2915         (parser_build_unary_op): Likewise.
2916         (parser_build_binary_op): Likewise.  Optionally warn about
2917         comparisons of enums of different types.
2918         (digest_init): Set original_type field.
2919         (really_start_incremental_init): Likewise.
2920         (push_init_level, pop_init_level): Likewise.
2921         * doc/invoke.texi (Warning Options): -Wenum-compare now
2922         supported in C.
2923
2924 2009-04-15  Richard Guenther  <rguenther@suse.de>
2925
2926         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
2927         out a necessary conversion.
2928         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
2929         names we didn't value number.
2930         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
2931
2932 2009-04-15  Richard Guenther  <rguenther@suse.de>
2933
2934         PR tree-optimization/39764
2935         * tree-ssa-ccp.c (get_value): Canonicalize value with
2936         canonicalize_float_value.
2937
2938 2009-04-15  Jan Hubicka  <jh@suse.cz>
2939
2940         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
2941         Wrong version of patch.
2942
2943 2009-04-15  Jan Hubicka  <jh@suse.cz>
2944
2945         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
2946
2947 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
2948
2949         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
2950         our distinct integral and vector types.
2951
2952 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
2953
2954         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
2955         * init.c (build_vtbl_address): Remove call to assemble_external.
2956
2957 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
2958
2959         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
2960         output for other floating point modes.
2961
2962 2009-04-14  Diego Novillo  <dnovillo@google.com>
2963
2964         * diagnostic.c (diagnostic_report_diagnostic): Do not
2965         warn about loaded plugins for DK_ERROR and DK_WARNING.
2966         * c-decl.c (declspecs_add_type): Move call to
2967         invoke_plugin_callbacks ...
2968         * c-parser.c (c_parser_declspecs): ... here.
2969         * plugin.c (dump_active_plugins): Tidy output.
2970
2971 2009-04-14  Diego Novillo  <dnovillo@google.com>
2972             Le-Chun Wu  <lcwu@google.com>
2973
2974         * configure.ac: Add --enable-plugin support.
2975         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
2976         * Makefile.in (PLUGIN_H): Define.
2977         Export ENABLE_PLUGIN and GMPINC to site.exp.
2978         Add PLUGINLIBS to link command.
2979         Add/modify dependencies for plugin.o and files including plugin.h.
2980         (plugin.o): New.
2981         * config.in: Regenerate.
2982
2983         * opts.c (common_handle_option): Handle OPT_fplugin_ and
2984         OPT_fplugin_arg_.
2985
2986 2009-04-14  Le-Chun Wu  <lcwu@google.com>
2987
2988         * tree-pass.h (register_one_dump_file): Add a prototype for
2989         register_one_dump_file.
2990         * toplev.c (compile_file): Call initialize_plugins.
2991         (do_compile): Call invoke_plugin_callbacks.
2992         (toplev_main): Call invoke_plugin_callbacks.
2993         * common.opt: Add -fplugin= and -fplugin-arg-.
2994         * gcc-plugin.h: New public header file for plugins to include.
2995         * plugin.c: New source file.
2996         * plugin.h: New internal header file.
2997         * passes.c (register_one_dump_file): Make it external.
2998
2999         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
3000
3001 2009-04-14  Diego Novillo  <dnovillo@google.com>
3002
3003         * doc/plugins.texi: New.
3004         * doc/gccint.texi: Add reference to Plugins chapter.
3005         * doc/invoke.texi: Document -fplugin and -fplugin-arg
3006         * diagnostic.c (diagnostic_report_diagnostic): Warn about
3007         loaded plugins, if any.
3008         * timevar.def (TV_PLUGIN_INIT): Define.
3009         (TV_PLUGIN_RUN): Define.
3010         * plugin.c: Include timevar.h
3011         (plugins_active_p): New.
3012         (dump_active_plugins): New.
3013         (debug_active_plugins): New.
3014
3015 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
3016
3017         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
3018         library paths.
3019         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
3020
3021 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
3022
3023         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
3024         the same as a minus without a shift.
3025
3026 2009-04-14  Nick Clifton  <nickc@redhat.com>
3027
3028         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
3029         comparisons with small integers will always produce a short
3030         branch.
3031
3032 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
3033
3034         Merge:
3035         2008-12-19  Diego Novillo  <dnovillo@google.com>
3036
3037         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
3038
3039 2009-04-14  Richard Guenther  <rguenther@suse.de>
3040
3041         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
3042         verification.
3043         (verify_gimple_assign_binary): Likewise.  Handle shifts and
3044         rotates correctly.
3045         (verify_gimple_phi): Print the mismatched argument position.
3046         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3047         Fix types.
3048         (vect_update_init_of_dr): Likewise.
3049         * matrix-reorg.c (transform_access_sites): Do what the
3050         comment suggests.
3051         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
3052
3053 2009-04-13  Michael Eager  <eager@eagercon.com>
3054
3055         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
3056         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
3057         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
3058         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
3059         remove duplicate config
3060
3061 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3062
3063         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
3064         file_name:line_number type locator of the call site.
3065
3066 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3067
3068         * genautomata.c: Put blank after comma.
3069         (automaton_decls): New.
3070         (struct unit_usage): Add comments to member next.
3071         (store_alt_unit_usage): Keep the list ordered.
3072         (unit_present_on_list_p, equal_alternatives_p): New.
3073         (check_regexp_units_distribution): Check units distribution
3074         correctness correctly.
3075         (main): Don't write automata if error is found.  Return correct
3076         exit code.
3077
3078         * config/m68k/cf.md (cfv4_ds): Remove.
3079         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
3080         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
3081
3082         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
3083         power4-load-ext, power4-store, power4-store-update,
3084         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
3085         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
3086         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
3087         power4-sqrt, power4-isync): Modify reservation to make correct
3088         unit distribution to automata.
3089
3090         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
3091         power5-store-update, power5-two, power5-three, power5-lmul,
3092         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
3093
3094 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
3095
3096         * except.c (pass_set_nothrow_function_flags): Set name and add
3097         TODO_dump_func.
3098         (set_nothrow_function_flags): Mention in the dump file when
3099         changing a function to nothrow.
3100
3101 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
3102
3103         PR/39066
3104         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
3105         instead of unsigned long.
3106
3107 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3108
3109         * config/arm/arm.c (return_used_this_function): Remove.
3110         (arm_output_function_prologue): Remove use of
3111         return_used_this_function.
3112         (output_return_instruction): Replace use of
3113         return_used_this_function
3114         by cfun->machine->return_used_this_function.
3115         (arm_output_epilogue): Likewise.
3116         (arm_output_function_epilogue): Likewise.
3117         (thumb_unexpanded_epilogue): Likewise.
3118         * config/arm/arm.h (struct machine_function):
3119         New member return_used_this_function.
3120
3121 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
3122
3123         * doc/install.texi: Correct description of default directory for
3124         --with-gxx-include-dir.
3125
3126 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
3127
3128         * fold-const.c (build_range_check): Properly deal with enumeral and
3129         boolean base types.
3130
3131 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
3132
3133         * doc/invoke.texi (max_gcse_passes): Remove documentation.
3134         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
3135         * params.h (MAX_GCSE_PASSES): Remove.
3136         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
3137         in sequence.  Remove ability to run multiple passes.
3138         (bypass_jumps): Report run as third CPROP pass.
3139
3140 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
3141
3142         PR middle-end/39651
3143         * except.c (can_throw_external): Look at each insn in a SEQUENCE
3144         when deciding whether the whole SEQUENCE can throw.
3145
3146 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
3147
3148         PR target/39740
3149         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
3150         offseted label references.
3151
3152 2009-04-11  Jan Hubicka  <jh@suse.cz>
3153
3154         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
3155
3156 2009-04-11  Richard Guenther  <rguenther@suse.de>
3157
3158         PR middle-end/39732
3159         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
3160         return variables as TREE_ADDRESSABLE.
3161
3162 2009-04-11  Richard Guenther  <rguenther@suse.de>
3163
3164         PR tree-optimization/39713
3165         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
3166         reference trees have SSA_NAME operands.
3167
3168 2009-04-11  Richard Guenther  <rguenther@suse.de>
3169
3170         PR c/39712
3171         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
3172         address expressions.
3173
3174 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3175
3176         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
3177         match changes in Cygwin 1.7
3178         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
3179         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
3180
3181 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
3182
3183         PR tree-optimization/39701
3184         * doc/invoke.texi (Optimization Options): Document change in
3185         meaning and initialization of -fdelete-null-pointer-checks.
3186
3187 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3188
3189         PR middle-end/39701
3190         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
3191
3192         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
3193         here.
3194
3195         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
3196
3197 2009-04-10  Chao-ying Fu  <fu@mips.com>
3198
3199         * doc/tm.texi (Instruction Output): Document
3200         TARGET_ASM_FINAL_POSTSCAN_INSN.
3201         * target.h (final_postscan_insn): New field in asm_out.
3202         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3203         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
3204         * final.c (final_scan_insn): Call
3205         targetm.asm_out.final_postscan_insn after outputting
3206         an asm macro and a normal instruction.
3207
3208         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
3209         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
3210         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
3211         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
3212         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
3213
3214 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
3215
3216         PR middle-end/39701
3217         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
3218         variables as non-NULL even with -fdelete-null-pointer-checks.
3219
3220 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3221
3222         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
3223
3224 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
3225
3226         PR target/39678
3227         * config/i386/i386.c (classify_argument): Handle SCmode with
3228         (bit_offset % 64) != 0.
3229
3230 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
3231
3232         * doc/invoke.texi (Optimize Options): Add cross-reference to
3233         -Q --help=optimizers examples.
3234
3235 2009-04-10  Ben Elliston  <bje@au.ibm.com>
3236
3237         PR target/36800
3238         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
3239         regalign for the reg == fpr and TDmode case.
3240
3241 2009-04-09  David Ayers  <ayers@fsfe.org>
3242
3243         PR objc/29200
3244         * objc/objc-act.c (warn_with_method): Remove helper function.
3245         (check_duplicates): Call warning and inform directly.
3246         (really_start_method): Likewise.
3247
3248 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
3249
3250         * expmed.c (expand_divmod): Always use a comparison for a division
3251         by a large unsigned integer.
3252
3253         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
3254         for things others than variables or functions as nonzero.
3255
3256 2009-04-09  Nick Clifton  <nickc@redhat.com>
3257
3258         * unwind-compat.c: Change copyright header to refer to version
3259         3 of the GNU General Public License with version 3.1 of the
3260         GCC Runtime Library Exception and to point readers at the
3261         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
3262         * config/alpha/crtfastmath.c: Likewise.
3263         * config/alpha/linux-unwind.h: Likewise.
3264         * config/alpha/qrnnd.asm: Likewise.
3265         * config/alpha/vms-crt0-64.c: Likewise.
3266         * config/alpha/vms-crt0.c: Likewise.
3267         * config/alpha/vms-dwarf2.asm: Likewise.
3268         * config/alpha/vms-dwarf2eh.asm: Likewise.
3269         * config/alpha/vms-psxcrt0-64.c: Likewise.
3270         * config/alpha/vms-psxcrt0.c: Likewise.
3271         * config/alpha/vms_tramp.asm: Likewise.
3272         * config/arc/initfini.c: Likewise.
3273         * config/arc/lib1funcs.asm: Likewise.
3274         * config/arm/bpabi-v6m.S: Likewise.
3275         * config/arm/bpabi.S: Likewise.
3276         * config/arm/bpabi.c: Likewise.
3277         * config/arm/crti.asm: Likewise.
3278         * config/arm/crtn.asm: Likewise.
3279         * config/arm/ieee754-df.S: Likewise.
3280         * config/arm/ieee754-sf.S: Likewise.
3281         * config/arm/lib1funcs.asm: Likewise.
3282         * config/arm/libunwind.S: Likewise.
3283         * config/arm/linux-atomic.c: Likewise.
3284         * config/arm/mmintrin.h: Likewise.
3285         * config/arm/pr-support.c: Likewise.
3286         * config/arm/unaligned-funcs.c: Likewise.
3287         * config/arm/unwind-arm.c: Likewise.
3288         * config/arm/unwind-arm.h: Likewise.
3289         * config/avr/libgcc.S: Likewise.
3290         * config/bfin/crti.s: Likewise.
3291         * config/bfin/crtlibid.s: Likewise.
3292         * config/bfin/crtn.s: Likewise.
3293         * config/bfin/lib1funcs.asm: Likewise.
3294         * config/bfin/linux-unwind.h: Likewise.
3295         * config/cris/arit.c: Likewise.
3296         * config/cris/cris_abi_symbol.c: Likewise.
3297         * config/darwin-64.c: Likewise.
3298         * config/darwin-crt2.c: Likewise.
3299         * config/darwin-crt3.c: Likewise.
3300         * config/darwin.h: Likewise.
3301         * config/dbxelf.h: Likewise.
3302         * config/dfp-bit.c: Likewise.
3303         * config/dfp-bit.h: Likewise.
3304         * config/elfos.h: Likewise.
3305         * config/fixed-bit.c: Likewise.
3306         * config/fixed-bit.h: Likewise.
3307         * config/fp-bit.c: Likewise.
3308         * config/fp-bit.h: Likewise.
3309         * config/fr30/crti.asm: Likewise.
3310         * config/fr30/crtn.asm: Likewise.
3311         * config/fr30/lib1funcs.asm: Likewise.
3312         * config/freebsd-spec.h: Likewise.
3313         * config/frv/cmovd.c: Likewise.
3314         * config/frv/cmovh.c: Likewise.
3315         * config/frv/cmovw.c: Likewise.
3316         * config/frv/frvbegin.c: Likewise.
3317         * config/frv/frvend.c: Likewise.
3318         * config/frv/lib1funcs.asm: Likewise.
3319         * config/glibc-stdint.h: Likewise.
3320         * config/h8300/clzhi2.c: Likewise.
3321         * config/h8300/crti.asm: Likewise.
3322         * config/h8300/crtn.asm: Likewise.
3323         * config/h8300/ctzhi2.c: Likewise.
3324         * config/h8300/fixunssfsi.c: Likewise.
3325         * config/h8300/lib1funcs.asm: Likewise.
3326         * config/h8300/parityhi2.c: Likewise.
3327         * config/h8300/popcounthi2.c: Likewise.
3328         * config/i386/ammintrin.h: Likewise.
3329         * config/i386/att.h: Likewise.
3330         * config/i386/avxintrin.h: Likewise.
3331         * config/i386/biarch64.h: Likewise.
3332         * config/i386/bmmintrin.h: Likewise.
3333         * config/i386/cpuid.h: Likewise.
3334         * config/i386/cross-stdarg.h: Likewise.
3335         * config/i386/crtfastmath.c: Likewise.
3336         * config/i386/crtprec.c: Likewise.
3337         * config/i386/cygming-crtbegin.c: Likewise.
3338         * config/i386/cygming-crtend.c: Likewise.
3339         * config/i386/cygwin.asm: Likewise.
3340         * config/i386/emmintrin.h: Likewise.
3341         * config/i386/gmm_malloc.h: Likewise.
3342         * config/i386/gthr-win32.c: Likewise.
3343         * config/i386/i386.h: Likewise.
3344         * config/i386/immintrin.h: Likewise.
3345         * config/i386/linux-unwind.h: Likewise.
3346         * config/i386/linux64.h: Likewise.
3347         * config/i386/mm3dnow.h: Likewise.
3348         * config/i386/mmintrin-common.h: Likewise.
3349         * config/i386/mmintrin.h: Likewise.
3350         * config/i386/nmmintrin.h: Likewise.
3351         * config/i386/pmm_malloc.h: Likewise.
3352         * config/i386/pmmintrin.h: Likewise.
3353         * config/i386/smmintrin.h: Likewise.
3354         * config/i386/sol2-c1.asm: Likewise.
3355         * config/i386/sol2-ci.asm: Likewise.
3356         * config/i386/sol2-cn.asm: Likewise.
3357         * config/i386/sol2-gc1.asm: Likewise.
3358         * config/i386/tmmintrin.h: Likewise.
3359         * config/i386/unix.h: Likewise.
3360         * config/i386/w32-unwind.h: Likewise.
3361         * config/i386/wmmintrin.h: Likewise.
3362         * config/i386/x86-64.h: Likewise.
3363         * config/i386/x86intrin.h: Likewise.
3364         * config/i386/xmmintrin.h: Likewise.
3365         * config/ia64/crtbegin.asm: Likewise.
3366         * config/ia64/crtend.asm: Likewise.
3367         * config/ia64/crtfastmath.c: Likewise.
3368         * config/ia64/crti.asm: Likewise.
3369         * config/ia64/crtn.asm: Likewise.
3370         * config/ia64/fde-glibc.c: Likewise.
3371         * config/ia64/lib1funcs.asm: Likewise.
3372         * config/ia64/linux-unwind.h: Likewise.
3373         * config/ia64/quadlib.c: Likewise.
3374         * config/ia64/unwind-ia64.c: Likewise.
3375         * config/linux.h: Likewise.
3376         * config/m32c/m32c-lib1.S: Likewise.
3377         * config/m32c/m32c-lib2-trapv.c: Likewise.
3378         * config/m32c/m32c-lib2.c: Likewise.
3379         * config/m32r/initfini.c: Likewise.
3380         * config/m68hc11/larith.asm: Likewise.
3381         * config/m68hc11/m68hc11-crt0.S: Likewise.
3382         * config/m68k/cf.md: Likewise.
3383         * config/m68k/crti.s: Likewise.
3384         * config/m68k/crtn.s: Likewise.
3385         * config/m68k/lb1sf68.asm: Likewise.
3386         * config/m68k/linux-unwind.h: Likewise.
3387         * config/mcore/crti.asm: Likewise.
3388         * config/mcore/crtn.asm: Likewise.
3389         * config/mcore/lib1.asm: Likewise.
3390         * config/mips/linux-unwind.h: Likewise.
3391         * config/mips/loongson.h: Likewise.
3392         * config/mips/mips16.S: Likewise.
3393         * config/mmix/crti.asm: Likewise.
3394         * config/mmix/crtn.asm: Likewise.
3395         * config/pa/fptr.c: Likewise.
3396         * config/pa/hpux-unwind.h: Likewise.
3397         * config/pa/lib2funcs.asm: Likewise.
3398         * config/pa/linux-atomic.c: Likewise.
3399         * config/pa/linux-unwind.h: Likewise.
3400         * config/pa/milli64.S: Likewise.
3401         * config/pa/quadlib.c: Likewise.
3402         * config/pa/stublib.c: Likewise.
3403         * config/picochip/libgccExtras/adddi3.asm: Likewise.
3404         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
3405         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
3406         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
3407         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
3408         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
3409         * config/picochip/libgccExtras/divmod15.asm: Likewise.
3410         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
3411         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
3412         * config/picochip/libgccExtras/longjmp.asm: Likewise.
3413         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
3414         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
3415         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
3416         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
3417         * config/picochip/libgccExtras/setjmp.asm: Likewise.
3418         * config/picochip/libgccExtras/subdi3.asm: Likewise.
3419         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
3420         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
3421         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
3422         * config/rs6000/750cl.h: Likewise.
3423         * config/rs6000/altivec.h: Likewise.
3424         * config/rs6000/biarch64.h: Likewise.
3425         * config/rs6000/crtresfpr.asm: Likewise.
3426         * config/rs6000/crtresgpr.asm: Likewise.
3427         * config/rs6000/crtresxfpr.asm: Likewise.
3428         * config/rs6000/crtresxgpr.asm: Likewise.
3429         * config/rs6000/crtsavfpr.asm: Likewise.
3430         * config/rs6000/crtsavgpr.asm: Likewise.
3431         * config/rs6000/darwin-asm.h: Likewise.
3432         * config/rs6000/darwin-fallback.c: Likewise.
3433         * config/rs6000/darwin-fpsave.asm: Likewise.
3434         * config/rs6000/darwin-ldouble.c: Likewise.
3435         * config/rs6000/darwin-tramp.asm: Likewise.
3436         * config/rs6000/darwin-unwind.h: Likewise.
3437         * config/rs6000/darwin-vecsave.asm: Likewise.
3438         * config/rs6000/darwin-world.asm: Likewise.
3439         * config/rs6000/e500crtres32gpr.asm: Likewise.
3440         * config/rs6000/e500crtres64gpr.asm: Likewise.
3441         * config/rs6000/e500crtres64gprctr.asm: Likewise.
3442         * config/rs6000/e500crtrest32gpr.asm: Likewise.
3443         * config/rs6000/e500crtrest64gpr.asm: Likewise.
3444         * config/rs6000/e500crtresx32gpr.asm: Likewise.
3445         * config/rs6000/e500crtresx64gpr.asm: Likewise.
3446         * config/rs6000/e500crtsav32gpr.asm: Likewise.
3447         * config/rs6000/e500crtsav64gpr.asm: Likewise.
3448         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
3449         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
3450         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
3451         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
3452         * config/rs6000/eabi-ci.asm: Likewise.
3453         * config/rs6000/eabi-cn.asm: Likewise.
3454         * config/rs6000/eabi.asm: Likewise.
3455         * config/rs6000/linux-unwind.h: Likewise.
3456         * config/rs6000/linux64.h: Likewise.
3457         * config/rs6000/paired.h: Likewise.
3458         * config/rs6000/paired.md: Likewise.
3459         * config/rs6000/ppc64-fp.c: Likewise.
3460         * config/rs6000/ppu_intrinsics.h: Likewise.
3461         * config/rs6000/rs6000.h: Likewise.
3462         * config/rs6000/si2vmx.h: Likewise.
3463         * config/rs6000/sol-ci.asm: Likewise.
3464         * config/rs6000/sol-cn.asm: Likewise.
3465         * config/rs6000/spe.h: Likewise.
3466         * config/rs6000/spu2vmx.h: Likewise.
3467         * config/rs6000/sysv4.h: Likewise.
3468         * config/rs6000/tramp.asm: Likewise.
3469         * config/rs6000/vec_types.h: Likewise.
3470         * config/s390/linux-unwind.h: Likewise.
3471         * config/s390/tpf-unwind.h: Likewise.
3472         * config/score/crti.asm: Likewise.
3473         * config/score/crtn.asm: Likewise.
3474         * config/sh/crt1.asm: Likewise.
3475         * config/sh/crti.asm: Likewise.
3476         * config/sh/crtn.asm: Likewise.
3477         * config/sh/divtab-sh4-300.c: Likewise.
3478         * config/sh/divtab-sh4.c: Likewise.
3479         * config/sh/divtab.c: Likewise.
3480         * config/sh/lib1funcs-4-300.asm: Likewise.
3481         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
3482         * config/sh/lib1funcs.asm: Likewise.
3483         * config/sh/lib1funcs.h: Likewise.
3484         * config/sh/linux-atomic.asm: Likewise.
3485         * config/sh/linux-unwind.h: Likewise.
3486         * config/sh/shmedia.h: Likewise.
3487         * config/sh/sshmedia.h: Likewise.
3488         * config/sh/ushmedia.h: Likewise.
3489         * config/sparc/crtfastmath.c: Likewise.
3490         * config/sparc/linux-unwind.h: Likewise.
3491         * config/sparc/sol2-c1.asm: Likewise.
3492         * config/sparc/sol2-ci.asm: Likewise.
3493         * config/sparc/sol2-cn.asm: Likewise.
3494         * config/spu/divmodti4.c: Likewise.
3495         * config/spu/divv2df3.c: Likewise.
3496         * config/spu/float_disf.c: Likewise.
3497         * config/spu/float_unsdidf.c: Likewise.
3498         * config/spu/float_unsdisf.c: Likewise.
3499         * config/spu/float_unssidf.c: Likewise.
3500         * config/spu/mfc_multi_tag_release.c: Likewise.
3501         * config/spu/mfc_multi_tag_reserve.c: Likewise.
3502         * config/spu/mfc_tag_release.c: Likewise.
3503         * config/spu/mfc_tag_reserve.c: Likewise.
3504         * config/spu/mfc_tag_table.c: Likewise.
3505         * config/spu/multi3.c: Likewise.
3506         * config/spu/spu_internals.h: Likewise.
3507         * config/spu/spu_intrinsics.h: Likewise.
3508         * config/spu/spu_mfcio.h: Likewise.
3509         * config/spu/vec_types.h: Likewise.
3510         * config/spu/vmx2spu.h: Likewise.
3511         * config/stormy16/stormy16-lib2.c: Likewise.
3512         * config/svr4.h: Likewise.
3513         * config/sync.c: Likewise.
3514         * config/v850/lib1funcs.asm: Likewise.
3515         * config/vxlib-tls.c: Likewise.
3516         * config/vxlib.c: Likewise.
3517         * config/vxworks-dummy.h: Likewise.
3518         * config/xtensa/crti.asm: Likewise.
3519         * config/xtensa/crtn.asm: Likewise.
3520         * config/xtensa/ieee754-df.S: Likewise.
3521         * config/xtensa/ieee754-sf.S: Likewise.
3522         * config/xtensa/lib1funcs.asm: Likewise.
3523         * config/xtensa/lib2funcs.S: Likewise.
3524         * config/xtensa/linux-unwind.h: Likewise.
3525         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3526         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
3527         * coretypes.h: Likewise.
3528         * crtstuff.c: Likewise.
3529         * defaults.h: Likewise.
3530         * dwarf2.h: Likewise.
3531         * emutls.c: Likewise.
3532         * gbl-ctors.h: Likewise.
3533         * gcov-io.h: Likewise.
3534         * ginclude/float.h: Likewise.
3535         * ginclude/iso646.h: Likewise.
3536         * ginclude/stdarg.h: Likewise.
3537         * ginclude/stdbool.h: Likewise.
3538         * ginclude/stddef.h: Likewise.
3539         * ginclude/stdfix.h: Likewise.
3540         * ginclude/stdint-gcc.h: Likewise.
3541         * ginclude/tgmath.h: Likewise.
3542         * gthr-aix.h: Likewise.
3543         * gthr-dce.h: Likewise.
3544         * gthr-gnat.c: Likewise.
3545         * gthr-gnat.h: Likewise.
3546         * gthr-lynx.h: Likewise.
3547         * gthr-mipssde.h: Likewise.
3548         * gthr-nks.h: Likewise.
3549         * gthr-posix.c: Likewise.
3550         * gthr-posix.h: Likewise.
3551         * gthr-posix95.h: Likewise.
3552         * gthr-rtems.h: Likewise.
3553         * gthr-single.h: Likewise.
3554         * gthr-solaris.h: Likewise.
3555         * gthr-tpf.h: Likewise.
3556         * gthr-vxworks.h: Likewise.
3557         * gthr-win32.h: Likewise.
3558         * gthr.h: Likewise.
3559         * libgcc2.c: Likewise.
3560         * libgcc2.h: Likewise.
3561         * libgcov.c: Likewise.
3562         * tsystem.h: Likewise.
3563         * typeclass.h: Likewise.
3564         * unwind-c.c: Likewise.
3565         * unwind-compat.h: Likewise.
3566         * unwind-dw2-fde-compat.c: Likewise.
3567         * unwind-dw2-fde-darwin.c: Likewise.
3568         * unwind-dw2-fde-glibc.c: Likewise.
3569         * unwind-dw2-fde.c: Likewise.
3570         * unwind-dw2-fde.h: Likewise.
3571         * unwind-dw2.c: Likewise.
3572         * unwind-dw2.h: Likewise.
3573         * unwind-generic.h: Likewise.
3574         * unwind-pe.h: Likewise.
3575         * unwind-sjlj.c: Likewise.
3576         * unwind.inc: Likewise.
3577         * config/arm/neon-gen.ml: Change generated copyright header to
3578         refer to version 3 of the GNU General Public License with
3579         version 3.1 of the GCC Runtime Library Exception and to point
3580         readers at the COPYING3 and COPYING3.RUNTIME files and the
3581         FSF's license web page.
3582         * config/arm/arm_neon.h: Regenerate.
3583
3584 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
3585
3586         * config/cris/cris.md: Change copyright header to refer to version
3587         3 of the GNU General Public License.
3588         * doc/install.texi2html: Change copyright header to refer to version
3589         3 of the GNU General Public License and to point readers at the
3590         COPYING3 file and the FSF's license web page.
3591         * config/vax/linux.h: Likewise.
3592
3593 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
3594
3595         * config/i386/i386.md (cmpcc): New.
3596         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
3597         (sync_compare_and_swap_cc*): Delete.
3598
3599         * config/s390/s390.c (s390_compare_emitted): Remove.
3600         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
3601         s390_compare_emitted used to be handled.  Assert that modes match.
3602         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
3603         refer to sync_compare_and_swap_ccsi.
3604         * config/s390/s390.h (s390_compare_emitted): Remove.
3605         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
3606         instead of s390_compare_emitted.
3607         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
3608         instead of s390_compare_emitted.
3609         * config/s390/s390.md (cmpcc): New.
3610         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
3611         CC_REGNUM, do not pretend it's set.
3612         (sync_compare_and_swap_cc*): Delete.
3613         * config/s390/predicates.md (cc_reg_operand): New.
3614
3615         * expr.c (sync_compare_and_swap_cc): Delete.
3616         * optabs.h (sync_compare_and_swap_cc): Delete.
3617         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
3618         is being used with can_compare_p.
3619         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
3620         (find_cc_set): New.
3621         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
3622         look for a MODE_CC set instead.  Use emit_store_flag.
3623         (expand_compare_and_swap_loop): Likewise, with some additional
3624         complication to avoid a force_reg when useless.  Use
3625         emit_cmp_and_jump_insns.
3626         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
3627         * doc/md.texi (sync_compare_and_swap_cc): Merge with
3628         sync_compare_and_swap documentation.
3629
3630 2009-04-09  Jan Hubicka  <jh@suse.cz>
3631
3632         * except.c (find_prev_try): Break out from ....
3633         (duplicate_eh_regions): ... here; properly update prev_try pointers
3634         when duplication part of tree.
3635         (dump_eh_tree): Improve dumping.
3636         (verify_eh_region): New.
3637         (verify_eh_tree): Use it.
3638
3639 2009-04-06  Richard Guenther  <rguenther@suse.de>
3640
3641         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
3642         &ARRAY addresses by adjusting their types and prepending
3643         a conversion.
3644         * tree-cfg.c (verify_gimple_assign_single): Verify that
3645         addresses are correct.
3646
3647 2009-04-09  Richard Guenther  <rguenther@suse.de>
3648
3649         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
3650         indices into an array reference if possible.
3651         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
3652         Fold POINTER_PLUS_EXPR statements with invariant address.
3653
3654 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
3655
3656         PR target/39634
3657         * config.gcc (powerpc64-*-linux*): Always build biarch.
3658
3659 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
3660
3661         PR c/39613
3662         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
3663         it and pedwarn if this results in an INTEGER_CST.
3664
3665 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3666
3667         * doc/install.texi: Update minimum GMP version.  Remove obsolete
3668         text in MPFR section.
3669
3670 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
3671
3672         * dwarf2out.c (class_scope_p): New static inline.
3673         (class_or_namespace_scope_p): Use it.
3674         (gen_variable_die): Use DW_TAG_member tag for static data member
3675         declarations instead of DW_TAG_variable.
3676
3677         PR middle-end/39573
3678         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
3679         variables.
3680
3681 2009-04-08  Richard Guenther  <rguenther@suse.de>
3682
3683         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
3684         valueize random data.
3685
3686 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
3687
3688         * config.gcc (aix tm_file):  Add aix-stdint.h.
3689         (aix tm clause use_gcc_stdint):  Set to wrap.
3690         * config/rs6000/aix-stdint.h:  New file.
3691
3692 2009-04-08  Richard Guenther  <rguenther@suse.de>
3693
3694         PR middle-end/36291
3695         * tree-dfa.c (add_referenced_var): Do not recurse into
3696         global initializers.
3697         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
3698         exposed variables.
3699         (fold_const_aggregate_ref): Likewise.
3700
3701 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
3702
3703         * recog.c (ordered_comparison_operator): New.
3704         * gensupport.c (std_preds): Add it.
3705         * doc/md.texi (Machine-Independent Predicates): Document it.
3706
3707 2009-04-08  Jan Hubicka  <jh@suse.cz>
3708
3709         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
3710         * function.h (rtl_eh): Remove exception_handler_label_map.
3711         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
3712         remove_exception_handler_label, for_each_eh_label_1): Remove.
3713         (rtl_remove_unreachable_regions): Remove.
3714         (convert_from_eh_region_ranges): Do not remove unreachable regions.
3715         (find_exception_handler_labels): Don't build the hashtable.
3716         (maybe_remove_eh_handler): Remove.
3717         (for_each_eh_label): Rewrite to walk the tree.
3718         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
3719         * except.h (maybe_remove_eh_handler): Remove.
3720         * passes.c (init_optimization_passes): Schedule second EH cleanup
3721         before out-of-ssa.
3722         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
3723         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
3724
3725 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
3726
3727         * genoutput.c (validate_optab_operands): New.
3728         (gen_insn, gen_expand): Call it.
3729
3730         * genflags.c (gen_insn): Detect misused iterators.
3731         (main): Pass line_no to gen_insn, exit with status 1 on error.
3732
3733         * genextract.c (line_no): Make global.
3734         (VEC_safe_set_locstr): Change assertion to error message.
3735         (main): Exit with status 1 on error.
3736
3737 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
3738
3739         PR c/39614
3740         PR c/39673
3741         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
3742         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
3743         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
3744         * c-convert.c (convert): Do not call fold on results of conversion
3745         functions when the result is a C_MAYBE_CONST_EXPR.
3746         * c-parser.c (c_parser_postfix_expression): Do not fold condition
3747         of __builtin_choose_expr.
3748         * c-typeck.c (remove_c_maybe_const_expr): New.
3749         (build_unary_op, build_conditional_expr, build_compound_expr,
3750         build_binary_op, c_objc_common_truthvalue_conversion): Call
3751         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
3752         integer operands.
3753
3754 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
3755
3756         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
3757         CODE to produce a new one. Add a prototype to use fold_convert_const
3758
3759 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
3760
3761         PR bootstrap/39660
3762         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
3763         mix declarations and code.
3764
3765 2009-04-08  Ben Elliston  <bje@au.ibm.com>
3766
3767         * gcc.c: Replace `CC' with `GCC' throughout.
3768
3769 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
3770
3771         * doc/invoke.texi: Document Atom support.
3772
3773 2009-04-07  Jason Merrill  <jason@redhat.com>
3774
3775         PR c++/25185
3776         * c-common.h, c-common.c: Add flag_pretty_templates.
3777         * c-opts.c (c_common_handle_option): Set it.
3778         * c.opt: Add -fno-pretty-templates.
3779         * doc/invoke.texi (C++ Dialect Options): Likewise.
3780
3781 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
3782
3783         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
3784         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
3785         (ia64_expand_builtin): Likewise.
3786
3787 2009-04-07  Martin Jambor  <mjambor@suse.cz>
3788
3789         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
3790         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
3791         ADDR_EXPRS are include too.
3792
3793 2009-04-07  Richard Guenther  <rguenther@suse.de>
3794
3795         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
3796         decls are only used if passes as parameters or if they are
3797         local statics and the call is not to a builtin.
3798         (call_may_clobber_ref_p_1): Likewise.
3799
3800 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3801
3802         * expr.c (do_store_flag): Remove last argument.  Simplify code
3803         to avoid duplication of tests already done by can_compare_p.
3804         (expand_expr_real_1): Adjust caller.
3805
3806 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3807
3808         * optabs.c (can_compare_p): Test the predicate of a
3809         cbranch and cstore pattern.
3810
3811 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3812
3813         * expr.c (convert_move): Use emit_store_flag instead of
3814         "emulating" it.
3815
3816 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
3817
3818         * config/i386/i386.c (ix86_compare_emitted): Remove.
3819         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
3820         ix86_compare_op0 like ix86_compare_emitted used to be handled.
3821         * config/i386/i386.h (ix86_compare_emitted): Remove.
3822         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
3823         instead of ix86_compare_emitted.
3824         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
3825
3826 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
3827
3828         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
3829         Add t-sysroot-suffix to tmake_file.
3830         * config/print-sysroot-suffix.sh: New file.
3831         * config/t-sysroot-suffix: New file.
3832
3833 2009-04-07  Ben Elliston  <bje@au.ibm.com>
3834
3835         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
3836         as the latter produces a warning when the target does not support
3837         infinity.
3838
3839 2009-04-07  Ben Elliston  <bje@au.ibm.com>
3840
3841         * dfp.c: Replace type punning assignments with memcpy throughout.
3842         * Makefile.in (dfp.o-warn): Remove.
3843
3844 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
3845
3846         PR target/39634
3847         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
3848         Include soft-fp/t-softfp after rs6000/t-linux64.
3849
3850 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3851
3852         * stor-layout.c (set_sizetype): Use the full precision of their
3853         machine mode for bitsize types.
3854
3855 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
3856
3857         * config/i386/i386.md: Revert 2 accidental checkins.
3858
3859 2009-04-06  Joey Ye  <joey.ye@intel.com>
3860             Xuepeng Guo  <xuepeng.guo@intel.com>
3861             H.J. Lu  <hongjiu.lu@intel.com>
3862
3863         Atom pipeline model, tuning and insn selection.
3864         * config.gcc (atom): Add atom config options and target.
3865
3866         * config/i386/atom.md: New.
3867
3868         * config/i386/i386.c (atom_cost): New cost.
3869         (m_ATOM): New macro flag.
3870         (initial_ix86_tune_features): Set m_ATOM.
3871         (x86_accumulate_outgoing_args): Likewise.
3872         (x86_arch_always_fancy_math_387): Likewise.
3873         (processor_target): Add Atom cost.
3874         (cpu_names): Add Atom cpu name.
3875         (override_options): Set Atom ISA.
3876         (ix86_issue_rate): New case PROCESSOR_ATOM.
3877         (ix86_adjust_cost): Likewise.
3878
3879         * config/i386/i386.h (TARGET_ATOM): New target macro.
3880         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
3881         (TARGET_OPT_AGU): New target option.
3882         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
3883         (processor_type): Add PROCESSOR_ATOM.
3884
3885         * config/i386/i386.md (cpu): Add new value "atom".
3886         (use_carry, movu): New attr.
3887         (atom.md): Include atom.md.
3888         (adddi3_carry_rex64): Set attr "use_carry".
3889         (addqi3_carry): Likewise.
3890         (addhi3_carry): Likewise.
3891         (addsi3_carry): Likewise.
3892         (*addsi3_carry_zext): Likewise.
3893         (subdi3_carry_rex64): Likewise.
3894         (subqi3_carry): Likewise.
3895         (subhi3_carry): Likewise.
3896         (subsi3_carry): Likewise.
3897         (x86_movdicc_0_m1_rex64): Likewise.
3898         (*x86_movdicc_0_m1_se): Likewise.
3899         (x86_movsicc_0_m1): Likewise.
3900         (*x86_movsicc_0_m1_se): Likewise.
3901         (*adddi_1_rex64): Emit add insn as much as possible.
3902         (*addsi_1): Likewise.
3903         (return_internal): Set atom_unit.
3904         (return_internal_long): Likewise.
3905         (return_pop_internal): Likewise.
3906         (*rcpsf2_sse): Set atom_sse_attr attr.
3907         (*qrt<mode>2_sse): Likewise.
3908         (*prefetch_sse): Likewise.
3909
3910         * config/i386/i386-c.c (ix86_target_macros_internal): New case
3911         PROCESSOR_ATOM.
3912         (ix86_target_macros_internal): Likewise.
3913
3914         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
3915         (*prefetch_sse_rex): Likewise.
3916         (sse_rcpv4sf2): Likewise.
3917         (sse_vmrcpv4sf2): Likewise.
3918         (sse_sqrtv4sf2): Likewise.
3919         (<sse>_vmsqrt<mode>2): Likewise.
3920         (sse_ldmxcsr): Likewise.
3921         (sse_stmxcsr): Likewise.
3922         (*sse_sfence): Likewise.
3923         (sse2_clflush): Likewise.
3924         (*sse2_mfence): Likewise.
3925         (*sse2_lfence): Likewise.
3926         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
3927         (<sse>_movup<ssemodesuffixf2c>): Likewise.
3928         (avx_movdqu<avxmodesuffix>): Likewise.
3929         (avx_lddqu<avxmodesuffix>): Likewise.
3930         (sse2_movntv2di): Change attr "type" to "ssemov".
3931         (sse2_movntsi): Likewise.
3932         (rsqrtv8sf2): Change attr "type" to "sseadd".
3933         (sse3_addsubv2df3): Set attr "atom_unit".
3934         (sse3_h<plusminus_insn>v4sf3): Likewise.
3935         (*sse2_pmaddwd): Likewise.
3936         (*vec_extractv2di_1_rex64): Likewise.
3937         (*vec_extractv2di_1_avx): Likewise.
3938         (sse2_psadbw): Likewise.
3939         (ssse3_phaddwv8hi3): Likewise.
3940         (ssse3_phaddwv4hi3): Likewise.
3941         (ssse3_phadddv4si3): Likewise.
3942         (ssse3_phadddv2si3): Likewise.
3943         (ssse3_phaddswv8hi3): Likewise.
3944         (ssse3_phaddswv4hi3): Likewise.
3945         (ssse3_phsubwv8hi3): Likewise