OSDN Git Service

PR tree-optimization/37345
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-04  Jan Hubicka  <jh@suse.cz>
2
3         PR tree-optimization/37345
4         PR tree-optimization/37358
5         PR tree-optimization/37357
6         * tree.c (build_function_type_skip_args): Build distinct type copy;
7         set TYPE_CONTEXT.
8         (build_function_decl_skip_args): Set type of new decl not orig decl;
9         clear DECL_VINDEX for methods turned into functions.
10
11 2008-09-04  Nick Clifton  <nickc@redhat.com>
12
13         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
14         check.
15         * configure: Regenerate.
16         * config.in: Regenerate.
17         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
18         alignment field, if it is supported.
19
20 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
21
22         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
23         libraries.
24
25 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
26
27         * config/rs6000/rs6000.c (processor_target_table): Do not
28         enable VMX for POWER6.
29
30 2008-09-03  Anton Blanchard  <anton@samba.org>
31
32         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
33         emit memory barrier before operation.
34
35 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
36
37         PR testsuite/37325
38         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
39         default_elf_asm_output_external.
40
41 2008-09-03  Jeff Law  <law@redhat.com>
42
43         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
44
45 2008-09-03  Richard Henderson  <rth@redhat.com>
46
47         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
48         memory barrier to below the test-and-set.
49         (alpha_split_lock_test_and_set_12): Likewise.
50
51 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
52
53         PR rtl-opt/37243
54
55         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
56         all_allocnos.
57
58         * ira-color.c (print_loop_title): Use all_allocnos.
59         (color_pass): Ditto.  Don't add border_allocnos.  Check that
60         subloop allocno in the correspdoning bitmap all_allocnos.
61
62         * ira-emit.c (change_loop): Use all_allocnos.
63
64         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
65         Ditto.
66         (ira_create_allocno): Set up all_allocnos bit for the created
67         allocno.
68         (create_cap_allocno): Remove setting mentioned_allocnos.
69         (create_insn_allocnos): Ditto.
70         (remove_unnecessary_allocnos): Use all_allocnos.
71         (check_allocno_creation): Check that allocnos are in the
72         corresponding bitmap all_allocnos.
73         
74 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
75
76         PR rtl-opt/37243
77         
78         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
79         (process_regs_for_copy): Process subregs.  Refine check when cost
80         is taken into account in ira-costs.c.
81         (process_reg_shuffles): Use REG_SUBREG_P.
82         (add_insn_allocno_copies): Ditto.  Ignore modes.
83
84         * ira-color.c (conflict_allocno_vec): New.
85         (COST_HOP_DIVISOR): New macro.
86         (update_copy_costs_1): Use it.
87         (update_conflict_hard_regno_costs): New function.
88         (assign_hard_reg): Use it.
89         (ira_color): Allocate and free conflict_allocno_vec.
90  
91 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
92
93         PR rtl-opt/37296
94
95         * ira-int.h (ira_sort_insn_chain): Remove.
96
97         * ira.c (basic_block_order_nums, chain_insn_order,
98         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
99         (ira): Don't call ira_sort_insn_chain.
100
101         * reload1.c (reload): Don't call ira_sort_insn_chain.
102
103 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
104
105         PR middle-end/37293
106         * cgraphunit.c (update_call_expr): Remove eh regions from statements
107         which become non throw.
108         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
109         update_call_expr after updating the flags on the decl.
110
111 2008-09-03  Jan Hubicka  <jh@suse.cz>
112
113         PR tree-optimization/37315
114         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
115         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
116         (cgraph_analyze_functions): Use node->analyzed
117         (cgraph_mark_functions_to_output): Likewise.
118         (cgraph_expand_function): All functions can be released after
119         expanding.
120         (cgraph_optimize): Use gimple_has_body_p.
121         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
122         (cgraph_decide_inlining_incrementally): Likewise.
123         (inline_transform): Inline transform.
124         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
125         copy fields needed.
126         (inlinable_function_p): Drop gimple_body check.
127         (expand_call_inline): Use gimple_has_body_p.
128         * gimple.c (gimple_has_body_p): New.
129         * gimple.h (gimple_has_body_p): Add prototype.
130         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
131         (dump_function_to_file): Use gimple_has_body_p check.
132
133 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
134
135         PR c++/37346
136         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
137         substatements.
138         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
139
140 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
141
142         From Michael Frysinger  <michael.frysinger@analog.com>
143         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
144         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
145         for bf538.
146
147 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
148
149         Add picoChip port.
150         * doc/extend.texi: Document picoChip builtin functions.
151         * doc/invoke.texi: Document picoChip options.
152         * doc/contrib.texi: Add picoChip contribution.
153         * doc/md.texi: Document picoChip constraints.
154         * config.gcc: Add picochip-*-*.
155         * config/picochip/: Add new port.
156
157 2008-09-03  Richard Guenther  <rguenther@suse.de>
158
159         PR tree-optimization/37328
160         * tree-sra.c (sra_build_assignment): Gimplify properly.
161         (generate_copy_inout): Take the correct stmt as definition,
162         remove bogus assert.
163
164 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
165
166         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
167         attributes.
168
169         From Michael Frysinger  <michael.frysinger@analog.com>
170         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
171
172 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
173
174         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
175         defined.
176         (__gthread_setspecific): Revert 2008-08-31 change to
177         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API
178         case.
179
180 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
181
182         * diagnostic.c (error_at): New.
183         * toplev.h (error_at): New prototype.
184         * c-typeck.c (build_array_ref): Call error_at instead of error.
185         Pass location to pedwarn.
186
187 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
188
189         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
190
191 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
192
193         * dwarf2out.c (tree_add_const_value_attribute): Only handle
194         VAR_DECL and CONST_DECL.
195
196 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
197             Jakub Jelinek  <jakub@redhat.com>
198
199         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
200         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
201         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
202         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
203         Don't set ix86_save_varrargs_registers.
204         (ix86_setup_incoming_varargs): Assume cum != NULL.
205         (ix86_va_start): Check ix86_varargs_gpr_size and
206         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
207         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
208         from frame pointer if ix86_varargs_gpr_size == 0.
209         (ix86_compute_frame_layout): Updated.
210         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
211         (ix86_varargs_gpr_size): Define.
212         (ix86_varargs_fpr_size): Likewise.
213         (machine_function): Remove save_varrargs_registers.
214         Add varargs_gpr_size and varargs_fpr_size.
215
216 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
217
218         * config/alpha/alpha.c (va_list_skip_additions,
219         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
220         (alpha_gimplify_va_arg): Call unshare_expr on second use of
221         offset_field.
222
223         PR tree-optimization/36766
224         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
225         for already removed basic blocks.
226
227         PR target/36332
228         * real.c (real_maxval): Clear a lower bit to make real_maxval
229         match get_max_float for IBM long double format.
230
231 2008-09-02  Andreas Schwab  <schwab@suse.de>
232
233         * configure.ac: Use m4_quote to quote the expansion of m4_do.
234         * configure: Regenerate.
235
236 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
237
238         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
239         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
240         checking for a non-VOID CONSTANT_P.
241
242 2008-09-02  Jan Hubicka  <jh@suse.cz>
243
244         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
245         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
246
247 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
248
249         * expr.c (emit_group_store): Don't assert stack temp mode size.
250
251 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
252             Tobias Grosser  <grosser@fim.uni-passau.de>
253             Jan Sjodin  <jan.sjodin@amd.com>
254             Harsha Jagasia  <harsha.jagasia@amd.com>
255             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
256             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
257             Adrien Eliche  <aeliche@isty.uvsq.fr>
258
259         Merge from graphite branch.
260         * graphite.c: New.
261         * graphite.h: New.
262         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
263         * doc/invoke.texi (-floop-block, -floop-interchange,
264         -floop-strip-mine): Document new flags.
265         * tree-into-ssa.c (gimple_vec): Moved...
266         * tree-loop-distribution.c (rdg_component): Moved...
267         * cfgloopmanip.c: Include tree-flow.h.
268         (update_dominators_in_loop): New.
269         (create_empty_if_region_on_edge): New.
270         (create_empty_loop_on_edge): New.
271         (loopify): Use update_dominators_in_loop.
272         * tree-pass.h (pass_graphite_transforms): Declared.
273         * configure: Regenerate.
274         * tree-phinodes.c (make_phi_node): Export.
275         (add_phi_node_to_bb): New, split from create_phi_node.
276         * tree-chrec.c (for_each_scev_op): New.
277         * tree-chrec.h (for_each_scev_op): Declared.
278         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
279         (remove_statement): Call get_phi_with_result.
280         * config.in (HAVE_cloog): Undef.
281         * gdbinit.in (pgg): New.
282         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
283         * tree-ssa-loop.c (graphite_transforms): New.
284         (gate_graphite_transforms): New.
285         (pass_graphite_transforms): New.
286         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
287         HAVE_cloog): Defined.
288         * tree-vectorizer.c (rename_variables_in_bb): Export.
289         * tree-data-ref.c (dr_may_alias_p): Export.
290         (stmt_simple_memref_p): New.
291         (find_data_references_in_stmt): Export.
292         (find_data_references_in_loop): Export.
293         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
294         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
295         (create_rdg_vertices): Export.
296         (build_empty_rdg): New.
297         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
298         * tree-data-ref.h (rdg_component): ... here.
299         (scop_p): New.
300         (struct data_reference): Add a field scop.
301         (DR_SCOP): New.
302         (find_data_references_in_loop): Declared.
303         (find_data_references_in_stmt): Declared.
304         (create_rdg_vertices): Declared.
305         (dr_may_alias_p): Declared.
306         (stmt_simple_memref_p): Declared.
307         (struct rdg_edge): Add a field ddr_p relation.
308         (build_empty_rdg): Declared.
309         * lambda.h (lambda_matrix): Declare a VEC of.
310         (find_induction_var_from_exit_cond): Declared.
311         (lambda_vector_compare): New.
312         * common.opt (fgraphite, floop-strip-mine,
313         floop-interchange, floop-block): New flags.
314         * lambda-code.c (find_induction_var_from_exit_cond): Export.
315         * cfgloop.c (is_loop_exit): New.
316         * cfgloop.h (is_loop_exit): Declared.
317         (create_empty_if_region_on_edge): Declared.
318         (create_empty_loop_on_edge): Declared.
319         * tree-flow.h (add_phi_node_to_bb): Declared.
320         (make_phi_node): Declared.
321         (rename_variables_in_bb): Declared.
322         (perfect_loop_nest_depth): Declared.
323         (graphite_transform_loops): Declared.
324         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
325         (graphite.o-warn): Add -Wno-error.
326         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
327         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
328         (INCLUDES): Add PPLINC, CLOOGINC.
329         (OBJS-common): Add graphite.o.
330         (graphite.o): Add rule.
331         * gimple.h (gimple_vec): ... here.
332         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
333         * passes.c (init_optimization_passes): Schedule 
334         pass_graphite_transforms.
335
336 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
337
338         PR target/37283
339         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
340         and -fno-toplevel-reorder after handle_options.
341
342 2008-09-02  Paul Brook  <paul@codesourcery.com>
343
344         * config/arm/arm.c (arm_tune_cortex_a9): Define.
345         (arm_override_options): Set arm_tune_cortex_a9.
346         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
347         (arm_issue_rate): Handle cortexa9.
348         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
349         * config/arm/arm-cores.def: Add cortex-a9.
350         * config/arm/arm-tune.md: Regenerate.
351         * config/arm/arm.md: Include cortex-a9.md.
352         (generic_sched, generic_vfp): Add cortexa9.
353         * config/arm/cortex-a9.md: New file.
354
355 2008-09-02  Richard Guenther  <rguenther@suse.de>
356
357         PR tree-optimization/37327
358         * tree-vrp.c (register_new_assert_for): Make sure to not have
359         TREE_OVERFLOW set on the bound.
360
361 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
362
363         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
364
365         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
366         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
367         spec_info->mask.
368
369 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
370
371         * gcc/config/spu/spu.md (divdf3): Removed.
372
373 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
374
375         PR tree-optimization/37095
376         * cgraph.c (cgraph_node): When creating new cgraph node after
377         assembler_name_hash has been populated, record it in the hash
378         table.
379
380 2008-09-01  Paul Brook  <paul@codesourcery.com>
381
382         * doc/invoke.texi: Document -mword-relocations.
383         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
384         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
385         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
386         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
387         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
388         (arm_emit_movpair): New function.
389         (arm_print_operand <c>): Handle sybolic addresses.
390         * config/arm/arm.h (TARGET_USE_MOVT): Define.
391         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
392         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
393         * config/arm/arm.opt: Add -mword-relocations.
394         * config/arm/arm.md (movsi): Use arm_emit_movpair.
395         (arm_movt, arm_movw): New.
396
397 2008-09-01  Paul Brook  <paul@codesourcery.com>
398
399         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
400         Allow Interworking on ARMv4 EABI based targets.
401         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
402         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
403
404 2008-09-01  Paul Brook  <paul@codesourcery.com>
405
406         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
407         optimized LT0 test.  Remove optimization for GT.
408
409 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
410
411         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
412         openmp applications.
413         * pa-hpux11.h (LIB_SPEC): Likewise.
414
415         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
416         defined.
417
418 2008-09-01  Jan Hubicka  <jh@suse.cz>
419
420         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
421         present, use only counts; when guessed use only frequencies.
422         (estimate_bb_frequencies): Use function_frequency.
423         * profile.c (compute_branch_probabilities): Exit early when
424         profile reading failed. Set profile_status.
425         (branch_prob): Do not set profile_status.
426
427 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
428
429         * tree.c (protected_set_expr_location): New.
430         * tree.h (protected_set_expr_location): New prototype.
431         * c-tree.h (build_array_ref): Add argument.
432         (parser_build_unary_op): Same.
433         * c-typeck.c (build_indirect_ref): Handle new location argument.
434         (build_array_ref): Same.
435         (parser_build_unary_op): Same.
436         * gimplify.c (gimplify_asm_expr): Set input_location before calling
437         error.
438         * c-omp.c (c_finish_omp_atomic): Pass location when calling
439         build_indirect_ref.
440         * c-common.c (finish_label_address_expr): Handle new location
441         argument.
442         * c-common.h (build_indirect_ref): Add argument.
443         (finish_label_address_expr): Same.
444         * c-parser.c (c_parser_unary_expression): Pass location to build
445         functions.
446         (c_parser_postfix_expression): Same.
447
448 2008-09-01  Paul Brook  <paul@codesourcery.com>
449
450         * config/arm/arm.md: Include cortex-r4f.md.
451         (attr fpu): Update type list.
452         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
453         fconstd, fcmps and fcmpd.
454         (attr tune_cortexr4): Define.
455         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
456         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
457         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
458         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
459         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
460         types.
461         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
462         cortex_a8_vfp_farith: Ditto.
463         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
464         * config/arm/cortex-r4.md: Use tune_cortexr4.
465         * config/arm/cortex-r4f.md: New file.
466
467 2008-09-01  Richard Guenther  <rguenther@suse.de>
468
469         PR tree-optimization/37305
470         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
471         the result of constant conversions.
472         (fold_gimple_assign): Likewise.
473
474 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
475
476         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
477         #ifdef ENABLE_CHECKING.
478
479 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
480
481         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
482         * sched-int.h (print_insn, print_pattern, print_value): Declare also
483         when !INSN_SCHEDULING.
484
485 2008-09-01  Andreas Schwab  <schwab@suse.de>
486
487         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
488
489 2008-09-01  Paul Brook  <paul@codesourcery.com>
490
491         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
492
493 2008-09-01  Jan Hubicka  <jh@suse.cz>
494
495         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
496
497         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
498         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
499         * gimplify.c (gimplify_init_constructor): Add speed operand.
500         * tree-sra.c (decide_block_copy): Likewise.
501         * tree-inline.c (estimate_move_cost): Likewise.
502         * config/alpha/alpha.h (MOVE_RATIO): Update.
503         * config/frv/frv.c (MOVE_RATIO): Update.
504         * config/spu/spu.h (MOVE_RATIO): Update.
505         * config/sparc/sparc.h (MOVE_RATIO): Update.
506         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
507         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
508         * config/cris/cris.h (MOVE_RATIO): Update.
509         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
510         * config/arm/arm.h (MOVE_RATIO): Update.
511         * config/pa/pa.md: Update uses of MOVE_RATIO
512         * config/pa/pa.h (MOVE_RATIO): Update.
513         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
514         * config/h8300/h8300.h (MOVE_RATIO): Update.
515         * config/v850/v850.h (MOVE_RATIO): Update.
516         * config/bfin/bfin.h (MOVE_RATIO): Update.
517
518 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
519         Dmitry Melnik  <dm@ispras.ru>
520         Dmitry Zhurikhin  <zhur@ispras.ru>
521         Alexander Monakov  <amonakov@ispras.ru>
522         Maxim Kuvyrkov  <maxim@codesourcery.com>
523
524         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
525         sel-sched-dump.c, sel-sched-ir.c: New files.
526         * Makefile.in (OBJS-common): Add selective scheduling object
527         files.
528         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
529         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
530         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
531         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
532         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
533         (make_forwarder_block): Update loop latch if we have redirected
534         the loop latch edge.
535         * cfgloop.c (get_loop_body_in_custom_order): New function.
536         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
537         (CP_FALLTHRU_PREHEADERS): Likewise.
538         (get_loop_body_in_custom_order): Declare.
539         * cfgloopmanip.c (has_preds_from_loop): New.
540         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
541         Assert that the preheader edge will be fall thru when it is set.
542         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
543         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
544         fsel-sched-substitution, fselective-scheduling): New flags.
545         * cse.c (hash_rtx_cb): New.
546         (hash_rtx): Use it.
547         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
548         sel_sched_insn_cnt): New counters.
549         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
550         * genattr.c (main): Output maximal_insn_latency prototype.
551         * genautomata.c (output_default_latencies): New. Factor its code from ...
552         (output_internal_insn_latency_func): ... here.
553         (output_internal_maximal_insn_latency_func): New.
554         (output_maximal_insn_latency_func): New.
555         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
556         (struct hard_reg_set_iterator): New.
557         (hard_reg_set_iter_init, hard_reg_set_iter_set,
558         hard_reg_set_iter_next): New functions.
559         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
560         * lists.c (remove_free_INSN_LIST_node,
561         remove_free_EXPR_LIST_node): New functions.
562         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
563         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
564         (loop_optimizer_finalize): Do not verify flow info after reload.
565         * recog.c (validate_replace_rtx_1): New parameter simplify.
566         Default it to true.  Update all uses.  Factor out simplifying
567         code to ...
568         (simplify_while_replacing): ... this new function.
569         (validate_replace_rtx_part,
570         validate_replace_rtx_part_nosimplify): New.
571         * recog.h (validate_replace_rtx_part,
572         validate_replace_rtx_part_nosimplify): Declare.
573         * rtl.c (rtx_equal_p_cb): New.
574         (rtx_equal_p): Use it.
575         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
576         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
577         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
578         * vecprim.h: Add a vector type for unsigned int.
579         * haifa-sched.c: Include vecprim.h and cfgloop.h.
580         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
581         ready_try, cycle_issued_insns, spec_info): Make global.
582         (readyp): Initialize.
583         (dfa_lookahead): New global variable.
584         (old_max_uid, old_last_basic_block): Remove.
585         (h_i_d): Make it a vector.
586         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
587         through HID macro.
588         (after_recovery, adding_bb_to_current_region_p):
589         New variables to handle correct insertion of the recovery code.
590         (struct ready_list): Move declaration to sched-int.h.
591         (rgn_n_insns): Removed.
592         (rtx_vec_t): Move to sched-int.h.
593         (find_insn_reg_weight): Remove.
594         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
595         (haifa_init_h_i_d, haifa_finish_h_i_d):
596         New functions to initialize / finalize haifa instruction data.
597         (extend_h_i_d, init_h_i_d): Rewrite.
598         (unlink_other_notes): Move logic to add_to_note_list.  Handle
599         selective scheduler.
600         (ready_lastpos, ready_element, ready_sort, reemit_notes,
601         find_fallthru_edge): Make global, remove static prototypes.
602         (max_issue): Make global.  Add privileged_n and state parameters.  Use
603         them.
604         (extend_global, extend_all): Removed.
605         (init_before_recovery): Add new param.  Fix the handling of the case
606         when we insert a recovery code before the EXIT which has a predecessor
607         with a fallthrough edge to it.
608         (create_recovery_block): Make global.  Rename to
609         sched_create_recovery_block.  Update.
610         (change_pattern): Rename to sched_change_pattern.  Make global.
611         (speculate_insn): Rename to sched_speculate_insn.  Make global.
612         Split haifa-specific functionality into ...
613         (haifa_change_pattern): New static function.
614         (sched_extend_bb): New static function.
615         (sched_init_bbs): New function.
616         (current_sched_info): Change type to struct haifa_sched_info.
617         (insn_cost): Adjust for selective scheduling.
618         (dep_cost_1): New function.  Move logic from ...
619         (dep_cost): ... here.
620         (dep_cost): Use dep_cost_1.
621         (contributes_to_priority_p): Use sched_deps_info instead of
622         current_sched_info.
623         (priority): Adjust to work with selective scheduling.  Process the
624         corner case when all dependencies don't contribute to priority.
625         (rank_for_schedule): Use ds_weak instead of dep_weak.
626         (advance_state): New function.  Move logic from ...
627         (advance_one_cycle): ... here.
628         (add_to_note_list, concat_note_lists): New functions.
629         (rm_other_notes): Make static.  Adjust for selective scheduling.
630         (remove_notes, restore_other_notes): New functions.
631         (move_insn): Add two arguments.  Update assert.  Don't call
632         reemit_notes.
633         (choose_ready): Remove lookahead variable, use dfa_lookahead.
634         Remove more_issue, max_points.  Move the code to initialize
635         max_lookahead_tries to max_issue.
636         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
637         ready.  Adjust use of move_insn.  Call restore_other_notes.
638         (luid): Remove.
639         (sched_init, sched_finish): Move Haifa-specific initialization/
640         finalization to ...
641         (haifa_sched_init, haifa_sched_finish): ... respectively.
642         New functions.
643         (setup_sched_dump): New function.
644         (haifa_init_only_bb): New static function.
645         (haifa_speculate_insn): New static function.
646         (try_ready): Use haifa_* instead of speculate_insn and
647         change_pattern.
648         (extend_ready, extend_all): Remove.
649         (sched_extend_ready_list, sched_finish_ready_list): New functions.
650         (create_check_block_twin, add_to_speculative_block): Use
651         haifa_insns_init instead of extend_global.  Update to use new
652         initialization functions.  Change parameter.  Factor out code from
653         create_check_block_twin to ...
654         (sched_create_recovery_edges) ... this new function.
655         (add_block): Remove.
656         (sched_scan_info): New.
657         (extend_bb): Use sched_scan_info.
658         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
659         static functions for walking through scheduling region.
660         (sched_luids): New vector variable to replace uid_to_luid.
661         (luids_extend_insn): New function.
662         (sched_max_luid): New variable.
663         (luids_init_insn): New function.
664         (sched_init_luids, sched_finish_luids): New functions.
665         (insn_luid): New debug function.
666         (sched_extend_target): New function.
667         (haifa_init_insn): New static function.
668         (sched_init_only_bb): New hook.
669         (sched_split_block): New hook.
670         (sched_split_block_1): New function.
671         (sched_create_empty_bb): New hook.
672         (sched_create_empty_bb_1): New function.
673         (common_sched_info, ready): New global variables.
674         (current_sched_info_var): Remove.
675         (move_block_after_check): Use common_sched_info.
676         (haifa_luid_for_non_insn): New static function.
677         (init_before_recovery): Use haifa_init_only_bb instead of
678         add_block.
679         (increase_insn_priority): New.
680         * modulo-sched.c: (issue_rate): Remove static declaration.
681         (sms_sched_info): Change type to haifa_sched_info.
682         (sms_sched_deps_info, sms_common_sched_info): New variables.
683         (setup_sched_infos): New.
684         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
685         Do not call regstat_free_calls_crossed.
686         (sms_print_insn): Use const_rtx.
687         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
688         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
689         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
690         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
691         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
692         current_sched_info to use it.
693         (enum reg_pending_barrier_mode): Move to sched-int.h.
694         (h_d_i_d): New variable. Initialize to NULL.
695         ({true, output, anti, spec, forward}_dependency_cache): Initialize
696         to NULL.
697         (estimate_dep_weak): Remove static declaration.
698         (sched_has_condition_p): New function.  Adjust users of
699         sched_get_condition to use it instead.
700         (conditions_mutex_p): Add arguments indicating which conditions are
701         reversed.  Use them.
702         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
703         argument to indicate whether returned condition is reversed.  Do not
704         generate new rtx when condition should be reversed; indicate it by
705         setting new argument instead.
706         (add_dependence_list_and_free): Add deps parameter.
707         Update all users.  Do not free dependence list when
708         deps context is readonly.
709         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
710         contexts.
711         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
712         (remove_from_deps): New. Use the above functions.
713         (cur_insn, can_start_lhs_rhs_p): New static variables.
714         (add_or_update_back_dep_1): Initialize present_dep_type.
715         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
716         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
717         haifa_note_dep): New functions implementing dependence hooks for
718         the Haifa scheduler.
719         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
720         note_dep): New functions.
721         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
722         functions.
723         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
724         (free_deps): Initialize deps->reg_last.
725         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
726         sched_analyze_insn): Update to use dependency hooks infrastructure
727         and readonly contexts.
728         (deps_analyze_insn): New function.  Move part of logic from ...
729         (sched_analyze): ... here.  Also move some logic to ...
730         (deps_start_bb): ... here.  New function.
731         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
732         sel_sched_p.
733         (sched_deps_init): New function.  Move code from ...
734         (init_dependency_caches): ... here.  Remove.
735         (init_deps_data_vector): New.
736         (sched_deps_finish): New function.  Move code from ...
737         (free_dependency_caches): ... here.  Remove.
738         (init_deps_global, finish_deps_global): Adjust for use with
739         selective scheduling.
740         (get_dep_weak): Move logic to ...
741         (get_dep_weak_1): New function.
742         (ds_merge): Move logic to ...
743         (ds_merge_1): New static function.
744         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
745         (ds_get_max_dep_weak): New function.
746         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
747         (n_insns): Rename to rgn_n_insns.
748         (debug_ebb_dependencies): New function.
749         (init_ready_list): Use it.
750         (begin_schedule_ready): Use sched_init_only_bb.
751         (ebb_print_insn): Indicate when an insn starts a new cycle.
752         (contributes_to_priority, compute_jump_reg_dependencies,
753         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
754         (add_block1): Remove to ebb_add_block.
755         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
756         (schedule_ebb): Initialize them.  Use remove_notes instead of
757         rm_other_notes.  Use haifa_local_init/finish.
758         (schedule_ebbs): Use haifa_sched_init/finish.
759         * sched-int.h: Include vecprim.h, remove rtl.h.
760         (struct ready_list): Delete declaration.
761         (sched_verbose_param, enum sched_pass_id_t,
762         bb_vec_t, insn_vec_t, rtx_vec_t): New.
763         (struct sched_scan_info_def): New structure.
764         (sched_scan_info, sched_scan, sched_init_bbs,
765         sched_init_luids, sched_finish_luids, sched_extend_target,
766         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
767         (struct common_sched_info_def): New.
768         (common_sched_info, haifa_common_sched_info,
769         sched_emulate_haifa_p): Declare.
770         (sel_sched_p): New.
771         (sched_luids): Declare.
772         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
773         (sched_max_luid, insn_luid): Declare.
774         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
775         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
776         print_insn, print_pattern, print_value, haifa_classify_insn,
777         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
778         setup_sched_dump, sched_init, sched_finish,
779         sel_insn_is_speculation_check): Export.
780         (struct ready_list): Move from haifa-sched.c.
781         (ready_try, ready, max_issue): Export.
782         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
783         sched_init_only_bb, sched_split_block, sched_split_block_1,
784         sched_create_empty_bb, sched_create_empty_bb_1,
785         sched_create_recovery_block, sched_create_recovery_edges): Export.
786         (enum reg_pending_barrier_mode): Export.
787         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
788         (deps_t): New.
789         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
790         print_insn field.  Move add_block and fix_recovery_cfg to
791         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
792         (struct sched_deps_info_def): ... this new structure.
793         (sched_deps_info): Declare.
794         (struct spec_info_def): Remove weakness_cutoff, add
795         data_weakness_cutoff and control_weakness_cutoff.
796         (spec_info): Declare.
797         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
798         dep_count field.
799         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
800         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
801         (current_sched_info): Change type to struct haifa_sched_info.
802         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
803         (h_d_i_d): New variable.
804         (HDID): New accessor macro.
805         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
806         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
807         and HDID.
808         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
809         (enum SCHED_FLAGS): Update for selective scheduler.
810         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
811         (init_dependency_caches, free_dependency_caches): Delete declarations.
812         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
813         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
814         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
815         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
816         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
817         ds_to_dt): Export.
818         (rm_other_notes): Delete declaration.
819         (schedule_block): Remove one argument.
820         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
821         ready_element, ready_lastpos, sched_extend_ready_list,
822         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
823         concat_note_lists): Export.
824         (struct region): Move from sched-rgn.h.
825         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
826         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
827         BLOCK_TO_BB, CONTAINING_RGN): Export.
828         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
829         (current_nr_blocks, current_blocks, target_bb): Likewise.
830         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
831         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
832         sched_rgn_local_init, extend_regions,
833         rgn_make_new_region_out_of_new_block, compute_priorities,
834         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
835         extend_rgns, deps_join rgn_setup_common_sched_info,
836         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
837         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
838         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
839         increase_insn_priority): Likewise.
840         * sched-rgn.c: Include sel-sched.h.
841         (ref_counts): New static variable.  Use it ...
842         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
843         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
844         (sched_is_disabled_for_current_region_p): Delete static declaration.
845         (struct region): Move to sched-int.h.
846         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
847         ebb_head): Define and initialize.
848         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
849         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
850         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
851         sched-int.h.
852         (find_single_block_region): Add new argument to indicate that EBB
853         regions should be constructed.
854         (debug_live): Delete declaration.
855         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
856         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
857         declaration.
858         (init_regions): Delete declaration.
859         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
860         rgn_estimate_number_of_insns): New.
861         (too_large): Use estimate_number_of_insns.
862         (haifa_find_rgns): New. Move the code from ...
863         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
864         (free_trg_info): New.
865         (compute_trg_info): Allocate candidate tables here instead of ...
866         (init_ready_list): ... here.
867         (rgn_print_insn): Use const_rtx.
868         (contributes_to_priority, extend_regions): Delete static declaration.
869         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
870         (add_block1): Rename to rgn_add_block.
871         (debug_rgn_dependencies): Delete static qualifier.
872         (new_ready): Use sched_deps_info.  Simplify.
873         (rgn_common_sched_info, rgn_const_sched_deps_info,
874         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
875         (region_sched_info): Rename to rgn_const_sched_info.
876         (deps_join): New, extracted from ...
877         (propagate_deps): ... here.
878         (compute_block_dependences, debug_dependencies): Update for selective
879         scheduling.
880         (free_rgn_deps, compute_priorities): New functions.
881         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
882         sched_rgn_compute_dependencies): New functions.
883         (schedule_region): Use them.
884         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
885         rgn_setup_common_sched_info, rgn_setup_sched_infos):
886         New functions.
887         (schedule_insns): Call new functions that were split out.
888         (rgn_make_new_region_out_of_new_block): New.
889         (get_rgn_sched_max_insns_priority): New.
890         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
891         scheduling when appropriate.
892         * sched-vis.c: Include insn-attr.h.
893         (print_value, print_pattern): Make global.
894         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
895         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
896         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
897         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
898         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
899         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
900         hooks.  Initialize them to 0.
901         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
902         * target.h (struct gcc_target): Add them.  Rename gen_check field to
903         gen_spec_check.
904         * flags.h (sel_sched_switch_set): Declare.
905         * opts.c (sel_sched_switch_set): New variable.
906         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
907         pipelining is disabled from command line.
908         (common_handle_option): Record whether selective scheduling is
909         requested from command line.
910         * doc/invoke.texi: Document new flags and parameters.
911         * doc/tm.texi: Document new target hooks.
912         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
913         (dfa_state_size): Do not declare locally.
914         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
915         * config/rs6000/rs6000.c (rs6000_init_sched_context,
916         rs6000_alloc_sched_context, rs6000_set_sched_context,
917         rs6000_free_sched_context): New functions.
918         (struct _rs6000_sched_context): New.
919         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
920         scheduling.
921         (rs6000_sched_finish): Do not run for selective scheduling.
922
923 2008-08-31  Jan Hubicka  <jh@suse.cz>
924
925         * frv.c (frv_rtx_costs): Update forward declaration.
926         * spu.c (spu_rtx_costs): Likewise.
927         * pdp11.c: Include df.h
928         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
929         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
930         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
931         * iq2000.c (iq2000_address_cost): Add speed argument.
932         (iq2000_rtx_costs): Likewise.
933         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
934         update call of mn10300_address_cost.
935         * mcore.c: Include df.h
936         (mcore_rtx_costs): Update prototype.
937         * score3.c: Include df.h
938         (score3_rtx_costs): Remove speed argument.
939         * score7.c: Include df.h
940         (score7_address_cost): Remove speed argument.
941         * score-protos.h (score_address_cost): Update prototype.
942         * score.c: Include df.h
943         (score_rtx_costs): Update call of costs functions.
944         * v850.c (v850_rtx_costs): Add bool argument.
945
946 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
947
948         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
949
950 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
951
952         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
953         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
954
955 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
956
957         * mkmap-flat.awk: Add option pe_dll.
958         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
959         * config/i386/t-cygwin (SHLIB_LC): Add.
960         * config/i386/t-mingw32 (SHLIB_LC): Add.
961         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
962         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
963         (LINK_SPEC): Support libgcc_s.
964         (LIBGCC_SPEC): Support libgcc_s.
965         (LIBGCC_SONAME): New.
966
967 2008-08-31  Jan Hubicka  <jh@suse.cz>
968
969         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
970         mistakely had old version of patch.
971
972         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
973         (ipcp_estimate_growth): New.
974         (ipcp_insert_stage): Use ipcp_estimate_growth.
975         * profile.c (branch_prob): When reading failed, do not consider
976         profile as read.
977
978 2008-08-31  Jan Hubicka  <jh@suse.cz>
979
980         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
981         loop is optimized for speed.
982
983 2008-08-31  Richard Guenther  <rguenther@suse.de>
984
985         PR middle-end/37289
986         * fold-const.c (fold_binary): Retain conversions in folding
987         ~A + 1 to -A.
988
989 2008-08-31  Jan Hubicka  <jh@suse.cz>
990
991         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
992         * predict.c (maybe_hot_frequency_p): Make inline.
993         (maybe_hot_count_p): Break out from ...
994         (maybe_hot_bb_p): ... this one.
995         (maybe_hot_edge_p): Simplify.
996         * basic-block.h (probably_cold_bb_p): Remove.
997
998 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
999
1000         PR target/37168
1001         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1002         prototype.
1003         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1004         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1005         Also split V4SFmode.
1006         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1007         vector float modes.
1008
1009 2008-08-31  Jan Hubicka  <jh@suse.cz>
1010
1011         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1012         become cold.
1013         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1014
1015 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1016
1017         PR debug/37287
1018         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1019         add source coords.
1020
1021         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1022         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1023
1024 2008-08-31  Jan Hubicka  <jh@suse.cz>
1025
1026         * sparc.h (BRANCH_COST): Fix macro definition.
1027         * avr.c (avr_operand_rtx_cost): Add speed argument.
1028         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1029
1030 2008-08-31  Richard Guenther  <rguenther@suse.de>
1031
1032         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1033         types instead of operands.  Re-instantiate verifying of
1034         binary expression operands.
1035
1036 2008-08-30  Jan Hubicka  <jh@suse.cz>
1037
1038         * fwprop.c (should_replace_address): Add speed attribute.
1039         (PR_OPTIMIZE_FOR_SPEED): New flag.
1040         (propagate_rtx_1): Use it.
1041         (propagate_rtx): Set it.
1042         (try_fwprop_subst): Update call of rtx_costs.
1043         (forward_propagate_and_simplify): LIkewise.
1044         * hooks.c (hook_int_rtx_bool_0): New
1045         (hook_bool_rtx_int_int_intp_false): Replace by ...
1046         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1047         * hooks.h (hook_int_rtx_bool_0): New
1048         (hook_bool_rtx_int_int_intp_false): Replace by ...
1049         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1050         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1051         (prepare_cmp_insn): UPdate call of rtx_cost.
1052         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1053         (reload_cse_simplify_operands): Update call of rtx_cost.
1054         (reload_cse_move2add): call of rtx_cost.
1055         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1056         * rtlanal.c (rtx_cost): Add speed argument.
1057         (address_cost): Add speed argument
1058         (default_address_cost): Likewise.
1059         (insn_rtx_cost): Likewise.
1060         * cfgloopanal.c (seq_cost): Add speed argument.
1061         (target_reg_cost, target_spill_cost): Turn to array.
1062         (init_set_costs): Update for speed.
1063         (estimate_reg_pressure_cost): Add speed argument.
1064         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1065         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1066         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1067         (seq_cost): Add speed argument.
1068         (computation_cost): Add speed arugment.
1069         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1070         (force_expr_to_var_cost): Update for profile info.
1071         (force_var_cost): Likewise.
1072         (split_address_cost): Likewise.
1073         (ptr_difference_cost): Likewise.
1074         (difference_cost): Likewise.
1075         (get_computation_cost_at): Likewise.
1076         (determine_iv_cost): Likewise.
1077         (ivopts_global_cost_for_size): Likewise.
1078         (rewrite_use_address): Likewise.
1079         (tree_ssa_iv_optimize_loop): Initialize speed field.
1080         * cse.c (optimize_this_for_speed_p): New static var.
1081         (notreg_cost): Update call of rtx_cost.
1082         (cse_extended_basic_block): set optimize_this_for_speed_p.
1083         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1084         (noce_try_cmove_arith): Likewise.
1085         (noce_try_sign_mask): LIkewise.
1086         * expr.c (compress_float_constant): Update rtx_cost calls.
1087         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1088         (addr_to_parts): Likewise.
1089         (create_mem_ref): Likewise.
1090         * dse.c (find_shift_sequence): Add speed argument.
1091         (replace_read): Update call.
1092         * calls.c (precompute_register_parameters): Update call of rtx_cost.
1093         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1094         * neg_cost, shift_cost, shiftadd_cost,
1095         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1096         mul_highpart_cost): Increase dimension.
1097         (init_expmed): Initialize for both size and speed.
1098         (expand_shift): Use profile.
1099         (synth_mult): Use profile.
1100         (choose_mult_variant): Use profile.
1101         (expand_mult): Use profile.
1102         (expand_mult_highpart_optab): Use profile.
1103         (expand_mult_highpart): Use profile.
1104         (expand_smod_pow2): Use profile.
1105         (expand_divmod): Use profile.
1106         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1107         * loop-invariant.c (create_new_invariant): Use profile.
1108         (gain_for_invariant): Add speed parameter.
1109         (best_gain_for_invariant): Likewise.
1110         (find_invariants_to_move): Likewise.
1111         (move_single_loop_invariants): Set it.
1112         * target-def.h (TARGET_RTX_COSTS): Use hook.
1113         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1114         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1115         * output.h (default_address_cost): Update prototype.
1116         * combine.c (optimize_this_for_speed_p): New static var.
1117         (combine_validate_cost): Update call of rtx_cost.
1118         (combine_instructions): Set optimize_this_for_speed_p.
1119         (expand_compound_operation): Update call of rtx_cost.
1120         (make_extraction):Update call of rtx_cost.
1121         (force_to_mode):Update call of rtx_cost.
1122         (distribute_and_simplify_rtx):Update call of rtx_cost.
1123         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1124         (estimate_reg_pressure_cost): Update prototype.
1125         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1126         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1127         Remove.
1128         * config/alpha/alpha.c (alpha_rtx_costs): Update.
1129         (alpha_rtx_costs): Update.
1130         * config/frv/frv.c (frv_rtx_costs): Update.
1131         * config/s390/s390.c (s390_rtx_costs): Update.
1132         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1133         (m32c_rtx_costs): Update.
1134         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1135         (spu_rtx_costs): Update.
1136         * config/sparc/sparc.c (sparc_rtx_costs): Update.
1137         * config/m32r/m32r.c (m32r_rtx_costs): Update.
1138         * config/i386/i386.c (:ix86_address_cost): Update.
1139         (ix86_rtx_costs): Update.
1140         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1141         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1142         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1143         * config/crx/crx.c (crx_address_cost): Update.
1144         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1145         * config/stormy16/stormy16.c
1146         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1147         * config/m68hc11/m68hc11.c
1148         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1149         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1150         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1151         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1152         * config/ia64/ia64.c (ia64_rtx_costs): Update.
1153         * config/m68k/m68k.c (m68k_rtx_costs): Update.
1154         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1155         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1156         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1157         (mcore_rtx_costs): update.
1158         * config/score/score3.c (score3_rtx_costs): Update.
1159         * config/score/score7.c (score7_rtx_costs): Update.
1160         * config/score/score3.h (score3_rtx_costs):Update.
1161         * config/score/score7.h (score7_rtx_costs): Update.
1162         * config/score/score.c (score_rtx_costs): Update.
1163         * config/arm/arm.c (arm_address_cost): Update.
1164         (arm_rtx_costs_1): Update.
1165         (arm_rtx_costs_1): Update.
1166         (arm_size_rtx_costs): Update.
1167         (arm_size_rtx_costs): Update.
1168         (arm_size_rtx_costs): Update.
1169         (arm_xscale_rtx_costs): Update.
1170         (arm_thumb_address_cost): Update.
1171         * config/pa/pa.c (hppa_address_cost): Update.
1172         * config/mips/mips.c (mips_rtx_costs): Update.
1173         * config/vax/vax.c (vax_address_cost): Update.
1174         * config/h8300/h8300.c (h8300_shift_costs): Update.
1175         (h8300_rtx_costs): Update.
1176         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1177         (v850_rtx_costs): Update.
1178         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1179         * config/bfin/bfin.c
1180         (bfin_address_cost): Update.
1181         (bfin_rtx_costs): Update.
1182         * stmt.c (lshift_cheap_p): Update.
1183
1184 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1185
1186         PR middle-end/36444
1187         * expmed.c (extract_bit_field_1): Check the mode size to make
1188         sure the vector modes have the same size.
1189
1190 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
1191
1192         * dojump.c (top level): Include basic-block.h to declare
1193         optimize_insn_for_speed_p
1194
1195         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1196
1197         * opts.h (CL_SAVE): New option class for marking options that are
1198         target specific options usable in the target attribute.
1199         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1200
1201         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1202         can easily find the target specific options that are safe to use
1203         in the attribute or pragma.
1204
1205         * attribs.c (decl_attributes): Change #pragma GCC option to
1206         #pragma GCC target, and attribute((option(...))) to
1207         attribute((target(...))).
1208
1209         * doc/extend.texi (target attribute): Change from option
1210         attribute.  Delete push/pop/reset.
1211         (#pragma GCC target): Change from #pragma GCC option.  Delete
1212         push/pop/reset.
1213         (#pragma GCC push_options): Document new pragma.
1214         (#pragma GCC pop_options): Document new pragma.
1215         (#pragma GCC reset_options): Document new pragma.
1216
1217         * targhooks.c (default_target_option_valid_attribute_p): Add
1218         warning about port not supporting target attributes.
1219         (default_target_option_pragma_parse): New function, warn about
1220         #pragma GCC target not being supported.
1221
1222         * targhooks.h (default_target_option_pragma_parse): Add
1223         declaration.
1224
1225         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1226         TI_CURRENT_OPTION_PRAGMA.
1227         (current_target_pragma): Rename from current_option_pragma.
1228
1229         * target.h: (struct target_option): Delete booleans for changing
1230         the optimization level on hot/cold functions.  Change signature of
1231         pragma_parse hook to take a second tree.
1232
1233         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1234
1235         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1236         that the declaration is done at global scope.
1237
1238         * langhooks.c (add_builtin_function_common): Move most of the code
1239         from add_builtin_function here, calling the hook passed in.
1240         (add_builtin_function): Call add_builtin_function_common with
1241         standard builtin hook.
1242         (add_builtin_function_ext_scope): New function to add builtins to
1243         global scope.
1244
1245         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1246         hook.
1247         (add_builtin_function_ext_scope): Add declaration.
1248
1249         * c-pragma.c (handle_pragma_target): Rename from
1250         handle_pragma_option, #pragma GCC option is now #pragma GCC
1251         target.  Move warning about port not supporting target options to
1252         default pragma parse hook.  Remove push/pop/reset from this
1253         pragma.
1254         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1255         (option_stack): Delete static variable.
1256         (optimize_stack): Ditto.
1257         (optons_stack): New stack of saved target and optimization
1258         options.
1259         (handle_pragma_push_options): New function to handle pushing both
1260         target and optimization options.
1261         (handle_pragma_pop_options): New function to handle popping both
1262         target and optimization options.
1263         (handle_pragma_reset_options): New function to handle resetting
1264         both target and optimization options to their initial state.
1265         (init_pragma): Rename handle_pragma_option to
1266         handle_pragma_target.  Add support for push_options, pop_options,
1267         and reset_options pragmas.
1268
1269         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1270         default_target_option_pragma_parse.
1271         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1272         default_target_option_valid_attribute_p.
1273         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1274         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1275         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1276         optimization level on hot/cold functions.
1277
1278         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1279         if the caller and callee have different optimization levels.
1280
1281         * c-common.c (handle_target_attribute): Rename from
1282         handle_option_attribute, attribute((option(...))) is now
1283         attribute((target(...))).  Move warning if the port does not
1284         support target attributes to the default hook.
1285         (handle_hot_attribute): Delete code to change the optimization
1286         level of hot functions.
1287         (handle_cold_attribute): Ditto.
1288
1289         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1290         argument that is the binary tree options to use if there are no
1291         arguments.  Call ix86_valid_target_attribute_tree instead of
1292         ix86_valid_option_attribute_tree.
1293         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1294         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1295         ix86_pragma_option_parse.
1296
1297         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1298         Rename from ix86_valid_option_attribute_tree.
1299
1300         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1301         new builtins when the ISA changes.
1302         (ix86_valid_target_attribute_tree): Rename from
1303         ix86_valid_option_attribute_tree.  Change callers.  If the
1304         function specified optimization options, use those as the starting
1305         point before setting up the target attributes.  If the
1306         optimization options were changed in the course of setting the
1307         target attributes, record the new optimization options.
1308         (ix86_valid_target_attribute_tree_inner_p): Rename from
1309         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
1310         ix86_add_new_builtins if the ISA changed.
1311         (ix86_valid_target_attribute_p): Rename from
1312         ix86_valid_option_attribute_p.  Change callers.
1313         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1314         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1315         as delayed builtin functions.
1316         (struct builtin_isa): New structure to record builtin functions
1317         that should be delayed until the ISA for that function is used.
1318         (ix86_builtins_isa): Change from int to struct to track builtin
1319         functions we want to declare at some point.
1320         (def_builtin): If the front end can delay defining the builtin
1321         functions, don't create builtins for ISAs not part of the default
1322         options.
1323         (def_builtin_const): Ditto.
1324         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1325         __builtin_ia32_pcmov_v2di to be different builtin functions.
1326         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1327         a structure instead of an int.
1328         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1329         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1330         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1331         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1332
1333         * config/ia64/ia64.h
1334         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1335         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1336
1337         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1338         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1339         (LANG_HOOKS_INITIALIZER): Add
1340         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1341
1342 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1343
1344         PR target/37270
1345         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1346         the reload address with the index register for SFmode
1347         access with a displacement.
1348
1349 2008-08-30  Jan Hubicka  <jh@suse.cz>
1350
1351         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1352         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1353         * dojump.c (do_jump): Likewise.
1354         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1355         (note-if_info): Add BRANCH_COST.
1356         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1357         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1358         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1359         branch cost.
1360         * expr.h (BRANCH_COST): Update default.
1361         * predict.c (predictable_edge_p): New function.
1362         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1363         Update BRANCH_COST call.
1364         * basic-block.h (predictable_edge_p): Declare.
1365         * config/alpha/alpha.h (BRANCH_COST): Update.
1366         * config/frv/frv.h (BRANCH_COST): Update.
1367         * config/s390/s390.h (BRANCH_COST): Update.
1368         * config/spu/spu.h (BRANCH_COST): Update.
1369         * config/sparc/sparc.h (BRANCH_COST): Update.
1370         * config/m32r/m32r.h (BRANCH_COST): Update.
1371         * config/i386/i386.h (BRANCH_COST): Update.
1372         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
1373         * config/sh/sh.h (BRANCH_COST): Update.
1374         * config/pdp11/pdp11.h (BRANCH_COST): Update.
1375         * config/avr/avr.h (BRANCH_COST): Update.
1376         * config/crx/crx.h (BRANCH_COST): Update.
1377         * config/xtensa/xtensa.h (BRANCH_COST): Update.
1378         * config/stormy16/stormy16.h (BRANCH_COST): Update.
1379         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
1380         * config/iq2000/iq2000.h (BRANCH_COST): Update.
1381         * config/ia64/ia64.h (BRANCH_COST): Update.
1382         * config/rs6000/rs6000.h (BRANCH_COST): Update.
1383         * config/arc/arc.h (BRANCH_COST): Update.
1384         * config/score/score.h (BRANCH_COST): Update.
1385         * config/arm/arm.h (BRANCH_COST): Update.
1386         * config/pa/pa.h (BRANCH_COST): Update.
1387         * config/mips/mips.h (BRANCH_COST): Update.
1388         * config/vax/vax.h (BRANCH_COST): Update.
1389         * config/h8300/h8300.h (BRANCH_COST): Update.
1390         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
1391         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
1392         * doc/tm.texi (BRANCH_COST): Update.
1393
1394 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
1395
1396         PR target/37283
1397         * config/arm/arm.c (arm_optimization_options): Set
1398         flag_section_anchors to 2 instead of 1 to distinguish it from
1399         -fsection-anchors given explicitely on the command line.
1400
1401 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
1402
1403         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
1404         final insn of a split.
1405
1406 2008-08-30  Jan Hubicka  <jh@suse.cz>
1407
1408         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
1409         optimized for speed.
1410         * final.c (compute_alignments): Use optimize_bb_for_size_p.
1411         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
1412         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
1413         flag_gcse_after_reload_set): New static vars.
1414         (common_handle_option): Enable those flags for profile-use.
1415         (decode_options): Remove optimize_size flags that are handled
1416         on higher granuality.
1417         * tree-vectorizer.c (vectorize_loops): Use
1418         optimize_loop_nest_for_speed_p.
1419         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
1420         * tree-predcom.c (tree_predictive_commoning): Use
1421         optimize_loop_for_speed_p.
1422         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
1423         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
1424         * predict.c (optimize_loop_for_speed_p): Fix walk.
1425
1426 2008-08-30  Jan Hubicka  <jh@suse.cz>
1427
1428         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
1429         functions.
1430         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
1431         profile presence locally.
1432
1433 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
1434
1435         PR bootstrap/37086
1436         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
1437         versions before 4.0.
1438
1439 2008-08-29  Jan Hubicka  <jh@suse.cz>
1440
1441         * tree-inline.c (insert_init_stmt): Insert sequence even when
1442         not in SSA form.
1443
1444 2008-08-29  Jeff Law  <law@redhat.com>
1445
1446         * mn10300.c (mn10300_secondary_reload_class): We need secondary
1447         reloads for AM33-2 if IN is a pseudo with an equivalent memory
1448         location and class is an FP register.
1449
1450 2008-08-29  Jan Hubicka  <jh@suse.cz>
1451
1452         * see.c (see_merge_one_def_extension): Silence used uninitialized
1453         warning.
1454         * matrix-reorg.c (check_allocation_function): Likewise.
1455         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
1456
1457 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
1458
1459         PR c/37261
1460         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
1461         compute new & and | in type rather than TREE_TYPE (arg0).
1462
1463         * dwarf2out.c (fortran_common): Update comment.
1464         (gen_variable_die): Swap com_die and var_die variables in Fortran
1465         COMMON block handling code.
1466
1467         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1468
1469         * dwarf2out.c (gen_const_die): New function.
1470         (size_of_die, value_format, output_die): Output larger
1471         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1472         (native_encode_initializer): New function.
1473         (tree_add_const_value_attribute): Call it.
1474         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1475
1476         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1477         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1478         TREE_THIS_VOLATILE to add_type_attribute.
1479
1480         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
1481         types.
1482         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
1483         types.
1484
1485         * dwarf2out.c (loc_by_reference): New function.
1486         (add_location_or_const_value_attribute): Use it.
1487
1488         PR fortran/23057
1489         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
1490         as DW_TAG_variable children of DW_TAG_common_block rather than
1491         DW_TAG_member children.  Put DW_AT_external to individual
1492         DW_TAG_variable DIEs, not to DW_TAG_common_block.
1493
1494         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
1495         loc_descriptor_from_tree_1.
1496
1497         PR fortran/29635
1498         PR fortran/23057
1499         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
1500         arguments to imported_module_or_decl.
1501         (debug_nothing_tree_tree): Removed.
1502         (debug_nothing_tree_tree_tree_bool): New prototype.
1503         * debug.c (do_nothing_debug_hooks): Adjust.
1504         (debug_nothing_tree_tree): Removed.
1505         (debug_nothing_tree_tree_tree_bool): New function.
1506         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
1507         (gen_variable_die): Put all common vars for the
1508         same COMMON block under one DW_TAG_common_block.
1509         (declare_in_namespace): Return new context_die, for Fortran
1510         return the module DIE instead of adding extra declarations into
1511         the namespace.
1512         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
1513         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
1514         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
1515         DW_AT_declaration.
1516         (dwarf2out_global_decl): Don't skip Fortran global vars.
1517         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
1518         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
1519         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
1520         DW_TAG_imported_declaration as child of previous
1521         DW_TAG_imported_module.
1522         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
1523         * sdbout.c (sdb_debug_hooks): Likewise.
1524         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1525
1526 2008-08-29  Jan Hubicka  <jh@suse.cz>
1527
1528         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
1529
1530         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
1531         * ipa-cp.c (n_cloning_candidates): New static variable.
1532         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
1533         (ipcp_print_all_lattices): Improve debug output.
1534         (ipcp_cloning_candidate_p): New function.
1535         (ipcp_initialize_node_lattices): Use it.
1536         (ipcp_init_stage): Do only analyzis here; prettier debug output.
1537         (ipcp_propagate_stage): Prettier debug output.
1538         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
1539         (ipcp_print_all_structures): Remove.
1540         (ipcp_need_redirect_p): Test !n_cloning_candidates.
1541         (ipcp_insert_stage): Prettier debug output; call
1542         cgraph_remove_unreachable_nodes before propagating.
1543         (pass_ipa_cp): Schedule function removal pass.
1544         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
1545         debug output.
1546         (cgraph_maybe_hot_edge_p): Move to ...
1547         * predict.c (cgraph_maybe_hot_edge_p) ... here.
1548         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
1549         (common_handle_option): Set them; enable ipa-cp when profiling.
1550         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
1551         (ipa_print_all_jump_functions): Likewise.
1552         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
1553         (ipa_print_node_params, ipa_print_all_params): New.
1554         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
1555         ipa_print_all_param_flags): Remove.
1556         (ipa_print_node_params, ipa_print_all_params): New.
1557
1558 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
1559
1560         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
1561         change from 2008-04-03.
1562         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
1563
1564 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
1565
1566         PR rtl-opt/37251
1567
1568         * ira-color.c (push_allocnos_to_stack): Truncate
1569         removed_splay_allocno_vec.
1570
1571 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
1572
1573         PR rtl-opt/37243
1574         * ira-color (ira_fast_allocation): Don't assign hard registers to
1575         global allocnos.
1576
1577 2008-08-29  Jan Hubicka  <jh@suse.cz>
1578
1579         PR middle-end/37278
1580         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
1581         for cold internal loops.
1582
1583 2008-08-29  Richard Guenther  <rguenther@suse.de>
1584
1585         * tree-ssa-structalias.c (create_variable_info_for): Do not
1586         create fields for heap vars or vars with a noalias state.
1587         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
1588         from ESCAPED.
1589
1590 2008-08-29  Richard Guenther  <rguenther@suse.de>
1591
1592         * common.opt (ftree-store-ccp): Mark as preserved for
1593         backward compatibility.
1594         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
1595         * tree-pass.h (pass_store_ccp): Remove.
1596         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
1597         (first_vdef): Remove declaration.
1598         (get_value_loaded_by): Likewise.
1599         * tree-ssa-ccp.c (do_store_ccp): Remove.
1600         (get_default_value): Simplify as do_store_ccp is always false
1601         now.  Do not initialize mem_ref.
1602         (set_value_varying): Likewise.
1603         (canonicalize_float_value): Likewise.
1604         (set_lattice_value): Likewise.
1605         (likely_value): Likewise.
1606         (surely_varying_stmt_p): Likewise.
1607         (ccp_initialize): Likewise.
1608         (ccp_lattice_meet): Likewise.
1609         (ccp_visit_phi_node): Likewise.
1610         (ccp_fold): Likewise.
1611         (evaluate_stmt): Likewise.
1612         (visit_assignment): Likewise.
1613         (ccp_visit_stmt): Likewise.
1614         (execute_ssa_ccp): Fold into ...
1615         (do_ssa_ccp): ... this.
1616         (do_ssa_store_ccp): Remove.
1617         (gate_store_ccp): Likewise.
1618         (pass_store_ccp): Likewise.
1619         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
1620         initialize mem_ref.
1621         * tree-ssa-propagate.c (first_vdef): Remove.
1622         (get_value_loaded_by): Likewise.
1623         (replace_vuses_in): Likewise.
1624         (substitute_and_fold): Do not call replace_vuses_in.
1625         * opts.c (decode_options): Do not set flag_tree_store_ccp.
1626
1627 2008-08-29  Richard Guenther  <rguenther@suse.de>
1628
1629         PR middle-end/37236
1630         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
1631         PARAM_NOALIAS tags with is_heapvar.
1632         * tree-ssa-operands.c (access_can_touch_variable): Offset
1633         based tests do not apply for heapvars.  Fix offset test.
1634
1635 2008-08-29  Jan Hubicka  <jh@suse.cz>
1636
1637         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
1638         (-fipa-cp-clone): Enabled by default at -O3.
1639         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
1640         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
1641
1642 2008-08-29  Jan Hubicka  <jh@suse.cz>
1643
1644         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
1645         New functions.
1646         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
1647         Declare.
1648         * gimple.c (giple_copy_call_skip_args): New function.
1649         (giple_copy_call_skip_args): Declare.
1650
1651         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
1652         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
1653         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
1654         (ipcp_create_replace_map): Improve debug output.
1655         (ipcp_need_redirect_p): Return false when not clonning.
1656         (ipcp_update_callgraph): Skip args.
1657         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
1658         skip args.
1659         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
1660         (save_inline_function_body): Update call of tree_function_versioning.
1661         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
1662         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
1663         (tree_function_versioning): Likewise.
1664         * tree-inline.h (tree_function_versioning): Update prototype.
1665
1666 2008-08-29  Jan Hubicka  <jh@suse.cz>
1667
1668         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
1669         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
1670         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
1671         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
1672         * value-prof.c (gimple_divmod_fixed_value_transform,
1673         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
1674         gimple_stringops_transform): Use optimize_bb_for_size_p.
1675         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
1676         * final.c (compute_alignments): Use optimize_function_for_size_p.
1677         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
1678         (fold_builtin_strcpy, fold_builtin_fputs): Use
1679         optimize_function_for_size_p.
1680         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
1681         * recog.c (relax_delay_slots): Likewise.
1682         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
1683         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
1684         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
1685         optimize_function_for_size_p.
1686         (cgraph_decide_inlining_of_small_function): Use
1687         optimize_function_for_size_p.
1688         * global.c (find_reg): Use optimize_function_for_size_p.
1689         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
1690         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
1691         flag_prefetch_loop_arrays. Those can work it out from profile.
1692         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
1693         optimize_loop_for_speed_p.
1694         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
1695         argument.
1696         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
1697         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
1698         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
1699         * local-alloc.c (block_alloc): Pass BB pointer.
1700         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
1701         * gcse.c (gcse_main): Use optimize_function_for_size_p.
1702         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
1703         (decide_peel_completely): Likewise.
1704         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
1705         optimize_loop_for_size_p.
1706         (vect_enhance_data_refs_alignment): Likewise.
1707         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
1708         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
1709         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
1710         (try_crossjump_bb): Use optimize_bb_for_size_p.
1711         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
1712         optimize_loop_for_speed_p.
1713         * bb-reorder.c (find_traces_1_round): Likewise.
1714         (copy_bb): Use optimize_bb_for_speed_p.
1715         (duplicate_computed_gotos): Likewise.
1716         * basic-block.h (optimize_loop_nest_for_size_p,
1717         optimize_loop_nest_for_speed_p): New.
1718         * stmt.c (expand_case): Use optimize_insn_for_size_p.
1719
1720 2008-08-29  Tristan Gingold  <gingold@adacore.com>
1721
1722         * gcov.c (main): Call expandargv.
1723
1724 2008-08-29  Jan Hubicka  <jh@suse.cz>
1725
1726         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
1727         is not cold.
1728         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1729         Constify arguments.
1730         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
1731         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1732         Constify.
1733         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
1734
1735 2008-08-29  Jan Hubicka  <jh@suse.cz>
1736
1737         * tree-pass.h (pass_strip_predict_hints): Declare.
1738         * predict.c (strip_builtin_expect): Rename to ...
1739         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
1740         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
1741         (tree_estimate_probability): Do not strip builtin_expect.
1742         (pass_strip_predict_hints): New pass.
1743         * tree-inline.c (expand_call_inline): When inlining cold function, predict
1744         it as unlikely.
1745         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
1746
1747 2008-08-29  Richard Guenther  <rguenther@suse.de>
1748
1749         PR tree-optimization/37207
1750         * tree-vrp.c (extract_range_from_binary_expr): Also try
1751         to constant fold if only one of the operands is a constant.
1752
1753 2008-08-29  Nick Clifton  <nickc@redhat.com>
1754
1755         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
1756         the same way as SYMBOL_REFs.
1757
1758 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
1759
1760         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
1761
1762 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
1763
1764         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
1765         * config/mips/mips.md (branch_likely): Remove const.  Fix
1766         comment formatting.
1767         (define_delay for type "branch"): Change to only apply for branch
1768         with likely variant.
1769         (define_delay for type "branch" and "branch_likely" no).  New delay
1770         definition.
1771         (equality_op): New code iterator.
1772         (bbv, bbinv): New code attributes.
1773         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
1774         patterns.
1775
1776 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1777             Andrew Pinski  <pinskia@gcc.gnu.org>
1778
1779         PR 18050
1780         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
1781
1782 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
1783
1784         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
1785         rule that a symbolic constant must be defined and >= 0 for the
1786         corresponding facility to be present at compile-time.
1787         * gthr-posix.c: Likewise.
1788
1789 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
1790
1791         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
1792         * config/mips/mips.md (D): New mode attribute.
1793         (mulsi3, muldi3): Merge it into ...
1794         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
1795         patterns.
1796         (muldi3_mul3): New pattern.
1797         (mulsi3_mult3): Rename to mulsi3_mul3.
1798
1799 2008-08-28  Jan Hubicka  <jh@suse.cz>
1800
1801         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
1802         to fail.
1803         * predict.c (always_optimize_for_size_p): Rename to ...
1804         (optimize_function_for_size): ... this one; make extern.
1805         (optimize_function_for_speed_p): New.
1806         (optimize_bb_for_size_p, optimize_bb_for_size_p,
1807         optimize_edge_for_size_p,optimize_edge_for_size_p,
1808         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
1809         * basic-block.h (optimize_function_for_size_p,
1810         optimize_function_for_speed_p): Declare.
1811         * i386.md (optimize_size checks): Replace them by appropriate
1812         predicate.
1813         (standard_80387_constant_p, ix86_compute_frame_layout,
1814         ix86_expand_epilogue, ix86_decompose_address,
1815         print_operand, emit_i387_cw_initialization,
1816         inline_memory_move_cost, ix86_pad_returns,
1817         ix86_reorg): Replace optimize_size checks.
1818
1819 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1820
1821         * rtl.h (simplify_subreg_regno): Declare.
1822         * rtlanal.c (simplify_subreg_regno): New function, split out from...
1823         * simplify-rtx.c (simplify_subreg): ...here.
1824         * reload.c (find_reloads): Use simplify_subreg_regno instead of
1825         subreg_offset_representable_p.
1826
1827 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1828
1829         PR c/30949
1830         * c-typeck.c (convert_for_assignment): Give a note describing what
1831         was passed and what was expected.
1832
1833 2008-08-28  Joey Ye  <joey.ye@intel.com>
1834
1835         * doc/extend.texi: Document AVX built-in functions.
1836         * doc/invoke.texi: Document -mavx.
1837
1838 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
1839             Joey Ye  <joey.ye@intel.com>
1840             Xuepeng Guo  <xuepeng.guo@intel.com>
1841
1842         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
1843
1844         * config/i386/cpuid.h (bit_FMA): New.
1845         (bit_XSAVE): Likewise.
1846         (bit_OSXSAVE): Likewise.
1847         (bit_AVX): Likewise.
1848
1849         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
1850         define.  Use ASM_OUTPUT_AVX_PREFIX.
1851
1852         * config/i386/gmmintrin.h: New.
1853
1854         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
1855         (OPTION_MASK_ISA_AVX_SET): New.
1856         (OPTION_MASK_ISA_FMA_SET): Likewise.
1857         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
1858         (OPTION_MASK_ISA_FMA_SET): Likewise.
1859         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
1860         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
1861         (pta_flags): Add PTA_AVX and PTA_FMA.
1862         (override_options): Handle PTA_AVX and PTA_FMA.
1863         (init_cumulative_args): Handle warn_avx.
1864         (classify_argument): Return 0 for COImode and OImode.  Return
1865         1 and X86_64_AVX_CLASS for 256bit vector types.
1866         (examine_argument): Handle X86_64_AVX_CLASS.
1867         (construct_container): Likewise.
1868         (function_arg_advance_32): Pass OImode and 256bit vector types
1869         in AVX register.
1870         (function_arg_advance_64): Take a new argument to indicate if a
1871         parameter is named.  Handle 256bit vector types.  Return
1872         immediately for unnamed 256bit vector mode parameters.
1873         (function_arg_advance): Updated.
1874         (function_arg_32): Add comments for TImode.  Handle OImode
1875         and 256bit vector types.
1876         (function_arg_64): Take a new argument to indicate if a
1877         parameter is named.  Handle 256bit vector types.  Return NULL
1878         for unnamed 256bit vector mode parameters.
1879         (function_arg): Updated.
1880         (setup_incoming_varargs_64): Support
1881         AVX encoding for *sse_prologue_save_insn.
1882         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
1883         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
1884         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
1885         enabled, otherwise return -3.
1886         (standard_sse_constant_opcode): Handle AVX and 256bit vector
1887         modes.
1888         (print_reg): Support AVX registers.  Handle 'x' and 't'.
1889         Handle 'd' to duplicate the operand.
1890         (print_operand): Likewise.  Also support AVX vector compare
1891         instructions.
1892         (output_387_binary_op): Support AVX.
1893         (output_fp_compare): Likewise.
1894         (ix86_expand_vector_move_misalign): Likewise.
1895         (ix86_attr_length_vex_default): New.
1896         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
1897         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
1898         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
1899         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
1900         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
1901         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
1902         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
1903         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
1904         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
1905         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
1906         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
1907         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
1908         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
1909         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
1910         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
1911         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
1912         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
1913         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
1914         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
1915         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
1916         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
1917         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
1918         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
1919         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
1920         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
1921         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
1922         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
1923         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
1924         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
1925         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
1926         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
1927         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
1928         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
1929         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
1930         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1931         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1932         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
1933         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
1934         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
1935         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
1936         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
1937         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
1938         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
1939         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
1940         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
1941         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
1942         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
1943         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
1944         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
1945         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
1946         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
1947         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
1948         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
1949         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
1950         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
1951         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
1952         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
1953         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
1954         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
1955         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
1956         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
1957         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
1958         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
1959         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
1960         and IX86_BUILTIN_MOVMSKPS256,
1961         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
1962         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
1963         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
1964         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
1965         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
1966         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
1967         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
1968         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
1969         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
1970         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
1971         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
1972         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
1973         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
1974         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
1975         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
1976         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
1977         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
1978         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
1979         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
1980         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
1981         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
1982         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
1983         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
1984         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
1985         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
1986         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
1987         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
1988         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
1989         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1990         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1991         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
1992         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
1993         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
1994         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
1995         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
1996         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
1997         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
1998         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
1999         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2000         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2001         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2002         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2003         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2004         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2005         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2006         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2007         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2008         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2009         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2010         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2011         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2012         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2013         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2014         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2015         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2016         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2017         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2018         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2019         IX86_BUILTIN_CMPPS,
2020         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2021         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2022         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2023         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2024         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2025         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2026         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2027         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2028         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2029         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2030         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2031         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2032         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2033         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2034         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2035         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2036         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2037         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2038         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2039         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2040         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2041         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2042         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2043         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2044         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2045         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2046         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2047         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2048         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2049         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2050         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2051         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2052         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2053         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2054         IX86_BUILTIN_MOVMSKPS256.
2055         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2056         (ix86_expand_args_builtin): Likewise.
2057         (ix86_expand_special_args_builtin): Likewise.
2058         (ix86_hard_regno_mode_ok): Handle AVX modes.
2059         (ix86_expand_vector_init_duplicate): Likewise.
2060         (ix86_expand_vector_init_one_nonzero): Likewise.
2061         (ix86_expand_vector_init_one_var): Likewise.
2062         (ix86_expand_vector_init_concat): Likewise.
2063         (ix86_expand_vector_init_general): Likewise.
2064         (ix86_expand_vector_set): Likewise.
2065         (ix86_vector_mode_supported_p): Likewise.
2066         (x86_extended_reg_mentioned_p): Check INSN_P before using
2067         PATTERN.
2068
2069         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2070         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2071
2072         * config/i386/i386.h (TARGET_AVX): New.
2073         (TARGET_FMA): Likewise.
2074         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2075         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2076         (VALID_AVX256_REG_MODE): New.
2077         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2078         (AVX_FLOAT_MODE_P): Likewise.
2079         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2080         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2081         (AVX_VEC_FLOAT_MODE_P): Likewise.
2082         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2083         (ASM_OUTPUT_OPCODE): Likewise.
2084         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2085         support.
2086         (SSE_REG_MODE_P): Allow 256bit vector modes.
2087         (ix86_args): Add a warn_avx field.
2088
2089         * config/i386/i386.md (UNSPEC_PCMP): New.
2090         (UNSPEC_VPERMIL): Likewise.
2091         (UNSPEC_VPERMIL2): Likewise.
2092         (UNSPEC_VPERMIL2F128): Likewise.
2093         (UNSPEC_MASKLOAD): Likewise.
2094         (UNSPEC_MASKSTORE): Likewise.
2095         (UNSPEC_CAST): Likewise.
2096         (UNSPEC_VTESTP): Likewise.
2097         (UNSPECV_VZEROALL): Likewise.
2098         (UNSPECV_VZEROUPPER): Likewise.
2099         (XMM0_REG): Likewise.
2100         (XMM1_REG): Likewise.
2101         (XMM2_REG): Likewise.
2102         (XMM3_REG): Likewise.
2103         (XMM4_REG): Likewise.
2104         (XMM5_REG): Likewise.
2105         (XMM6_REG): Likewise.
2106         (XMM8_REG): Likewise.
2107         (XMM9_REG): Likewise.
2108         (XMM10_REG): Likewise.
2109         (XMM11_REG): Likewise.
2110         (XMM12_REG): Likewise.
2111         (XMM13_REG): Likewise.
2112         (XMM14_REG): Likewise.
2113         (XMM15_REG): Likewise.
2114         (prefix): Likewise.
2115         (prefix_vex_imm8): Likewise.
2116         (prefix_vex_w): Likewise.
2117         (length_vex): Likewise.
2118         (maxmin): Likewise.
2119         (movoi): Likewise.
2120         (*avx_ashlti3): Likewise.
2121         (*avx_lshrti3): Likewise.
2122         (*avx_setcc<mode>): Likewise.
2123         (*fop_<mode>_comm_mixed_avx): Likewise.
2124         (*fop_<mode>_comm_avx): Likewise.
2125         (*fop_<mode>_1_mixed_avx): Likewise.
2126         (*fop_<mode>_1_avx): Likewise.
2127         (*avx_<code><mode>3): Likewise.
2128         (*avx_ieee_smin<mode>3): Likewise.
2129         (*avx_ieee_smax<mode>3): Likewise.
2130         (mode): Add OI, V8SF and V4DF.
2131         (length): Support VEX prefix.
2132         (*cmpfp_i_mixed): Set prefix attribute.
2133         (*cmpfp_i_sse): Likewise.
2134         (*cmpfp_iu_mixed): Likewise.
2135         (*cmpfp_iu_sse): Likewise.
2136         (*movsi_1): Support AVX.
2137         (*movdi_2): Likewise.
2138         (*movdi_1_rex64): Likewise.
2139         (*movti_internal): Likewise.
2140         (*movti_rex64): Likewise.
2141         (*movsf_1): Likewise.
2142         (*movdf_nointeger): Likewise.
2143         (*movdf_integer_rex64): Likewise.
2144         (*movtf_internal): Likewise.
2145         (zero_extendsidi2_32): Likewise.
2146         (zero_extendsidi2_rex64): Likewise.
2147         (*extendsfdf2_mixed): Likewise.
2148         (*extendsfdf2_sse): Likewise.
2149         (*truncdfsf_fast_mixed): Likewise.
2150         (*truncdfsf_fast_sse): Likewise.
2151         (*truncdfsf_mixed): Likewise.
2152         (fix_trunc<mode>di_sse): Likewise.
2153         (fix_trunc<mode>si_sse): Likewise.
2154         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2155         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2156         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2157         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2158         (*rcpsf2_sse): Likewise.
2159         (*rsqrtsf2_sse): Likewise.
2160         (*sqrt<mode>2_sse): Likewise.
2161         (sse4_1_round<mode>2): Likewise.
2162         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2163         Support AVX.  Set length attribute properly for AVX.
2164
2165         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2166         (VECTOR_MODES (FLOAT, 32)): Likewise.
2167         (VECTOR_MODE (INT, DI, 8)): Likewise.
2168         (VECTOR_MODE (INT, HI, 32)): Likewise.
2169         (VECTOR_MODE (INT, QI, 64)): Likewise.
2170         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2171         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2172         (VECTOR_MODE (INT, DI, 4)): Removed.
2173         (VECTOR_MODE (INT, SI, 8)): Likewise.
2174         (VECTOR_MODE (INT, HI, 16)): Likewise.
2175         (VECTOR_MODE (INT, QI, 32)): Likewise.
2176         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2177         (INT_MODE (OI, 32)): Likewise.
2178
2179         * config/i386/i386.opt (mavx): New.
2180         (mfma): Likewise.
2181
2182         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2183
2184         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2185         (*mov<mode>_internal_avx): New.
2186         (*movv2sf_internal_rex64_avx): Likewise.
2187         (*movv2sf_internal_avx): Likewise.
2188
2189         * config/i386/predicates.md (const_4_to_5_operand): New.
2190         (const_6_to_7_operand): Likewise.
2191         (const_8_to_11_operand): Likewise.
2192         (const_12_to_15_operand): Likewise.
2193         (avx_comparison_float_operator): Likewise.
2194
2195         * config/i386/sse.md (AVX256MODEI): New.
2196         (AVX256MODE): Likewise.
2197         (AVXMODEQI): Likewise.
2198         (AVXMODE): Likewise.
2199         (AVX256MODEF2P): Likewise.
2200         (AVX256MODE2P): Likewise.
2201         (AVX256MODE4P): Likewise.
2202         (AVX256MODE8P): Likewise.
2203         (AVXMODEF2P): Likewise.
2204         (AVXMODEF4P): Likewise.
2205         (AVXMODEDCVTDQ2PS): Likewise.
2206         (AVXMODEDCVTPS2DQ): Likewise.
2207         (avxvecmode): Likewise.
2208         (avxvecpsmode): Likewise.
2209         (avxhalfvecmode): Likewise.
2210         (avxscalarmode): Likewise.
2211         (avxcvtvecmode): Likewise.
2212         (avxpermvecmode): Likewise.
2213         (avxmodesuffixf2c): Likewise.
2214         (avxmodesuffixp): Likewise.
2215         (avxmodesuffixs): Likewise.
2216         (avxmodesuffix): Likewise.
2217         (vpermilbits): Likewise.
2218         (pinsrbits): Likewise.
2219         (mov<mode>): Likewise.
2220         (*mov<mode>_internal): Likewise.
2221         (push<mode>1): Likewise.
2222         (movmisalign<mode>): Likewise.
2223         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2224         (avx_movdqu<avxmodesuffix>): Likewise.
2225         (avx_lddqu<avxmodesuffix>): Likewise.
2226         (<plusminus_insn><mode>3): Likewise.
2227         (*avx_<plusminus_insn><mode>3): Likewise.
2228         (*avx_vm<plusminus_insn><mode>3): Likewise.
2229         (mul<mode>3): Likewise.
2230         (*avx_mul<mode>3): Likewise.
2231         (*avx_vmmul<mode>3): Likewise.
2232         (divv8sf3): Likewise.
2233         (divv4df3): Likewise.
2234         (avx_div<mode>3): Likewise.
2235         (*avx_div<mode>3): Likewise.
2236         (*avx_vmdiv<mode>3): Likewise.
2237         (avx_rcpv8sf2): Likewise.
2238         (*avx_vmrcpv4sf2): Likewise.
2239         (sqrtv8sf2): Likewise.
2240         (avx_sqrtv8sf2): Likewise.
2241         (*avx_vmsqrt<mode>2): Likewise.
2242         (rsqrtv8sf2): Likewise.
2243         (avx_rsqrtv8sf2): Likewise.
2244         (*avx_vmrsqrtv4sf2): Likewise.
2245         (<code><mode>3): Likewise.
2246         (*avx_<code><mode>3_finite): Likewise.
2247         (*avx_<code><mode>3): Likewise.
2248         (*avx_vm<code><mode>3): Likewise.
2249         (*avx_ieee_smin<mode>3): Likewise.
2250         (*avx_ieee_smax<mode>3): Likewise.
2251         (avx_addsubv8sf3): Likewise.
2252         (avx_addsubv4df3): Likewise.
2253         (*avx_addsubv4sf3): Likewise.
2254         (*avx_addsubv2df3): Likewise.
2255         (avx_h<plusminus_insn>v4df3): Likewise.
2256         (avx_h<plusminus_insn>v8sf3): Likewise.
2257         (*avx_h<plusminus_insn>v4sf3): Likewise.
2258         (*avx_h<plusminus_insn>v2df3): Likewise.
2259         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2260         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2261         (*avx_maskcmp<mode>3): Likewise.
2262         (avx_nand<mode>3): Likewise.
2263         (*avx_<code><mode>3): Likewise.
2264         (*avx_nand<mode>3): Likewise.
2265         (*avx_<code><mode>3): Likewise.
2266         (*avx_cvtsi2ss): Likewise.
2267         (*avx_cvtsi2ssq): Likewise.
2268         (*avx_cvtsi2sd): Likewise.
2269         (*avx_cvtsi2sdq): Likewise.
2270         (*avx_cvtsd2ss): Likewise.
2271         (avx_cvtss2sd): Likewise.
2272         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2273         (avx_cvtps2dq<avxmodesuffix>): Likewise.
2274         (avx_cvttps2dq<avxmodesuffix>): Likewise.
2275         (*avx_cvtsi2sd): Likewise.
2276         (*avx_cvtsi2sdq): Likewise.
2277         (avx_cvtdq2pd256): Likewise.
2278         (avx_cvtpd2dq256): Likewise.
2279         (avx_cvttpd2dq256): Likewise.
2280         (*avx_cvtsd2ss): Likewise.
2281         (*avx_cvtss2sd): Likewise.
2282         (avx_cvtpd2ps256): Likewise.
2283         (avx_cvtps2pd256): Likewise.
2284         (*avx_movhlps): Likewise.
2285         (*avx_movlhps): Likewise.
2286         (avx_unpckhps256): Likewise.
2287         (*avx_unpckhps): Likewise.
2288         (avx_unpcklps256): Likewise.
2289         (*avx_unpcklps): Likewise.
2290         (avx_movshdup256): Likewise.
2291         (avx_movsldup256): Likewise.
2292         (avx_shufps256): Likewise.
2293         (avx_shufps256_1): Likewise.
2294         (*avx_shufps_<mode>): Likewise.
2295         (*avx_loadhps): Likewise.
2296         (*avx_storelps): Likewise.
2297         (*avx_loadlps): Likewise.
2298         (*avx_movss): Likewise.
2299         (*vec_dupv4sf_avx): Likewise.
2300         (*vec_concatv2sf_avx): Likewise.
2301         (*vec_concatv4sf_avx): Likewise.
2302         (*vec_setv4sf_0_avx): Likewise.
2303         (*vec_setv4sf_avx): Likewise.
2304         (*avx_insertps): Likewise.
2305         (avx_vextractf128<mode>): Likewise.
2306         (vec_extract_lo_<mode>): Likewise.
2307         (vec_extract_hi_<mode>): Likewise.
2308         (vec_extract_lo_<mode>): Likewise.
2309         (vec_extract_hi_<mode>): Likewise.
2310         (vec_extract_lo_v16hi): Likewise.
2311         (vec_extract_hi_v16hi): Likewise.
2312         (vec_extract_lo_v32qi): Likewise.
2313         (vec_extract_hi_v32qi): Likewise.
2314         (avx_unpckhpd256): Likewise.
2315         (*avx_unpckhpd): Likewise.
2316         (avx_movddup256): Likewise.
2317         (*avx_movddup): Likewise.
2318         (avx_unpcklpd256): Likewise.
2319         (*avx_unpcklpd): Likewise.
2320         (avx_shufpd256): Likewise.
2321         (avx_shufpd256_1): Likewise.
2322         (*avx_punpckhqdq): Likewise.
2323         (*avx_punpcklqdq): Likewise.
2324         (*avx_shufpd_<mode>): Likewise.
2325         (*avx_storehpd): Likewise.
2326         (*avx_loadhpd): Likewise.
2327         (*avx_loadlpd): Likewise.
2328         (*avx_movsd): Likewise.
2329         (*vec_concatv2df_avx): Likewise.
2330         (*avx_<plusminus_insn><mode>3): Likewise.
2331         (*avx_<plusminus_insn><mode>3): Likewise.
2332         (*avx_mulv8hi3): Likewise.
2333         (*avxv8hi3_highpart): Likewise.
2334         (*avx_umulv8hi3_highpart): Likewise.
2335         (*avx_umulv2siv2di3): Likewise.
2336         (*avx_mulv2siv2di3): Likewise.
2337         (*avx_pmaddwd): Likewise.
2338         (*avx_mulv4si3): Likewise.
2339         (*avx_ashr<mode>3): Likewise.
2340         (*avx_lshr<mode>3): Likewise.
2341         (*avx_ashl<mode>3): Likewise.
2342         (*avx_<code><mode>3): Likewise.
2343         (*avx_eq<mode>3): Likewise.
2344         (*avx_gt<mode>3): Likewise.
2345         (*avx_nand<mode>3): Likewise.
2346         (*avx_nand<mode>3): Likewise.
2347         (*avx_<code><mode>3): Likewise.
2348         (*avx_<code><mode>3): Likewise.
2349         (*avx_packsswb): Likewise.
2350         (*avx_packssdw): Likewise.
2351         (*avx_packuswb): Likewise.
2352         (*avx_punpckhbw): Likewise.
2353         (*avx_punpcklbw): Likewise.
2354         (*avx_punpckhwd): Likewise.
2355         (*avx_punpcklwd): Likewise.
2356         (*avx_punpckhdq): Likewise.
2357         (*avx_punpckldq): Likewise.
2358         (*avx_pinsr<avxmodesuffixs>): Likewise.
2359         (*avx_pinsrq): Likewise.
2360         (*avx_loadld): Likewise.
2361         (*vec_extractv2di_1_rex64_avx): Likewise.
2362         (*vec_extractv2di_1_avx): Likewise.
2363         (*vec_dupv2di_avx): Likewise.
2364         (*vec_concatv2si_avx): Likewise.
2365         (*vec_concatv4si_1_avx): Likewise.
2366         (*vec_concatv2di_avx): Likewise.
2367         (*vec_concatv2di_rex64_avx): Likewise.
2368         (*avx_uavgv16qi3): Likewise.
2369         (*avx_uavgv8hi3): Likewise.
2370         (*avx_psadbw): Likewise.
2371         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
2372         (*avx_phaddwv8hi3): Likewise.
2373         (*avx_phadddv4si3): Likewise.
2374         (*avx_phaddswv8hi3): Likewise.
2375         (*avx_phsubwv8hi3): Likewise.
2376         (*avx_phsubdv4si3): Likewise.
2377         (*avx_phsubswv8hi3): Likewise.
2378         (*avx_pmaddubsw128): Likewise.
2379         (*avx_pmulhrswv8hi3): Likewise.
2380         (*avx_pshufbv16qi3): Likewise.
2381         (*avx_psign<mode>3): Likewise.
2382         (*avx_palignrti): Likewise.
2383         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2384         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2385         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2386         (*avx_mpsadbw): Likewise.
2387         (*avx_packusdw): Likewise.
2388         (*avx_pblendvb): Likewise.
2389         (*avx_pblendw): Likewise.
2390         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2391         (avx_ptest256): Likewise.
2392         (avx_roundp<avxmodesuffixf2c>256): Likewise.
2393         (*avx_rounds<ssemodesuffixf2c>): Likewise.
2394         (*avx_aesenc): Likewise.
2395         (*avx_aesenclast): Likewise.
2396         (*avx_aesdec): Likewise.
2397         (*avx_aesdeclast): Likewise.
2398         (avx_vzeroupper): Likewise.
2399         (avx_vzeroupper_rex64): Likewise.
2400         (avx_vpermil<mode>): Likewise.
2401         (avx_vpermilvar<mode>3): Likewise.
2402         (avx_vpermil2<mode>3): Likewise.
2403         (avx_vperm2f128<mode>3): Likewise.
2404         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2405         (avx_vbroadcastss256): Likewise.
2406         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
2407         (avx_vinsertf128<mode>): Likewise.
2408         (vec_set_lo_<mode>): Likewise.
2409         (vec_set_hi_<mode>): Likewise.
2410         (vec_set_lo_<mode>): Likewise.
2411         (vec_set_hi_<mode>): Likewise.
2412         (vec_set_lo_v16hi): Likewise.
2413         (vec_set_hi_v16hi): Likewise.
2414         (vec_set_lo_v32qi): Likewise.
2415         (vec_set_hi_v32qi): Likewise.
2416         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2417         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2418         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2419         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
2420         (vec_init<mode>): Likewise.
2421         (*vec_concat<mode>_avx): Likewise.
2422         (blendbits): Support V8SF and V4DF.
2423         (sse2_movq128): Support AVX.
2424         (<sse>_movnt<mode>): Likewise.
2425         (sse2_movntv2di): Likewise.
2426         (sse_rcpv4sf2): Likewise.
2427         (sse_sqrtv4sf2): Likewise.
2428         (sse_rsqrtv4sf2): Likewise.
2429         (<sse>_comi): Likewise.
2430         (<sse>_ucomi): Likewise.
2431         (sse_cvtss2si): Likewise.
2432         (sse_cvtss2si_2): Likewise.
2433         (sse_cvtss2siq): Likewise.
2434         (sse_cvtss2siq_2): Likewise.
2435         (sse_cvttss2si): Likewise.
2436         (sse_cvttss2siq): Likewise.
2437         (sse2_cvtsd2si): Likewise.
2438         (sse2_cvtsd2si_2): Likewise.
2439         (sse2_cvtsd2siq): Likewise.
2440         (sse2_cvtsd2siq_2): Likewise.
2441         (sse2_cvttsd2si): Likewise.
2442         (sse2_cvttsd2siq): Likewise.
2443         (sse2_cvtdq2pd): Likewise.
2444         (*sse2_cvtpd2dq): Likewise.
2445         (*sse2_cvttpd2dq): Likewise.
2446         (*sse2_cvtpd2ps): Likewise.
2447         (sse2_cvtps2pd): Likewise.
2448         (sse3_movshdup): Likewise.
2449         (sse3_movsldup): Likewise.
2450         (sse_storehps): Likewise.
2451         (*sse4_1_extractps): Likewise.
2452         (sse2_storelpd): Likewise.
2453         (vec_dupv2df_sse3): Likewise.
2454         (*vec_concatv2df_sse3): Likewise.
2455         (*sse4_1_pextrb): Likewise.
2456         (*sse4_1_pextrb_memory): Likewise.
2457         (*sse2_pextrw): Likewise.
2458         (*sse4_1_pextrw_memory): Likewise.
2459         (*sse4_1_pextrd): Likewise.
2460         (*sse4_1_pextrq): Likewise.
2461         (sse2_pshufd_1): Likewise.
2462         (sse2_pshuflw_1): Likewise.
2463         (sse2_pshufhw_1): Likewise.
2464         (*sse2_storeq_rex64): Likewise.
2465         (*vec_dupv4si): Likewise.
2466         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2467         (sse2_pmovmskb): Likewise.
2468         (*sse2_maskmovdqu): Likewise.
2469         (*sse2_maskmovdqu_rex64): Likewise.
2470         (sse_ldmxcsr): Likewise.
2471         (sse_stmxcsr): Likewise.
2472         (abs<mode>2): Likewise.
2473         (sse4_1_movntdqa): Likewise.
2474         (sse4_1_phminposuw): Likewise.
2475         (sse4_1_extendv8qiv8hi2): Likewise.
2476         (*sse4_1_extendv8qiv8hi2): Likewise.
2477         (sse4_1_extendv4qiv4si2): Likewise.
2478         (*sse4_1_extendv4qiv4si2): Likewise.
2479         (sse4_1_extendv2qiv2di2): Likewise.
2480         (*sse4_1_extendv2qiv2di2): Likewise.
2481         (sse4_1_extendv4hiv4si2): Likewise.
2482         (*sse4_1_extendv4hiv4si2): Likewise.
2483         (sse4_1_extendv2hiv2di2): Likewise.
2484         (*sse4_1_extendv2hiv2di2): Likewise.
2485         (sse4_1_extendv2siv2di2): Likewise.
2486         (*sse4_1_extendv2siv2di2): Likewise.
2487         (sse4_1_zero_extendv8qiv8hi2): Likewise.
2488         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2489         (sse4_1_zero_extendv4qiv4si2): Likewise.
2490         (*sse4_1_zero_extendv4qiv4si2): Likewise.
2491         (sse4_1_zero_extendv2qiv2di2): Likewise.
2492         (*sse4_1_zero_extendv2qiv2di2): Likewise.
2493         (sse4_1_zero_extendv4hiv4si2): Likewise.
2494         (*sse4_1_zero_extendv4hiv4si2): Likewise.
2495         (sse4_1_zero_extendv2hiv2di2): Likewise.
2496         (*sse4_1_zero_extendv2hiv2di2): Likewise.
2497         (sse4_1_zero_extendv2siv2di2): Likewise.
2498         (*sse4_1_zero_extendv2siv2di2): Likewise.
2499         (sse4_1_ptest): Likewise.
2500         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
2501         (sse4_2_pcmpestri): Likewise.
2502         (sse4_2_pcmpestrm): Likewise.
2503         (sse4_2_pcmpistri): Likewise.
2504         (sse4_2_pcmpistrm): Likewise.
2505         (aesimc): Likewise.
2506         (aeskeygenassist): Likewise.
2507
2508 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
2509
2510         * config/i386/predicates.md (vzeroall_operation): New.
2511
2512         * config/i386/sse.md (avx_vzeroall): New.
2513         (*avx_vzeroall): Likewise.
2514
2515 2008-08-28  Paul Brook  <paul@codesourcery.com>
2516             Mark Shinwell  <shinwell@codesourcery.com>
2517             Richard Earnshaw  <richard.earnshaw@arm.com>
2518
2519         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
2520         (TARGET_MIN_ANCHOR_OFFSET): New.
2521         (arm_override_options): Set correct anchor ranges for Thumb-1
2522         and Thumb-2 if required.
2523         (legitimize_pic_address): Handle case involving a TLS symbol
2524         reference with an addend.
2525         (arm_optimization_options): Enable section anchors at -O1 and
2526         above.
2527         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
2528         * config/arm/arm-protos.h (arm_optimization_options): New.
2529
2530 2008-08-28  Nick Clifton  <nickc@redhat.com>
2531
2532         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
2533         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
2534         attribute.
2535
2536         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
2537         * config/v850/v850.md (return): Remove frame size restriction.
2538
2539         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
2540
2541         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
2542
2543         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
2544
2545         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
2546
2547 2008-08-28  Paul Brook  <paul@codesourcery.com>
2548
2549         * config/arm/vfp11.md: Update license notice.
2550         * config/arm/cortex-r4.md: Ditto.
2551
2552 2008-08-28  Richard Guenther  <rguenther@suse.de>
2553
2554         PR tree-optimization/37207
2555         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
2556         tuplification bug.
2557
2558 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
2559
2560         PR c++/36741
2561         * tree.c (int_fits_type_p): Don't forget unsigned integers
2562           of type sizetype which higher end word equals -1.
2563
2564 2008-08-28  Ira Rosen  <irar@il.ibm.com>
2565
2566         * target.h (struct vectorize): Add new target builtin.
2567         * tree-vectorizer.c (destroy_loop_vec_info): Call
2568         vect_free_slp_instance instead of vect_free_slp_node.
2569         * tree-vectorizer.h (enum slp_load_perm_type): New.
2570         (struct _slp_instance): Add new fields.
2571         (SLP_INSTANCE_LOAD_PERMUTATION): New.
2572         (SLP_INSTANCE_LOADS): New.
2573         (vect_free_slp_tree): Remove.
2574         (vect_free_slp_instance): Declare.
2575         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
2576         (vectorizable_load): Add argument.
2577         (vect_transform_slp_perm_load): New.
2578         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
2579         vectorizable_load.
2580         (vect_get_place_in_interleaving_chain): New function.
2581         (vect_free_slp_tree): Make static.
2582         (vect_free_slp_instance): New function.
2583         (vect_build_slp_tree): Add new arguments. Allow load permutations and
2584         collect the load location in the interleaving chain.
2585         (vect_supported_slp_permutation_p): New function.
2586         (vect_supported_load_permutation_p): Likewise.
2587         (vect_analyze_slp_instance): In case of loads permutation, call
2588         vect_supported_load_permutation_p to check that the permutation is
2589         supported.
2590         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
2591         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
2592         (vect_create_mask_and_perm): New function.
2593         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
2594         (vectorizable_load): Add an argument. Don't keep the created vectors
2595         statements in the node if permutation is required. Call
2596         vect_transform_slp_perm_load to generate the permutation.
2597         (vect_transform_stmt): Add new argument. Call vectorizable_load with
2598         additional argument.
2599         (vect_schedule_slp_instance): In case of loads permutation, allocate
2600         vectorized statements structure for all the related SLP nodes. Call
2601         vect_transform_stmt with addditional argument.
2602         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
2603         * config/spu/spu.c (spu_builtin_vec_perm): New.
2604         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2605         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
2606         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
2607         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2608
2609 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
2610
2611         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
2612         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
2613         __gthread_cond_signal, __gthread_cond_timedwait,
2614         __gthread_cond_timedwait_recursive): New functions.
2615         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
2616         Likewise.
2617         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
2618         thread interfaces.
2619
2620 2008-08-28  Richard Guenther  <rguenther@suse.de>
2621
2622         PR middle-end/37005
2623         * fold-const.c (maybe_canonicalize_comparison_1): Require
2624         undefined overflow only for canonicalizing A +- CST cmp CST.
2625         Make sure to not generate new constants that are not inside
2626         their TYPE_MIN/MAX_VALUE range.
2627         (maybe_canonicalize_comparison): Remove undefined overflow
2628         checking from here.
2629         (fold_binary): Remove now duplicate folding.
2630
2631 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
2632
2633         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
2634         use not updated in the last change.
2635
2636 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2637
2638         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
2639         (IRA_COVER_CLASSES): Add FPUL_REGS.
2640
2641 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2642
2643         PR 37217
2644         * c-common.c (conversion_warning): Check for null operands.
2645
2646 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2647
2648         PR c/31673
2649         * c-decl.c (check_for_loop_decls): Improve error message. Give
2650         hint.
2651
2652 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2653
2654         PR c/37186
2655         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
2656         (convert_for_assignment): Pass corrent OPT_W* parameter to
2657         WARN_FOR_ASSIGNMENT.
2658
2659 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
2660
2661         PR c++/35321
2662         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
2663
2664 2008-08-27  Paul Brook  <paul@codesourcery.com>
2665
2666         * config.gcc: Loosen checks for arm uclinux eabi targets.
2667
2668 2008-08-27  Paul Brook  <paul@codesourcery.com>
2669
2670         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
2671         _clzsi2.
2672         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2673
2674 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
2675
2676         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
2677         the enumerators of an ENUMERAL_TYPE.
2678         * dbxout.c (dbxout_type): Ditto.
2679
2680 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2681
2682         PR rtl-opt/37219
2683         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
2684         (fwprop_addr): Check that the loop_father is not the outer loop.
2685
2686 2008-08-26  Paul Brook  <paul@codesourcery.com>
2687
2688         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
2689         Remove documentation entry for fmul type.
2690         Use fmuls to annotate single-precision multiplication patterns,
2691         fmuld to annotate double-precision multiplication patterns,
2692         fmacs to annotate single-precision multiply-accumulate patterns
2693         and fmacd to annotate double-precision multiply-accumulate patterns.
2694         * config/arm/vfp11.md: Update reservations accordingly.
2695         * config/arm/arm.md: Note that certain values of the "type"
2696         attribute are documented in vfp.md.
2697         * config/arm/arm1020e.md: Remove out of date duplicate comment.
2698         (v10_cvt): Use new fmul types.
2699
2700 2008-08-26  Paul Brook   <paul@codesourcery.com>
2701
2702         * config/arm/vfp.md: Move pipeline description for VFP11 to...
2703         * config/arm/vfp11.md: ...here.  New.
2704         * config/arm/arm.md: Include vfp11.md.
2705
2706 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
2707
2708         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
2709         parameter to inform call.
2710
2711 2008-08-26  Jeff Law  <law@redhat.com>
2712
2713         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
2714         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
2715         preferred class when copying a constant into a partial word register.
2716
2717 2008-08-26  Ben Elliston  <bje@au.ibm.com>
2718
2719         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
2720         * cp/typeck.c: Likewise.
2721         * cp/tree.c: Likewise.
2722         * gimple-low.c: Likewise.
2723         * jump.c: Likewise.
2724
2725 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
2726
2727         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
2728         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
2729
2730         * doc/passes.texi: Describe IRA.
2731
2732         * doc/tm.texi (IRA_COVER_CLASSES,
2733         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
2734
2735         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
2736         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
2737         -fira-propagate-cost, -fno-ira-share-save-slots,
2738         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
2739
2740         * flags.h (ira_algorithm): New enumeration.
2741         (flag_ira_algorithm, flag_ira_verbose): New external variable
2742         declarations.
2743
2744         * postreload.c (gate_handle_postreload): Don't do post reload
2745         optimizations unless the reload is completed.
2746
2747         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
2748         IRA.
2749
2750         * tree-pass.h (pass_ira): New external variable declaration.
2751
2752         * reload.h: Add 2008 to the Copyright.
2753
2754         * cfgloopanal.c: Include params.h.
2755         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
2756         mode.
2757
2758         * params.h (IRA_MAX_LOOPS_NUM): New macro.
2759
2760         * toplev.c (ira.h): New include.
2761         (flag_ira_algorithm, flag_ira_verbose): New external variables.
2762         (backend_init_target): Call ira_init.
2763         (backend_init): Call ira_init_once.
2764         (finalize): Call finish_ira_once.
2765
2766         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
2767         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
2768         external variables.
2769
2770         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
2771         may_move_out_cost): New external variable declarations.
2772         (move_table): New typedef.
2773
2774         * caller-save.c: Include headers output.h and ira.h.
2775         (no_caller_save_reg_set): New global variable.
2776         (save_slots_num, save_slots): New variables.
2777         (reg_save_code, reg_restore_code, add_stored_regs): Add
2778         prototypes.
2779         (init_caller_save): Set up no_caller_save_reg_set.
2780         (init_save_areas): Reset save_slots_num.
2781         (saved_hard_reg): New structure.
2782         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
2783         (initiate_saved_hard_regs, new_saved_hard_reg,
2784         finish_saved_hard_regs, saved_hard_reg_compare_func): New
2785         functions.
2786         (setup_save_areas): Add code for sharing stack slots.
2787         (all_blocks): New variable.
2788         (save_call_clobbered_regs): Process pseudo-register too.
2789         (mark_set_regs): Process pseudo-register too.
2790         (insert_one_insn): Put the insn after bb note in a empty basic
2791         block.  Add insn check.
2792
2793         * global.c (eliminable_regset): Make it external.
2794         (mark_elimination): Use DF_LR_IN for IRA.
2795         (pseudo_for_reload_consideration_p): New.
2796         (build_insn_chain): Make it external.  Don't ignore spilled
2797         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
2798         (gate_handle_global_alloc): New function.
2799         (pass_global_alloc): Add the gate function.
2800
2801         * opts.c (decode_options): Set up flag_ira.  Print the warning for
2802         -fira.
2803         (common_handle_option): Process -fira-algorithm and -fira-verbose.
2804
2805         * timevar.def (TV_IRA, TV_RELOAD): New passes.
2806
2807         * regmove.c (regmove_optimize): Don't do replacement of output for
2808         IRA.
2809
2810         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
2811         New external variable declarations.
2812
2813         * local-alloc.c (update_equiv_regs): Make it external.  Return
2814         true if jump label rebuilding should be done.  Rescan new_insn for
2815         notes.
2816         (gate_handle_local_alloc): New function.
2817         (pass_local_alloc): Add the gate function.
2818
2819         * alias.c (value_addr_p, stack_addr_p): New functions.
2820         (nonoverlapping_memrefs_p): Use them for IRA.
2821
2822         * common.opt (fira, fira-algorithm, fira-coalesce,
2823         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
2824         fira-verbose): New options.
2825
2826         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
2827         move_cost, may_move_in_cost, may_move_out_cost): Make the
2828         variables external.
2829         (move_table): Remove typedef.
2830         (init_move_cost): Make it external.
2831         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
2832         functions.
2833
2834         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
2835         setup_reg_classes): New function prototypes.
2836         (eliminable_regset): New external variable declaration.
2837         (build_insn_chain, update_equiv_regs): New function prototypes.
2838
2839         * Makefile.in (IRA_INT_H): New definition.
2840         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
2841         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
2842         (reload1.o, toplev.o): Add dependence on ira.h.
2843         (cfgloopanal.o): Add PARAMS_H.
2844         (caller-save.o): Add dependence on output.h and ira.h.
2845         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
2846         ira-emit.o, ira-lives.o): New entries.
2847
2848         * passes.c (pass_ira): New pass.
2849
2850         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
2851
2852         * reload1.c (ira.h): Include the header.
2853         (changed_allocation_pseudos): New bitmap.
2854         (init_reload): Initiate the bitmap.
2855         (compute_use_by_pseudos): Permits spilled registers in FROM.
2856         (temp_pseudo_reg_arr): New variable.
2857         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
2858         IRA.  Call alter_reg with the additional parameter.  Don't clear
2859         spilled_pseudos for IRA.  Restore original insn chain for IRA.
2860         Clear changed_allocation_pseudos at the end of reload.
2861         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
2862         (hard_regno_to_pseudo_regno): New variable.
2863         (count_pseudo): Check spilled pseudos.  Set up
2864         hard_regno_to_pseudo_regno.
2865         (count_spilled_pseudo): Check spilled pseudos. Update
2866         hard_regno_to_pseudo_regno.
2867         (find_reg): Use better_spill_reload_regno_p.  Check
2868         hard_regno_to_pseudo_regno.
2869         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
2870         code for IRA.
2871         (eliminate_regs_1): Use additional parameter for alter_reg.
2872         (finish_spills): Set up pseudo_previous_regs only for spilled
2873         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
2874         more arguments.  Don't clear live_throughout and dead_or_set for
2875         spilled pseudos.  Use additional parameter for alter_reg.  Call
2876         mark_allocation_change.  Set up changed_allocation_pseudos.
2877         Remove sanity check.
2878         (emit_input_reload_insns, delete_output_reload): Use additional
2879         parameter for alter_reg.  Call mark_allocation_change.
2880         (substitute, gen_reload_chain_without_interm_reg_p): New
2881         functions.
2882         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
2883
2884         * testsuite/gcc.dg/20080410-1.c: New file.
2885
2886         * config/s390/s390.h (IRA_COVER_CLASSES,
2887         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
2888
2889         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
2890
2891         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
2892
2893         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2894
2895         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
2896
2897         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2898
2899         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
2900
2901         2008-08-24  Jeff Law  <law@redhat.com>
2902         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
2903         when ignoring unavailable registers.
2904
2905         2008-08-24  Jeff Law  <law@redhat.com>
2906         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
2907         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
2908         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
2909         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
2910
2911         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
2912         * ira-build.c (allocno_range_compare_func): Stabilize sort.
2913
2914         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
2915         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
2916         * reload1.c (find_reg): Process registers in register allocation order.
2917
2918         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2919         * toplev.c (backend_init_target): Move ira_init call from
2920         here...
2921         (lang_dependent_init_target): ...to here.
2922
2923         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2924         * ira.c (setup_class_subset_and_memory_move_costs): Don't
2925         calculate memory move costs for NO_REGS.
2926
2927         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
2928         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
2929         STACK_REGS is defined.
2930
2931         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2932         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
2933
2934         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
2935         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
2936
2937         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
2938         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
2939         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
2940         barrier.
2941
2942 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
2943             Dorit Nuzman  <dorit@il.ibm.com>
2944
2945         * gcc/config/spu/spu.md (vec_extract_evenv4si,
2946         vec_extract_evenv4sf, vec_extract_evenv8hi,
2947         vec_extract_evenv16qi, vec_extract_oddv4si,
2948         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2949         vec_interleave_highv4sf, vec_interleave_lowv4sf,
2950         vec_interleave_highv4si, vec_interleave_lowv4si,
2951         vec_interleave_highv8hi, vec_interleave_lowv8hi,
2952         vec_interleave_highv16qi, vec_interleave_lowv16qi,
2953         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
2954
2955 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
2956
2957         PR target/36756
2958         * config/rs6000/rs6000.c (optimization_options): Don't default to
2959         section anchors without toplevel reorder.
2960
2961 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2962
2963         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
2964         (mfc_end_critical_section): Likewise.
2965
2966 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2967
2968         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
2969         all type qualifiers from element type to vector type.
2970
2971 2008-08-25  David Daney  <ddaney@avtrex.com>
2972
2973         * config/mips/mips.md (immediate_insn): Move up in file, fix
2974         comment typo, reformat.
2975         (fetchop_bit, atomic_hiqi_op memory_barrier,
2976         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
2977         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
2978         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
2979         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
2980         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
2981         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
2982         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
2983         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
2984         sync_old_nand<mode>, sync_new_nand<mode>,
2985         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
2986         test_and_set_12): Moved to sync.md.
2987         (sync.md): Include.
2988         * config/mips/sync.md: New file.
2989
2990 2008-08-25  Richard Henderson  <rth@redhat.com>
2991
2992         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
2993         (regsave): Likewise.
2994         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
2995         (output_cfi_directive): Likewise.
2996         (div_data_align): New.
2997         (output_cfi): Use it.
2998
2999 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3000
3001         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3002         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3003         (TARGET_OCTEON): New macro.
3004         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3005         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3006         (ISA_HAS_POP): New macro.
3007         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3008         Octeon.
3009         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3010         Handle Octeon.
3011         * config/mips/mips.md (cpu): Add octeon.
3012         (type): Add pop attribute value.
3013         (popcount<mode>2): New pattern.
3014         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3015
3016 2008-08-24  Jan Hubicka  <jh@suse.cz>
3017
3018         * doc/invoke.texi (-fipa-cp-clone): New option.
3019         (-fipa-cp): Update docs.
3020         (--param ipcp-unit-growth):New.
3021         * ipa-cp.c: Include fibheap.h, params.h
3022         (ipcp_initialize_node_lattices): When not cloning, all externally
3023         visible functions are bottom.
3024         (ipcp_need_redirect_p): Accept clones.
3025         (ipcp_insert_stage): Use cost driven heuristics.
3026         (max_count, dead_nodes): New static vars.
3027         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3028         ipcp_const_param_count): New functions.
3029         * common.opt (ipa-cp-clone): New command line option.
3030         * params.def (ipcp-unit-growth): New.
3031
3032 2008-08-24  Jan Hubicka  <jh@suse.cz>
3033
3034         * tree-inline.c (tree_function_versioning): Look harder
3035         for referenced vars.
3036
3037 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3038
3039         PR tree-optimization/37185
3040         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3041
3042 2008-08-23  Jan Hubicka  <jh@suse.cz>
3043
3044         * ipa-cp.c (ipcp_analyze_node): New function.
3045         (ipcp_update_cloned_node): Use it.
3046         (ipcp_init_stage): Likewise.
3047         * ipa-inline.c (function_insertion_hook_holder): New static var.
3048         (analyze_function): Break out from ....
3049         (inline_generate_summary): Here; register insertion hook.
3050         (cgraph_decide_inlining): Remove hook.
3051         (add_new_function): New function.
3052
3053 2008-08-23  Jan Hubicka  <jh@suse.cz>
3054
3055         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3056
3057 2008-08-23  Jan Hubicka  <jh@suse.cz>
3058
3059         * ipa-cp.c (constant_val_insert): Remove.
3060         (ipcp_propagate_one_const): Remove.
3061         (ipcp_create_replace_map): Always insert replacements to the map.
3062         (ipcp_insert_stage): Do not try to insert statements by hand.
3063         * tree-inline.c (insert_init_stmt): Break out from ...
3064         (setup_one_parameter): ... here; allow NULL BB pointer.
3065         (tree_function_versioning): Use setup_one_parameter to process
3066         replacement map.
3067
3068 2008-08-23  Jan Hubicka  <jh@suse.cz>
3069
3070         * tree.c (decl_address_ip_invariant_p): New function.
3071         * tree.h (decl_address_ip_invariant_p): Declare.
3072         * gimple.c (strip_invariant_refs): Break out from ...
3073         (is_gimple_invariant_address): ... here
3074         (is_gimple_ip_invariant_address): New function.
3075         (is_gimple_ip_invariant): New function.
3076         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3077         Declare.
3078
3079         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3080         (ipcp_lat_is_insertable): All constants are insertable.
3081         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3082         IPA_CONST_VALUE_REF.
3083         (ipcp_initialize_node_lattices): Propagate all types of operands.
3084         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3085         (ipcp_create_replace_map): Reformat.
3086         (ipcp_need_redirect_p): Simplify.
3087         (ipcp_insert_stage): Check that argument is used before clonning.
3088         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3089         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3090         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3091         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3092         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3093         (jump_func_type): Remove IPA_CONST_VALUE_REF.
3094         * tree-inline.c (tree_function_versioning): Add variables referenced by
3095         replacing trees.
3096
3097 2008-08-23  Jan Hubicka  <jh@suse.cz>
3098
3099         PR target/37094
3100         * i386.c (standard_80387_constant_p): Use optimize_size.
3101
3102 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3103
3104         PR tree-optimization/37161
3105         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3106         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3107         (vect_determine_vectorization_factor): Move the scalar type
3108         retrieval to vect_get_smallest_scalar_type.
3109         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3110         scalar type. Remove redundant computation.
3111         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3112         (vect_get_slp_defs): Take the type of RHS into account if
3113         necessary by calling vect_get_smallest_scalar_type. Call
3114         vect_get_constant_vectors with additional argument.
3115
3116 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3117
3118         PR 35648
3119         * doc/invoke.texi (Wwrite-strings): Clarify description.
3120
3121 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3122
3123         PR tree-optimization/37174
3124         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3125         def stmt is a part of the loop before accessing its stmt_vec_info.
3126
3127 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
3128
3129         PR target/11259
3130         * config/avr/avr.md (UNSPEC_SWAP): New constants.
3131         (*swap): New insn pattern.
3132         (*ashlqi3): Rename from ashlqi3 insn pattern.
3133         (ashlqi3): New expanders.
3134         (*lshrqi3): Rename from lshrqi3 insn pattern.
3135         (lshrqi3): New expanders.
3136         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3137         lshrqi3_const5, lshrqi3_const6): New splitters.
3138         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3139         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3140         peephole2 patterns.
3141
3142 2008-08-22  Richard Guenther  <rguenther@suse.de>
3143
3144         PR tree-optimization/37078
3145         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3146         [+INF, +INF] ranges.
3147
3148 2008-08-22  Richard Guenther  <rguenther@suse.de>
3149
3150         PR tree-optimization/37143
3151         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3152         a conversion statement instead of a copy.
3153
3154 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
3155
3156         PR target/37184
3157         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3158         CCCmode, CCOmode and CCSmode destination modes.
3159
3160         PR target/37191
3161         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3162         from different units in a single alternative.
3163         (*vec_extractv2sf_1): Ditto.
3164         (*vec_extractv2si_0): Ditto.
3165         (*vec_extractv2si_1): Ditto.
3166         * config/i386/sse.md (sse2_storehpd): Ditto.
3167         (sse2_storelpd): Ditto.
3168         (sse2_loadhpd): Ditto.
3169         (sse2_loadlpd): Ditto.
3170
3171         PR target/37197
3172         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3173         (popcountsi2): Ditto.
3174         (clzdi2_abm): Ditto.
3175         (popcountdi2): Ditto.
3176         (clzhi2_abm): Ditto.
3177         (popcounthi2): Ditto.
3178
3179 2008-08-22  Richard Guenther  <rguenther@suse.de>
3180
3181         PR middle-end/36548
3182         PR middle-end/37125
3183         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3184         if the multiplication does not overflow.
3185
3186 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
3187
3188         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3189
3190 2008-08-21  Richard Henderson  <rth@redhat.com>
3191
3192         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3193         spurrious comma from test.
3194         * configure: Rebuild.
3195
3196 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3197
3198         PR 30457
3199         * builtins.c (fold_builtin_next_arg): Add warning about undefined
3200         behaviour.
3201
3202 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
3203
3204         * c-tree.h (grokfield): New argument.
3205         * c-decl.c (grokfield): Handle new location argument.
3206         * c-parser.c (c_parser_struct_declaration): Pass location to
3207         grokfield.
3208
3209 2008-08-21  Richard Guenther  <rguenther@suse.de>
3210
3211         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3212
3213 2008-08-21  Jan Hubicka  <jh@suse.cz>
3214
3215         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3216         (cgraph_add_function_insertion_hook,
3217         cgraph_remove_function_insertion_hook,
3218         cgraph_call_function_insertion_hooks): New functions.
3219         * cgraph.h (cgraph_add_function_insertion_hook,
3220         cgraph_remove_function_insertion_hook,
3221         cgraph_call_function_insertion_hooks): Declare.
3222         * ipa-reference.c (function_insertion_hook_holder): New variable.
3223         (check_operand, look_for_address_of): When checking late, do not care
3224         about module bitmaps.
3225         (add_new_function): New function.
3226         (generate_summary): Register hooks; zero module bitmaps.
3227         (propagate): Unregister hooks.
3228         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3229         (add_new_function): New function.
3230         (generate_summary): Register hook.
3231         (propagate): Remove hook.
3232
3233         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3234
3235         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3236         * ipa-cp.c (ipcp_update_cloned_node): New function.
3237         (build_const_val): Handle functions correctly; bring type logic
3238         into sync with tree-inline.c
3239         (ipcp_init_stage):  Take care of computing stuff needed by
3240         indirect inlining; update clones.
3241         (ipcp_generate_summary): Break out of ipcp_driver.
3242         (ipcp_driver): Do only execution and transformation.
3243         (pass_ipa_cp): Make IPA_PASS.
3244         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3245         offset to address.
3246         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3247         ipcp, some info is already available.
3248         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3249         * tree-inline.c (remap_ssa_name): Unshare expression.
3250
3251 2008-08-21  Richard Guenther  <rguenther@suse.de>
3252
3253         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3254         a PHI ask VN if it is already available.
3255         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3256         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3257
3258 2008-08-21  Richard Guenther  <rguenther@suse.de>
3259
3260         PR middle-end/36817
3261         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3262         makes sure to produce a result of the correct type.
3263
3264 2008-08-21  Jan Hubicka  <jh@suse.cz>
3265         Backport from LTO branch:
3266
3267         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3268                     Jan Hubicka  <jh@suse.cz>
3269
3270         * ipa-pure-const.c
3271         (init_state, finish_state, set_function_state, generate_summary):
3272         New functions.
3273         (scan_stmt): Renamed from scan_function.  Changed to keep state in
3274         local static vars rather than cgraph aux field.
3275         (propagate): Renamed from static_execute. Changed to keep state in
3276         local static vars rather than cgraph aux field.
3277         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3278         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3279
3280         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3281
3282         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3283         * ipa-reference.c (init_function_info, generate_summary,
3284         propagate): New functions.
3285         (analyze_function):  Call init_function_info.
3286         (static_execute): Stripped into generate_summary and propagate.
3287         (pass_ipa_reference): Made into ipa_opt_pass.
3288
3289 2008-08-21  Richard Guenther  <rguenther@suse.de>
3290
3291         PR tree-optimization/37181
3292         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3293         folding result.
3294         (extract_range_from_unary_expr): Likewise.
3295
3296 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3297
3298         * diagnostic.c (pedwarn_at): Rename as pedwarn.
3299         (pedwarn): Delete.
3300         * toplev.h (pedwarn_at): Likewise.
3301         * builtins.c: Update all calls to pedwarn.
3302         * c-lex.c: Likewise.
3303         * toplev.c: Likewise.
3304         * c-tree.h: Likewise.
3305         * c-decl.c: Likewise.
3306         * c-errors.c: Likewise.
3307         * c-typeck.c: Likewise.
3308         * c-common.c: Likewise.
3309         * c-parser.c: Likewise.
3310
3311 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
3312
3313         PR target/31070
3314         * config/sparc/sparc.c (function_arg_slotno): Handle structure
3315         with MODE_VECTOR_INT mode.
3316
3317 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3318
3319         PR middle-end/179
3320         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3321         initialized outside the current module.
3322         (warn_uninitialized_var): Ignore left-hand side when walking the
3323         trees. Ignore address expressions. Examine VUSE operands in gimple
3324         statements with a variable declaration on the right-hand side.
3325
3326 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3327
3328         PR bootstrap/37155
3329         * rtlanal.c (subreg_offset_representable_p): Revert last change.
3330
3331 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3332
3333         PR 35701
3334         * c-common.c (conversion_warning): Do not warn if applying bit-and
3335         operator to unsigned constant that fits in the target type.
3336
3337 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3338
3339         PR c++/35602
3340         * c-common.c (conversion_warning): Do not warn for artificial
3341         expressions.
3342
3343 2008-08-20  Richard Guenther  <rguenther@suse.de>
3344
3345         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3346         (extract_range_from_binary_expr): Fall back to constant propagation.
3347         (extract_range_from_unary_expr): Likewise.
3348
3349 2008-08-20  Richard Guenther  <rguenther@suse.de>
3350
3351         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3352         with TREE_THIS_VOLATILE on shared nodes.
3353         (fold_stmt_r): Likewise.
3354
3355 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
3356
3357         PR c/37171
3358         * c-parser.c (c_parser_attributes): For keywords use canonical
3359         spelling for attr_name.
3360
3361 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3362
3363         * value-prof.c (check_counter): Revert wrong call to error.
3364
3365 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3366
3367         * profile.c: Update calls to inform.
3368         * value-prof.c: Update calls to inform.
3369
3370 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3371
3372         * diagnostic.c (inform): Add an explicit location_t parameter.
3373         * toplev.h (inform): Update declaration.
3374         * builtins.c: Update all calls to inform.
3375         * c-common.c: Likewise.
3376         * c-decl.c: Likewise.
3377         * c-opts.c: Likewise.
3378         * c-pch.c: Likewise.
3379         * c-pragma.c: Likewise.
3380         * c-typeck.c: Likewise.
3381         * coverage.c: Likewise.
3382         * opts.c: Likewise.
3383         * toplev.c: Likewise.
3384         * tree-cfg.c: Likewise.
3385         * tree-ssa.c: Likewise.
3386
3387 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3388
3389         PR target/37169
3390         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
3391         V2DI mode, for SSE4.1, use movq instead of vector set if the
3392         second element is zero and inter-unit moves are OK.
3393
3394 2008-08-20  Richard Guenther  <rguenther@suse.de>
3395
3396         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
3397         properly handle conversion/copy chains after tuplification.
3398
3399 2008-08-20  Richard Guenther  <rguenther@suse.de>
3400
3401         * passes.c (init_optimization_passes): Move the second
3402         forwprop pass before alias computation.  Remove the second
3403         DCE pass.  Remove the first dominator and phi copy/const
3404         prop passes.
3405
3406 2008-08-20  Nick Clifton  <nickc@redhat.com>
3407
3408         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
3409         support of this feature.  Do not assume that a sufficiently new
3410         assembler will support the feature regardless of the target type.
3411         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3412         * configure: Regenerate.
3413
3414 2008-08-20  Richard Guenther  <rguenther@suse.de>
3415
3416         * tree-vrp.c (found_in_subgraph): Remove.
3417         (live): New global static.
3418         (live_on_edge): New function.
3419         (blocks_visited): Remove.
3420         (register_edge_assert_for_2): Use live_on_edge.
3421         (find_conditional_asserts): Remove code dealing with
3422         found_in_subgraph.  Do not walk the CFG.
3423         (find_switch_asserts): Likewise.
3424         (find_assert_locations_1): Renamed from find_assert_locations.
3425         Move finding assert locations for conditional and switch
3426         statements first.  Update live bitmap.  Do not walk the CFG.
3427         (find_assert_locations): New function.
3428         (insert_range_assertions): Remove entry of CFG walk.
3429         Adjust call to find_assert_locations.
3430         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
3431         that only can appear because of fake exit edges but assert we
3432         never try to insert on those.
3433         (fini_pre): Do not remove fake exit edges here...
3434         (execute_pre): ...but here, before committing edge inserts.
3435
3436 2008-08-19  Richard Guenther  <rguenther@suse.de>
3437
3438         * passes.c (init_optimization_passes): Exchange store-ccp
3439         with a ccp pass.
3440
3441 2008-08-19  Rafael Espindola  <espindola@google.com>
3442
3443         * varasm.c (weak_decls): Move earlier in the file.
3444         (assemble_external): Add weak decls to the weak_decls list.
3445         (declare_weak): Don't add decls to the weak_decls list.
3446
3447 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3448
3449         PR target/37157
3450         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
3451         before (sse2_shufpd_<mode>).
3452
3453 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
3454
3455         PR debug/37156
3456         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
3457         * tree.c (block_nonartificial_location): Likewise.
3458
3459 2008-08-19  Richard Guenther  <rguenther@suse.de>
3460
3461         PR tree-optimization/35972
3462         PR tree-optimization/23094
3463         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
3464         parameter.
3465         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3466         handle MISALIGNED_INDIRECT_REF.
3467         (get_ref_from_reference_ops): New helper.
3468         (vn_reference_lookup_pieces): Walk the use-def chain using the
3469         alias-oracle if requested.
3470         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3471         walking the use-def chain.
3472         (compute_avail): But not here.
3473         (create_component_ref_by_pieces_1): Properly handle
3474         MISALIGNED_INDIRECT_REF.
3475         (do_regular_insertion): Handle fully redundant
3476         expressions after PHI-translation also for SSA_NAME values, not
3477         only constants.  Correctly use edoubleprime for that.
3478
3479 2008-08-19  Ira Rosen  <irar@il.ibm.com>
3480
3481         * tree-vectorizer.c (supportable_widening_operation): Support
3482         multi-step conversion, return the number of steps in such conversion
3483         and the required intermediate types.
3484         (supportable_narrowing_operation): Likewise.
3485         * tree-vectorizer.h (vect_pow2): New function.
3486         (supportable_widening_operation): Change argument types.
3487         (supportable_narrowing_operation): Likewise.
3488         (vectorizable_type_promotion): Add an argument.
3489         (vectorizable_type_demotion): Likewise.
3490         * tree-vect-analyze.c (vect_analyze_operations): Call
3491         vectorizable_type_promotion and vectorizable_type_demotion with
3492         additional argument.
3493         (vect_get_and_check_slp_defs): Detect patterns.
3494         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
3495         types.
3496         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
3497         vect_build_slp_tree with correct arguments. Calculate unrolling factor
3498         according to the smallest type in the loop.
3499         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
3500         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
3501         supportable_widening_operation with correct arguments.
3502         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
3503         operands lists according to the number of vector statements in left
3504         or right node, if exists.
3505         (vect_gen_widened_results_half): Remove unused argument.
3506         (vectorizable_conversion): Call supportable_widening_operation,
3507         supportable_narrowing_operation, and vect_gen_widened_results_half
3508         with correct arguments.
3509         (vectorizable_assignment): Change documentation, support multiple
3510         types in SLP.
3511         (vectorizable_operation): Likewise.
3512         (vect_get_loop_based_defs): New function.
3513         (vect_create_vectorized_demotion_stmts): Likewise.
3514         (vectorizable_type_demotion): Support loop-aware SLP and general
3515         multi-step conversion. Call vect_get_loop_based_defs and
3516         vect_create_vectorized_demotion_stmts for transformation.
3517         (vect_create_vectorized_promotion_stmts): New function.
3518         (vectorizable_type_promotion): Support loop-aware SLP and general
3519         multi-step conversion. Call vect_create_vectorized_promotion_stmts
3520         for transformation.
3521         (vectorizable_store): Change documentation, support multiple
3522         types in SLP.
3523         (vectorizable_load): Likewise.
3524         (vect_transform_stmt): Pass SLP_NODE to
3525         vectorizable_type_promotion and vectorizable_type_demotion.
3526         (vect_schedule_slp_instance): Move here the calculation of number
3527         of vectorized statements for each node from...
3528         (vect_schedule_slp): ... here.
3529         (vect_transform_loop): Call vect_schedule_slp without the last
3530         argument.
3531
3532 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
3533
3534         PR bootstrap/37152
3535         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
3536         to == in assert statement.
3537         (vectorizable_reduction): Fix typo.
3538
3539 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3540
3541         PR bootstrap/37153
3542         * value-prof.c (check_counter): Dereference pointer to overall
3543         count when printing it.
3544
3545 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3546
3547         * profile.h: Really add it.
3548
3549 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3550
3551         * mcf.c: Really add it.
3552
3553 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
3554             Vinodha Ramasamy  <vinodha@google.com>
3555
3556         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
3557         count_scale.
3558         * value-prof.c (check_counter): Fix the counter if
3559         flag_profile_correction is true.
3560         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3561         tree_mod_subtract_transform):
3562         Follow check_counter parameter change.
3563         * common.opt (fprofile-correction): New option.
3564         * mcf.c: New file.
3565         * profile.h: Likewise.
3566         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
3567         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
3568         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
3569         functions.
3570         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
3571         flag_profile_correction is set.
3572
3573 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
3574
3575         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
3576
3577 2008-08-18  Tomas Bily  <tbily@suse.cz>
3578
3579         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
3580         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
3581         CONVERT_EXPR_P.
3582         * tree-data-ref.c (split_constant_offset_1): Likewise.
3583         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
3584         * tree-sra.c (sra_walk_expr): Likewise.
3585         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
3586         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3587         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
3588         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
3589         Likewise.
3590         * gimple.c (gimple_assign_unary_nop_p): Likewise.
3591         * tree-vect-transform.c (vectorizable_type_demotion)
3592         (vectorizable_type_promotion): Likewise.
3593         * tree-inline.c (expand_call_inline):
3594         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3595         (forward_propagate_addr_expr_1, forward_propagate_comparison)
3596         (tree_ssa_forward_propagate_single_use_vars): Likewise.
3597         * expr.c (expand_expr_real_1): Likewise.
3598         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
3599         (gimple_assign_unary_useless_conversion_p): Likewise.
3600         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3601         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
3602         * fold-const.c (fold_unary): Likewise.
3603         * tree.h (CONVERT_EXPR_P): Likewise.
3604         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
3605         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3606         * tree-vrp.c:
3607         (register_edge_assert_for_2, extract_range_from_unary_expr)
3608         (register_edge_assert_for_1): Likewise.
3609
3610 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3611
3612         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
3613         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
3614         (enum real_value_const): Delete.
3615         (get_real_const): Delete.
3616         * real.c (get_real_const): Delete.
3617         (dconst_e_ptr): Define.
3618         (dconst_third_ptr): Define.
3619         (dconst_sqrt2_ptr): Define.
3620         * builtins.c: Update all callers.
3621
3622 2008-08-18  Richard Guenther  <rguenther@suse.de>
3623
3624         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
3625         statement iterator after statement removal.
3626
3627 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
3628
3629         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
3630         (detect_processor_freebsd): Likewise.
3631         (host_detect_local_cpu): Call newly added functions for FreeBSD.
3632
3633 2008-08-18  Richard Guenther  <rguenther@suse.de>
3634
3635         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
3636         and loads have the correct types.
3637
3638 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3639
3640         PR cpp/7263
3641         * c-opts.c (cpp_opts): Remove static.
3642         * c-parser.c (cpp_opts): Declare it extern.
3643         (disable_extension_diagnostics): Handle cpp options.
3644         (enable_extension_diagnostics): Likewise.
3645
3646 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3647
3648         * diagnostics.c (permerror_at): Rename as permerror.
3649         (permerror): Delete.
3650         * toplev.h: Likewise.
3651
3652 2008-08-18  Richard Guenther  <rguenther@suse.de>
3653
3654         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
3655         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
3656         Move call_cdce before build_alias.  Move copyrename2,
3657         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
3658         right after final inlining.
3659         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
3660         (pass_build_cfg): But instead via TODO_dump_func.
3661
3662 2008-08-18  Richard Guenther  <rguenther@suse.de>
3663
3664         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
3665         element index.
3666         (scalarize_init): If we failed to generate some initializers
3667         do not generate zeros for not instantiated members.  Instead
3668         rely on the copy out.
3669         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
3670         about missing flow-sensitive alias info only if we have
3671         aliases computed.
3672
3673 2008-08-17  Nick Clifton  <nickc@redhat.com>
3674
3675         * doc/extend.texi (Function Attributes): Fix typo in description
3676         if hot function attribute.
3677
3678 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
3679             Richard Sandiford  <rdsandiford@googlemail.com>
3680
3681         * doc/install.texi (--with-mips-plt): Document.
3682         * doc/invoke.texi (-mplt, -mno-plt): Document.
3683         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
3684         and handle ${with_mips_plt}.
3685         * config/mips/mips.opt (mplt): New option.
3686         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
3687         (TARGET_ABICALLS_PIC2): Likewise.
3688         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
3689         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
3690         (ASM_SPEC): Use !mabi=* instead of !mabi*.
3691         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
3692         to decide whether to output ".option picX" directives.
3693         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
3694         Pass -call_nonpic rather than -KPIC for -mplt.
3695         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
3696         on the command line.  Also remove it when -mabi=64 is used without
3697         -msym32.
3698         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
3699         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
3700         TARGET_ABICALLS_PIC0.
3701         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
3702         TARGET_ABICALLS.
3703         (mips16_build_function_stub): Only output ".option pic" directives
3704         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
3705         (mips16_build_call_stub): Fix comment and remove redundant
3706         ".set at"/"set .noat" directives.
3707         (mips_function_rodata_section): Use the default behaviour for
3708         TARGET_ABSOLUTE_ABICALLS.
3709         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
3710         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
3711         (mips_restore_gp): Do nothing if the current function doesn't use
3712         a global pointer.
3713         (mips_expand_prologue): Only save $gp if the current function uses it.
3714         Use a normal move for TARGET_ABICALLS_PIC0.
3715         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
3716
3717 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
3718
3719         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
3720         of function when handling GLOBAL_POINTER_REGNUM.
3721
3722 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3723
3724         PR ada/20548
3725         * common.opt (-fstack-check): Do not declare the variable here.
3726         (-fstack-check=): New option variant.
3727         * doc/invoke.texi (Code Gen Options): Document it.
3728         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
3729         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
3730         (STACK_CHECK_STATIC_BUILTIN): New macro.
3731         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
3732         * opts.c: Include expr.h.
3733         (common_handle_option) <OPT_fold_stack_check_>: New case.
3734         <OPT_fstack_check>: Likewise.
3735         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
3736         consistently in the test for variable-sized types.  Adjust for
3737         new behaviour of flag_stack_check.
3738         * explow.c: Include except.h.
3739         (allocate_dynamic_stack_space): Do not take into account
3740         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
3741         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
3742         for variable-sized parameters.  Treat all parameters whose size is
3743         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
3744         stack checking is enabled.
3745         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
3746         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
3747         if generic stack checking is enabled.
3748         (expand_function_end): Adjust for new behaviour of flag_stack_check.
3749         * reload1.c (reload): Likewise.
3750         * stmt.c (expand_decl): Assert that all automatic variables have
3751         fixed size at this point and remove dead code.
3752         * flags.h (stack_check_type): New enumeration type.
3753         (flag_stack_check): Declare.
3754         * toplev.c (flag_stack_check): New global variable.
3755         * Makefile.in (opts.o): Add dependency on EXPR_H.
3756         (explow.o): Add dependency on except.h.
3757
3758 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
3759
3760         * config/avr/avr.c (avr_override_options): Reduce value of
3761         PARAM_INLINE_CALL_COST.
3762
3763 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
3764
3765         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
3766         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
3767         lieu of TYPE_MODE (type) throughout.
3768
3769 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
3770
3771         * config/arm/arm.c (add_minipool_backward_ref): Check for
3772         8-byte-aligned entries in second case of forcing insertion after a
3773         particular entry.  Change third case to avoid inserting
3774         non-8-byte-aligned entries before 8-byte-aligned ones.
3775
3776 2008-08-15  Richard Guenther  <rguenther@suse.de>
3777
3778         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
3779         strip components for unknown size accesses.
3780
3781 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
3782
3783         * config/s390/2097.md New file.
3784         * config/s390/s390.md ("z10prop" attribute): Define none,
3785         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
3786         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
3787         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
3788         possible values and apply them to insns as appropriate.
3789         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
3790         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
3791         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
3792         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
3793         values.
3794         ("bfp" mode attribute): Removed.  Every occurence replaced
3795         with <mode>.
3796         * config/s390/s390.c (struct "z10_cost"): Updated entries.
3797         * config/s390/2084.md (insn_reservation "x_itof"): Updated
3798           type attribute.
3799
3800 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3801
3802         PR c/28152
3803         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
3804         for keywords.
3805
3806 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
3807
3808         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
3809         additional argument. Support reduction when duplication is needed due
3810         to data-types of different sizes in the loop.
3811         (get_initial_def_for_induction): Fix printout.
3812         (vect_get_vec_def_for_stmt_copy): Support case where the
3813         vec_stmt_for_operand is a phi node.
3814         (vectorizable_reduction): Support reduction when duplication is needed
3815         due to data-types of different sizes in the loop.
3816         (vectorizable_call): Remove restriction to not vectorize in case we
3817         have data-types of different sizes in the loop.
3818         (vectorizable_conversion): Likewise.
3819         (vectorizable_operation): Likewise.
3820         (vectorizable_type_demotion): Likewise.
3821         (vectorizable_type_promotion): Likewise.
3822         (vectorizable_induction): Add restriction to not vectorize in case
3823         we have data-types of different sizes in the loop.
3824
3825 2008-08-14  Christophe Saout  <christophe@saout.de>
3826             Uros Bizjak  <ubizjak@gmail.com>
3827
3828         PR target/37101
3829         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
3830         (*vec_concatv2di_rex64_sse4_1): Ditto.
3831         (*vec_concatv2di_rex64_sse): Ditto.
3832
3833 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
3834
3835         PR middle-end/37103
3836         * fold-const.c (fold_widened_comparison): Do not allow
3837         sign changes that change the result even if shorter type
3838         is wider than arg1_unw's type.
3839
3840 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
3841
3842         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
3843         Skip if the multilib testing specifies -march that does not
3844         agree with the one specified in the testcase.
3845
3846 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
3847
3848         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
3849         zero extend SImode values being converted to TFmode before passing
3850         to libcalls.
3851
3852 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3853
3854         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3855         __PPU__ when targeting the Cell/B.E. PPU processor.
3856
3857 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
3858
3859         * gimple.h (gimple_call_set_chain): Accept SSA variables.
3860         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
3861         Rematerialize the static chain, if any.
3862         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
3863         static chain.
3864
3865 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
3866
3867         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
3868         (new_loc_descr): Likewise.
3869         (add_loc_descr): Likewise.
3870         (size_of_loc_descr): Likewise.
3871         (size_of_locs): Likewise.
3872         (output_loc_operands): Likewise.
3873         (output_loc_sequence): Likewise.
3874         (new_reg_loc_descr): New.
3875         (build_cfa_loc): Use it.
3876         (build_cfa_aligned_loc): Likewise.
3877         (one_reg_loc_descriptor): Likewise.
3878         (based_loc_descr): Likewise.
3879
3880 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3881
3882         PR 30551
3883         * doc/invoke.texi (Wmain): Update.
3884         * c-decl.c (start_decl): warn_main is only 0 or 1.
3885         (start_function): Likewise. Fix formatting.
3886         (finish_function): Delete redundant warning.
3887         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
3888         * c-opts (c_common_handle_option): -Wall only has effect if
3889         warn_main is uninitialized. OPT_Wmain is automatically
3890         handled. -pedantic also enables Wmain.
3891         (c_common_post_options): Handle all logic for Wmain here.
3892         * c-common.c (warn_main): Delete.
3893         (check_main_parameter_types): Make pedwarns conditional on
3894         OPT_Wmain.
3895         * c-common.h (warn_main): Delete.
3896
3897 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
3898
3899         PR middle-end/36701
3900         * expr.c (emit_group_store): Allocate stack temp with the
3901         largest alignment when copying from register to stack.
3902
3903 2008-08-13  Richard Guenther  <rguenther@suse.de>
3904
3905         * tree.h (maybe_fold_offset_to_address): Declare.
3906         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
3907         (ccp_fold): Handle pointer conversions the same as fold_stmt.
3908         Likewise for POINTER_PLUS_EXPR.
3909         (maybe_fold_offset_to_reference): Enable disabled code.
3910         (maybe_fold_offset_to_address): New function.
3911         (fold_stmt_r): Use it.
3912         (fold_gimple_assign): Likewise.
3913         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
3914         (gimplify_expr): Likewise.
3915
3916 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3917
3918         * toplev.h (pedwarn_at): Fix declaration.
3919
3920 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
3921
3922         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3923         LINK_SPEC): Use %R in -Y P argument.
3924
3925 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3926
3927         PR c/15236
3928         * diagnostic.c (pedwarn_at): New.
3929         * toplev.h (pedwarn_at): Declare.
3930         * c-tree.h (build_enumerator): Update declaration.
3931         * c-decl.c (finish_enum): Update comment.
3932         (build_enumerator): Take a location parameter. Give a pedwarn but do
3933         not perform any conversion.
3934         * c-parser.c (c_parser_enum_specifier): Set correct location for
3935         enumerator.
3936
3937 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3938
3939         PR 35635
3940         * c-common.c (conversion_warning): Use a switch. Ignore boolean
3941         expressions except for conversions to signed:1 bitfields. Handle
3942         COND_EXPR with constant operands.
3943
3944 2008-08-13  Richard Guenther  <rguenther@suse.de>
3945
3946         PR tree-optimization/15255
3947         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
3948         (struct oecount_s): New struct and VEC types.
3949         (cvec): New global.
3950         (oecount_hash): New function.
3951         (oecount_eq): Likewise.
3952         (oecount_cmp): Likewise.
3953         (zero_one_operation): New function.
3954         (build_and_add_sum): Likewise.
3955         (undistribute_ops_list): Perform un-distribution of multiplication
3956         and division on the chain of summands.
3957         (should_break_up_subtract): Also break up subtracts for factors.
3958         (reassociate_bb): Delete dead visited statements.
3959         Call undistribute_ops_list.  Re-sort and optimize if it did something.
3960         * passes.c (init_optimization_passes): Move DSE before
3961         reassociation.
3962         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
3963         PHI nodes.
3964
3965 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
3966
3967         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
3968
3969         * doc/invoke.texi: Revert unintended checkin.
3970
3971 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
3972
3973         PR libgomp/26165
3974         * gcc.c (include_spec_function): Tweak call to find_a_file.
3975
3976 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
3977
3978         PR middle-end/37014
3979         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
3980         and TRUTH_ORIF_EXPR.
3981         * dojump.c (do_jump): Likewise.
3982
3983         PR tree-optimization/37084
3984         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
3985         if id->regimplify, don't assume stmt is a cast assignment.
3986
3987 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
3988
3989         * final.c (final_scan_insn): Use app_enable/app_disable functions.
3990
3991 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3992
3993         PR bootstrap/37097
3994         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
3995         by last change.
3996
3997 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3998
3999         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4000         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4001
4002         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4003         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4004         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4005         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4006         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4007
4008         * doc/tm.texi (Storage Layout): Remove documentation for
4009         TARGET_FLOAT_FORMAT.
4010
4011         * simplify-rtx.c (simplify_binary_operation_1): Replace
4012         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4013
4014 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4015
4016         * real.h (struct real_format): New member has_sign_dependent_rounding.
4017         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4018         spu_single_format, ieee_double_format, mips_double_format,
4019         motorola_double_format, ieee_extended_motorola_format,
4020         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4021         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4022         mips_extended_format, ieee_quad_format, mips_quad_format,
4023         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4024         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4025
4026         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4027         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4028         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4029         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4030         (ROUND_TOWARDS_ZERO): Likewise.
4031
4032         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4033         (FLOAT_MODE_FORMAT): New macro.
4034         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4035         (MODE_COMPOSITE_P): ... this new macro.
4036         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4037         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4038         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4039
4040         * flags.h: Include "real.h".
4041
4042         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4043         REAL_MODE_FORMAT_COMPOSITE_P.
4044         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4045
4046         * doc/tm.texi (Storage Layout): Remove documentation of
4047         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4048         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4049         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4050         they only apply to libgcc2.a.
4051
4052 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4053
4054         * config/spu/float_disf.c: New file.
4055         * config/spu/float_unsdisf.c: New file.
4056         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4057         (LIB2FUNCS_EXCLUDE): Define.
4058
4059 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4060             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4061
4062         * real.h (struct real_format): New member round_towards_zero.
4063         * real.c (round_for_format): Respect fmt->round_towards_zero.
4064         (ieee_single_format, mips_single_format, motorola_single_format,
4065         spu_single_format, ieee_double_format, mips_double_format,
4066         motorola_double_format, ieee_extended_motorola_format,
4067         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4068         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4069         mips_extended_format, ieee_quad_format, mips_quad_format,
4070         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4071         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4072
4073         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4074         real_format to choose rounding mode when calling MPFR functions.
4075         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4076         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4077
4078         * real.h (real_to_decimal_for_mode): Add prototype.
4079         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4080         Respect target rounding mode when generating decimal representation.
4081         (real_to_decimal): New stub for backwards compatibility.
4082         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4083         real_to_decimal_for_mode instead of real_to_decimal.
4084
4085         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4086
4087 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4088             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4089
4090         * real.c (spu_single_format): New variable.
4091         * real.h (spu_single_format): Declare.
4092
4093         * config/spu/spu.c (spu_override_options): Install SFmode format.
4094         (spu_split_immediate): Use integer mode to operate on pieces of
4095         floating-point values in all cases.
4096
4097         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4098         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4099         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4100
4101 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4102
4103         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4104
4105 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4106
4107         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4108
4109 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4110
4111         PR c++/36688
4112         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4113         on the VAR_DECL instead of TYPE_READONLY on its type.
4114
4115 2008-08-12  Ira Rosen  <irar@il.ibm.com>
4116
4117         * tree-vectorizer.c: Depend on langhooks.h.
4118         (supportable_widening_operation): Add two arguments. Support double
4119         type conversions.
4120         (supportable_narrowing_operation): Likewise.
4121         * tree-vectorizer.h (supportable_widening_operation): Add two
4122         arguments.
4123         (supportable_narrowing_operation): Likewise.
4124         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4125         supportable_widening_operation with correct arguments.
4126         * tree-vect-transform.c (vectorizable_conversion): Likewise.
4127         (vectorizable_type_demotion): Support double type conversions.
4128         (vectorizable_type_promotion): Likewise.
4129         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4130
4131 2008-08-11  Michael Matz  <matz@suse.de>
4132
4133         * i386/i386.c (override_options): Move initialisation from
4134         flag_schedule_insns_after_reload to here from ...
4135         (optimization_options): ... here.
4136
4137 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
4138
4139         PR rtl-optimization/36998
4140         * dwarf2out.c (compute_barrier_args_size_1,
4141         compute_barrier_args_size): Temporarily remove assertions.
4142
4143 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4144
4145         PR middle-end/20644
4146         * tree-ssa.c (struct walk_data): Add new flag
4147         warn_possibly_uninitialized.
4148         (warn_uninitialized_var): Use it.
4149         (warn_uninitialized_vars): New.
4150         (execute_early_warn_uninitialized): Call it.
4151         (execute_late_warn_uninitialized): Likewise.
4152
4153 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4154
4155         PR middle-end/36238
4156         * reload1.c (gen_reload): Guard calls to get_secondary_mem
4157         for memory subregs.
4158
4159 2008-08-09  Jan Hubicka  <jh@suse.cz>
4160
4161         PR target/37055
4162         * optabs.c (maybe_emit_unop_insn): Remove produced code if
4163         expansion failed.
4164         (expand_fix): Be prepared for expansion to fail.
4165         (expand_sfix_optab): Remove instructions if expansion failed.
4166
4167 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
4168
4169         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4170         avr31 architecture.
4171         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4172         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4173
4174 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4175
4176         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4177         mips/t-libgcc-mips16 to tmake_file.
4178         * config/mips/mips-protos.h (mips_call_type): New enum.
4179         (mips_pic_base_register, mips_got_load): Declare.
4180         (mips_restore_gp): Take an rtx argument.
4181         (mips_use_pic_fn_addr_reg_p): Declare.
4182         (mips_expand_call): Replace the sibcall_p argument with
4183         a mips_call_type argument.  Add a lazy_p parameter.
4184         (mips_split_call): Declare.
4185         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4186         (MIPS16_PIC_TEMP): Likewise.
4187         (reg_class): Delete M16_NA_REGS.
4188         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4189         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4190         (mips_split_hi_p): Declare.
4191         * config/mips/mips.c (mips_split_hi_p): New array.
4192         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4193         (mips_got_symbol_type_p): New function.
4194         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4195         (mips16_stub_function_p): New function.
4196         (mips16_local_function_p): Likewise.
4197         (mips_use_pic_fn_addr_reg_p): Likewise.
4198         (mips_cannot_force_const_mem): Return false for HIGHs.
4199         Extend CONST_INT and symbolic handling to MIPS16, using
4200         mips_symbol_insns to check that the base symbol type is a
4201         legitimate constant.  Reject GOT-based constants if
4202         TARGET_MIPS16_PCREL_LOADS.
4203         (mips_const_insns): Check targetm.cannot_force_const_mem when
4204         decomposing a symbolic base and a large offset.
4205         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4206         When calling a function that needs $25 from MIPS16 code,
4207         move the target address into $25 separately and add a USE
4208         to the call insn.
4209         (mips16_gp_pseudo_reg): Insert the initializer immediately
4210         before the first real insn.
4211         (mips_pic_base_register, mips_got_load): New functions.
4212         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4213         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
4214         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
4215         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4216         (mips_call_tls_get_addr): Update the call to mips_expand_call,
4217         also passing NULL_RTX rather than const0_rtx as the aux argument.
4218         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4219         instead of TARGET_EXPLICIT_RELOCS.
4220         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4221         (mips_load_call_address): Replace the sibcall_p argument with
4222         a mips_call_type argument.  Use mips_got_load.
4223         (mips16_local_alias): New structure.
4224         (mips16_local_aliases): New variable.
4225         (mips16_local_aliases_hash): New function.
4226         (mips16_local_aliases_eq): Likewise.
4227         (mips16_local_alias): Likewise.
4228         (mips16_stub_function): Likewise.
4229         (mips16_build_function_stub): Create a local alias for the target
4230         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
4231         .cpload directive and an R_MIPS_NONE relocation for the target
4232         function, then load the alias rather than the function itself.
4233         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4234         (mips16_copy_fpr_return_value): Use mips16_stub_function and
4235         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
4236         (mips16_build_call_stub): Replace the FN parameter with an
4237         FN_PTR parameter.  Force the address into a register if it
4238         isn't a call_insn_operand; don't rely on the caller to do this.
4239         If a call to a locally-defined and locally-binding MIPS16
4240         function must be made indirectly, redirect the call to the
4241         function's local alias.  Use mips16_stub_function_p,
4242         mips16_stub_function, mips_expand_call and use_reg.
4243         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4244         Use explicit %hi and %lo accesses where possible.
4245         Use MIPS_CALL to generate the correct code form of a
4246         jal instruction.  Add clobbers of $18 instead of uses.
4247         Update the call to mips_emit_call_insn.
4248         (mips_expand_call): Replace the SIBCALL_P argument with a
4249         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4250         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
4251         allowing it to modify the call address.  Update the calls to
4252         mips_load_call_address and mips_emit_call_insn.
4253         (mips_split_call): New function.
4254         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
4255         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
4256         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4257         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4258         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4259         if TARGET_MIPS16.
4260         (mips_cprestore_slot): New function.
4261         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
4262         and use mips_cprestore_slot.
4263         (mips_output_function_prologue): Handle TARGET_MIPS16 for
4264         LOADGP_OLDABI.
4265         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4266         then use a copygp_mips16 instruction to set up $28.
4267         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4268         (mips16_lay_out_constants): Call split_all_insns_noflow.
4269         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4270         false if TARGET_MIPS16.
4271         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4272         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
4273         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4274         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4275         MIPS16 code.  Allow MIPS16 o32 PIC.
4276         (mips_override_options): Allow MIPS16 o32 PIC.
4277         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4278         after reload if TARGET_USE_GOT.
4279         (UNSPEC_COPYGP): New constant.
4280         (length): Use a default length of 8 for MIPS16 GOT loads.
4281         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4282         (*got_page<mode>): Check mips_split_hi_p.
4283         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4284         (unspec_got<mode>, unspec_call<mode>): New expanders.
4285         (load_got<mode>, load_call<mode>): Remove the length attributes.
4286         Use a got attribute instead of a type attribute.
4287         (copygp_mips16): New insn.
4288         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4289         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4290         (sibcall, sibcall_value, call, call_value): Update the calls
4291         to mips_expand_call.
4292         (call_internal, call_value_internal): Use mips_split_call.
4293         (call_value_multiple_internal): Likewise.
4294         (call_split): Move after call_internal (the insn it is split from).
4295         (call_internal_direct, call_value_internal_direct): Turn into
4296         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
4297         (call_direct_split, call_value_direct_split): New patterns.
4298         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4299         and use M16_REGS instead of M16_NA_REGS.
4300         * config/mips/predicates.md (const_call_insn_operand): Replace
4301         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4302         mips_use_pic_fn_addr_reg_p check.
4303         (move_operand): Reject HIGHs if mips_split_hi_p.
4304         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4305         (__mips16_floatunsisf): Inline __mips16_floatsisf.
4306         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4307         * config/mips/libgcc-mips16.ver: New file.
4308         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4309         $(srcdir)/config/mips/libgcc-mips16.ver.
4310
4311 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4312
4313         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4314         (mips_unspec_address, mips_unspec_offset_high): Likewise.
4315         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4316         (mips16_cfun_returns_in_fpr_p): Likewise.
4317
4318 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4319
4320         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4321         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4322         rather than 4 to PC.
4323
4324 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4325
4326         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4327         (FUNCTION_PROFILER): Save the static chain pointer into $2
4328         beforehand and restore it aftewards.
4329         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
4330         address directly into $25 and call the function through $25;
4331         do not clobber $3.  Pad the DImode version to cover the space
4332         left by the deleted $25 <- $3 move.
4333         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4334         the removal of the $25 <- $3 move.
4335         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4336         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4337
4338 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4339             Daniel Jacobowitz  <dan@codesourcery.com>
4340
4341         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4342         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4343         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4344         * config/mips/mips.c (mips_start_function_definition): New function.
4345         (mips_end_function_definition): Likewise.
4346         (mips_output_function_prologue): Use mips_start_function_definition.
4347         (mips_output_function_epilogue): Use mips_end_function_definition.
4348         (build_mips16_function_stub): Use mips_start_function_definition
4349         and mips_end_function_definition.
4350         (build_mips16_call_stub): Likewise.
4351
4352 2008-08-09  Richard Guenther  <rguenther@suse.de>
4353
4354         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4355         * gimple.h (gimple_call_fn): Adjust comment.
4356         (gimple_call_set_fndecl): New function.
4357         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4358         longer having bare FUNCTION_DECL operand.
4359         (gimple_call_return_type): Likewise.
4360         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4361
4362         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4363         (gimple_mod_pow2): Likewise.
4364         (gimple_mod_subtract): Likewise.
4365         (gimple_ic): Likewise.
4366         (gimple_stringop_fixed_value): Likewise.
4367         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4368         longer having bare FUNCTION_DECL operand.
4369         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
4370         * omp-low.c (optimize_omp_library_calls): Likewise.
4371         * cgraphunit.c (update_call_expr): Likewise.
4372         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4373         (execute_convert_to_rsqrt): Likewise.
4374         * cfgexpand.c (gimple_to_tree): Simplify.
4375         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
4376         bare FUNCTION_DECL operand.
4377         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
4378         (convert_gimple_call): Use gimple_call_fndecl.
4379         * c-common.c (c_warn_unused_result): Likewise.
4380
4381 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4382
4383         PR c/17880
4384         * c-typeck.c (digest_init): Call verify_sequence_points from here.
4385         (c_finish_return): Likewise.
4386         (c_start_case): Likewise.
4387         * c-common.c (warn_for_collisions_1): Use explicit location in
4388         warning.
4389         * c-parser.c (c_parser_condition): New. Call
4390         verify_sequence_points.
4391         (c_parser_paren_condition): Call c_parser_condition.
4392         (c_parser_for_statement): Call c_parser_condition.
4393
4394 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4395
4396         PR 36901
4397         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
4398         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
4399         Moved from diagnostic.h
4400         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
4401         DK_PERMERROR.
4402         (emit_diagnostic): New.
4403         (warning0, pedwarn0): Delete.
4404         (warning, warning_at, pedwarn, permerror): Return bool.
4405         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
4406         Moved to diagnostic.c.
4407         (struct diagnostic_context): Use correct type for
4408         classify_diagnostic.
4409         (diagnostic_report_diagnostic): Update declaration.
4410         (emit_diagnostic): Declare.
4411         * errors.c (warning): Return bool.
4412         * errors.h (warning): Update declaration.
4413         * toplev.h (warning0, pedwarn0): Delete.
4414         (warning, warning_at, pedwarn, permerror): Return bool.
4415         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
4416         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
4417         inform. Update all calls.
4418         (diagnose_mismatched_decls): Check return value of warning/pedwarn
4419         before giving informative note.
4420         (implicit_decl_warning): Likewise.
4421         * c-typeck.c (build_function_call): Likewise.
4422         * tree-sssa.c (warn_uninit): Likewise.
4423         * builtins.c (gimplify_va_arg_expr): Likewise.
4424
4425 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4426
4427         PR 7651
4428         * doc/invoke.texi (-Wextra): Move warning from here...
4429         (-Wuninitialized): ... to here.
4430
4431 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4432
4433         PR 28875
4434         * flags.h (set_Wunused): Delete
4435         * toplev.c (process_options): Handle Wunused flags here.
4436         * opts.c (maybe_warn_unused_parameter): Delete.
4437         (common_handle_option): Replace set_Wunused by warn_unused.
4438         (set_Wextra): Do not handle Wunused-parameter here.
4439         (set_Wunused): Delete.
4440         * c-opts.c (c_common_handle_option): Replace set_Wunused by
4441         warn_unused.
4442         * common.opt (Wunused): Add Var and Init.
4443         (Wunused-function): Likewise.
4444         (Wunused-label): Likewise.
4445         (Wunused-parameter): Likewise.
4446         (Wunused-value): Likewise.
4447         (Wunused-variable): Likewise.
4448
4449 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
4450
4451         * doc/invoke.texi: Add cpu_type power7.
4452         * config.in (HAVE_AS_VSX): New.
4453         * config.gcc: Add cpu_type power7.
4454         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
4455         VSX instructions.
4456         * configure: Regenerate.
4457         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
4458         power5.
4459         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
4460         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
4461         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
4462
4463 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
4464
4465         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4466         type to vectorize.builtin_conversion.
4467         (vectorizable_conversion): Likewise.
4468         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4469         integral type as input.
4470         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4471         FIX_TRUNC_EXPR.
4472         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4473         and ALTIVEC_BUILTIN_VCTSXS.
4474         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4475         formatting.
4476
4477 2008-08-08  Richard Guenther  <rguenther@suse.de>
4478
4479         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
4480         (surely_varying_stmt_p): Calls are varying only if they are
4481         non-builtin and not indirect or have no result.
4482         (ccp_fold): Re-instantiate code before the tuples merge.
4483
4484 2008-08-08  Richard Guenther  <rguenther@suse.de>
4485
4486         PR tree-optimization/37056
4487         * gimple.h (gimple_assign_rhs_class): New helper function.
4488         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
4489         unary operations properly.
4490
4491 2008-08-07  Jan Hubicka  <jh@suse.cz>
4492
4493         * i386.h (ix86_size_cost): Declare.
4494         (ix86_cur_cost): New function macro.
4495         * i386.md (peepholes expanding size and splitters): Predicate by
4496         optimize_insn_for_speed_p.
4497         (peepholes reduce size and splitters): Predicate by
4498         optimize_insn_for_size_p.
4499         * i386.c (ix86_size_cost): Rename from ...
4500         (size_cost): This one.
4501         (override_options): Update.
4502         (decide_alg): Likewise.
4503         (ix86_expand_clear): Use RTL profile.
4504         (ix86_pad_returns): Use RTL profile.
4505
4506 2008-08-07  Jan Hubicka  <jh@suse.cz>
4507
4508         * recog.c (split_all_insns): Set RTL profile
4509         (peephole2_optimize): Likewise.
4510         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4511         * combine.c (combine_instructions): Likewise.
4512
4513 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4514
4515         * c-common.c (c_common_reswords): Also warn about keyword "bool".
4516
4517 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
4518
4519         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
4520         value in a6 after the set_frame_ptr insn.
4521
4522 2008-08-07  Richard Henderson  <rth@redhat.com>
4523
4524         PR debug/37033
4525         * gcc.c (cpp_options): Pass along -g*.
4526
4527 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
4528
4529         * config/arm/arm.c (output_move_neon): Update comment describing
4530         big-endian vector layout.
4531         (arm_assemble_integer): Do not handle big-endian NEON vectors
4532         specially.
4533         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
4534         neon_vget_lane<mode>_sext_internal,
4535         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
4536         element indices for big-endian.
4537
4538 2008-08-07  Richard Henderson  <rth@redhat.com>
4539
4540         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
4541         * configure, config.in: Rebuild.
4542         * debug.h (dwarf2out_do_cfi_asm): Declare.
4543         * c-cppbuiltin.c (c_cpp_builtins): Use it.
4544         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
4545         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
4546         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
4547
4548 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
4549
4550         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4551         movv2si_internal): Combine into mov<mode>_internal.
4552         (movv2si_internal_2): Remove.
4553
4554 2008-08-07  Jan Hubicka  <jh@suse.cz>
4555
4556         PR target/37048
4557         * i386.md (single stringop patterns): Enable unconditionally.
4558
4559 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
4560
4561         PR target/36992
4562         * config/i386/emmintrin.h (_mm_move_epi64): Use
4563         __builtin_ia32_movq128.
4564
4565         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
4566         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
4567
4568         * config/i386/sse.md (sse2_movq128): New.
4569
4570         * doc/extend.texi: Document __builtin_ia32_movq128.
4571
4572 2008-08-07  Richard Guenther  <rguenther@suse.de>
4573
4574         PR middle-end/37042
4575         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
4576         pointers can access anything.
4577
4578 2008-08-06  Jan Hubicka  <jh@suse.cz>
4579
4580         * optabs.c (emit_unop_insn): Break out to ...
4581         (maybe_emit_unop_insn): ... this one.
4582         (expand_sfix_optab): Use maybe variant.
4583         * optabs.h (maybe_emit_unop_insn): Declare.
4584
4585         * i386.md (mov0 patterns): Enable by default.
4586         (FP conversion expanders): Disable expansion of code expanding
4587         sequences when instruction should be optimized for size.
4588         (single strinop patterns): Enable when optimizing for size.
4589         (string expanders): Disable expanding of code expanding sequences
4590         when optimizning instruction for size.
4591         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
4592         per BB basis.
4593         (ix86_fp_comparison_sahf_cost): Likewise.
4594         (ix86_expand_branch): Likewise.
4595         (ix86_expand_ashl_const): Likewise.
4596         (ix86_split_ashl): Likewise.
4597         (ix86_expand_strlen): Likewise.
4598         (ix86_emit_fp_unordered_jump): Likewie.
4599
4600 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4601
4602         * c-common.c: Fix typo.
4603         (c_common_reswords): Activate more C++ keyword warnings.
4604
4605         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
4606
4607 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4608
4609         PR 26785
4610         * diagnostic.c (permerror_at): New.
4611         * toplev.h (permerror_at): Declare.
4612
4613 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
4614             Ira Rosen  <irar@il.ibm.com>
4615
4616         * tree-vect-transform.c (vect_model_simple_cost): Return
4617         immediately if stmt is pure SLP.
4618         (vect_model_store_cost): Ditto.
4619         (vect_model_load_cost): Ditto.
4620         (vectorizable_store): Remove PURE_SLP check before call
4621         to vect_model_store_cost.
4622         (vect_model_store_cost): When checking whether stmt describe
4623         strided access, add a check that it is not slp_node.
4624
4625 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4626
4627         PR 8715
4628         * c-common.c (warn_for_sign_compare): New. Handle separately the
4629         case that 'constant' is zero.
4630         * c-typeck.c (build_binary_op): Move code to c-common.c
4631
4632 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4633
4634         * config/alpha/alpha.c (alpha_preferred_reload_class,
4635         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
4636         alpha_output_mi_thunk_osf): Avoid C++ keywords.
4637         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
4638         * config/arm/arm.md: Likewise.
4639         * config/avr/avr-protos.h (preferred_reload_class,
4640         test_hard_reg_class, avr_simplify_comparison_p,
4641         out_shift_with_cnt, class_max_nregs): Likewise.
4642         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
4643         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
4644         preferred_reload_class, test_hard_reg_class): Likewise.
4645         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
4646         bfin_memory_move_cost, bfin_secondary_reload,
4647         bfin_output_mi_thunk): Likewise.
4648         * config/crx/crx.c (crx_secondary_reload_class,
4649         crx_memory_move_cost): Likewise.
4650         * config/frv/frv-protos.h (frv_secondary_reload_class,
4651         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
4652         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
4653         frv_secondary_reload_class, frv_class_likely_spilled_p,
4654         frv_class_max_nregs): Likewise.
4655         * config/h8300/h8300.c (h8300_classify_operand,
4656         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
4657         Likewise.
4658         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
4659         * config/ia64/ia64.c (ia64_preferred_reload_class,
4660         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
4661         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
4662         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
4663         Likewise.
4664         * config/m68hc11/m68hc11.c (preferred_reload_class,
4665         m68hc11_memory_move_cost): Likewise.
4666         * config/mcore/mcore.c (mcore_secondary_reload_class,
4667         mcore_reload_class): Likewise.
4668         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
4669         mips_class_max_nregs, mips_cannot_change_mode_class,
4670         mips_preferred_reload_class, mips_secondary_reload_class,
4671         mips_output_mi_thunk): Likewise.
4672         * config/mmix/mmix.c (mmix_preferred_reload_class,
4673         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
4674         Likewise.
4675         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4676         Likewise.
4677         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
4678         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
4679         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4680         * config/rs6000/rs6000.c (paired_expand_vector_init,
4681         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
4682         compare_section_name, rs6000_memory_move_cost): Likewise.
4683         * config/s390/s390.c (s390_emit_compare_and_swap,
4684         s390_preferred_reload_class, s390_secondary_reload,
4685         legitimize_pic_address, legitimize_tls_address,
4686         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
4687         s390_class_max_nregs): Likewise.
4688         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4689         * config/s390/s390.md: Likewise.
4690         * config/score/score-protos.h (score_secondary_reload_class,
4691         score_preferred_reload_class): Likewise.
4692         * config/score/score.c (score_preferred_reload_class,
4693         score_secondary_reload_class): Likewise.
4694         * config/score/score3.c (score3_output_mi_thunk,
4695         score3_preferred_reload_class, score3_secondary_reload_class,
4696         score3_hard_regno_mode_ok): Likewise.
4697         * config/score/score3.h (score3_preferred_reload_class,
4698         score3_secondary_reload_class): Likewise.
4699         * config/score/score7.c (score7_output_mi_thunk,
4700         score7_preferred_reload_class, score7_secondary_reload_class,
4701         score7_hard_regno_mode_ok): Likewise.
4702         * config/score/score7.h (score7_preferred_reload_class,
4703         score7_secondary_reload_class): Likewise.
4704         * config/sh/sh.c (prepare_move_operands, output_far_jump,
4705         output_branchy_insn, add_constant, gen_block_redirect,
4706         sh_insn_length_adjustment, sh_cannot_change_mode_class,
4707         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
4708         Likewise.
4709         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4710         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
4711         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
4712         xstormy16_preferred_reload_class): Likewise.
4713         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
4714         xtensa_expand_atomic, override_options,
4715         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
4716         Likewise.
4717         * reorg.c (try_merge_delay_insns): Likewise.
4718         * tree.c (merge_dllimport_decl_attributes): Likewise.
4719
4720         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
4721
4722 2008-08-06  Michael Matz  <matz@suse.de>
4723
4724         * Makefile.in (write_entries_to_file): Quote words.
4725         * gengtype.c: (read_input_line): Skip over leading white-space.
4726
4727 2008-08-06  Marc Gauthier  <marc@tensilica.com>
4728
4729         * config.gcc: Match more processor names for Xtensa.
4730         * configure.ac: Likewise.
4731         * doc/install.texi (Specific): Likewise.
4732         * configure: Regenerate.
4733
4734 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4735
4736         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
4737         * calls.c (avoid_likely_spilled_reg): Likewise.
4738         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4739         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
4740         * config/i386/i386.c (ix86_expand_special_args_builtin,
4741         ix86_secondary_reload): Likewise.
4742         * except.c (struct eh_region, gen_eh_region_catch,
4743         remove_unreachable_regions, duplicate_eh_regions,
4744         assign_filter_values, build_post_landing_pads,
4745         sjlj_find_directly_reachable_regions, remove_eh_handler,
4746         reachable_next_level, foreach_reachable_handler,
4747         can_throw_internal_1, can_throw_external_1,
4748         collect_one_action_chain): Likewise.
4749         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
4750         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
4751         * function.c (update_temp_slot_address, instantiate_new_reg,
4752         instantiate_virtual_regs_in_rtx,
4753         instantiate_virtual_regs_in_insn): Likewise.
4754         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
4755         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
4756         gimplify_cleanup_point_expr): Likewise.
4757         * ipa-cp.c (ipcp_lattice_changed): Likewise.
4758         * passes.c (next_pass_1): Likewise.
4759         * print-tree.c (print_node_brief, print_node): Likewise.
4760         * profile.c (branch_prob): Likewise.
4761         * tree-dump.c (dump_register): Likewise.
4762         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
4763         Likewise.
4764         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
4765         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
4766         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
4767         copy_arguments_for_versioning, copy_static_chain): Likewise.
4768         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
4769         add_new_name_mapping, register_new_name_mapping): Likewise.
4770         * tree-mudflap.c (mf_xform_derefs): Likewise.
4771         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
4772         get_init_expr, combine_chains): Likewise.
4773         * tree-pretty-print.c (dump_generic_node): Likewise.
4774         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
4775         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
4776         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
4777         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
4778
4779 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4780
4781         PR middle-end/37010
4782         * calls.c (expand_call): Use the biggest preferred stack
4783         boundary.
4784
4785 2008-08-06  Michael Matz  <matz@suse.de>
4786
4787         PR target/36613
4788         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
4789         for reused reload, instead of overwriting them.
4790
4791 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4792
4793         PR middle-end/37009
4794         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
4795         for incoming stack boundary.
4796
4797         * function.c (assign_parm_find_entry_rtl): Update
4798         parm_stack_boundary.
4799
4800         * function.h (rtl_data): Add parm_stack_boundary.
4801
4802         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
4803         parm_stack_boundary for incoming stack boundary.
4804
4805 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
4806
4807         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
4808         for unrepresentable subregs or treat them as equal to other regs
4809         or subregs with the same register number.
4810
4811 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
4812
4813         PR middle-end/35432
4814         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
4815         if want_value.
4816
4817 2008-08-06  Jan Hubicka  <jh@suse.cz>
4818
4819         * predict.c (maybe_hot_frequency_p): When profile is absent, all
4820         frequencies might be hot.
4821
4822 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
4823
4824         * reload.c (find_reloads): Force constants into literal pool
4825         also if they are wrapped in a SUBREG.
4826
4827 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4828
4829         PR target/35659
4830         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
4831         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
4832         Don't allow predicated instructions for data speculation.
4833         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
4834         declaration.
4835
4836 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4837
4838         * haifa-sched.c (extend_global): Split to extend_global_data and
4839         extend_region_data.  Update all uses.
4840         (extend_all): Rename to extend_block_data.
4841
4842 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4843
4844         * sched-rgn.c (new_ready): Check if instruction can be
4845         speculatively scheduled before attempting speculation.
4846         (debug_rgn_dependencies): Remove wrongful assert.
4847
4848 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
4849
4850         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
4851
4852 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
4853
4854         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
4855         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
4856         va_size, and type_size.
4857
4858 2008-08-04  Jason Merrill  <jason@redhat.com>
4859
4860         PR c++/37016
4861         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
4862         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
4863
4864 2008-08-05  Richard Henderson  <rth@redhat.com>
4865
4866         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
4867         * configure: Rebuild.
4868
4869 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4870
4871         PR tree-opt/37024
4872         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
4873         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
4874         is a conversion.
4875
4876 2008-08-05  Richard Henderson  <rth@redhat.com>
4877
4878         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
4879         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
4880         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
4881         * common.opt (fdwarf2-cfi-asm): New.
4882         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
4883         * config.in, configure: Rebuild.
4884         * dwarf2asm.c (dw2_asm_output_data_raw): New.
4885         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
4886         (dw2_force_const_mem): Externalize.
4887         * dwarf2asm.h: Update.
4888         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
4889         generate a real label.
4890         (output_cfi_directive): New.
4891         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
4892         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
4893         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
4894         and .cfi_lsda.
4895         (dwarf2out_end_epilogue): Emit .cfi_endproc.
4896         (output_loc_operands_raw, output_loc_sequence_raw): New.
4897         (output_cfa_loc_raw): New.
4898
4899 2008-08-05  Paul Brook  <paul@codesourcery.com>
4900
4901         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
4902         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
4903         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
4904         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
4905         * config/arm/arm.h (TARGET_VFPD32): Define.
4906         (TARGET_VFP3): Use TARGET_VFPD32.
4907         (fputype): Add FPUTYPE_VFP3D16.
4908         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
4909         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
4910         * config/arm/arm-cores.def: Add cortex-r4f.
4911         * config/arm/arm-tune.md: Regenerate.
4912
4913 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4914
4915         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
4916         Reword some comments throughout the file.
4917
4918         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
4919         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
4920         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
4921         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
4922
4923         (MFC_START_ENABLE): Remove PPU-only define.
4924         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
4925         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
4926
4927         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
4928         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
4929         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
4930         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
4931         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
4932         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
4933         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
4934
4935         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
4936         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
4937         (mfc_sdcrt, mfc_sdcrtst): Likewise.
4938         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
4939
4940         (spu_read_machine_status): Fix typo.
4941
4942 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4943
4944         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
4945         SUBREG of multi-word hard register.
4946         * config/spu/spu.c (valid_subreg): Likewise.
4947         (adjust_operand): Handle SUBREGs of multi-word hard registers.
4948
4949 2008-08-04  Richard Guenther  <rguenther@suse.de>
4950
4951         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
4952         the candidate with the stripped base if that base is different
4953         from the original base even for offset zero.
4954
4955 2008-08-04  Richard Guenther  <rguenther@suse.de>
4956
4957         PR middle-end/36691
4958         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
4959         check for no_overflow.
4960
4961 2008-08-04  Richard Guenther  <rguenther@suse.de>
4962
4963         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
4964
4965 2008-08-04  Paul Brook  <paul@codesourcery.com>
4966
4967         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
4968         (arm_order_regs_for_local_alloc): New function.
4969         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
4970         prototype.
4971         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
4972
4973 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4974
4975         PR target/37012
4976         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
4977         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
4978         (ix86_expand_epilogue): Likewise.
4979
4980 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4981
4982         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
4983         in comments.
4984
4985 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
4986
4987         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
4988         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
4989         (*movv2sf_internal_rex64): Ditto.
4990
4991 2008-08-03  Jan Hubicka  <jh@suse.cz>
4992
4993         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
4994         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
4995         * expmed.c (expand_smod_pow2): Likewise.
4996
4997 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
4998
4999         PR target/36992
5000         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5001         alternative 0 of operand 1.
5002         (*vec_concatv2di_rex64_sse): Ditto.
5003         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5004         of operand 1.
5005         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5006         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5007         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5008         (*movv2sf_internal_rex64): Ditto.
5009
5010 2008-08-02  Richard Guenther  <rguenther@suse.de>
5011
5012         PR target/35252
5013         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5014         (ssedoublesizemode): New mode attribute.
5015         (sse_shufps): Call gen_sse_shufps_v4sf.
5016         (sse_shufps_1): Macroize.
5017         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5018         (sse2_shufpd_1): Macroize.
5019         (vec_extract_odd, vec_extract_even): New expanders.
5020         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5021         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5022         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5023         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5024         (ix86_expand_vector_set): Likewise.
5025         (ix86_expand_reduc_v4sf): Likewise.
5026
5027 2008-08-01  Doug Kwan  <dougkwan@google.com>
5028
5029         * matrix-reorg.c: Re-enable all code.
5030         (struct malloc_call_data): Change CALL_STMT to gimple type.
5031         (collect_data_for_malloc_call): Tuplify.
5032         (struct access_site_info): Change STMT to gimple type.
5033         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5034         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5035         (struct free_info): Change STMT to gimple type.
5036         (struct matrix_access_phi_node):  Change PHI to gimple type.
5037         (get_inner_of_cast_expr): Remove.
5038         (may_flatten_matrices_1): Tuplify.
5039         (may_flatten_matrices): Ditto.
5040         (mark_min_matrix_escape_level): Ditto.
5041         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5042         (ssa_accessed_in_call_rhs): New
5043         (ssa_accessed_in_assign_rhs): New
5044         (record_access_alloc_site_info): Tuplify.
5045         (add_allocation_site): Ditto.
5046         (analyze_matrix_allocation_site): Ditto.
5047         (analyze_transpose): Ditto.
5048         (get_index_from_offset): Ditto.
5049         (update_type_size): Ditto.
5050         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5051         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5052         (analyze_accesses_for_phi_node): Tuplify.
5053         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5054         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5055         (analyze_matrix_accesses): Tuplify.
5056         (check_var_data): New call-back type for check_var_notmodified_p.
5057         (check_var_notmodified_p): Tuplify and use call-back struct to
5058         return statement found.
5059         (can_calculate_expr_before_stmt): Factor out statement related code
5060         into ...
5061         (can_calculate_stmt_before_stmt): New.
5062         (check_allocation_function): Tuplify.
5063         (find_sites_in_func): Ditto.
5064         (record_all_accesses_in_func): Ditto.
5065         (transform_access_sites): Ditto.
5066         (transform_allocation_sites): Ditto.
5067         (matrix_reorg): Re-enable.
5068         (gate_matrix_reorg): Re-enable.
5069
5070 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5071
5072         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5073         for labels for which it hasn't been set yet.  If it has been set,
5074         stop walking insns and continue with next worklist item.
5075         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5076         if the only BARRIER is at the very end of a function.
5077
5078 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5079
5080         * cfgexpand.c (expand_stack_alignment): Assert that
5081         stack_realign_drap and drap_rtx must match.
5082
5083         * function.c (instantiate_new_reg): If DRAP is used to realign
5084         stack, replace virtual_incoming_args_rtx with internal arg
5085         pointer.
5086
5087 2008-08-01  Richard Guenther  <rguenther@suse.de>
5088
5089         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5090         loop information only if we initialized it.
5091         (execute_pre): Call fini_pre with in_fre.
5092         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5093         if we do not unroll because we hit max-completely-peeled-insns.
5094         Use our estimation for consistency, do allow shrinking.
5095
5096 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5097
5098         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5099         with MIN_STACK_BOUNDARY.
5100         (ix86_update_stack_boundary): Likewise.
5101         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5102         STACK_BOUNDARY.
5103
5104         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5105         (MIN_STACK_BOUNDARY): This.
5106
5107 2008-08-01  Richard Guenther  <rguenther@suse.de>
5108
5109         PR middle-end/36997
5110         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5111
5112 2008-08-01  Richard Guenther  <rguenther@suse.de>
5113
5114         PR tree-optimization/36988
5115         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5116         do not matter if that doesn't change volatile qualification.
5117
5118 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
5119
5120         * configure.ac: Do not generate libada-mk.  Do not subst
5121         host_cc_for_libada.
5122         * libada-mk.in: Remove.
5123         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5124         * configure: Regenerate.
5125
5126 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
5127
5128         * tree-pass.h: Added comment about not dumping passes with name
5129         starting with star in struct opt_pass.
5130         * passes.c (register_dump_files_1): Don't do dump for a pass with
5131         name starting with star.
5132         * doc/passes.texi (Pass manager): Mention pass names and special
5133         meaning of star prefix to avoid dump.
5134
5135 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
5136
5137         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
5138         to MIPS64r2.
5139         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5140         (ISA_MIPS64R2): New macro.
5141         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5142         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5143         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5144         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5145         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5146         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5147         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5148         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5149         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5150         Move up to keep list alphabetically sorted.
5151         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5152         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5153         processor.
5154         * doc/invoke.texi (MIPS Options): Add -mips64r2.
5155         (-march=@var{arch}): Add mips64r2.
5156
5157 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5158
5159         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5160
5161 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
5162
5163         * expr.c (expand_assignment): Check for complete type.
5164
5165 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5166
5167         PR debug/36977
5168         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5169
5170         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5171         for stack alignment.
5172
5173         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
5174
5175 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5176
5177         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5178         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5179
5180 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5181
5182         PR rtl-optimization/36419
5183         * dwarf2out.c (barrier_args_size): New variable.
5184         (compute_barrier_args_size, compute_barrier_args_size_1): New
5185         functions.
5186         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5187         if not called yet in the current function, use barrier_args_size
5188         array to find the new args_size value.
5189         (dwarf2out_frame_debug): Free and clear barrier_args_size.
5190
5191 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5192
5193         PR debug/36980
5194         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5195         rule 19.
5196
5197 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5198
5199         PR debug/36976
5200         * dwarf2out.c (dwarf2out_args_size_adjust): New.
5201         (dwarf2out_stack_adjust): Use it.
5202         (dwarf2out_frame_debug_expr): Likewise.
5203
5204 2008-07-31  Richard Guenther  <rguenther@suse.de>
5205
5206         PR tree-optimization/36978
5207         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5208         the generated condition.
5209
5210 2008-07-31  Richard Guenther  <rguenther@suse.de>
5211
5212         * passes.c (init_optimization_passes): Always call
5213         pass_early_warn_uninitialized.
5214         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5215         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5216         * doc/passes.texi (Warn for uninitialized variables): Adjust.
5217
5218 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5219
5220         PR c/36970
5221         * builtins.c (maybe_emit_free_warning): New function.
5222         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
5223         maybe_emit_free_warning for BUILT_IN_FREE.
5224
5225         PR debug/36278
5226         * dwarf2out.c (get_context_die): New function.
5227         (force_decl_die, force_type_die): Use it.
5228         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
5229         returns NULL, force generation of DW_TAG_typedef and put that into
5230         DW_AT_import.
5231
5232         PR preprocessor/36649
5233         * c-pch.c (c_common_read_pch): Save and restore
5234         line_table->trace_includes across PCH restore.
5235
5236 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5237
5238         PR ada/36554
5239         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5240
5241 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
5242
5243         PR 36974
5244         * final.c (call_from_call_insn): Handle COND_EXEC.
5245
5246 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5247
5248         * builtins.c (std_gimplify_va_arg_expr): Replace
5249         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5250         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5251
5252 2008-07-30  Joey Ye  <joey.ye@intel.com>
5253             H.J. Lu  <hongjiu.lu@intel.com>
5254
5255         * builtins.c (expand_builtin_setjmp_receiver): Replace
5256         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5257         (expand_builtin_apply_args_1): Likewise.
5258         (expand_builtin_longjmp): Need DRAP for stack alignment.
5259         (expand_builtin_apply): Likewise.
5260
5261         * caller-save.c (setup_save_areas): Call assign_stack_local_1
5262         instead of assign_stack_local to allow alignment reduction.
5263
5264         * calls.c (emit_call_1): Need DRAP for stack alignment if
5265         return pops.
5266         (expand_call): Replace virtual_incoming_args_rtx with
5267         crtl->args.internal_arg_pointer.
5268         * stmt.c (expand_nl_goto_receiver): Likewise.
5269
5270         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5271         alignment and store to stack_alignment_estimated and
5272         max_used_stack_slot_alignment.
5273         (expand_one_var): Likewise.
5274         (expand_stack_alignment): New function.
5275         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5276         and stack_alignment_estimated fields in rtl_data.  Call
5277         expand_stack_alignment at end.
5278
5279         * defaults.h (INCOMING_STACK_BOUNDARY): New.
5280         (MAX_STACK_ALIGNMENT): Likewise.
5281         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5282         (SUPPORTS_STACK_ALIGNMENT): Likewise.
5283
5284         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5285         stack alignment when generating virtual registers.
5286
5287         * function.c (assign_stack_local): Renamed to ...
5288         (assign_stack_local_1): This.  Add a parameter to indicate
5289         if it is OK to reduce alignment.
5290         (assign_stack_local): Use it.
5291         (instantiate_new_reg): Instantiate virtual incoming args rtx
5292         to vDRAP if stack realignment and DRAP is needed.
5293         (assign_parms): Collect parameter/return type alignment and
5294         contribute to stack_alignment_estimated.
5295         (locate_and_pad_parm): Likewise.
5296         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5297         with crtl->args.internal_arg_pointer.
5298
5299         * function.h (rtl_data): Add new field drap_reg,
5300         max_used_stack_slot_alignment, stack_alignment_estimated,
5301         stack_realign_needed, need_drap, stack_realign_processed and
5302         stack_realign_finalized.
5303         (stack_realign_fp): New macro.
5304         (stack_realign_drap): Likewise.
5305
5306         * global.c (compute_regsets): Frame pointer is needed when
5307         stack is realigned.  Can eliminate frame pointer when stack is
5308         realigned and dynamic realigned argument pointer isn't used.
5309
5310         * reload1.c (update_eliminables):  Frame pointer is needed
5311         when stack is realigned.
5312         (init_elim_table): Can eliminate frame pointer when stack is
5313         realigned and dynamic realigned argument pointer isn't used.
5314
5315         * rtl.h (assign_stack_local_1): Declare new funtion.
5316
5317         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5318         (TARGET_GET_DRAP_RTX): Likewise.
5319         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5320         TARGET_GET_DRAP_RTX.
5321
5322         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5323
5324         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5325         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5326
5327 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
5328             H.J. Lu  <hongjiu.lu@intel.com>
5329
5330         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5331         vdrap_reg, stack_realign and drap_reg_saved.
5332         (add_cfi): Don't allow redefining CFA when DRAP is used.
5333         (reg_save): Handle stack alignment.
5334         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5335         alignment.  Don't generate DWARF information for (set fp sp)
5336         when DRAP is used.
5337         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5338         to INVALID_REGNUM.
5339         (int_loc_descriptor): Move prototype forward.  Also define if
5340         DWARF2_UNWIND_INFO is true.
5341         (output_cfa_loc): Handle DW_CFA_expression.
5342         (build_cfa_aligned_loc): New.
5343         (based_loc_descr): Update assert for stack realign.  For local
5344         variables, use sp+offset when stack is aligned without drap and
5345         fp+offset when stack is aligned with drap.  For arguments, use
5346         cfa+offset when drap is used to align stack.
5347
5348 2008-07-30  Joey Ye  <joey.ye@intel.com>
5349             H.J. Lu  <hongjiu.lu@intel.com>
5350
5351         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5352         Break long line.
5353         (ix86_gen_andsp): New.
5354         (ix86_user_incoming_stack_boundary): Likewise.
5355         (ix86_default_incoming_stack_boundary): Likewise.
5356         (ix86_incoming_stack_boundary): Likewise.
5357         (ix86_can_eliminate): Likewise.
5358         (find_drap_reg): Likewise.
5359         (ix86_update_stack_boundary): Likewise.
5360         (ix86_get_drap_rtx): Likewise.
5361         (ix86_finalize_stack_realign_flags): Likewise.
5362         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5363         (TARGET_GET_DRAP_RTX): Likewise.
5364         (override_options): Overide option value for new options.
5365         (ix86_function_ok_for_sibcall): Remove check for
5366         force_align_arg_pointer.
5367         (ix86_handle_cconv_attribute): Likewise.
5368         (ix86_function_regparm): Likewise.
5369         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
5370         (ix86_va_start): Replace virtual_incoming_args_rtx with
5371         crtl->args.internal_arg_pointer.
5372         (ix86_select_alt_pic_regnum): Check DRAP register.
5373         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
5374         (ix86_compute_frame_layout): Compute frame layout wrt stack
5375         realignment.
5376         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
5377         (ix86_expand_prologue): Decide if stack realignment is needed
5378         and generate prologue code accordingly.
5379         (ix86_expand_epilogue): Generate epilogue code wrt stack
5380         realignment is really needed or not.
5381
5382         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
5383         (ABI_STACK_BOUNDARY): Likewise.
5384         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
5385         (STACK_REALIGN_DEFAULT): Likewise.
5386         (INCOMING_STACK_BOUNDARY): Likewise.
5387         (MAX_STACK_ALIGNMENT): Likewise.
5388         (ix86_incoming_stack_boundary): Likewise.
5389         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
5390         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
5391         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
5392         (machine_function): Remove force_align_arg_pointer.
5393
5394         * config/i386/i386.md (BX_REG): New.
5395         (R13_REG): Likewise.
5396
5397         * config/i386/i386.opt (mforce_drap): New.
5398         (mincoming-stack-boundary): Likewise.
5399         (mstackrealign): Add Init(-1).
5400
5401         * config/i386/i386-protos.h (ix86_can_eliminate): New
5402
5403 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5404
5405         * doc/extend.texi: Update force_align_arg_pointer.
5406
5407         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
5408         -mstackrealign.
5409
5410         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
5411         (INCOMING_STACK_BOUNDARY): Likewise.
5412         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
5413         (TARGET_GET_DRAP_RTX): Likewise.
5414
5415 2008-07-30  Andreas Schwab  <schwab@suse.de>
5416
5417         PR rtl-optimization/36929
5418         * dse.c (replace_inc_dec): Use emit_insn_before instead of
5419         add_insn_before and fix argument order.
5420         (replace_inc_dec_mem): Handle NULL rtx.
5421
5422 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
5423
5424         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
5425         function.
5426         (arm_compute_initial_elimination_offset): Use it.
5427         (arm_compute_save_reg_mask): Include static chain save slot when
5428         calculating alignment.
5429         (arm_get_frame_offsets): Ditto.
5430         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
5431         that we can use to decrement the stack when the stack decrement
5432         could be too big for an immediate value in a single insn.
5433         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
5434
5435 2008-07-30  Richard Guenther  <rguenther@suse.de>
5436
5437         PR tree-optimization/36967
5438         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5439         Release defs of statements we remove.
5440
5441 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5442
5443         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
5444         instead of NULL_RTVEC.
5445
5446 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5447
5448         PR target/35866
5449
5450         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
5451         vector modes.
5452
5453 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
5454
5455         * final.c (call_from_call_insn): New.
5456         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
5457
5458 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5459
5460         * configure.ac: Substitute ADA_CFLAGS.
5461         * configure: Regenerate.
5462         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
5463         * Makefile.in: Remove mention of X_* variables.
5464         * config/pa/x-ada-hpux10: Remove.
5465         * config/pa/x-ada: Remove.
5466
5467         * doc/fragments.texi: Update.
5468
5469 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5470
5471         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5472         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5473         __dso_handle explicitly here.
5474
5475 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5476
5477         PR 34389
5478         * c-typeck.c (build_binary_op): Encapsulate code into...
5479         * c-common.c (shorten_binary_op): ...this new function.
5480         (conversion_warning): Use the new function. Handle non-negative
5481         constant in bitwise-and.
5482         * c-common.h (shorten_binary_op): Declare.
5483
5484 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5485
5486         * scan.c (make_sstring_space): Add explicit conversions of
5487         allocator's return value.
5488         * fix-header.c (recognized_function): Likewise.
5489
5490 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5491
5492         * doc/cpp.texi: Update to GFDL 1.2.
5493         * doc/gcc.texi: Do not list GPL as Invariant Section.
5494         * doc/gccint.texi: Likewise.  Update copyright years.
5495         * doc/install.texi: Update copyright years.
5496
5497 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
5498
5499         PR target/36955
5500         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
5501         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
5502
5503 2008-07-29  Jan Hubicka  <jh@suse.cz>
5504
5505         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
5506         (grokdeclarator): Likewise.
5507         * langhooks.c (lhd_warn_unused_global_decl): Use
5508         DECL_DECLARED_INLINE_P.
5509         * print-tree.c (print_node): Remove DECL_INLINE check.
5510
5511 2008-07-29  Richard Guenther  <rguenther@suse.de>
5512
5513         PR tree-optimization/36945
5514         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
5515         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
5516         Record invariant addresses un-decomposed.
5517         (copy_reference_ops_from_call): Record reference call
5518         arguments properly.  Simplify.
5519         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
5520         helper split out from ...
5521         (create_component_ref_by_pieces): ... here.  Simplify.
5522         Prepare for recursive invocation for call arguments.
5523         (create_expression_by_pieces): Adjust call to
5524         create_component_ref_by_pieces.
5525         (compute_avail): Process operand 2 of reference ops.
5526
5527 2008-07-29  Richard Guenther  <rguenther@suse.de>
5528
5529         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
5530
5531 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
5532
5533         * c-format.c (check_format_types): Revert unwanted checkin.
5534
5535 2008-07-29  Jan Hubicka  <jh@suse.cz>
5536
5537         * flags.h (flag_really_no_inline): Remove.
5538         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
5539         * toplev.c (flag_really_no_inline): Remove.
5540         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
5541         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
5542         (cgraph_decide_inlining_incrementally): Likewise.
5543         (compute_inline_parameters): Likewise.
5544         * opts.c (decode_options): Simplify.
5545         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
5546         * common.opt (finline): Initialize to 1.
5547         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
5548
5549 2008-07-29  Jan Hubicka  <jh@suse.cz>
5550
5551         * predict.c (always_optimize_for_size_p): New function.
5552         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5553         optimize_edge_for_size_p, optimize_edge_for_speed_p,
5554         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
5555         functions.
5556         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
5557         * function.c (prepare_function_start): Set default profile.
5558         * function.h (rtl_data): Add maybe_hot_insn_p.
5559         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
5560         (construct_exit_block): Likewise.
5561         (tree_expand_cfg): Likewise.
5562         * basic-block.h
5563         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5564         optimize_edge_for_size_p, optimize_edge_for_speed_p,
5565         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5566         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
5567         Declare.
5568
5569 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5570
5571         PR 34985
5572         * c-decl.c (merge_decls): Merge USED flags.
5573
5574 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5575
5576         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
5577         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
5578         next_stack, lab_false and lab_over trees.
5579
5580 2008-07-28  Richard Guenther  <rguenther@suse.de>
5581
5582         PR tree-optimization/36957
5583         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
5584         (useless_type_conversion_p): Remove.
5585         (types_compatible_p): Remove.
5586         * gimple.h (tree_ssa_useless_type_conversion): Declare.
5587         (useless_type_conversion_p): Declare.
5588         (types_compatible_p): Declare.
5589         (gimple_expr_type): Return the base type only if it is
5590         trivially convertible to the subtype.
5591
5592 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
5593
5594         * configure.ac: Use the m4_do macro to concatenate the warnings into
5595         one string in ACX_PROG_CC_WARNING_OPTS,
5596         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
5597         * configure: Regenerate.
5598
5599 2008-07-28  Richard Guenther  <rguenther@suse.de>
5600
5601         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
5602         (insert_fake_stores): Remove.
5603         (realify_fake_stores): Likewise.
5604         (execute_pre): Remove dead code.
5605         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
5606         (find_func_aliases): Deal with it here instead.
5607         Re-enable gcc_unreachable call.
5608
5609 2008-07-28  Richard Guenther  <rguenther@suse.de>
5610
5611         Merge from gimple-tuples-branch.
5612
5613         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
5614         * gimple.def: New file.
5615         * gsstruct.def: Likewise.
5616         * gimple-iterator.c: Likewise.
5617         * gimple-pretty-print.c: Likewise.
5618         * tree-gimple.c: Removed.  Merged into ...
5619         * gimple.c: ... here.  New file.
5620         * tree-gimple.h: Removed.  Merged into ...
5621         * gimple.h: ... here.  New file.
5622
5623         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
5624         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
5625         --enable-checking=gimple flag.
5626         * config.in: Likewise.
5627         * configure: Regenerated.
5628
5629         * tree-ssa-operands.h: Tuplified.
5630         * tree-vrp.c: Likewise.
5631         * tree-loop-linear.c: Likewise.
5632         * tree-into-ssa.c: Likewise.
5633         * tree-ssa-loop-im.c: Likewise.
5634         * tree-dump.c: Likewise.
5635         * tree-complex.c: Likewise.
5636         * cgraphbuild.c: Likewise.
5637         * tree-ssa-threadupdate.c: Likewise.
5638         * tree-ssa-loop-niter.c: Likewise.
5639         * tree-pretty-print.c: Likewise.
5640         * tracer.c: Likewise.
5641         * gengtype.c: Likewise.
5642         * tree-loop-distribution.c: Likewise.
5643         * tree-ssa-loop-unswitch.c: Likewise.
5644         * cgraph.c: Likewise.
5645         * cgraph.h: Likewise.
5646         * tree-ssa-loop-manip.c: Likewise.
5647         * value-prof.c: Likewise.
5648         * tree-ssa-loop-ch.c: Likewise.
5649         * tree-tailcall.c: Likewise.
5650         * value-prof.h: Likewise.
5651         * tree.c: Likewise.
5652         * tree.h: Likewise.
5653         * tree-pass.h: Likewise.
5654         * ipa-cp.c: Likewise.
5655         * tree-scalar-evolution.c: Likewise.
5656         * tree-scalar-evolution.h: Likewise.
5657         * target.h: Likewise.
5658         * lambda-mat.c: Likewise.
5659         * tree-phinodes.c: Likewise.
5660         * diagnostic.h: Likewise.
5661         * builtins.c: Likewise.
5662         * tree-ssa-alias-warnings.c: Likewise.
5663         * cfghooks.c: Likewise.
5664         * fold-const.c: Likewise.
5665         * cfghooks.h: Likewise.
5666         * omp-low.c: Likewise.
5667         * tree-ssa-dse.c: Likewise.
5668         * ipa-reference.c: Likewise.
5669         * tree-ssa-uncprop.c: Likewise.
5670         * toplev.c: Likewise.
5671         * tree-gimple.c: Likewise.
5672         * tree-gimple.h: Likewise.
5673         * tree-chrec.c: Likewise.
5674         * tree-chrec.h: Likewise.
5675         * tree-ssa-sccvn.c: Likewise.
5676         * tree-ssa-sccvn.h: Likewise.
5677         * cgraphunit.c: Likewise.
5678         * tree-ssa-copyrename.c: Likewise.
5679         * tree-ssa-ccp.c: Likewise.
5680         * tree-ssa-loop-ivopts.c: Likewise.
5681         * tree-nomudflap.c: Likewise.
5682         * tree-call-cdce.c: Likewise.
5683         * ipa-pure-const.c: Likewise.
5684         * c-format.c: Likewise.
5685         * tree-stdarg.c: Likewise.
5686         * tree-ssa-math-opts.c: Likewise.
5687         * tree-ssa-dom.c: Likewise.
5688         * tree-nrv.c: Likewise.
5689         * tree-ssa-propagate.c: Likewise.
5690         * ipa-utils.c: Likewise.
5691         * tree-ssa-propagate.h: Likewise.
5692         * tree-ssa-alias.c: Likewise.
5693         * gimple-low.c: Likewise.
5694         * tree-ssa-sink.c: Likewise.
5695         * ipa-inline.c: Likewise.
5696         * c-semantics.c: Likewise.
5697         * dwarf2out.c: Likewise.
5698         * expr.c: Likewise.
5699         * tree-ssa-loop-ivcanon.c: Likewise.
5700         * predict.c: Likewise.
5701         * tree-ssa-loop.c: Likewise.
5702         * tree-parloops.c: Likewise.
5703         * tree-ssa-address.c: Likewise.
5704         * tree-ssa-ifcombine.c: Likewise.
5705         * matrix-reorg.c: Likewise.
5706         * c-decl.c: Likewise.
5707         * tree-eh.c: Likewise.
5708         * c-pretty-print.c: Likewise.
5709         * lambda-trans.c: Likewise.
5710         * function.c: Likewise.
5711         * langhooks.c: Likewise.
5712         * ebitmap.h: Likewise.
5713         * tree-vectorizer.c: Likewise.
5714         * function.h: Likewise.
5715         * langhooks.h: Likewise.
5716         * tree-vectorizer.h: Likewise.
5717         * ipa-type-escape.c: Likewise.
5718         * ipa-type-escape.h: Likewise.
5719         * domwalk.c: Likewise.
5720         * tree-if-conv.c: Likewise.
5721         * profile.c: Likewise.
5722         * domwalk.h: Likewise.
5723         * tree-data-ref.c: Likewise.
5724         * tree-data-ref.h: Likewise.
5725         * tree-flow-inline.h: Likewise.
5726         * tree-affine.c: Likewise.
5727         * tree-vect-analyze.c: Likewise.
5728         * c-typeck.c: Likewise.
5729         * gimplify.c: Likewise.
5730         * coretypes.h: Likewise.
5731         * tree-ssa-phiopt.c: Likewise.
5732         * calls.c: Likewise.
5733         * tree-ssa-coalesce.c: Likewise.
5734         * tree.def: Likewise.
5735         * tree-dfa.c: Likewise.
5736         * except.c: Likewise.
5737         * except.h: Likewise.
5738         * cfgexpand.c: Likewise.
5739         * tree-cfgcleanup.c: Likewise.
5740         * tree-ssa-pre.c: Likewise.
5741         * tree-ssa-live.c: Likewise.
5742         * tree-sra.c: Likewise.
5743         * tree-ssa-live.h: Likewise.
5744         * tree-predcom.c: Likewise.
5745         * lambda.h: Likewise.
5746         * tree-mudflap.c: Likewise.
5747         * ipa-prop.c: Likewise.
5748         * print-tree.c: Likewise.
5749         * tree-ssa-copy.c: Likewise.
5750         * ipa-prop.h: Likewise.
5751         * tree-ssa-forwprop.c: Likewise.
5752         * ggc-page.c: Likewise.
5753         * c-omp.c: Likewise.
5754         * tree-ssa-dce.c: Likewise.
5755         * tree-vect-patterns.c: Likewise.
5756         * tree-ssa-ter.c: Likewise.
5757         * tree-nested.c: Likewise.
5758         * tree-ssa.c: Likewise.
5759         * lambda-code.c: Likewise.
5760         * tree-ssa-loop-prefetch.c: Likewise.
5761         * tree-inline.c: Likewise.
5762         * tree-inline.h: Likewise.
5763         * tree-iterator.c: Likewise.
5764         * tree-optimize.c: Likewise.
5765         * tree-ssa-phiprop.c: Likewise.
5766         * tree-vect-transform.c: Likewise.
5767         * tree-object-size.c: Likewise.
5768         * tree-outof-ssa.c: Likewise.
5769         * cfgloop.c: Likewise.
5770         * system.h: Likewise.
5771         * tree-profile.c: Likewise.
5772         * cfgloop.h: Likewise.
5773         * c-gimplify.c: Likewise.
5774         * c-common.c: Likewise.
5775         * tree-vect-generic.c: Likewise.
5776         * tree-flow.h: Likewise.
5777         * c-common.h: Likewise.
5778         * basic-block.h: Likewise.
5779         * tree-ssa-structalias.c: Likewise.
5780         * tree-switch-conversion.c: Likewise.
5781         * tree-ssa-structalias.h: Likewise.
5782         * tree-cfg.c: Likewise.
5783         * passes.c: Likewise.
5784         * ipa-struct-reorg.c: Likewise.
5785         * ipa-struct-reorg.h: Likewise.
5786         * tree-ssa-reassoc.c: Likewise.
5787         * cfgrtl.c: Likewise.
5788         * varpool.c: Likewise.
5789         * stmt.c: Likewise.
5790         * tree-ssanames.c: Likewise.
5791         * tree-ssa-threadedge.c: Likewise.
5792         * langhooks-def.h: Likewise.
5793         * tree-ssa-operands.c: Likewise.
5794         * config/alpha/alpha.c: Likewise.
5795         * config/frv/frv.c: Likewise.
5796         * config/s390/s390.c: Likewise.
5797         * config/m32c/m32c.c: Likewise.
5798         * config/m32c/m32c-protos.h: Likewise.
5799         * config/spu/spu.c: Likewise.
5800         * config/sparc/sparc.c: Likewise.
5801         * config/i386/i386.c: Likewise.
5802         * config/sh/sh.c: Likewise.
5803         * config/xtensa/xtensa.c: Likewise.
5804         * config/stormy16/stormy16.c: Likewise.
5805         * config/ia64/ia64.c: Likewise.
5806         * config/rs6000/rs6000.c: Likewise.
5807         * config/pa/pa.c: Likewise.
5808         * config/mips/mips.c: Likewise.
5809
5810 2008-07-28  Simon Baldwin  <simonb@google.com>
5811
5812         * c-pragma.c (handle_pragma_message): New function.
5813         (init_pragma): Register handle_pragma_message.
5814         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
5815         documentation.
5816
5817 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
5818
5819         PR tree-optimization/35252
5820         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
5821         REALPART_EXPR to be considered as same load operation.
5822
5823 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
5824
5825         PR tree-optimization/36830
5826         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
5827         (expressions_equal_p): Return false if only one operand is null.
5828
5829 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
5830
5831         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
5832         version requirements.
5833
5834 2008-07-26  Olivier Hainque  <hainque@adacore.com>
5835
5836         * collect2.c (symkind): New enum.  Symbol kinds we care about.
5837         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
5838         code and head comment accordingly.
5839         (scan_prog_file): Use symkind names instead of bare integers.
5840
5841 2008-07-25  Jan Hubicka  <jh@suse.cz>
5842
5843         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
5844         DECL_INLINE.
5845         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
5846         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
5847         * dojump.c (clear_pending_stack_adjust): Likewise.
5848         * print-tree.c (print_node): Ignore DECL_INLINE.
5849         * tree-inline.c (inlinable_function_p): Likewise.
5850
5851 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
5852
5853         * doc/extend.texi (hot attribute): Document that the hot attribute
5854         turns on -O3 for some ports.
5855         (cold attribute): Document that the cold attribute turns on -Os
5856         for some ports
5857
5858         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
5859         reflect function specific option support.
5860
5861         * target.h (struct target_option_hooks): Add fields to say whether
5862         the cold attribute implies -Os and the hot attribute implies -O3.
5863
5864         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
5865         By default, do not turn on -Os for cold functions.
5866         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
5867         not turn on -O3 for hot functions.
5868
5869         * c-common.c (handle_hot_attribute): Use target hook to determine
5870         if hot functions should enable -O3.
5871         (handle_cold_attribute): Use target hook to determine if cold
5872         functions should enable -Os.
5873
5874         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
5875         (override_options): Move disable scheduling to
5876         optimization_options.
5877         (optimization_options): Disable scheduling here, not
5878         override_options.
5879         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5880         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5881
5882         * config/ia64/ia64.c (ia64_override_options): Move setting
5883         scheduling flags to ia64_optimization_options.
5884         (ia64_optimization_options): Disable scheduling options here, and
5885         not in ia64_override_options.
5886         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5887         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5888
5889 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         PR target/36936
5892         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
5893
5894 2008-07-25  Martin Jambor  <mjambor@suse.cz>
5895
5896         PR tree-optimization/36926
5897         * ipa-prop.c (ipa_analyze_call_uses): Call
5898         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
5899
5900 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
5901
5902         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5903         movv2si_internal): Add mem = reg alternative.
5904
5905 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
5906
5907         PR bootstrap/36918
5908         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
5909         DEFAULT_PCC_STRUCT_RETURN to 127.
5910
5911 2008-07-24  Jan Hubicka  <jh@suse.cz>
5912
5913         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
5914         (build_cgraph_edges): Likewise.
5915         * cgraph.c (cgraph_node): Do not update assembler hash.
5916         (cgraph_remove_node): Drop non-unit-at-a-time code.
5917         * tree-pass.h (pass_O0_always_inline): Remove.
5918         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
5919         * toplev.c (process_options): Flag unit-at-a-time does not imply
5920         no section anchors.
5921         * cgraphunit.c: Update comments.
5922         (decide_is_function_needed): Drop non-unit-at-a-time mode.
5923         (cgraph_assemble_pending_functions): Remove.
5924         (cgraph_reset_node): Drop non-unit-at-a-time code.
5925         (cgraph_finalize_function): Likewise.
5926         (cgraph_analyze_function): Likewise.
5927         (cgraph_finalize_compilation_unit): Likewise.
5928         (cgraph_expand_function): Likewise.
5929         (cgraph_optimize): Likesise.
5930         (save_inline_function_body): Likewise.
5931         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
5932         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
5933         * ipa-inline.c: Update comments.
5934         (enum inlining_mode): remove INLINE_SPEED.
5935         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
5936         (cgraph_mark_inline_edge): Likewise.
5937         (try_inline): Likewise.
5938         (cgraph_decide_inlining_incrementally): Likewise.
5939         (cgraph_gate_inlining): Remove.
5940         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
5941         (cgraph_gate_early_inlining): Likewise.
5942         (gate_inline_passes): Remove.
5943         (pass_inline_parameters, pass_ipa_inline): Remove gates.
5944         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
5945         pass_O0_always_inline): Remove.
5946         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
5947         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
5948         * opts.c (no_unit_at_a_time_default): Remove.
5949         (decode_options): Remove flag_unit_at_a_time reset and warning.
5950         * opts.h (no_unit_at_a_time_default): Remove.
5951         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
5952         early in GNU dialect.
5953         (merge_decls): Update comment; drop unit-at-a-time check.
5954         (finish_decl): Likewise.
5955         (grok_declaration): Remove flag_inline_trees code.
5956         (finish_functions): Return on function returning non-void on all
5957         statics.
5958         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
5959         * cfgexpand.c (expand_one_static_var): Remove.
5960         (expand_one_var): Remove expand_one_static_var call.
5961         (expand_used_vars_for_block): Remove flag_unit_a_time check.
5962         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
5963         and flag_unit_at_a-time compatibility checks.
5964         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
5965         * tree-inline.c (flag_inline_trees): Remove.
5966         (inlinable_function_p): Don't check it.
5967         (expand_call_inline): Remove non-unit-at-a-time code.
5968         * tree-inline.h (flag_inline_trees): Remove.
5969         * tree-optimize.c (execute_early_local_optimizations): Remove
5970         unit-at-a-time checks.
5971         (tree_rest_of_compilation): Likewise.
5972         * combine.c (setup_incoming_promotions): Likewise.
5973         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
5974         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
5975         * passes.c (pass_inline_parameters): Update comments; remove
5976         O0_alwaysinline pass.
5977         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
5978         (execute_one_pass): Likewise.
5979         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
5980         (ix86_function_sseregparm): Likewise.
5981         * arm.c (arm_function_in_section_p): Likewise.
5982         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
5983         * varpool.c: Update comments.
5984         (decide_is_variable_needed): Remove unit-at-a-time checks.
5985         (varpool_finalize_decl): Likewise.
5986
5987 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5988
5989         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
5990         to 2 instead of -1.
5991         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
5992
5993 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
5994
5995         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
5996         imp symbol extension.
5997
5998         2008-07-23  Ian Lance Taylor  <iant@google.com>
5999
6000         * tree-vrp.c (infer_value_range): Ignore asm statements when
6001         looking for memory accesses for -fdelete-null-pointer-checks.
6002
6003 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6004
6005         * config/spu/spu-c.c (__vector_keyword): New variable.
6006         (vector_keyword): Likewise.
6007         (spu_categorize_keyword): New function.
6008         (spu_macro_to_expand): Likewise.
6009         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6010         compiling an ISO C dialect.
6011
6012 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6013
6014         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6015         conventional usage.
6016
6017 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6018
6019         * configure: Regenerate.
6020         * configure.ac: Require texinfo 4.7.
6021         * doc/install.texi: Document texinfo 4.7 requirement.
6022
6023 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6024
6025         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6026         rather than for DECL_SAVED_TREE.
6027         * ipa-prop.c: Include diagnostic.h.
6028         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6029         thoroughly.
6030         (ipa_detect_param_modifications): Function rewritten from scratch.
6031         (ipa_compute_jump_functions): Changed accesses to modification flags.
6032         (ipa_free_node_params_substructures): Update flags destruction.
6033         (ipa_node_duplication_hook): Update flags duplication.
6034         (ipa_print_all_params_modified): Updated flag access.
6035         * ipa-prop.h (struct ipa_param_flags): New structure.
6036         (struct ipa_node_params): New field modification_analysis_done,
6037         modified_flags changed into param_flags.
6038         (ipa_is_ith_param_modified): Changed to use new flags.
6039         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6040
6041         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6042         ipa-cp.c and split into two functions.
6043         (ipa_print_node_jump_functions): New function.
6044         (compute_scalar_jump_functions): New function.
6045         (type_like_member_ptr_p): New function.
6046         (compute_pass_through_member_ptrs): New function.
6047         (fill_member_ptr_cst_jump_function): New function.
6048         (determine_cst_member_ptr): New function.
6049         (compute_cst_member_ptr_arguments): New function.
6050         (ipa_compute_jump_functions): Complete rewrite.
6051         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6052         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6053         (struct ipa_member_ptr_cst): New structure.
6054         (union jump_func_value): New field member_cst.
6055         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6056         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6057         jump function types.
6058         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6059         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6060         instead of ipcp_print_all_jump_functions.
6061         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6062         only for replacable scalars.
6063
6064         * doc/invoke.texi (Optimize options): Add description of
6065         -findirect-inlining.
6066         * common.opt (flag_indirect_inlining): New flag.
6067         * opts.c (decode_options): Set flag_indirect_inlining when
6068         optimize >= 3.
6069
6070         * ipa-inline.c: Include ipa-prop.h.
6071         (inline_indirect_intraprocedural_analysis): New function.
6072         (inline_generate_summary): Allocate parameter and argument info
6073         structures, call inline_indirect_intraprocedural_analysis on each
6074         node when doing indirect inlining and deallocate indirect inlining
6075         data structures in the end.
6076         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6077         (free_all_ipa_structures_after_iinln): New function.
6078         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6079         done.
6080         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6081
6082         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6083         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6084         of computing the frequency separately.
6085         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6086         of computing the frequency separately.
6087         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6088         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6089         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6090         (ipa_get_stmt_member_ptr_load_param): New function.
6091         (ipa_is_ssa_with_stmt_def): New function.
6092         (ipa_note_param_call): New function.
6093         (ipa_analyze_call_uses): New function.
6094         (ipa_analyze_stmt_uses): New function.
6095         (ipa_analyze_params_uses): New function.
6096         (ipa_free_node_params_substructures): Also free the param_calls linked
6097         list.
6098         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6099         (ipa_print_node_param_flags): New function.
6100         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6101         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6102         * ipa-prop.h (struct ipa_param_flags): New field called.
6103         (struct ipa_param_call_note): New structure.
6104         (struct ipa_node_params): New fields param_calls and
6105         uses_analysis_done.
6106         (ipa_is_ith_param_called): New function.
6107         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6108         ipa_analyze_params_uses and dump parameter flags.
6109
6110         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6111         ipa_propagate_indirect_call_infos if performing indirect inlining,
6112         pass a new parameter new_edges to it.
6113         (add_new_edges_to_heap): New fucntion.
6114         (cgraph_decide_inlining_of_small_functions): New vector
6115         new_indirect_edges for newly found indirect edges , call
6116         ipa_propagate_indirect_call_infos after inlining.
6117         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6118         inlining if performing indirect inlining.  Call
6119         free_all_ipa_structures_after_iinln when doing so too.
6120         (inline_generate_summary): Do not call
6121         free_all_ipa_structures_after_iinln here.
6122         * ipa-prop.c (update_jump_functions_after_inlining): New function.
6123         (print_edge_addition_message): New function.
6124         (update_call_notes_after_inlining): New function.
6125         (propagate_info_to_inlined_callees): New function.
6126         (ipa_propagate_indirect_call_infos): New function.
6127         * ipa-prop.h: Include cgraph.h
6128         (struct ipa_param_call_note): Fields reordered, new field processed.
6129         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6130         flag indirect_call.
6131         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6132         rediscovered call statements.
6133         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6134         (dump_cgraph_node): Dump also the indirect_call flag.
6135         (cgraph_clone_edge): Copy also the indirect_call flag.
6136         * tree-inline.c (copy_bb): Do not check for fndecls from call
6137         expressions, check for edge availability when moving clones.
6138         (get_indirect_callee_fndecl): New function.
6139         (expand_call_inline): If callee declaration is not apprent from
6140         the statement, try calling get_indirect_callee_fndecl.  Do not
6141         issue warnings or call sorry when not inlinings an indirect edge.
6142         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6143
6144         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6145         bit more frandly to matching.
6146         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6147         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6148         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6149
6150 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6151
6152         PR 36907
6153         * opth-gen.awk: Suppress function specific features when building
6154         target libraries.
6155         * optc-gen.awk: Ditto.
6156
6157 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6158
6159         PR 35058
6160         * diagnostic.c (pedwarn): Add opt parameter.
6161         (pedwarn0): New.
6162         * c-tree.h (pedwarn_init): Add opt parameter.
6163         (pedwarn_c90): Likewise.
6164         (pedwarn_c99): Likewise.
6165         * c-errors.c (pedwarn_c99): Likewise.
6166         (pedwarn_c90): Likewise.
6167         * toplev.h (pedwarn): Update declaration.
6168         (pedwarn0): Declare.
6169         * c-lex.c: All calls to pedwarn changed.
6170         * builtins.c: All calls to pedwarn changed.
6171         * toplev.c: All calls to pedwarn changed.
6172         * c-decl.c: All calls to pedwarn changed.
6173         * c-typeck.c: All calls to pedwarn changed.
6174         * c-common.c: All calls to pedwarn changed.
6175         * c-parser.c: All calls to pedwarn changed.
6176
6177 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6178             Karthik Kumar  <karthikkumar@gmail.com>
6179
6180         * attribs.c (file scope): Include c-common.h.
6181         (decl_attributes): Add support for #pragma GCC optimize and
6182         #pragma GCC option.
6183
6184         * targhooks.c (default_can_inline_p): New function that is the
6185         default for the TARGET_CAN_INLINE_P target hook.
6186
6187         * targhooks.h (default_can_inline_p): Add declaration.
6188
6189         * tree.c (cl_optimization_node): New static tree for building
6190         OPTIMIZATION_NODE tree.
6191         (cl_target_option_node): New static tree for building
6192         TARGET_OPTION_NODE tree.
6193         (cl_option_hash_table): New hash table for hashing
6194         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6195         (cl_option_hash_hash): New function to provide the hash value for
6196         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6197         (cl_option_hash_eq): New function to provide an equality test for
6198         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6199         (tree_code_size): Add support for OPTIMIZATION_NODE and
6200         TARGET_OPTION_NODE trees.
6201         (tree_code_structure): Add support for OPTIMIZATION_NODE and
6202         TARGET_OPTION_NODE trees.
6203         (build_optimization_node): Build a tree that has all of the
6204         current optimization options.
6205         (build_target_option_node): Build a tree that has the target
6206         options that might be changed on a per function basis.
6207
6208         * tree.h (file scope): Include options.h.
6209         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6210         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6211         (TREE_OPTIMIZATION): Ditto.
6212         (TREE_TARGET_SPECIFIC): Ditto.
6213         (struct tree_function_decl): Add fields for remembering the
6214         current optimization options and target specific options.
6215         (struct tree_optimization_option): New tree variant that remembers
6216         the optimization options.
6217         (struct tree_target_option): New tree variant that remembers the
6218         target specific flags that might change for compiling a particular
6219         function.
6220         (union tree_node): Include tree_optimization_option and
6221         tree_target_option fields.
6222         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6223         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6224         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6225         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6226         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6227         optimization and target options.
6228         (optimization_default_node): New macro to refer to global_trees
6229         field.
6230         (optimization_current_node): Ditto.
6231         (optimization_cold_node): Ditto.
6232         (optimization_hot_node): Ditto.
6233         (target_option_default_node): Ditto.
6234         (target_option_current_node): Ditto.
6235         (current_option_pragma): Ditto.
6236         (current_optimize_pragma): Ditto.
6237
6238         * target.h (struct gcc_target): Add valid_option_attribute_p,
6239         target_option_save, target_option_restore, target_option_print,
6240         target_option_pragma_parse, and can_inline_p hooks.
6241
6242         * toplev.h (parse_optimize_options): Add declaration.
6243         (fast_math_flags_struct_set_p): Ditto.
6244
6245         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6246         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6247         optimize is used.
6248
6249         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6250         tree_can_inline_p hook to see if one function can inline another.
6251         (cgraph_decide_inlining): Ditto.
6252         (cgraph_decide_inlining_incrementally): Ditto.
6253
6254         * opts.c (decode_options): Add support for running multiple times
6255         to allow functions with different target or optimization options
6256         than was specified on the command line.
6257         (fast_math_flags_struct_set_p): New function that is similar to
6258         fast_math_flags_set_p, except it uses the values in the
6259         cl_optimization structure instead of global variables.
6260
6261         * optc-gen.awk: Add support for TargetSave to allow a back end to
6262         declare new fields that need to be saved when using function
6263         specific options.  Include flags.h and target.h in the options.c
6264         source.  Add support for Save to indicate which options can be set
6265         for individual functions.  Generate cl_optimize_save,
6266         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6267         cl_target_option_restore, cl_target_option_print functions to
6268         allow functions to use different optimization or target options.
6269
6270         * opt-functions.awk (var_type_struct): Return the type used for
6271         storing the field in a structure.
6272
6273         * opth-gen.awk: Add support for TargetSave to allow a back end to
6274         declare new fields that need to be saved when using function
6275         specific options.  Add support for Save to indicate which options
6276         can be set for individual functions.  Only generate one extern for
6277         Mask fields.  Generate cl_optimization and cl_target_option
6278         structures to remember optimization and target options.
6279
6280         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6281         collecting new tree nodes.
6282         (TS_TARGET_OPTION): Ditto.
6283
6284         * c-decl.c (merge_decls): Merge function specific target and
6285         optimization options.
6286
6287         * function.c (invoke_set_current_function_hook): If the function
6288         uses different optimization options, change the global variables
6289         to reflect this.
6290
6291         * coretypes.h (struct cl_optimization): Add forward reference.
6292         (struct cl_target_option): Ditto.
6293
6294         * c-pragma.c (option_stack): New static vector to remember the
6295         current #pragma GCC option stack.
6296         (handle_pragma_option): New function to support #pragma GCC option
6297         to change target options.
6298         (optimize_stack): New static vector to remember the current
6299         #pragma GCC optimize stack.
6300         (handle_pragma_optimize): New function to support #pragma GCC
6301         optimize to change optimization options.
6302         (init_pragma): Add support for #pragma GCC optimize and #pragma
6303         GCC option.
6304
6305         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6306         optimization options.
6307         (TARGET_OPTION_NODE): New tree code for remembering certain target
6308         options.
6309
6310         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6311         TARGET_OPTION_NODE trees.
6312
6313         * common.opt (-O): Add Optimization flag.
6314         (-Os): Ditto.
6315         (-fmath-errno): Ditto.
6316         (-falign-functions): Add UInteger flag to make sure flag gets full
6317         int in cl_optimization structure.
6318         (-falign-jumps): Ditto.
6319         (-falign-labels): Ditto.
6320         (-falign-loops): Ditto.
6321         (-fsched-stalled-insns): Ditto.
6322         (-fsched-stalled-insns-dep): Ditto.
6323
6324         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6325         definition.
6326         (TARGET_OPTION_SAVE): Ditto.
6327         (TARGET_OPTION_RESTORE): Ditto.
6328         (TARGET_OPTION_PRINT): Ditto.
6329         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6330         (TARGET_CAN_INLINE_P): Ditto.
6331         (TARGET_INITIALIZER): Add new hooks.
6332
6333         * tree-inline.c (tree_can_inline_p): New function to determine
6334         whether one function can inline another.  Check if the functions
6335         use compatible optimization options, and also call the backend
6336         can_inline_p hook.
6337
6338         * tree-inline.h (tree_can_inline_p): Add declaration.
6339
6340         * c-common.c (c_common_attribute): Add support for option and
6341         optimize attributes.
6342         (handle_option_attribute): Add support for the option attribute to
6343         allow the user to specify different target options for compiling a
6344         specific function.
6345         (handle_optimize_attribute): Add support for the optimize
6346         attribute to allow the user to specify different optimization
6347         options for compiling a specific function.
6348         (handle_hot_attribute): Turn on -O3 optimization for this one
6349         function if it isn't the default optimization level.
6350         (handle_cold_attribute): Turn on -Os optimization for this one
6351         function if it insn't the default optimization.
6352         (const_char_p): New const char * typedef.
6353         (optimize_args): New static vector to remember the optimization
6354         arguments.
6355         (parse_optimize_options): New function to set up the optimization
6356         arguments from either the optimize attribute or #pragma GCC optimize.
6357
6358         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6359         (builtin_define_std): Ditto.
6360
6361         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6362         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6363         (x86_64-*-*): Ditto.
6364
6365         * Makefile.in (TREE_H): Add options.h.
6366         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6367
6368         * doc/extend.texi (option attribute): Document new attribute.
6369         (optimize attribute): Ditto.
6370         (hot attribute): Document hot attribute sets -O3.
6371         (cold attribute): Document cold attribute sets -Os.
6372         (#pragma GCC option): Document new pragma.
6373         (#pragma GCC optimize): Ditto.
6374
6375         * doc/options.texi (TargetSave): Document TargetSave syntax.
6376         (UInteger): Document UInteger must be used for certain flags.
6377         (Save): Document Save option to create target specific options
6378         that can be saved/restored on a function specific context.
6379
6380         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
6381         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6382
6383         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
6384         (TARGET_OPTION_SAVE): Ditto.
6385         (TARGET_OPTION_RESTORE): Ditto.
6386         (TARGET_OPTION_PRINT): Ditto.
6387         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6388         (TARGET_CAN_INLINE_P): Ditto.
6389
6390         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
6391         -mfpmath=sse,387.
6392         (-mfpmath=both): Ditto.
6393
6394 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6395             Karthik Kumar  <karthikkumar@gmail.com>
6396
6397         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
6398         (TARGET_POPCNT): Ditto.
6399         (TARGET_SAHF): Ditto.
6400         (TARGET_AES): Ditto.
6401         (TARGET_PCLMUL): Ditto.
6402         (TARGET_CMPXCHG16B): Ditto.
6403         (TARGET_RECIP): Move switch into target_flags.
6404         (TARGET_FUSED_MADD): Ditto.
6405         (ix86_arch_features): Make an unsigned char type.
6406         (ix86_tune_features): Ditto.
6407         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
6408         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
6409         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
6410
6411         * config/i386/i386.opt (arch): New TargetSave field to define
6412         fields that need to be saved for function specific option support.
6413         (tune): Ditto.
6414         (fpmath): Ditto.
6415         (branch_cost): Ditto.
6416         (ix86_isa_flags_explicit): Ditto.
6417         (tune_defaulted): Ditto.
6418         (arch_specified): Ditto.
6419         (-m128-long-double): Add Save flag to save option for target
6420         specific option support.
6421         (-m80387): Ditto.
6422         (-maccumulate-outgoing-args): Ditto.
6423         (-malign-double): Ditto.
6424         (-malign-stringops): Ditto.
6425         (-mfancy-math-387): Ditto.
6426         (-mhard-float): Ditto.
6427         (-mieee-fp): Ditto.
6428         (-minline-all-stringops): Ditto.
6429         (-minline-stringops-dynamically): Ditto.
6430         (-mms-bitfields): Ditto.
6431         (-mno-align-stringops): Ditto.
6432         (-mno-fancy-math-387): Ditto.
6433         (-mno-push-args): Ditto.
6434         (-mno-red-zone): Ditto.
6435         (-mpush-args): Ditto.
6436         (-mred-zone): Ditto.
6437         (-mrtd): Ditto.
6438         (-msseregparm): Ditto.
6439         (-mstack-arg-probe): Ditto.
6440         (-m32): Ditto.
6441         (-m64): Ditto.
6442         (-mmmx): Ditto.
6443         (-m3dnow): Ditto.
6444         (-m3dnowa): Ditto.
6445         (-msse): Ditto.
6446         (-msse2): Ditto.
6447         (-msse3): Ditto.
6448         (-msse4.1): Ditto.
6449         (-msse4.2): Ditto.
6450         (-msse4): Ditto.
6451         (-mno-sse4): Ditto.
6452         (-msse4a): Ditto.
6453         (-msse5): Ditto.
6454         (-mrecip): Move flag into target_flags.
6455         (-mcld): Ditto.
6456         (-mno-fused-madd): Ditto.
6457         (-mfused-madd): Ditto.
6458         (-mabm): Move flag into ix86_isa_flags.
6459         (-mcx16): Ditto.
6460         (-mpopcnt): Ditto.
6461         (-msahf): Ditto.
6462         (-maes): Ditto.
6463         (-mpclmul): Ditto.
6464
6465         * config/i386/i386-c.c: New file for #pragma support.
6466         (ix86_target_macros_internal): New function to #define or #undef
6467         target macros based when the user uses the #pragma GCC option to
6468         change target options.
6469         (ix86_pragma_option_parse): New function to add #pragma GCC option
6470         support.
6471         (ix86_target_macros): Move defining the target macros here from
6472         TARGET_CPU_CPP_BUILTINS in i386.h.
6473         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
6474         defined, initialize any subtarget #pragmas.
6475
6476         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6477         REGISTER_TARGET_PRAGMAS.
6478
6479         * config/i386/t-i386: New file for x86 dependencies.
6480         (i386.o): Make dependencies mirror the include files used.
6481         (i386-c.o): New file, add dependencies.
6482
6483         * config/i386/i386-protos.h (override_options): Add bool argument.
6484         (ix86_valid_option_attribute_tree): Add declaration.
6485         (ix86_target_macros): Ditto.
6486         (ix86_register_macros): Ditto.
6487
6488         * config/i386/i386.c (ix86_tune_features): Move initialization of
6489         the target masks to initial_ix86_tune_features to allow functions
6490         to have different target options.  Make type unsigned char,
6491         instead of unsigned int.
6492         (initial_ix86_tune_features): New static vector to hold processor
6493         masks for the tune variables.
6494         (ix86_arch_features): Move initialization of the target masks to
6495         initial_ix86_arch_features to allow functions to have different
6496         target options.  Make type unsigned char, instead of unsigned int.
6497         (initial_ix86_arch_features): New static vector to hold processor
6498         masks for the arch variables.
6499         (enum ix86_function_specific_strings): New enum to describe the
6500         string options used for attribute((option(...))).
6501         (ix86_target_string): New function to return a string that
6502         describes the target options.
6503         (ix86_debug_options): New function to print the current options in
6504         the debugger.
6505         (ix86_function_specific_save): New function hook to save the
6506         function specific global variables in the cl_target_option structure.
6507         (ix86_function_specific_restore): New function hook to restore the
6508         function specific variables from the cl_target_option structure to
6509         the global variables.
6510         (ix86_function_specific_print): New function hook to print the
6511         target specific options in the cl_target_option structure.
6512         (ix86_valid_option_attribute_p): New function hook to validate
6513         attribute((option(...))) arguments.
6514         (ix86_valid_option_attribute_tree): New function that is common
6515         code between attribute((option(...))) and #pragma GCC option
6516         support that parses the options and returns a tree holding the options.
6517         (ix86_valid_option_attribute_inner_p): New helper function for
6518         ix86_valid_option_attribute_tree.
6519         (ix86_can_inline_p): New function hook to decide if one function
6520         can inline another on a target specific basis.
6521         (ix86_set_current_function); New function hook to switch target
6522         options if the user used attribute((option(...))) or #pragma GCC
6523         option.
6524         (ix86_tune_defaulted): Move to static file scope from
6525         override_options.
6526         (ix86_arch_specified): Ditto.
6527         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
6528         ix86_isa_flags.
6529         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
6530         (OPTION_MASK_ISA_ABM_SET): Ditto.
6531         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
6532         (OPTION_MASK_ISA_CX16_SET): Ditto.
6533         (OPTION_MASK_ISA_SAHF_SET): Ditto.
6534         (OPTION_MASK_ISA_AES_UNSET): Ditto.
6535         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
6536         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
6537         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
6538         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
6539         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
6540         (struct ptt): Move to static file scope from override_options.
6541         (processor_target_table): Ditto.
6542         (cpu_names): Ditto.
6543         (ix86_handle_option): Add support for options that are now isa options.
6544         (override_options): Add support for declaring functions that
6545         support different target options than were specified on the
6546         command line.  Move struct ptt, processor_target_table, cpu_names,
6547         ix86_tune_defaulted, ix86_arch_specified to static file scope.
6548         Add bool argument.  Fix up error messages so the appropriate error
6549         is given for either command line or attribute.
6550         (ix86_previous_fndecl): New static to remember previous function
6551         declaration to see if we need to change target options.
6552         (ix86_builtins_isa): New array to record the ISA of each builtin
6553         function.
6554         (def_builtin): Always create the builtin function, even if the
6555         current ISA doesn't support it.
6556         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
6557         tests for those builtins.
6558         (ix86_init_builtins): Remove TARGET_MMX test for calling
6559         ix86_init_mmx_sse_builtins.
6560         (ix86_expand_builtin): If the current ISA doesn't support a given
6561         builtin, signal an error.
6562         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
6563         (TARGET_SET_CURRENT_FUNCTION): Ditto.
6564         (TARGET_OPTION_SAVE): Ditto.
6565         (TARGET_OPTION_RESTORE): Ditto.
6566         (TARGET_OPTION_PRINT): Ditto.
6567         (TARGET_CAN_INLINE_P): Ditto.
6568
6569 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
6570
6571         * c-typeck.c (build_external_ref): Don't call assemble_external.
6572         * final.c (output_operand): Call assemble_external.
6573
6574 2008-07-21  DJ Delorie  <dj@redhat.com>
6575
6576         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
6577         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6578
6579 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6580
6581         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
6582         original insn and splitter contents into ...
6583         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
6584         flag_unsafe_math_optimizations.  Add dummy scratch register.
6585         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
6586         !flag_unsafe_math_optimizations.  Returns number with next
6587         highest magnitude if this is still less or equal to the true
6588         quotient in magnitude.
6589
6590 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
6591
6592         * Makefile.in: Replace toplev.h with TOPLEV_H.
6593         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
6594         * c-lex.c (fe_file_change): Don't set in_system_header.
6595         * c-parser.c (c_token): Remove in_system_header.
6596         (c_lex_one_token): Don't set in_system_header.
6597         (c_parser_set_source_position_from_token): Don't set in_system_header.
6598         * diagnostic.c (diagnostic_report_diagnostic): Use location from
6599         diagnostic_info.
6600         (warning_at): New.
6601         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
6602         * flags.h (in_system_header): Remove.
6603         * function.c (saved_in_system_header): Remove.
6604         (push_cfun): Don't set in_system_header.
6605         (pop_cfun): Don't set in_system_header.
6606         (push_struct_function): Don't set in_system_header.
6607         * input.h (expanded_location): Add sysp.
6608         (in_system_header_at): New.
6609         (in_system_header): New.
6610         * toplev.c (in_system_header): Remove.
6611         * toplev.h: Include input.h
6612         (warning_at): New.
6613         * tree-cfg.c (execute_warn_function_return): Call warning_at.
6614         * tree-ssa.c (warn_uninit): Call warning_at.
6615         (warn_uninitialized_var): Update calls to warn_uninit.
6616         (warn_uninitialized_phi): Update calls to warn_uninit.
6617         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
6618         (expand_location): Initialize xloc.sysp.
6619         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
6620         (tree_decl_with_vis): Remove in_system_header_flag.
6621
6622 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6623
6624         PR target/36822
6625         * recog.c (asm_operand_ok): Change the order of the extra
6626         memory constraint checks.
6627
6628 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6629
6630         PR tree-opt/36879
6631         * tree-switch-conversion.c (build_one_array): Call
6632         varpool_mark_needed_node and varpool_finalize_decl
6633         instead of assemble_variable.
6634
6635 2008-07-19  Jan Hubicka  <jh@suse.cz>
6636
6637         * cgraph.c (cgraph_add_new_function): Do early local passes.
6638         * tree-nrv.c (gate_pass_return_slot): New gate.
6639         (pass_nrv): Add the gate.
6640         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
6641         functions.
6642         (coalesce_ssa_name): Coalesce SSA names.
6643         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
6644         not optimizing so unused user vars remains visible.
6645         * common.opt (flag_tree_ter): Always enable by default.
6646         * tree-ssa-ter.c: Include flags.h
6647         (is_replaceable_p): Check that locations match; when aliasing is missing
6648         be conservative about loads.
6649         * tree-optimize.c (gate_init_datastructures): Remove.
6650         (pass_init_datastructures): New.
6651         * passes.c: Reorder passes so we always go into SSA.
6652
6653 2008-07-19  Jan Hubicka  <jh@suse.cz>
6654
6655         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
6656         * doc/invoke.texi (--combine): Likewise.
6657         (-finline-functions-called-once): Update levels when enabled.
6658         (-funit-at-a-time): Document new behaviour.
6659         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
6660         -fno-section-anchors when disabled explicitly.
6661         (inline params): They are not ignored now.
6662         (precompiled headers): Remove unit-at-a-time as being incompatible.
6663         * opts.c (decode_options): Handle unit-at-a-time as alias;
6664         imply -fno-section-anchors when toplevel reorder is disabled
6665         explicitly.
6666         * common.opt (ftoplevel-reorder): Set default value to 2.
6667         (funit-at-a-time): Set default value to 1.
6668         * config/rs6000/rs6000.c (optimization_options): Set section anchors
6669         to 2.
6670
6671 2008-07-19  Jan Hubicka  <jh@suse.cz>
6672
6673         * builtins.c (expand_builtin_int_roundingfn,
6674         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
6675         it is not useful.
6676
6677 2008-07-19  Richard Guenther  <rguenther@suse.de>
6678
6679         PR bootstrap/36864
6680         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
6681         * tree-ssa-sccvn.c (get_constant_value_id): New function.
6682         * tree-ssa-pre.c (get_expr_value_id): For newly created
6683         constant value-ids make sure to add the expression to its
6684         expression-set.
6685
6686 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
6687
6688         PR middle-end/36877
6689         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
6690         return value of the builtin is ignored.
6691
6692 2008-07-19  Olivier Hainque  <hainque@adacore.com>
6693
6694         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
6695         bits, a C conformant malloc implementation has to provide.
6696         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
6697
6698 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
6699
6700         PR target/36780
6701         PR target/36827
6702         * reload.c (find_reloads_subreg_address): Only reload address if
6703         reloaded == 0, not for reloaded != 1.
6704
6705         Revert:
6706         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
6707         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6708         (m32c_legitimate_address_p): Handle "++rii" addresses created by
6709         m32c_legitimize_reload_address.
6710
6711         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6712         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6713         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6714
6715 2008-07-19  Olivier Hainque  <hainque@adacore.com>
6716
6717         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
6718         argument, saying whether nested array are to be collapsed
6719         into a single array type DIE with multiple subscripts.
6720         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
6721         issues, centralize the nested array types collapsing control and
6722         disable the transformation for Ada.
6723
6724 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
6725
6726         PR target/36786
6727         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
6728         x86_64_shift_adj.
6729         (x86_64_shift_adj_2): New expander.
6730         (x86_64_shift_adj_3): Ditto.
6731         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
6732         to split TImode operands.
6733         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
6734         (ix86_split_lshr): Ditto.
6735
6736 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
6737
6738         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
6739         and __CHAR32_TYPE__.
6740         * c-typeck.c (digest_init): Support char16_t and char32_t.
6741         (set_nonincremental_init_from_string): Idem.
6742
6743 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         PR middle-end/36859
6746         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
6747         PREFERRED_STACK_BOUNDARY.
6748         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6749
6750 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6751
6752         PR middle-end/36858
6753         * function.c (locate_and_pad_parm): Cap boundary earlier.
6754
6755 2008-07-17  Julian Brown  <julian@codesourcery.com>
6756
6757         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
6758         no-op for targets which don't use DLLs.
6759
6760 2008-07-17  Martin Jambor  <mjambor@suse.cz>
6761
6762         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
6763         that nodes are relevant by examining the node->analyzed flag.
6764         (ipcp_init_stage): Check which nodes are relevant, assert that the
6765         relevant ones are also required.
6766         (ipcp_propagate_stage): Check on the side arrays are properly
6767         allocated.
6768         (ipcp_print_all_jump_functions): Make sure not to touch any node
6769         that is not analyzed or an edge that does not have a corresponding
6770         entry in the on-the-side vectors.
6771         (ipcp_function_scale_print): Likewise.
6772         (ipcp_update_callgraph): Check that the node is relevant.
6773         (ipcp_insert_stage): Check that the node is relevant.  Check there is
6774         an info for every node and edge.
6775         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
6776         (ipa_print_all_tree_maps): Likewise and a new variable info.
6777         (ipa_print_all_params_modified): Likewise.
6778         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
6779
6780 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
6781
6782         PR target/25343
6783         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
6784
6785 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
6786
6787         PR rtl-optimization/36753
6788         * fwprop.c (use_killed_between): Don't shortcut
6789         single-definition global registers.
6790
6791 2008-07-16  Jan Hubicka  <jh@suse.cz>
6792
6793         * cgraph.h (varpool_empty_needed_queue): Declare.
6794         * cgraphunit.c (output_in_order): Mark all variables as needed;
6795         empty the queue.
6796         * varpool.c (varpool_assemble_node): Update debug queue.
6797         (varpool_assemble_pending_decls): Don't do it here.
6798         (varpool_empty_needed_queue):  New function.
6799
6800 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6801
6802         * recog.c (peephole2_optimize): Fix formatting.
6803
6804 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6805
6806         * c-pch.c (get_ident): Avoid C++ keywords.
6807         * combine-stack-adj.c (single_set_for_csa): Likewise.
6808         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
6809         output_asm_insn): Likewise.
6810         * reload.c (push_secondary_reload, find_reusable_reload,
6811         push_reload, combine_reloads, find_reloads,
6812         debug_reload_to_stream): Likewise.
6813         * reload.h (struct reload): Likewise.
6814         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
6815         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
6816         emit_output_reload_insns): Likewise.
6817         * targhooks.c (default_secondary_reload): Likewise.
6818         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
6819
6820 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6821
6822         * recog.c (validate_change_1, validate_change,
6823         validate_unshare_change, validate_replace_rtx_1, struct
6824         funny_match, constrain_operands, peephole2_optimize): Avoid C++
6825         keywords.
6826         * reload.c (push_secondary_reload, secondary_reload_class,
6827         scratch_reload_class, find_valid_class, find_reusable_reload,
6828         push_reload, find_dummy_reload, find_reloads_address_1,
6829         find_reloads_address_part, find_equiv_reg): Likewise.
6830         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
6831         choose_reload_regs): Likewise.
6832         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
6833         Likewise.
6834         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
6835         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
6836         * sched-rgn.c (concat_INSN_LIST): Likewise.
6837         * stor-layout.c (mode_for_size, mode_for_size_tree,
6838         smallest_mode_for_size): Likewise.
6839
6840 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6841
6842         * cfg.c (dump_reg_info): Avoid C++ keywords.
6843         * dwarf2asm.c (dw2_force_const_mem,
6844         dw2_asm_output_encoded_addr_rtx): Likewise.
6845         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
6846         * expmed.c (expand_shift): Likewise.
6847         * global.c (find_reg): Likewise.
6848         * graph.c (draw_edge): Likewise.
6849         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
6850         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
6851         widen_clz, widen_bswap, expand_parity, expand_unop,
6852         emit_cmp_and_jump_insn_1): Likewise.
6853         * postreload.c (reload_cse_simplify_operands): Likewise.
6854         * ra.h (add_neighbor): Likewise.
6855         * reg-stack.c (remove_regno_note, change_stack): Likewise.
6856         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
6857         record_reg_classes, copy_cost, record_address_regs,
6858         invalid_mode_change_p): Likewise.
6859         * regrename.c (regrename_optimize, scan_rtx_reg,
6860         dump_def_use_chain, find_oldest_value_reg,
6861         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
6862
6863 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
6864
6865         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
6866         MASK_POWERPC64 for power4 in previous commit.
6867
6868 2008-07-16  Olivier Hainque  <hainque@adacore.com>
6869
6870         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
6871         instead of bare conversion to cast const-ness away.
6872
6873 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
6874
6875         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
6876         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
6877         * config/xtensa/xtensa.c (xtensa_function_value): New function.
6878         (TARGET_FUNCTION_VALUE): Define.
6879
6880 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
6881
6882         * config/rs6000/rs6000.c (processor_target_table): Add
6883         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
6884
6885 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
6886
6887         PR target/36827
6888         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6889         (m32c_legitimate_address_p): Handle "++rii" addresses created by
6890         m32c_legitimize_reload_address.
6891
6892 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
6893
6894         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
6895         DECL_IN_SYSTEM_HEADER in sync.
6896
6897 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
6898
6899         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
6900         * tree-ssa-pre.c (pre_expr_eq): Ditto
6901         (get_constant_for_value_id): Take a type as an argument.
6902         (fully_constant_expression): Pass in type.
6903         (find_or_generate_expression): Short circuit constant case.
6904         (create_expression_by_pieces): Remove special casing of
6905         pointer_plus.
6906         (do_regular_insertion): Short circuit constant case.
6907         (do_partial_partial_insertion): Ditto.
6908
6909 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6910
6911         PR target/36782
6912         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
6913
6914 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
6915
6916         * config/xtensa/libgcc-xtensa.ver: New file.
6917         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
6918
6919 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6920
6921         * df-problems.c (df_set_note): Avoid C++ keywords.
6922         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
6923         * dse.c (record_store, remove_useless_values): Likewise.
6924         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
6925         gen_reg_rtx_offset, operand_subword, change_address_1,
6926         change_address, adjust_address_1, offset_address,
6927         widen_memory_access, emit_copy_of_insn_after): Likewise.
6928         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
6929         * fwprop.c (should_replace_address, propagate_rtx_1,
6930         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
6931         Likewise.
6932         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
6933         gcse_emit_move_after, update_ld_motion_stores): Likewise.
6934         * lcm.c (compute_insert_delete, pre_edge_lcm,
6935         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
6936         * lower-subreg.c (resolve_reg_notes): Likewise.
6937         * mode-switching.c (optimize_mode_switching): Likewise.
6938
6939 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6940
6941         * bt-load.c (add_btr_def, migrate_btr_def,
6942         branch_target_load_optimize): Avoid C++ keywords.
6943         * caller-save.c (insert_restore, insert_save, insert_one_insn):
6944         Likewise.
6945         * combine.c (subst, simplify_set, make_extraction,
6946         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
6947         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
6948         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
6949
6950 2008-07-15  Richard Guenther  <rguenther@suse.de>
6951
6952         PR middle-end/36369
6953         * c-common.c (strict_aliasing_warning): Do not warn for
6954         TYPE_REF_CAN_ALIAS_ALL pointers.
6955         (c_common_get_alias_set): may_alias types are not special.
6956         * tree.c (build_pointer_type_for_mode): Look up the may_alias
6957         attribute and set can_ref_all accordingly.
6958         (build_reference_type_for_mode): Likewise.
6959         * doc/extend.texi (may_alias): Clarify.
6960
6961 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6962
6963         PR target/36780
6964         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6965         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6966
6967 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6968
6969         PR target/31568
6970         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
6971         gcc_assert, instead call output_operand_lossage.
6972
6973 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
6974
6975         * builtins.c (std_canonical_va_list): Treat structure based
6976         va_list types.
6977
6978 2008-07-15  Ben Elliston  <bje@au.ibm.com>
6979
6980         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
6981
6982 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
6983
6984         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
6985         is set.
6986
6987 2008-07-14  Jan Hubicka  <jh@suse.cz>
6988
6989         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
6990         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
6991         fix predicates and constraints.
6992         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
6993         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
6994
6995 2008-07-14  Doug Kwan  <dougkwan@google.com>
6996
6997         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
6998         additional option file arm/eabi.opt.
6999         * config/arm/eabi.h (File): New configuration file for EABI targets.
7000         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7001         SUBSUBTARGET_EXTRA_SPECS.
7002         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7003         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7004         from STARTFILE_SPEC so that it can be referenced in an override.
7005         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7006         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7007         can be referenced in an override.
7008         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7009         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7010         so that it can be referenced in an override.
7011         (LINK_SPEC): Use BPABI_LINK_SPEC.
7012         * config/arm/eabi.opt (File): New.
7013
7014 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7015
7016         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7017         (FIXED_VALUE_H): New variable.
7018         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7019         input.h, fixed-value.h.
7020         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7021         (BASIC_BLOCK_H): Use $(BITMAP_H).
7022         (FUNCTION_H): Add varray.h.
7023         (IPA_REFERENCE_H): Use $(BITMAP_H).
7024         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7025         (DF_H): Use $(BITMAP_H).
7026         (GGC_H): Add statistics.h.
7027         (INSN_ADDR_H): New.
7028         (INSN_ATTR_H): Use it.
7029         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7030         (INPUT_H): New.
7031         (SYMTAB_H): Add $(OBSTACK_H).
7032         (CPP_INTERNAL_H): New.
7033         (TREE_DUMP_H): Add tree-pass.h.
7034         (TREE_FLOW_H): Use $(BITMAP_H)
7035         (PRETTY_PRINT_H): Use $(INPUT_H).
7036         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7037         (GSTAB_H): New.
7038         (BITMAP_H): New.
7039         (many object files): Fix lots of header dependencies throughout.
7040
7041 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7042
7043         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7044         New macros.
7045         (s-gtyp-input): Use them to write tmp-gi.list.
7046         (echo_to_gi.list): Remove.
7047
7048 2008-07-14  Richard Guenther  <rguenther@suse.de>
7049
7050         * tree-ssa-sccvn.c (pre_info): Remove.
7051         (switch_to_PRE_table): Likewise.
7052         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7053         (set_hashtable_value_ids): Do not create value-ids for the
7054         optimistic tables.
7055         (run_scc_vn): Remove double test.  Remove bogus special-case
7056         in value-number printing.
7057         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7058         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7059         SSA_NAME_VALUE.
7060         * tree-flow-inline.h (get_value_handle): Remove.
7061         * tree-flow.h (get_value_handle): Remove.
7062
7063 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7064
7065         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7066         in which we generate arithmetics is not a subrange.
7067
7068 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7069
7070         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7071
7072 2008-07-14  Richard Guenther  <rguenther@suse.de>
7073
7074         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7075
7076 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7077
7078         PR target/36745
7079         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7080         reload for symbol refs moved to r0 with -fPIC.
7081         (legitimize_pic_address): Use the target register as temporary
7082         reg if possible.
7083         (emit_symbolic_move): Adjust comment.
7084         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7085         New expanders.
7086
7087 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7088
7089         * c-common.h (C_CPP_HASHNODE): New macro.
7090         * coretypes.h (struct cpp_token): Forward declare.
7091         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7092         the context-sensitive keyword method.
7093         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7094         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7095         expand_bool_pixel): New.
7096         (altivec_categorize_keyword): New function.
7097         (init_vector_keywords): New function.
7098         (rs6000_macro_to_expand): Likewise.
7099         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7100         compiling an ISO C dialect.
7101
7102 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
7103
7104         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7105         (create_expression_by_pieces): Fix typo.
7106         (do_regular_insertion): Use debug counter here too.
7107
7108 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
7109
7110         PR target/35492.
7111         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7112         CONST_OK_FOR_LETTER_P.  All port-local users changed.
7113         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7114         implement Kp matching power-of-two.
7115         (CONSTRAINT_LEN): Define to match.
7116         * config/cris/cris.md: Replace all use of constraint K with Kc.
7117         ("*btst*): Use Kp for operand 0 of last alternative.
7118
7119 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7120
7121         PR testsuite/36440
7122         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7123         and quad formats.
7124
7125 2008-07-13  Jan Hubicka  <jh@suse.cz>
7126
7127         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7128         to be mangled too.
7129
7130 2008-07-13  Richard Guenther  <rguenther@suse.de>
7131
7132         PR middle-end/36811
7133         * langhooks.c (lhd_print_error_function): Deal with recursive
7134         BLOCK trees.
7135
7136 2008-07-12  Jan Hubicka  <jh@suse.cz>
7137
7138         * cgraph.c (assembler_name_hash): New static var.
7139         (hash_node_by_assembler_name, eq_assembler_name): New.
7140         (cgraph_node_for_asm): Use hashtable.
7141         (cgraph_remove_node): Maintain hashtable.
7142         (change_decl_assembler_name): Sanity check that names are not changing
7143         after aliasing was processed.
7144         * cgraph.h (varpoon_node): Add next GGC marker.
7145         * tree.c (decl_assembler_name_equal): Constify.
7146         (decl_assembler_name_hash): New.
7147         * tree.h (decl_assembler_name_equal): Constify.
7148         (decl_assembler_name_hash): Update.
7149
7150 2008-07-12  David Daney  <ddaney@avtrex.com>
7151
7152         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7153         sb1 and r5000 cpus.
7154
7155 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7156
7157         * doc/md.texi: Document the MIPS "v" constraint.
7158         * config/mips/mips.h (reg_class): Revert last change.
7159         (REG_CLASS_NAMES): Likewise.
7160         (REG_CLASS_CONTENTS): Likewise.
7161         * config/mips/mips.c (mips_regno_to_class): Likewise.
7162         * config/mips/constraints.md (v): Likewise, but add documentation.
7163         Add a comment to say that this constraint should not be used in
7164         gcc code.
7165
7166 2008-07-11  DJ Delorie  <dj@redhat.com>
7167
7168         * config/h8300/h8300.md (length): Fix branch offset limit.
7169
7170 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
7171
7172         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7173         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7174         (avr_hard_regno_scratch_ok): New function.
7175         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7176         * config/avr/avr.md (all peepholes that request a scratch register):
7177         Remove avr_peep2_scratch_safe use.
7178
7179 2008-07-11  Tom Tromey  <tromey@redhat.com>
7180             Ian Lance Taylor  <iant@google.com>
7181
7182         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7183         (struct c_common_resword): Define.
7184         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7185         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7186         (c_common_reswords, num_c_common_reswords): Declare.
7187         * c-common.c (c_common_reswords): New global const array.
7188         (num_c_common_reswords): New const int.
7189         * c-parser.c (struct resword, reswords): Don't define.
7190         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7191         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
7192         than reswords.  If warning about C++ keywords, give them a special
7193         RID code.
7194         (c_lex_one_token): Warn about C++ keywords.  Call
7195         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7196         (c_parser_external_declaration): Look for RID_xxx rather than
7197         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7198         (c_parser_statement_after_labels): Likewise.
7199         (c_parser_objc_class_instance_variables): Likewise.
7200         (c_parser_objc_class_declaration): Likewise.
7201         (c_parser_objc_try_catch_statement): Likewise.
7202         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7203         (declspecs_add_type): Likewise.
7204
7205 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
7206
7207         * ggc-page.c (alloc_page):
7208         Substituting xmalloc, xcalloc with
7209         XNEWVEC and XCNEWVAR macros which add the
7210         needed casts.
7211
7212 2008-07-11  Richard Guenther  <rguenther@suse.de>
7213
7214         PR tree-optimization/36765
7215         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7216         aliases from HEAP vars to SMTs.
7217
7218 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7219
7220         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7221         * configure.ac (loose_warn): Move -Wc++-compat from here...
7222         (strict_warn): ...to here.
7223         * configure: Regenerate.
7224
7225 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
7226
7227         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7228         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7229         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7230         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7231         excluding more specific h8300-*-* and sh-*-* targets.
7232
7233 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
7234
7235         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7236         (eliminate): Ditto.
7237         (execute_pre): Call loop_optimizer_finalize in early exit.
7238
7239 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
7240
7241         PR middle-end/36790
7242         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7243         uids in the bitmap, not just VAR_DECL uids.
7244
7245         PR rtl-optimization/36419
7246         * combine-stack-adj.c (adjust_frame_related_expr): New function.
7247         (combine_stack_adjustments_for_block): Call it if needed.  Delete
7248         correct insn.
7249         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7250         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7251         prologue sp adjustment.
7252
7253 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7254
7255         PR other/28322
7256         * opts.c (print_ignored_options): Report postponed diagnostics for
7257         unknown -Wno-* options as warnings, not errors.
7258         (postpone_unknown_option_error): Renamed to...
7259         (postpone_unknown_option_warning): ... this.
7260
7261 2008-07-09  Doug Kwan  <dougkwan@google.com>
7262
7263         Revert:
7264         2008-07-08  Doug Kwan  <dougkwan@google.com>
7265
7266         * config/arm/arm.opt (mandroid): New option.
7267         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7268         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7269         (CC1_SPEC): Same.
7270         (CC1PLUS_SPEC): Same.
7271         (LIB_SPEC): Same.
7272         (STARTFILE_SPEC): Same.
7273         (ENDFILE_SPEC): Same.
7274         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7275         used.
7276
7277 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
7278
7279         PR target/35802
7280         * config/mips/mips.h (reg_class): Remove V1_REG.
7281         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7282         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7283         instead of V1_REGS.
7284         (mips_get_tp): New function.
7285         (mips_legitimize_tls_address): Use it.
7286         * config/mips/constraints.md (v): Delete.
7287         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7288         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7289         After reload, split into a move and ...
7290         (*tls_get_tp_<mode>_split): ...this new instruction.
7291
7292 2008-07-09  David Daney  <ddaney@avtrex.com>
7293
7294         * config/mips/driver-native.c: Include coretypes.h and tm.h.
7295
7296 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
7297
7298         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7299         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7300         Add c argument.
7301         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7302         htab_delete should be called.  Don't free c.
7303         (lookup_tmp_var): Create temp_htab lazily.
7304         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7305         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7306         callers.
7307         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7308         lower_omp_ordered, lower_omp_critical, lower_omp_for,
7309         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7310         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7311         * tree-sra.c (generate_element_init): Likewise.
7312         * tree-mudflap.c (execute_mudflap_function_ops,
7313         execute_mudflap_function_decls): Likewise.
7314         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7315         * tree-gimple.h (struct gimplify_ctx): New type.
7316         (push_gimplify_context): Adjust prototype.
7317
7318 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
7319
7320         * tree-ssa-pre.c (phi_translate_1): Update placement of
7321         add_to_value calls.
7322
7323 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
7324
7325         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7326         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7327         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7328         * targhooks.c (default_hard_regno_scratch_ok): New function.
7329         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7330         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7331         * recog.c:  Include "target.h".
7332         (peep2_find_free_register): Add check for global regs. Add target
7333         specific check.
7334         * Makefile.in (recog.o): Depend on target.h.
7335
7336 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7337
7338         * config/sh/sh.c (sh_canonical_va_list_type): New.
7339         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7340
7341 2008-07-09  Raksit Ashok <raksit@google.com>
7342
7343         * doc/invoke.texi (Option Summary): Mention new option
7344         -Wdisallowed-function-list=...
7345         (Warning Options): Document -Wdisallowed-function-list=...
7346         * common.opt (Wdisallowed-function-list=): New flag.
7347         * flags.h (warn_disallowed_functions): External definition of new
7348         boolean warning flag.
7349         (warn_if_disallowed_function_p): Declare new function.
7350         * opts.c (warning_disallowed_functions): New static variable.
7351         (warn_disallowed_functions): New boolean warning flag.
7352         (warn_if_disallowed_function_p): New function.
7353         (add_comma_separated_to_vector): Rename
7354         add_instrument_functions_exclude_list to this.
7355         (common_handle_option): Handle new option. Rename calls to
7356         add_instrument_functions_exclude_list into calls to
7357         add_comma_separated_to_vector.
7358         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7359         based on flag warn_disallowed_functions.
7360
7361 2008-07-09  Christian Bruel  <christian.bruel@st.com>
7362
7363         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7364          instead of get_attr_length.
7365
7366 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7367
7368         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
7369         keywords.
7370         * genemit.c (gen_insn): Likewise.
7371         * gengtype.c (note_def_vec): Likewise.
7372         * gengtype.h (note_def_vec): Likewise.
7373         * genoutput.c (struct data, output_insn_data, process_template,
7374         gen_expand, gen_split, note_constraint): Likewise.
7375         * genrecog.c (new_decision, add_to_sequence, factor_tests,
7376         make_insn_sequence): Likewise.
7377         * gensupport.c (record_insn_name): Likewise.
7378
7379 2008-07-08  Doug Kwan  <dougkwan@google.com>
7380
7381         * config/arm/arm.opt (mandroid): New option.
7382         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7383         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7384         (CC1_SPEC): Same.
7385         (CC1PLUS_SPEC): Same.
7386         (LIB_SPEC): Same.
7387         (STARTFILE_SPEC): Same.
7388         (ENDFILE_SPEC): Same.
7389         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7390         used.
7391
7392 2008-07-08  Raksit Ashok  <raksit@google.com>
7393
7394         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
7395         (set_storage_via_setmem): Fix expected_align parameter.
7396         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
7397         missing from the list.
7398         * doc/md.texi (movmem): Explicitly state that expected alignment is
7399         to be expressed in bytes.
7400         (setmem): Explicitly state that expected alignment is to be expressed
7401         in bytes.
7402
7403 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
7404
7405         * reload.c (find_reloads_subreg_address): Do not require validity
7406         of address in original mode before reloading address.
7407
7408 2008-07-07  Tianwei Sheng  <tianweis@google.com>
7409
7410         * df-core.c (df_remove_problem): Adjust the access to avoid out of
7411         bounds array access.
7412
7413 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
7414
7415         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
7416
7417 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
7418
7419         Fix PR tree-optimization/23455
7420         Fix PR tree-optimization/35286
7421         Fix PR tree-optimization/35287
7422         * Makefile.in (OBJS-common): Remove tree-vn.o.
7423         (tree-vn.o): Remove.
7424         * dbgcnt.def: Add treepre_insert debug counter.
7425         * gcc/tree-flow.h (add_to_value): Updated for other changes.
7426         (debug_value_expressions): Ditto.
7427         (print_value_expressions): Ditto.
7428         * tree-pretty-print.c (dump_generic_node): Updated for
7429         VALUE_HANDLE removal.
7430         * tree-ssa-dom.c (record_equality): Ditto.
7431         (cprop_operand): Ditto.
7432         (lookup_avail_expr): Ditto.
7433         * tree-ssa-threadedge.c
7434         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
7435         (simplify_control_stmt_condition): Ditto.
7436         * tree.c (tree_code_size): Ditto.
7437         (tree_node_structure): Ditto.
7438         (iterative_hash_expr): Ditto.
7439         * tree.def: Ditto.
7440         * tree.h (VALUE_HANDLE_ID): Ditto.
7441         (VALUE_HANDLE_EXPR_SET): Ditto.
7442         (struct tree_value_handle): Ditto.
7443         (union tree_node): Ditto.
7444         * treestruct.def: Ditto.
7445         * tree-vn.c: Removed.
7446         * tree-ssa-pre.c: Rewritten entirely.
7447         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
7448         (constant_value_ids): Ditto.
7449         (vn_nary_op_t): Moved to header.
7450         (vn_phi_t): Ditto.
7451         (vn_reference_op_t): Ditto
7452         (vn_reference_t): Ditto.
7453         (next_value_id): New variable.
7454         (VN_INFO): Add an assert.
7455         (vn_constant_eq): New function.
7456         (vn_constant_hash): Ditto.
7457         (get_or_alloc_constant_value_id): Ditto.
7458         (value_id_constant_p): Ditto.
7459         (vn_reference_compute_hash): De-staticify.
7460         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
7461         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
7462         (valueize_refs): Update opcode if it changes from ssa name to constant.
7463         (vn_reference_lookup_1): Add new argument.
7464         (vn_reference_lookup):  Ditto.
7465         (vn_reference_lookup_pieces): New function.
7466         (vn_reference_insert): Add return type. Modify to deal with value ids.
7467         (vn_reference_insert_pieces):  New function.
7468         (vn_nary_op_compute_hash): De-staticify.
7469         (vn_nary_op_eq): Ditto.
7470         (vn_nary_op_lookup_pieces): New function.
7471         (vn_nary_op_lookup): Add new argument.
7472         (vn_nary_op_insert_pieces): New function.
7473         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7474         (vn_phi_insert): Ditto.
7475         (visit_unary_op): Update for callee changes.
7476         (visit_binary_op): Ditto.
7477         (visit_reference_op_load): Ditto.
7478         (visit_reference_op_store): Ditto.
7479         (init_scc_vn): Init next_value_id, constant_to_value_id and
7480         constant_value_ids.
7481         (free_scc_vn): Free them.
7482         (set_hashtable_value_ids): New function.
7483         (run_scc_vn): Use it.
7484         (get_max_value_id): New function.
7485         (get_next_value_id): Ditto.
7486         (expressions_equal_p): Moved from tree-vn.c
7487         (sort_vuses): Ditto.
7488         (sort_vuses_heap): Ditto.
7489         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
7490         above).
7491         * tree.c (iterative_hash_hashval_t): Made non-static
7492         * tree.h (iterative_hash_hashval_t): Declare it.
7493
7494 2008-07-08  Martin Jambor  <mjambor@suse.cz>
7495
7496         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
7497         instead of ipa_create_node_params.
7498         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
7499         ipa_check_create_edge_args, free them with
7500         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
7501
7502         * ipa-prop.c: Include flags.h and tree-inline.h.
7503         (ipa_node_params_vector): New variable.
7504         (ipa_edge_args_vector): New variable.
7505         (edge_removal_hook_holder): New variable.
7506         (node_removal_hook_holder): New variable.
7507         (edge_duplication_hook_holder): New variable.
7508         (node_duplication_hook_holder): New variable.
7509         (ipa_detect_param_modifications): Check for presence of modified flags.
7510         (ipa_compute_jump_functions): Check for presence of jump functions.
7511         (ipa_free_edge_args_substructures): New function.
7512         (ipa_create_node_params): Removed.
7513         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
7514         (ipa_free_node_params_substructures): New function.
7515         (ipa_free_all_node_params): Changed to deallocate the on-the-side
7516         vector.
7517         (ipa_edge_removal_hook): New function.
7518         (ipa_node_removal_hook): New function.
7519         (duplicate_array): New function.
7520         (ipa_edge_duplication_hook): New function.
7521         (ipa_node_duplication_hook): New function.
7522         (ipa_register_cgraph_hooks): New function.
7523         (ipa_unregister_cgraph_hooks): New function.
7524         (free_all_ipa_structures_after_ipa_cp): New function.
7525
7526         * ipa-prop.h: Include vec.h.
7527         (ipa_node_params_t): New typedef with vector types for it.
7528         (ipa_edge_args_t):  New typedef with vector types for it.
7529         (IPA_NODE_REF): Changed to access an on-the-side vector.
7530         (IPA_EDGE_REF): Changed to access an on-the-side vector.
7531         (ipa_check_create_node_params): New function.
7532         (ipa_check_create_edge_args): New function.
7533
7534         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
7535         all users.
7536
7537 2008-07-07  Tom Tromey  <tromey@redhat.com>
7538
7539         * configure, config.in: Rebuilt.
7540         * configure.ac: Don't check for scandir or alphasort.
7541
7542 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
7543
7544         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
7545         types immediately after creating them.
7546
7547 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
7548
7549         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
7550
7551 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
7552
7553         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
7554         dump_constraint_graph.
7555         (dump_constraint_edge): New function.
7556         (dump_constraint_graph): New function.
7557         (debug_constraint_graph): New function.
7558         (dump_constraint): Removed useless comparison.
7559         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
7560         (dump_constraint_graph): Declare.
7561         (debug_constraint_graph): Declare.
7562         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
7563
7564 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
7565
7566         * config/i386/i386.c (is_va_list_char_pointer): New.
7567         (ix86_va_start): Replace compare with ms_va_list_type_node
7568         by is_va_list_char_pointer.
7569         (ix86_gimplify_va_arg): Likewise.
7570
7571 2008-07-07  Martin Jambor  <mjambor@suse.cz>
7572
7573         * cgraph.c (cgraph_edge_max_uid): New variable.
7574         (struct cgraph_edge_hook_list): New type.
7575         (struct cgraph_node_hook_list): New type.
7576         (struct cgraph_2edge_hook_list): New type.
7577         (struct cgraph_2node_hook_list): New type.
7578         (first_cgraph_edge_removal_hook): New variable.
7579         (first_cgraph_node_removal_hook): New variable.
7580         (first_cgraph_edge_duplicated_hook): New variable.
7581         (first_cgraph_node_duplicated_hook): New variable.
7582         (cgraph_add_edge_removal_hook): New function.
7583         (cgraph_remove_edge_removal_hook): New function.
7584         (cgraph_call_edge_removal_hooks):  New function.
7585         (cgraph_add_node_removal_hook):  New function.
7586         (cgraph_remove_node_removal_hook):  New function.
7587         (cgraph_call_node_removal_hooks):  New function.
7588         (cgraph_add_edge_duplication_hook):  New function.
7589         (cgraph_remove_edge_duplication_hook):  New function.
7590         (cgraph_call_edge_duplication_hooks):  New function.
7591         (cgraph_add_node_duplication_hook):  New function.
7592         (cgraph_remove_node_duplication_hook):  New function.
7593         (cgraph_call_node_duplication_hooks):  New function.
7594         (cgraph_create_edge): Assign to edge uid.
7595         (cgraph_remove_edge): Call edge removal hooks.
7596         (cgraph_node_remove_callees): Call edge removal hooks.
7597         (cgraph_node_remove_callers): Call edge removal hooks.
7598         (cgraph_remove_node): Call node removal hooks.
7599         (cgraph_clone_edge): Call edge duplication hooks.
7600         (cgraph_clone_node): Call node duplication hooks.
7601
7602         * cgraph.h (cgraph_edge): New field uid.
7603         (cgraph_edge_hook): New type.
7604         (cgraph_node_hook): New type.
7605         (cgraph_2edge_hook): New type.
7606         (cgraph_2node_hook): New type.
7607
7608 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
7609
7610         * config.in: Regenerate.
7611
7612 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
7613
7614         * gcc.c (print_sysroot): New.
7615         (option_map, display_help, process_command): Handle the
7616         -print-sysroot option.
7617         (main): Print the sysroot if requested.
7618         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
7619
7620 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7621
7622         PR target/34780
7623         * unwind-pe.h (size_of_encoded_value): add attribute unused.
7624
7625 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
7626
7627         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
7628         (assign_parm_setup_block_p): Also check mode of entry_parm.
7629
7630 2008-07-07  Richard Guenther  <rguenther@suse.de>
7631
7632         * tree-ssa-structalias.h (set_used_smts): Remove.
7633         * tree-ssa-structalias.c (used_smts): Likewise.
7634         (set_used_smts): Likewise.
7635         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
7636         call to set_used_smts.
7637
7638 2008-07-07  Richard Guenther  <rguenther@suse.de>
7639
7640         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
7641         (new_var_info): Set it to false.
7642         (solution_set_add): Correctly handle pointers outside a var and
7643         inside a field.
7644         (type_safe): Treat variables with is_full_var properly.
7645         (do_sd_constraint): Likewise.
7646         (do_ds_constraint): Likewise.
7647         (process_constraint): Remove zeroing offset for !use_field_sensitive.
7648         (get_constraint_for_ptr_offset): New function.
7649         (get_constraint_for_component_ref): For addresses at least include
7650         the last field of the variable.  Handle is_full_vars properly.
7651         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
7652         (handle_ptr_arith): Remove.
7653         (find_func_aliases): Simplify assignment handling.
7654         (create_function_info_for): For parameter and result varinfos set
7655         is_full_var flag.
7656         (create_variable_info_for): Set is_full_var flag whenever we
7657         just created a single varinfo for a decl.
7658         (init_alias_vars): Initialize use_field_sensitive from
7659         max-fields-for-field-sensitive parameter.
7660
7661 2008-07-07  Richard Guenther  <rguenther@suse.de>
7662
7663         PR tree-optimization/36713
7664         * tree-flow-inline.h (is_call_used): New function.
7665         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
7666         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7667         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
7668
7669 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7670
7671         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
7672
7673 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
7674
7675         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
7676
7677 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7678             Nathan Sidwell  <nathan@codesourcery.com>
7679
7680         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
7681         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
7682         tmake_file.
7683         * config/m68k/t-linux: New.
7684         * doc/install.texi: Document m68k-*-linux is now multilibbed by
7685         default.
7686
7687 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
7688
7689         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
7690         * config/m68k/m68k-devices.def: Remove multilibs that only differ
7691         by MAC/EMAC.
7692
7693 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7694
7695         * gcc.c (execute): Fix -Wc++-compat warning.
7696
7697 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7698
7699         PR target/36720
7700         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
7701         constant for little endian.
7702
7703 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
7704
7705         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
7706         mips_base_mips16 instead of TARGET_MIPS16.
7707         (mips_base_mips16): Declare.
7708         * config/mips/mips.c (mips_base_mips16): Make global.
7709         (was_mips16_p): Remove GTY marker.
7710         (was_mips16_pch_p): New variable.
7711         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
7712         (mips_override_options): Force to non-MIPS16 mode initially.
7713         Do not complain about MIPS16 PIC incompatibilities here.
7714         Only allow -mgpopt if -mexplicit-relocs is in force for
7715         non-MIPS16 code.
7716
7717 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
7718
7719         * configure.ac: Check for caddr_t, define to char * if not defined.
7720         * configure: Regenerate.
7721         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
7722         (mmap_gt_pch_use_address): Likewise.
7723         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
7724
7725 2008-07-06  Richard Guenther  <rguenther@suse.de>
7726
7727         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
7728         (new_var_info): Deal with it.
7729         (solution_set_add): Likewise.
7730         (bitpos_of_field): Make signed, fix.
7731         (struct fieldoff): Remove type and decl fields.  Make size field
7732         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
7733         flags.
7734         (fieldoff_compare): Deal with it.
7735         (push_fields_onto_fieldstack): Remove has_union argument, glob
7736         adjacent non-pointer fields together.
7737         (create_function_info_for): Do not set has_union.
7738         (create_variable_info_for): Simplify.
7739
7740 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
7741
7742         * config.gcc (extra_headers): Add cross-stdarg.h for target
7743         x86_64-*-* and i?86-*-*.
7744         * config/i386/cross-stdarg.h: New.
7745         * builtins.c (std_fn_abi_va_list): New.
7746         (std_canonical_va_list_type): New.
7747         (stabilize_va_list): Replace va_list_type_node use by
7748         mtarget.canonical_va_list_type.
7749         (gimplify_va_arg_expr): Likewise.
7750         (expand_builtin_va_copy): Replace va_list_type_node use by
7751         mtarget.fn_abi_va_list.
7752         * tree-sra.c (is_va_list_type): New helper.
7753         (decl_can_be_decomposed_p): Replace
7754         va_list_type_node use by is_va_list_type.
7755         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
7756         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7757         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
7758         * config/i386/i386-protos.h (ix86_get_valist_type): New.
7759         (ix86_enum_va_list): New.
7760         * config/i386/i386.c (sysv_va_list_type_node): New.
7761         (ms_va_list_type_node): New.
7762         (ix86_function_type_abi): Remove sorry.
7763         (ix86_build_builtin_va_list_abi): New.
7764         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
7765         for 64-bit targets.
7766         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
7767         (ix86_init_builtins_va_builtins_abi): New.
7768         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
7769         for 64-bit targets.
7770         (ix86_handle_abi_attribute): New.
7771         (attribute_spec): Add sysv_abi and ms_abi.
7772         (ix86_fn_abi_va_list): New.
7773         (ix86_canonical_va_list_type): New.
7774         (ix86_enum_va_list): New.
7775         (TARGET_FN_ABI_VA_LIST): New.
7776         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7777         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
7778         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
7779         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7780         (TARGET_ENUM_VA_LIST): New.
7781         * expr.h (std_fn_abi_va_list): New.
7782         (std_canonical_va_list_type): New.
7783         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
7784         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7785         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
7786         TARGET_CANONICAL_VA_LIST_TYPE.
7787         * target.h (struct gcc_target): Add fn_abi_va_list hook
7788         and canonical_va_list_type hook.
7789
7790 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7791
7792         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
7793         integral and pointer types.
7794
7795 2008-07-04  Roger Sayle  <roger@eyesopen.com>
7796
7797         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
7798         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
7799
7800 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7801
7802         PR target/36684
7803         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
7804
7805 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
7806
7807         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
7808         build_gimple_modify_stmt.
7809         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
7810         gimple operand.  Use fold_build* instead of build*.
7811
7812 2008-07-04  Richard Guenther  <rguenther@suse.de>
7813
7814         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
7815         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
7816         properly to compute the reachability set if we do field-sensitive PTA.
7817         * invoke.texi (max-fields-for-field-sensitive): Document default.
7818         * opts.c (decode_options): Set max-fields-for-field-sensitive to
7819         100 for optimize >= 2.
7820
7821 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7822
7823         * ggc-zone.c (lookup_page_table_if_allocated,
7824         set_page_table_entry, zone_find_object_size, alloc_small_page,
7825         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
7826         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
7827         -Wc++-compat and/or -Wcast-qual warnings.
7828
7829 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
7830
7831         PR target/36634
7832         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
7833         pic_offset_table_rtx to be marked as used here.
7834         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
7835         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
7836         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
7837         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
7838         !TARGET_SECURE_PLT.
7839
7840 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7841
7842         * alloc-pool.c (hash_descriptor, eq_descriptor,
7843         alloc_pool_descriptor): Fix -Wc++-compat warnings.
7844         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
7845         Likewise.
7846         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
7847         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
7848         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
7849         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
7850         Likewise.
7851
7852 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
7853
7854         * tree-flow.h (loop_only_exit_p): Declare.
7855         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
7856         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
7857         the number of iterations if it is constant.  Otherwise, if this is the
7858         only possible exit of the loop, use the conservative estimate on the
7859         number of iterations of the entire loop if available.
7860
7861 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
7862
7863         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
7864         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
7865         Add synchronization functions.
7866         * config/sync.c: New file.
7867         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
7868         (LIBGCC_SYNC_CFLAGS): Likewise.
7869
7870 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
7871
7872         PR target/36710
7873         * config/i386/i386.md (mode): Add TF to "mode" attribute.
7874         (*pushtf_sse): New insn pattern.
7875         (pushtf splitters): New splitters.
7876
7877 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
7878
7879         PR middle-end/35736
7880         * predict.c (build_predict_expr): Use void_type_node for the tree
7881         type, instead of NULL_TREE.
7882
7883 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7884
7885         * config/i386/i386.c (contains_aligned_value_p): Return true
7886         for TCmode.
7887         (ix86_data_alignment): Align TCmode to 128bits.
7888         (ix86_local_alignment): Likewise.
7889
7890 2008-07-03  Andrew Haley  <aph@redhat.com>
7891
7892         PR bootstrap/33304
7893         * vec.h (VEC_TA): New.
7894         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
7895         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
7896         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
7897         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
7898         (C_COMMON_FIXED_TYPES): Remove first arg.
7899         (C_COMMON_FIXED_MODE_TYPES): Likewise.
7900         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
7901         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
7902         not to use empty macro arguments.
7903
7904 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
7905
7906         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
7907         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
7908         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
7909         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
7910         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
7911         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
7912         config/ia64/crtn.asm, config/m68hc11/larith.asm,
7913         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
7914         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
7915         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
7916         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
7917         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
7918         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
7919         config/rs6000/e500crtres64gpr.asm,
7920         config/rs6000/e500crtres64gprctr.asm,
7921         config/rs6000/e500crtrest32gpr.asm,
7922         config/rs6000/e500crtrest64gpr.asm,
7923         config/rs6000/e500crtresx32gpr.asm,
7924         config/rs6000/e500crtresx64gpr.asm,
7925         config/rs6000/e500crtsav32gpr.asm,
7926         config/rs6000/e500crtsav64gpr.asm,
7927         config/rs6000/e500crtsav64gprctr.asm,
7928         config/rs6000/e500crtsavg32gpr.asm,
7929         config/rs6000/e500crtsavg64gpr.asm,
7930         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
7931         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
7932         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
7933         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
7934         config/sparc/sol2-cn.asm: Remove .file directives.
7935
7936 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
7937
7938         * resource.c (mark_referenced_resources): Look inside
7939         UNSPEC_VOLATILEs and ASM_INPUTs.
7940
7941 2008-07-02  Ian Lance Taylor  <iant@google.com>
7942
7943         * rtlanal.c (add_reg_note): New function.
7944         * rtl.h (add_reg_note): Declare.
7945         * auto-inc-dec.c (attempt_change): Use add_reg_note.
7946         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
7947         * builtins.c (expand_builtin_longjmp): Likewise.
7948         (expand_builtin_nonlocal_goto): Likewise.
7949         * calls.c (emit_call_1, expand_call): Likewise.
7950         * cfgexpand.c (add_reg_br_prob_note): Likewise.
7951         * cfglayout.c (fixup_reorder_chain): Likewise.
7952         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7953         (commit_one_edge_insertion): Likewise.
7954         * combine.c (move_deaths, distribute_notes): Likewise.
7955         * df-problems.c (df_set_note): Likewise.
7956         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
7957         (set_unique_reg_note): Likewise.
7958         (emit_copy_of_insn_after): Likewise.
7959         * expr.c (expand_expr_real): Likewise.
7960         * gcse.c (add_label_notes): Likewise.
7961         * haifa-sched.c (create_check_block_twin): Likewise.
7962         * jump.c (mark_jump_label_1): Likewise.
7963         * loop-doloop.c (add_test, doloop_modify): Likewise.
7964         * loop-unswitch.c (compare_and_jump_seq): Likewise.
7965         * lower-subreg.c (move_eh_region_note): Likewise.
7966         * optabs.c (emit_libcall_block): Likewise.
7967         * predict.c (predict_insn): Likewise.
7968         (combine_predictions_for_insn): Likewise.
7969         * recog.c (peephole2_optimize): Likewise.
7970         * regmove.c (try_auto_increment): Likewise.
7971         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
7972         * reload.c (find_reloads): Likewise.
7973         * reload1.c (fixup_eh_region_note): Likewise.
7974         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
7975         * reorg.c (delete_prior_computation): Likewise.
7976         (delete_computation, dbr_schedule): Likewise.
7977         * config/pa/pa.c (legitimize_pic_address): Likewise.
7978         * config/sh/sh.c (sh_reorg): Likewise.
7979
7980 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
7981
7982         PR target/36669
7983         * config/libgcc-glibc.ver: Add %exclude.
7984         * config/m32r/libgcc-glibc.ver: Likwise.
7985         * config/s390/libgcc-glibc.ver: Likwise.
7986         * config/sh/libgcc-glibc.ver: Likwise.
7987         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
7988
7989         * config/i386/libgcc-glibc.ver: New.
7990
7991         * config/i386/libgcc-x86_64-glibc.ver: Removed.
7992
7993 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
7994
7995         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
7996         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
7997         i[34567]86-*-linux*, x86_64-*-linux*.  Add
7998         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
7999         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8000         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8001         i[34567]86-*-linux*, x86_64-*-linux*.
8002
8003         * libgcc-std.ver: Add empty GCC_4.4.0.
8004
8005         * mkmap-symver.awk: Support multiple versions per symbol.
8006
8007         * config/i386/i386.c (ix86_init_builtins): Always define
8008         __builtin_fabsq and __builtin_copysignq with fallbacks.
8009         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8010         and __builtin_copysignq if SSE2 isn't available.
8011
8012         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8013         (LIBGCC2_TF_CEXT): Likwise.
8014         (TF_SIZE): Likwise.
8015
8016         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8017
8018         * config/i386/sfp-machine.h: Moved to libgcc.
8019
8020         * config/i386/sfp-machine.h: New.
8021         * config/i386/t-linux: Likwise.
8022
8023         * config/i386/t-darwin: Remove softfp_wrap_start and
8024         softfp_wrap_end.
8025         * config/i386/t-darwin64: Likewise.
8026
8027         * config/i386/t-fprules-softfp64: Renamed to ...
8028         * config/i386/t-fprules-softfp: This.
8029
8030         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8031         and softfp_wrap_end.
8032
8033 2008-07-02  Jason Merrill  <jason@redhat.com>
8034
8035         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8036
8037         * tree.c (ctor_to_list): New fn.
8038         * tree.h: Declare it.
8039         (CONSTRUCTOR_ELT): New macro.
8040         (CONSTRUCTOR_NELTS): New macro.
8041
8042 2008-07-02  Richard Guenther  <rguenther@suse.de>
8043
8044         * tree-ssa-structalias.c (struct variable_info): Reorder
8045         to fill padding on 64bit hosts.  Make collapsed_to an int.
8046         (get_varinfo_fc): Deal with that.
8047         (new_var_info): Likewise.
8048         (collapse_rest_of_var): Likewise.
8049
8050 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8051
8052         * doc/install.texi (--enable-java-home): Document.
8053         (--enable-aot-compile-rpm): Likewise.
8054         (--with-arch-directory): Likewise.
8055         (--with-os-directory): Likewise.
8056         (--with-origin-name): Likewise.
8057         (--with-arch-suffix): Likewise.
8058         (--with-jvm-root-dir): Likewise.
8059         (--with-jvm-jar-dir): Likewise.
8060         (--with-python-dir): Likewise.
8061
8062 2008-07-02  Richard Guenther  <rguenther@suse.de>
8063
8064         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8065         from decls explicitly.  Merge operand checking from tuples.
8066
8067 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8068
8069         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8070
8071 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8072
8073         * tree-switch-conversion.c: Included timevar.h
8074         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8075
8076         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8077
8078 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8079
8080         * tree-switch-conversion.c: Corrected various comments and
8081         whitespace issues
8082         (build_constructors): Fixed minor formatting mistakes.
8083
8084         * invoke.texi (Optimize Options): Corrected the
8085         switch-conversion-max-branch-ratio parameter.
8086
8087 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8088
8089         * final.c (asm_insn_count): Return zero for an empty asm body.
8090
8091 2008-07-02  Richard Guenther  <rguenther@suse.de>
8092
8093         * bitmap.h (bitmap_set_bit): Return bool.
8094         (bitmap_clear_bit): Likewise.
8095         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
8096         write to the bitmap if it would.
8097         (bitmap_clear_bit): Likewise.
8098         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8099         bitmap_set_bit return value.
8100         (add_pred_graph_edge): Likewise.
8101         (add_graph_edge): Likewise.
8102         (do_sd_constraint): Likewise.
8103         (do_ds_constraint): Likewise.
8104
8105 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8106
8107         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8108         Fix -Wc++-compat and/or -Wcast-qual warnings.
8109         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8110         gen_regparm_prefix): Likewise.
8111         * vmsdbgout.c (write_modbeg, lookup_filename,
8112         vmsdbgout_source_line, vmsdbgout_init): Likewise.
8113
8114 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
8115
8116         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8117         defaults.h definition apply.
8118
8119 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8120
8121         * function.c (assign_parm_remove_parallels): New.
8122         (assign_parm_setup_block_p): Do not return true for non-BLKmode
8123         PARALLELs.
8124         (assign_parm_setup_block): Do not handle them.
8125         (assign_parm_setup_reg, assign_parm_setup_stack): Call
8126         assign_parm_remove_parallels.
8127
8128 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8129
8130         * c-typeck.c (convert_for_assignment): Use
8131         vector_targets_convertible_p.
8132         * c-common.c (vector_targets_convertible_p): New.
8133         * c-common.h (vector_targets_convertible_p): New prototype.
8134         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8135         opaque_p_V2SI_type_node.
8136
8137 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
8138
8139         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8140         RFmode constants.
8141
8142 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
8143
8144         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8145         TFmode constants via two element DImode vector for hosts with
8146         HOST_BITS_PER_WIDE_INT < 64.
8147         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8148         also for HOST_BITS_PER_WIDE_INT < 64.
8149
8150 2008-07-01  Richard Guenther  <rguenther@suse.de>
8151
8152         PR tree-optimization/36666
8153         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8154         (get_constraint_exp_from_ssa_var): Split into ...
8155         (get_constraint_exp_for_temp): ... this ...
8156         (get_constraint_for_ssa_var): ... and that.
8157         Return constraint expressions for all touched sub-fields
8158         if the results address is not taken.
8159         (process_constraint): Remove assertion that aggregate
8160         assignments do not happen at this place.
8161         (get_constraint_for_component_ref): Add address_p argument.
8162         Return constraint expressions for all touched sub-fields
8163         if the results address is not taken.
8164         (do_deref): Use get_constraint_exp_for_temp.
8165         (get_constraint_for_1): Rename from ...
8166         (get_constraint_for): ... this.  Add the old function as wrapper.
8167         (do_structure_copy): Use get_constraint_for_1.
8168
8169 2008-07-01  Martin Jambor  <mjambor@suse.cz>
8170
8171         * Makefile.in (tree-switch-conversion.o): Add.
8172         (OBJS-common): Add tree-swtch-conversion.o.
8173         * passes.c (init_optimization_passes): Add pass_convert_switch.
8174         * tree-pass.h: (pass_convert_switch): Add.
8175         * tree-switch-conversion.c: New file.
8176         * gcc.dg/tree-ssa/cswtch.c: New testcase.
8177         * common.opt (ftree-cswtch): New option.
8178         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8179         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8180         * opts.c (decode_options): Set flag_tree_switch_conversion when
8181         optimization level is >= 2.
8182         * doc/invoke.texi (Optimize Options): Added description of
8183         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8184
8185 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8186
8187         * config/darwin-driver.c (darwin_default_min_version): Fix
8188         -Wc++-compat warnings.
8189
8190 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
8191
8192         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8193         of operand 0.
8194
8195 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8196
8197         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8198
8199 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8200
8201         PR rtl-optimization/34744
8202         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8203         (df_scan_free_internal): Free data structures not
8204         allocated in storage pools.
8205         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8206         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8207         df_scan_free_mws_vec.
8208         * dse.c (dse_step6): Free offset_map_p and offset_map_n
8209         unconditionally.
8210
8211 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         * config/i386/i386.c (contains_aligned_value_p): Return true
8214         for __float128.
8215         (ix86_function_arg_boundary): Return its natural boundary
8216         for __float128.
8217         (return_in_memory_32): Don't check TDmode.
8218         (ix86_split_to_parts): Support splitting into 4 parts and
8219         support TFmode for 32bit target.
8220         (ix86_split_long_move): Support splitting into 4 parts.
8221         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8222         for SSE2.
8223         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8224         (ix86_init_builtins): Here.
8225         (ix86_scalar_mode_supported_p): Always return true for TFmode.
8226         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8227         'q' and 'w', respectively.
8228
8229         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8230         TARGET_64BIT.
8231         (movtf_internal): Likewise.
8232         (<code>tf2): Likewise.
8233         (*absnegtf2_sse): Likewise.
8234         (copysign<mode>3): Likewise.
8235         (copysign<mode>3_const): Likewise.
8236         (copysign<mode>3_var): Likewise.
8237         (define_split UNSPEC_COPYSIGN): Likewise.
8238         * config/i386/sse.md (*nandtf3): Likewise.
8239         (<code>tf3): Likewise.
8240         (*<code>tf3): Likewise.
8241
8242 2008-06-30  Joey Ye  <joey.ye@intel.com>
8243             H.J. Lu  <hongjiu.lu@intel.com>
8244
8245         * global.c (compute_regsets): Set frame_pointer_needed here.
8246         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8247
8248 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8249
8250         * doc/install.texi (specific): Expand Windows build notes.
8251
8252 2008-06-30  Ira Rosen  <irar@il.ibm.com>
8253
8254         PR tree-optimization/36648
8255         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8256         number of prolog iterations by step. Fix the comment.
8257
8258 2008-06-30  Richard Guenther  <rguenther@suse.de>
8259
8260         PR middle-end/36671
8261         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8262         handle calls from ECF_MALLOC functions.
8263         (handle_pure_call): ECF_MALLOC functions do not return
8264         call-used memory.
8265         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8266
8267 2008-06-29  Andreas Schwab  <schwab@suse.de>
8268
8269         * config/m68k/m68k.c (print_operand): Always print a float
8270         constant in hex.
8271         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8272         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8273         Remove macros.
8274
8275         * config/rs6000/x-linux64: Remove never used file.
8276
8277 2008-06-29  Richard Guenther  <rguenther@suse.de>
8278
8279         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8280         prototype.
8281         (struct alias_info): Move ...
8282         * tree-ssa-alias.c: ... here.
8283         (update_alias_info): Declare.
8284         (compute_may_aliases): Call it.
8285         (update_alias_info): New function.
8286         * tree-ssa-structalias.c (update_alias_info): Move ...
8287         * tree-ssa-alias.c (update_alias_info_1): ... here.
8288         * tree-ssa-structalias.c (process_constraint_1): Remove
8289         unused from_call argument.  Rename to ...
8290         (process_constraint): ... this.  Delete old wrapper.
8291         (make_constraint_to): Adjust callers.
8292         (handle_const_call): Likewise.
8293         (handle_pure_call): Likewise.
8294         (init_base_vars): Likewise.
8295         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
8296         (find_func_aliases): We don't need structure copies for
8297         complex types.
8298         (make_constraint_from_anything): Remove.
8299         (create_variable_info_for): For globals make constraints
8300         from escaped, not from anything.
8301         (compute_points_to_sets): Do not call update_alias_info.
8302         (ipa_pta_execute): Use make_constraint_from.
8303
8304 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8305
8306         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8307         (bitmap.o-warn, dominance.o-warn): New.
8308         * configure.ac (cxx_compat_warn): Delete.
8309         (loose_warn): Add -Wcast-qual and -Wc++-compat.
8310         * system.h: Remove #pragma diagnostic for -Wcast-qual and
8311         -Wc++-compat.
8312         * configure: Regenerate.
8313
8314         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8315         warnings.
8316
8317 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8318
8319         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8320         * df-scan.c (df_notes_rescan): Likewise.
8321         * ggc-page.c (set_page_table_entry): Likewise.
8322         * intl.c (gcc_gettext_width): Likewise.
8323         * varasm.c (get_unnamed_section, get_noswitch_section,
8324         get_section): Likewise.
8325
8326 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
8327
8328         * regrename.c (build_def_use): Don't copy RTX.
8329
8330 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
8331
8332         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8333         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
8334         punctuation.  Use @ref instead of @xref.
8335         (Function Names): Remove stray @display/@end display.
8336         (C++ Attributes): Use @ref instead of @xref.
8337         (Deprecated Features): Fix punctuation around @xref.
8338         (Backwards Compatibility): Likewise.
8339         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8340
8341 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8344         constants for E500 double.
8345
8346 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8347
8348         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8349         element type of const_vector.
8350
8351 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
8352
8353         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8354         Remove FLAGS_REG clobber from expander pattern.
8355         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8356         (anddi3, andsi3, andhi3, andqi3): Ditto.
8357         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8358         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8359         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8360         (ashlsi3, ashlhi3, ashlqi3): Ditto.
8361         (ashrsi3, ashrhi3, ashrqi3): Ditto.
8362         (lshrsi3, lshrhi3, lshrqi3): Ditto.
8363         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8364         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8365
8366 2008-06-28  Richard Guenther  <rguenther@suse.de>
8367
8368         * tree-ssa-structalias.c (callused_id, var_callused,
8369         callused_tree): Add.
8370         (handle_pure_call): New function.
8371         (find_func_aliases): Call it.
8372         (find_what_p_points_to): Handle the call-used set.
8373         (clobber_what_escaped): Likewise.
8374         (compute_call_used_vars): New function.
8375         (init_base_vars): Init the call-used variable.
8376         (do_sd_constraint): Do not propagate the solution from CALLUSED
8377         but use CALLUSED as a placeholder.
8378         (solve_graph): Likewise.
8379         * tree-flow-inline.h (gimple_call_used_vars): New function.
8380         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
8381         (compute_call_used_vars): Declare.
8382         * tree-ssa-alias.c (set_initial_properties): Call
8383         compute_call_used_vars.
8384         (reset_alias_info): Clear call-used variables.
8385         (add_call_clobber_ops): Assert we are not called for const/pure
8386         functions.  Remove handling of them.
8387         (add_call_read_ops): Handle pure functions by adding the
8388         call-used set of variables as VUSEs.
8389         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
8390         (delete_tree_ssa): Free it.
8391         * tree-dfa.c (remove_referenced_var): Clear the var from the
8392         call-used bitmap.
8393
8394 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
8395
8396         * tree.c (build_varargs_function_type_list): New.
8397         (build_function_type_list_1): New.
8398         (build_function_type_list): Use build_function_type_list_1.
8399         * tree.h (build_varargs_function_type_list): New.
8400
8401 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8402
8403         PR target/34856
8404         * config/spu/spu.c (spu_builtin_splats): Do not generate
8405         invalid CONST_VECTOR expressions.
8406         (spu_expand_vector_init): Likewise.
8407
8408 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
8409
8410         * optabs.c (libfunc_decls): New variable.
8411         (libfunc_decl_hash, libfunc_decl_eq): New functions.
8412         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
8413         for the same function twice.
8414
8415 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
8416
8417         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
8418         ix86_expand_binary_operator directly.
8419         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
8420         for operand 2.
8421         (*ashrti3_1): Ditto.
8422         (*lshrti3_1): Ditto.
8423         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
8424         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
8425         using only one splitter.  Conditionaly execute splitter before or
8426         after peephole2 pass.
8427         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
8428         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
8429         Use only one alternative in asm template.
8430         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
8431         in asm template.
8432         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
8433         "J" operand constraint for operand 2.
8434         (*ashldi3_cconly_rex64): Ditto.
8435         (*ashrdi3_cmp_rex64): Ditto.
8436         (*ashrdi3_cconly_rex64): Ditto.
8437         (*lshrdi3_cmp_rex64): Ditto.
8438         (*lshrdi3_cconly_rex64): Ditto.
8439         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
8440         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
8441         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
8442         gen_x86_shrd_1.
8443
8444 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
8445
8446         * gimplify.c (omp_is_private): Don't return true if decl is not
8447         already private on #pragma omp for or #pragma omp parallel for.
8448
8449         PR debug/36617
8450         * tree-cfg.c (struct move_stmt_d): Replace block field with
8451         orig_block and new_block fields.
8452         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
8453         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8454         (move_block_to_fn): Replace vars_map and new_label_map arguments
8455         with struct move_stmt_d pointer.
8456         (replace_block_vars_by_duplicates): New function.
8457         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
8458         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
8459         all subblocks of ORIG_BLOCK to the new function.  Call
8460         replace_block_vars_by_duplicates.
8461         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
8462         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
8463         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
8464         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
8465         (expand_omp): Temporarily set input_location to the location of
8466         region's controlling stmt.
8467         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8468         BIND_EXPR, push ctx->block_vars and gimplification vars into
8469         the BIND_EXPR and its block's BLOCK_VARS instead of directly
8470         into dest function.
8471         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8472         there are any BLOCK_VARS.
8473         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8474         OMP_PARALLEL or OMP_TASK stmt.
8475         (lower_omp): Save and restore input_location around the lower_omp_1
8476         call.
8477
8478 2008-06-27  Richard Guenther  <rguenther@suse.de>
8479
8480         PR tree-optimization/36400
8481         PR tree-optimization/36373
8482         PR tree-optimization/36344
8483         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
8484         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
8485         (update_alias_info): Remove call clobbering code.
8486         (make_constraint_to): New helper function.
8487         (make_escape_constraint): Likewise.
8488         (handle_rhs_call): Use it on all pointer containing arguments.
8489         Also mark the static chain escaped.
8490         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
8491         instead of ANYTHING.
8492         (make_constraint_from): New helper split out from ...
8493         (make_constraint_from_anything): ... here.
8494         (find_func_aliases): Add constraints for escape sites.
8495         (intra_create_variable_infos): Make constraints from NONLOCAL
8496         for parameters.
8497         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
8498         as ANYTHING.
8499         (clobber_what_p_points_to): Remove.
8500         (clobber_what_escaped): New function.
8501         (init_base_vars): Init NONLOCAL and ESCAPED.
8502         (do_sd_constraint): Do not propagate the solution from ESCAPED
8503         but use ESCAPED as a placeholder.
8504         (solve_graph): Likewise.
8505         * tree-flow.h (clobber_what_p_points_to): Remove.
8506         (clobber_what_escaped): Declare.
8507         * tree-ssa-alias.c (set_initial_properties): Call it.
8508         Remove code clobbering escaped pointers.
8509
8510 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
8511
8512         * function.c (allocate_struct_function): Only allocate a unique
8513         funcdef_no if the decl is nonzero.
8514
8515 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
8516
8517         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
8518         * config/mips/mips.c (mips_split_const_insns): New function.
8519         * config/mips/mips.md (move_type): New attribute.
8520         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
8521         (dword_mode): New attribute.
8522         (type): Avoid long line.  Map "move_type"s to "type"s,
8523         choosing "multi" for doubleword moves if appropriate.
8524         Swap MTC/MFC comments to match their declaration order.
8525         (extended_mips16): Default to "yes" if "move_type" is "sll0",
8526         "type" is "branch" or "jal" is "direct".
8527         (length): Handle "extended_mips16" first.  Make the default
8528         "0" for "ghost" instructions.  Set the length from "move_type".
8529         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
8530         of "type", with "sll0" for the register alternative.  Remove the
8531         "extended_mips16" attribute.
8532         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
8533         of "type", with "shift_shift" for the register alternative.
8534         Remove the "length" attribute.
8535         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
8536         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
8537         of "type", with "andi" for the register alternative.
8538         (*zero_extendqihi2): Likewise.
8539         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
8540         of "andi" instead of a "type" of "arith".
8541         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
8542         instead of "type".
8543         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
8544         (mov_<store>r, *mov<mode>_ra): Likewise.
8545         (extendsidi2): Use "move_type" instead of "type", with "move"
8546         for the register alternative.
8547         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
8548         of "type", with "signext" for the register alternative.
8549         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
8550         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
8551         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
8552         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
8553         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
8554         (unnamed branch insn): Likewise.
8555         (*movdi_gp32_fp64): Fold into...
8556         (*movdi_32bit): ...here.
8557         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
8558         (*movdf_hardfloat): ...this new pattern.
8559         (*movdf_softfloat): Remove redundant FPR alternatives.
8560         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
8561         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
8562         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
8563         the "move" attribute.
8564         (*movdi_32bit): Use "move_type" instead of "type" and remove the
8565         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
8566         and "store" for COP loads and stores.
8567         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
8568         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
8569         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
8570         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
8571         (*movtf_mips16, *movv2sf): Likewise.
8572         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
8573         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
8574         (mfhc1<mode>): Use "move_type" instead of "move".
8575         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
8576         (loadgp_blockage): Remove the "length" attribute.
8577         (blockage, set_got_version, update_got_version): Likewise.
8578         (call_internal): Remove the "extended_mips16" attribute.
8579         (call_value_internal, call_value_multiple_internal): Likewise.
8580         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
8581         instead of "move".
8582         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
8583         the "length" attribute.
8584
8585 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8586
8587         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
8588         -Wcast-qual warnings.
8589         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
8590         handle_pragma_pop_macro): Likewise.
8591         * collect2.c (resolve_lib_name): Likewise.
8592         * config/arc/arc.c (arc_init): Likewise.
8593         * config/arm/arm.c (neon_builtin_compare,
8594         locate_neon_builtin_icode): Likewise.
8595         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
8596         * config/bfin/bfin.c (bfin_init_machine_status,
8597         bfin_optimize_loop): Likewise.
8598         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8599         * config/cris/cris.c (cris_init_expanders): Likewise.
8600         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
8601         * config/darwin.c (machopic_indirection_eq,
8602         machopic_indirection_name, machopic_output_indirection): Likewise.
8603         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
8604         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
8605         frv_optimize_membar): Likewise.
8606         * config/i386/cygwin.h (mingw_scan,
8607         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
8608         * config/i386/cygwin1.c (mingw_scan): Likewise.
8609         * config/i386/i386.c (machopic_output_stub): Likewise.
8610         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
8611         i386_pe_unique_section): Likewise.
8612         * config/ia64/ia64.c (ia64_init_machine_status,
8613         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
8614         Likewise.
8615         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
8616         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
8617         * config/m68k/m68k.c (m68k_handle_option,
8618         m68k_sched_md_init_global): Likewise.
8619         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
8620         mcore_unique_section): Likewise.
8621         * config/mips/mips.c (mips_block_move_straight,
8622         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
8623         Likewise.
8624         * config/mmix/mmix.c (mmix_init_machine_status,
8625         mmix_encode_section_info): Likewise.
8626         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
8627         * config/rs6000/rs6000.c (rs6000_init_machine_status,
8628         print_operand_address, output_toc, redefine_groups,
8629         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
8630         * config/s390/s390.c (s390_init_machine_status): Likewise.
8631         * config/score/score.c (score_block_move_straight,
8632         score_block_move_loop_body): Likewise.
8633         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8634         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8635         * emit-rtl.c (find_auto_inc): Likewise.
8636         * gcc.c (translate_options, process_command): Likewise.
8637         * reorg.c (dbr_schedule): Likewise.
8638         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
8639         * xcoffout.c (xcoffout_declare_function): Likewise.
8640
8641 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
8642
8643         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
8644         ipa-pta working again.
8645
8646 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
8647
8648         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
8649         genautomata.
8650
8651 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
8652
8653         * config.gcc (powerpc*-*-*): Add new core e500mc.
8654         * config/rs6000/e500mc.md: New file.
8655         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8656         e500mc.
8657         (rs6000_override_options): Add e500mc case to
8658         processor_target_table. Altivec and Spe options not allowed
8659         with e500mc. Add isel instruction to e500mc by
8660         default. Initialize rs6000_cost for e500mc.
8661         (rs6000_issue_rate): Set issue rate for e500mc.
8662         * config/rs6000/rs6000.h (processor_type): Add
8663         PROCESSOR_PPCE500MC.
8664         (ASM_CPU_SPEC): Add e500mc.
8665         Set TARGET_ISEL to rs6000_isel.
8666         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
8667         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
8668         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
8669         Include e500mc.md.
8670         * doc/invoke.texi: Add e500mc to list of cpus.
8671
8672 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8673
8674         PR c/34867
8675         * c-lex.c (lex_charconst): Initialize unsignedp.
8676
8677 2008-06-27  Olivier Hainque  <hainque@adacore.com>
8678
8679         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
8680         documented assumptions.
8681
8682 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
8683
8684         * dwarf2out.c: Remove trailing white spaces.  Break long line
8685         in comments.
8686
8687 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
8688
8689         * libfuncs.h (LTI_synchronize): New libfunc_index.
8690         (synchronize_libfunc): Declare.
8691         * builtins.c (expand_builtin_synchronize): Consider using
8692         synchronize_libfunc before falling back on an asm blockage.
8693         * config/mips/mips.c: Include libfuncs.h
8694         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
8695
8696 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
8697
8698         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
8699         parameter.  Copy stack_reg to r11 where appropriate.
8700         (no_global_regs_above): Add gpr parameter.
8701         (rs6000_stack_info): Only add padding for SPE save area if we
8702         are saving SPE GPRs and CR.
8703         (saveres_routine_syms): New variable.
8704         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
8705         Define.
8706         (rs6000_savres_routine_sym): New function.
8707         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
8708         split out of...
8709         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
8710         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
8711         Tweak FPR out-of-line saving.
8712         (rs6000_make_savres_rtx): New function.
8713         (rs6000_use_multiple_p): New function.
8714         (rs6000_savres_strategy): New function.
8715         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
8716         out-of-line if appropriate.
8717         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
8718         if we are optimizing for size.
8719         (GP_SAVE_INLINE): Define.
8720         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
8721         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
8722         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
8723         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
8724         (*save_fpregs_<mode>): Add use of r11.
8725         (*restore_gpregs_<mode>): New insn.
8726         (*return_and_restore_gpregs_<mode>): New insn.
8727         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
8728         use r11.
8729         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
8730         (*restore_gpregs_spe): New insn.
8731         (*return_and_restore_gpregs_spe): New insn.
8732         * config/rs6000/predicates.md (save_world_operation): Fix check.
8733
8734 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
8735
8736         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
8737         this point, so assert that.
8738
8739 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
8740
8741         * cfganal.c: Include vec.h and vecprim.h.
8742         (compute_idf): Import from...
8743         * tree-into-ssa (compute_idf): ...here.
8744         * basic-block.h (compute_idf): Export.
8745
8746 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
8747
8748         * c-decl.c (merge_decls): Use !current_function_decl to check for
8749         extern declaration of C99 inline function being at file scope.
8750
8751 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
8752
8753         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
8754
8755 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8756
8757         * alias.c (record_alias_subset, init_alias_analysis): Fix
8758         -Wc++-compat and/or -Wcast-qual warnings.
8759         * attribs.c (lookup_attribute_spec): Likewise.
8760         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
8761         copy_bb, connect_traces,
8762         find_rarely_executed_basic_blocks_and_cr): Likewise.
8763         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
8764         note_btr_set, migrate_btr_defs): Likewise.
8765         * builtins.c (result_vector, expand_builtin_memcpy,
8766         expand_builtin_mempcpy_args, expand_builtin_strncpy,
8767         builtin_memset_read_str, expand_builtin_printf,
8768         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
8769         Likewise.
8770         * caller-save.c (mark_set_regs): Likewise.
8771         * calls.c (expand_call, emit_library_call_value_1): Likewise.
8772         * cgraph.c (cgraph_edge): Likewise.
8773         * combine.c (likely_spilled_retval_1): Likewise.
8774         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
8775         htab_counts_entry_del, get_coverage_counts): Likewise.
8776         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
8777         new_cselib_val): Likewise.
8778         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
8779         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
8780         Likewise.
8781         * df-core.c (df_compact_blocks): Likewise.
8782         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
8783         * df-scan.c (df_grow_reg_info, df_ref_create,
8784         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
8785         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
8786         df_record_entry_block_defs, df_record_exit_block_uses,
8787         df_bb_verify): Likewise.
8788         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
8789         DF_REF_EXTRACT_MODE_CONST): New.
8790         * dominance.c (get_immediate_dominator, get_dominated_by,
8791         nearest_common_dominator, root_of_dom_tree,
8792         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
8793         -Wc++-compat and/or -Wcast-qual warnings.
8794         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
8795         record_store, replace_read, check_mem_read_rtx, scan_insn,
8796         dse_step1, dse_record_singleton_alias_set): Likewise.
8797         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8798
8799 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8800
8801         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
8802         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
8803         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
8804         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
8805         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
8806         add_ranges_num, add_ranges_by_labels, file_info_cmp,
8807         file_name_acquire, output_file_names, add_const_value_attribute,
8808         premark_used_types_helper, file_table_eq, file_table_hash,
8809         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
8810         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
8811         -Wcast-qual warnings.
8812         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
8813         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
8814         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
8815         gen_reg_rtx, start_sequence, init_emit): Likewise.
8816         * et-forest.c (et_new_occ, et_new_tree): Likewise.
8817         * except.c (init_eh_for_function, gen_eh_region,
8818         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
8819         arh_to_landing_pad, arh_to_label, add_action_record,
8820         add_call_site, switch_to_exception_section): Likewise.
8821         * expmed.c (synth_mult): Likewise.
8822         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
8823         store_expr): Likewise.
8824         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
8825         Likewise.
8826         * function.c (assign_stack_temp_for_type,
8827         allocate_struct_function, match_asm_constraints_1): Likewise.
8828         * gcov-io.c (gcov_allocate): Likewise.
8829         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
8830         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
8831         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
8832         record_one_set, insert_expr_in_table, insert_set_in_table,
8833         dump_hash_table, compute_hash_table_work, alloc_hash_table,
8834         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
8835         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
8836         -Wcast-qual warnings.
8837
8838 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8839
8840         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
8841         -Wcast-qual warnings.
8842         * gcc.c (process_command): Likewise.
8843         * genattrtab.c (oballoc): Use XOBNEW.
8844         (oballocvec): Define.
8845         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
8846         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
8847         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
8848         -Wc++-compat and/or -Wcast-qual warnings.
8849         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
8850         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
8851         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8852         gen_presence_absence_set, gen_automaton, gen_regexp_el,
8853         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
8854         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
8855         add_excls, process_presence_absence_names,
8856         process_presence_absence_patterns, add_presence_absence,
8857         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
8858         get_free_state, add_arc, get_free_automata_list_el,
8859         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
8860         transform_3, cache_presence, create_ainsns, create_automata,
8861         create_state_ainsn_table, dfa_insn_code_enlarge,
8862         output_trans_func, output_min_issue_delay_func,
8863         output_dead_lock_func, output_reset_func,
8864         output_get_cpu_unit_code_func, output_dfa_start_func,
8865         expand_automata): Likewise.
8866         * genextract.c (gen_insn): Likewise.
8867         * gengtype-lex.l: Likewise.
8868         * gengtype.c (read_input_list, adjust_field_type,
8869         process_gc_options): Likewise.
8870         * genoutput.c (note_constraint): Likewise.
8871         * genpreds.c (mangle, add_constraint): Likewise.
8872         * genrecog.c (process_define_predicate, new_decision,
8873         add_to_sequence): Likewise.
8874         * gensupport.c (record_insn_name): Likewise.
8875
8876 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8877
8878         * config/i386/driver-i386.c (detect_caches_amd,
8879         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
8880         and/or -Wcast-qual warnings.
8881         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
8882         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
8883         gt_pch_save): Likewise.
8884         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
8885         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
8886         * global.c (compute_regsets): Likewise.
8887         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
8888         finish_graph_dump_file): Likewise.
8889         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
8890         unlink_bb_notes): Likewise.
8891         * integrate.c (get_hard_reg_initial_val): Likewise.
8892         * ipa-prop.c (ipa_push_func_to_list): Likewise.
8893         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
8894         * local-alloc.c (update_equiv_regs): Likewise.
8895         * loop-invariant.c (check_invariant_table_size,
8896         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
8897         Likewise.
8898         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
8899         altered_reg_used, mark_altered): Likewise.
8900         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
8901         insert_var_expansion_initialization,
8902         combine_var_copies_in_loop_exit, apply_opt_in_copies,
8903         release_var_copies): Likewise.
8904         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
8905         analyze_matrix_decl, add_allocation_site, analyze_transpose,
8906         analyze_accesses_for_phi_node, check_var_notmodified_p,
8907         check_allocation_function, find_sites_in_func,
8908         record_all_accesses_in_func, transform_access_sites,
8909         transform_allocation_sites): Likewise.
8910         * omp-low.c (new_omp_region, create_omp_child_function_name,
8911         check_omp_nesting_restrictions, check_combined_parallel,
8912         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
8913         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
8914         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
8915         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
8916         Likewise.
8917         * opts-common.c (prune_options): Likewise.
8918         * opts.c (add_input_filename, print_filtered_help,
8919         get_option_state): Likewise.
8920         * params.c (add_params): Likewise.
8921         * passes.c (set_pass_for_id, next_pass_1,
8922         do_per_function_toporder, pass_fini_dump_file): Likewise.
8923         * postreload.c (reload_cse_simplify_operands): Likewise.
8924         * predict.c (tree_predicted_by_p, tree_predict_edge,
8925         clear_bb_predictions, combine_predictions_for_bb): Likewise.
8926
8927 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8928
8929         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
8930         warnings.
8931         * recog.c (check_asm_operands, validate_change_1): Likewise.
8932         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
8933         subst_asm_stack_regs): Likewise.
8934         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
8935         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
8936         * regmove.c (reg_is_remote_constant_p): Likewise.
8937         * regrename.c (regrename_optimize, scan_rtx_reg,
8938         kill_clobbered_value, kill_set_value, kill_autoinc_value):
8939         Likewise.
8940         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
8941         regstat_compute_calls_crossed): Likewise.
8942         * reload1.c (init_reload, new_insn_chain,
8943         has_nonexceptional_receiver, reload, copy_reloads,
8944         calculate_needs_all_insns, init_elim_table): Likewise.
8945         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
8946         * rtl.c (shallow_copy_rtx_stat): Likewise.
8947         * rtlanal.c (parms_set): Likewise.
8948         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
8949         sbitmap_resize, sbitmap_vector_alloc): Likewise.
8950         * sched-ebb.c (earliest_block_with_similiar_load,
8951         add_deps_for_risky_insns): Likewise.
8952         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
8953         schedule_region): Likewise.
8954         * see.c (eq_descriptor_pre_extension,
8955         hash_descriptor_pre_extension, hash_del_pre_extension,
8956         eq_descriptor_properties, hash_descriptor_properties,
8957         hash_del_properties, see_seek_pre_extension_expr,
8958         see_initialize_data_structures, see_print_register_properties,
8959         see_print_pre_extension_expr, see_delete_merged_def_extension,
8960         see_delete_unmerged_def_extension, see_emit_use_extension,
8961         see_pre_delete_extension, see_map_extension, see_commit_changes,
8962         see_analyze_merged_def_local_prop,
8963         see_analyze_merged_def_local_prop,
8964         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
8965         see_set_prop_merged_def, see_set_prop_unmerged_def,
8966         see_set_prop_unmerged_use, see_print_one_extension,
8967         see_merge_one_use_extension, see_merge_one_def_extension,
8968         see_store_reference_and_extension, see_update_uses_relevancy,
8969         see_update_defs_relevancy): Likewise.
8970         * statistics.c (hash_statistics_hash, hash_statistics_eq,
8971         hash_statistics_free, curr_statistics_hash): Likewise.
8972         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
8973         expand_asm_operands, expand_return, case_bit_test_cmp,
8974         expand_case): Likewise.
8975         * stor-layout.c (start_record_layout): Likewise.
8976         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
8977         gt_pch_save_stringpool): Likewise.
8978         * tree-data-ref.c (hash_stmt_vertex_info,
8979         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
8980         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
8981
8982 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
8983
8984         PR target/36627
8985         * config/i386/i386.md : Change constraints of HImode and QImode
8986         immediate operands from "i" to "n".  Change SImode "ni" constraint to
8987         "i" and SImode "rmi" constraint to "g".  Remove all constraints
8988         from const0_operand and const1_operand predicated operands.
8989         (i): Change QImode and HImode attribute from "i" to "n".
8990         (*subqi_2): Change HImode operands to QImode.
8991         (*subqi_3): Ditto.
8992
8993 2008-06-25  Olivier Hainque  <hainque@adacore.com>
8994
8995         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
8996         sed substitutions.
8997
8998 2008-06-25  Richard Guenther  <rguenther@suse.de>
8999
9000         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9001         not overflow the result type.
9002
9003 2008-06-25  Richard Guenther  <rguenther@suse.de>
9004
9005         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9006         (vn_lookup): Likewise.
9007
9008 2008-06-25  Richard Guenther  <rguenther@suse.de>
9009
9010         PR tree-optimization/35518
9011         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9012         * tree-sra.c (instantiate_element): Use fold_build3 to build
9013         BIT_FIELD_REFs.
9014         (try_instantiate_multiple_fields): Likewise.
9015
9016 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9017
9018         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9019         be early clobbers.
9020
9021 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9022
9023         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9024         use_backchain_to_restore_sp to true
9025         if the offset of the link register save area would go over the 32k - 1
9026         offset limit of the load
9027         instructions.
9028
9029 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9030
9031         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9032         anchor for the type-punning blurb.  Cross-reference "Structures
9033         unions enumerations and bit-fields implementation".  Provide a
9034         cast-through-pointer example.  Make final sentence self-contained.
9035         * doc/implement-c.texi (Structures unions enumerations and
9036         bit-fields implementation): Cross-reference the type-punning blurb
9037         in the -fstrict-aliasing documentation.
9038
9039 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9040
9041         PR middle-end/36594
9042         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9043         the memory instead of the memory itself for the save area.
9044
9045 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9046             Nicolas Roche  <roche@adacore.com>
9047
9048         * gengtype.c (srcdir_len): size_t instead of int.
9049         (get_file_realbasename): New function.  For F a filename, the real
9050         basename of F, with all the path components stripped.
9051         (get_file_srcdir_relative_path): New function.  For F a filename, the
9052         relative path to F from $(srcdir).
9053         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9054         get_file_realbasename.  Adjust the head comment.
9055         (get_prefix_langdir_index): New function. For F a filename, return the
9056         lang_dir_names[] relative index of the language directory that is
9057         a prefix in F.
9058         (get_file_langdir): For F a filename, return the name of the language
9059         directory where F is located.
9060         (get_file_gtfilename): New function. The gt- output file name for an
9061         input filename F.
9062         (get_output_file_with_visibility): Replace in-line computations with
9063         uses of get_file_gtfilename and get_prefix_langdir_index.
9064         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9065
9066 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9067
9068         PR tree-optimization/36504
9069         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9070         references without base address.
9071
9072 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9073
9074         PR middle-end/36584
9075         * calls.c (expand_call): Increase alignment for recursive functions.
9076
9077 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9078
9079         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9080         (TARGET_FUNCTION_VALUE): New define.
9081         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9082         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9083
9084 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9085
9086         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9087         (fmod<mode>3): Ditto.
9088         (remainderxf3): Ditto.
9089         (remainder<mode>3): Ditto.
9090
9091 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
9092
9093         PR target/36533
9094         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9095         REG is a hard register.
9096
9097         PR tree-optimization/36508
9098         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9099         499, don't check it at all in release compilers.
9100
9101 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9102
9103         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9104         together with SSE_TARGET_MATH to disable insn pattern.
9105         (*fop_<MODEF:mode>_2_i387): Ditto.
9106         (*fop_<MODEF:mode>_3_i387): Ditto.
9107
9108 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
9109
9110         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9111
9112 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9113
9114         PR middle-end/34906
9115         * gimplify.c (gimplify_asm_expr): Check the return code of
9116         parse_output_constraint call, set function return and is_inout
9117         value if it failed.
9118
9119 2008-06-22  Ian Lance Taylor  <iant@google.com>
9120
9121         * c-lex.c (narrowest_unsigned_type): Change itk to int.
9122         (narrowest_signed_type): Likewise.
9123         * c-typeck.c (c_common_type): Change local variable mclass to enum
9124         mode_class, twice.
9125         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9126         tcc_comparison, not the tree code itself.
9127         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9128         (c_expand_expr): Cast modifier to enum expand_modifier.
9129         * c-common.h (C_RID_CODE): Add casts.
9130         (C_SET_RID_CODE): Define.
9131         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9132         (c_lex_one_token): Add cast to avoid warning.
9133         (c_parser_objc_type_name): Rename local typename to type_name.
9134         (check_no_duplicate_clause): Change code parameter to enum
9135         omp_clause_code.
9136         (c_parser_omp_var_list_parens): Change kind parameter to enum
9137         omp_clause_code.
9138         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9139         c_parser_omp_list_var_parens.
9140         (c_parser_omp_threadprivate): Likewise.
9141         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9142         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9143         * c-format.c (NO_FMT): Define.
9144         (printf_length_specs): Use NO_FMT.
9145         (asm_fprintf_length_specs): Likewise.
9146         (gcc_diag_length_specs): Likewise.
9147         (scanf_length_specs): Likewise.
9148         (strfmon_length_specs): Likewise.
9149         (gcc_gfc_length_specs): Likewise.
9150         (printf_flag_specs): Change 0 to STD_C89.
9151         (asm_fprintf_flag_specs): Likewise.
9152         (gcc_diag_flag_specs): Likewise.
9153         (gcc_cxxdiag_flag_specs): Likewise.
9154         (scanf_flag_specs): Likewise.
9155         (strftime_flag_specs): Likewise.
9156         (strfmon_flag_specs): Likewise.
9157         (print_char_table): Likewise.
9158         (asm_fprintf_char_table): Likewise.
9159         (gcc_diag_char_table): Likewise.
9160         (gcc_tdiag_char_table): Likewise.
9161         (gcc_cdiag_char_table): Likewise.
9162         (gcc_cxxdiag_char_table): Likewise.
9163         (gcc_gfc_char_table): Likewise.
9164         (scan_char_table): Likewise.
9165         (time_char_table): Likewis.
9166         (monetary_char_table): Likewise.
9167         * c-format.h (BADLEN): Likewise.
9168
9169 2008-06-21  Ian Lance Taylor  <iant@google.com>
9170
9171         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9172         Define END_OF_BASE_TREE_CODES around inclusion.
9173         * tree.c (tree_code_type): New global array.
9174         (tree_code_length, tree_code_name): Likewise.
9175         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9176         $(lang_tree_files).
9177         (all-tree.def, s-alltree): New targets.
9178         (gencheck.h, s-gencheck): Remove.
9179         (tree.o): Depend upon all-tree.def.
9180         (build/gencheck.o): Remove gencheck.h dependency.
9181         (mostlyclean): Don't remove gencheck.h.
9182         * c-common.h (enum c_tree_code): Remove.
9183         * c-lang.c (tree_code_type): Remove.
9184         (tree_code_length, tree_code_name): Remove.
9185         * gencheck.c (tree_codes): Include all-tree.def, rather than
9186         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
9187         after it is used.
9188         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9189         than tree.def.
9190         * cp/cp-tree.h (enum cplus_tree_code): Remove.
9191         (operator_name_info): Size to MAX_TREE_CODES.
9192         (assignment_operator_name_info): Likewise.
9193         * cp/cp-lang.c (tree_code_type): Remove.
9194         (tree_code_length, tree_code_name): Remove.
9195         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9196         (assignment_operator_name_info): Likewise.
9197         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9198         MAX_TREE_CODES.
9199         * cp/mangle.c (write_expression): Likewise.
9200         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9201         * fortran/f95-lang.c (tree_code_type): Remove.
9202         (tree_code_length, tree_code_name): Remove.
9203         * java/java-tree.h (enum java_tree_code): Remove.
9204         * java/lang.c (tree_code_type): Remove.
9205         (tree_code_length, tree_code_name): Remove.
9206         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9207         * objc/objc-act.h (enum objc_tree_code): Remove.
9208         * objc/objc-lang.c (tree_code_type): Remove.
9209         (tree_code_length, tree_code_name): Remove.
9210         * objcp/objcp-lang.c (tree_code_type): Remove.
9211         (tree_code_length, tree_code_name): Remove.
9212         * ada/ada-tree.h (enum gnat_tree_code): Remove.
9213         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9214         * ada/misc.c (tree_code_type): Remove.
9215         (tree_code_length, tree_code_name): Remove.
9216
9217 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
9218
9219         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9220         the grand_bitmap_obstack.
9221
9222 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9223
9224         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9225         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9226         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9227         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9228         move_stmt_r, new_label_mapper): Likewise.
9229         * tree-complex.c (cvc_lookup): Likewise.
9230         * tree-dfa.c (create_function_ann): Likewise.
9231         * tree-dump.c (dump_register): Likewise.
9232         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9233         find_phi_replacement_condition): Likewise.
9234         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9235         tree_function_versioning): Likewise.
9236         * tree-into-ssa.c (cmp_dfsnum): Likewise.
9237         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9238         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9239         get_nonlocal_debug_decl, convert_nonlocal_reference,
9240         convert_nonlocal_omp_clauses, get_local_debug_decl,
9241         convert_local_reference, convert_local_omp_clauses,
9242         convert_nl_goto_reference, convert_nl_goto_receiver,
9243         convert_tramp_reference, convert_call_expr): Likewise.
9244         * tree-outof-ssa.c (contains_tree_r): Likewise.
9245         * tree-parloops.c (reduction_phi, initialize_reductions,
9246         eliminate_local_variables_1, add_field_for_reduction,
9247         add_field_for_name, create_phi_for_local_result,
9248         create_call_for_reduction_1, create_loads_for_reductions,
9249         create_stores_for_reduction, create_loads_and_stores_for_name):
9250         Likewise.
9251         * tree-phinodes.c (allocate_phi_node): Likewise.
9252         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9253         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9254         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9255         * tree-ssa-coalesce.c (compare_pairs): Likewise.
9256         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9257         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9258         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9259         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9260         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9261         vn_nary_op_insert): Likewise.
9262         * tree-ssa.c (redirect_edge_var_map_add,
9263         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9264         * tree-vectorizer.c (vectorize_loops): Likewise.
9265         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9266         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9267         tree_cons_stat, build1_stat, build_variant_type_copy,
9268         decl_init_priority_lookup, decl_fini_priority_lookup,
9269         decl_priority_info, decl_restrict_base_lookup,
9270         decl_restrict_base_insert, decl_debug_expr_lookup,
9271         decl_debug_expr_insert, decl_value_expr_lookup,
9272         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9273         type_hash_add, get_file_function_name, tree_check_failed,
9274         tree_not_check_failed, tree_range_check_failed,
9275         omp_clause_range_check_failed, build_omp_clause,
9276         build_vl_exp_stat): Likewise.
9277         * value-prof.c (gimple_histogram_value,
9278         gimple_duplicate_stmt_histograms): Likewise.
9279         * var-tracking.c (attrs_list_insert, attrs_list_copy,
9280         unshare_variable, variable_union_info_cmp_pos, variable_union,
9281         dataflow_set_different_1, dataflow_set_different_2,
9282         vt_find_locations, variable_was_changed, set_variable_part,
9283         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9284         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9285         section_entry_hash, object_block_entry_eq,
9286         object_block_entry_hash, create_block_symbol,
9287         initialize_cold_section_name, default_function_rodata_section,
9288         strip_reg_name, set_user_assembler_name, const_desc_eq,
9289         build_constant_desc, output_constant_def, lookup_constant_def,
9290         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9291         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9292         default_internal_label): Likewise.
9293         * varray.c (varray_init, varray_grow): Likewise.
9294         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9295
9296 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
9297
9298         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9299         operators for "test" insn.  Macroize insn using SWI mode macro.
9300         (*jcc_fused_2): Ditto.
9301         (*jcc_fused_3): Macroize insn using SWI mode macro.
9302         (*jcc_fused_4): Ditto.
9303
9304 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
9305
9306         * tree-ssa-pre.c: Fix typo in comment.
9307         (init_antic, fini_antic): Add explicit funtions for
9308         initializing and deinitializing ANTIC and AVAIL sets.
9309         (create_expression_by_pieces): Fix typo in comment.
9310         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9311         (execute_pre): Eventually dump details about ANTIC_IN.
9312
9313 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9314
9315         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9316         * gcc.c (translate_options, init_spec, store_arg, read_specs,
9317         add_to_obstack, file_at_path, find_a_file, execute,
9318         add_preprocessor_option, add_assembler_option, add_linker_option,
9319         process_command, insert_wrapper, do_option_spec, do_self_spec,
9320         spec_path, do_spec_1, is_directory, main, used_arg,
9321         getenv_spec_function): Likewise.
9322         * tlink.c (symbol_hash_lookup, file_hash_lookup,
9323         demangled_hash_lookup, symbol_push, file_push, frob_extension):
9324         Likewise.
9325
9326 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9327
9328         * doc/rtl.texi: Updated subreg section.
9329
9330 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9331
9332         PR c++/36523
9333         * cgraphunit.c (cgraph_process_new_functions): Don't clear
9334         node->needed and node->reachable.
9335         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9336         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9337         (expand_task_call): Don't call expand_task_copyfn.
9338         (expand_task_copyfn): Renamed to...
9339         (finalize_task_copyfn): ... this.
9340
9341 2008-06-19  Jan Hubicka  <jh@suse.cz>
9342
9343         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9344         clobbering framepointer.
9345
9346 2008-06-19  Jan Hubicka  <jh@suse.cz>
9347
9348         * tree-optimize.c (execute_early_local_optimizations): Set
9349         cgraph_state only at first invocation.
9350
9351 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9352
9353         * system.h (-Wc++-compat): Activate as a warning, no an error.
9354
9355 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9356
9357         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9358         instead of "#" in insn asm template.
9359         (*jcc_fused_2): Ditto.
9360
9361 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9362
9363         * config/i386/i386.h (ix86_tune_indices)
9364         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9365         (TARGET_FUSE_CMP_AND_BRANCH): New define.
9366         * config/i386/i386.md (*jcc_fused_1): New insn pattern
9367         (*jcc_fused_2): Ditto.
9368         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
9369         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
9370         (print operand): Handle 'E' and 'e' code.
9371
9372 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
9373
9374         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
9375         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9376         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9377
9378 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
9379
9380         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
9381         node->decl.
9382         (cgraph_expand_function): Use local copy of decl.
9383         (cgraph_expand_all_functions): Remove redundant initialization of
9384         order_pos.
9385         (cgraph_optimize): Reword internal_error message.
9386
9387 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
9388
9389         * arm-protos.h (arm_return_in_memory): Remove public
9390         arm_return_in_memory() prototype.
9391         * arm.c (arm_return_in_memory): Add static prototype, add target
9392         hook macro, change definition and comments.
9393         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
9394
9395 2008-06-19  Ben Elliston  <bje@au.ibm.com>
9396
9397         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
9398         real.c: Remove references to IEEE 754R.
9399         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
9400         * doc/libgcc.texi (Decimal float library routines): Likewise.
9401
9402 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9403
9404         * targhooks.h (struct gcc_target): New member unwind_word_mode.
9405         (default_unwind_word_mode): Add prototype.
9406         * targhooks.c (default_unwind_word_mode): New function.
9407         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
9408         instead of word_mode.
9409         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
9410         (TARGET_INITIALIZER): Use it.
9411
9412         * c-common.c (handle_mode_attribute): Support "unwind_word"
9413         mode attribute.
9414         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
9415
9416         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
9417         word_mode to access SjLj_Function_Context member "data".
9418         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
9419         conversion from targetm.eh_return_filter_mode () to
9420         targetm.unwind_word_mode () if they differ.
9421
9422         * builtin-types.def (BT_UNWINDWORD): New primitive type.
9423         (BT_FN_UNWINDWORD_PTR): New function type.
9424         (BT_FN_WORD_PTR): Remove.
9425         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
9426         * except.c (expand_builtin_extend_pointer): Convert pointer to
9427         targetm.unwind_word_mode () instead of word_mode.
9428
9429         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
9430         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
9431         (spu_unwind_word_mode): New function.
9432         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
9433         (TARGET_UNWIND_WORD_MODE): Define.
9434         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
9435
9436 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9437
9438         * config/spu/spu.c (reg_align): Remove.
9439         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
9440         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
9441         (spu_split_store): Likewise.
9442
9443 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9444
9445         * gcc/tree-vn.c: Fix typo in comment.
9446
9447 2008-06-18  Jan Hubicka  <jh@suse.cz>
9448
9449         * cgraphunit.c (cgraph_optimize): Output debug info when doing
9450         toplevel reorder too.
9451
9452 2008-06-18  Jan Hubicka  <jh@suse.cz>
9453
9454         * c-opts.c (c_common_post_options): PCH is not compatible with
9455         no-unit-at-a-time.
9456         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
9457         -fno-toplevel-reorder by default now.
9458
9459 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9460
9461         PR documentation/30739
9462         * doc/install.texi (Prerequisites): Document dependency on awk.
9463
9464 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
9465             Ian Lance Taylor  <iant@google.com>
9466
9467         PR rtl-optimization/35604
9468         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9469         only want to change jump destinations, not eventual label comparisons.
9470
9471 2008-06-16  Jan Hubicka  <jh@suse.cz>
9472
9473         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9474         syntax errors.
9475         (cgraph_analyze_function): Likewise.
9476
9477 2008-06-16  Jan Hubicka  <jh@suse.cz>
9478
9479         * cgraph.h (cgraph_mark_if_needed): New function.
9480         * cgraphunit.c (cgraph_mark_if_needed): New function.
9481         * c-decl.c (duplicate_decl): Use it.
9482
9483 2008-06-16  Jan Hubicka  <jh@suse.cz>
9484
9485         * cgraph.c (cgraph_add_new_function): When in expansion state, do
9486         lowering.
9487
9488 2008-06-16  Jan Hubicka  <jh@suse.cz>
9489
9490         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
9491
9492 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
9493             Kazu Hirata  <kazu@codesourcery.com>
9494             Maxim Kuvyrkov  <maxim@codesourcery.com
9495
9496         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
9497         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
9498         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
9499         EXTRA_SPEC_FUNCTIONS.
9500         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
9501         (DRIVER_SELF_SPECS): Adjust.
9502         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
9503         * config/mips/st.h, config/mips/t-st: New.
9504         * config/mips/driver-native.c, config/mips/x-native: New.
9505         * doc/invoke.texi (MIPS): Document 'native' value for -march and
9506         -mtune options.
9507
9508 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9509
9510         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
9511         from it.
9512         (ISA_HAS_FP_CONDMOVE): New macro.
9513         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
9514         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
9515         (ISA_HAS_NMADD3_NMSUB3): New macro.
9516         * config/mips/mips.c (mips_rtx_costs): Update.
9517         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
9518         compiling for ST Loongson 2E/2F.
9519         (madd<mode>): Rename to madd4<mode>.  Update.
9520         (madd3<mode>): New pattern.
9521         (msub<mode>): Rename to msub4<mode>.  Update.
9522         (msub3<mode>): New pattern.
9523         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
9524         (nmadd3<mode>): New pattern.
9525         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
9526         (nmadd3<mode>_fastmath): New pattern.
9527         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
9528         (nmsub3<mode>): New pattern.
9529         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
9530         (nmsub3<mode>_fastmath): New pattern.
9531         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
9532
9533 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
9534
9535         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
9536         (DF_REF_INSN_INFO): New.
9537         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
9538         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
9539         with a NULL DF_REF_INSN_INFO.
9540         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
9541         DF_INSN_SET.
9542         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
9543         DF_INSN_INFO_EQ_USES): New.
9544         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
9545         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
9546         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
9547         * df-core.c: Update comment for above changes.
9548         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
9549         DF_INSN_UID_* macros.
9550         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
9551         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
9552         insn rtx.  Update all callers.
9553         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
9554         df_ref_create_structure, df_insn_refs_collect): Likewise.
9555         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
9556         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
9557         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
9558         macros to access the insn refs.
9559         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
9560         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
9561         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
9562         for accessing the refs.
9563         (try_fwprop_subst): Likewise.
9564         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
9565         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
9566         for accessing the refs.
9567         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
9568         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
9569         to look at the insn refs.
9570         (record_uses): Likewise.
9571         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
9572         function anymore.
9573         (mark_artificial_uses): Don't mark_insn for artificial refs.
9574         (mark_reg_rependencies): Likewise.
9575
9576         * doc/rtl.texi: Remove documentation of ADDRESSOF.
9577
9578 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9579
9580         * configure: Regenerate.
9581
9582 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9583
9584         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
9585         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9586         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9587
9588 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9589
9590         * config/avr/avr.c (avr_mcu_t): Add attiny167.
9591         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9592         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9593
9594 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9595
9596         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
9597         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9598         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9599
9600 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
9601
9602         * tree-ssa-sccvn.c: Fix format of comments.
9603
9604 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
9605
9606         * cgraph.c: Remove unneeded forward declarations of eq_node()
9607         and hash_node().
9608
9609 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
9610
9611         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
9612         REG_RETVAL notes.
9613         (see_update_relevancy): Likewise.
9614         * fwprop.c (try_fwprop_subst): Likewise.
9615         * rtlanal.c (noop_move_p): Likewise.
9616         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
9617         notes to non-existing libcall blocks.
9618         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
9619         Remove orig_set.
9620         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
9621         (dead_libcall_p): Remove.
9622         (delete_trivially_dead_insns): Don't use it.
9623         * web.c (union_defs): Remove comment about keeping nops.
9624         * gcse.c (hash_scan_insn): Don't take libcall pointers.
9625         (compute_hash_table_work): Don't track libcall notes.
9626         (do_local_cprop): Don't take libcall pointers.  Don't update
9627         libcall notes.
9628         (adjust_libcall_notes): Deleted.
9629         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
9630         ever have existed in the first place).
9631         (replace_store_insn): Don't try to remove libcall notes.
9632         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
9633         (resolve_reg_notes): Don't call them.
9634         (resolve_simple_move): Likewise.
9635         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
9636         Don't remove REG_RETVAL notes.
9637         * emit-rtl.c (try_split): Don't update libcall notes.
9638         (emit_copy_of_insn_after): Dito.
9639         * cselib.c (cselib_current_insn_in_libcall): Remove.
9640         (cselib_process_insn): Don't set/clear it.
9641         (new_elt_loc_list): Don't record it.
9642         (cselib_init): Don't initialize it.
9643         * cselib.c (struct elt_loc_list): Remove in_libcall field.
9644         * loop-invariant.c (find_invariant_insn): Don't look for libcall
9645         notes.
9646         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
9647         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
9648         (init_deps): Don't initialize it.
9649         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
9650         * combine.c (delete_noop_moves): Don't update libcall notes.
9651         (can_combine_p): Remove now pointless #if 0 block.
9652         (try_combine): Remove another obsolete #if 0 block.
9653         (distribute_notes): Don't distribute libcall notes.
9654         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
9655         * dce.c (libcall_dead_p): Remove.
9656         (delete_unmarked_insns): Don't handle libcall blocks.
9657         (preserve_libcall_for_dce): Remove.
9658         (prescan_insns_for_dce): Don't special-case libcall block insns.
9659         * reload1 (reload): Don't handle libcall notes.
9660         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
9661         documentation.
9662
9663 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
9664
9665         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
9666         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9667         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9668
9669 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
9670
9671         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
9672         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9673         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9674
9675 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9676
9677         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
9678
9679 2008-06-16  Ira Rosen  <irar@il.ibm.com>
9680
9681         PR tree-optimization/36493
9682         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
9683         the arguments list. Use VECTYPE to create vector pointer.
9684         (vectorizable_store): Fail if accesses through a pointer to vectype
9685         do not alias the original memory reference operands.
9686         Call vect_create_data_ref_ptr without the removed argument.
9687         (vectorizable_load): Likewise.
9688         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
9689         removed argument.
9690
9691 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
9692
9693         PR target/36336
9694         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
9695         reg_equiv_constant.
9696
9697 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9698
9699         * config/mips/loongson2ef.md: New file.
9700         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9701         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9702         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9703         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
9704         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
9705         and loongson_2f.
9706         (loongson2ef.md): New include.
9707         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
9708         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
9709         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
9710         (loongson_gt_<mode>, loongson_extract_halfword)
9711         (loongson_insert_halfword_0, loongson_insert_halfword_2)
9712         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
9713         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
9714         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
9715         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
9716         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
9717         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
9718         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
9719         (vec_interleave_low<mode>): Define type attribute.
9720         * config/mips/mips.c (mips_ls2): New static variable.
9721         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
9722         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
9723         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
9724         Implement target scheduling hooks.
9725         (mips_multipass_dfa_lookahead): Update to handle tuning for
9726         Loongson 2E/2F.
9727         (mips_sched_init): Initialize data for Loongson scheduling.
9728         (mips_ls2_variable_issue): New static function.
9729         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
9730         Add sanity check.
9731         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
9732         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
9733         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
9734         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
9735         Handle ST Loongson 2E/2F cores.
9736         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
9737
9738 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9739
9740         * omp-low.c (extract_omp_for_data): Fix comment typo.
9741         * c.opt: Fix typo.
9742
9743 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9744
9745         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
9746         FIXME note about gcc/config.guess.
9747         * doc/options.texi (Option file format): Remove non-ASCII bytes.
9748         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
9749         * doc/cppopts.texi: Likewise.
9750         * doc/extend.texi: Likewise.
9751         * doc/gcc.texi: Likewise.
9752         * doc/gccint.texi: Likewise.
9753         * doc/gcov.texi: Likewise.
9754         * doc/gty.texi: Likewise.
9755         * doc/hostconfig.texi: Likewise.
9756         * doc/install.texi: Likewise.
9757         * doc/invoke.texi: Likewise.
9758         * doc/loop.texi: Likewise.
9759         * doc/makefile.texi: Likewise.
9760         * doc/md.texi: Likewise.
9761         * doc/passes.texi: Likewise.
9762         * doc/tm.texi: Likewise.
9763         * doc/tree-ssa.texi: Likewise.
9764         * doc/trouble.texi: Likewise.
9765
9766 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
9767             Nathan Sidwell  <nathan@codesourcery.com>
9768             Maxim Kuvyrkov  <maxim@codesourcery.com>
9769             Richard Sandiford  <rdsandiford@googlemail.com>
9770
9771         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
9772         * config/mips/mips-protos.h (mips_expand_vector_init): New.
9773         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
9774         builtins.
9775         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
9776         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
9777         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
9778         V8QImode cases.
9779         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
9780         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
9781         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
9782         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
9783         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
9784         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
9785         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
9786         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
9787         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
9788         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
9789         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
9790         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
9791         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
9792         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
9793         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
9794         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
9795         (mips_builtins): Add Loongson builtins.
9796         (mips_loongson_2ef_bdesc): New.
9797         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
9798         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
9799         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
9800         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
9801         New.
9802         (mips_expand_vector_init): New.
9803         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
9804         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
9805         if appropriate.
9806         * config/mips/mips.md: Add unspec numbers for Loongson
9807         builtins.  Include loongson.md.
9808         (MOVE64): Include Loongson vector modes.
9809         (SPLITF): Include Loongson vector modes.
9810         (HALFMODE): Handle Loongson vector modes.
9811         * config/mips/loongson.md: New.
9812         * config/mips/loongson.h: New.
9813         * config.gcc: Add loongson.h header for mips*-*-* targets.
9814         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
9815
9816 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
9817
9818         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
9819         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
9820         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
9821         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
9822         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
9823         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
9824         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
9825         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
9826         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
9827         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
9828         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
9829         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
9830         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
9831         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
9832         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
9833         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
9834         Remove use_fixproto=yes.
9835         (ia64*-*-hpux*): Remove comment about using fixproto.
9836         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
9837
9838 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9839
9840         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
9841         library rebuilds.
9842         * configure: Regenerate.
9843
9844 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9845
9846         PR middle-end/36520
9847         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
9848         before evaluating it.
9849
9850 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
9851
9852         PR c/36507
9853         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
9854         nested inline functions.
9855         (start_decl, start_function): Don't invert DECL_EXTERNAL
9856         for nested inline functions.
9857
9858 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
9859
9860         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
9861         splits that must be made for correctness.
9862
9863 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
9864
9865         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
9866         (AVAIL_NON_MIPS16): Likewise.
9867         (mips_builtin_description): Replace target_flags with a predicate.
9868         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
9869         (dspr2_32): New availability predicates.
9870         (MIPS_BUILTIN): New macro.
9871         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
9872         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
9873         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
9874         Replace the TARGET_FLAGS parameters with AVAIL parameters.
9875         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
9876         (mips_dsp_32only_bdesc): Merge into...
9877         (mips_builtins): ...this new array.
9878         (mips_bdesc_map, mips_bdesc_arrays): Delete.
9879         (mips_init_builtins): Update after above changes.
9880         (mips_expand_builtin_1): Merge into...
9881         (mips_expand_builtin): ...here and update after above changes.
9882
9883 2008-06-12  Paul Brook  <paul@codesourcery.com>
9884
9885         * longlong.h (__arm__): Define count_leading_zeros.
9886         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
9887         (clzsi2, clzdi2): New functions.
9888         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
9889         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
9890         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
9891         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
9892         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
9893         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
9894         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
9895         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
9896         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
9897         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
9898
9899 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
9900
9901         * config/m68k/m68k.c (m68k_tune_flags): New.
9902         (override_options): Compute m68k_tune_flags.
9903         (MULL_COST, MULW_COST): Update for various variants of CFV2.
9904         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
9905
9906 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
9907
9908         PR middle-end/36506
9909         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
9910
9911 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
9912
9913         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
9914         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
9915
9916 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
9917
9918         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
9919         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
9920
9921 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
9922
9923         PR middle-end/36506
9924         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
9925         reductions.
9926
9927 2008-06-12  Richard Guenther  <rguenther@suse.de>
9928
9929         PR tree-optimization/36345
9930         * tree-flow.h (struct ptr_info_def): Align escape_mask,
9931         add memory_tag_needed flag.
9932         (may_alias_p): Declare.
9933         * tree-ssa-alias.c (may_alias_p): Export.
9934         (set_initial_properties): Use memory_tag_needed flag.
9935         (update_reference_counts): Likewise.
9936         (reset_alias_info): Reset memory_tag_needed flag.
9937         (create_name_tags): Check memory_tag_needed flag.
9938         (dump_points_to_info_for): Dump it.
9939         * tree-ssa-structalias.c (struct variable_info): Remove
9940         directly_dereferenced flag.
9941         (new_var_info): Do not initialize it.
9942         (process_constraint_1): Do not set it.
9943         (update_alias_info): Set is_dereferenced flag.
9944         (set_uids_in_ptset): Use may_alias_p.
9945         (set_used_smts): Check memory_tag_needed flag.
9946         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
9947         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
9948         memory_tag_needed flag.
9949         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
9950         from broken design.
9951
9952 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
9953
9954         * config/i386/i386.c (ix86_compute_frame_layout): Disable
9955         red zone for w64 abi.
9956         (ix86_expand_prologue): Likewise.
9957         (ix86_force_to_memory): Likewise.
9958         (ix86_free_from_memory): Likewise.
9959
9960 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
9961
9962         PR target/36425
9963         * config/rs6000/rs6000.c (rs6000_override_options): Set
9964         rs6000_isel conditionally to the absence of comand line override.
9965         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9966         Remove duplicate rs6000_isel setting.
9967         * config/rs6000/eabispe.h: Ditto.
9968
9969 2008-06-11  Richard Guenther  <rguenther@suse.de>
9970
9971         * alias.c (get_alias_set): Use the element alias-set for arrays.
9972         (record_component_aliases): For arrays and vectors do nothing.
9973         * c-common.c (strict_aliasing_warning): Handle the cases
9974         of alias set zero explicitly.
9975         * Makefile.in (dfp.o-warn): Add -Wno-error.
9976
9977 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
9978
9979         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
9980         tune_32 tune_64.
9981         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
9982         tune_32 tune_64 to supported_defaults.  Allow values not
9983         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
9984         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
9985         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
9986         with_cpu_64 to generic for 64-bit-supporting configurations, not
9987         with_cpu.  Remove FIXMEs.
9988         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
9989         --with-arch-64, --with-tune-32, --with-tune-64): Document.
9990         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
9991         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
9992         arch_32 and arch_64.
9993
9994 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9995             Olivier Hainque  <hainque@adacore.com>
9996
9997         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
9998         Use DECL_SIZE_UNIT to retrieve the size of the field.
9999
10000 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10001
10002         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10003         with function calls after declarations.  Lay out
10004         neon_float_type_node before further use.
10005
10006 2008-06-11  Richard Guenther  <rguenther@suse.de>
10007
10008         * tree-flow.h (may_point_to_global_var): Declare.
10009         * tree-ssa-alias.c (may_point_to_global_var): New function.
10010         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10011
10012 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10013
10014         * configure.ac: Teach that fido supports .debug_line.
10015         * configure: Regenerate.
10016
10017 2008-06-10  Tom Tromey  <tromey@redhat.com>
10018
10019         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10020         debug hook.
10021
10022 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10023
10024         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10025         (encode_decimal64, decode_decimal64, encode_decimal128,
10026         decode_decimal128): Reverse order of 32-bit parts of value if host
10027         and target endianness differ.
10028
10029 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10030
10031         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10032         Avoid division by 0.
10033         (tree_mod_pow2_value_transform): Likewise.
10034         (tree_ic_transform): Likewise.
10035         (tree_stringops_transform): Likewise.
10036         (tree_mod_subtract_transform): Likewise.
10037         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10038         (copy_edges_for_bb): Likewise.
10039         (initialize_cfun): Likewise.
10040
10041 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10042
10043         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10044         nonmemory_operand. Add "N" operand constraint.
10045         (*btsi): Ditto.
10046         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10047         (*jcc_btsi_mask): Ditto.
10048         (*jcc_btsi_mask_1): Ditto.
10049
10050 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10051
10052         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10053         TYPE_CANONICAL for copied element type.
10054
10055 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10056
10057         PR target/36473
10058         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10059         Add m_CORE2 and m_GENERIC.
10060         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10061         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10062         (*btsi): Ditto.
10063         (*jcc_btdi_rex64): New instruction and split pattern.
10064         (*jcc_btsi): Ditto.
10065         (*jcc_btsi_1): Ditto.
10066         (*btsq): Fix Intel asm dialect operand order.
10067         (*btrq): Ditto.
10068         (*btcq): Ditto.
10069
10070 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10071
10072         PR middle-end/36447
10073         * simplify-rtx.c (simplify_subreg): Add check for shift count
10074         greater than size.
10075
10076 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10077
10078         * doc/md.texi: Synchronize with later constraints.md change.
10079         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10080         with a C implementation.
10081         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10082         MFLO handling.
10083         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10084         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10085         when moving to and from MD_REGNUM.
10086         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10087         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10088         Handle byte and halfword moves.
10089         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10090         separately.
10091         * config/mips/constraints.md (h): Turn into NO_REGS.
10092         (l, x): Update documentation.
10093         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10094         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10095         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10096         (HILO): New mode iterator.
10097         (MOVE128): Add TI.
10098         (any_div): New code iterator.
10099         (u): Extend code attribute to div and udiv.
10100         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10101         d_operand in the splitters.  Remove redundant CONST_INT checks.
10102         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10103         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10104         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
10105         accordingly, using normal moves instead of unspecs to move LO into
10106         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
10107         (<u>mulsidi3): Handle expansion in C code.
10108         (<u>mulsidi3_32bit_internal): Rename to...
10109         (<u>mulsidi3_32bit): ...this.
10110         (<u>mulsidi3_32bit_r4000): Fix insn separator.
10111         (*<u>mulsidi3_64bit): Rename to...
10112         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
10113         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
10114         to set LO and HI to the multiplication result.  Use a normal move
10115         for MFLO and an unspec for MFHI.
10116         (*<u>mulsidi3_64bit_parts): Replace with...
10117         (<u>mulsidi3_64bit_hilo): ...this new instruction.
10118         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10119         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10120         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
10121         instead of HI.  Split the instruction into a separate multiplication
10122         and MFHI if !TARGET_FIX_R4000.
10123         (<su>muldi3_highpart): Likewise.
10124         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10125         and the "=h" clobber.
10126         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10127         (<u>mulditi3): New expander.
10128         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10129         (madsi): Remove "=h" clobber.
10130         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10131         Force the modulus result to be a GPR and split the instruction into
10132         a division followed by an MFHI after reload.
10133         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10134         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
10135         the MIPS16 HIGH define_split.
10136         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10137         of acc<->gpr moves to "multi".
10138         (*movdi_64bit): Replace the single "x" alternative with
10139         alternatives for moving into and out of "a".
10140         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
10141         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10142         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10143         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
10144         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
10145         (movti): New expander.
10146         (*movti, *movti_mips16): New insns.
10147         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10148         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10149         (mthi<GPR:mode>_<HILO:mode>): Likewise.
10150         * config/mips/predicates.md (fpr_operand): Delete.
10151         (d_operand): New predicate.
10152
10153 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
10154
10155         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10156         failure on some Bourne shells.
10157         (x86_64-*-*): Ditto.
10158
10159 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
10160
10161         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10162
10163 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10164
10165         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10166         (sparc-sun-solaris2*): Likewise.
10167
10168 2008-06-09  Arnaud Charlet  <charlet@adacore.com
10169
10170         * doc/install.texi: Update requirements to build the Ada compiler.
10171
10172 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10173
10174         * df-scan.c (struct df_scan_problem_data): Remove the
10175         mw_link_pool alloc pool.
10176         (df_scan_free_internal): Don't free it.
10177         (df_scan_alloc): Don't allocate it.
10178         * df.h (struct df_link): Update comment.
10179
10180 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
10181
10182         * except.h: Correct checks for when SJLJ exceptions must be used.
10183
10184 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10185
10186         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10187         default.
10188
10189 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
10190
10191         PR tree-optimization/36218
10192         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10193         configure for the build system.
10194         (BUILD_LDFLAGS): Define.
10195         * configure: Regenerate.
10196         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10197
10198 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
10199
10200         PR target/36424
10201         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10202         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10203         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10204
10205 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
10206
10207         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10208
10209 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
10210
10211         * config.gcc (Obsolete configurations): Remove list of
10212         configurations.
10213         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10214         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
10215         targets matched by those patterns.
10216         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10217         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10218         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10219         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10220         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10221         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10222         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10223         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10224         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10225         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10226         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10227         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10228         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10229         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10230         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10231         Make code for Solaris 7 and greater unconditional for Solaris.
10232         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10233         Remove --with-* handling.
10234         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10235         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10236         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10237         LINK_OS_WINDISS_SPEC): Remove.
10238         * config/rs6000/sysv4.opt (mwindiss): Remove.
10239         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10240         * configure: Regenerate.
10241         * doc/cpp.texi: Don't mention BeOS.
10242         * doc/extend.texi (interrupt): Don't mention MS1.
10243         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10244         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10245         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10246         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10247         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10248         Remove.
10249         * doc/invoke.texi (MT Options): Remove.
10250         (-mwindiss): Remove.
10251         (CRIS Options): Remove cris-axis-aout references.
10252         (HPPA Options): Don't mention hppa1.1-*-pro.
10253         * doc/md.texi: (MorphoTech family): Remove.
10254         * libgcc2.c: Don't handle UWIN.
10255         * config/alpha/t-unicosmk: Remove.
10256         * config/alpha/unicosmk.h: Remove.
10257         * config/arm/kaos-arm.h: Remove.
10258         * config/arm/kaos-strongarm.h: Remove.
10259         * config/arm/strongarm-coff.h: Remove.
10260         * config/arm/strongarm-elf.h: Remove.
10261         * config/arm/strongarm-pe.h: Remove.
10262         * config/arm/t-strongarm-pe: Remove.
10263         * config/arm/t-xscale-coff: Remove.
10264         * config/arm/t-xscale-elf: Remove.
10265         * config/arm/xscale-coff.h: Remove.
10266         * config/arm/xscale-elf.h: Remove.
10267         * config/chorus.h: Remove.
10268         * config/cris/aout.h: Remove.
10269         * config/cris/aout.opt: Remove.
10270         * config/cris/t-aout: Remove.
10271         * config/i386/beos-elf.h: Remove.
10272         * config/i386/kaos-i386.h: Remove.
10273         * config/i386/ptx4-i.h: Remove.
10274         * config/i386/sco5.h: Remove.
10275         * config/i386/sco5.opt: Remove.
10276         * config/i386/sysv4-cpp.h: Remove.
10277         * config/i386/sysv5.h: Remove.
10278         * config/i386/t-beos: Remove.
10279         * config/i386/t-sco5: Remove.
10280         * config/i386/t-uwin: Remove.
10281         * config/i386/uwin.asm: Remove.
10282         * config/i386/uwin.h: Remove.
10283         * config/kaos.h: Remove.
10284         * config/mips/windiss.h: Remove.
10285         * config/mt: Remove directory.
10286         * config/pa/pa-osf.h: Remove.
10287         * config/pa/pa-pro-end.h: Remove.
10288         * config/pa/t-pro: Remove.
10289         * config/ptx4.h: Remove.
10290         * config/rs6000/beos.h: Remove.
10291         * config/rs6000/kaos-ppc.h: Remove.
10292         * config/rs6000/t-beos: Remove.
10293         * config/rs6000/windiss.h: Remove.
10294         * config/sh/kaos-sh.h: Remove.
10295         * config/sol2-6.h: Remove.
10296         * config/sparc/sol26-sld.h: Remove.
10297         * config/sparc/sysv4-only.h: Remove.
10298         * config/vax/bsd.h: Remove.
10299         * config/vax/t-memfuncs: Remove.
10300         * config/vax/ultrix.h: Remove.
10301         * config/vax/vaxv.h: Remove.
10302         * config/windiss.h: Remove.
10303
10304 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
10305
10306         PR rtl-optimization/36438
10307         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10308         for vector shifts with constant scalar shift operands.
10309
10310 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
10311
10312         * doc/invoke.texi: Document -march=xlr.
10313         * config/mips/xlr.md: New file.
10314         * config/mips/mips.md: Include it.
10315         (cpu): Add "xlr".
10316         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10317         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10318         (mips_rtx_cost_data): Likewise.
10319
10320 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10321
10322         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10323         PRE_INC and PRE_DEC cases.
10324
10325 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10326
10327         PR rtl-optimization/36419
10328         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10329         the emitting jump insn.
10330
10331         PR target/36362
10332         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10333         is not bool, boolify the whole *expr_p and convert to the desired type.
10334
10335 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10336
10337         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10338         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10339         Add omp_private_outer_ref hook, add another argument to
10340         omp_clause_default_ctor hook.
10341         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10342         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10343         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10344         hook_tree_tree_tree_tree_null.
10345         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10346         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10347         * hooks.c (hook_tree_tree_tree_tree_null): New function.
10348         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10349         * tree.def (OMP_TASK): New tree code.
10350         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10351         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10352         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10353         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10354         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10355         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10356         OMP_CLAUSE_COLLAPSE_EXPR): Define.
10357         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10358         (OMP_DIRECTIVE_P): Add OMP_TASK.
10359         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10360         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10361         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10362         and OMP_CLAUSE_UNTIED entries.
10363         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
10364         num_ops to 2.
10365         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10366         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10367         * tree-pretty-print.c (dump_omp_clause): Handle
10368         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
10369         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10370         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
10371         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
10372         warning about unsigned iterators.  Change decl/init/cond/incr
10373         arguments to TREE_VECs, check arguments for all collapsed loops.
10374         (c_finish_omp_taskwait): New function.
10375         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
10376         ws_clauses.
10377         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
10378         default_function_array_conversion on init.  Add par_clauses argument.
10379         If decl is present in parallel's lastprivate clause, change it to
10380         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
10381         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
10382         collapse count in clauses.
10383         (c_parser_omp_for, c_parser_omp_parallel): Adjust
10384         c_parser_omp_for_loop callers.
10385         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
10386         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
10387         (c_parser_omp_clause_name): Handle collapse and untied clauses.
10388         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
10389         functions.
10390         (c_parser_omp_clause_schedule): Handle schedule(auto).
10391         Include correct location in the error message.
10392         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
10393         and PRAGMA_OMP_CLAUSE_UNTIED.
10394         (OMP_TASK_CLAUSE_MASK): Define.
10395         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
10396         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
10397         * tree-nested.c (convert_nonlocal_omp_clauses,
10398         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
10399         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
10400         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10401         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
10402         OMP_CLAUSE_DECL.
10403         (conver_nonlocal_reference, convert_local_reference,
10404         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
10405         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
10406         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
10407         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
10408         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
10409         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
10410         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
10411         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
10412         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10413         OMP_CLAUSE_UNTIED.
10414         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
10415         * c-common.h (c_finish_omp_taskwait): New prototype.
10416         * gimple-low.c (lower_stmt): Handle OMP_TASK.
10417         * tree-parloops.c (create_parallel_loop): Create 1 entry
10418         vectors for OMP_FOR_{INIT,COND,INCR}.
10419         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10420         (make_edges): Handle OMP_TASK.
10421         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
10422         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10423         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
10424         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
10425         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
10426         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10427         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10428         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
10429         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
10430         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
10431         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
10432         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
10433         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
10434         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
10435         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
10436         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
10437         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
10438         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
10439         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
10440         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
10441         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
10442         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
10443         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
10444         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
10445         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
10446         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
10447         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
10448         original iterator is present in lastprivate clause or if
10449         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
10450         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10451         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
10452         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
10453         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
10454         if it is set, lookup var in outer contexts too.  Handle
10455         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
10456         to be implicitly determined firstprivate for task regions.
10457         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
10458         if it is set, lookup var in outer contexts too.  Set
10459         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
10460         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
10461         OMP_CLAUSE_UNTIED.  Take region_type as last argument
10462         instead of in_parallel and in_combined_parallel.
10463         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
10464         Adjust callers.
10465         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10466         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
10467         (new_omp_context): Set default_kind to
10468         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10469         (omp_region_type): New enum.
10470         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10471         fields, add region_type.
10472         (new_omp_context): Take region_type as argument instead of is_parallel
10473         and is_combined_parallel.
10474         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10475         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10476         ctx->is_combined_parallel checks.
10477         (gimplify_omp_task): New function.
10478         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10479         OMP_CLAUSE_UNTIED.
10480         * omp-low.c (extract_omp_for_data): Use schedule(static)
10481         for schedule(auto).  Handle pointer and unsigned iterators.
10482         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
10483         Add loops argument.  Extract data for collapsed OMP_FOR loops.
10484         (expand_parallel_call): Assert sched_kind isn't auto,
10485         map runtime schedule to index 3.
10486         (struct omp_for_data_loop): New type.
10487         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
10488         Add loop, loops, collapse and iter_type fields.
10489         (workshare_safe_to_combine_p): Disallow combined for if
10490         iter_type is unsigned long long.  Don't combine collapse > 1 loops
10491         unless all bounds and steps are constant.  Adjust extract_omp_for_data
10492         caller.
10493         (expand_omp_for_generic): Handle pointer, unsigned and long long
10494         iterators.  Handle collapsed OMP_FOR loops.  Adjust
10495         for struct omp_for_data changes.  If libgomp function doesn't return
10496         boolean_type_node, add comparison of the return value with 0.
10497         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
10498         pointer, unsigned and long long iterators.  Adjust for struct
10499         omp_for_data changes.
10500         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
10501         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
10502         unsigned long long.  Allocate loops array, pass it to
10503         extract_omp_for_data.  For collapse > 1 loops use always
10504         expand_omp_for_generic.
10505         (omp_context): Add sfield_map and srecord_type fields.
10506         (is_task_ctx, lookup_sfield): New functions.
10507         (use_pointer_for_field): Use is_task_ctx helper.  Change first
10508         argument's type from const_tree to tree.  Clarify comment.
10509         In OMP_TASK disallow copy-in/out sharing.
10510         (build_sender_ref): Call lookup_sfield instead of lookup_field.
10511         (install_var_field): Add mask argument.  Populate both record_type
10512         and srecord_type if needed.
10513         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
10514         in srecord_type.
10515         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
10516         and DECL_FIELD_OFFSET.
10517         (scan_sharing_clauses): Adjust install_var_field callers.  For
10518         firstprivate clauses on explicit tasks allocate the var by value in
10519         record_type unconditionally, rather than by reference.
10520         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
10521         Use is_taskreg_ctx instead of is_parallel_ctx.
10522         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10523         (create_omp_child_function_name): Add task_copy argument, use
10524         *_omp_cpyfn* names if it is true.
10525         (create_omp_child_function): Add task_copy argument, if true create
10526         *_omp_cpyfn* helper function.
10527         (scan_omp_parallel): Adjust create_omp_child_function callers.
10528         Rename parallel_nesting_level to taskreg_nesting_level.
10529         (scan_omp_task): New function.
10530         (lower_rec_input_clauses): Don't run constructors for firstprivate
10531         explicit task vars which are initialized by *_omp_cpyfn*.
10532         Pass outer var ref to omp_clause_default_ctor hook if
10533         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
10534         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
10535         OMP_CLAUSE_REDUCTION_INIT.
10536         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
10537         avoid duplicate setting of fields.  Handle
10538         OMP_CLAUSE_PRIVATE_OUTER_REF.
10539         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
10540         copy-out if TREE_READONLY, only copy-in.
10541         (expand_task_copyfn): New function.
10542         (expand_task_call): New function.
10543         (struct omp_taskcopy_context): New type.
10544         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
10545         New functions.
10546         (lower_omp_parallel): Rename to...
10547         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
10548         Call create_task_copyfn if srecord_type is needed.  Adjust
10549         sender_decl type.
10550         (task_shared_vars): New variable.
10551         (check_omp_nesting_restrictions): Warn if work-sharing,
10552         barrier, master or ordered region is closely nested inside OMP_TASK.
10553         Add warnings for barrier if closely nested inside of work-sharing,
10554         ordered, or master region.
10555         (scan_omp_1): Call check_omp_nesting_restrictions even for
10556         GOMP_barrier calls.  Rename parallel_nesting_level to
10557         taskreg_nesting_level.  Handle OMP_TASK.
10558         (lower_lastprivate_clauses): Even if some lastprivate is found on a
10559         work-sharing construct, continue looking for them on parent parallel
10560         construct.
10561         (lower_omp_for_lastprivate): Add lastprivate clauses
10562         to the beginning of dlist rather than end.  Adjust for struct
10563         omp_for_data changes.
10564         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
10565         not after it.  Handle collapsed OMP_FOR loops, adjust for
10566         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
10567         (get_ws_args_for): Adjust extract_omp_for_data caller.
10568         (scan_omp_for): Handle collapsed OMP_FOR
10569         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10570         (lower_omp_single_simple): If libgomp function doesn't return
10571         boolean_type_node, add comparison of the return value with 0.
10572         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
10573         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
10574         (parallel_nesting_level): Rename to...
10575         (taskreg_nesting_level): ... this.
10576         (is_taskreg_ctx): New function.
10577         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
10578         of is_parallel_ctx.
10579         (execute_lower_omp): Rename parallel_nesting_level to
10580         taskreg_nesting_level.
10581         (expand_omp_parallel): Rename to...
10582         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
10583         Call omp_task_call for OMP_TASK regions.
10584         (expand_omp): Adjust caller, handle OMP_TASK.
10585         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
10586
10587         * bitmap.c (bitmap_default_obstack_depth): New variable.
10588         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
10589         if argument is NULL and bitmap_default_obstack is already initialized.
10590         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
10591         at the end.
10592         * matrix-reorg.c (matrix_reorg): Likewise.
10593
10594 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
10595
10596         * config/i386/i386.md (*indirect_jump): Macroize using P
10597         mode iterator.  Remove !TARGET_64BIT from insn constraints.
10598         (*tablejump_1): Ditto.
10599         (*indirect_jump_rex64): Remove insn pattern.
10600         (*tablejump_1_rex64): Ditto.
10601         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
10602         and eh_return_si insn patterns.
10603
10604 2008-06-06  Richard Guenther  <rguenther@suse.de>
10605
10606         * tree-ssa-structalias.c (merge_smts_into): Remove.
10607         (find_what_p_points_to): Do not bother to compute the
10608         points-to set for pt_anything pointers.
10609         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
10610         for pt_anything pointers is ok.
10611
10612 2008-06-06  Jan Hubicka  <jh@suse.cz>
10613
10614         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
10615
10616 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10617
10618         * cgraph.c: Fix typos in comments.
10619         (cgraph_availability_names): Fix string typo.
10620         * fold-const.c: Fix typos in comments.
10621         (fold_binary): Fix typo in warning.
10622         * genautomata.c: Fix typos in comments.
10623         (check_presence_pattern_sets): Fix typo in local variable.
10624         (output_description): Fix typo in output.
10625         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
10626         * hwint.h: Likewise.
10627         * matrix-reorg.c (check_allocation_function): Likewise.
10628         * omega.c (smooth_weird_equations): Likewise.
10629         * auto-inc-dec.c: Fix typos in comments.
10630         * bb-reorder.c: Likewise.
10631         * builtins.c: Likewise.
10632         * c-common.c: Likewise.
10633         * c-cppbuiltin.c: Likewise.
10634         * c-parser.c: Likewise.
10635         * c-pretty-print.c: Likewise.
10636         * cfgcleanup.c: Likewise.
10637         * cfgexpand.c: Likewise.
10638         * cfghooks.c: Likewise.
10639         * cfglayout.c: Likewise.
10640         * cfgloopmanip.c: Likewise.
10641         * cgraphunit.c: Likewise.
10642         * coverage.c: Likewise.
10643         * dbxout.c: Likewise.
10644         * df-byte-scan.c: Likewise.
10645         * df-core.c: Likewise.
10646         * df-problems.c: Likewise.
10647         * df-scan.c: Likewise.
10648         * dfp.c: Likewise.
10649         * dominance.c: Likewise.
10650         * domwalk.c: Likewise.
10651         * dse.c: Likewise.
10652         * dwarf2out.c: Likewise.
10653         * emit-rtl.c: Likewise.
10654         * et-forest.c: Likewise.
10655         * function.c: Likewise.
10656         * function.h: Likewise.
10657         * gcc.c: Likewise.
10658         * gcov-io.c: Likewise.
10659         * gcov.c: Likewise.
10660         * gcse.c: Likewise.
10661         * genattrtab.c: Likewise.
10662         * ggc-page.c: Likewise.
10663         * gimplify.c: Likewise.
10664         * gthr-lynx.h: Likewise.
10665         * haifa-sched.c: Likewise.
10666         * ipa-cp.c: Likewise.
10667         * ipa-inline.c: Likewise.
10668         * ipa-prop.h: Likewise.
10669         * ipa-pure-const.c: Likewise.
10670         * ipa-struct-reorg.c: Likewise.
10671         * ipa-struct-reorg.h: Likewise.
10672         * ipa-type-escape.c: Likewise.
10673         * ipa.c: Likewise.
10674         * loop-doloop.c: Likewise.
10675         * mips-tfile.c: Likewise.
10676         * mkmap-flat.awk: Likewise.
10677         * mkmap-symver.awk: Likewise.
10678         * modulo-sched.c: Likewise.
10679         * omp-low.c: Likewise.
10680         * optabs.c: Likewise.
10681         * optabs.h: Likewise.
10682         * opts.c: Likewise.
10683         * passes.c: Likewise.
10684         * postreload-gcse.c: Likewise.
10685         * postreload.c: Likewise.
10686         * predict.c: Likewise.
10687         * pretty-print.h: Likewise.
10688         * profile.c: Likewise.
10689         * protoize.c: Likewise.
10690         * ra-conflict.c: Likewise.
10691         * real.c: Likewise.
10692         * recog.c: Likewise.
10693         * regclass.c: Likewise.
10694         * regs.h: Likewise.
10695         * reload.c: Likewise.
10696         * rtl-error.c: Likewise.
10697         * rtlanal.c: Likewise.
10698         * scan.h: Likewise.
10699         * sched-rgn.c: Likewise.
10700         * see.c: Likewise.
10701         * stmt.c: Likewise.
10702         * target.h: Likewise.
10703         * tree-dfa.c: Likewise.
10704         * tree-eh.c: Likewise.
10705         * tree-flow-inline.h: Likewise.
10706         * tree-inline.c: Likewise.
10707         * tree-into-ssa.c: Likewise.
10708         * tree-loop-distribution.c: Likewise.
10709         * tree-nested.c: Likewise.
10710         * tree-parloops.c: Likewise.
10711         * tree-pass.h: Likewise.
10712         * tree-pretty-print.c: Likewise.
10713         * tree-profile.c: Likewise.
10714         * tree-scalar-evolution.c: Likewise.
10715         * tree-sra.c: Likewise.
10716         * tree-ssa-alias-warnings.c: Likewise.
10717         * tree-ssa-ccp.c: Likewise.
10718         * tree-ssa-coalesce.c: Likewise.
10719         * tree-ssa-dom.c: Likewise.
10720         * tree-ssa-dse.c: Likewise.
10721         * tree-ssa-forwprop.c: Likewise.
10722         * tree-ssa-live.c: Likewise.
10723         * tree-ssa-live.h: Likewise.
10724         * tree-ssa-loop-im.c: Likewise.
10725         * tree-ssa-loop-ivopts.c: Likewise.
10726         * tree-ssa-loop-niter.c: Likewise.
10727         * tree-ssa-loop-prefetch.c: Likewise.
10728         * tree-ssa-phiopt.c: Likewise.
10729         * tree-ssa-phiprop.c: Likewise.
10730         * tree-ssa-sccvn.c: Likewise.
10731         * tree-ssa-ter.c: Likewise.
10732         * tree-ssa-threadupdate.c: Likewise.
10733         * tree-ssa.c: Likewise.
10734         * tree-vect-analyze.c: Likewise.
10735         * tree-vect-transform.c: Likewise.
10736         * tree-vectorizer.c: Likewise.
10737         * tree-vn.c: Likewise.
10738         * tree-vrp.c: Likewise.
10739         * tree.c: Likewise.
10740         * tree.def: Likewise.
10741         * tree.h: Likewise.
10742         * unwind-dw2-fde.c: Likewise.
10743         * unwind.inc: Likewise.
10744         * value-prof.c: Likewise.
10745         * vmsdbgout.c: Likewise.
10746
10747 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
10748
10749         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
10750         always place FP constants in the TOC for TARGET_POWERPC64.
10751         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
10752
10753 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
10754
10755         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
10756         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
10757         enable for TARGET_E500_DOUBLE.
10758         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
10759         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
10760         floating-point modes like integer modes for E500 double.
10761         (rs6000_legitimate_offset_address_p): Likewise.
10762         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
10763         addressing for DDmode for E500 double.
10764         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
10765         modes as using 64-bits of registers for E500 double.
10766         (spe_build_register_parallel): Do not handle DDmode or TDmode.
10767         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
10768         specially for E500 double.
10769         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
10770         TDmode for E500 double.
10771         (rs6000_gimplify_va_arg): Only handle SDmode in registers
10772         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
10773         (rs6000_split_multireg_move): Do not handle TDmode specially for
10774         E500 double.
10775         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
10776         using 64-bit registers for E500 double.
10777         (emit_frame_save): Do not handle DDmode specially for E500 double.
10778         (gen_frame_mem_offset): Likewise.
10779         (rs6000_function_value): Do not call spe_build_register_parallel
10780         for DDmode or TDmode.
10781         (rs6000_libcall_value): Likewise.
10782         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
10783         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
10784         for E500 double.
10785
10786 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10787
10788         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
10789         in comments.
10790
10791 2008-06-04  Junjie Gu <jgu@tensilica.com>
10792
10793         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
10794         comparison for frame pointers.
10795
10796 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
10797
10798         PR target/27386
10799         * config/avr/avr.h (PUSH_ROUNDING): Remove.
10800
10801 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
10802
10803         PR target/30243
10804         * builtins.c (expand_builtin_signbit): Don't take lowpart when
10805         register is already smaller or equal to required mode.
10806
10807 2008-06-04  Xinliang David Li  <davidxl@google.com>
10808
10809         * tree-call-cdce.c: New file.
10810         (cond_dead_built_in_calls): New static variable.
10811         (input_domain): New struct.
10812         (check_pow): New function.
10813         (check_builtin_call): Ditto.
10814         (check_target_format): Ditto.
10815         (is_call_dce_candidate): Ditto.
10816         (gen_one_condition): Ditto.
10817         (gen_conditions_for_domain): Ditto.
10818         (get_domain): Ditto.
10819         (gen_conditions_for_pow_cst_base): Ditto.
10820         (gen_conditions_for_pow_int_base): Ditto.
10821         (gen_conditions_for_pow): Ditto.
10822         (get_no_error_domain): Ditto.
10823         (gen_shrink_wrap_conditions): Ditto.
10824         (shrink_wrap_one_built_in_call): Ditto.
10825         (shink_wrap_conditional_dead_built_in_calls): Ditto.
10826         (tree_call_cdce): Ditto.
10827         (gate_call_cdce): Ditto.
10828         (pass_call_cdce): New gimple pass.
10829         * passes.c: (init_optimization_passes): New pass.
10830         * tree-pass.h: New pass declaration.
10831         * opts.c (decode_options): New flag setting.
10832         * common.opt: Add -ftree-builtin-call-dce flag.
10833         * Makefile.in: Add new source file.
10834         * tempvar.def: New tv_id.
10835         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
10836
10837 2008-06-04  Richard Guenther  <rguenther@suse.de>
10838
10839         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
10840         (is_call_clobbered): Always check var_ann->call_clobbered.
10841         (mark_call_clobbered): Always set var_ann->call_clobbered.
10842         (clear_call_clobbered): Always clear var_ann->call_clobbered.
10843         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
10844         (reset_alias_info): Clear call clobbering info on MTAGs and
10845         globals as well.
10846         (set_pt_anything): Set pt_global_mem.
10847         (create_tag_raw): Adjust comment.
10848         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
10849
10850 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
10851             Maxim Kuvyrkov  <maxim@codesourcery.com>
10852
10853         * config/m68k/m68k.opt (mxgot): New option.
10854         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
10855         (m68k_output_addr_const_extra): New.
10856         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
10857         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
10858         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
10859         * doc/invoke.texi (M680x0 Options): Document -mxgot.
10860
10861 2008-06-04  Richard Guenther  <rguenther@suse.de>
10862
10863         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
10864         negative or non-representable offsets.
10865
10866 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10867
10868         * config/i386/i386.c (ix86_gen_leave): New.
10869         (ix86_gen_pop1): Likewise.
10870         (ix86_gen_add3): Likewise.
10871         (ix86_gen_sub3): Likewise.
10872         (ix86_gen_sub3_carry): Likewise.
10873         (ix86_gen_one_cmpl2): Likewise.
10874         (ix86_gen_monitor): Likewise.
10875         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
10876         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10877         ix86_gen_one_cmpl2 and ix86_gen_monitor.
10878         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
10879         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
10880         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
10881         (ix86_expand_epilogue): Updated.
10882         (print_operand): Handle integer register operand for 'z'.
10883         (ix86_expand_strlensi_unroll_1): Likewise.
10884         (ix86_expand_strlen): Likewise.
10885         (ix86_expand_builtin): Likewise.
10886         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
10887         mov{q}/mov{l} and add{q}/add{l}.
10888
10889 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10890
10891         * config/i386/i386.md (P): New mode iterator.
10892         (SFmode push_operand splitter): Macroize DImode and SImode pushes
10893         using P mode iterator.
10894         (DFmode push_operand splitter): Ditto.
10895         (XFmode push_operand splitter): Ditto.
10896         (DFmode float_extend SFmode push_operand splitter): Ditto.
10897         (XFmode float_extend SFmode push_operand splitter): Do not generate
10898         SImode pushes for 64bit target.  Macroize Dimode and SImode
10899         pushes using P mode iterator.
10900         (XFmode float_extend DFmode push_operand splitter): Ditto.
10901
10902 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10903
10904         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
10905         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
10906         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
10907         return type to int.
10908         (ix86_call_abi_override): Remove check for call_used_regs.
10909
10910 2008-06-03  Richard Guenther  <rguenther@suse.de>
10911
10912         * tree-ssa-structalias.c (find_func_aliases): Add constraints
10913         for the lhs of calls if the return type contains pointers.
10914
10915 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10916
10917         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
10918         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
10919         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
10920         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
10921         of cfun and DEFAULT_ABI to deceide abi mode.
10922         (DEFAULT_ABI): New.
10923         (REG_PARM_STACK_SPACE): Removed.
10924         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
10925         (STACK_BOUNDARY): Use default target to deceide stack boundary.
10926         * config/i386/i386-protos.h (ix86_cfun_abi): New.
10927         (ix86_function_abi): Likewise.
10928         (ix86_function_type_abi): Likewise.
10929         (ix86_call_abi_override): Likewise.
10930         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
10931         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
10932         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
10933         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
10934         specific defines.
10935         (X86_64_REGPARM_MAX): New.
10936         (X86_64_SSE_REGPARM_MAX): New.
10937         (X64_REGPARM_MAX): New.
10938         (X64_SSE_REGPARM_MAX): New.
10939         (X86_32_REGPARM_MAX): New.
10940         (X86_32_SSE_REGPARM_MAX): New.
10941         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
10942         (ix86_function_regparm): Handle user calling abi.
10943         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
10944         by DEFAULT_ABI versus SYSV_ABI check.
10945         (ix86_reg_parm_stack_space): New.
10946         (ix86_function_type_abi): New.
10947         (ix86_call_abi_override): New.
10948         (ix86_function_abi): New.
10949         (ix86_cfun_abi): New.
10950         (init_cumulative_args): Call abi specific initialization.
10951         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
10952         (function_arg_64): Extend SSE_REGPARM_MAX check.
10953         (function_arg (): Remove TARGET_64BIT_MS_ABI.
10954         (ix86_pass_by_reference): Likewise.
10955         (ix86_function_value_regno_p): Likewise.
10956         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
10957         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
10958         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
10959         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
10960         (setup_incoming_varargs_64): Adjust regparm for call abi.
10961         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
10962         (ix86_va_start): Likewise.
10963         (ix86_gimplify_va_arg): Likewise.
10964         (ix86_expand_prologue): Likewise.
10965         (output_pic_addr_const): Likewise.
10966         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
10967         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
10968         (x86_output_mi_thunk): Likewise.
10969         (x86_function_profiler): Likewise.
10970         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
10971         (SYSV_ABI, MS_ABI): New constants.
10972         (DEFAULT_ABI): New.
10973         (init_regs): Add prototype of function in regclass.c file.
10974         (OVERRIDE_ABI_FORMAT): New.
10975         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
10976         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
10977         (OUTGOING_REG_PARM_STACK_SPACE): New.
10978         (ix86_reg_parm_stack_space): New prototype.
10979         (CUMULATIVE_ARGS): Add call_abi member.
10980         (machine_function): Add call_abi member.
10981         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
10982         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
10983
10984 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
10985
10986         PR target/34879
10987         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
10988         (avr_builtin_setjmp_frame_value): New function.
10989         * config/avr/avr.md (nonlocal_goto_receiver): Define.
10990         (nonlocal_goto): Define.
10991
10992 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
10993
10994         * config/mips/mips.c (mips_emit_loadgp): Return early if
10995         there is nothing do to, otherwise emit a blockage if
10996         !TARGET_EXPLICIT_RELOCS || crtl->profile.
10997         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
10998
10999 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11000
11001         * configure.ac: Drop unneeded backslash ending up in config.in.
11002         * acinclude.m4: Likewise.
11003         * config.in: Regenerate.
11004
11005 2008-05-26  Jan Hubicka  <jh@suse.cz>
11006
11007         * predict.c (maybe_hot_frequency_p): Break out of...
11008         (maybe_hot_bb_p): ... here.
11009         (maybe_hot_edge_p): New.
11010         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11011         * basic-block.h (maybe_hot_edge_p): Declare.
11012
11013 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11014
11015         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11016         (*cmpfp_<mode>_cc): Ditto.
11017         (*fp_jcc_8<mode>_387): Ditto.
11018         (*fop_<MODEF:mode>_2_i387): Ditto.
11019         (*fop_<MODEF:mode>_3_i387): Ditto.
11020         (*fop_xf_2_i387): Ditto.
11021         (*fop_xf_3_i387): Ditto.
11022
11023 2008-06-02  Tomas Bily  <tbily@suse.cz>
11024
11025         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11026
11027 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11028
11029         * config/mips/mips.c (mips_valid_offset_p): New function.
11030         (mips_valid_lo_sum_p): Likewise.
11031         (mips_classify_address): Use them.
11032         (mips_force_address): New function.
11033         (mips_legitimize_address): Use it.
11034         * config/mips/mips.md (MOVE128): New mode iterator.
11035         (movtf): Require TARGET_64BIT.  Remove empty strings.
11036         (*movtf_internal): Rename to...
11037         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11038         of "R" and use {,fp}{load,store} attributes instead of "multi".
11039         Use a separate define_split.
11040         (*movtf_mips16): New pattern.
11041
11042 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11043
11044         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11045         * config/mips/mips.c (mips_expand_before_return): New function.
11046         (mips_expand_epilogue): Call it.
11047         * config/mips/mips.md (return): Turn into a define_expand.
11048         (*return): New insn.
11049
11050 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11051
11052         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11053         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11054         functions.  Do not emit uses and clobbers of CONCATs; individually
11055         use and clobber their operands.
11056         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11057         gen_clobber, emit_use and gen_use.
11058         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11059         (expand_builtin_return): Likewise.
11060         * cfgbuild.c (count_basic_blocks): Likewise.
11061         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11062         * explow.c (emit_stack_restore): Likewise.
11063         * expmed.c (extract_bit_field_1): Likewise.
11064         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11065         (emit_move_multi_word, store_constructor): Likewise.
11066         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11067         (thread_prologue_and_epilogue_insns): Likewise.
11068         * lower-subreg.c (resolve_simple_move): Likewise.
11069         * optabs.c (widen_operand, expand_binop): Likewise.
11070         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11071         * reload.c (find_reloads): Likewise.
11072         * reload1.c (eliminate_regs_in_insn): Likewise.
11073         * stmt.c (expand_nl_goto_receiver): Likewise.
11074         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11075         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11076         * config/arm/arm.c (arm_load_pic_register): Likewise.
11077         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11078         * config/arm/arm.md (untyped_return): Likewise.
11079         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11080         * config/avr/avr.c (expand_prologue): Likewise.
11081         * config/bfin/bfin.c (do_unlink): Likewise.
11082         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11083         * config/cris/cris.c (cris_expand_prologue): Likewise.
11084         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11085         (machopic_legitimize_pic_address): Likewise.
11086         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11087         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11088         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11089         (ix86_expand_convert_uns_didf_sse): Likewise.
11090         (ix86_expand_vector_init_general): Likewise.
11091         * config/ia64/ia64.md (eh_epilogue): Likewise.
11092         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11093         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11094         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11095         (config/iq2000/iq2000.c): Likewise.
11096         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11097         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11098         (builtin_longjmp): Likewise.
11099         * config/mn10300/mn10300.md (call, call_value): Likewise.
11100         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11101         * config/pdp11/pdp11.md (abshi2): Likewise.
11102         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11103         * config/s390/s390.c (s390_emit_prologue): Likewise.
11104         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11105         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11106         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11107         * config/sh/sh.c (prepare_move_operands): Likewise.
11108         (output_stack_adjust, sh_expand_epilogue): Likewise.
11109         (sh_set_return_address, sh_expand_t_scc): Likewise.
11110         * config/sparc/sparc.c (load_pic_register): Likewise.
11111         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11112         * config/spu/spu.c (spu_expand_epilogue): Likewise.
11113         * config/v850/v850.c (expand_epilogue): Likewise.
11114
11115 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
11116
11117         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11118         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11119         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11120         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11121         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11122         stack pointer register.
11123         (output_movhi): Remove code for interrupt specific writing to the
11124         stack pointer register.
11125
11126 2008-05-31  Richard Guenther  <rguenther@suse.de>
11127
11128         PR tree-optimization/34244
11129         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11130         (tree_expr_nonzero_warnv_p): Likewise.
11131         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11132         ssa_name_nonnegative_p.
11133         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11134         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11135         not tree_expr_nonzero_warnv_p.
11136
11137         PR tree-optimization/36262
11138         Revert
11139         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
11140
11141         PR tree-optimization/34244
11142         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11143         (record_numbers_of_iterations): New function.
11144         (execute_vrp): Cache the numbers of iterations of loops.
11145         * tree-scalar-evolution.c (scev_reset_except_niters):
11146         New function.
11147         (scev_reset): Use scev_reset_except_niters.
11148         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11149
11150 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11151
11152         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11153         __WORKAROUND_RETS when appropriate.
11154
11155 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11156
11157         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11158         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11159         mode iterator.
11160         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11161         *fop_df_comm_sse insn patterns using MODEF mode iterator.
11162         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11163         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11164         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11165         *fop_df_1_mixed insn patterns using MODEF mode iterator.
11166         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11167         *fop_df_1_sse insn patterns using MODEF mode iterator.
11168         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11169         *fop_df_1_i387 insn patterns using MODEF mode iterator.
11170         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11171         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11172         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11173         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11174         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11175         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11176         (*fop_xf_4_i387): Use <MODE> for mode attribute.
11177         (*fop_xf_5_i387): Ditto.
11178         (*fop_xf_6_i387): Ditto.
11179
11180 2008-05-30  Richard Guenther  <rguenther@suse.de>
11181
11182         * builtins.c (build_string_literal): Avoid generating
11183         a non-gimple_val result.
11184
11185 2008-05-30  DJ Delorie  <dj@redhat.com>
11186
11187         * exec-tool.in: Use an environment variable (private) instead of a
11188         file (shared) as a semaphore, so as to not break parallel builds.
11189
11190 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11191
11192         * optabs.c (maybe_encapsulate_block): Remove.
11193         (emit_libcall_block): Adjust accordingly.
11194         * optabs.h (maybe_encapsulate_block): Remove prototype.
11195
11196         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11197         Don't use maybe_encapsulate_block.
11198
11199 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11200
11201         * config/rs6000/rs6000.c (rs6000_legitimize_address,
11202         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11203         rtx is a SYMBOL_REF before calling get_pool_constant.
11204
11205 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11206
11207         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11208
11209 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
11210
11211         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11212         rather than OS names to choose INO_T_EQ definition.
11213         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11214         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11215
11216 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
11217
11218         PR target/36348
11219         * config/darwin-f.c: New.
11220         * config/t-darwin: Added rule to build darwin-f.o.
11221         * config.gcc: Defined new variable, fortran_target_objs.
11222         (*-*-darwin*): Set fortran_target_objs.
11223         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11224         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11225         * configure: Regenerated.
11226
11227 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11228
11229         PR target/35771
11230         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11231         canonical type if needed.
11232
11233 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11234
11235         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11236
11237 2008-05-29  Richard Guenther  <rguenther@suse.de>
11238
11239         PR tree-optimization/36343
11240         PR tree-optimization/36346
11241         PR tree-optimization/36347
11242         * tree-flow.h (clobber_what_p_points_to): Declare.
11243         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11244         pointed-to variable is dereferenced is irrelevant to whether
11245         the pointer can access the pointed-to variable.
11246         (clobber_what_p_points_to): New function.
11247         * tree-ssa-alias.c (set_initial_properties): Use it.
11248         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11249         call clobber check for NMTs.
11250
11251 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11252
11253         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11254         for printing gcov_type.
11255
11256 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11257
11258         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11259         and the eh region information.
11260         * value-prof.c (gimple_move_stmt_histograms): New function.
11261         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11262
11263 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
11264
11265         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11266
11267 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
11268
11269         * value-prof.c (tree_ic_transform): Print counts.
11270         * tree-profile.c (tree_gen_ic_func_profiler):
11271         Clear __gcov_indreict_call_callee variable to avoid misattribution
11272         of the profile.
11273
11274 2008-05-28  Rafael Espindola  <espindola@google.com>
11275
11276         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11277         invalid sharing.
11278
11279 2008-05-28  Richard Guenther  <rguenther@suse.de>
11280
11281         PR tree-optimization/36339
11282         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11283         and clobbering code out of the loop.
11284
11285 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11286
11287         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11288         letters defined.
11289
11290         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11291         s390_contiguous_bitmask_p, s390_symref_operand_p,
11292         s390_check_symref_alignment, s390_reload_larl_operand,
11293         s390_reload_symref_address): New functions.
11294         (s390_branch_condition_mnemonic): Support compare and branch
11295         instructions.
11296         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11297         and 'W' constraints.
11298         (s390_secondary_reload): Add secondary reloads for unaligned
11299         symbol refs or symbol refs to floating point or QI/TI mode
11300         integer values.
11301         (legitimate_address_p): Accept symbol references as addresses.
11302         (s390_expand_insv): Use rotate and insert selected bits
11303         instruction for insv when building for z10.
11304         (print_operand_address): Handle symbol ref addresses.
11305         (print_operand): Output modifier 'c' added for signed byte values.
11306         (s390_encode_section_info): Mark symbol refs with
11307         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11308
11309         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11310         (length attribute): RRF, RRR have 4 byte length.
11311         (FPALL, INTALL): New mode iterators added.
11312         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11313         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11314         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11315         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11316         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11317         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11318         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11319         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11320         instructions.
11321         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11322         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11323         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11324         reload<INTALL:mode><P:mode>_toreg_z10,
11325         reload<FPALL:mode><P:mode>_tomem_z10,
11326         reload<FPALL:mode><P:mode>_toreg_z10,
11327         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11328         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11329         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11330         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11331         definition.
11332         (movmem, clrmem, cmpmem): New splitters added.
11333
11334         * config/s390/predicates.md (larl_operand): Use
11335         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11336         SYMBOL_REF_ALIGN1_P.
11337         (s390_signed_integer_comparison,
11338         s390_unsigned_integer_comparison): New predicates.
11339
11340         * config/s390/s390-protos.h (s390_check_symref_alignment,
11341         s390_contiguous_bitmask_p, s390_reload_larl_operand,
11342         s390_reload_symref_address,
11343         s390_compare_and_branch_condition_mask): Prototypes added.
11344
11345         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11346         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11347         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11348
11349 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11350
11351         * config/s390/s390.c (z10_cost): New cost function for z10.
11352         (s390_handle_arch_option, override_options): Support -march=z10 switch.
11353         (s390_issue_rate): Adjust issue rate for z10.
11354         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11355         (processor_flags): Add PF_Z10.
11356         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11357         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11358         * gcc/config.gcc: Add z10.
11359
11360 2008-05-28  Richard Guenther  <rguenther@suse.de>
11361
11362         PR tree-optimization/36291
11363         * tree-flow. h (struct gimple_df): Remove var_anns member.
11364         * tree-flow-inline.h (gimple_var_anns): Remove.
11365         (var_ann): Simplify.
11366         * tree-dfa.c (create_var_ann): Simplify.
11367         (remove_referenced_var): Clear alias info from var_anns of globals.
11368         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
11369         (delete_tree_ssa): Clear alias info from var_anns of globals.
11370         Do not free var_anns.
11371         (var_ann_eq): Remove.
11372         (var_ann_hash): Likewise.
11373
11374 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
11375
11376         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
11377         and loongson2f entries.
11378         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
11379         * config/mips/mips.h (processor_type): Add Loongson-2E
11380         and Loongson-2F entries.
11381         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
11382         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
11383         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
11384         * doc/invoke.texi (MIPS Options): Document loongson2e
11385         and loongson2f processor names.
11386
11387 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11388
11389         PR target/35767
11390         PR target/35771
11391         * config/i386/i386.c (ix86_function_arg_boundary): Use
11392         alignment of canonical type.
11393         (ix86_expand_vector_move): Check unaligned memory access for
11394         all SSE modes.
11395
11396 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11397
11398         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
11399         Moved to the front of file.
11400
11401 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
11402             H.J. Lu  <hongjiu.lu@intel.com>
11403
11404         * dwarf2out.c (current_fde): New.
11405         (add_cfi): Use it.
11406         (lookup_cfa:): Likewise.
11407         (dwarf2out_end_epilogue): Likewise.
11408         (dwarf2out_note_section_used): Likewise.
11409
11410 2008-05-27  Michael Matz  <matz@suse.de>
11411
11412         PR c++/27975
11413         * c.opt (Wenum-compare): New warning option.
11414         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
11415
11416 2008-05-27  Michael Matz  <matz@suse.de>
11417
11418         PR middle-end/36326
11419         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
11420         non-BLKmode types.
11421         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
11422         into memory as tail calls.
11423
11424 2008-05-27  Richard Guenther  <rguenther@suse.de>
11425
11426         PR tree-optimization/36339
11427         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
11428         pointers cause all addressable variables to be call clobbered.
11429
11430 2008-05-27  Richard Guenther  <rguenther@suse.de>
11431
11432         PR tree-optimization/36245
11433         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
11434
11435 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11436
11437         * config/s390/s390.md: Replace all occurences of the 'm'
11438         constraint with 'RT'.
11439
11440 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11441
11442         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
11443         definitions added.
11444         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
11445         "*movdi_64".
11446         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
11447         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
11448         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
11449
11450 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11451
11452         * reload.c: (find_reloads): Skip alternatives according to the
11453         "enabled" attribute. Constify the constraint variable.
11454         * recog.c (get_attr_enabled): Add default implementation.
11455         (extract_insn): Set the alternative_enabled_p array
11456         in the recog_data struct.
11457         (preprocess_constraints, constrain_operands): Skip
11458         alternatives according to the "enabled" attribute
11459         * recog.h (struct recog_data): New field alternative_enabled_p.
11460         (skip_alternative): New inline function.
11461         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
11462         (record_reg_classes): Skip alternative according to the
11463         "enabled" attribute.
11464
11465         * doc/md.texi: Add documention for the "enabled" attribute.
11466
11467 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11468
11469         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11470         * postreload.c (reload_cse_simplify_operands): Replace 'm'
11471         constraint with TARGET_MEM_CONSTRAINT.
11472         * recog.c (asm_operand_ok, preprocess_constraints,
11473         constrain_operands): Likewise.
11474         * regclass.c (record_reg_classes): Likewise.
11475         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11476         * reload1.c (maybe_fix_stack_asms): Likewise.
11477         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11478         * recog.h: Adjust comment.
11479         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
11480         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
11481         * doc/md.texi: Add a note to description of 'm' constraint.
11482         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
11483
11484 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11485
11486         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
11487         that the bitfield is of integral type before testing its precision.
11488
11489 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11490             Sa Liu  <saliu@de.ibm.com>
11491
11492         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
11493         __modti3, __udivti3, __umodti3 and __udivmodti4.
11494         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
11495         that implement TImode mul and div functions.
11496         * config/spu/multi3.c: New. Implement __multi3.
11497         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
11498         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
11499         functions on SPU.
11500
11501 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
11502
11503         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
11504         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
11505         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
11506         tls_sysv_suffix): New mode and mode attribute iterators.
11507         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
11508         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
11509         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
11510         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
11511         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
11512         iterators.
11513
11514 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11515
11516         PR tree-optimization/36329
11517         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
11518         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
11519         * cgraphbuild.c (initialize_inline_failed): Use the latter
11520         macro in lieu of the former.
11521         * ipa-inline.c (cgraph_mark_inline): Likewise.
11522         (cgraph_decide_inlining_of_small_function): Likewise.
11523         (cgraph_decide_inlining): Likewise.
11524         (cgraph_decide_inlining_incrementally): Likewise.
11525
11526 2008-05-26  Tristan Gingold  <gingold@adacore.com>
11527             Anatoly Sokolov  <aesok@post.ru>
11528
11529         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
11530         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
11531         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
11532         optimization for 'avr6' architecture.
11533
11534 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
11535
11536         PR target/34932
11537         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
11538
11539 2008-05-26  Richard Guenther  <rguenther@suse.de>
11540
11541         * tree-ssa-sccvn.c (expr_has_constants): Declare.
11542         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
11543
11544 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11545
11546         PR middle-end/36253
11547         * caller-save.c (insert_restore): Verify alignment of spill space.
11548         (insert_save): Likewise.
11549         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
11550         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
11551         (STACK_SLOT_ALIGNMENT): Likewise.
11552         * function.c (LOCAL_ALIGNMENT): Removed.
11553         (get_stack_local_alignment): New.
11554         (assign_stack_local): Use it.  Set alignment on stack slot.
11555         (assign_stack_temp_for_type): Use get_stack_local_alignment.
11556         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
11557         (STACK_SLOT_ALIGNMENT): New.
11558         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
11559         stack slot in XFmode.
11560
11561         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
11562
11563 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
11564
11565         PR/36321
11566         * config/i386/i386.md (allocate_stack_worker_64): Make sure
11567         argument operand in rax isn't removed.
11568
11569 2008-05-26  Richard Guenther  <rguenther@suse.de>
11570
11571         PR middle-end/36300
11572         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
11573         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
11574
11575 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11576
11577         PR bootstrap/36331
11578         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
11579
11580 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
11581
11582         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
11583         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
11584
11585 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11586
11587         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
11588         build a trampoline if we don't want one.
11589         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
11590         return zero for nested functions if we don't want a trampoline.
11591
11592 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11593
11594         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
11595
11596 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11597
11598         PR fortran/18428
11599         * c.opt: Removed undocumented option '-lang-fortran'.
11600         * c-common.h: Removed global variable 'lang_fortran'.
11601         * c-opts.c (c_common_handle_option): Removed code to handle
11602         option '-lang-fortran'. Updated includes.
11603         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
11604         definition of '__GFORTRAN__'.
11605         (define__GNUC__): Reimplemented to use BASEVER and
11606         cpp_define_formatted.
11607         (builtin_define_with_value_n): Removed.
11608         * c-incpath.h: Renamed to ...
11609         * incpath.h: ... this.
11610         * c-incpath.c: Renamed to ...
11611         * incpath.c: ... this. Updated includes.
11612         * fix-header.c: Updated includes.
11613         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
11614         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
11615         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
11616
11617 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11618
11619         * tree.h: Update the table of flags used on tree nodes.
11620         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
11621         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
11622         (FORCED_LABEL): Add access check.
11623         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
11624         (ASM_INPUT_P): Likewise.
11625         (ASM_VOLATILE_P): Likewise.
11626         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
11627         (OMP_SECTION_LAST): Access private_flag directly.
11628         (OMP_RETURN_NOWAIT): Likewise.
11629         (OMP_PARALLEL_COMBINED): Likewise.
11630         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
11631         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
11632         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
11633         deprecated_flag directly.
11634
11635 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11636
11637         * final.c (frame_pointer_needed): Removed.
11638         * flags.h (frame_pointer_needed): Likewise.
11639
11640         * function.h (rtl_data): Add frame_pointer_needed.
11641         (frame_pointer_needed): New.
11642
11643 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
11644
11645         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
11646
11647 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
11648
11649         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
11650         SRC is a REG.
11651
11652 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
11653
11654         * c-common.c (strip_array_types): Move function to..
11655         * tree.c: ..here.
11656         (get_inner_array_type): Delete.
11657         * c-common.h (strip_array_types): Move declaration to..
11658         * tree.h: ..here.
11659         (get_inner_array_type): Delete.
11660         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
11661         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
11662         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11663         * config/pa/pa.c (emit_move_sequence): Likewise.
11664
11665 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11666
11667         * config/i386/i386.md (*sse_prologue_save_insn): Set length
11668         attribute to 34.
11669
11670 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
11671
11672         * function.c: Include target hook for nonlocal_goto frame value.
11673
11674 2008-05-24  Richard Guenther  <rguenther@suse.de>
11675
11676         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
11677         variable can be only accessed through a pointer or a union.
11678
11679 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11680
11681         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
11682         * doc/extend.texi: Likewise.
11683
11684 2008-05-23  DJ Delorie  <dj@redhat.com>
11685
11686         * config/m32c/jump.md (untyped_call): Add.
11687
11688         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
11689         for A24 to PSImode.
11690         (m32c_address_cost): Detail costs for indirect offsets.
11691
11692 2008-05-23  Rafael Espindola  <espindola@google.com>
11693
11694         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
11695         if a node is a SUBREG.
11696         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
11697         is a SUBREG.
11698
11699 2008-05-23  Paul Brook  <paul@codesourcery.com>
11700             Carlos O'Donell  <carlos@codesourcery.com>
11701
11702         * doc/extend.texi: Clarify use of __attribute__((naked)).
11703         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11704         * target.h (gcc_target): Add allocate_stack_slots_for_args.
11705         * function.c (use_register_for_decl): Use
11706         targetm.calls.allocate_stack_slots_for_args.
11707         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11708         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
11709         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
11710
11711 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
11712
11713         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
11714
11715 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
11716
11717         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
11718         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
11719         is only rounded once.
11720
11721 2008-05-23  Richard Guenther  <rguenther@suse.de>
11722
11723         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
11724
11725 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
11726             Jakub Jelinek  <jakub@redhat.com>
11727
11728         PR target/36079
11729         * configure.ac: Handle --enable-cld.
11730         * configure: Regenerated.
11731         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
11732         * config/i386/i386.h (struct machine_function): Add needs_cld field.
11733         (ix86_current_function_needs_cld): New define.
11734         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
11735         (cld): New isns pattern.
11736         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
11737         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
11738         * config/i386/i386.opt (mcld): New option.
11739         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
11740         TARGET_CLD and ix86_current_function_needs_cld.
11741         (override_options): Use -mcld by default for 32-bit code if
11742         USE_IX86_CLD.
11743
11744         * doc/install.texi (Options specification): Document --enable-cld.
11745         * doc/invoke.texi (Machine Dependent Options)
11746         [i386 and x86-64 Options]: Add -mcld option.
11747         (Intel 386 and AMD x86-64 Options): Document -mcld option.
11748
11749 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
11750         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
11751         (return_in_memory_64): Likewise.
11752         (return_in_memory_ms_64): Likewise.
11753
11754 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11755
11756         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
11757         * builtins.c (fold_builtin_fpclassify): New.
11758         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
11759         * builtins.def (BUILT_IN_FPCLASSIFY): New.
11760         * c-common.c (handle_type_generic_attribute): Adjust to accept
11761         fixed arguments before an elipsis.
11762         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
11763         * doc/extend.texi: Document __builtin_fpclassify.
11764
11765 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
11766
11767         * omp-low.c (gate_expand_omp_ssa): Remove.
11768         (pass_expand_omp_ssa): Remove.
11769         (gate_expand_omp): Do not check for flag_openmp_ssa.
11770         * common.opt (-fopenmp-ssa): Remove.
11771         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
11772
11773 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11774
11775         * config/sh/sh.opt (mfixed-range): New option.
11776         * config/sh/sh-protos.h (sh_fix_range): Declare.
11777         * config/sh/sh.c (sh_fix_range): New function.
11778         * config/sh/sh.h (sh_fixed_range_str): Declare.
11779         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
11780         is not empty.
11781         * doc/invoke.texi (SH Options): Document -mfixed-range.
11782
11783 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
11784
11785         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
11786         it before the redeclaration.
11787
11788 2008-05-22  Anatoly Sokolov <aesok@post.ru>
11789
11790         * config/avr/avr.c (get_sequence_length): Add new function.
11791         (expand_prologue, expand_epilogue): Remove duplicate code.
11792
11793 2008-05-22  Rafael Espindola  <espindola@google.com>
11794
11795         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
11796         sharing.
11797
11798 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11799
11800         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
11801         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
11802
11803         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
11804         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
11805         (vect_update_misalignment_for_peel): Likewise.
11806         (vector_alignment_reachable_p): Likewise.
11807         * tree-vect-transform.c (vectorizable_load): Likewise.
11808         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
11809         (get_vectype_for_scalar_type): Pass mode of scalar_type
11810         to UNITS_PER_SIMD_WORD.
11811
11812         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
11813         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11814         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11815         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11816         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11817
11818 2008-05-22  Ira Rosen  <irar@il.ibm.com>
11819
11820         PR tree-optimization/36293
11821         * tree-vect-transform.c (vect_transform_strided_load): Don't check
11822         if the first load must be skipped because of a gap.
11823
11824 2008-05-22  Richard Guenther  <rguenther@suse.de>
11825
11826         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
11827         more cases of offset disambiguation that is possible if
11828         strict-aliasing rules apply.
11829         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
11830         for basic offset and type-based disambiguation.
11831
11832 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11833
11834         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
11835         ix86_expand_vector_set on V16QImode for SSE4.1.
11836
11837 2008-05-21  Tom Tromey  <tromey@redhat.com>
11838
11839         * c.opt (Wimport): Mark as undocumented.
11840         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
11841         -Wno-import.
11842         (Warning Options): Likewise.
11843         * doc/cppopts.texi: Don't mention -Wimport.
11844
11845 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
11846
11847         PR tree-optimization/36287
11848         PR tree-optimization/36286
11849         * lambda-code.c (build_access_matrix): Do not use the loop->num
11850         for computing the number of induction variables: use the loop depth
11851         instead.
11852
11853 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
11854
11855         PR/36280
11856         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
11857         option -f(no-)leading-underscore.
11858
11859 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11860
11861         * config/i386/i386.c (ix86_expand_vector_init_general): Use
11862         GET_MODE_NUNITS (mode).
11863
11864 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
11865
11866         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
11867         (-mmulhw): Add 464 to description.
11868         (-mdlmzb): Likewise.
11869         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
11870         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
11871         464fp entries.
11872         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
11873         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
11874         * config/rs6000/rs6000.md: Update comments for 464.
11875
11876 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
11877
11878         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
11879
11880 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11881
11882         * config/i386/sse.md (vec_extractv4sf): Removed.
11883         (vec_extractv2df): Likewise.
11884         (vec_extractv2di): Likewise.
11885         (vec_extractv4si): Likewise.
11886         (vec_extractv8hi): Likewise.
11887         (vec_extractv16qi): Likewise.
11888         (vec_extract<mode>): New.
11889
11890 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11891
11892         * config/i386/sse.md (vec_setv4sf): Removed.
11893         (vec_setv2df): Likewise.
11894         (vec_setv2di): Likewise.
11895         (vec_setv4si): Likewise.
11896         (vec_setv8hi): Likewise.
11897         (vec_setv16qi): Likewise.
11898         (vec_set<mode>): New.
11899
11900 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
11903         goto for vec_concat and vec_interleave.
11904
11905 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11906
11907         * config/i386/sse.md (vec_initv4sf): Removed.
11908         (vec_initv2df): Likewise.
11909         (vec_initv2di): Likewise.
11910         (vec_initv4si): Likewise.
11911         (vec_initv8hi): Likewise.
11912         (vec_initv16qi): Likewise.
11913         (vec_init<mode>): New.
11914
11915 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
11916
11917         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
11918
11919 2008-05-21  Tom Tromey  <tromey@redhat.com>
11920
11921         * ggc-zone.c (lookup_page_table_if_allocated): New function.
11922         (zone_find_object_offset): Likewise.
11923         (gt_ggc_m_S): Likewise.
11924         (highest_bit): Likewise.
11925         * ggc-page.c (gt_ggc_m_S): New function.
11926         * stringpool.c (string_stack): Remove.
11927         (init_stringpool): Update.
11928         (ggc_alloc_string): Use ggc_alloc.
11929         (maybe_delete_ident): New function.
11930         (ggc_purge_stringpool): Likewise.
11931         (gt_ggc_m_S): Remove.
11932         * ggc-common.c (ggc_protect_identifiers): New global.
11933         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
11934         ggc_protect_identifiers.
11935         * ggc.h (ggc_protect_identifiers): Declare.
11936         (gt_ggc_m_S): Update.
11937         (ggc_purge_stringpool): Declare.
11938         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
11939         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
11940         special case.
11941         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
11942
11943 2008-05-21  David S. Miller  <davem@davemloft.net>
11944
11945         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
11946         tmake_file.
11947
11948 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11949
11950         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
11951         once finished.
11952
11953 2008-05-20  David Daney  <ddaney@avtrex.com>
11954
11955         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
11956         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
11957         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11958         UNSPEC_UPDATE_GOT_VERSION): Renumber.
11959         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
11960         (atomic_hiqi_op): New define_code_iterator.
11961         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
11962         mips_expand_compare_and_swap_12.
11963         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
11964         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
11965         (sync_<optab><mode>, sync_old_<optab><mode>,
11966         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11967         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
11968         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
11969         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
11970         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
11971         (test_and_set_12): New insn.
11972         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
11973         sync_new_<optab><mode>, sync_old_nand<mode>,
11974         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
11975         clobber to operand 0 for SI and DI mode insns.
11976         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
11977         mips_gen_fn_4): New typedefs.
11978         (mips_gen_fn_ptrs): Define new union type.
11979         (mips_expand_compare_and_swap_12): Remove declaration.
11980         (mips_expand_atomic_qihi): Declare function.
11981         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
11982         (mips_expand_atomic_qihi): ... this.  Use new generator function
11983         parameter.
11984         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
11985         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
11986         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
11987         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
11988         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
11989         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
11990         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
11991         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
11992         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
11993         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
11994         New macros.
11995
11996 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
11999         the missing break.
12000
12001 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12002
12003         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12004         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12005         (avr_attribute_table): Add 'OS_main' function attribute.
12006         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12007         functions with 'OS_main' attribute.
12008
12009 2008-05-20  Richard Guenther  <rguenther@suse.de>
12010
12011         PR tree-optimization/35204
12012         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12013         helper, split out from ...
12014         (DFS): ... here.  Make the DFS walk non-recursive.
12015
12016 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12017             Jan Sjodin  <jan.sjodin@amd.com>
12018
12019         PR tree-optimization/36181
12020         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12021         (parallelize_loops): Don't parallelize when the loop has vector
12022         phi nodes.
12023
12024 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12025             Sebastian Pop  <sebastian.pop@amd.com>
12026
12027         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12028         matrix, and never look at the tree representation of the memory
12029         accesses.
12030         (linear_transform_loops): Computes parameters and access matrices.
12031         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12032         when fails.
12033         (access_matrix_get_index_for_parameter): New.
12034         * tree-data-ref.h (struct access_matrix): New.
12035         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12036         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12037         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12038         am_vector_index_for_loop): New.
12039         (struct data_reference): Add field access_matrix.
12040         (DR_ACCESS_MATRIX): New.
12041         (compute_data_dependences_for_loop): Update declaration.
12042         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12043         * lambda.h (lambda_vector_vec_p): Declared.
12044         * lambda-code.c: Depend on pointer-set.h.
12045         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12046         av_for_af_base, av_for_af, build_access_matrix,
12047         lambda_compute_access_matrices): New.
12048         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12049
12050 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12051
12052         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12053         $SOURCEDIR/include.
12054
12055 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12056             Sebastian Pop  <sebastian.pop@amd.com>
12057
12058         PR tree-optimization/36206
12059         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12060         FOLD_CONVERSIONS.
12061         (instantiate_scev_1): Rename flags to fold_conversions.
12062         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12063         outeside instantiation_loop.
12064         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12065         (evolution_function_is_affine_or_constant_p): Removed.
12066         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12067         instantiate_scev.
12068         (analyze_siv_subscript): Pass in the loop nest number.
12069         Call evolution_function_is_affine_in_loop instead of
12070         evolution_function_is_affine_p.
12071         (analyze_overlapping_iterations): Pass in the loop nest number.
12072
12073 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12074             Sebastian Pop  <sebastian.pop@amd.com>
12075
12076         PR tree-optimization/36206
12077         * tree-chrec.h (chrec_fold_op): New.
12078         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12079         and other trees.
12080
12081 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12082
12083         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12084         (DIRS_EQ): New.
12085         (remove_duplicates): Do not set inode on non-inode systems.
12086         Use DIRS_EQ.
12087
12088 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12089
12090         * config.gcc (tm_file): Update comments about relative pathnames.
12091
12092 2008-05-20  Richard Guenther  <rguenther@suse.de>
12093
12094         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12095         * tree-ssa-sccvn.c (process_scc): Likewise.
12096         * tree-ssa-sink.c (execute_sink_code): Likewise.
12097         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12098         * tree-vrp.c (process_assert_insertions): Likewise.
12099         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12100         (perform_tree_ssa_dce): Likewise.
12101         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12102         (dump_dominator_optimization_stats): Likewise.
12103         * tree-vectorizer.c (vectorize_loops): Likewise.
12104
12105 2008-05-20  Richard Guenther  <rguenther@suse.de>
12106
12107         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12108
12109 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
12110
12111         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12112         (ix86_i386elf_return_in_memory): Likewise.
12113         (ix86_i386interix_return_in_memory): Likewise.
12114         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12115         (SUBTARGET_RETURN_IN_MEMORY): New.
12116         * config/i386/i386elf.h: Likewise.
12117         * config/i386/ptx4-i.h: Likewise.
12118         * config/i386/sol2-10.h: Likewise.
12119         * config/i386/sysv4.h: Likewise.
12120         * config/i386/vx-common.h: Likewise.
12121         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12122         * config/i386/i386.c (ix86_return_in_memory): Made static and
12123         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12124         (ix86_i386elf_return_in_memory): Removed.
12125         (ix86_i386interix_return_in_memory): Removed.
12126         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12127         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12128
12129 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
12130
12131         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12132
12133 2008-05-19  Xinliang David Li  <davidxl@google.com>
12134
12135         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12136         * opts.c: Ditto.
12137         * common.opt: Ditto.
12138         * doc/invoke.texi: Ditto.
12139
12140 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12141
12142         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12143         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12144
12145 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12146
12147         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12148         sizes of operand array from 8/4 to 4/2.
12149         (ix86_expand_vector_init_general): Change size of operand array
12150         from 32 to 16.  Remove op0, op1 and half_mode.
12151
12152 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12153
12154         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12155         (ix86_expand_vector_init_interleave): Likewise.
12156         (ix86_expand_vector_init_general): Use them.  Assert
12157         word_mode == SImode when n_words == 4.
12158
12159 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
12160
12161         * config/i386/i386.c (ix86_secondary_reload): New static function.
12162         (TARGET_SECONDARY_RELOAD): New define.
12163         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12164         * config/i386/i386.md (reload_outqi): Remove.
12165
12166 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12167
12168         PR middle-end/35509
12169         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12170         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
12171         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12172         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12173         (fold_builtin_1): Likewise.
12174         * builtins.def (BUILT_IN_ISINF_SIGN): New.
12175         c-common.c (check_builtin_function_arguments): Handle
12176         BUILT_IN_ISINF_SIGN.
12177         * doc/extend.texi: Document __builtin_isinf_sign.
12178         * fold-const.c (operand_equal_p): Handle COND_EXPR.
12179
12180 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
12181
12182         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12183         EH cleanup at the end of the pass, search for those that have been
12184         turned into forwarder blocks and do the cleanup on their successor.
12185
12186 2008-05-18  Richard Guenther  <rguenther@suse.de>
12187
12188         * tree-cfg.c (verify_gimple_expr): Allow conversions from
12189         pointers to sizetype and vice versa.
12190
12191 2008-05-18 Xinliang David Li   <davidxl@google.com>
12192
12193         * gcc/tree-ssa-dce.c: Coding style fix.
12194         (check_pow): Documentation comment.
12195         (check_log): Documenation comment. Coding style fix.
12196         (is_unnecessary_except_errno_call): Ditto.
12197         (gen_conditions_for_pow): Ditto.
12198         (gen_conditions_for_log): Ditto.
12199         (gen_shrink_wrap_conditions): Ditto.
12200         (shrink_wrap_one_built_in_calls): Ditto.
12201         * gcc/doc/invoke.texi: Better documentation string.
12202         * ChangeLog: Fix wrong change log entries from
12203         May 17 checkin on function call DCE.
12204
12205 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12206
12207         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12208
12209 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12210
12211         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12212         * df-problems.c (simulation routines): Fixed block comment to
12213         properly say how to add forwards scanning functions.
12214
12215 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12216
12217         * tree-inline.c (setup_one_parameter): Remove dead code.
12218
12219 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12220
12221         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12222         a BIT_AND_EXPR only for an INTEGER_TYPE.
12223
12224 2008-05-17 Xinliang David Li   <davidxl@google.com>
12225
12226         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12227         (check_pow, check_log, is_unnecessary_except_errno_call): New
12228         functions to check for eliminating math functions that are pure
12229         except for setting errno.
12230         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12231         general condition expressions for shrink-wrapping pow/log calls.
12232         (gen_shrink_wrap_conditions): Ditto.
12233         (shrink_wrap_one_built_in_call): Ditto.
12234         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12235         (mark_operand_necessary): If debugging, output if OP is necessary.
12236         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12237         unnecessary.
12238         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12239         opt level >= 2.
12240         * gcc/common.opt: New user flag -ftree-builtin-dce.
12241         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12242
12243 2008-05-16  David S. Miller  <davem@davemloft.net>
12244
12245         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12246         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12247
12248 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
12249
12250         PR target/36246
12251         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12252
12253 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12254
12255         * ifcvt.c (dead_or_predicable): Rename
12256         df_simulate_one_insn_backwards to df_simulate_one_insn.
12257         * recog.c (peephole2_optimize): Ditto.
12258         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12259         Ditto.
12260         * df.h: Rename df_simulate_one_insn_backwards to
12261         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
12262         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12263         scanning of defs and uses.
12264         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12265         (df_simulate_one_insn_forwards): Removed.
12266
12267 2008-05-16  Doug Kwan  <dougkwan@google.com>
12268
12269         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12270         QNaN & SNaN.
12271         (real_from_string): Handle NaNs and Inf as approriate.
12272
12273 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12274
12275         * doc/gty.texi (Source Files Containing Type Information): Note
12276         that headers should appear first in the gtfiles list.
12277
12278 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12279
12280         * tree.def (COND_EXEC): Properly documented this code.
12281
12282 2008-05-16  Diego Novillo  <dnovillo@google.com>
12283
12284         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12285         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12286         the new field.
12287
12288 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12289
12290         * tree-ssa-dse (max_stmt_uid): Removed.
12291         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12292         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12293         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12294         * function.h (cfun.last_stmt_uid): New field.
12295         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12296         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12297         New functions.
12298         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12299         (create_stmt_ann): Initialize the ann->uid field.
12300         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12301         with new calls.
12302         * tree-flow.h (renumber_gimple_stmt_uids): New function.
12303
12304 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12305
12306         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12307         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12308         (init_empty_tree_cfg): Call it.
12309
12310 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12311
12312         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
12313         Update all users.
12314
12315 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12316
12317         * doc/invoke.text (-fdump-tree-*-verbose): New option.
12318         * tree-dump.c (dump_options): New verbose option.
12319         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12320         Add verbose dump.
12321         * tree-pass.h (TDF_VERBOSE): New dump flag.
12322         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12323         (tree-flow.h): Added include.
12324         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
12325
12326 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
12327
12328         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12329
12330         From Jie Zhang  <jie.zhang@analog.com>
12331         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12332         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12333         mcpu=bf561-none and mcpu=bf561-0.2.
12334         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12335         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12336         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12337         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12338         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12339         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12340         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
12341         option.
12342         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12343         (cputype_selected): Remove.
12344         (bfin_handle_option): Don't use cputype_selected.
12345         (override_options): When no mcpu option, enable all workarounds.
12346         Don't use bfin_workarounds.
12347         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12348         processor type.
12349         (DEFAULT_CPU_TYPE): Don't define.
12350
12351 2008-05-16  Richard Guenther  <rguenther@suse.de>
12352
12353         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12354         on deletion of the last stmt.
12355
12356 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12357
12358         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12359         V8HImode for SSE2 and V16QImode for SSE4.1.
12360
12361 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
12362
12363         * cgraph.h (compute_inline_parameters): Made public.
12364         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12365         variable_generate_summary, function_write_summary,
12366         variable_write_summary, variable_read_summary.  Added generate_summary,
12367         write_summary, read_summary.
12368         * cgraphunit.c (cgraph_process_new_functions): Changed call from
12369         pass_ipa_inline.function_generate_summary, to
12370         compute_inline_parameters.
12371         * ipa-inline.c (compute_inline_parameters): Made public and added
12372         node parameter.
12373         (compute_inline_parameters_for_current): New function.
12374         (pass_inline_param): Now calls compute_inline_parameters_for_current.
12375         (inline_generate_summary): Removed parameter and made to loop over
12376         all cgraph nodes.
12377         (pass_ipa_inline): Updated for new IPA_PASS structure.
12378         * passes.c (execute_ipa_summary_passes): Now is called once per
12379         pass rather than once per node*pass.
12380
12381 2008-05-15  Anatoly Sokolov <aesok@post.ru>
12382
12383         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
12384         avr_have_mul_p, avr_asm_only_p): Remove variables.
12385         (avr_override_options): Remove initialization of removed variables.
12386         (avr_file_start):  Convert removed variables to fields of
12387         'struct base_arch_s *avr_current_arch'.
12388         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
12389         (AVR_HAVE_MUL): (Ditto.).
12390         (AVR_HAVE_MOVW): (Ditto.).
12391         (AVR_HAVE_LPMX): (Ditto.).
12392         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
12393         avr_asm_only_p): Remove declaration.
12394
12395 2008-05-15  Diego Novillo  <dnovillo@google.com>
12396
12397         * config/arm/arm.c (arm_return_in_memory): Fix return type.
12398         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
12399
12400 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
12401
12402         PR middle-end/36194
12403         * combine.c (check_conversion): Rename back to check_promoted_subreg.
12404         Don't call record_truncated_value from here.
12405         (record_truncated_value): Turn it into a for_each_rtx callback.
12406         (record_truncated_values): New function.
12407         (combine_instructions): Call note_uses with record_truncated_values.
12408         Change name of check_conversion to check_promoted_subreg.
12409
12410 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
12411
12412         * doc/sourcebuild.texi: Document support for torture tests.
12413
12414 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12415
12416         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
12417         to alternative 4 of operand 2.
12418
12419 2008-05-15  Richard Guenther  <rguenther@suse.de>
12420
12421         * tree-pass.h (current_pass): Declare.
12422         (get_pass_for_id): Likewise.
12423         * passes.c (passes_by_id, passes_by_id_size): New globals.
12424         (set_pass_for_id): New function.
12425         (get_pass_for_id): Likewise.
12426         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
12427         (execute_function_todo): Flush per function statistics.
12428         * toplev.c (compile_file): Init statistics.
12429         (general_init): Do early statistics initialization.
12430         (finalize): Finish statistics.
12431         * statistics.h (statistics_early_init): Declare.
12432         (statistics_init): Likewise.
12433         (statistics_fini): Likewise.
12434         (statistics_fini_pass): Likewise.
12435         (statistics_counter_event): Likewise.
12436         (statistics_histogram_event): Likewise.
12437         * statistics.c: New file.
12438         * Makefile.in (OBJS-common): Add statistics.o.
12439         (statistics.o): Add dependencies.
12440         * doc/invoke.texi (-fdump-statistics): Document.
12441
12442         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
12443         (insert): Likewise.
12444         (execute_pre): Use statistics_counter_event.
12445         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
12446         (substitute_and_fold): Increment it.  Use statistics_counter_event.
12447
12448 2008-05-15  Diego Novillo  <dnovillo@google.com>
12449
12450         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
12451
12452         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
12453         * tree-ssa-alias.c (new_type_alias): Remove references to
12454         sub-variables from comment.
12455         * tree-ssa-operands.c (swap_tree_operands): Likewise.
12456
12457 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12458
12459         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
12460         attribute to 1 only for insertps alternative.
12461
12462 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12463
12464         * config/bfin/bfin.md (loadbytes): New pattern.
12465         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12466         (bfin_init_builtins): Initialize it.
12467         (bdesc_1arg): Add it.
12468
12469 2008-05-15  Sa Liu  <saliu@de.ibm.com>
12470
12471         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12472         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12473         * testsuite/lib/target-supports.exp: Add
12474         check_effective_target_fortran_integer_16.
12475
12476 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12477
12478         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12479         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
12480         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
12481         (TARGET_RETURN_IN_MEMORY): Define.
12482
12483 2008-05-15  Richard Guenther  <rguenther@suse.de>
12484
12485         PR middle-end/36244
12486         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
12487         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
12488         represent unmodifiable vars.
12489
12490 2008-05-15  Richard Guenther  <rguenther@suse.de>
12491
12492         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
12493         INDIRECT_REF and TARGET_MEM_REF.
12494         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12495         TARGET_MEM_REF.
12496
12497 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12498             H.J. Lu  <hongjiu.lu@intel.com>
12499
12500         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
12501         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
12502         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
12503         insn alternatives.  Add missing alternatives.
12504         (*vec_concatv2di_rex64_sse4_1): Likewise.
12505         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
12506         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
12507         Require TARGET_SSE.
12508
12509 2008-05-15  Richard Guenther  <rguenther@suse.de>
12510
12511         PR tree-optimization/36009
12512         PR tree-optimization/36204
12513         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
12514         (determine_invariantness_stmt): Record the loop a store is
12515         always executed in.
12516         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
12517         dependency.
12518
12519 2008-05-15  Richard Guenther  <rguenther@suse.de>
12520
12521         PR tree-optimization/34330
12522         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
12523         through the pointer will alias the SMT.
12524
12525 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
12526
12527         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
12528
12529 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
12532
12533 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12534             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
12535
12536         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
12537         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
12538         (vashl_optab): New optab for vector/vector shifts.
12539         (vashr_optab): Ditto.
12540         (vlshr_optab): Ditto.
12541         (vrotl_optab): Ditto.
12542         (vrotr_optab): Ditto.
12543         (optab_subtype): New enum for optab_for_tree_code call.
12544         (optab_for_tree_code): Add enum optab_subtype argument.
12545
12546         * optabs.c (optab_for_tree_code): Take an additional argument to
12547         distinguish between a vector shift by a scalar and vector shift by
12548         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
12549         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
12550         vector shift by a vector.
12551         (expand_widen_pattern_expr): Pass additional argument to
12552         optab_for_tree_code.
12553
12554         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
12555         vrotl_optab, vrotr_optab.
12556
12557         * expr.c (expand_expr_real_1): Update calls to
12558         optab_for_tree_code to distinguish between vector shifted by a
12559         scalar and vector shifted by a vector.
12560         * tree-vectorizer.c (supportable_widening_operation): Ditto.
12561         (supportable_narrowing_operation): Ditto.
12562         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
12563         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
12564         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
12565         (vect_create_epilog_for_reduction): Ditto.
12566         (vectorizable_reduction): Ditto.
12567         (vectorizable_operation): Ditto.
12568         (vect_strided_store_supported): Ditto.
12569         (vect_strided_load_supported): Ditto.
12570         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12571         * expmed.c (expand_shift): Ditto.
12572
12573         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
12574         scalar type.
12575         (ashr@var{m}3): Ditto.
12576         (vashl@var{m}3): Document new vector/vector shift standard name.
12577         (vashr@var{m}3): Ditto.
12578         (vlshr@var{m}3): Ditto.
12579         (vrotl@var{m}3): Ditto.
12580         (vrotr@var{m}3): Ditto.
12581
12582         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
12583         (PPERM_INVERT): Ditto.
12584         (PPERM_REVERSE): Ditto.
12585         (PPERM_REV_INV): Ditto.
12586         (PPERM_ZERO): Ditto.
12587         (PPERM_ONES): Ditto.
12588         (PPERM_SIGN): Ditto.
12589         (PPERM_INV_SIGN): Ditto.
12590         (PPERM_SRC1): Ditto.
12591         (PPERM_SRC2): Ditto.
12592
12593         * config/i386/sse.md (mulv2di3): Add SSE5 support.
12594         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
12595         allows a memory operand to be the value being added, and split it
12596         to improve vectorization.
12597         (sse5_pmacsdqh_mem): Ditto.
12598         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
12599         (sse5_mulv2div2di3_high): Ditto.
12600         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
12601         (vec_pack_trunc_v4si): Ditto.
12602         (vec_pack_trunc_v2di): Ditto.
12603         (sse5_pcmov_<mode>): Remove code that tried to use use
12604         andps/andnps instead of pcmov.
12605         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
12606         pmacsdqh instructions.
12607         (vec_widen_smult_lo_v4si): Ditto.
12608
12609         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
12610         (PPERM_INVERT): Ditto.
12611         (PPERM_REVERSE): Ditto.
12612         (PPERM_REV_INV): Ditto.
12613         (PPERM_ZERO): Ditto.
12614         (PPERM_ONES): Ditto.
12615         (PPERM_SIGN): Ditto.
12616         (PPERM_INV_SIGN): Ditto.
12617         (PPERM_SRC1): Ditto.
12618         (PPERM_SRC2): Ditto.
12619         (ix86_expand_sse_movcc): Move the SSE5 test after the if
12620         true/false tests.
12621         (ix86_expand_int_vcond): If SSE5 generate all possible integer
12622         comparisons.
12623         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
12624         says ignore whether the last reference is a memory operand.
12625
12626 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12627             Paolo Bonzini <bonzini at gnu dot org>
12628
12629         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
12630         shift patterns.
12631
12632         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
12633         (vlshr<mode>3): Rename from vlshr<mode>3.
12634         (vashr<mode>3): Rename from vashr<mode>3.
12635         (mulv4sf3): Change the names of vector shift patterns.
12636         (mulv4si3): Ditto.
12637         (negv4sf2): Ditt.
12638
12639         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
12640         shift insns.
12641
12642         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
12643         (SI_SHLHI): Ditto.
12644         (SI_SHL): Ditto.
12645         (SI_SHLI): Ditto.
12646         (SI_ROTH): Ditto.
12647         (SI_ROTHI): Ditto.
12648         (SI_ROT): Ditto.
12649         (SI_ROTI): Ditto.
12650         (SPU_RL_0): Ditto.
12651         (SPU_RL_1): Ditto.
12652         (SPU_RL_2): Ditto.
12653         (SPU_RL_3): Ditto.
12654         (SPU_RL_4): Ditto.
12655         (SPU_RL_5): Ditto.
12656         (SPU_RL_6): Ditto.
12657         (SPU_RL_7): Ditto.
12658         (SPU_SL_0): Ditto.
12659         (SPU_SL_1): Ditto.
12660         (SPU_SL_2): Ditto.
12661         (SPU_SL_3): Ditto.
12662         (SPU_SL_4): Ditto.
12663         (SPU_SL_5): Ditto.
12664         (SPU_SL_6): Ditto.
12665         (SPU_SL_7): Ditto.
12666
12667         * config/spu/spu.md (v): New iterator macro to add v for vector types.
12668         (floatunssidf2_internal): Change vector/vector shift names.
12669         (floatunsdidf2_internal): Ditto.
12670         (mulv8hi3): Ditto.
12671         (ashrdi3): Ditto.
12672         (ashrti3): Ditto.
12673         (cgt_df): Ditto.
12674         (cgt_v2df): Ditto.
12675         (dftsv): Ditto.
12676         (vashl<mode>3): Rename from ashl<mode>3.
12677         (vashr<mode>3): Rename from ashr<mode>3.
12678         (vlshr<mode>3): Rename from lshr<mode>3.
12679         (vrotl<mode>3): Rename from rotl<mode>3.
12680
12681 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12682
12683         PR target/36224
12684         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
12685         multiply gives the wrong value when doing widening multiplies.
12686         (vec_widen_smult_lo_v4si): Ditto.
12687
12688 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
12689
12690         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
12691         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
12692         emit_library_call_value.
12693         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
12694         * tree.h (ECF_LIBCALL_BLOCK): Removed.
12695         * calls.c (initialize_argument_information, precompute_arguments,
12696         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
12697         (precompute_arguments): Removed flags parameter.
12698         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
12699
12700 2008-05-14  Richard Guenther  <rguenther@suse.de>
12701
12702         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
12703         Make sure to register the store if the use is a PHI_NODE.
12704
12705 2008-05-14  Olivier Hainque  <hainque@adacore.com>
12706
12707         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
12708         memory if the component is to be referenced in BLKmode according
12709         to get_inner_reference.
12710
12711 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
12712
12713         * calls.c (emit_library_call_value_1): Restore code clearing
12714         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
12715
12716 2008-05-14  Olivier Hainque  <hainque@adacore.com>
12717             Nicolas Roche  <roche@adacore.com>
12718
12719         * configure.ac: Add support for a "gcc_subdir" variable in
12720         config-lang.in, to denote a subdirectory where the language/GCC
12721         integration files are to be found.
12722         * configure: Regenerate.
12723
12724 2008-05-14  Ira Rosen  <irar@il.ibm.com>
12725
12726         PR tree-optimization/36098
12727         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
12728         value for the first load in the group in case of a gap.
12729         (vect_build_slp_tree): Check that there are no gaps in loads.
12730
12731 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
12732
12733         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
12734         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
12735         expand_copysign_bit, ): Change call to emit_no_conflict_block to
12736         emit_insn and remove unneeded code to construct extra args.
12737         (emit_no_conflict_block): Removed.
12738         * optabls.h: (emit_no_conflict_block): Removed.
12739         * cse.c (cse_extended_basic_block): Remove search for
12740         REG_NO_CONFLICT note.
12741         * global.c: Removed incorrect comment added in revision 117.
12742         * expr.c (convert_move): Change call to emit_no_conflict_block to
12743         emit_insn.
12744         * recog.c: Change comments so that they do not mention
12745         REG_NO_CONFLICT.
12746         * local_alloc.c (combine_regs): Removed last parameter.
12747         (no_conflict_p): Removed.
12748         (block_alloc): Removed note, no_conflict_combined_regno and set
12749         local vars. Removed all code to process REG_NO_CONFLICT blocks.
12750         (combine_regs): Removed already_dead and code to look for
12751         REG_NO_CONFLICT notes.
12752         * lower_subreg (remove_retval_note): Removed code to look for
12753         REG_NO_CONFLICT block.
12754         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
12755         (resolve_clobber): Remove code to process libcalls that have
12756         REG_NO_CONFLICT notes.
12757         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
12758         case.
12759         * combine.c (can_combine_p, distribute_notes):  Removed
12760         REG_NO_CONFLICT case.
12761         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
12762         to emit_insns.
12763         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
12764         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
12765         Ditto.
12766         * reg-notes.def (NO_CONFLICT): Removed.
12767
12768 2008-05-14  David S. Miller  <davem@davemloft.net>
12769
12770         * config/sparc/sparc.c (sparc_profile_hook): If
12771         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
12772         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
12773         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12774
12775 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
12776
12777         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
12778
12779 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
12780
12781         PR target/36222
12782         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
12783         and op1 expansion before vector concat to have less live pseudos.
12784
12785 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
12786
12787         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
12788         ix86_expand_vector_set if supported.
12789
12790 2008-05-13  Diego Novillo  <dnovillo@google.com>
12791             Kenneth Zadeck  <zadeck@naturalbridge.com>
12792
12793         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
12794
12795         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
12796         phinodes_print_statistics, init_ssanames, fini_ssanames,
12797         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
12798         release_ssa_name, release_defs, replace_ssa_name_symbol,
12799         ssanames_print_statistics): Move ...
12800         * tree-flow.h: ... here.
12801         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
12802         Use FN instead of cfun.
12803         (make_ssa_name_fn): Rename from make_ssa_name.
12804         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
12805         * tree-flow-inline.h (make_ssa_name): Move from
12806         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
12807         * omp-low.c (expand_omp_parallel):
12808         * tree-flow-inline.h (redirect_edge_var_map_result):
12809         * tree-ssa.c (init_tree_ssa): Add argument FN.
12810         Use it instead of cfun.  Update all users.
12811
12812 2008-05-13  Tom Tromey  <tromey@redhat.com>
12813
12814         PR preprocessor/22168:
12815         * doc/cpp.texi (Top): Update menu.
12816         (Alternatives to Wrapper #ifndef): New node.
12817         (Other Directives): Document deprecation.
12818         (Obsolete Features): Remove menu.
12819         (Assertions): Merge node into Obsolete Features.
12820         (Obsolete once-only headers): Move earlier; rename to Alternatives
12821         to Wrapper #ifndef.
12822         * doc/cppopts.texi: Update.
12823         * c.opt (Wdeprecated): Enable for C and ObjC.
12824         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
12825         (C++ Dialect Options): Move -Wno-deprecated from here to...
12826         (Warning Options): ... here.
12827
12828 2008-05-13  Richard Guenther  <rguenther@suse.de>
12829
12830         PR middle-end/36227
12831         * fold-const.c (fold_sign_changed_comparison): Do not allow
12832         changes in pointer-ness.
12833
12834 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12835
12836         PR target/24713
12837         * config/sh/sh.c (sh_expand_prologue): Don't clear
12838         RTX_FRAME_RELATED_P for push insns.
12839
12840 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
12841
12842         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
12843
12844 2008-05-12  Anatoly Sokolov <aesok@post.ru>
12845
12846         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
12847         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
12848         Use 'machine->is_leaf' instead of 'leaf_func_p'.
12849
12850 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12851
12852         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
12853         (*vec_concatv4sf_sse): This.
12854         (*sse2_concatv2si): Renamed to ...
12855         (*vec_concatv2si_sse2): This.
12856         (*sse1_concatv2si): Renamed to ...
12857         (*vec_concatv2si_sse): This.
12858         (*vec_concatv2di_rex): Renamed to ...
12859         (*vec_concatv2di_rex64): This.
12860         (*vec_concatv2si_sse4_1): New.
12861         (*vec_concatv2di_rex64_sse4_1): Likewise.
12862
12863 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
12864
12865         PR rtl-optimization/36111
12866         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
12867         that was created for swappable operands.
12868
12869 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
12870
12871         PR ada/36001
12872         * Makefile.in: Substitute GNATMAKE and GNATBIND.
12873         * configure.ac: Add call to ACX_PROG_GNAT.
12874
12875 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
12876
12877         * optc-gen.awk: Fix comment typo.
12878
12879 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12880
12881         * pretty-print.c (pp_integer_with_precision): Use
12882         HOST_LONG_LONG_FORMAT.
12883
12884 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
12885
12886         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
12887
12888 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12889
12890         * config/i386/i386.c (bdesc_ptest): Removed.
12891         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
12892         (bdesc_args): Add __builtin_ia32_ptestz128,
12893         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
12894         (ix86_init_mmx_sse_builtins): Updated.
12895         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
12896         (ix86_expand_builtin): Updated.
12897
12898 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
12899
12900         * tree-cfg.c (valid_fixed_convert_types_p): New function.
12901         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
12902
12903 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
12904
12905         * value-prof.c (interesting_stringop_to_profile): Do not
12906         return early for BUILT_IN_MEMPCPY.
12907
12908 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12909
12910         * calls.c (expand_call): Don't use callgraph to increase
12911         preferred_stack_boundary.
12912
12913         * cgraph.h (cgraph_rtl_info): Use unsigned on
12914         preferred_incoming_stack_boundary.
12915
12916         * final.c (rest_of_clean_state): Use unsigned on
12917         preferred_stack_boundary.
12918
12919 2008-05-09  Tom Tromey  <tromey@redhat.com>
12920
12921         PR preprocessor/22231:
12922         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
12923         proceeding.
12924
12925 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
12926
12927         PR tree-optimization/36129
12928         * tree-ssa-ccp.c: Include value-prof.h.
12929         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
12930         built-in function was folded to a constant.
12931         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
12932
12933 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
12934             Sebastian Pop  <sebastian.pop@amd.com>
12935
12936         * tree-scalar-evolution.c: Document instantiate_scev.
12937         (instantiate_parameters_1): Renamed instantiate_scev_1.
12938         Don't use the same loop for instantiation_loop and evolution_loop.
12939         (instantiate_scev): New.
12940         (instantiate_parameters): Moved...
12941         (resolve_mixers): Update call to instantiate_scev_1 to pass the
12942         same loop twice.  Maintains the semantics for this function.
12943         * tree-scalar-evolution.h (instantiate_scev): Declare.
12944         (instantiate_parameters): ...here.  Now static inline.
12945         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
12946         instead of resolve_mixers.
12947
12948 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12949
12950         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
12951
12952 2008-05-09  Tomas Bily  <tbily@suse.cz>
12953
12954         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
12955         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
12956         * tree-ssa-structalias.c (get_constraint_for): Likewise.
12957         * c-common.c (c_common_truthvalue_conversion): Likewise.
12958         * tree-object-size.c (compute_object_offset): Likewise.
12959         * tree-inline.c (estimate_num_insns_1): Likewise.
12960         * varasm.c (const_hash_1, compare_constant, copy_constant)
12961         (compute_reloc_for_constant, output_addressed_constants)
12962         (initializer_constant_valid_p): Likewise.
12963         * c-omp.c (check_omp_for_incr_expr): Likewise.
12964         * gimplify.c (gimplify_expr): Likewise.
12965         * c-typeck.c (c_finish_return): Likewise.
12966         * tree-vectorizer.c (supportable_widening_operation)
12967         (supportable_narrowing_operation): Likewise.
12968         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
12969         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
12970         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
12971         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
12972         (descr_info_loc): Likewise.
12973         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
12974         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
12975         (fold_unary): Likewise.
12976         * builtins.c (get_pointer_alignment): Likewise.
12977         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
12978         (instantiate_parameters_1): Likewise.
12979         * tree.c (expr_align, stabilize_reference): Likewise.
12980         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
12981         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12982         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
12983         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12984         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
12985         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
12986         Likewise.
12987         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
12988         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
12989         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
12990         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
12991         (forward_propagate_comparison)
12992         (tree_ssa_forward_propagate_single_use_vars): Likewise.
12993         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
12994         * emit-rtl.c (component_ref_for_mem_expr)
12995         (set_mem_attributes_minus_bitpos): Likewise.
12996         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
12997         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
12998         Likewise.
12999         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13000         (build_function_call, pointer_diff, build_compound_expr)
13001         (c_finish_return): Likewise.
13002         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13003         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13004         Likewise.
13005         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13006         * expr.c (is_aligning_offset): Likewise.
13007         * tree-ssa-alias.c (is_escape_site): Likewise.
13008         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13009         (check_all_va_list_escapes): Likewise.
13010         * tree-ssa-loop-ivopts.c (determine_base_object)
13011         (determine_common_wider_type): Likewise.
13012         * dojump.c (do_jump): Likewise.
13013         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13014         * tree-gimple.c (is_gimple_cast): Likewise.
13015         * fold-const.c (decode_field_reference, )
13016         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13017         (fold_binary): Likewise.
13018         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13019         (already_warned_in_frontend_p): Likewise.
13020         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13021         * tree.c (really_constant_p, get_unwidened): Likewise.
13022         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13023         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13024         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13025         Likewise.
13026         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13027         CONVERT_EXPR_P.
13028         (CONVERT_EXPR_P): Define.
13029         (CASE_CONVERT): Define.
13030
13031 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13032
13033         PR middle-end/36117
13034         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13035         (delete_unmarked_insns): When deleting a call, call
13036         delete_unreachable_blocks.
13037         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13038         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13039
13040 2008-05-08  Richard Guenther  <rguenther@suse.de>
13041
13042         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13043         (-ftree-salias): Likewise.
13044         (salias-max-implicit-fields): Remove param documentation.
13045         (salias-max-array-elements): Likewise.
13046         * tree-pass.h (pass_create_structure_vars): Remove.
13047         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13048         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13049         * tree-ssa-alias.c (create_structure_vars): Remove.
13050         (gate_structure_vars): Likewise.
13051         (pass_create_structure_vars): Likewise.
13052         (gate_build_alias): Likewise.
13053         (pass_build_alias): Adjust to run always and dump the function.
13054         * common.opt (ftree-salias): Hide.
13055         * passes.c (init_optimization_passes): Remove
13056         pass_create_structure_vars, adjust comment.
13057         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13058         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13059         * opts.c (decode_options): Do not set flag_tree_salias.
13060         (common_handle_option): Add OPT_ftree_salias to the backward
13061         compatibility section.
13062
13063 2008-05-08  Richard Guenther  <rguenther@suse.de>
13064
13065         * tree-flow-inline.h (var_can_have_subvars): Move ...
13066         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13067         * tree-flow.h (var_can_have_subvars): Remove.
13068         (push_fields_onto_fieldstack): Remove.
13069         (sort_fieldstack): Likewise.
13070         (struct fieldoff): Move ...
13071         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13072         alias_set and base_for_components fields.
13073         (sort_fieldstack): Make static.
13074         (push_fields_onto_fieldstack): Likewise.  Remove code that
13075         handles anything but RECORD_TYPEs.  Remove alias_set and
13076         base_for_components handling.
13077         (create_variable_info_for): Adjust.
13078
13079 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13080
13081         * common.opt (Wframe-larger-than=): Shorten the help message
13082         to one line.
13083         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13084
13085 2008-05-08  Rafael Espindola  <espindola@google.com>
13086
13087         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13088         trap.
13089         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13090         trap and that both operands are gimple values.
13091         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13092         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13093         is a fp operation.
13094
13095 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13096
13097         * read-rtl.c (join_c_conditions): Return the first string if the
13098         two strings are equal.
13099
13100 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13101
13102         * gensupport.h (pred_data): Add a "num_codes" field.
13103         (add_predicate_code): Declare.
13104         * gensupport.c (add_predicate_code): New function.
13105         (std_pred_table): Add an "allows_const_p" field.
13106         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13107         Remove the (incomplete) list of such codes from the codes field.
13108         (init_predicate_table): Use add_predicate_code.  Add all
13109         RTX_CONST_OBJs if allows_const_p is true.
13110         * genrecog.c (process_define_predicate): Use add_predicate_code.
13111
13112 2008-05-08  David Daney  <ddaney@avtrex.com>
13113             Richard Sandiford  <rsandifo@nildram.co.uk>
13114
13115         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13116         special case of constant zero operands.
13117         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13118         old and new values.  Special case constant zero values.
13119         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13120         fails.
13121         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13122         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13123
13124 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
13125
13126         PR target/36090
13127         * simplify-rtx.c (simplify_plus_minus): Create CONST of
13128         similar RTX_CONST_OBJ before CONST_INT.
13129
13130 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
13131
13132         * stmt.c (expand_stack_restore): Change sa mode if needed.
13133
13134 2008-05-08  Richard Guenther  <rguenther@suse.de>
13135
13136         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13137         return type to bool.
13138         (ix86_sol10_return_in_memory): Likewise.
13139         (ix86_i386elf_return_in_memory): Likewise.
13140         (ix86_i386interix_return_in_memory): Likewise.
13141         * config/i386/i386.c (ix86_return_in_memory): Likewise.
13142         (ix86_sol10_return_in_memory): Likewise.
13143         (ix86_i386elf_return_in_memory): Likewise.
13144         (ix86_i386interix_return_in_memory): Likewise.
13145
13146 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13147
13148         PR bootstrap/36180
13149         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13150         fndecl argument.
13151         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13152         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13153         declared in front.
13154
13155 2008-05-08  Richard Guenther  <rguenther@suse.de>
13156
13157         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13158         * tree-data-ref.h (struct dr_alias): Remove subvars field.
13159         (DR_SUBVARS): Remove.
13160         * tree-dfa.c (dump_subvars_for): Remove.
13161         (debug_subvars_for): Likewise.
13162         (dump_variable): Do not dump subvars.
13163         (remove_referenced_var): Do not remove subvars.
13164         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13165         (lookup_subvars_for_var): Remove.
13166         (get_subvars_for_var): Likewise.
13167         (get_subvars_at): Likewise.
13168         (get_first_overlapping_subvar): Likewise.
13169         (overlap_subvar): Likewise.
13170         * tree-flow.h (subvar_t): Remove.
13171         (struct var_ann_d): Remove subvars field.
13172         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13173         argument.  Remove special handling of SFTs.
13174         (compute_tag_properties): Likewise.
13175         (set_initial_properties): Likewise.
13176         (compute_call_clobbered): Likewise.
13177         (count_mem_refs): Likewise.
13178         (compute_memory_partitions): Likewise.
13179         (compute_flow_insensitive_aliasing): Likewise.
13180         (setup_pointers_and_addressables): Likewise.
13181         (new_type_alias): Likewise.
13182         (struct used_part): Remove.
13183         (used_portions): Likewise.
13184         (struct used_part_map): Likewise.
13185         (used_part_map_eq): Likewise.
13186         (used_part_map_hash): Likewise.
13187         (free_used_part_map): Likewise.
13188         (up_lookup): Likewise.
13189         (up_insert): Likewise.
13190         (get_or_create_used_part_for): Likewise.
13191         (create_sft): Likewise.
13192         (create_overlap_variables_for): Likewise.
13193         (find_used_portions): Likewise.
13194         (create_structure_vars): Likewise.
13195         * tree.def (STRUCT_FIELD_TAG): Remove.
13196         * tree.h (MTAG_P): Adjust.
13197         (struct tree_memory_tag): Remove base_for_components and
13198         unpartitionable flags.
13199         (struct tree_struct_field_tag): Remove.
13200         (SFT_PARENT_VAR): Likewise.
13201         (SFT_OFFSET): Likewise.
13202         (SFT_SIZE): Likewise.
13203         (SFT_NONADDRESSABLE_P): Likewise.
13204         (SFT_ALIAS_SET): Likewise.
13205         (SFT_UNPARTITIONABLE_P): Likewise.
13206         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13207         (union tree_node): Remove sft field.
13208         * alias.c (get_alias_set): Remove special handling of SFTs.
13209         * print-tree.c (print_node): Remove handling of SFTs.
13210         * tree-dump.c (dequeue_and_dump): Likewise.
13211         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13212         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13213         * tree-predcom.c (set_alias_info): Do not set subvars.
13214         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13215         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13216         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13217         (add_vars_for_offset): Remove.
13218         (add_virtual_operand): Remove special handling of SFTs.
13219         (add_call_clobber_ops): Likewise.
13220         (add_call_read_ops): Likewise.
13221         (get_asm_expr_operands): Likewise.
13222         (get_modify_stmt_operands): Likewise.
13223         (get_expr_operands): Likewise.
13224         (add_to_addressable_set): Likewise.
13225         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13226         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13227         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13228         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13229         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13230         (tree_node_structure): Likewise.
13231         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13232         handling of SFTs.
13233         (find_what_p_points_to): Likewise.
13234
13235 2008-05-08  Sa Liu  <saliu@de.ibm.com>
13236
13237         * config/spu/spu.md: Fixed subti3 pattern.
13238
13239 2008-05-08  Richard Guenther  <rguenther@suse.de>
13240
13241         PR middle-end/36154
13242         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13243         sure to create a representative for trailing arrays for PTA.
13244
13245 2008-05-08  Richard Guenther  <rguenther@suse.de>
13246
13247         PR middle-end/36172
13248         * fold-const.c (operand_equal_p): Two objects which types
13249         differ in pointerness are not equal.
13250
13251 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13252
13253         * calls.c (compute_argument_block_size): Add argument tree fndecl.
13254         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13255         (emit_library_call_value_1): Add new variable fndecl initialized by
13256         NULL_TREE. It should be the decl type of orgfun, but this information
13257         seems not to be available here, so it uses the default calling abi.
13258         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13259         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13260         by TARGET_RETURN_IN_MEMORY.
13261         * config/i386/i386-interix.h: Likewise.
13262         * config/i386/i386.h: Likewise.
13263         * config/i386/i386elf.h: Likewise.
13264         * config/i386/ptx4-i.h: Likewise.
13265         * config/i386/sol2-10.h: Likewise.
13266         * config/i386/sysv4.h: Likewise.
13267         * config/i386/vx-common.h: Likewise.
13268         * config/cris/cris.h: Removed #if 0 clause.
13269         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13270         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13271         argument.
13272         (ix86_sol10_return_in_memory): Likewise.
13273         (ix86_i386elf_return_in_memory): New.
13274         (ix86_i386interix_return_in_memory): New.
13275         * config/mt/mt-protos.h (mt_return_in_memory): New.
13276         * config/mt/mt.c: Likewise.
13277         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13278         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
13279         * config/bfin/bfin.h: Likewise.
13280         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13281         argument.
13282         * config/bfin/bfin.c: Likewise.
13283         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13284         * config/alpha/unicosmk.h: Likewise.
13285         * config/i386/cygming.h: Likewise.
13286         * config/iq2000/iq2000.h: Likewise.
13287         * config/mips/mips.h: Likewise.
13288         * config/mn10300/mn10300.h: Likewise.
13289         * config/rs6000/rs6000.h: Likewise.
13290         * config/score/score.h: Likewise.
13291         * config/spu/spu.h: Likewise.
13292         * config/v850/v850.h: Likewise.
13293         * defaults.h: Likewise.
13294         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13295         * expr.c (emit_block_move): Adjust use of
13296         OUTGOING_REG_PARM_STACK_SPACE.
13297         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13298         OUTGOING_REG_PARM_STACK_SPACE.
13299         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13300
13301 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13302
13303         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13304         on OMP_RETURN for OMP_FOR.
13305
13306         PR debug/35896
13307         * dwarf2out.c (dw_expand_expr, common_check): Removed.
13308         (fortran_common): New function.
13309         (gen_variable_die): Call fortran_common instead of common_check,
13310         adjust for it returning tree instead of rtx.  Formatting.
13311
13312 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13313
13314         PR rtl/7335
13315         PR rtl/33826
13316         * see.c (see_copy_insn): Copy new pure const attributes for new call.
13317         * c-decl.c (merge_decls): Ditto.
13318         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13319         to RTL_CONST_OR_PURE_CALL_P.
13320         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13321         Initialized DECL_LOOPING_CONST_PURE.
13322         (process_call_operands): Set tree_side_effects properly.
13323         * tree.h (TREE_READONLY_DECL_P): Removed.
13324         (DECL_IS_PURE): Renamed to DECL_PURE_P.
13325         (DECL_LOOPING_OR_CONST_P): New macro.
13326         (struct tree_function_decl): Added looping_const_or_pure_p.
13327         (ECF_*) Renumbered.
13328         (ECF_LOOPING_OR_CONST_P): New macro.
13329         * rtlanal.c (pure_const_p): Removed.
13330         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13331         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13332         to RTL_CONST_CALL_P.
13333         * ipa-pure-const.c (pure_const_state_e): Added looping field.
13334         (check_decl, check_tree, check_call, scan_function): Initialize
13335         looping.
13336         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13337         (static_execute): Set looping true for recursive functions.
13338         Undo setting state to IPA_NEITHER for recursive functions.
13339         * cse.c (cse_insn):
13340         * ifcvt.c (noce_can_store_speculate_p): Changed
13341         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13342         RTL_CONST_OR_PURE_CALL_P.
13343         * dse.c (scan_insn): Ditto.
13344         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13345         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13346         RTL_CONST_OR_PURE_CALL_P.
13347         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13348         pure_call_p to RTL_CONST_CALL_P.
13349         * gimplify.c (gimplify_call_expr): Clear side effects for
13350         non-looping pure and constant calls.
13351         * calls.c (emit_call_1): Set rtl flags from ecf flags.
13352         (flags_from_decl_or_type): Set ecf flags from decl flags.
13353         (initialize_argument_information): Turn off
13354         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13355         Change const to pure if callee_copies is true rather than just
13356         turning off const.
13357         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13358         way of marking pure calls.
13359         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13360         Remove hack that was supposed to fix pr7335 and remove old
13361         way of marking pure calls.
13362         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13363         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13364         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13365         RTL_CONST_OR_PURE_CALL_P.
13366         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13367         * loop-invariant.c (find_exits, find_invariant_bb): Changed
13368         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
13369         * sched-deps.c (schedule_analyze): Ditto.
13370         * rtl.h (struct rtx_def): Use call field, unchanging field, and
13371         return_val field of calls to represent pure and const function info.
13372         (CONST_OR_PURE_CALL_P): Deleted macro.
13373         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13374         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
13375         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
13376         TREE_READONLY.
13377         * tree-optimize.c (execute_fixup_cfg): Added test for
13378         ECF_LOOPING_CONST_OR_PURE.
13379         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
13380         DECL_PURE_P.
13381         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
13382         effects for looping pure or const calls.
13383         (verify_gimple_expr): Added verification code.
13384         * config/alpha/alpha.c (alpha_legitimize_address,
13385         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
13386         RTL_CONST_CALL_P.
13387         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
13388         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
13389         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
13390         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
13391         RTL_CONST_OR_PURE_CALL_P.
13392         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
13393         and const calls to be deleted.
13394
13395 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13396
13397         PR target/35714
13398         * config/i386/mmx.md (mmx_subv2sf3): New expander.
13399         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
13400         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
13401         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13402         to handle nonimmediate operands.
13403         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
13404         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
13405         to handle nonimmediate operands.
13406         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
13407         (mmx_pmulhrwv4hi3): New expander.  Use
13408         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13409         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
13410         (sse2_umulv1siv1di3): New expander.  Use
13411         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13412         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
13413         (mmx_eq<mode>3): New expander.  Use
13414         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13415         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
13416         (mmx_uavgv8qi3): New expander.  Use
13417         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13418         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
13419         (mmx_uavgv4hi3): New expander.  Use
13420         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13421
13422         * config/i386/sse.md
13423         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
13424         to handle nonimmediate operands.
13425         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
13426         to handle nonimmediate operands.
13427         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
13428         to handle nonimmediate operands.
13429         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
13430         to handle nonimmediate operands.
13431         (sse2_unpckhpd_exp): New expander.  Use
13432         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13433         (sse2_unpcklpd_exp): New expander.  Use
13434         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13435         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
13436         to handle nonimmediate operands.
13437         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
13438         to handle nonimmediate operands.
13439         (*sse2_<plusminus_insn><mode>3): Rename from
13440         sse2_<plusminus_insn><mode>3 insn pattern.
13441         (sse2_<plusminus_insn><mode>3): New expander.  Use
13442         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13443         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
13444         (sse2_umulv2siv2di3): New expander.  Use
13445         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13446         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
13447         (sse4_1_mulv2siv2di3): New expander.  Use
13448         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13449         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
13450         (sse2_pmaddwd): New expander.  Use
13451         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13452         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
13453         (sse2_eq<mode>3): New expander.  Use
13454         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13455         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
13456         (sse4_1_eqv2di3): New expander.  Use
13457         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13458         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13459         (sse2_uavgv16qi3): New expander.  Use
13460         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13461         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13462         (sse2_uavgv16qi3): New expander.  Use
13463         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13464         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
13465         (sse2_uavgv8hi3): New expander.  Use
13466         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13467         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13468         (ssse3_pmulhrswv8hi3): New expander.  Use
13469         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13470         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13471         (ssse3_pmulhrswv4hi3): New expander.  Use
13472         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13473
13474         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13475         (<sse>_vmmul<mode>3): Ditto.
13476         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13477         (divv2df3): Ditto.
13478         (ssse3_pmaddubsw128): Use register_operand for operand 1.
13479         (ssse3_pmaddubsw): Ditto.
13480
13481         * config/i386/i386.c (struct_builtin_description)
13482         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
13483         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
13484         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
13485         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
13486         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
13487         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
13488         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
13489         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
13490         (ix86_fixup_binary_operands): Assert that src1
13491         and src2 must have the same mode when swapped.
13492         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
13493         and ix86_binary_operator_ok.  Do not force operands in registers
13494         when optimizing.
13495
13496 2008-05-07  Jan Hubicka  <jh@suse.cz>
13497
13498         * cgraph.c (dump_cgraph_node): Update.
13499         * cgraph.h (cgraph_local_info): Break out inline summary.
13500         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
13501         hook.
13502         * ipa-inline (inline_summary): New accestor function.
13503         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
13504         cgraph_decide_inlining, compute_inline_parameters): Update.
13505         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
13506
13507 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13508
13509         Cleanup ColdFire scheduling support and add V4 pipeline model.
13510
13511         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
13512         (define_attr cpu): Add cfv4 value.
13513         (define_attr type, define_attr type1): Merge into a single 'type'
13514         attribute.  Update all uses.
13515         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
13516         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
13517         Update all uses.
13518         (define_attr opx_mem, define_attr opy_mem): Remove.
13519         (define_attr op_mem): Clean up, update comment.
13520         (define_attr size): Use specific values instead of general int.
13521         (define_attr guess, define_attr split): Remove.  Update all uses.
13522         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
13523         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
13524         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
13525         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
13526         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
13527         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
13528         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
13529         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
13530         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
13531         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
13532         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
13533         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
13534         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
13535         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
13536         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
13537         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
13538         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
13539         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
13540         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
13541         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
13542         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
13543         Update or set attributes.
13544         (stack_tie): New fake instruction.
13545
13546         * config/m68k/m68k.h (TUNE_CFV4): New macro.
13547         (m68k_sched_attr_size): Update declaration.
13548         (m68k_sched_attr_type2): Remove.
13549         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
13550         Declare new bypass predicates.
13551
13552         * config/m68k/m68k.c (m68k_sched_issue_rate,
13553         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
13554         implementations.
13555         (TARGET_SCHED_ISSUE_RATE,
13556         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
13557         (override_options): Handle scheduling for ColdFire V4 core.
13558         (m68k_expand_prologue): Emit stack_tie.
13559         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
13560         'OP_TYPE_FPN'.  Update all uses.
13561         (sched_guess_p): Remove.
13562         (sched_address_type): Handle symbolic addresses.
13563         (sched_get_operand): New static function.
13564         (sched_operand_type): Merge into sched_attr_op_type.
13565         (sched_attr_op_type): Handle FP registers, handle quick constants,
13566         update.
13567         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
13568         (m68k_sched_attr_size): Update.  Move logic to ...
13569         (sched_get_attr_size_int): New static function.
13570         (sched_get_opxy_mem_type): New static function.
13571         (m68k_sched_attr_op_mem): Update.
13572         (m68k_sched_attr_type2): Remove.
13573         (sched_cfv4_bypass_data): New static variable.
13574         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
13575         (m68k_sched_issue_rate): Implement scheduler hook.
13576         (struct _sched_ib: enabled_p): New field.
13577         (m68k_sched_variable_issue): Update.  Handle V4.
13578         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
13579         sched_dump_class_func_t, sched_dump_split_class,
13580         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
13581         sched_dump_dfa_class, m68k_sched_dump): Remove.
13582         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
13583         hook.
13584         (m68k_sched_init_global): Remove statisctics dumping, introduce
13585         sanity check that all instructions have pipeline reservations.  Handle
13586         ColdFire V4 core.
13587         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
13588         Handle ColdFire V4 core.
13589         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
13590         New static functions.
13591         (m68k_sched_address_bypass_p): New bypass predicate.
13592         (sched_get_indexed_address_scale): New static function.
13593         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
13594
13595         * cf.md: Update comments.
13596         (define_attr type2): Remove.  Use 'type' attribute instead.
13597         Update all uses.
13598         (cf_ib): Rename to cfv123_ib.  Update all uses.
13599         (cf_oep): Rename to cfv123_oep.  Update all uses.
13600         (cf_chr): Rename to cfv123_chr.  Update all uses.
13601         (cf_mem): Rename to cfv123_mem.  Update all uses.
13602         (cf_mac): Move to more appropriate place.
13603         (cfv123_guess): New automaton and cpu_unit.
13604         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
13605         Update uses of 'size' attribute.  Handle before reload scheduling.
13606         (cfv123_guess): New dummy reservation for unhandled instructions.
13607         (cfv4_*): Pipeline description of ColdFire V4 core.
13608         (ignore): New reservation to handle 'ignore' type.
13609
13610 2008-05-07  Ian Lance Taylor  <iant@google.com>
13611
13612         PR middle-end/36013
13613         * gimplify.c (find_single_pointer_decl_1): Don't look through
13614         indirections.
13615         (find_single_pointer_decl): Adjust comments.
13616
13617 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
13618
13619         PR middle-end/36137
13620         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
13621         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
13622
13623         PR middle-end/36106
13624         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
13625         integral type rather than floating point, then VIEW_CONVERT_EXPR
13626         to the floating point type.
13627
13628 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13629
13630         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
13631         TFmode op0 to register.
13632
13633 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
13634
13635         * c-decl.c (grokdeclarator): Comment typo.
13636
13637 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
13638
13639         * tree-flow.h: Remove prototype for computed_goto_p.
13640         * tree-cfg.c (computed_goto_p): Make static.
13641
13642 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13643
13644         PR target/35657
13645         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
13646         (contains_aligned_value_p): This.  Handle _Decimal128.
13647         (ix86_function_arg_boundary): Only align _Decimal128 to its
13648         natural boundary and handle it properly.
13649
13650 2008-05-06  Martin Jambor  <mjambor@suse.cz>
13651
13652         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
13653         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
13654         (ipcp_method_set_orig_node): Removed.
13655         (ipcp_cval_get_cvalue_type): Removed.
13656         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
13657         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
13658         (ipcp_cval_set_cvalue_type): Removed.
13659         (ipcp_cval_get_cvalue): Removed.
13660         (ipcp_cval_set_cvalue): Removed.
13661         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
13662         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
13663         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
13664         (ipcp_cval_meet): Renamed to ipa_lattice_meet
13665         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
13666         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
13667         (ipcp_get_ith_lattice): Changed parameters.
13668         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
13669         (ipcp_lattice_from_jfunc): Changed parameters.
13670         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
13671         (ipcp_method_cval_print): Added temporary variable info.
13672         (ipcp_redirect): Removed already unused local variable caller.
13673         (ipcp_redirect): New temporary variable orig_callee_info
13674         (ipcp_redirect): Removed newly unused local variable callee.
13675         (ipcp_redirect): Removed (a bit confusing) local variable type.
13676         (ipcp_insert_stage): Added local variable info.
13677         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
13678         renamed too
13679         (ipcp_formal_create): Removed.
13680         (ipcp_method_cval_set): Removed.
13681         (ipcp_propagate_stage): Renamed lattice variables.
13682         (ipcp_method_cval_set_cvalue_type): Removed.
13683         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
13684         (ipcp_print_all_lattices): Changed printed strings to refer to
13685         lattices rather than cvals.
13686         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
13687         (ipcp_propagate_const): Changed formal parameters.
13688         (build_const_val): Changed formal parameters.
13689         (ipcp_insert_stage): Removed useless variable cvalue
13690         (build_const_val): Changed formal parameters.
13691         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
13692         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
13693         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
13694         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
13695         (ipcp_print_func_profile_counts): Changed string from "method" to
13696         "function"
13697         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
13698         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
13699         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
13700         (ipcp_structures_print): Renamed to ipcp_print_all_structures
13701         (ipcp_profile_print): Renamed to ipcp_print_profile_data
13702         (ipcp_lat_is_const): Changed parameters and made inline.
13703         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
13704         (ipcp_redirect): Renamed to ipcp_need_redirect_p
13705         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
13706         the predicate condition directly
13707         (ipcp_propagate_stage): Added local variable args. Removed local
13708         variable callee.  (Both are mere code simplifications.)
13709         (ipcp_method_dont_insert_const): Renamed to
13710         ipcp_node_not_modifiable_p.
13711         (ipcp_node_not_modifiable_p): Made inline.
13712         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
13713         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
13714         (ipcp_print_all_lattices): Removed variable cvalue
13715         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
13716         Updated comments.
13717
13718 2008-05-06  Olivier Hainque  <hainque@adacore.com>
13719
13720         * tree-sra.c (try_instantiate_multiple_fields): Early return
13721         if field has POINTER_TYPE.
13722
13723 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
13724
13725         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
13726         by using 'q' specifier for instruction.
13727         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
13728
13729 2008-05-06  Anatoly Sokolov <aesok@post.ru>
13730
13731         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
13732         Change mode of zero_extract from QImode to HImode.
13733         (sign bit tests peepholes): (Ditto.).
13734
13735 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
13736
13737         * config/i386/mmx.md: Remove double backslashes from asm templates.
13738         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
13739         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13740         to handle nonimmediate operands.
13741         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
13742         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13743         to handle nonimmediate operands.
13744         (*mmx_<code>v2sf3_finite): New insn pattern.
13745         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
13746         (mmx_<code>v2sf3): New expander.  Use
13747         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13748         (mmx_<plusminus_insn><mode>3): New expander.  Use
13749         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13750         (*mmx_<plusminus_insn><mode>3): New insn pattern.
13751         (mmx_add<mode>3): Removed.
13752         (mmx_ssadd<mode>3): Ditto.
13753         (mmx_usadd<mode>3): Ditto.
13754         (mmx_sub<mode>3): Ditto.
13755         (mmx_sssub<mode>3): Ditto.
13756         (mmx_ussub<mode>3): Ditto.
13757         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
13758         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
13759         to handle nonimmediate operands.
13760         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
13761         insn pattern.
13762         (mmx_smulv4hi3_highpart): New expander.  Use
13763         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13764         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
13765         insn pattern.
13766         (mmx_umulv4hi3_highpart): New expander.  Use
13767         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13768         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
13769         (mmx_<code>v4hi3): New expander.  Use
13770         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13771         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
13772         (mmx_<code>v8qi3): New expander.  Use
13773         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13774         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
13775         (mmx_<code><mode>3): New expander.  Use
13776         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13777
13778 2008-05-05  Jan Hubicka  <jh@suse.cz>
13779
13780         PR tree-optimization/36118
13781         * passes.c (pass_init_dump_file): Fix dump header.
13782
13783 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13784
13785         PR middle-end/36141
13786         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
13787         VCE for function decls.
13788
13789 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
13790
13791         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
13792
13793 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
13794
13795         * config/i386/i386.md (sat_plusminus): New.
13796         (plusminus_insn): Likewise.
13797         (plusminus_mnemonic): Likewise.
13798         (addsub): Removed.
13799         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
13800         (*<addsub><mode>3_cc_overflow): Renamed to ...
13801         (*<plusminus_insn><mode>3_cc_overflow): This.
13802         (*<addsub>si3_zext_cc_overflow): Renamed to ...
13803         (*<plusminus_insn>si3_zext_cc_overflow): This.
13804
13805         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
13806         (<plusminus_insn><mode>3): This.
13807         (*<addsub><mode>3): Renamed to ...
13808         (*<plusminus_insn><mode>3): This.
13809         (<sse>_vm<addsub><mode>3): Renamed to ...
13810         (<sse>_vm<plusminus_insn><mode>3): This.
13811         (sse3_h<addsub>v4sf3): Renamed to ...
13812         (sse3_h<plusminus_insn>v4sf3): This.
13813         (sse3_h<addsub>v2df3): Renamed to ...
13814         (sse3_h<plusminus_insn>v2df3): This.
13815         (<plusminus_insn><mode>3): New.
13816         (*<plusminus_insn><mode>3): Likewise.
13817         (sse2_<plusminus_insn><mode>3): Likewise.
13818         (add<mode>): Removed.
13819         (*add<mode>3): Likewise.
13820         (sse2_ssadd<mode>3): Likewise.
13821         (sse2_usadd<mode>3): Likewise.
13822         (sub<mode>3): Likewise.
13823         (*sub<mode>3): Likewise.
13824         (sse2_sssub<mode>3): Likewise.
13825         (sse2_ussub<mode>3): Likewise.
13826
13827 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
13828
13829         * gthr-single.h: Add in required interface elements as per gthr.h.
13830         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
13831         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
13832         Generalize UNUSED macro.
13833         (__gthread_once): Add.
13834         (__gthread_key_create): Add.
13835         (__gthread_key_delete): Add.
13836         (__gthread_getspecific): Add.
13837         (__gthread_setspecific): Add.
13838
13839 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
13840
13841         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
13842         the same size types for the indirect reference on the rhs, then
13843         create a VCE.
13844
13845 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
13846
13847         * config/i386/i386.md
13848         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
13849         one insn template instead of template series.
13850         (*xordi_1_rex64): Ditto.
13851         (*xordi_2_rex64): Ditto.
13852
13853 2008-05-05  Ira Rosen  <irar@il.ibm.com>
13854
13855         PR tree-optimization/36119
13856         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
13857         in case of SLP.
13858
13859 2008-06-04  Jan Hubicka  <jh@suse.cz>
13860
13861         tree-optimization/36100
13862         * tree-pass.h (pass_O0_always_inline): Declare.
13863         * ipa-inline.c (inline_transform): Remove dead code.
13864         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
13865         pass_O0_always_inline): New.
13866         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
13867
13868 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
13869
13870         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
13871         mnemonic in this_param move for TARGET_64BIT.
13872
13873 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
13874
13875         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
13876         (*strmovsi_rex_1): Ditto.
13877         (*strsetsi_1): Ditto.
13878         (*strsetsi_rex_1): Ditto.
13879
13880         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
13881         adddicc expanders using SWI mode iterator.
13882
13883 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13884
13885         PR target/36121
13886         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
13887         argument handling.
13888
13889 2008-05-04  David S. Miller  <davem@davemloft.net>
13890
13891         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
13892         (sparc*-*-linux*): Use linux.h in tm_file.
13893         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
13894         compiler defaulting to 32-bit.
13895         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
13896         no longer needed.
13897         * config/sparc/linux.h: Remove definitions now obtained
13898         properly from linux.h
13899         * config/sparc/linux64.h: Likewise.
13900         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
13901         don't want this setting for 32-bit builds in a biarch compiler.
13902         * doc/install.texi: Add sparc-linux to list of targets
13903         supporting --enable-targets=all.
13904
13905 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
13906
13907         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
13908
13909 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
13910
13911         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
13912         after V4SI_FTYPE_V8HI.
13913         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
13914         case V4SI_FTYPE_V2DF.
13915
13916 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
13917
13918         * doc/invoke.texi (max-flow-memory-locations): Removed.
13919         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
13920
13921 2008-05-03  Richard Guenther  <rguenther@suse.de>
13922
13923         PR middle-end/34973
13924         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
13925
13926 2008-05-02  David S. Miller  <davem@davemloft.net>
13927
13928         * config.gcc (need_64bit_hwint): Document libcpp dependency.
13929
13930 2008-05-02  Simon Baldwin <simonb@google.com>
13931
13932         PR bootstrap/36108
13933         * c-common.h (warn_array_subscript_range): Removed.
13934         * c-common.c (warn_array_subscript_range): Ditto.
13935         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
13936         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
13937
13938 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13939
13940         * config/i386/i386.c (ix86_special_builtin_type): New.
13941         (bdesc_special_args): Likewise.
13942         (ix86_expand_special_args_builtin): Likewise.
13943         (ix86_init_mmx_sse_builtins): Updated.
13944         (ix86_expand_builtin): Updated.
13945         (ix86_expand_store_builtin): Removed.
13946         (ix86_expand_unop_builtin): Likewise.
13947
13948         * config/i386/mm3dnow.h (__v2sf): Moved to ...
13949         * config/i386/mmintrin.h (__v2sf): Here.
13950
13951         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
13952         const __v2sf.
13953         (_mm_loadl_pi): Likewise.
13954         (_mm_storeh_pi): Replace __v2si with __v2sf.
13955         (_mm_storel_pi): Likewise.
13956
13957         * doc/extend.texi: Correct __builtin_ia32_loadhps,
13958         __builtin_ia32_loadlps, __builtin_ia32_storehps,
13959         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
13960         __builtin_ia32_loadlpd.
13961
13962 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13963
13964         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
13965         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
13966         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
13967         (ix86_init_mmx_sse_builtins): Updated.
13968         (ix86_expand_args_builtin): Likewise.
13969         (ix86_expand_builtin): Likewise.
13970         (ix86_expand_unop1_builtin): Renamed to ...
13971         (ix86_expand_unop_vec_merge_builtin): This.
13972
13973 2008-05-01  Jan Hubicka  <jh@suse.cz>
13974
13975         PR bootstrap/36100
13976         * ipa-inline.c (inline_generate_summary): Make static.
13977         (inline_transform): Do not call inlining at -O0; make static.
13978         * passes.c (execute_todo): Add sanity check.
13979         (execute_one_ipa_transform_pass): Execute proper flags.
13980
13981 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
13982
13983         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
13984         (DECL_NONADDRESSABLE_P): Likewise.
13985         * alias.c (record_component_aliases): Fix comment.
13986
13987 2008-05-01  Simon Baldwin <simonb@google.com>
13988
13989         * c-common.h (warn_array_subscript_range): New function.
13990         * c-common.c (warn_array_subscript_range): Ditto.
13991         * tree-vrp.c (check_array_ref): Corrected code to agree with
13992         comment, ignoring only arrays of size 0 or size 1.
13993         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
13994
13995 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13996
13997         * config/i386/i386.c (ix86_builtin_type): Replace
13998         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
13999         (bdesc_args): Updated.
14000         (ix86_init_mmx_sse_builtins): Likewise.
14001         (ix86_expand_args_builtin): Likewise.
14002
14003         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14004         with __v1di.
14005
14006         * doc/extend.texi: Correct __builtin_ia32_palignr.
14007
14008 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14009
14010         PR target/36095
14011         * config/i386/i386.c (bdesc_crc32): Removed.
14012         (ix86_expand_crc32): Likewise.
14013         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14014         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14015         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14016         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14017         UINT_FTYPE_UINT_UCHAR.
14018         (bdesc_args): Updated. Add crc32 builtins.
14019         (ix86_init_mmx_sse_builtins): Updated.
14020         (ix86_expand_args_builtin): Updated to support subreg.
14021
14022         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14023
14024 2008-05-01  Jan Hubicka  <jh@suse.cz>
14025
14026         * tree-pass.h (opt_pass): Add IPA_PASS.
14027         (varpool_node, cgraph_node): Forward declare.
14028         (ipa_opt_pass): Define.
14029         (pass_ipa_inline): Turn into ipa_opt_pass.
14030         (pass_apply_inline): Remove.
14031         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14032         (apply_inline): Turn into ....
14033         (inline_transform): ... this one.
14034         (inline_generate_summary): New function.
14035         (pass_apply_inline): Remove.
14036         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14037         vector.
14038         (struct function): Add ipa_transforms_to_apply.
14039         * passes.c (register_one_dump_file): Work on IPA_PASS.
14040         (init_optimization_passes): Remove pass_inline_parameters and
14041         pass_apply_inline.
14042         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14043         (execute_one_pass) ... here; apply transforms when possible.
14044         (add_ipa_transform_pass, execute_ipa_summary_asses,
14045         execute_one_ipa_transform_pass): New.
14046         (execute_ipa_pass_list): Update for IPA_PASS type.
14047
14048 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14049
14050         * config/i386/i386.c (ix86_builtin_type): Add
14051         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14052         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14053         (bdesc_args): Add SSE4a builtins.
14054         (ix86_init_mmx_sse_builtins): Updated.
14055         (ix86_expand_args_builtin): Likewise.
14056         (ix86_expand_builtin): Likewise.
14057
14058 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14059
14060         * config/i386/i386.c (ix86_builtin_type): Add
14061         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14062         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14063         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14064         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14065         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14066         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14067         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14068         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14069         and DI_FTYPE_DI_DI_INT.
14070         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14071         (ix86_init_mmx_sse_builtins): Updated.
14072         (ix86_expand_args_builtin): Likewise.
14073         (ix86_expand_builtin): Likewise.
14074         (ix86_expand_binop_imm_builtin): Removed.
14075
14076         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14077
14078 2008-04-30  Richard Guenther  <rguenther@suse.de>
14079
14080         PR tree-optimization/32921
14081         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14082
14083 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14084
14085         * config/arm/arm.c (arm_unwind_emit): Use
14086         crtl->all_throwers_are_sibcalls instead of
14087         cfun->all_throwers_are_sibcalls.
14088         (arm_output_fn_unwind): Likewise.
14089         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14090         instead of cfun->uses_pic_offset_table.
14091         (frv_expand_prologue): Likewise.
14092         (frv_frame_pointer_required): Likewise.
14093         (frv_expand_fdpic_call): Likewise.
14094         (frv_emit_movsi): Likewise.
14095         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14096         cfun->returns_pcc_struct instead of
14097         current_function_returns_pcc_struct.
14098         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14099         instead of cfun->calls_eh_return.
14100         (m32c_pushm_popm): Likewise.
14101         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14102         "extern" declaration.
14103
14104 2008-04-30  Richard Guenther  <rguenther@suse.de>
14105
14106         PR tree-optimization/21636
14107         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14108         constant address.
14109         (evaluate_stmt): Print the likely value.
14110         (ccp_visit_stmt): Avoid excessive vertical spacing.
14111
14112 2008-04-30  Rafael Espindola  <espindola@google.com>
14113
14114         * builtins.c (fold_call_expr): Return realret.
14115         * tree-ssa-threadedge.c
14116         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14117         __builtin_object_size.
14118
14119 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
14120
14121         * gcc.c (wrapper_string): New variable.
14122         (insert_wrapper): New function.
14123         (execute): New option -wrapper.
14124         * doc/invoke.texi (Overall Options): New driver option -wrapper.
14125
14126 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
14127
14128         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14129         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14130         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14131         from...
14132         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
14133         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14134         config/rs6000/e500crtres64gprctr.asm,
14135         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14136         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14137         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14138         config/rs6000/e500crtsav64gprctr.asm,
14139         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14140         config/rs6000/e500crtsavg64gprctr.asm: New files.
14141         * config/rs6000/t-ppccomm: Add build rules for new files.
14142         (LIB2FUNCS_STATIC_EXTRA): Add new files.
14143         * config/rs6000/t-netbsd: Add build rules for new files.
14144         (LIB2FUNCS_STATIC_EXTRA): New variable.
14145         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14146         (CRTSAVRES_DEFAULT_SPEC): Likewise.
14147         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14148
14149 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14150
14151         * config/i386/i386.c (ix86_builtin_type): Add
14152         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14153         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14154         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14155         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14156         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14157         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14158         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14159         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14160         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14161         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14162         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14163         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14164         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14165         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14166         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14167         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14168         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14169         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14170         V1DI_FTYPE_V2SI_V2SI.
14171         (bdesc_2arg): Moved to ...
14172         (bdesc_args): Here.
14173         (ix86_init_mmx_sse_builtins): Updated.
14174         (ix86_expand_args_builtin): Updated.  Take a pointer
14175         to const struct builtin_description.  Handle comparison
14176         builtin functions.
14177         (ix86_expand_sse_compare): Take a new argument for swapping operands.
14178         (ix86_expand_builtin): Updated.
14179
14180         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14181         (ssse3_pmaddubsw128): This.
14182         (ssse3_pmaddubswv4hi3): Renamed to ...
14183         (ssse3_pmaddubsw): This.
14184
14185         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14186         (__builtin_ia32_packssdw128): Likewise.
14187         (__builtin_ia32_packuswb128): Likewise.
14188         (__builtin_ia32_pmaddubsw): Likewise.
14189         (__builtin_ia32_pmaddubsw128): Likewise.
14190
14191 2008-04-30  Richard Guenther  <rguenther@suse.de>
14192
14193         PR tree-optimization/14847
14194         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14195         (recognize_bits_test): Use it.
14196         (recognize_single_bit_test): Likewise.
14197
14198 2008-04-30  Martin Jambor  <mjambor@suse.cz>
14199
14200         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14201         instead of setting number of formal parameters to zero.
14202         (ipcp_init_stage): Do not set the number of actual parameters to zero
14203         either.
14204         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14205         which are called with variable number of arguments.
14206         (ipcp_insert_stage): Explicitely skipping all nodes which are
14207         called with variable number of arguments.
14208         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14209         number of parameters.
14210
14211         * ipa-prop.h (struct ipa_node_params): Added flag
14212         called_with_var_arguments
14213         (ipa_set_param_count): Added.  Changed sole setter to use it.
14214         (ipa_get_param_count): Added.  All readers of param_count
14215         converted to use it instead.
14216         (ipa_set_called_with_variable_arg): Added.
14217         (ipa_is_called_with_var_arguments): Added.
14218         (ipa_get_ith_param): Added.  All readers of param_decls converted
14219         to use it instead.
14220         (ipa_set_cs_argument_count): Added, sole writer to argument_count
14221         changed to use it.
14222         (ipa_get_cs_argument_count): Added, all readers of argument_count
14223         changed to cal it.
14224         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14225         to use it.
14226
14227         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14228         (struct ipcp_lattice): Renamed cval_type to type
14229         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14230
14231         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14232         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14233         (ipcp_insert_stage): Changed the type of variable cvalue to tree
14234         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14235         (build_const_val): Changed the type of parameter cvalue to tree
14236         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14237         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14238
14239         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14240         constant
14241
14242         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14243         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14244         (ipa_add_method): Renamed to ipa_push_func_to_list
14245         (ipa_remove_method): Renamed to ipa_pop_func_from_list
14246         (ipa_callsite_param_count): Removed.
14247         (ipa_callsite_param_count_set): Removed.
14248         (ipa_callsite_param): Removed.
14249         (ipa_callsite_callee): Removed.
14250         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14251         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14252         (ipa_method_formal_count): Removed.
14253         (ipa_method_formal_count_set): Removed.
14254         (ipa_method_get_tree): Removed.
14255         (ipa_method_tree_map_create): Removed.
14256         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14257         (ipa_create_param_decls_array): Creates the array itself
14258         (ipa_create_param_decls_array): Temporary variable info instead of
14259         a few dereferences.
14260         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14261         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14262         (get_type): Removed.
14263         (ipa_jf_get_info_type): Removed.
14264         (ipa_node_create): Renamed to ipa_create_node_params
14265         (ipa_free): Renamed to ipa_free_all_node_params
14266         (ipa_nodes_create): Renamed to ipa_create_all_node_params
14267         (ipa_edges_create): Renamed to ipa_create_all_edge_args
14268         (ipa_edges_free): Renamed to ipa_free_all_edge_args
14269         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14270         (ipa_free_all_node_params): Deallocation to jump_functions moved to
14271         ipa_free_all_edge_args
14272         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14273         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14274         (ipa_create_methodlist_node): Removed.
14275         (ipa_methodlist_method): Removed.
14276         (ipa_methodlist_method_set): Removed.
14277         (ipa_methodlist_next_method): Removed.
14278         (ipa_methodlist_next_method_set): Removed.
14279         (ipa_method_is_modified): Removed.
14280         (ipa_method_modify_create): Removed.
14281         (ipa_method_modify_init): Temporary variable info instead of a few
14282         dereferences.
14283         (ipa_detect_param_modifications): Temporary variable info instead of
14284         a few dereferences.
14285         (ipa_compute_jump_functions): Temporary variable info instead of
14286         a few dereferences.
14287         (ipa_method_modify_set): Removed.
14288         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14289         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14290         than craph_node as the first parameter.
14291         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14292         (ipa_method_modify_init): Removed.
14293         (ipa_compute_jump_functions): Added a temp variable instead of
14294         repeatadly dereferencing the cgraph_edge.aux pointer
14295         (ipa_callsite_param_set_type): Removed.
14296         (ipa_compute_jump_functions): i renamed to index and moved to
14297         an inner block
14298         (ipa_callsite_param_set_info_type_formal): Removed.
14299         (ipa_callsite_param_set_info_type): Removed.
14300         (ipa_callsite_param_map_create): Removed.
14301         (ipa_callsite_tree): Removed.
14302         (ipa_callsite_caller): Removed.
14303         (ipa_pop_func_from_list): return_method removed to return_func
14304
14305         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14306         prefixed all values with IPA_. Changed all users.
14307         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14308         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14309         and FORMAL_IPATYPE IPA_PASS_THROUGH.
14310         (union parameter_info): Renamed to jump_func_value.
14311         (union jump_func_value): Renamed value to constant
14312         (struct ipa_jump_func): Renamed info_type to value
14313         (struct ipa_node): Renamed to ipa_node_params
14314         (struct ipa_node_params): Renamed ipa_arg_num to param_count
14315         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14316         (struct ipa_node_params): Renamed ipa_mod to modified_flags
14317         (struct ipa_edge): Renamed to ipa_edge_args
14318         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14319         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14320         (struct ipa_methodlist): Renamed to ipa_func_list
14321         (struct ipa_func_list): method_p renamed to node, next_method
14322         renamed to next
14323         (ipa_methodlist_p): Removed, switched all users to struct pointer
14324         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14325
14326 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
14327
14328         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14329         (rs6000_emit_epilogue): Use backchain to restore only when we
14330         have a large frame.  Make use of frame pointer to restore if we
14331         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14332
14333 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
14334
14335         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14336         Add mode to zero_extract.
14337         (sign bit tests peepholes): (Ditto.).
14338
14339 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14340
14341         * config/i386/i386.c (ix86_builtins): Replace Prescott New
14342         Instructions in comments with SSE3.
14343         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
14344         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14345         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14346         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14347         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14348         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14349         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14350         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14351         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14352         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14353         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14354         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14355         (bdesc_sse_args): Renamed to ...
14356         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14357         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14358         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14359         IX86_BUILTIN_FABSQ.
14360         (bdesc_1arg): Moved to ...
14361         (bdesc_args): Here.
14362         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
14363         Instructions in comments with SSE3.
14364         (ix86_expand_sse_operands_builtin): Renamed to ...
14365         (ix86_expand_args_builtin): This.  Updated.
14366         (ix86_expand_unop1_builtin): Update comments.
14367         (ix86_expand_builtin): Updated.
14368
14369 2008-04-29  Richard Guenther  <rguenther@suse.de>
14370
14371         PR tree-optimization/36078
14372         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
14373         Update virtual SSA form after cleaning up the CFG.
14374
14375 2008-04-29  Richard Guenther  <rguenther@suse.de>
14376
14377         PR middle-end/15255
14378         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
14379
14380 2008-04-29  Richard Guenther  <rguenther@suse.de>
14381
14382         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
14383         (compute_may_aliases): Do not call finalize_ref_all_pointers.
14384         (compute_flow_insensitive_aliasing): Do not treat
14385         PTR_IS_REF_ALL pointers special.
14386         (get_smt_for): Likewise.
14387         (may_alias_p): Re-structure.
14388         (is_escape_site): A ref-all pointer conversion is not an escape site.
14389         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
14390         PTR_IS_REF_ALL pointers special.
14391         * tree-ssa-structalias.h (struct alias_info): Remove
14392         ref_all_symbol_mem_tag field.
14393         (PTR_IS_REF_ALL): Remove.
14394
14395 2008-04-29  Richard Guenther  <rguenther@suse.de>
14396
14397         PR middle-end/36077
14398         * fold-const.c (extract_muldiv_1): In combining division constants
14399         make sure to never overflow.
14400
14401 2008-04-29  Nick Clifton  <nickc@redhat.com>
14402
14403         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
14404
14405 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14406
14407         PR bootstrap/35169
14408         * optc-gen.awk: Work around HP-UX/IA awk bug.
14409
14410 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
14411
14412         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
14413         2008-04-25 commit.
14414
14415 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14416
14417         PR target/36073
14418         * config/i386/i386.md
14419         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
14420         Change operand 1 predicate to nonimmediate_operand.
14421
14422 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
14423
14424         PR debug/36060
14425         * dwarf2out.c (struct die_struct): Mark as chain_circular through
14426         die_sub field.
14427         * gengtype.c (walk_type, write_func_for_structure): Handle
14428         chain_circular.
14429         * doc/gty.texi: Document chain_circular.
14430
14431 2008-04-28  Richard Guenther  <rguenther@suse.de>
14432
14433         PR tree-optimization/36066
14434         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
14435         SCEV and loop.
14436
14437 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14438
14439         PR target/36064
14440         * config/i386/i386.md
14441         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
14442         Use match_scratch instead of match_operand for operands 3 and 4.
14443
14444 2008-04-27  Richard Guenther  <rguenther@suse.de>
14445
14446         PR tree-optimization/18754
14447         PR tree-optimization/34223
14448         * tree-pass.h (pass_complete_unrolli): Declare.
14449         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
14450         loop size before and after unconditionally of UL_NO_GROWTH in effect.
14451         Rewrite loop into loop closed SSA form if it is not already.
14452         (tree_unroll_loops_completely): Re-structure to iterate over
14453         innermost loops with intermediate CFG cleanups.
14454         Unroll outermost loops only if requested or the code does not grow
14455         doing so.
14456         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
14457         loops are available.
14458         (tree_vectorize): Instead do so here.
14459         (tree_complete_unroll): Also unroll outermost loops.
14460         (tree_complete_unroll_inner): New function.
14461         (gate_tree_complete_unroll_inner): Likewise.
14462         (pass_complete_unrolli): New pass.
14463         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
14464         uses outside of the loop.
14465         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14466         form if it is available.
14467         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14468         * passes.c (init_optimization_passes): Schedule complete inner
14469         loop unrolling pass before the first CCP pass after final inlining.
14470
14471 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
14472
14473         * targhooks.h (default_emutls_var_fields,
14474         default_emutls_var_init): Declare.
14475         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14476         * target.h (struct gcc_target): Add struct emutls member.
14477         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14478         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14479         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
14480         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
14481         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
14482         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
14483         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
14484         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
14485         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
14486         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
14487         emit debug information.
14488         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
14489         * varasm.c: Include targhooks.h.
14490         (emutls_object_section, emutls_tmpl_section): New.
14491         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
14492         (EMUTLS_SEPARATOR): New.
14493         (prefix_name): New.
14494         (get_emutls_object_name): New.
14495         (default_emutls_var_fields): New, broken out of ...
14496         (get_emutls_object_type): ... here.  Adjust to use target hooks.
14497         (get_emutls_init_templ_addr): Adjust to use target hooks.
14498         (emutls_decl): Adjust to use target hooks.
14499         (emutls_finish): Likewise.
14500         (default_emutls_var_init): New, broken out of ...
14501         (assemble_variable): ... here.  Adjust to use target hooks.
14502         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
14503         SECCAT_EMUTLS_TMPL.
14504         * c-common.c (handle_section_attribute): Prevent overriding
14505         sections for emulated tls with special sections.
14506         * config/i386/i386.c (x86_64_elf_select_section): Add
14507         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
14508         (x86_64_elf_unique_section): Likewise.
14509         * config/vxworks.c: Include tree.h.
14510         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
14511         (vxworks_override_options): Set TLS scheme.
14512         * doc/tm.texi (Emulated TLS): New node.
14513
14514 2008-04-26  Simon Baldwin <simonb@google.com>
14515
14516         PR c/35652
14517         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
14518         with propagated string constants.
14519
14520 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
14521
14522         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
14523         constraint for operand 2 when operand 0 is memory operand.
14524         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
14525         operand 0 is memory operand.
14526         (fix_trunc<mode>_i387_with_temp): Ditto.
14527         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
14528         operand 2 when operand 1 is memory operand.
14529         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
14530         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
14531         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
14532         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
14533         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
14534         operands 2,3 and 4 when operand 1 is memory operand.
14535         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
14536         is memory operand.
14537         (fistdi2_floor_with_temp): Ditto.
14538         (fist<mode>2_floor_with_temp): Ditto.
14539         (fistdi2_ceil_with_temp): Ditto.
14540         (fist<mode>2_ceil_with_temp): Ditto.
14541         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
14542
14543 2008-04-26  David Daney  <ddaney@avtrex.com>
14544
14545         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
14546         unspec_volitile.
14547         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
14548         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14549         UNSPEC_UPDATE_GOT_VERSION): Renumber.
14550         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
14551         (compare_and_swap_12): New insn.
14552         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
14553         * config/mips/mips.c (mips_force_binary): New function.
14554         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
14555         (mips_expand_compare_and_swap_12): New function.
14556         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
14557
14558 2008-04-25  Jan Hubicka  <jh@suse.cz>
14559
14560         PR testsuite/35843
14561         * cfgexpand.c (pass_expand): Turn into RTL pass.
14562         * passes.c (execute_one_pass): Do pass typechecking after execution.
14563         * tree-pass.h (pass_expand): Turn into RTL pass.
14564
14565         * function.h (struct rtl_data): Move here fields
14566         accesses_prior_frames, calls_eh_return, saves_all_registers,
14567         has_nonlocal_goto, has_asm_statement, is_thunk,
14568         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
14569         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
14570         arg_pointer_save_area_init from struct function; turn into bool.
14571         (struct function): Move
14572         calls_eh_return, saves_all_registers, has_nonlocal_goto,
14573         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
14574         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
14575         tail_call_emit, arg_pointer_save_area_init
14576         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
14577         (current_function_returns_struct, current_function_returns_pcc_struct,
14578         current_function_calls_setjmp, current_function_calls_alloca,
14579         current_function_accesses_prior_frames,
14580         current_function_calls_eh_return, current_function_is_thunk,
14581         current_function_stdarg, current_function_profile,
14582         current_function_limit_stack, current_function_uses_pic_offset_table,
14583         current_function_uses_const_pool, current_function_has_nonlocal_label,
14584         current_function_saves_all_registers,
14585         current_function_has_nonlocal_goto,
14586         current_function_has_asm_statement): Remove accesor macros.
14587         * ra-conflict.c (global_conflicts): Update.
14588         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
14589         (suitable_for_tail_call_opt_p): Update.
14590         * builtins.c (expand_builtin_return_addr): Update.
14591         (expand_builtin_setjmp_setup): Update.
14592         (expand_builtin_nonlocal_goto): Update.
14593         * final.c (final_start_function): Update.
14594         (profile_function): Update.
14595         (leaf_function_p): Update.
14596         (only_leaf_regs_used): Update.
14597         * df-scan.c (df_get_exit_block_use_set): Update.
14598         * dojump.c (clear_pending_stack_adjust): Update.
14599         * tree-stdarg.c (gate_optimize_stdarg): Update.
14600         * gimple-low.c (lower_function_body): Update.
14601         * global.c (compute_regsets): Update.
14602         (global_alloc): Update.
14603         * dwarf2out.c (dwarf2out_begin_prologue): Update.
14604         * expr.c (expand_assignment): Update.
14605         * dse.c (dse_step0): Update.
14606         (dse_step1): Update.
14607         * c-decl.c (store_parm_decls): Update.
14608         * local-alloc.c (combine_regs): Update.
14609         (find_free_reg): Update.
14610         * function.c (assign_parms_augmented_arg_list): Update.
14611         (assign_parm_find_data_types): Update.
14612         (assign_parms): Update.
14613         (allocate_struct_function): Update.
14614         (expand_function_start): Update.
14615         (expand_function_end): Update.
14616         (get_arg_pointer_save_area): Update.
14617         (thread_prologue_and_epilogue_insns): Update.
14618         (rest_of_match_asm_constraints): Update.
14619         * stor-layout.c (variable_size): Update.
14620         * gcse.c (gcse_main): Update.
14621         (bypass_jumps): Update.
14622         * gimplify.c (gimplify_function_tree): Update.
14623         * calls.c (emit_call_1): Update.
14624         (expand_call): Update.
14625         * bt-load.c (compute_defs_uses_and_gen): Update.
14626         * except.c (sjlj_assign_call_site_values): Update.
14627         (sjlj_emit_function_enter): Update.
14628         (can_throw_external): Update.
14629         (set_nothrow_function_flags): Update.
14630         (expand_builtin_unwind_init): Update.
14631         (expand_eh_return): Update.
14632         (convert_to_eh_region_ranges): Update.
14633         (output_function_exception_table): Update.
14634         * emit-rtl.c (gen_tmp_stack_mem): Update.
14635         * cfgexpand.c (expand_used_vars): Update.
14636         (tree_expand_cfg): Update.
14637         * cfgcleanup.c (rest_of_handle_jump): Update.
14638         * explow.c (allocate_dynamic_stack_space): Update.
14639         * varasm.c (assemble_start_function): Update.
14640         (force_const_mem): Update.
14641         (mark_constant_pool): Update.
14642         * tree-optimize.c (tree_rest_of_compilation): Update.
14643         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
14644         * tree-cfg.c (notice_special_calls): Update.
14645         (is_ctrl_altering_stmt): Update.
14646         (tree_can_make_abnormal_goto): Update.
14647         (tree_purge_dead_abnormal_call_edges): Update.
14648         * config/alpha/predicates.md: Update.
14649         * config/alpha/alpha.c (alpha_sa_mask): Update.
14650         (alpha_sa_size): Update.
14651         (alpha_does_function_need_gp): Update.
14652         (alpha_expand_prologue): Update.
14653         (alpha_start_function): Update.
14654         (alpha_output_function_end_prologue): Update.
14655         (alpha_expand_epilogue): Update.
14656         * config/frv/frv.c (frv_stack_info): Update.
14657         (frv_expand_epilogue): Update.
14658         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
14659         (s390_register_info): Update.
14660         (s390_frame_info): Update.
14661         (s390_init_frame_layout): Update.
14662         (s390_can_eliminate): Update.
14663         (save_gprs): Update.
14664         * config/spu/spu.c (spu_split_immediate): Update.
14665         (need_to_save_reg): Update.
14666         (spu_expand_prologue): Update.
14667         (spu_expand_epilogue): Update.
14668         * config/sparc/sparc.md: Update.
14669         * config/sparc/sparc.c (eligible_for_return_delay): Update.
14670         (sparc_tls_got): Update.
14671         (legitimize_pic_address): Update.
14672         (sparc_emit_call_insn): Update.
14673         (sparc_expand_prologue): Update.
14674         (output_return): Update.
14675         (print_operand): Update.
14676         (sparc_function_ok_for_sibcall): Update.
14677         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
14678         * config/m32r/m32r.md: Update.
14679         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
14680         (m32r_compute_frame_size): Update.
14681         (m32r_expand_prologue): Update.
14682         (m32r_expand_epilogue): Update.
14683         (m32r_legitimize_pic_address): Update.
14684         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
14685         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14686         * config/i386/i386.c (ix86_frame_pointer_required): Update.
14687         (gen_push): Update.
14688         (ix86_save_reg): Update.
14689         (ix86_compute_frame_layout): Update.
14690         (ix86_expand_prologue): Update.
14691         (ix86_expand_epilogue): Update.
14692         * config/sh/sh.c (output_stack_adjust): Update.
14693         (calc_live_regs): Update.
14694         (sh5_schedule_saves): Update.
14695         (sh_expand_prologue): Update.
14696         (sh_expand_epilogue): Update.
14697         (sh_setup_incoming_varargs): Update.
14698         (sh_allocate_initial_value): Update.
14699         (sh_get_pr_initial_val): Update.
14700         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
14701         * config/sh/sh.md (label:): Update.
14702         * config/avr/avr.c (out_movhi_mr_r): Update.
14703         * config/crx/crx.h (enum): Update.
14704         * config/xtensa/xtensa.h (along): Update.
14705         * config/stormy16/stormy16.c Update.
14706         (xstormy16_compute_stack_layout): Update.
14707         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
14708         (fr30_expand_prologue): Update.
14709         * config/cris/cris.c (cris_conditional_register_usage): Update.
14710         (cris_reg_saved_in_regsave_area): Update.
14711         (cris_initial_frame_pointer_offset): Update.
14712         (cris_simple_epilogue): Update.
14713         (cris_expand_prologue): Update.
14714         (cris_expand_epilogue): Update.
14715         (cris_expand_pic_call_address): Update.
14716         (cris_asm_output_symbol_ref): Update.
14717         (cris_asm_output_label_ref): Update.
14718         * config/cris/cris.md Update.
14719         * config/iq2000/iq2000.c (compute_frame_size): Update.
14720         (iq2000_expand_epilogue): Update.
14721         * config/mt/mt.h (save_direction): Update.
14722         * config/mn10300/mn10300.c (mn10300_function_value): Update.
14723         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
14724         (ia64_secondary_reload_class): Update.
14725         * config/m68k/m68k.c (m68k_save_reg): Update.
14726         (m68k_expand_prologue): Update.
14727         (m68k_expand_epilogue): Update.
14728         (legitimize_pic_address): Update.
14729         * config/rs6000/rs6000.c (rs6000_got_register): Update.
14730         (first_reg_to_save): Update.
14731         (first_altivec_reg_to_save): Update.
14732         (compute_vrsave_mask): Update.
14733         (compute_save_world_info): Update.
14734         (rs6000_stack_info): Update.
14735         (spe_func_has_64bit_regs_p): Update.
14736         (rs6000_ra_ever_killed): Update.
14737         (rs6000_emit_eh_reg_restore): Update.
14738         (rs6000_emit_allocate_stack): Update.
14739         (rs6000_emit_prologue): Update.
14740         (rs6000_emit_epilogue): Update.
14741         (rs6000_output_function_epilogue): Update.
14742         (output_profile_hook): Update.
14743         (rs6000_elf_declare_function_name): Update.
14744         * config/rs6000/rs6000.h (rs6000_args): Update.
14745         * config/rs6000/rs6000.md: Update.
14746         * config/mcore/mcore.c (mcore_expand_prolog): Update.
14747         * config/arc/arc.c (arc_output_function_epilogue): Update.
14748         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
14749         * config/darwin.c (machopic_function_base_name): Update.
14750         * config/score/score3.c (score3_compute_frame_size): Update.
14751         (rpush): Update.
14752         (rpop): Update.
14753         (score3_epilogue): Update.
14754         * config/score/score7.c (score7_compute_frame_size): Update.
14755         (score7_prologue): Update.
14756         (score7_epilogue): Update.
14757         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
14758         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14759         * config/arm/arm.c (use_return_insn): Update.
14760         (require_pic_register): Update.
14761         (arm_load_pic_register): Update.
14762         (arm_compute_save_reg0_reg12_mask): Update.
14763         (arm_compute_save_reg_mask): Update.
14764         (thumb1_compute_save_reg_mask): Update.
14765         (output_return_instruction): Update.
14766         (arm_output_function_prologue): Update.
14767         (arm_output_epilogue): Update.
14768         (arm_get_frame_offsets): Update.
14769         (arm_expand_prologue): Update.
14770         (thumb_pushpop): Update.
14771         (thumb_exit): Update.
14772         (thumb1_expand_prologue): Update.
14773         (thumb1_expand_epilogue): Update.
14774         (arm_unwind_emit): Update.
14775         (arm_output_fn_unwind): Update.
14776         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
14777         * config/arm/arm.md: Update.
14778         * config/pa/pa.md: Update.
14779         * config/pa/pa.c (legitimize_pic_address): Update.
14780         (compute_frame_size): Update.
14781         (hppa_expand_prologue): Update.
14782         (hppa_expand_epilogue): Update.
14783         (borx_reg_operand): Update.
14784         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
14785         (HARD_REGNO_RENAME_OK): Update.
14786         * config/mips/mips.c (mips_global_pointer): Update.
14787         (mips_save_reg_p): Update.
14788         (mips_compute_frame_info): Update.
14789         (mips_frame_pointer_required): Update.
14790         (mips_expand_prologue): Update.
14791         (mips_expand_epilogue): Update.
14792         (mips_can_use_return_insn): Update.
14793         (mips_reorg_process_insns): Update.
14794         * config/v850/v850.c (compute_register_save_size): Update.
14795         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
14796         * config/mmix/mmix.c (along): Update.
14797         (mmix_expand_epilogue): Update.
14798         * config/bfin/bfin.c (legitimize_pic_address): Update.
14799         (must_save_p): Update.
14800         (stack_frame_needed_p): Update.
14801         (add_to_reg): Update.
14802         (bfin_expand_prologue): Update.
14803         * stmt.c (expand_asm_operands): Update.
14804         * reload1.c (reload): Update.
14805         (init_elim_table): Update.
14806
14807 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
14808
14809         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
14810
14811 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
14812
14813         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
14814         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
14815         (mov<mode>): Removed.
14816         (*movv4sf_internal): Likewise.
14817         (*movv2df_internal): Likewise.
14818
14819 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
14820
14821         * config.gcc (crx-*-elf): Remove deprecation.
14822
14823 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
14824
14825         * config/i386/cygming-crtend.c (register_frame_ctor): Register
14826         __gcc_deregister_frame with atexit.
14827         (deregister_frame_dtor): Remove.
14828
14829 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
14830             Nathan Sidwell  <nathan@codesourcery.com>
14831
14832         * config/rs6000/rs6000.opt (mspe): Remove Var property.
14833         (misel): Likewise.
14834         * config/rs6000/rs6000.h (rs6000_spe): Declare.
14835         (rs6000_isel): Likewise.
14836         * config/rs6000/rs6000.c (rs6000_spe): New variable.
14837         (rs6000_isel): New variable.
14838         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
14839
14840 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14841
14842         PR c++/35758
14843         * c-common.c (handle_vector_size_attribute): Call
14844         lang_hooks.types.reconstruct_complex_type instead of
14845         reconstruct_complex_type.
14846         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
14847         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
14848         * langhooks.h (struct lang_hooks_for_types): Add
14849         reconstruct_complex_type hook.
14850         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
14851         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14852
14853 2008-04-24  Richard Guenther  <rguenther@suse.de>
14854
14855         * c-common.h (check_builtin_function_arguments): Declare.
14856         * c-common.c (validate_nargs): New function.
14857         (check_builtin_function_arguments): Likewise.
14858         * c-typeck.c (build_function_call): Call
14859         check_builtin_function_arguments.
14860         * builtins.c (fold_builtin_classify): Remove error reporting code.
14861         (fold_builtin_unordered_cmp): Likewise.
14862         (fold_builtin_1): Likewise.
14863         (fold_builtin_n): Likewise.
14864
14865 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14866
14867         PR tree-optimization/36008
14868         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
14869         the original op1, rather than delta by step.
14870
14871 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
14872             Sebastian Pop  <sebastian.pop@amd.com>
14873
14874         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
14875         eliminate_local_variables_stmt, eliminate_local_variables,
14876         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
14877         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
14878         of code delimited by two edges in the CFG.
14879         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
14880         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
14881         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
14882         the case of parallelisation of reductions.
14883         (expr_invariant_in_region_p): New.
14884
14885         * tree-flow.h (gather_blocks_in_sese_region): Declared.
14886         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
14887
14888 2008-04-24  Ira Rosen  <irar@il.ibm.com>
14889             Richard Guenther  <rguenther@suse.de>
14890
14891         PR tree-optimization/36034
14892         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
14893         incapable of dealing with loads with gaps.
14894
14895 2008-04-24  Rafael Espindola  <espindola@google.com>
14896
14897         * tree-flow.h (vrp_evaluate_conditional): Change signature.
14898         * tree-ssa-propagate.c (fold_predicate_in): Update call to
14899         vrp_evaluate_conditional.
14900         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
14901         (vrp_evaluate_conditional): Split the cond argument.
14902         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
14903         (simplify_stmt_for_jump_threading): Update call to
14904         vrp_evaluate_conditional.
14905
14906 2008-04-24  Ira Rosen  <irar@il.ibm.com>
14907
14908         PR tree-optimization/35982
14909         * tree-vect-analyze.c (vect_check_interleaving): Check that the
14910         interleaved data-refs are of the same type.
14911
14912 2008-04-24  Danny Smith  <dannysmith@users.net>
14913
14914         * c-format.c (check_format_info_main): Use strncmp rather than a
14915         magic prefix to handle multichar length specs.
14916         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
14917         Don't prefix "I64" and "I32" with '\0'.
14918
14919 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14920
14921         PR target/36015
14922         * config/i386/i386.c (init_cumulative_args): Don't pass anything
14923         in registers for -m32 only if stdarg_p (fntype).
14924
14925 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
14926
14927         PR rtl-optimization/36006
14928         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
14929         temp to op0 in order to avoid invalid rtx sharing.
14930
14931 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
14932
14933         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
14934         check TREE_INVARIANT.
14935         * tree-gimple.c (is_gimple_address): New.
14936         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
14937         * tree-gimple.h (is_gimple_address): New.
14938         * tree.h (decl_address_invariant_p): New.
14939         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
14940         (build_string): Likewise.
14941         (decl_address_invariant_p): New, from is_gimple_invariant_address.
14942         (tree_invariant_p_1): Likewise.
14943         (save_expr): Use it.
14944         (tree_invariant_p): New.
14945         (skip_simple_arithmetic): Use it.
14946         (stabilize_reference_1): Use it.
14947         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
14948         simplify.
14949         (build1_stat): Drop code to compute TREE_INVARIANT.
14950         (build2_stat): Drop code to compute TREE_INVARIANT.
14951         (build3_stat): Drop code to compute TREE_INVARIANT.
14952         (build4_stat): Drop code to compute TREE_INVARIANT.
14953         (build5_stat): Drop code to compute TREE_INVARIANT.
14954         (build7_stat): Drop code to compute TREE_INVARIANT.
14955         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
14956         * tree.h (struct tree_base): Remove invariant_flag.
14957         (TREE_INVARIANT): Remove.
14958         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
14959         (fold_builtin_expect): Check TREE_CONSTANT.
14960         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
14961         * c-tree.h (c_expr_to_decl): Drop third parameter.
14962         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
14963         (build_c_cast): Don't set TREE_INVARIANT.
14964         (pop_init_level): Don't set TREE_INVARIANT.
14965         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
14966         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
14967         TREE_CONSTANT.
14968         (gimplify_init_constructor): Don't set TREE_INVARIANT.
14969         (gimplify_addr_expr): Adjust comment.
14970         * tree-mudflap.c (mf_build_string):
14971         * print-tree.c (print_node): Don't print TREE_INVARIANT.
14972         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
14973         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
14974         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
14975         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
14976         * langhooks.h (struct lang_hooks): Drop third parameter from
14977         expr_to_decl.
14978
14979 2008-04-23  Richard Guenther  <rguenther@suse.de>
14980
14981         PR tree-optimization/27799
14982         PR tree-optimization/32921
14983         PR tree-optimization/32624
14984         * tree-ssa-structalias.c (merge_smts_into): Only merge the
14985         SMTs aliases and the tag itself into the solution.
14986         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
14987         merge the points-to solution back into the SMT aliases.
14988         (may_alias_p): Use alias_set_subset_of instead of
14989         aliases_conflict_p.  A pointer which points to
14990         memory with alias set zero may access any variable.
14991
14992 2008-04-23  Richard Guenther  <rguenther@suse.de>
14993
14994         * alias.c (alias_set_subset_of): Correctly handle asking
14995         if zero is a subset of an alias set with zero child.
14996         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
14997         (compute_flow_insensitive_aliasing): Correctly walk all
14998         pointers.  Do not unnecessarily union sets.
14999
15000 2008-04-23  Richard Guenther  <rguenther@suse.de>
15001
15002         PR middle-end/36021
15003         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15004
15005 2008-04-22  Tomas Bily  <tbily@suse.cz>
15006
15007         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15008         unreachable case.
15009         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15010         NON_LVALUE_EXPR.
15011         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15012         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15013         * tree-inline.c (estimate_num_insns_1): Likewise.
15014         * varasm.c (const_hash_1, compare_constant, copy_constant)
15015         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15016         * emit-rtl.c (component_ref_for_mem_expr)
15017         (set_mem_attributes_minus_bitpos): Likewise.
15018         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15019         (is_aligning_offset): Likewise.
15020         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15021         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15022         * dojump.c (do_jump): Likewise.
15023         * builtins.c (get_pointer_alignment, get_memory_rtx)
15024         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15025         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15026
15027 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15028
15029         PR rtl-optimization/36017
15030         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15031         expanding the library call.
15032
15033 2008-04-22  Ian Lance Taylor  <iant@google.com>
15034
15035         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15036         than size_in_bytes.
15037
15038 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15039
15040         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15041         of LR/CTR moves for Power6.
15042
15043 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15044
15045         PR middle-end/36003
15046         * passes.c (init_optimization_passes): Remove
15047         pass_fast_rtl_byte_dce.
15048
15049 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15050
15051         PR target/29096
15052         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15053         builtin functions to generate faster code.
15054         (_mm_cvtpu16_ps): Ditto.
15055         (_mm_cvtpi32x2_ps): Ditto.
15056
15057 2008-04-22  Nick Clifton  <nickc@redhat.com>
15058
15059         * common.opt (ftree-loop-distribution): Add Optimization
15060         attribute.
15061
15062         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15063         (frv_expand_builtin_va_start): Likewise.
15064
15065         * config/arm/arm.c (thumb_find_work_register): Fix location of
15066         argument register count.
15067
15068 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15069
15070         Support scheduling for ColdFire V1 and V3 microarchitecture.
15071         Improve scheduling of multiplication instructions.
15072
15073         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15074         (mac): New instruction attribute.
15075         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15076         (m68k_sched_mac): New variable.
15077         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15078         Handle cfv1 and cfv3.
15079         (max_insn_size): New static variable.
15080         (struct _sched_ib): New type.
15081         (sched_ib): New static variable.
15082         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15083         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15084         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15085         Update.
15086         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15087         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15088         new variables.  Update.
15089         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15090         Add modeling of cfv3 instruction buffer.  Update.
15091         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15092         * config/m68k/m68k.h (TUNE_CFV3): New macro.
15093         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15094         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15095         a particular reservation applies to.
15096         (type2): Reorganize attribute values.  Rename alu to alu_reg,
15097         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
15098         to mul_l and mul_w.
15099         (cf_ib_*): Simplify description of instruction buffer.
15100         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15101         (cf_mem): Split into cf_mem1 and cf_mem2.
15102         (cf_v2_move_??): Rename to cfv12_alu_??.
15103         (cf_v2_move_l_??): Rename to cfv12_omove_??.
15104         (cf_v2_mul_??): Remove reservations.
15105         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15106         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15107         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15108         appropriate place.
15109         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15110         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15111         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15112         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15113         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15114         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15115         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15116         expansions of the above reservations for instructions of sizes
15117         1, 2 and 3 words.
15118
15119 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15120
15121         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15122
15123 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
15124
15125         * coverage.c: Include tree-pass.h.
15126         (coverage_counter_alloc): Print da_file_name to the dump file.
15127
15128 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
15129
15130         * sbitmap.c (sbitmap_range_empty_p): New function.
15131         * sbitmap.h (sbitmap_range_empty_p): New function.
15132         * bitmap.h: Now includes obstack.h.
15133
15134 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
15135             Kenneth Zadeck  <zadeck@naturalbridge.com>
15136
15137         * dbgcnt.def (ra_byte_scan): Added.
15138         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15139         when the last hit happens for a counter.
15140         * timevar.def (TV_DF_BYTE_LR): New variable.
15141         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15142         * passes.c (pass_fast_rtl_byte_dce): New pass.
15143         * fwprop.c (update_df): Added mode to call df_ref_create.
15144         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15145         DF_REF_EXTRACT_OFFSET.
15146         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15147         DF_BYTE_LR_OUT, df_byte_lr): New macro.
15148         (df_mm): New enum.
15149         (df_ref_extract): Added mode field.
15150         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15151         DF_REF_EXTRACT_OFFSET.
15152         (DF_REF_EXTRACT_MODE): New macro.
15153         (df_byte_lr_bb_info): New structure.
15154         (df_print_byte_regset, df_compute_accessed_bytes,
15155         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15156         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15157         df_byte_lr_simulate_uses,
15158         df_byte_lr_simulate_artificial_refs_at_top,
15159         df_byte_lr_simulate_artificial_refs_at_end,
15160         df_compute_accessed_bytes): New function.
15161         (df_ref_create): Add parameter.
15162         (df_byte_lr_get_bb_info): New inline function.
15163         * df-scan.c (df_ref_record, df_uses_record,
15164         df_ref_create_structure): Added mode parameter.
15165         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15166         df_defs_record, df_uses_record, df_get_conditional_uses,
15167         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15168         df_entry_block_defs_collect, df_exit_block_uses_collect):
15169         Added mode parameter to calls to df_ref_record, df_uses_record,
15170         df_ref_create_structure.
15171         (df_ref_equal_p, df_ref_compare): Added test for modes.
15172         (df_ref_create_structure): Added code to set mode.  Renamed
15173         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15174         DF_REF_EXTRACT_OFFSET.
15175         * df-core.c (df_print_byte_regset): New function.
15176         * df-byte-scan.c: New file.
15177         * df-problems.c (df_rd_transfer_function): Removed unnecessary
15178         calls to BITMAP_FREE.
15179         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15180         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15181         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15182         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15183         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15184         df_byte_lr_local_compute, df_byte_lr_init,
15185         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15186         df_byte_lr_transfer_function, df_byte_lr_free,
15187         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15188         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15189         df_byte_lr_simulate_uses,
15190         df_byte_lr_simulate_artificial_refs_at_top,
15191         df_byte_lr_simulate_artificial_refs_at_end): New function.
15192         * dce.c (byte_dce_process_block): New function.
15193         (dce_process_block): au is now passed in rather than computed
15194         locally.  Changed loops that look at artificial defs to not look
15195         for conditional or partial ones, because there never are any.
15196         (fast_dce): Now is able to drive byte_dce_process_block or
15197         dce_process_block depending on the kind of dce being done.
15198         (rest_of_handle_fast_dce): Add parameter to fast_dce.
15199         (rest_of_handle_fast_byte_dce): New function.
15200         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15201         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15202
15203 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
15204
15205         PR fortran/35019
15206         * gcc.h: Added fortran options that take arguments to
15207         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15208         macros.
15209
15210 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
15211
15212         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15213         scalarization if on the LHS and not a full access.
15214
15215 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15216
15217         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15218
15219 2008-04-18  Rafael Espindola  <espindola@google.com>
15220
15221         * tree-vrp.c (find_case_label_index): Fix the binary search.
15222         (find_case_label_range): New.
15223         (vrp_visit_switch_stmt): Use find_case_label_range.
15224         (simplify_switch_using_ranges): Use find_case_label_range.
15225
15226 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15227
15228         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15229         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15230
15231 2008-04-18  Tom Tromey  <tromey@redhat.com>
15232
15233         PR libcpp/15500:
15234         * doc/cpp.texi (Implementation-defined behavior): Mention
15235         -finput-charset.
15236
15237 2008-04-18  Ian Lance Taylor  <iant@google.com>
15238
15239         * fold-const.c (pointer_may_wrap_p): New static function.
15240         (fold_comparison): Add another test for pointer overflow.  Use
15241         pointer_may_wrap_p to disable some false positives.
15242
15243 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
15244
15245         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15246         (fname_as_string): Match updated cpp_interpret_string prototype.
15247         (fix_string_type): Support char16_t* and char32_t*.
15248         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15249         derivative) nodes.  Register as builtin if C++0x.
15250         (c_parse_error): Support CPP_CHAR{16,32}.
15251         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15252         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15253         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15254         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15255         CTI_CHAR32_ARRAY_TYPE>: New elements.
15256         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15257         char32_type_node, signed_char32_type_node, char16_array_type_node,
15258         char32_array_type_node): New defines.
15259         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15260         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15261         (lex_string): Support CPP_STRING{16,32}, match updated
15262         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15263         (lex_charconst): Support CPP_CHAR{16,32}.
15264         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15265         and CPP_STRING{16,32}.
15266
15267 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
15268
15269         PR bootstrap/35457
15270         * aclocal.m4: Regenerate.
15271         * configure: Regenerate.
15272
15273 2008-04-18  Jan Hubicka  <jh@suse.cz>
15274
15275         * except.c (dw2_size_of_call_site_table,
15276         sjlj_size_of_call_site_table): Use vector API for call_site_record.
15277
15278         * cgraphbuild.c (build_cgraph_edges): Update.
15279         * tree-pass.h: Update comment.
15280         * final.c (leaf_function_p): Update.
15281         (leaf_renumber_regs): Update.
15282         (rest_of_clean_state): Update.
15283         * omp-low.c (expand_omp_parallel): Update.
15284         * ipa-reference.c (analyze_function): Update.
15285         * reorg.c (find_end_label): Update.
15286         (optimize_skip): Update.
15287         (fill_simple_delay_slots): Update.
15288         (fill_simple_delay_slots): Update.
15289         (make_return_insns): Update.
15290         (dbr_schedule): Update.
15291         * gimple-low.c (record_vars_into): Update.
15292         * cfgbuild.c (make_edges): Update.
15293         * function.c (assign_stack_local): Update.
15294         (assign_parm_adjust_stack_rtl): Update.
15295         (locate_and_pad_parm): Update.
15296         (allocate_struct_function): Do not initialize stack_alignment_needed
15297         and preferred_stack_boundary here.
15298         (stack_protect_prologue): Update.
15299         (stack_protect_epilogue): Update.
15300         (expand_function_start): Initialize stack_alignment_needed,
15301         preferred_stack_boundary and max_jumptable_ents.
15302         (expand_function_end): Update.
15303         (free_after_compilation): Do not NULLify epilogue_delay_list.
15304         * function.h (struct rtl_data): Add stack_protect_guard,
15305         stack_alignment_needed,
15306         preferred_stack_boundary, epilogue_delay_list.
15307         (struct function): Remove value_histograms, stack_alignment_needed,
15308         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15309         last_label_uid,
15310         unexpanded_var_list, stack_protect_guard.
15311         (current_function_epilogue_delay_list): Remove.
15312         * ipa-type-escape.c (analyze_function): Update.
15313         * gimplify.c (pop_gimplify_context): Update comment.
15314         * calls.c (expand_call): Update.
15315         (emit_library_call_value_1): Update.
15316         * except.c (set_nothrow_function_flags): Update.
15317         * cfgexpand.c (get_decl_align_unit): Update.
15318         (create_stack_guard): Update.
15319         (estimated_stack_frame_size): Update.
15320         (expand_used_vars): Update.
15321         (tree_expand_cfg): Free histogram earliers, init expansion variables.
15322         * explow.c (allocate_dynamic_stack_space): Update.
15323         * tree-ssa-live.c (remove_unused_locals): Update.
15324         * varasm.c (mark_constant_pool): Update.
15325         * tree-inline.c (remap_decls): Update.
15326         (initialize_cfun): Update.
15327         (declare_return_variable): Update.
15328         (inline_forbidden_p): Update.
15329         (expand_call_inline): Update.
15330         (declare_inline_vars): Update.
15331         (tree_function_versioning): Update.
15332         * tree-flow.h (value_histograms): New.
15333         (VALUE_HISTOGRAMS): New macro.
15334         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15335         last_label_uid.
15336         * tree-cfg.c (set_bb_for_stmt): Update.
15337         (replace_by_duplicate_decl): Update.
15338         (move_block_to_fn): Update.
15339         (new_label_mapper): Update.
15340         (dump_function_to_file): Update.
15341         * ipa-struct-reorg.c (build_data_structure): Update.
15342         * cfgrtl.c (print_rtl_with_bb): Update.
15343         * reload1.c (reload): Update.
15344         (reload): Update.
15345         * config/i386/i386.c (setup_incoming_varargs_64,
15346         ix86_compute_frame_layout): Update.
15347         * config/arc/arc.c (arc_output_function_epilogue): Update.
15348
15349 2008-04-18  Marius Strobl <marius@FreeBSD.org>
15350
15351         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15352         for FreeBSD as well.
15353         * gthr-posix95.h: Likewise.
15354
15355 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
15356
15357         PR rtl-optimization/35838
15358         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15359         out the byte offset of the first subreg.
15360
15361 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
15362
15363         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15364         to split_ti instead of three separate calls with single member arrays.
15365         (subti3 splitter): Ditto.
15366         (adddi3 splitter): Ditto with split_di.
15367         (subdi3 splitter): Ditto.
15368         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
15369         two separate calls with single member arrays.  Swap match_dup
15370         operands 1 and 2 to better fit into the array.
15371         (negdi2 splitter): Ditto with split_di.
15372         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
15373         two separate calls with single member arrays.  Swap match_dup operands
15374         6 and 7 to better fit into the array.
15375
15376 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15377
15378         * config/i386/i386.c (sse_builtin_type): New.
15379         (bdesc_sse_args): Likewise.
15380         (bdesc_sse_3arg): Removed.
15381         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15382         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
15383         IX86_BUILTIN_ROUNDPS.
15384         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
15385         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
15386         IX86_BUILTIN_ROUNDPS.
15387         (ix86_expand_sse_4_operands_builtin): Removed.
15388         (ix86_expand_sse_operands_builtin): New.
15389         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
15390         and CODE_FOR_sse4_1_roundps.
15391         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15392         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
15393
15394 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
15395
15396         PR target/35907
15397         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
15398         regs before frame pop when needed.  If use_backchain_to_restore_sp
15399         then load backchain into a temp reg to restore vr and vrsave.  Add
15400         code to restore vr after frame pop if possible.
15401
15402 2008-04-17  Richard Guenther  <rguenther@suse.de>
15403
15404         * tree-vn.c (expressions_equal_p): Do not check type
15405         equality or compatibility before calling operand_equal_p.
15406         * fold-const.c (operand_equal_p): Check equivalence of
15407         integer constants before bailing out due to signedness or
15408         precision differences.
15409         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
15410         spurious differences in type qualification.  Ignore types
15411         for COMPONENT_REFs at all.
15412
15413 2008-04-17  Christian Bruel  <christian.bruel@st.com>
15414
15415         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
15416         msw_skip comparison.
15417
15418 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
15419
15420         PR c/35739
15421         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
15422         reg type.
15423
15424         PR tree-optimization/35899
15425         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
15426         rather than TREE_OPERAND.
15427
15428 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
15429
15430         PR target/35944
15431         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
15432         temporary registers.  Change operand predicate to general_operand.
15433         (remainderxf3): Ditto.
15434
15435 2008-04-16  Richard Guenther  <rguenther@suse.de>
15436
15437         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
15438         * tree-affine.c (aff_combination_expand): Look through some
15439         conversions.
15440
15441 2008-04-15  Doug Kwan  <dougkwan@google.com>
15442
15443         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
15444         for hex printing.
15445         * tree-pretty-print.c (dump_generic_node): Ditto.
15446         * final.c (output_addr_const): Ditto.
15447         * dwarf2out.c (output_cfi): Ditto.
15448         * c-pretty-print.c (pp_c_integer_constant): Ditto.
15449         * print-rtl.c (print_rtx): Ditto.
15450         * print-tree.c (print_node_brief, print_node): Ditto.
15451         * c-common.c (match_case_to_enum_1): Ditto.
15452         * sched-vis.c (print_value): Ditto.
15453         * config/i386/i386.c (print_operand): Cast to long unsigned int
15454         for hex printing.
15455
15456 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
15457         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
15458         MS Windows VirtualProtect function.
15459
15460 2008-04-15  Jan Hubicka  <jh@suse.cz>
15461
15462         * gengtype.c (write_root): Param_is argument is OK.
15463         * expr.c (expand_expr_real_1): Update call of get_exception_*.
15464         * function.h: Include varray.h
15465         (rtl_eh): New stucture based on except.c one.
15466         (call_site_record): New forward declaration and vector type.
15467         * calls.c (emit_call_1): Do not call
15468         note_current_region_may_contain_throw.
15469         * except.c (eh_status): Remove cur_region, try_region since they are
15470         unused.
15471         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15472         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15473         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15474         Remove call_site_data_used, call_site_data_size.
15475         Turn call_site_record into vector in function.h.
15476         (note_current_region_may_contain_throw): Remove.
15477         (get_exception_pointer, get_exception_filter): Do not take struct
15478         function argument; update.
15479         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
15480         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
15481         build_post_landing_pads, dw2_build_landing_pads,
15482         sjlj_assign_call_site_values, sjlj_mark_call_sites,
15483         sjlj_emit_function_enter, sjlj_emit_function_enter,
15484         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
15485         sjlj_build_landing_pads, finish_eh_generation,
15486         remove_exception_handler_label, remove_eh_handler,
15487         maybe_remove_eh_handler, add_reachable_handler,
15488         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
15489         add_action_record, collect_one_action_chain, add_call_site,
15490         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
15491         sjlj_output_call_site_table, output_function_exception_table,
15492         * except.h (note_current_region_may_contain_throw): Remove
15493         (get_exception_pointer, get_exception_filter): Do not take struct
15494         function argument.
15495         * Makefile.in (GTFILES): Put varargs before struct function.
15496
15497 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15498
15499         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
15500         punt for STRING_CST.
15501         (get_constraint_for): Deal with STRING_CST here instead.
15502
15503 2008-04-15  Richard Guenther  <rguenther@suse.de>
15504
15505         * tree-ssa-propagate.c (substitute_and_fold): Substitute
15506         statements in a basic-block with a backward walk.  Do not
15507         substitute into dead statements but instead remove those.
15508
15509 2008-04-15  Richard Guenther  <rguenther@suse.de>
15510
15511         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
15512         to zero, thus disable creation of SFTs.
15513
15514 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15515
15516         * tree-predcom.c (suitable_reference_p): Return false if the
15517         reference can throw.
15518
15519 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
15520
15521         PR c/35751
15522         * c-decl.c (finish_decl): If extern or static var has variable
15523         size, set TREE_TYPE (decl) to error_mark_node.
15524
15525 2008-04-15  Rafael Espindola  <espindola@google.com>
15526
15527         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
15528         variable arg1.
15529
15530 2008-04-15  Richard Guenther  <rguenther@suse.de>
15531
15532         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15533         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
15534         (visit_reference_op_load): Do walk vuse-vdef chains on
15535         vn_reference_lookup.
15536         (visit_reference_op_store): But do not here.
15537         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
15538         vn_reference_lookup.
15539         (vn_lookup_with_vuses): But do so here.
15540
15541 2008-04-14  Ian Lance Taylor  <iant@google.com>
15542
15543         * fold-const.c (fold_overflow_warning): Remove assertion.
15544
15545 2008-04-15  Ben Elliston  <bje@au.ibm.com>
15546
15547         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
15548         temp1 local variables.
15549
15550 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
15551
15552         PR target/35661
15553         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
15554         ".text.unlikely" section as executable.
15555
15556 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
15557
15558         * config/ia64/ia64.c (rtx_needs_barrier): Handle
15559         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
15560         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
15561         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
15562         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
15563         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
15564         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
15565
15566 2008-04-14  Ian Lance Taylor  <iant@google.com>
15567
15568         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
15569         * fold-const.c (fold_comparison): If appropriate, test
15570         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
15571         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
15572         reassociating a pointer type.
15573         * doc/invoke.texi (Optimize Options): Document that
15574         -fstrict-overflow applies to pointer wraparound.
15575
15576 2008-04-13  Jan Hubicka  <jh@suse.cz>
15577
15578         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
15579
15580 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
15581
15582         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
15583         we are going to "save the world".
15584
15585 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
15586
15587         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
15588         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
15589         operand 0 constraint, not "=".
15590
15591 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
15592
15593         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
15594
15595 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
15596
15597         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
15598         of size of positions_needed * CHAR_BIT.
15599
15600 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
15601
15602         PR middle-end/35897
15603         * dse.c (store_info): Change positions_needed to unsigned
15604         HOST_WIDE_INT.
15605         (lowpart_bitmask): New.
15606         (record_store): Cast to unsigned HOST_WIDE_INT for
15607         positions_needed.  Assert width <= size of positions_needed *
15608         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
15609         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
15610         lowpart_bitmask to set mask.
15611
15612 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
15613
15614         * config/bfin/constraints.md: New file.
15615         * config/bfin/bfin.md: Include it.
15616         (adddi3): Use satisfies_constraint functions instead of the old macros.
15617         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
15618         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
15619         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
15620         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
15621         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
15622         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
15623         EXTRA_CONSTRAINT): Delete.
15624         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
15625         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
15626         of the old macros.
15627         * config/bfin/bfin.c: Include "tm-constrs.h".
15628         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
15629         Use satisfies_constraint functions instead of the old macros.
15630         * doc/md.texi (Blackfin Constraints): Update file name reference.
15631
15632 2008-04-11  Richard Guenther  <rguenther@suse.de>
15633
15634         PR tree-optimization/35869
15635         * tree-vrp.c (execute_vrp): Move switch statement update after
15636         jump threading.  Schedule another cfg cleanup run.
15637
15638 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
15639
15640         PR c/35744
15641         * attribs.c (decl_attributes): Return early on errorneous node.
15642
15643 2008-04-10  Oleg Ryjkov  <olegr@google.com>
15644
15645         * tree.h (struct tree_base): Added a new flag default_def_flag.
15646         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
15647
15648 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
15649
15650         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
15651
15652 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15653
15654         PR target/35768
15655         * pa.md: Define mode iterator P.  Define mode attribute dwc.
15656         (dcacheflush): Update pattern to use iterator P and attribute dwc.
15657         (icacheflush): Likewise.
15658         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
15659         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
15660
15661 2008-04-11  Ben Elliston  <bje@au.ibm.com>
15662
15663         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
15664
15665 2008-04-10  Rafael Espindola  <espindola@google.com>
15666
15667         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
15668         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
15669         (extract_range_from_expr): The same.
15670
15671 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
15672
15673         * config/mips/mips.md (GPR2): New mode iterator.
15674         (seq): Add comment.
15675         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
15676         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
15677         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
15678         Rewrite these to take two modes, the mode of comparison and the
15679         mode of the destination.
15680         * config/mips/mips.c (mips_expand_scc): Instead of having
15681         paradoxical subreg as destination, expand "narrowing" scc if mode
15682         of comparison is SI and target is requested in DI mode.
15683         (mips_emit_int_order_test): Update comment.  Make mode of
15684         comparison match CMP0 rather than TARGET.  When creating inverse
15685         target use mode of TARGET.
15686
15687 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
15688
15689         * gcov-dump.c (tag_summary): Only print summaries for the first
15690         GCOV_COUNTERS_SUMMABLE counters.
15691
15692 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
15693
15694         * config/i386/i386.md (absneg): New code iterator.
15695         (absnegprefix): New code attribute.
15696         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
15697         patterns using absneg code iterator.
15698         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
15699         using absneg code iterator.
15700         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
15701         *neg<mode>2 patterns using absneg code iterator.
15702         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15703         *negextendsfdf2 patterns using absneg code iterator.
15704         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
15705         *negextendsfxf2 patterns using absneg code iterator.
15706         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15707         *negextendsfdf2 patterns using absneg code iterator.
15708         * config/i386/sse.md (<code><mode>2): Macroize expander from
15709         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
15710
15711 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
15712
15713         * config/s390/s390.h: Remove the remains of the recent search
15714         & replace action of current_function_outgoing_args_size.
15715
15716 2008-04-10  Ira Rosen  <irar@il.ibm.com>
15717
15718         PR tree-optimization/35821
15719         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
15720         NEW_STMT_LIST is not NULL.
15721
15722 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
15723
15724         PR libstdc++/35597
15725         * toplev.c (process_options): Remove -ffunction-sections debugging
15726         warning.
15727
15728 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
15729
15730         PR middle-end/PR28690
15731         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
15732         than gen_rtx_fmt_ee to perform more canonicalizations.
15733
15734 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15735
15736         PR driver/35665
15737         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
15738
15739 2008-04-09  Richard Guenther  <rguenther@suse.de>
15740
15741         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
15742         (dump_function_to_file): Dump function arguments with types.
15743
15744 2008-04-08  Richard Guenther  <rguenther@suse.de>
15745
15746         * fold-const.c (fold_widened_comparison): Do not allow
15747         sign-changes that change the result.
15748
15749 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
15750
15751         PR target/35839
15752         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
15753         kinds of indirect references.
15754
15755 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
15756
15757         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
15758         GNU Fortran language string.
15759
15760 2008-04-08  Rafael Espindola  <espindola@google.com>
15761
15762         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
15763         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
15764         * tree.h (tree_call_nonnegative_warnv_p): New.
15765
15766 2008-04-08  Jan Hubicka  <jh@suse.cz>
15767
15768         * function.c (free_after_compilation): Clear out regno_reg_rtx
15769         pointer.
15770
15771 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
15772
15773         Revert
15774         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
15775
15776         PR middle-end/PR28690
15777         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
15778         same precedence as REG_POINTER and MEM_POINTER operands.
15779
15780 2008-04-08  Richard Guenther  <rguenther@suse.de>
15781
15782         PR middle-end/35834
15783         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
15784         for adding index to base.
15785
15786 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
15787
15788         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
15789         (MINGW_ENABLE_EXECUTE_STACK): New.
15790         (IN_LIBGCC2): For libgcc include windows.h file for
15791         function declarations.
15792
15793 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
15794
15795         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
15796         and tem2 if tem1 is not a REG or MULT.
15797
15798 2008-04-08  Jan Hubicka  <jh@suse.cz>
15799
15800         * function.h (incomming_args): Break out of struct function.
15801         (function_subsections): Break out of struct function.
15802         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
15803         return_rtx and hard_reg_initial_vals from struct function.
15804         Kill inl_max_label_num.
15805         (current_function_pops_args, current_function_args_info,
15806         current_function_args_size, current_function_args_size,
15807         current_function_pretend_args_size,
15808         current_function_outgoing_args_size,
15809         current_function_internal_arg_pointer, current_function_return_rtx):
15810         Kill compatibility accestor macros.
15811         * builtins.c (expand_builtin_apply_args_1): Update.
15812         (expand_builtin_next_arg): Update.
15813         * df-scan.c (df_get_call_refs): Update.
15814         * dbxout.c (dbxout_function_end): Update.
15815         * dwarf2out.c (dwarf2out_switch_text_section): Update.
15816         (output_line_info): Update.
15817         (secname_for_decl): Update.
15818         (dwarf2out_var_location): Update.
15819         * function.c (free_after_compilation): Update.
15820         (assign_parm_find_stack_rtl): Update.
15821         (assign_parms): Update.
15822         (expand_dummy_function_end): Update.
15823         (expand_function_end): Update.
15824         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
15825         (expand_call): Update.
15826         (emit_library_call_value_1): Update.
15827         (store_one_arg): Update.
15828         * varasm.c (initialize_cold_section_name): Update.
15829         (unlikely_text_section): Update.
15830         (unlikely_text_section_p): Update.
15831         (assemble_start_function): Update.
15832         (assemble_end_function): Update.
15833         (default_section_type_flags): Update.
15834         (switch_to_section): Update.
15835         * integrate.c (set_decl_abstract_flags): Update.
15836         (get_hard_reg_initial_val): Update.
15837         (has_hard_reg_initial_val): Update.
15838         (allocate_initial_values): Update.
15839         * resource.c (init_resource_info): Update.
15840         * config/alpha/alpha.c (NUM_ARGS): Update.
15841         (direct_return): Update.
15842         (alpha_va_start): Update.
15843         (alpha_sa_size): Update.
15844         (alpha_initial_elimination_offset): Update.
15845         (alpha_expand_prologue): Update.
15846         (alpha_start_function): Update.
15847         (alpha_expand_epilogue): Update.
15848         (unicosmk_initial_elimination_offset):
15849         * config/alpha/alpha.md (call expander): Update.
15850         * config/s390/s390.c (s390_register_info): Update.
15851         (s390_register_info): Update.
15852         (s390_frame_info): Update.
15853         (s390_initial_elimination_offset): Update.
15854         (s390_build_builtin_va_list): Update.
15855         (s390_va_start): Update.
15856         * config/spu/spu.c (direct_return): Update.
15857         (spu_expand_prologue): Update.
15858         (spu_initial_elimination_offset): Update.
15859         (spu_build_builtin_va_list): Update.
15860         (spu_va_start): Update.
15861         * config/sparc/sparc.c (sparc_init_modes): Update.
15862         (sparc_compute_frame_size): Update.
15863         (function_value): Update.
15864         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
15865         * config/i386/i386.md (return expander): Update.
15866         * config/i386/i386.c (ix86_va_start): Update.
15867         (ix86_can_use_return_insn_p): Update.
15868         (ix86_compute_frame_layout): Update.
15869         (ix86_expand_epilogue): Update.
15870         * config/sh/sh.c (output_stack_adjust): Update.
15871         (calc_live_regs): Update.
15872         (sh_expand_prologue): Update.
15873         (sh_builtin_saveregs): Update.
15874         (sh_va_start): Update.
15875         (initial_elimination_offset): Update.
15876         (sh_allocate_initial_value): Update.
15877         (sh_function_ok_for_sibcall): Update.
15878         (sh_get_pr_initial_val): Update.
15879         * config/sh/sh.md (return expander): Update.
15880         * config/avr/avr.c (frame_pointer_required_p): UPdate.
15881         * config/crx/crx.c (crx_compute_frame): UPdate.
15882         (crx_initial_elimination_offset): UPdate.
15883         * config/xtensa/xtensa.c (compute_frame_size): Update
15884         (xtensa_builtin_saveregs): Update.
15885         (xtensa_va_start): Update.
15886         (order_regs_for_local_alloc): Update.
15887         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
15888         (xstormy16_expand_builtin_va_start): Update.
15889         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
15890         * config/m68hc11/m68hc11.md (return expanders): Update.
15891         * config/m68hc11/m68hc11.c (expand_prologue): Update.
15892         (expand_epilogue): Update.
15893         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
15894         (cris_simple_epilogue): Update.
15895         (cris_expand_prologue): Update.
15896         (cris_expand_epilogue): Update.
15897         * config/iq2000/iq2000.c (iq2000_va_start): Update.
15898         (compute_frame_size): Update.
15899         * config/mt/mt.c (mt_compute_frame_size): Update.
15900         * config/mn10300/mn10300.c (expand_prologue): Update.
15901         (expand_epilogue): Update.
15902         (initial_offset): Update.
15903         (mn10300_builtin_saveregs):
15904         * config/mn10300/mn10300.md (return expander): Update.
15905         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15906         (ia64_initial_elimination_offset): Update.
15907         (ia64_initial_elimination_offset): Update.
15908         (ia64_expand_prologue): Update.
15909         * config/m68k/m68k.md (return expander): Update.
15910         * config/rs6000/rs6000.c (rs6000_va_start): Update.
15911         (rs6000_stack_info): Update.
15912         * config/mcore/mcore.c (layout_mcore_frame): Update.
15913         (mcore_expand_prolog): Update.
15914         * config/arc/arc.c (arc_compute_frame_size): Update.
15915         * config/score/score3.c (score3_compute_frame_size): Update.
15916         * config/score/score7.c (score7_compute_frame_size): Update.
15917         * config/arm/arm.c (use_return_insn): Update.
15918         (thumb_find_work_register): Update.
15919         (arm_compute_save_reg_mask): Update.
15920         (arm_output_function_prologue): Update.
15921         (arm_output_epilogue): Update.
15922         (arm_size_return_regs): Update.
15923         (arm_get_frame_offsets): Update.
15924         (arm_expand_prologue): Update.
15925         (thumb_exit): Update.
15926         (thumb_unexpanded_epilogue): Update.
15927         (thumb1_output_function_prologue): Update.
15928         * config/pa/pa.md (return expander): Update.
15929         * config/pa/pa.c (compute_frame_size): Update.
15930         (hppa_builtin_saveregs): Update.
15931         * config/mips/mips.c (mips_va_start): Update.
15932         (mips16_build_function_stub): Update.
15933         (mips_compute_frame_info): Update.
15934         (mips_restore_gp): Update.
15935         (mips_output_function_prologue): Update.
15936         (mips_expand_prologue): Update.
15937         * config/v850/v850.c (compute_frame_size): Update.
15938         (expand_prologue): * config/mmix/mmix.c (along): update.
15939         (mmix_initial_elimination_offset): update.
15940         (mmix_reorg): update.
15941         (mmix_use_simple_return): update.
15942         (mmix_expand_prologue): update.
15943         (mmix_expand_epilogue): Update.
15944         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
15945         (emit_link_insn): Update.
15946
15947 2008-04-08  Anatoly Sokolov <aesok@post.ru>
15948
15949         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
15950         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
15951         instructions.
15952         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
15953         atmega103 device.
15954
15955 2008-04-07  Jan Hubicka  <jh@suse.cz>
15956
15957         * function.h (rtl): Rename to x_rtl.
15958         (crtl): New define.
15959         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
15960         frame_offset, stack_check_probe_note, arg_pointer_save_area,
15961         used_temp_slots avail_temp_slots, temp_slot_level,
15962         nonlocal_goto_handler_labels): Update accesstors.
15963         (rtl): New global variable.
15964         (struct function): Move some fileds to rtl_data.
15965         (get_arg_pointer_save_area): Update prototype.
15966         * builtins.c (expand_builtin_setjmp_receiver): Update call of
15967         get_arg_pointer_save_area.
15968         * expr.c (init_expr): Update
15969         * function.c (get_frame_size): Update
15970         (assign_stack_local): Update
15971         (expand_function_end): Update.
15972         (get_art_pointer_save_area): Update
15973         * function.h
15974         * emit-rtl.c (rtl): Declare.
15975         (regno_reg_rtx): Declare.
15976         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
15977         Update.
15978         (gen_reg_rtx): Update.
15979         * varasm.c (n_deferred_constatns): Update accestor.
15980         (init_varasm_status): Do not allocate varasm_status.
15981         (force_const_mem, get_pool_size, output_constant_pool): Update.
15982         * stmt.c (force_label_rtx): Do not use x_ prefixes.
15983         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
15984         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
15985         * sparc/sparc.h (INIT_EXPANDERS): Update.
15986         * ia64/ia64.h (INIT_EXPANDERS): Update.
15987
15988 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
15989
15990         * reload.c (push_secondary_reload): Add missing break to for loop.
15991
15992 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
15993
15994         PR middle-end/PR28690
15995         * rtlanal.c: Update copyright years.
15996         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
15997         as REG_POINTER and MEM_POINTER operands.
15998         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
15999         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16000         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16001         * gcse.c: Update copyright years.
16002         (pre_delete): Call gen_reg_rtx_and_attrs.
16003         (hoist_code): Likewise.
16004         (build_store_vectors): Likewise.
16005         (delete_store): Likewise.
16006         * loop-invariant.c (move_invariant_reg): Likewise.
16007         Update copyright years.
16008
16009 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16010
16011         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16012         control string instead of quoted.
16013
16014 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16015
16016         * doc/rtl.texi: Rewrite of subreg section.
16017
16018 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16019
16020         PR/35842
16021         * config/i386/i386.c (legitimize_pic_address): Add treating
16022         of dllimport SYM_REF's.
16023         (legitimize_dllimport_symbol): Add prototype.
16024
16025 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16026
16027         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16028         reference in constructor with non self-referential type.
16029
16030 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16031
16032         Removal of Return with Depressed Stack Pointer support
16033         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16034         (ECF_SP_DEPRESSED): Likewise.
16035         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16036         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16037         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16038         (expand_call): Do not test ECF_SP_DEPRESSED.
16039         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16040         * function.c (keep_stack_depressed): Delete.
16041         (handle_epilogue_set): Likewise.
16042         (update_epilogue_consts): Likewise.
16043         (emit_equiv_load): Likewise.
16044         (thread_prologue_and_epilogue_insns): Remove support for Return with
16045         Depressed Stack Pointer.
16046         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16047
16048 2008-04-06  Richard Guenther  <rguenther@suse.de>
16049
16050         PR tree-optimization/35400
16051         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16052         information from SSA_NAMEs.
16053
16054 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16055
16056         * config/avr/avr.h (avr_mega_p): Remove declaration.
16057         (AVR_MEGA): Remove macro.
16058         * config/avr/avr.c (avr_mega_p): Remove variable.
16059         (avr_override_options): Remove inicializion of avr_mega_p.
16060         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16061         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16062         (avr_jump_mode): (Ditto.).
16063         (avr_output_progmem_section_asm_op): (Ditto.).
16064         (avr_asm_init_sections): (Ditto.).
16065         (avr_asm_init_sections): (Ditto.).
16066         (avr_rtx_costs): (Ditto.).
16067         * config/avr/avr.md: (Ditto.).
16068         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16069         '__AVR_MEGA__'.
16070
16071 2008-04-06  Richard Guenther  <rguenther@suse.de>
16072
16073         PR tree-optimization/35842
16074         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16075         is_gimple_invariant_address.
16076
16077 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16078
16079         * gcc.c (default_compilers): Sync Fortran extensions list with
16080         that in fortran/lang-specs.h.
16081         * doc/invoke.texi: Likewise.
16082         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16083         * dwarf2out.c (gen_compile_unit_die): Likewise.
16084
16085 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16086
16087         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16088
16089 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16090
16091         PR target/12329
16092         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16093         attribute is used for nested functions.
16094
16095 2008-04-05  Jan Hubicka  <jh@suse.cz>
16096
16097         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16098
16099         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16100         letter argument.
16101         (dump_files): Update.
16102         (enable_rtl_dump_file): Do not accept letter argument.
16103         * tree-pass.h (dump_file_info): Remove letter argument.
16104         * toplev.c (decode_d_option): Update -da handling.
16105         * toplev.h (enable_rtl_dump_file): Update prototype.
16106         * passes.c (register_one_dump_file): Do not accept IPA argument; work
16107         it out based on pass type.
16108         (register_dump_files_1): Likewise.
16109         (init_optimization_passes): Update register_one_dump_file calls.
16110         (execute_one_pass): Sanity check that IPA passes are called at IPA
16111         level and RTL passes at RTL level.
16112         (execute_pass_list): IPA pass can not be after or subpass of
16113         GIMPLE/RTL pass.
16114         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16115         disallov RTL subpasses of IPA subpasses.
16116
16117 2008-04-05  Ben Elliston  <bje@au.ibm.com>
16118
16119         * tree-cfg.c (need_fake_edge_p): Return false for calls to
16120         builtins that return exactly once and do not throw. Cache call to
16121         call_expr_flags.
16122
16123 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16124
16125         PR rtl-optimization/34916
16126         PR middle-end/35519
16127         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16128         between instruction pairs.
16129
16130 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
16131
16132         * doc/invoke.texi: Document -mbitops for SH.
16133         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16134         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16135         * config/sh/sh.c (print_operand): Add %t operand code.
16136         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16137         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16138         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16139         (extendqihi2): Likewise.
16140         (movqi_i): Likewise.
16141         (insv): Use bset, bclr and bst instructions for SH2A if possible.
16142         (extv): Use bld instruction for SH2A if possible.
16143         (extzv): Likewise.
16144         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16145         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16146         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16147         (bset.b, bclr.b): Define peepholes.
16148         * config/sh/sh.opt (mbitops): New option.
16149
16150 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
16151
16152         PR target/35620
16153         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16154         and view convert expression.
16155
16156 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16157
16158         PR target/35364
16159         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16160
16161 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
16162
16163         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16164
16165         * config/i386/cpuid.h (bit_AES): New.
16166         (bit_PCLMUL): Likewise.
16167
16168         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16169         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
16170         SSE2 if AES or PCLMUL is enabled.
16171         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16172         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16173         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16174         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16175         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16176         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16177         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16178         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16179         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16180         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16181         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16182         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16183         __builtin_ia32_aeskeygenassist128 and
16184         __builtin_ia32_pclmulqdq128.
16185         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16186         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16187         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
16188
16189         * config/i386/i386.h (TARGET_AES): New.
16190         (TARGET_PCLMUL): Likewise.
16191         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16192
16193         * config/i386/i386.md (UNSPEC_AESENC): New.
16194         (UNSPEC_AESENCLAST): Likewise.
16195         (UNSPEC_AESDEC): Likewise.
16196         (UNSPEC_AESDECLAST): Likewise.
16197         (UNSPEC_AESIMC): Likewise.
16198         (UNSPEC_AESKEYGENASSIST): Likewise.
16199         (UNSPEC_PCLMUL): Likewise.
16200
16201         * config/i386/i386.opt (maes): New.
16202         (mpclmul): Likewise.
16203
16204         * config/i386/sse.md (aesenc): New pattern.
16205         (aesenclast): Likewise.
16206         (aesdec): Likewise.
16207         (aesdeclast): Likewise.
16208         (aesimc): Likewise.
16209         (aeskeygenassist): Likewise.
16210         (pclmulqdq): Likewise.
16211
16212         * config/i386/wmmintrin.h: New.
16213
16214         * doc/extend.texi: Document AES and PCLMUL built-in function.
16215
16216         * doc/invoke.texi: Document -maes and -mpclmul.
16217
16218 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
16219
16220         * function.c (free_after_parsing): Replace with
16221         cxx_push_function_context from C++ front-end.
16222         (allocate_struct_function): Don't call langhook.
16223         * langhooks.h (struct lang_hooks_for_functions): Delete.
16224         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16225         member "function".
16226         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16227         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16228         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16229         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16230         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16231         remove LANG_HOOKS_FUNCTION_INITIALIZER.
16232         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16233
16234         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16235         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16236
16237 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16238
16239         PR c/35440
16240         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16241         for all types.
16242
16243 2008-04-04  Richard Guenther  <rguenther@suse.de>
16244
16245         PR middle-end/35823
16246         * fold-const.c (optimize_minmax_comparison): Use the correct
16247         type for the constant in the simplified comparison.
16248
16249 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
16250
16251         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16252         Pass L2 size as "--param l2-cache-size" to the compiler.
16253         (decode_l2_cache): New function to decode L2 cache parameters using
16254         0x8000006 extended cpuid function.
16255         (detect_caches_amd): Determine parameters of L2 cache using
16256         decode_l2_caches function.
16257         (decode_caches_intel): Decode L2 cache parameters.
16258         (detect_caches_intel): Determine L2 cache parameters using
16259         decode_caches_intel and decode_l2_caches functions.
16260
16261 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
16262
16263         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16264         secondary input reload for subword loads from the constant pool.
16265
16266 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
16267
16268         PR target/35713
16269         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16270           constants of the appropriate size for runtime calculations.
16271
16272         PR c/35712
16273         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16274           decimal-float literal constant zero.
16275
16276 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
16277
16278         PR c/35738
16279         * c-parser.c (c_parser_omp_atomic): Call
16280         default_function_array_conversion on the RHS.
16281
16282         PR middle-end/35818
16283         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16284         call is_variable_sized if decl has incomplete type.
16285
16286 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16287
16288         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16289
16290 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
16291
16292         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16293         iterators.
16294         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16295         (sgt<u>): Merge sgt and sgtu into new expander.
16296         (sgt, sgtu): Remove expanders.
16297         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16298         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16299         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16300         *sgtu_<mode>_mips16 into new pattern.
16301         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16302         (sge<u>): Merge sge and sgeu into new expander.
16303         (sge, sgeu): Remove expanders.
16304         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16305         new pattern.
16306         (*sge_<mode>, second *sge_<mode>): Remove patterns.
16307         (slt<u>): Merge slt and sltu into new expander.
16308         (slt, sltu): Remove expanders.
16309         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16310         (*slt_<mode>, *sltu_<mode>): Remove patterns.
16311         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16312         *sltu_<mode>_mips16 into new pattern.
16313         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16314         (sle<u>): Merge sle and sleu into new expander.
16315         (sle, sleu): Remove expanders.
16316         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16317         (*sle_<mode>, *sleu_<mode>): Remove patterns.
16318         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16319         *sleu_<mode>_mips16 into new pattern.
16320         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16321
16322 2008-04-03  Jan Hubicka  <jh@suse.cz>
16323
16324         PR tree-optimization/35795
16325         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16326         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16327         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16328         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16329         * score/score3.c (score3_output_mi_thunk): Likewise.
16330         * score/score7.c (score7_output_mi_thunk): Likewise.
16331         * mips/mips.c (mips_output_mi_thunk): Likewise.
16332
16333 2008-04-03  Richard Guenther  <rguenther@suse.de>
16334
16335         * tree-vrp.c (extract_range_from_unary_expr): Handle all
16336         conversions.  Simplify code.
16337
16338 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16339
16340         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16341
16342 2008-04-03  Tom Tromey  <tromey@redhat.com>
16343             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16344
16345         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16346         * config/bfin/t-bfin-linux (generated_files): Add
16347         linux-sysroot-suffix.h.
16348         * doc/install.texi (Prerequisites): Require make 3.80.
16349         * doc/sourcebuild.texi (Front End Directory): Document new
16350         variable.
16351         * Makefile.in (generated_files): New variable.
16352         (ALL_HOST_OBJS): New variable.
16353         ($(ALL_HOST_OBJS)): New target.
16354
16355 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16356
16357         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16358         (remap_block): Call id->transform_lang_insert_block instead
16359         of langhook.
16360         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16361         Set id.transform_lang_insert_block to NULL.
16362         (clone_body): Move to cp/optimize.c
16363         * tree-inline.h (struct copy_body_data): Change
16364         transform_lang_insert_block to function pointer.
16365         (copy_generic_body, copy_decl_no_change): Export.
16366         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16367         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16368         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
16369
16370         * c-tree.h (insert_block): Kill.
16371         * c-decl.c (insert_block): Kill.
16372
16373 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16374
16375         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16376         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16377         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
16378         argument.
16379         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
16380         argument, call {push,pop}_function_context from here.
16381         * c-parser.c: Use c_{push,pop}_function_context.
16382
16383         * function.c (push_function_context_to): Move meat ...
16384         (push_function_context): ... here.  Simplify.
16385         * function.c (pop_function_context_from): Move meat ...
16386         (pop_function_context): ... here.  Simplify.
16387         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
16388         leave_nested).
16389         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16390         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16391         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
16392         * tree.h (push_function_context_to, pop_function_context_from): Remove.
16393
16394 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16395
16396         * expmed.c (extract_force_align_mem_bit_field): Remove.
16397
16398 2008-04-03  Richard Guenther  <rguenther@suse.de>
16399
16400         PR middle-end/35800
16401         * expr.h (try_casesi): Adjust prototype.
16402         * expr.c (try_casesi): Take fallback label as extra parameter.
16403         Use that for gen_casesi if default_label is NULL.
16404         * stmt.c (expand_case): Pass fallback label to try_casesi,
16405         make sure to fill gaps with a fallback label if default_label
16406         is not present.
16407
16408 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
16409
16410         PR target/35801
16411         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
16412
16413 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16414
16415         * expmed.c (extract_split_bit_field): Remove if (0) code.
16416         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
16417         (do_ds_constraint): Likewise.
16418
16419 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
16420
16421         * doc/cppopts.texi (-dU): Document.
16422         * c-common.h (flag_dump_macros): Update comment.
16423         * c-opts.c (handle_OPT_d): Handle -dU.
16424         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
16425         dump_queued_macros, cb_used_define, cb_used_undef): New.
16426         (init_pp_output): Handle -dU.
16427         (cb_line_change): Call dump_queued_macros.
16428         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
16429
16430 2008-04-02  Anatoly Sokolov <aesok@post.ru>
16431
16432         * config/avr/predicates.md (io_address_operand): New predicate.
16433         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
16434         * config/avr/avr.c (avr_io_address_p): Remove function.
16435         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
16436         'avr_io_address_p' function.
16437         (out_movhi_r_mr): (Ditto.).
16438         (out_movqi_mr_r): (Ditto.).
16439         (out_movhi_mr_r): (Ditto.).
16440         (avr_address_cost): (Ditto.).
16441
16442 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
16443
16444         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
16445         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
16446         in 32bit mode when XMM registers are available to avoid store
16447         forwarding stalls.
16448         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
16449         corresponding post-reload splitters.
16450
16451 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16452
16453         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
16454         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
16455         __builtin_ia32_roundss.
16456         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16457         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
16458         __builtin_ia32_roundss.
16459         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
16460         IX86_BUILTIN_SHUFPD here.
16461
16462 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16463
16464         * config/i386/i386.md (plogic): New.
16465         (plogicprefix): Likewise.
16466
16467         * config/i386/mmx.md (mmx_<code><mode>3): New.
16468         (mmx_and<mode>3): Removed.
16469         (mmx_ior<mode>3): Likewise.
16470         (mmx_xor<mode>3): Likewise.
16471
16472         * config/i386/sse.md (<code><mode>3): New.
16473         (*<code><mode>3): Likewise.
16474         (*<code><mode>3): Likewise.
16475         (<code><mode>3): Likewise.
16476         (*sse_<code><mode>3): Likewise.
16477         (*sse2_<code><mode>3): Likewise.
16478         (<code>tf3): Likewise.
16479         (*<code>tf3): Likewise.
16480         (and<mode>3): Likewise.
16481         (*and<mode>3): Likewise.
16482         (ior<mode>3): Removed.
16483         (*ior<mode>3): Likewise.
16484         (xor<mode>3): Likewise.
16485         (*xor<mode>3): Likewise.
16486         (*and<mode>3): Likewise.
16487         (*ior<mode>3): Likewise.
16488         (*xor<mode>3): Likewise.
16489         (and<mode>3): Likewise.
16490         (*sse_and<mode>3): Likewise.
16491         (*sse2_and<mode>3): Likewise.
16492         (andtf3): Likewise.
16493         (*andtf3): Likewise.
16494         (ior<mode>3): Likewise.
16495         (*sse_ior<mode>3): Likewise.
16496         (*sse2_ior<mode>3): Likewise.
16497         (iortf3): Likewise.
16498         (*iortf3): Likewise.
16499         (xor<mode>3): Likewise.
16500         (*sse_xor<mode>3): Likewise.
16501         (*sse2_xor<mode>3): Likewise.
16502         (xortf3): Likewise.
16503         (*xortf3): Likewise.
16504
16505 2008-04-02  Richard Guenther  <rguenther@suse.de>
16506
16507         PR tree-optimization/14495
16508         PR tree-optimization/34793
16509         * tree-vrp.c (struct switch_update): New structure.
16510         (to_remove_edges, to_update_switch_stmts): New VECs.
16511         (simplify_switch_using_ranges): New function.  Remove not taken
16512         case labels and edges.
16513         (simplify_stmt_using_ranges): Call it.
16514         (identify_jump_threads): Mark edges we have queued for removal
16515         so we don't thread them.
16516         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
16517         case label vector.
16518         * tree-cfg.c (group_case_labels): Deal with missing default label.
16519         (tree_verify_flow_info): Allow missing default label.
16520         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
16521         (emit_case_nodes): Likewise.
16522         (expand_case): Do not rely on the default label to be present.
16523         * expr.c (try_casesi): Deal with NULL default_label.
16524         (do_tablejump): Likewise.
16525
16526 2008-04-02  Richard Guenther  <rguenther@suse.de>
16527
16528         PR tree-optimization/14495
16529         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
16530         SWITCH_EXPR here ...
16531         (vrp_visit_switch_stmt): ... but here (new function).
16532         (find_case_label_index): New helper function.
16533         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
16534
16535 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16536
16537         * fwprop.c: Fix ISO-C99ism.
16538
16539 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16540
16541         PR bootstrap/35752
16542         * Makefile.in (objdir): Set it here.
16543         * configure.ac: Not here.  Find dynamic linker characteristics.
16544         * exec-tool.in: Use them.
16545         * aclocal.m4: Regenerate.
16546         * configure: Regenerate.
16547
16548 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16549
16550         * expr.c (expand_var): Delete it.
16551         * expr.h (expand_var): Delete prototype.
16552         * function.c (expand_function_start): Use expand_decl instead.
16553         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
16554         langhook.
16555
16556 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
16557
16558         PR rtl-optimization/35542
16559         * fwprop.c (forward_propagate_and_simplify): Replace
16560         loc_reg_mentioned_in_p with reg_mentioned_p.
16561
16562 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16563
16564         PR rtl-optimization/35281
16565         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
16566         (propagate_rtx_1): Handle PR_HANDLE_MEM.
16567         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
16568         (varying_mem_p): Move above propagate_rtx.
16569         (all_uses_available_at): Do not check MEMs.
16570
16571 2008-04-02  Rafael Espindola  <espindola@google.com>
16572
16573         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
16574         (register_edge_assert_for_2): Split the cond argument.
16575         (register_edge_assert_for_1): Adjust for the change in
16576         register_edge_assert_for_2.
16577         (register_edge_assert_for): Split the cond argument.
16578         (find_switch_asserts): Adjust for the change in
16579         register_edge_assert_for.
16580
16581 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
16582
16583         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
16584         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
16585         offsets for 64-bit mingw.
16586         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
16587         abi for x86_64-pc-mingw.
16588
16589 2008-04-02  Richard Guenther  <rguenther@suse.de>
16590
16591         * tree-vrp.c (extract_range_from_assert): Make sure to not
16592         produce range min/max with TREE_OVERFOW set.
16593         If merging a anti-range and a range keep the anti-range if
16594         the range covers all values of the type.
16595         (register_edge_assert_for_2): Only allow sign-changing
16596         conversions in detecting canonical range checks.  Also
16597         register an assert for the unsigned name if useful.
16598
16599         PR tree-optimization/35787
16600         * tree-vrp.c (vrp_val_max): New function.
16601         (vrp_val_min): Likewise.
16602         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
16603         (vrp_val_is_min): Likewise.
16604         (supports_overflow_infinity): Use vrp_val_{min,max}.
16605         (negative_overflow_infinity): Likewise.
16606         (positive_overflow_infinity): Likewise.
16607         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
16608         (is_positive_overflow_infinity): Likewise.
16609         (is_overflow_infinity): Likewise.
16610         (avoid_overflow_infinity): Use vrp_val_{min,max} and
16611         vrp_val_is_{min,max}.
16612         (set_and_canonicalize_value_range): Canonicalize anti-ranges
16613         to ranges if possible.  Avoid empty ranges.
16614
16615 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16616
16617         PR middle-end/35705
16618         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
16619         the expression is a function address.
16620
16621 2008-04-01  George Helffrich  <george@gcc.gnu.org>
16622
16623         PR fortran/35154, fortran/23057
16624         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
16625         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
16626         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
16627         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
16628         in common.
16629         (dbxout_syms): Check for COMMON-based symbol and wrap in
16630         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
16631         in bracket for efficiency.
16632
16633         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
16634         using DW_TAG_common_block + member offset.
16635         (add_pubname_string): New function.
16636         (dw_expand_expr): New function to find block name and offset for
16637         COMMON var.
16638         (common_check): New function to check whether symbol in Fortran COMMON.
16639         (gen_variable_die): If COMMON, use DW_TAG_common_block.
16640
16641 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
16642
16643         PR c/35436
16644         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
16645
16646 2008-04-02  Ben Elliston  <bje@au.ibm.com>
16647
16648         * config/v850/v850.md (casesi): Remove if (0) code.
16649         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16650         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16651
16652 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
16653
16654         * config/i386/i386.md (rex64suffix): New mode attribute.
16655         (floathi<mode>2): Disable expander for SSE math.
16656         (*floathi<mode>2_1): New insn insn_and_split pattern.
16657         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
16658         corresponding post-reload splitters.
16659         (*floathi<mode>2_i387): New macroized insn pattern.
16660         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
16661         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
16662         insn_and_split pattern.
16663         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
16664         New macroized instruction patterns and corresponding post-reload
16665         splitters.
16666         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
16667         and corresponding post-reload splitters.
16668         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
16669         New macroized instruction patterns.
16670         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
16671         macroized instruction patterns and corresponding post-reload splitters.
16672         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
16673         corresponding post-reload splitters.
16674         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
16675         New macroized instruction patterns.
16676         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
16677         corresponding post-reload splitters.
16678         (*floatsi<mode>2_i387): New macroized instruction patterns.
16679
16680 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
16681
16682         * config/i386/i386.md (smaxmin): New.
16683         (umaxmin): Likewise.
16684         (maxminiprefix): Likewise.
16685         (maxminfprefix): Likewise.
16686         (<code><mode>3): Likewise.
16687         (smin<mode>3): Removed.
16688         (smax<mode>3): Likewise.
16689
16690         * config/i386/mmx.md (mmx_<code>v2sf3): New.
16691         (mmx_<code>v4hi3): Likewise.
16692         (mmx_<code>v8qi3): Likewise.
16693         (mmx_smaxv2sf3): Removed.
16694         (mmx_sminv2sf3): Likewise.
16695         (mmx_umaxv8qi3): Likewise.
16696         (mmx_smaxv4hi3): Likewise.
16697         (mmx_uminv8qi3): Likewise.
16698         (mmx_sminv4hi3): Likewise.
16699
16700         * config/i386/sse.md (<addsub><mode>3): New.
16701         (*<addsub><mode>3): Likewise.
16702         (<sse>_vm<addsub><mode>3): Likewise.
16703         (<maxmin><mode>3): Likewise.
16704         (*<maxmin><mode>3_finite): Likewise.
16705         (*<maxmin><mode>3): Likewise.
16706         (<sse>_vm<maxmin><mode>3): Likewise.
16707         (sse3_h<addsub>v4sf3): Likewise.
16708         (sse3_h<addsub>v2df3): Likewise.
16709         (<maxmin>v16qi3): Likewise.
16710         (*<maxmin>v16qi3): Likewise.
16711         (<maxmin>v8hi3): Likewise.
16712         (*<maxmin>v8hi3): Likewise.
16713         (*sse4_1_<maxmin><mode>3): Likewise.
16714         (*sse4_1_<maxmin><mode>3): Likewise.
16715         (add<mode>3): Removed.
16716         (*add<mode>3): Likewise.
16717         (<sse>_vmadd<mode>3): Likewise.
16718         (sub<mode>3): Likewise.
16719         (*sub<mode>3): Likewise.
16720         (<sse>_vmsub<mode>3): Likewise.
16721         (smin<mode>3): Likewise.
16722         (*smin<mode>3_finite): Likewise.
16723         (*smin<mode>3): Likewise.
16724         (<sse>_vmsmin<mode>3): Likewise.
16725         (smax<mode>3): Likewise.
16726         (*smax<mode>3_finite): Likewise.
16727         (*smax<mode>3): Likewise.
16728         (<sse>_vmsmax<mode>3): Likewise.
16729         (sse3_haddv4sf3): Likewise.
16730         (sse3_haddv2df3): Likewise.
16731         (sse3_hsubv4sf3): Likewise.
16732         (sse3_hsubv2df3): Likewise.
16733         (umaxv16qi3): Likewise.
16734         (*umaxv16qi3): Likewise.
16735         (smaxv8hi3): Likewise.
16736         (*smaxv8hi3): Likewise.
16737         (*sse4_1_smax<mode>3): Likewise.
16738         (*sse4_1_umax<mode>3): Likewise.
16739         (uminv16qi3): Likewise.
16740         (*uminv16qi3): Likewise.
16741         (sminv8hi3): Likewise.
16742         (*sminv8hi3): Likewise.
16743         (*sse4_1_smin<mode>3): Likewise.
16744         (*sse4_1_umin<mode>3): Likewise.
16745
16746 2008-04-01  Rafael Espindola  <espindola@google.com>
16747
16748         * tree-cfg.c (verify_expr): remove in_phi.
16749         (verify_stmt): Don't call walk_tree with verify_expr. Use
16750         is_gimple_min_invariant instead of is_gimple_val.
16751
16752 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
16753
16754         * doc/include/gpl_v3.texi: Update for manpage generation.
16755         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
16756         gpl.texi.
16757         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
16758         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
16759         gpl_v3.texi instead of gpl.texi.
16760         (gpl.pod): New.
16761
16762 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
16763
16764         PR pch/13675
16765         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
16766
16767 2008-04-01  Rafael Espindola  <espindola@google.com>
16768
16769         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
16770         (extract_code_and_val_from_cond): Use
16771         extract_code_and_val_from_cond_with_ops.
16772
16773 2008-04-01  Jan Hubicka  <jh@suse.cz>
16774
16775         * function.c (free_after_compilation): Free epilogue_delay_list.
16776         (prepare_function_start): Assert that previous compilation was freed.
16777
16778 2008-04-01  Jan Hubicka  <jh@suse.cz>
16779             Jim Wilson  <wilson@tuliptree.org>
16780             Andreas Tobler <andreast@gcc.gnu.org>
16781
16782         PR middle-end/35781
16783         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
16784         rtl.emit instead cfun->emit.
16785         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
16786         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
16787
16788 2008-04-01  Ben Elliston  <bje@au.ibm.com>
16789
16790         * doc/c-tree.texi (Function Basics): Fix grammatical error.
16791
16792 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
16793
16794         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
16795         New options
16796         (fprofile-use): Add var flag_profile_use
16797         * coverage.c (coverage_begin_output): Do not open a gcno file for
16798         output only if -ftest-coverage is set.
16799         Do not add getpwd() to gcda file path.
16800         (build_gcov_info): Check the new flag
16801         flag_profile_datafile_relative_path.
16802         (coverage_init): Use profile_data_prefix.
16803         Read profile counter only if flag_profile_use is set.
16804         * opts.c (common_handle_option): New option fprofile-use=,
16805         fprofile-dir=, fprofile-generate=.
16806         * toplev.c (profile_data_prefix): New variable definition.
16807         * toplev.h (profile_data_prefix): New declaration.
16808         * doc/invoke.tex (Option Summary, Optimization Options):
16809         Add new options.
16810
16811 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
16812
16813         * varasm.c (output_constant_pool_1): In LABEL_REF check,
16814         use tmp consistently.
16815
16816         PR target/35695
16817         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
16818         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16819         UNSPEC_FR_RECIP_APPROX_RES.
16820         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
16821
16822 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
16823
16824         PR c/35750
16825         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
16826
16827 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16828
16829         PR middle-end/30186
16830         * fold-const.c (fold_indirect_ref_1): Support accessing non first
16831         element of the vector via a pointer.
16832
16833 2008-03-31  Ian Lance Taylor  <iant@google.com>
16834
16835         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
16836
16837 2008-03-31  Jan Hubicka  <jh@suse.cz>
16838
16839         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16840         get_arg_pointer_save_area.
16841         * expr.c (init_expr): Just clear out rtl.expr.
16842         * function.c (free_after_compilation): Clear out whole RTL structure.
16843         (get_func_frame_size): Merge into ...
16844         (get_frame_size): ... this one.
16845         (assign_stack_local_1): Merge into ...
16846         (assign_stack_local): ... this one.
16847         (expand_function_end): Update call of get_arg_pointer_save_area.
16848         (get_art_pointer_save_area): Remove cfun argument.
16849         * function.h (emit_status): regno_pointer_align does not need length
16850         attribute. Move x_regno_reg_rtx to ...
16851         (regno_reg_rtx): ... new global array.
16852         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
16853         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
16854         apply_args_value, forced_labels, stack_pointer_delta):
16855         Update accestors.
16856         (struct varasm_status): Move here from varasm.c
16857         (struct rtl_data): New. Move here some fields from struct function.
16858         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16859         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16860         used_temp_slots avail_temp_slots, temp_slot_level,
16861         nonlocal_goto_handler_labels): Update accesstors.
16862         (rtl): New global variable.
16863         (struct function): Move some fileds to rtl_data.
16864         (get_arg_pointer_save_area): Update prototype.
16865         * emit-rtl.c (rtl): Declare.
16866         (regno_reg_rtx): Declare.
16867         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16868         Update.
16869         (gen_reg_rtx): Update.
16870         (init_virtual_regs): Do not tate emit_status argument.
16871         (init_emit): Do not allocate emit.
16872         * varasm.c (varasm_statuc): Move to function.h.
16873         (n_deferred_constatns): Update accestor.
16874         (init_varasm_status): Do not allocate varasm_status.
16875         (force_const_mem, get_pool_size, output_constant_pool): Update.
16876         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16877         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16878
16879 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
16880
16881         PR rtl-optimization/35729
16882         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
16883         references.
16884
16885 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16886
16887         PR target/32000
16888         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
16889         load/store if memory is unaligned.
16890         (*movti_rex64): Likewise.
16891
16892         * config/i386/predicates.md (misaligned_operand): New.
16893
16894 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
16895
16896         PR tree-opt/35431
16897         * tree-ssa-phiopt.c (conditional_replacement): Return early for
16898         complex types.
16899
16900 2008-03-31  Jan Beulich  <jbeulich@novell.com>
16901
16902         * config/ia64/constraints.md: Add 'j' constraint.
16903         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
16904         (movdi_internal): Likewise.
16905
16906 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
16907
16908         PR c/35748
16909         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
16910
16911 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16912
16913         PR target/35757
16914         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
16915         proper error message for the third argument on blendpd and
16916         blendps.
16917
16918         * config/i386/sse.md (blendbits): New.
16919         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
16920
16921 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
16922
16923         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
16924
16925 2008-03-30  Richard Guenther  <rguenther@suse.de>
16926
16927         PR middle-end/31023
16928         * fold-const.c (fold_sign_changed_comparison): Do leave
16929         conversions to base-types alone.
16930
16931 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16932
16933         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
16934         the link register if one altivec register is be saved.
16935
16936 2008-03-30  Ben Elliston  <bje@au.ibm.com>
16937
16938         * final.c (final_scan_insn): Remove if (0) code.
16939
16940 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
16941
16942         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
16943
16944 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
16945
16946         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
16947         of V4SFmode to ix86_binary_operator_ok.
16948
16949 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
16950
16951         * config/i386/i386.c (override_options): Initialize
16952         ix86_veclib_handler to ix86_veclibabi_svml when
16953         -mveclibabi=svml is used.
16954         (ix86_veclibabi_svml): New function for SVML ABI style
16955         vectorization support.
16956         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
16957
16958 2008-03-28  Rafael Espindola  <espindola@google.com>
16959
16960         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
16961         (tree_binary_nonnegative_warnv_p): Make it public.
16962         (tree_single_nonnegative_warnv_p): Make it public.
16963         (tree_invalid_nonnegative_warnv_p): Make it public.
16964         (tree_unary_nonzero_warnv_p): Make it public.
16965         (tree_binary_nonzero_warnv_p): Make it public
16966         (tree_single_nonzero_warnv_p): Make it public.
16967         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
16968         (extract_range_from_binary_expr): Split the expr argument.
16969         (extract_range_from_unary_expr): Split the expr argument.
16970         (extract_range_from_comparison): Split the expr argument.
16971         (extract_range_from_expr): Use the new aux functions.
16972         (vrp_evaluate_conditional_warnv): Use
16973         vrp_evaluate_conditional_warnv_with_ops.
16974         * tree.h (tree_unary_nonzero_warnv_p): Declare.
16975         (tree_binary_nonzero_warnv_p): Declare.
16976         (tree_single_nonzero_warnv_p): Declare.
16977         (tree_expr_nonzero_warnv_p): Declare.
16978         (tree_unary_nonnegative_warnv_p): Declare.
16979         (tree_binary_nonnegative_warnv_p): Declare.
16980         (tree_single_nonnegative_warnv_p): Declare.
16981         (tree_invalid_nonnegative_warnv_p): Declare.
16982
16983 2008-03-28  Richard Guenther  <rguenther@suse.de>
16984
16985         PR tree-optimization/30317
16986         PR tree-optimization/30911
16987         PR tree-optimization/34793
16988         * tree-vrp.c (set_and_canonicalize_value_range): New function.
16989         (struct assert_locus_d): New member EXPR.
16990         (register_new_assert_for): Add EXPR parameter to support
16991         ASSERT_EXPR <name, expr OP limit>.
16992         (register_edge_assert_for_1): Adjust callers.
16993         (find_assert_locations): Likewise.
16994         (process_assert_insertions_for): Build condition from expression.
16995         (extract_range_from_assert): Handle ASSERT_EXPRs
16996         of the form ASSERT_EXPR <name, expr OP limit>.
16997         (register_edge_assert_for_2): New helper registering
16998         asserts for comparisons.  Recognize range tests of the form
16999         (unsigned)i - CST1 OP CST2.
17000         (register_edge_assert_for_1): Use it.
17001         (register_edge_assert_for): Likewise.
17002         (needs_overflow_infinity): Integer sub-types
17003         do not need overflow infinities.
17004         (vrp_val_is_max): The extreme values of integer sub-types
17005         are those of the base type.
17006         (vrp_val_is_min): Likewise.
17007         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17008         expressions.
17009
17010 2008-03-28  Nick Clifton  <nickc@redhat.com>
17011
17012         PR target/31110
17013         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17014         Return GENERAL_REGS for stack adjustment reloads.
17015
17016 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17017
17018         PR target/31334
17019         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17020         const_vector when all the vectors are constant.
17021
17022 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17023
17024         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17025         comparisons.
17026         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17027         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17028         (scc_sf): New.
17029         (s<code>_sf): Use new scc_sf attribute for opcode names.
17030
17031 2008-03-27  Tom Tromey  <tromey@redhat.com>
17032
17033         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17034         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17035         config/spu/t-spu-elf, config/i386/t-interix,
17036         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17037         config/i386/x-darwin, config/i386/x-mingw32,
17038         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17039         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17040         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17041         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17042         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17043         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17044         config/score/t-score-elf, config/arm/t-strongarm-pe,
17045         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17046         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17047         Revert automatic dependency patch.
17048
17049 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17050
17051         PR target/35657
17052         * config/i386/i386.c (ix86_function_arg_boundary): Align
17053         decimal floating point to its natural boundary.
17054
17055 2008-03-27  Richard Guenther  <rguenther@suse.de>
17056
17057         PR middle-end/35716
17058         * fold-const.c (fold_comparison): Restrict distinct decl
17059         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17060         solely rely on operand_equal_p.
17061
17062 2008-03-27  Richard Guenther  <rguenther@suse.de>
17063
17064         PR c/32511
17065         * c-common.c (handle_weak_attribute): Reject combination of
17066         weak and inline.
17067
17068 2008-03-27  Richard Guenther  <rguenther@suse.de>
17069
17070         PR tree-optimization/32810
17071         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17072         conversions from DECL_INITIAL.
17073         (fold_const_aggregate_ref): Likewise from constructor elements.
17074
17075 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17076
17077         * tree-affine.h (aff_combination_expand): Declare.
17078         (get_inner_reference_aff): Likewise.
17079         * tree-affine.c (aff_combination_expand): Split out from
17080         tree_to_aff_combination_expand.
17081         (get_inner_reference_aff): New function.
17082         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17083         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17084         (struct lim_aux_data): sm_done field removed.
17085         (mem_ref_loc_p, mem_ref_locs_p): New types.
17086         (struct mem_ref): Added id, stored, accesses_in_loop,
17087         indep_loop, dep_loop, indep_ref, dep_ref fields.
17088         Removed is_stored, locs and next fields.
17089         (memory_accesses): New variable.
17090         (movement_possibility): Do not allow moving statements
17091         that store to memory.
17092         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17093         New functions.
17094         (determine_max_movement): For statements with memory references,
17095         find the outermost loop in that the reference is independent.
17096         (move_computations_stmt): Mark the virtual operands for renaming.
17097         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17098         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17099         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17100         add_vop_ref_mapping, create_vop_ref_mapping_loop,
17101         create_vop_ref_mapping, analyze_memory_references,
17102         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17103         get_all_locs_in_loop, ref_always_accessed_p,
17104         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17105         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17106         store_motion_loop, store_motion): New functions.
17107         (struct vop_to_refs_elt): New type.
17108         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17109         memref_hash, memref_eq, hoist_memory_references): Rewritten.
17110         (schedule_sm): Replaced by...
17111         (execute_sm): ... this.
17112         (determine_lsm_ref, hoist_memory_references,
17113         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17114         find_more_ref_vops, free_mem_ref, free_mem_refs,
17115         determine_lsm_loop, determine_lsm): Removed.
17116         (tree_ssa_lim_finalize): Free data structures used by store motion.
17117         (tree_ssa_lim): Call analyze_memory_references.  Use
17118         store_motion instead of determine_lsm.
17119
17120 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17121
17122         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17123         rename tmake_file to m68hc11/t-m68hc11.
17124         (mcore): Set inhibit_libc to true.
17125         * config.host (alpha*-dec-*vms*): Set extra_programs.
17126         (interix3*): Don't use host_xmake_file.
17127         * configure.ac: Let config.gcc override inhibit_libc.
17128         * configure: Regenerate.
17129
17130         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17131         * config/t-openbsd-thread: Remove commented out lines.
17132
17133         * config/x-interix: Remove.
17134
17135         * config/m68hc11/t-m68hc11-gas: Rename to...
17136         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
17137
17138         * config/mcore/t-mcore: Remove T_CFLAGS.
17139         * config/mcore/t-mcore-pe: Likewise.
17140
17141 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17142
17143         * configure.ac: Replace custom __GNU_SOURCE test with
17144         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
17145         * aclocal.m4: Regenerate.
17146         * configure: Regenerate.
17147         * config.in: Regenerate.
17148
17149 2008-03-27  Richard Guenther  <rguenther@suse.de>
17150
17151         * fold-const.c (target.h): Include.
17152         (fold_comparison): Fold comparison of addresses of decls
17153         that bind locally or of constants.  Consolidate address folding code.
17154         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17155         results from fold_binary_to_constant.
17156         (compare_values_warnv): Likewise.
17157
17158 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
17159
17160         PR middle-end/35429
17161         * fold-const.c (fold_truthop): Check for integeral types when folding
17162         a == 0 && b == 0 and a != 0 || b != 0 .
17163
17164 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17165
17166         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17167
17168 2008-03-26  Andreas Schwab  <schwab@suse.de>
17169
17170         * doc/invoke.texi: Fix use of @item vs. @itemx.
17171
17172 2008-03-26  Tom Tromey  <tromey@redhat.com>
17173
17174         * Makefile.in (build/gensupport.o, build/print-rtl.o,
17175         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17176         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17177         build/gencodes.o, build/genconditions.o, build/genconfig.o,
17178         build/genconstants.o, build/genemit.o, build/genextract.o,
17179         build/genflags.o, build/genmddeps.o, build/genopinit.o,
17180         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17181         options.h.
17182
17183 2008-03-26  Richard Guenther  <rguenther@suse.de>
17184
17185         Revert
17186         2008-03-26  Richard Guenther  <rguenther@suse.de>
17187
17188         * fold-const.c (target.h): Include.
17189         (fold_comparison): Fold comparison of addresses of two decls
17190         that bind locally.  Consolidate address folding code.
17191
17192 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17193
17194         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17195         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17196         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17197         dconstsqrt2, dconstthird, dconste and/or dconst10.
17198         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17199         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17200         dconstsqrt2, dconste): Delete.
17201         (init_emit_once): Likewise.  Simplify initializing dconstm1.
17202         Constify variable.
17203         * real.c (get_real_const): New.
17204         * real.h (dconst3, dconst10, dconstm2, dconstthird,
17205         dconstsqrt2, dconste): Delete.
17206         (real_value_const, get_real_const): New.
17207
17208 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17209
17210         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17211
17212         * config/i386/i386.c (ix86_function_arg_boundary): Check
17213         BIGGEST_ALIGNMENT instead of 128.
17214         (setup_incoming_varargs_64): Likewise.
17215
17216 2008-03-26  Tom Tromey  <tromey@redhat.com>
17217
17218         * Makefile.in (DEPFILES): Add missing '/'.
17219
17220 2008-03-26  Richard Guenther  <rguenther@suse.de>
17221
17222         * fold-const.c (target.h): Include.
17223         (fold_comparison): Fold comparison of addresses of two decls
17224         that bind locally.  Consolidate address folding code.
17225
17226 2008-03-26  Nick Clifton  <nickc@redhat.com>
17227
17228         PR target/31232
17229         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17230         not allow INT+INT as a legitimate addressing mode.
17231
17232 2008-03-26  Richard Guenther  <rguenther@suse.de>
17233
17234         * tree-flow.h (widen_bitfield): Remove declaration.
17235         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17236         (widen_bitfield): Remove function.
17237         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17238         code.
17239
17240 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17241
17242         PR target/31558
17243         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17244         error_mark_node's.
17245
17246 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
17247
17248         PR rtl-optimization/35232
17249         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17250         (forget_old_reloads_1, forget_marked_reloads): Don't clear
17251         reg_reloaded_call_part_clobbered here.
17252         (reload_regs_reach_end_p): New function.
17253         (reload_reg_rtx_for_input): New variable.
17254         (reload_reg_rtx_for_output): Likewise.
17255         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17256         when reassigning a pseudo register.  Load reloadreg from
17257         reload_reg_rtx_for_input, moving the mode and register
17258         calculation to...
17259         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
17260         instead of the original when deciding whether an input reload
17261         would be a no-op or whether an output reload can be deleted.
17262         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17263         when setting up new_spill_reg_store.  Load it from
17264         reload_reg_rtx_for_output, moving the mode and register
17265         calculation to...
17266         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
17267         instead of the original when deciding whether an output reload
17268         would be a no-op.  Do the same when modifying insn notes.
17269         Use rtx_equal_p instead of == to compare the registers.
17270         (inherit_piecemeal_p): Take a mode and two register numbers
17271         as argument.
17272         (emit_reload_insns): Clear new_spill_reg_store for every hard
17273         register in the reload register.  Remove spill registers
17274         from reg_reloaded_valid before considering whether to record
17275         inheritance information for them.  Use reload_reg_rtx_for_output
17276         instead of reg_rtx when recording output reloads.  Use
17277         reload_reg_rtx_for_input instead of reg_rtx when recording
17278         input reloads.  Set or clear reg_reloaded_call_part_clobbered
17279         at the same time as setting reg_reloaded_valid.
17280         (delete_output_reload): Add a new_reload_reg parameter and use it
17281         instead of rld[j].reg_rtx.
17282         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17283         calls accordingly.
17284
17285 2008-03-25  Tom Tromey  <tromey@redhat.com>
17286
17287         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17288         (build/genattr.o): Likewise.
17289         (build/genattrtab.o): Likewise.
17290         (build/gencodes.o): Likewise.
17291         (build/genconfig.o): Likewise.
17292         (build/genconstants.o): Likewise.
17293         (build/genemit.o): Likewise.
17294         (build/genextract.o): Likewise.
17295         (build/genflags.o): Likewise.
17296
17297 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
17298
17299         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17300         instead of size_int for integer types.
17301         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17302         to match type of MINUS_EXPR.
17303
17304 2008-03-25  Tom Tromey  <tromey@redhat.com>
17305
17306         * configure: Rebuilt.
17307         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17308         Makefile.
17309
17310 2008-03-25  Tom Tromey  <tromey@redhat.com>
17311
17312         * config/x-solaris (host-solaris.o): Update.
17313         * config/x-linux (host-linux.o): Update.
17314         * config/x-hpux (host-hpux.o): Update.
17315         * config/x-darwin (host-darwin.o): Update.
17316         * config/v850/t-v850e (v850-c.o): Update.
17317         * config/v850/t-v850 (v850-c.o): Update.
17318         * config/t-vxworks (vxworks.o): Update.
17319         * config/t-sol2 (sol2-c.o, sol2.o): Update.
17320         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17321         * config/spu/t-spu-elf (spu-c.o): Update.
17322         (spu.o): Remove.
17323         * config/sh/t-symbian (sh-c.o): Update.
17324         (symbian.o): Update.
17325         * config/sh/t-sh (sh-c.o): Update.
17326         * config/score/t-score-elf (score7.o, score3.o): Update.
17327         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17328         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17329         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17330         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17331         (rs6000.o): Remove.
17332         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17333         * config/m32c/t-m32c (m32c-pragma.o): Update.
17334         * config/ia64/t-ia64 (ia64-c.o): Update.
17335         * config/i386/x-mingw32 (host-mingw32.o): Update.
17336         * config/i386/x-i386 (driver-i386.o): Update.
17337         * config/i386/x-darwin (host-i386-darwin.o): Update.
17338         * config/i386/x-cygwin (host-cygwin.o): Update.
17339         * config/i386/t-nwld (nwld.o): Update.
17340         * config/i386/t-netware (netware.o): Update.
17341         * config/i386/t-interix (winnt.o): Update.
17342         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17343         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17344         msformat-c.o): Update.
17345         * config/bfin/t-bfin-linux (generated_files): Add
17346         linux-sysroot-suffix.h.
17347         * config/arm/t-wince-pe (pe.o): Update.
17348         * config/arm/t-strongarm-pe (pe.o): Update.
17349         * config/arm/t-pe (pe.o): Update.
17350         * config/arm/t-arm (arm-c.o): Update.
17351         * doc/install.texi (Prerequisites): Require make 3.80.
17352         * Makefile.in: Remove .o targets.
17353         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17354         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17355         (simple_generated_h, simple_generated_c): Move earlier.
17356         (generated_files): New variable.
17357         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17358         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17359         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17360         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17361         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17362         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17363         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17364         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17365         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17366         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17367         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17368         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
17369         (.c.o): Remove.
17370         (COMPILE.base, COMPILE): New variables.
17371         (%.o): New pattern rule.
17372         (ALL_HOST_OBJS): New variable.
17373         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
17374         (dummy-checksum.o, cc1-checksum.o): Remove.
17375         (DRIVER_SHLIB): New variable.
17376         (DRIVER_DEFINES): Use it.
17377         (gencondmd.c): Move out of build/.
17378         (s-conditions): Update.
17379         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
17380         (ALL_BUILD_OBJS): Likewise.
17381         (build/%.o): Use BUILDCOMPILE.
17382         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
17383         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
17384         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
17385         build/gencheck.o, build/gencodes.o, build/genconditions.o,
17386         build/genconfig.o, build/genconstants.o, build/genemit.o,
17387         build/genextract.o, build/genflags.o, build/genmddeps.o,
17388         build/genopinit.o, build/genoutput.o, build/genpeep.o,
17389         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
17390         build/gen-protos.o, build/scan.o, build/fix-header.o,
17391         build/scan-decls.o): Simplify.
17392         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
17393         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
17394         prefix.o, toplev.o): Reduce to variable setting.
17395         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
17396         ($(out_object_file), gcc-options.o): New targets.
17397         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
17398         * configure: Rebuilt.
17399         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
17400         * doc/sourcebuild.texi (Front End Directory): Document new variable.
17401
17402 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
17403
17404         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
17405         complain when we hit an error, return ERROR_MARK_NODE.
17406
17407 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17408
17409         * config/sh/constraints.md (Pso, Psz): New constraints.
17410         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
17411         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
17412
17413 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17414
17415         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
17416         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
17417
17418 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17419
17420         * config/sh/sh.md (prefetch): Add condition for SH2A target.
17421         (prefetch_sh2a): New.
17422
17423 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17424             Naveen.H.S  <naveen.hs@kpitcummins.com>
17425
17426         * config/sh/constraints.md (I28): New constraint.
17427         * config/sh/sh.c (broken_move): Add support for movi20s.
17428         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
17429
17430 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
17431             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17432             Naveen.H.S  <naveen.hs@kpitcummins.com>
17433
17434         * config/sh/sh.c (SH_ATTRIBUTES): Define.
17435         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
17436         (print_operand): Handle resbank in %@ operand code.
17437         (sh_encode_section_info): New.
17438         (push_regs): Add conditions for resbank.
17439         (sh_expand_epilogue): Likewise.
17440         (sh_insert_attributes): Likewise.
17441         (sh_attribute_table): Likewise.
17442         (sh_handle_resbank_handler_attribute): New.
17443         (sh2a_handle_function_vector_handler_attribute): New.
17444         (sh2a_is_function_vector_call): New.
17445         (sh2a_get_function_vector_number): New.
17446         (sh2a_function_vector_p): New.
17447         (sh_cfun_resbank_handler_p): New.
17448         * config/sh/sh.md (calli): Emit jsr/n if possible.
17449         (calli_tbr_rel): New.
17450         (calli_pcrel): Emit jsr/n if possible.
17451         (return_i): Emit rts/n if possible.
17452         (call_valuei_tbr_rel): New.
17453         (call_valuei_pcrel): Add condition for SH2A target.
17454         (call_value): Likewise.
17455         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
17456         (sh2a_get_function_vector_number): Likewise.
17457         (sh2a_is_function_vector_call): Likewise.
17458         * doc/extend.texi: Document TBR relative addressing of SH2A.
17459         (resbank): Add description for SH2A.
17460
17461 2008-03-24  Richard Guenther  <rguenther@suse.de>
17462
17463         PR c/22371
17464         * gimplify.c (gimplify_modify_expr): For frontend type-correct
17465         pointer assignments change conversions according to middle-end rules.
17466         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17467         * configure.ac: Include type checking in yes.
17468         * configure: Regenerate.
17469
17470 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17471
17472         * diagnostic.c (diagnostic_count_diagnostic): Delete.
17473         (diagnostic_report_diagnostic): Update. Handle ICEs here.
17474
17475 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
17476
17477         * gthr-vxworks.h (UNUSED): Define.
17478
17479 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17480
17481         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
17482
17483 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
17484
17485         * doc/extend.texi (Function Attributes): Add missing comma in the
17486         example of the "alloc_size" attribute.
17487
17488 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
17489
17490         Revert:
17491         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17492
17493         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17494         32bit host.
17495
17496         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
17497
17498         PR target/35496
17499         * stor-layout.c (update_alignment_for_field): Set minimum alignment
17500         of the underlying type of a MS bitfield layout to the natural
17501         alignment of the type.
17502
17503         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
17504
17505         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17506         to their natural alignment to avoid store forwarding stalls.
17507
17508 2008-03-22  Richard Guenther  <rguenther@suse.de>
17509
17510         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
17511         For PHI nodes verify the address is invariant.
17512         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
17513         (get_symbol_constant_value): Use is_gimple_min_invariant.
17514         (maybe_fold_stmt_indirect): Likewise.
17515
17516 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
17517
17518         PR rtl-optimization/33927
17519         * Makefile.in (dse.o): Depend on $(TM_P_H).
17520         * expr.h (extract_low_bits): Declare.
17521         * expmed.c (extract_low_bits): New function.
17522         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
17523         * dse.c: Include tm_p.h.
17524         (find_shift_sequence): Remove the read_reg argument and return the
17525         read value.  Emit the instructions instead of returning them.
17526         Iterate on new_mode rather than calculating it each time.
17527         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
17528         source to NEW_MODE and extract_low_bits to convert the shifted
17529         value to READ_MODE.
17530         (replace_read): Allow the load and store to have different mode
17531         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
17532         or extraction instructions before trying the replacement.  Update
17533         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
17534
17535 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
17536
17537         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17538         to their natural alignment to avoid store forwarding stalls.
17539
17540 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17541
17542         PR target/27946
17543         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
17544         encouraging but not allowing gprs for input;
17545         change the input constraint to !f#r.
17546         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
17547         gprs for output;
17548         change the output constraint to !f#r.
17549
17550 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
17551
17552         PR target/13958
17553         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
17554         corresponding post-reload splitters.
17555         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
17556         when x87 FP math is selected.
17557         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
17558         New function prototype.
17559         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
17560         unreachable function to ease macroization of insn patterns.
17561
17562 2008-03-21  Martin Jambor  <mjambor@suse.cz>
17563
17564         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
17565         reference dumps if ddr is NULL or dependence is unknown.
17566
17567 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17568
17569         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
17570         unsigned extension into account.
17571         (ATOMIC_COMPARE_AND_SWAP): Likewise.
17572         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
17573         Do computations on a scratch register.
17574
17575 2008-03-21  Richard Guenther  <rguenther@suse.de>
17576
17577         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17578         Use is_gimple_min_invariant instead of TREE_INVARIANT.
17579         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17580         * tree-ssa-dom.c (record_equality): Likewise.
17581         * tree-inline.c (copy_body_r): Likewise.
17582         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
17583         TREE_INVARIANT.
17584
17585 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17586
17587         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
17588         as 'delete_unused' argument.
17589
17590 2008-03-20  Richard Guenther  <rguenther@suse.de>
17591
17592         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
17593         special casing of constant qualifiers.
17594         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
17595         care about them in general.
17596         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
17597         regardless of their type.
17598         (fold_stmt_r): Forcefully fold *& if we end up with that.
17599
17600 2008-03-20  Paul Brook  <paul@codesourcery.com>
17601
17602         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
17603         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
17604         linker flags.
17605         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
17606         definition.
17607         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
17608         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
17609
17610 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
17611
17612         * common.opt (Wmudflap): New option.
17613         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
17614         (mx_register_decls): Likewise.
17615         (mudflap_finish_file): Likewise.
17616         * doc/invoke.texi: Document -Wno-mudflap.
17617
17618 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
17619
17620         * c-format.c (replace_format_name_to_system_name): New.
17621         (cmp_attribs): New.
17622         (convert_format_name_to_system_name): New.
17623         (decode_format_attr): Add use of convert_format_name_to_system_name.
17624         (format_types_orig): Add gnu_ prefix to names.
17625         (check_format_info_main): Special treating of \0 escaped names for
17626         supporting multi-character format specifiers as I32, I64.
17627         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
17628         (gnu_target_overrides_format_attributes): New.
17629         * c-format.h: Add structure target_ovr_attr to hold
17630         system specific formatter names.
17631         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
17632         msformat-c.o file to c_target_objs and cxx_target_objs.
17633         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17634         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
17635         (TARGET_N_FORMAT_TYPES): New.
17636         * config/i386/msformat-c.c: New.
17637         * config/i386/t-cygming: Add build rule for msformat-c.o.
17638         * doc/extend.texi: Add new format names gnu_* and ms_* and
17639         further details.
17640         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17641
17642 2008-03-20  Ira Rosen  <irar@il.ibm.com>
17643
17644         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
17645         optimizations turned on under -O3.
17646         (ftree-vectorize): Add that the flag is turned on with -O3.
17647
17648 2008-03-20  Ben Elliston  <bje@au.ibm.com>
17649
17650         * regmove.c (try_auto_increment): Fix spelling error in comment.
17651         * final.c (final_scan_insn): Likewise.
17652
17653 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
17654
17655         PR target/14552
17656         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
17657         allocator preferences for "y" and "r" class registers.
17658         ("*mov<mode>_internal"): Ditto.
17659         ("*movv2sf_internal_rex64"): Ditto.
17660         ("*movv2sf_internal"): Ditto.
17661
17662 2008-03-19  Michael Matz  <matz@suse.de>
17663
17664         PR middle-end/35616
17665         * calls.c (expand_call): Check overlap of arguments with call
17666         address for sibcalls.
17667
17668 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
17669
17670         PR target/35496
17671         * stor-layout.c (update_alignment_for_field): Set minimum alignment
17672         of the underlying type of a MS bitfield layout to the natural
17673         alignment of the type.
17674
17675 2008-03-19  Jan Hubicka  <jh@suse.cz>
17676
17677         PR other/35094
17678         * toplev.c (decode_d_option): Handle all CPP flags.
17679         * tree-vrp.c: Update tree_pass descriptors.
17680         * regrename.c: Update tree_pass descriptors.
17681         * fwprop.c: Update tree_pass descriptors.
17682         * doc/invoke.texi: Remove documentation of dropped -d? flags.
17683         * tree-into-ssa.c: Update tree_pass descriptors.
17684         * tree-dump.c: Update tree_pass descriptors.
17685         * tree-complex.c: Update tree_pass descriptors.
17686         * tree-dump.h: Update tree_pass descriptors.
17687         * see.c: Update tree_pass descriptors.
17688         * cgraphbuild.c: Update tree_pass descriptors.
17689         * tracer.c: Update tree_pass descriptors.
17690         * tree-loop-distribution.c: Update tree_pass descriptors.
17691         * cgraph.c: Update tree_pass descriptors.
17692         * postreload-gcse.c: Update tree_pass descriptors.
17693         * postreload.c: Update tree_pass descriptors.
17694         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
17695         * tree-tailcall.c: Update tree_pass descriptors.
17696         * tree-pass.h (tree_opt_pass): Rename to ...
17697         (opt_pass) ... this one; add "type" field and remove letter field.
17698         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
17699         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
17700         all_lowering_passes): Update declaration.
17701         * ipa-cp.c: Update tree_pass descriptors.
17702         * final.c: Update tree_pass descriptors.
17703         * omp-low.c: Update tree_pass descriptors.
17704         * tree-ssa-dse.c: Update tree_pass descriptors.
17705         * ipa-reference.c: Update tree_pass descriptors.
17706         * tree-ssa-uncprop.c: Update tree_pass descriptors.
17707         * auto-inc-dec.c: Update tree_pass descriptors.
17708         * reorg.c: Update tree_pass descriptors.
17709         * cgraphunit.c: Update tree_pass descriptors.
17710         * tree-ssa-copyrename.c: Update tree_pass descriptors.
17711         * tree-ssa-ccp.c: Update tree_pass descriptors.
17712         * df-core.c: Update tree_pass descriptors.
17713         * mode-switching.c: Update tree_pass descriptors.
17714         * tree-nomudflap.c: Update tree_pass descriptors.
17715         * modulo-sched.c: Update tree_pass descriptors.
17716         * ipa-pure-const.c: Update tree_pass descriptors.
17717         * cse.c: Update tree_pass descriptors.
17718         * web.c: Update tree_pass descriptors.
17719         * tree-stdarg.c: Update tree_pass descriptors.
17720         * tree-ssa-math-opts.c: Update tree_pass descriptors.
17721         * tree-ssa-dom.c: Update tree_pass descriptors.
17722         * tree-nrv.c: Update tree_pass descriptors.
17723         * tree-ssa-alias.c: Update tree_pass descriptors.
17724         * loop-init.c: Update tree_pass descriptors.
17725         * gimple-low.c: Update tree_pass descriptors.
17726         * ipa-inline.c: Update tree_pass descriptors.
17727         * tree-ssa-sink.c: Update tree_pass descriptors.
17728         * global.c: Update tree_pass descriptors.
17729         * ifcvt.c: Update tree_pass descriptors.
17730         * jump.c: Update tree_pass descriptors.
17731         * predict.c: Update tree_pass descriptors.
17732         * tree-ssa-loop.c: Update tree_pass descriptors.
17733         * recog.c: Update tree_pass descriptors.
17734         * dse.c: Update tree_pass descriptors.
17735         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
17736         * tree-eh.c: Update tree_pass descriptors.
17737         * regmove.c: Update tree_pass descriptors.
17738         * local-alloc.c
17739         * function.c: Update tree_pass descriptors.
17740         * tree-vectorizer.c: Update tree_pass descriptors.
17741         * gcse.c: Update tree_pass descriptors.
17742         * ipa-type-escape.c: Update tree_pass descriptors.
17743         * tree-if-conv.c: Update tree_pass descriptors.
17744         * init-regs.c: Update tree_pass descriptors.
17745         * ipa.c: Update tree_pass descriptors.
17746         * tree-ssa-phiopt.c: Update tree_pass descriptors.
17747         * rtl-factoring.c: Update tree_pass descriptors.
17748         * lower-subreg.c: Update tree_pass descriptors.
17749         * bt-load.c: Update tree_pass descriptors.
17750         * tree-dfa.c: Update tree_pass descriptors.
17751         * except.c: Update tree_pass descriptors.
17752         * emit-rtl.c: Update tree_pass descriptors.
17753         * cfgexpand.c: Update tree_pass descriptors.
17754         * tree-cfgcleanup.c: Update tree_pass descriptors.
17755         * cfgcleanup.c: Update tree_pass descriptors.
17756         * tree-ssa-pre.c: Update tree_pass descriptors.
17757         * tree-sra.c: Update tree_pass descriptors.
17758         * tree-mudflap.c: Update tree_pass descriptors.
17759         * tree-ssa-copy.c: Update tree_pass descriptors.
17760         * cfglayout.c: Update tree_pass descriptors.
17761         * tree-ssa-forwprop.c: Update tree_pass descriptors.
17762         * tree-ssa-dce.c: Update tree_pass descriptors.
17763         * tree-ssa.c: Update tree_pass descriptors.
17764         * regclass.c: Update tree_pass descriptors.
17765         * integrate.c: Update tree_pass descriptors.
17766         * tree-optimize.c: Update tree_pass descriptors.
17767         * tree-ssa-phiprop.c: Update tree_pass descriptors.
17768         * tree-object-size.c: Update tree_pass descriptors.
17769         * combine.c: Update tree_pass descriptors.
17770         * tree-outof-ssa.c: Update tree_pass descriptors.
17771         * bb-reorder.c: Update tree_pass descriptors.
17772         * stack-ptr-mod.c: Update tree_pass descriptors.
17773         * var-tracking.c: Update tree_pass descriptors.
17774         * tree-profile.c: Update tree_pass descriptors.
17775         * tree-vect-generic.c: Update tree_pass descriptors.
17776         * reg-stack.c: Update tree_pass descriptors.
17777         * sched-rgn.c: Update tree_pass descriptors.
17778         * tree-ssa-structalias.c: Update tree_pass descriptors.
17779         * tree-cfg.c: Update tree_pass descriptors.
17780         * passes.c (current_pass): Update declaration.
17781         (finish_optimization_passes): Update.
17782         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
17783         (register_one_dump_file, register_dump_files_1, next_pass_1):
17784         Update arguments.
17785         (init_optimization_passes): Update handling of new types.
17786         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
17787         * ipa-struct-reorg.c: Update tree_pass descriptors.
17788         * tree-ssa-reassoc.c: Update tree_pass descriptors.
17789         * combine-stack-adj.c: Update tree_pass descriptors.
17790         * cfgrtl.c: Update tree_pass descriptors.
17791         * dce.c: Update tree_pass descriptors.
17792         * tree-ssanames.c: Update tree_pass descriptors.
17793
17794 2008-03-19  Richard Guenther  <rguenther@suse.de>
17795
17796         PR middle-end/35609
17797         * tree-ssa.c (walk_data): New structure.
17798         (warn_uninitialized_var): If not always_executed warn with "maybe"
17799         instead of "is".
17800         (execute_early_warn_uninitialized): Compute post-dominators.
17801         Initialize always_executed before processing each basic block.
17802
17803 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
17804
17805         PR target/35504
17806         * config/i386/i386.c (x86_this_parameter): Calculate correct location
17807         of "this" pointer when "regparm = N" or "fastcall" is in effect.
17808
17809 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17810
17811         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
17812
17813 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
17814
17815         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
17816         is true.
17817         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
17818         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
17819         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
17820         target after ignore has been set, and move there also the commputation
17821         of subtarget and original_target.
17822         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
17823         (LANG_HOOKS_INITIALIZER): Remove it.
17824         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
17825
17826 2008-03-18  Richard Guenther  <rguenther@suse.de>
17827
17828         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
17829         found an expression with constants, note that in the VN for the lhs.
17830         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
17831         fold them to constants if possible.  Run cleanup_cfg if done so.
17832         (execute_pre): Return todo.
17833         (do_pre): Likewise.
17834         (execute_fre): Likewise.
17835         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
17836         of constants.
17837         (get_prop_source_stmt): Look through pointer conversions.
17838
17839 2008-03-18  Jan Hubicka  <jh@suse.cz>
17840
17841         * tree-pretty-print.c: Include predict.h.
17842         (dump_generic_node): Dump predictor.
17843         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
17844         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
17845         * gimple-low.c (lower_stmt): Likewise.
17846         * expr.c (expand_expr_real): Likewise.
17847         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
17848         them.
17849         (build_predict_expr, build_predict_expr): New.
17850         * predict.h (predictor_name, build_predict_expr): Update.
17851         * c-typeck.c (c_finish_bc_stmt): Add prediction.
17852         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
17853         * predict.def (PRED_CONTINUE): Update hitrate.
17854         * tree.def (PREDICT_EXPR): Define.
17855         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
17856         do not handle BIND_EXPR.
17857         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
17858         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
17859         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
17860         operands.
17861
17862 2008-03-18  Michael Matz  <matz@suse.de>
17863
17864         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
17865
17866 2008-03-18  Richard Guenther  <rguenther@suse.de>
17867
17868         * tree-gimple.h (is_gimple_invariant_address): Declare.
17869         (is_gimple_constant): Likewise.
17870         * tree-gimple.c (is_gimple_constant): New function.
17871         (is_gimple_invariant_address): Likewise.
17872         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
17873         and is_gimple_invariant_address.
17874         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
17875         previous change.
17876         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
17877         an addressable base.
17878
17879 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
17880
17881         PR middle-end/35611
17882         * gimplify.c (gimplify_expr): Gimplify second operand of
17883         OMP_ATOMIC_LOAD.
17884
17885 2008-03-17  Richard Guenther  <rguenther@suse.de>
17886
17887         PR tree-optimization/19637
17888         * fold-const.c (fold_unary): Remove restrictions of removing
17889         intermediate pointer-conversions (P2)(P1)P0.
17890         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
17891         conversion to void pointer.
17892         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
17893
17894 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
17895
17896         PR debug/31510
17897         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
17898         emulated thread local variables.
17899
17900 2008-03-16  Richard Guenther  <rguenther@suse.de>
17901
17902         PR middle-end/35607
17903         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
17904         expand TREE_INVARIANT operations that are not gimple invariant.
17905
17906 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
17907
17908         * doc/extend.texi (Alignment): Say that the ABI controls
17909         the __alignof__ for non-strict-alignment targets rather
17910         than being a recommendation.
17911
17912 2008-03-15  Paul Brook  <paul@codesourcery.com>
17913
17914         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
17915         annotations.
17916         (arm_output_fn_unwind): Mark functions that can not be unwound.
17917
17918 2008-03-15  Paul Brook  <paul@codesourcery.com>
17919
17920         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
17921         extension instructions.
17922
17923 2008-03-15  Richard Guenther  <rguenther@suse.de>
17924
17925         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
17926         and fold constant aggregate refs.
17927         (fold_const_aggregate_ref): Handle string constants
17928         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
17929         (evaluate_stmt): Simplify now that ccp_fold folds constant
17930         aggregate refs.
17931
17932 2008-03-15  Paul Brook  <paul@codesourcery.com>
17933
17934         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
17935         (extzv): Use gen_extzv_t2.
17936         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
17937
17938 2008-03-15  Richard Guenther  <rguenther@suse.de>
17939
17940         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
17941         (fold_const_aggregate_ref): Likewise.
17942         (get_value): Return NULL if we don't have any values.
17943         (ccp_finalize): Set const_val to NULL after freeing it.
17944         * tree-flow.h (get_symbol_constant_value): Declare.
17945         (fold_const_aggregate_ref): Likewise.
17946         * tree-ssa-sccvn.c (try_to_simplify): Use them.
17947
17948 2008-03-15  Richard Guenther  <rguenther@suse.de>
17949
17950         PR middle-end/35593
17951         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
17952         to not produce negative array indices if not allowed.  Add
17953         parameter to indicate that.
17954         (maybe_fold_offset_to_component_ref): Allow negative array
17955         indices only for the first member of a structure.
17956         (maybe_fold_offset_to_reference): Allow negative array indices.
17957         (maybe_fold_stmt_addition): Likewise.
17958
17959 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
17960             Anatoly Sokolov <aesok@post.ru>
17961
17962         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
17963         (avr_arch): Add ARCH_AVR6.
17964         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
17965         (initial_elimination_offset): Initialize and use 'avr_pc_size'
17966         instead of fixed value 2.
17967         (print_operand_address): Use gs() asm specifier instead of pm().
17968         (avr_assemble_integer): (Ditto.).
17969         (avr_output_addr_vec_elt): (Ditto.).
17970         (print_operand): Handle "!" code.
17971         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
17972         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
17973         (AVR_HAVE_EIJMP_EICALL): Define.
17974         (AVR_3_BYTE_PC): Redefine.
17975         (AVR_2_BYTE_PC): (Ditto.).
17976         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
17977         (LINK_SPEC): Add atmega2560 and atmega2561.
17978         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
17979         (crtm2561.o).
17980         * config/avr/avr.md (call_insn): Use eicall instead of icall
17981         for 3 byte PC devices.
17982         (call_value_insn): (Ditto.).
17983         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
17984         (indirect_jump): Use only for for 2 byte PC devices.
17985         (*tablejump): (Ditto.).
17986         (*indirect_jump_avr6): Add insn.
17987         (*tablejump_rjmp): Don't use for 3 byte PC devices.
17988         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
17989         instead of ijmp for 3 byte PC devices.
17990         (__tablejump2__): (Ditto.).
17991         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
17992         (MULITLIB_DIRNAMES): (Ditto.).
17993         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
17994
17995 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
17996
17997         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
17998         "sse2_umulsidi3".  Use V1DI mode for operand 0.
17999         ("mmx_psadbw"): Use V1DI mode for operand 0.
18000         * config/i386/i386-modes.def (V1SI): New vector mode.
18001         * config/i386/i386.c (struct builtin_description)
18002         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18003         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18004         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18005         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18006         v1di_ftype_v8qi_v8qi type.
18007         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18008
18009         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18010         __builtin_ia32_pmuludq]: Fix the mode of return value.
18011
18012 2008-03-15  Richard Guenther  <rguenther@suse.de>
18013
18014         PR middle-end/35595
18015         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18016         being a PHI_NODE.
18017
18018 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18019
18020         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18021         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18022         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18023         unless TARGET_SERIALIZE_VOLATILE is enabled.
18024         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18025         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18026         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18027
18028 2008-03-14  Richard Guenther  <rguenther@suse.de>
18029
18030         PR tree-optimization/34172
18031         * tree-flow.h (refs_may_alias_p): Declare.
18032         (get_single_def_stmt): Likewise.
18033         (get_single_def_stmt_from_phi): Likewise.
18034         (get_single_def_stmt_with_phi): Likewise.
18035         * tree-dfa.c (refs_may_alias_p): New function.
18036         (get_single_def_stmt): Likewise.
18037         (get_single_def_stmt_from_phi): Likewise.
18038         (get_single_def_stmt_with_phi): Likewise.
18039         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18040         (vn_reference_lookup_1): New helper function.
18041         (vn_reference_lookup): Walk the virtual use-def chain to
18042         continue searching for a match if the def does not alias the
18043         reference we are looking for.
18044
18045 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18046
18047         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18048         archive and Perzl.  Update The Written Word listing.
18049
18050 2008-03-14  Richard Guenther  <rguenther@suse.de>
18051
18052         PR tree-optimization/34043
18053         PR tree-optimization/33989
18054         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18055         when doing FRE.
18056         (bitmap_find_leader): Use extra argument to verify dominance
18057         relationship inside a basic-block.
18058         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18059         (find_leader_in_sets): Adjust.
18060         (create_component_ref_by_pieces): Take extra argument for
18061         dominance check, handle lookup failures.
18062         (find_or_generate_expression): Likewise.
18063         (create_expression_by_pieces): Likewise.
18064         (insert_into_preds_of_block): Adjust.
18065         (create_value_expr_from): If asked for, verify all operands
18066         are in the blocks AVAIL_OUT set.
18067         (make_values_for_stmt): Check for SSA_NAMEs that are life
18068         over an abnormal edge.
18069         (compute_avail): Remove such check.
18070         (do_SCCVN_insertion): New function.
18071         (eliminate): If we do not find a leader suitable for replacement
18072         insert a replacement expression from SCCVN if available.
18073         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18074         (struct vn_ssa_aux): Add needs_insertion flag.
18075         * tree-ssa-sccvn.c (may_insert): New global flag.
18076         (copy_reference_ops_from_ref): Value-number union member access
18077         based on its size, not type and member if insertion is allowed.
18078         (visit_reference_op_load): For a weak match from union type
18079         punning lookup a view-converted value and insert a SSA_NAME
18080         for that value if that is not found.
18081         (visit_use): Make dumps shorter.  Do not disallow value numbering
18082         SSA_NAMEs that are life over an abnormal edge to constants.
18083         (free_scc_vn): Release inserted SSA_NAMEs.
18084         (run_scc_vn): New flag to specify whether insertion is allowed.
18085         Process SSA_NAMEs in forward order.
18086         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18087         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18088         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18089         pointer type to/from integral types that do not change the
18090         precision to regular conversions.
18091
18092 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18093
18094         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18095         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18096         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18097         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18098         input arguments and the mode of return value.  Built-in functions
18099         that operate on whole 64-bit MMX register now use V1DI mode.
18100
18101 2008-03-13  Alon Dayan  <alond@il.ibm.com>
18102             Olga Golovanevsky  <olga@il.ibm.com>
18103
18104         PR tree-optimization/35041
18105         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18106         to locate the right position in a statement.
18107
18108 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18109
18110         PR target/34000
18111         PR target/35553
18112         * config/i386/xmmintrin.h:  Change all static inline functions to
18113         extern inline and add __gnu_inline__ attribute.
18114         * config/i386/bmintrin.h: Ditto.
18115         * config/i386/smmintrin.h: Ditto.
18116         * config/i386/tmmintrin.h: Ditto.
18117         * config/i386/mmintrin-common.h: Ditto.
18118         * config/i386/ammintrin.h: Ditto.
18119         * config/i386/emmintrin.h: Ditto.
18120         * config/i386/pmmintrin.h: Ditto.
18121         * config/i386/mmintrin.h: Ditto.
18122         * config/i386/mm3dnow.h: Ditto.
18123
18124 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18125
18126         PR middle-end/35185
18127         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18128         (lower_omp_2): New function.
18129         (lower_omp_1, lower_omp): Rewritten.
18130
18131 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
18132
18133         PR 35054
18134         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18135         with the phrase "Microsoft Windows compilers".
18136         (Push/Pop Macro Pragmas): New subsection. Document
18137         #pragma push_macro and pragma pop_macro.
18138
18139 2008-03-12  Paul Brook  <paul@codesourcery.com>
18140
18141         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18142
18143 2008-03-12  Paul Brook  <paul@codesourcery.com>
18144
18145         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18146         (thumb2_alusi3_short): Exclude PLUS and MINUS.
18147         (thumb2_addsi_shortim): Rename ...
18148         (thumb2_addsi_short): ... to this.  Allow register operands.
18149         (thumb2_subsi_short): New pattern.
18150         (thumb2_one_cmplsi2_short,
18151         thumb2_negsi2_short): New patterns and peepholes.
18152
18153 2008-03-12  Paul Brook  <paul@codesourcery.com>
18154
18155         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18156
18157 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
18158
18159         * config/i386/i386.md (int_cond): New code iterator.
18160         (fp_cond): Ditto.
18161         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18162         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18163         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18164         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18165         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18166         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18167         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18168         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18169
18170 2008-03-12  Paul Brook  <paul@codesourcery.com>
18171
18172         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18173         instead of {arm,thumb}_compute_save_reg_mask.
18174         (output_return_instruction): Ditto.
18175         (thumb_unexpanded_epilogue): Ditto.
18176         (thumb1_expand_prologue): Ditto.
18177         (thumb1_output_function_prologue): Ditto.
18178         (arm_set_return_address): Ditto.
18179         (thumb_set_return_address): Ditto.
18180         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
18181         regs to achieve stack alignment.
18182         (thumb1_compute_save_reg_mask): Fix compiler warning.
18183         (arm_output_epilogue): Use offsets->saved_regs_mask.
18184         Adjust stack pointer by poping call clobered registers.
18185         (arm_expand_prologue): Use offsets->saved_regs_mask.
18186         Adjust stack pointer by pushing extra registers.
18187         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18188
18189 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
18190
18191         PR tree-opt/35422
18192         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18193         conversion to the operands of a multiplication.
18194
18195 2008-03-12  Richard Guenther  <rguenther@suse.de>
18196
18197         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18198         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18199         * timevar.def (TV_TREE_PHIPROP): Add.
18200         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18201         pass description.  Use TV_TREE_PHIPROP.
18202         * tree-ssa-forwprop.c: Remove phiprop code.
18203
18204 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18205
18206         PR middle-end/35549
18207         * omp-low.c (maybe_lookup_decl): Constify first argument.
18208         (use_pointer_for_field): Change last argument from bool to
18209         omp_context *.  Disallow shared copy-in/out in nested
18210         parallel if decl is shared in outer parallel too.
18211         (build_outer_var_ref, scan_sharing_clauses,
18212         lower_rec_input_clauses, lower_copyprivate_clauses,
18213         lower_send_clauses, lower_send_shared_vars): Adjust callers.
18214
18215 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
18216             Ira Rosen  <irar@il.ibm.com>
18217
18218         * tree-vectorizer.c (free_stmt_vec_info): New function.
18219         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18220         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18221         * tree-vectorizer.h (free_stmt_vec_info): Declare.
18222         * tree-vect-transform.c (vectorizable_conversion): Free
18223         vec_oprnds0 if it was allocated.
18224         (vect_permute_store_chain): Remove unused VECs.
18225         (vectorizable_store): Free VECs that are allocated in the..
18226         function.
18227         (vect_transform_strided_load, vectorizable_load): Likewise.
18228         (vect_remove_stores): Simplify the code.
18229         (vect_transform_loop): Move code to vect_remove_stores().
18230         Call vect_remove_stores() and free_stmt_vec_info().
18231
18232 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18233
18234         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18235         TARGET_HPUX.  Revise comment.
18236         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18237         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18238         Use sr4 variant of `be' instruction when not generating PIC code.
18239         (attr_length_call): Adjust for above change.
18240
18241 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18242
18243         * ipa-reference.c (static_execute): Remove module_statics_const and
18244         associated setting code.
18245
18246 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18247
18248         PR target/35540
18249         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18250         predicate for operand 1.
18251         (paritysi2_cmp): Use register_operand predicate for operand 2.
18252         Use earlyclobber modifier for operand 1.  Remove support for
18253         memory operands.
18254         (paritydi2_cmp): Use register_operand predicate for operand 3.
18255         Use earlyclobber modifier for operand 1.  Remove support for
18256         memory operands.
18257
18258 2008-03-11  Paul Brook  <paul@codesourcery.com>
18259             Vladimir Prus  <vladimir@codesourcery.com>
18260
18261         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18262         (arm_compute_save_reg0_reg12_mask): Always
18263         check if register 11 must be saved.  Always safe hard frame pointer
18264         when frame_pointer_needeed.
18265         (arm_compute_save_reg_mask): Save IP and PC
18266         only with apcs frames.
18267         (arm_output_epilogue): Adjust Thumb2 codepath to
18268         be also invoked and work for ARM non-apcs frames.
18269         (arm_expand_prologue): Don't bother saving IP
18270         for non-apcs frame, since it's not clobbered by
18271         prologue code.  Implement non-apcs frame
18272         layout.
18273
18274 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18275
18276         PR rtl-optimization/35281
18277         * expr.c (convert_move): Use a new pseudo for the intermediate
18278         from_mode->word_mode result.
18279
18280 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18281
18282         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18283         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18284         * toplev.c (compile_file): Don't call it.
18285
18286 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18287
18288         PR middle-end/35526
18289         * expr.c (store_expr): Call emit_block_move if the mode
18290         of "temp" RTX is BLKmode.
18291
18292 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18293             Richard Guenther  <rguenther@suse.de>
18294
18295         PR tree-optimization/31358
18296         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18297         the step with a NULL_TREE.
18298         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18299         to sizetype if type is a pointer type.
18300         (add_candidate_1): Don't convert the base and step to
18301         the generic type if the orginal type is a pointer type.
18302         (add_iv_value_candidates): Use sizetype for the step
18303         if type is a pointer type.
18304         (cand_value_at): Likewise.
18305         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18306         for pointer types.
18307         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18308         Don't convert the tem affine to the type.
18309         (add_elt_to_tree): Use sizetype for the step if a pointer.
18310         Use POINTER_PLUS_EXPR for pointers.
18311         (aff_combination_to_tree): Use sizetype for the step if a
18312         pointer.
18313
18314 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
18315
18316         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18317         Remove commutativity hint.
18318
18319 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
18320
18321         PR c/35438
18322         PR c/35439
18323         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18324         errorneous type.  Check that v is a VAR_DECL.
18325
18326         PR middle-end/35099
18327         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18328
18329 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18330
18331         PR tree-optimization/35494
18332         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18333         may be overriden at link and run time.
18334
18335 2008-03-10  Richard Guenther  <rguenther@suse.de>
18336
18337         PR tree-optimization/34677
18338         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18339         (poolify_tree): Likewise.
18340         (modify_expr_template): Likewise.
18341         (poolify_modify_stmt): Likewise.
18342         (insert_fake_stores): Handle all component-ref style stores
18343         in addition to INDIRECT_REF.  Also handle complex types.
18344         Do not poolify the inserted load.
18345         (realify_fake_stores): Do not rebuild the tree but only
18346         make it a SSA_NAME copy.
18347         (init_pre): Remove initialzation of modify_expr_template.
18348         Do not allocate modify_expr_node_pool.
18349         (fini_pre): Do not free modify_expr_node_pool.
18350
18351 2008-03-10  Paul Brook  <paul@codesourcery.com>
18352
18353         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18354         to avoid conflicts.
18355
18356 2008-03-10  Paul Brook  <paul@codesourcery.com>
18357             Mark Shinwell  <shinwell@codesourcery.com>
18358
18359         * config/arm/cortex-r4.md: New.
18360         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18361         insn attributes.
18362         * config/arm/arm.md: Include cortex-r4.md.
18363         (insn): Add smmls, sdiv and udiv values.
18364         (generic_sched): Don't use generic scheduling for Cortex-R4.
18365         (arm_issue_rate): New function.
18366         (TARGET_SCHED_ISSUE_RATE): Define.
18367
18368 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
18369
18370         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
18371
18372 2008-03-10  Richard Guenther  <rguenther@suse.de>
18373
18374         * tree-ssa-pre.c (get_sccvn_value): Simplify.
18375         (compute_avail): Do not add stmt uses to AVAIL_OUT.
18376
18377 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
18378
18379         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
18380         Set default to true.
18381
18382 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18383
18384         * c.opt (Wsynth): Deprecate.
18385         * doc/invoke.texi (Option Summary, Warning Options): Document
18386         -Wno-format-contains-nul.
18387
18388 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
18389
18390         PR target/35496
18391         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
18392         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
18393
18394 2008-03-09  Ira Rosen  <irar@il.ibm.com>
18395
18396         * config/rs6000/rs6000.c (builtin_description): Rename vector
18397         left shift operations.
18398         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
18399         (altivec_vsl<VI_char>): Rename to ...
18400         (ashl<mode>3): ... new name.
18401         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
18402         gen_ashlv4si3.
18403         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
18404
18405 2008-03-08  Richard Guenther  <rguenther@suse.de>
18406
18407         * coverage.h (tree_coverage_counter_addr): Declare.
18408         * coverage.c (tree_coverage_counter_addr): New function.
18409         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
18410         before using again.
18411         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
18412         (tree_gen_one_value_profiler): Likewise.
18413         (tree_gen_ic_profiler): Likewise.
18414         (tree_gen_average_profiler): Likewise.
18415         (tree_gen_ior_profiler): Likewise.
18416
18417 2008-03-08  Richard Guenther  <rguenther@suse.de>
18418
18419         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
18420         (vn_binary_op_insert): Likewise.
18421         (vn_unary_op_lookup): Likewise.
18422         (vn_unary_op_insert): Likewise.
18423         (vn_nary_op_lookup): Declare.
18424         (vn_nary_op_insert): Likewise.
18425         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
18426         and binary hashes, use a single obstack for unary_op_pool
18427         and binary_op_pool.
18428         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
18429         a single struct vn_nary_op_s.  Store tree code length and
18430         a variable number of operands.
18431         (struct vn_reference_op_struct): Remove unused op2.
18432         (vn_reference_op_eq): Do not compare op2.
18433         (vn_reference_op_compute_hash): Do not compute hash of op2.
18434         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
18435         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
18436         with vn_nary_op_compute_hash.
18437         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
18438         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
18439         vn_nary_op_lookup.
18440         (vn_unary_op_insert, vn_binary_op_insert): Replace with
18441         vn_nary_op_insert.
18442         (visit_unary_op): Call nary functions.
18443         (visit_binary_op): Likewise.
18444         (process_scc): Adjust for struct vn_tables_s changes.
18445         (allocate_vn_table): Likewise.
18446         (free_vn_table): Likewise.
18447         * tree-vn.c (vn_add): Call nary functions.
18448         (vn_lookup): Likewise.
18449
18450 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
18451
18452         PR target/35498
18453         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
18454         wdst back after sync_compare_and_swapqhi_internal.
18455
18456 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
18457
18458         PR target/22152
18459         * config/i386/i386-modes.def (V1DI): New vector mode.
18460         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
18461         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
18462         (MMXMODE248): Ditto.
18463         (MMXMODE): Add V1DI mode.
18464         (mmxvecsize): Change DI mode to V1DI mode.
18465         ("mov<mode>): Use MMXMODEI8 mode iterator.
18466         ("*mov<mode>_internal_rex64"): Ditto.
18467         ("*mov<mode>_internal"): Ditto.
18468         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
18469         ("mmx_sub<mode>3"): Ditto.
18470         ("mmx_adddi3"): Remove insn pattern.
18471         ("mmx_subdi3"): Ditto.
18472         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18473         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18474         ("mmx_ashl<mode>3"): Ditto.
18475         ("mmx_lshrdi3"): Remove insn pattern.
18476         ("mmx_ashldi3"): Ditto.
18477         * config/i386/i386.c (classify_argument): Handle V1DImode.
18478         (function_arg_advance_32): Ditto.
18479         (function_arg_32): Ditto.
18480         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
18481         mmx_addv1di3 insn pattern.
18482         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
18483         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
18484         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
18485         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
18486         Remove definitions of built-in functions.
18487         (V1DI_type_node): New node.
18488         (v1di_ftype_v1di_int): Ditto.
18489         (v1di_ftype_v1di_v1di): Ditto.
18490         (v2si_ftype_v2si_si): Ditto.
18491         (v4hi_ftype_v4hi_di): Remove node.
18492         (v2si_ftype_v2si_di): Ditto.
18493         (ix86_init_mmx_sse_builtins): Handle V1DImode.
18494         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
18495         Redefine builtins using def_builtin_const with *_ftype_*_int node.
18496         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
18497         Add new builtins using def_builtin_const.
18498         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
18499         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
18500         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
18501         * config/i386/mmintrin.h (__v1di): New typedef.
18502         (_mm_add_si64): Cast arguments to __v1di type.
18503         (_mm_sub_si64): Ditto.
18504         (_mm_sll_pi16): Cast __count to __v4hi type.
18505         (_mm_sll_pi32): Cast __count to __v2si type.
18506         (_mm_sll_si64): Cast arguments to __v1di type.
18507         (_mm_srl_pi16): Cast __count to __v4hi type.
18508         (_mm_srl_pi32): Cast __count to __v2si type.
18509         (_mm_srl_si64): Cast arguments to __v1di type.
18510         (_mm_sra_pi16): Cast __count to __v4hi type.
18511         (_mm_sra_pi32): Cast __count to __v2si type.
18512         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
18513         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
18514         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
18515         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
18516         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
18517         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
18518         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
18519         (_mm_srai_pi32): Use __builtin_ia32_psradi.
18520         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
18521         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18522         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18523         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
18524
18525 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
18526
18527         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
18528
18529 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
18530
18531         PR target/35373
18532         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
18533         reg+const addressing for Altivec modes.  Don't generate reg+reg
18534         addressing for TFmode or TDmode quantities.
18535
18536 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
18537
18538         * c-common.c (vector_types_convertible_p): Call langhook
18539         instead of comptypes.
18540
18541 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18542
18543         PR tree-opt/35402
18544         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
18545         integral and scalar float variables which have a
18546         NULL DECL_INITIAL.
18547
18548 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
18549
18550         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
18551         dwarf_register_span hook when emitting unwind information for
18552         register-to-memory saves.
18553         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
18554         (rs6000_frame_related): Remove call to spe_synthesize_frame.
18555
18556 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18557
18558         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
18559         for the same VAR_DECL.
18560
18561 2008-03-06  Tom Tromey  <tromey@redhat.com>
18562
18563         * treelang: Delete.
18564         * doc/standards.texi (Standards): Don't mention treelang.
18565         * doc/invoke.texi (Overall Options): Don't mention treelang.
18566         * doc/install.texi (Prerequisites): Don't mention bison or
18567         treelang.
18568         (Configuration): Don't mention treelang.
18569         (Building): Likewise.
18570         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
18571
18572 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
18573
18574         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
18575         word-extractions out of a multi-word object.
18576
18577 2008-03-06  Richard Guenther  <rguenther@suse.de>
18578
18579         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
18580         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
18581         result type and precision.
18582         * expr.c (get_inner_reference): Set unsignedp based on the result
18583         type of BIT_FIELD_REF.
18584         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
18585         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
18586         (try_instantiate_multiple_fields): Likewise.  Use the correct type
18587         for BIT_FIELD_REF.
18588         (sra_build_assignment): Likewise.
18589         (sra_build_elt_assignment): Likewise.
18590         (sra_explode_bitfield_assignment): Likewise.
18591         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
18592         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
18593         set BIT_FIELD_REF_UNSIGNED.
18594         (vectorizable_load): Likewise.
18595
18596 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
18597
18598         * cse.c (cse_extended_basic_block): Invalidate artificial defs
18599         at bb start.
18600
18601 2008-03-06  Richard Guenther  <rguenther@suse.de>
18602
18603         * alias.c (struct alias_set_entry): Move has_zero_child field
18604         to pack with alias_set.
18605
18606 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18607
18608         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18609         32bit host.
18610
18611 2008-03-05  Ian Lance Taylor  <iant@google.com>
18612
18613         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
18614
18615 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
18616
18617         * fwprop.c (update_df): Support width and offset parameters of
18618         df_ref_create.
18619         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
18620         global_conflicts): Change DF_REF_EXTRACT to either
18621         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18622         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18623         * df-scan.c (df_ref_record, df_defs_record,
18624         df_ref_create_structure, df_def_record_1, df_uses_record,
18625         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
18626         df_bb_refs_collect, df_entry_block_defs_collect,
18627         df_exit_block_uses_collect): Support new width and offset fields.
18628         (ref_extract_pool): New storage pool.
18629         (df_free_ref): New function.
18630         (df_reg_chain_unlink, df_free_collection_rec,
18631         df_sort_and_compress_refs): Call df_free_ref.
18632         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
18633         of df_ref_extract.
18634         (df_ref_create_structure): Allocate df_ref_extract if offset and
18635         width fields are used.
18636         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
18637         (df_uses_record): Get offset and width from ZERO_EXTRACT
18638         and SIGN_EXTRACT.
18639         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
18640         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18641         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18642         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
18643         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18644         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18645         (df_ref_extract): New structure.
18646         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
18647         (df_ref_create): Add width and offset parameters.
18648
18649 2008-03-05  Richard Guenther  <rguenther@suse.de>
18650
18651         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18652         Use ranges_overlap_p.
18653         (offset_overlaps_with_access): Rename
18654         to ranges_overlap_p and move ...
18655         * tree-flow-inline.h (ranges_overlap_p): ... here.
18656
18657         * tree.h (get_inner_reference, handled_component_p): Update
18658         comments.
18659
18660         * tree.h (record_component_aliases, get_alias_set,
18661         alias_sets_conflict_p, alias_sets_must_conflict_p,
18662         objects_must_conflict_p): Move declarations ...
18663         * alias.h (record_component_aliases, get_alias_set,
18664         alias_sets_conflict_p, alias_sets_must_conflict_p,
18665         objects_must_conflict_p): ... here.
18666         Include coretypes.h.
18667         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
18668
18669 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
18670
18671         * cfg.c: Include tree-flow.h.
18672         (remove_edge_raw): Call redirect_edge_var_map_clear.
18673         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
18674         * tree-flow-inline.h (redirect_edge_var_map_def): New.
18675         (redirect_edge_var_map_result): New.
18676         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
18677         PENDING_STMT use with redirect_edge_var_map_*.
18678         * tree-ssa.c (edge_var_maps): New definition.
18679         (redirect_edge_var_map_add): New.
18680         (redirect_edge_var_map_clear): New.
18681         (redirect_edge_var_map_dup): New.
18682         (redirect_edge_var_map_vector): New.
18683         (redirect_edge_var_map_destroy): New.
18684         (ssa_redirect_edge): Replace PENDING_STMT use with
18685         redirect_edge_var_map_*.
18686         (flush_pending_stmts): Same.
18687         (delete_tree_ssa): Destroy edge var map.
18688         * tree-flow.h (struct _edge_var_map): New.
18689         Define edge_var_map vector type.
18690         Declare redirect_edge_var_map_* prototypes.
18691         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
18692         * tree-cfg.c (reinstall_phi_args): Replace
18693         PENDING_STMT use with redirect_edge_var_map_*.
18694
18695 2008-03-05  Richard Guenther  <rguenther@suse.de>
18696
18697         PR tree-optimization/35472
18698         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
18699         whose single use_stmt has a overlapping set of loaded and
18700         stored symbols as that use_stmt might be a noop assignment then.
18701
18702 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
18703
18704         * gthr-rtems.h: Implement __gthread_mutex_destroy.
18705
18706 2008-03-05  Richard Guenther  <rguenther@suse.de>
18707
18708         PR c++/35336
18709         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
18710         should be constants.
18711         * tree-cfg.c (verify_expr): Verify it.
18712         * fold-const.c (fold_truthop): Remove code generating
18713         BIT_FIELD_REFs of structure bases.
18714         (fold_binary): Likewise.
18715         (fold_ternary): Position and size of BIT_FIELD_REFs are
18716         always host integers.
18717         (make_bit_field_ref): Remove.
18718         (optimize_bit_field_compare): Remove.
18719         (all_ones_mask_p): Remove.
18720
18721 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
18722
18723         PR gcc/33009
18724         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
18725         (split_block_and_df_analyze): New. Split basic block and rebuild
18726         dataflow.
18727         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
18728         SPLIT_BLOCK.
18729         (split_pattern_seq): Likewise.
18730         (erase_matching_seqs): Likewise.
18731         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
18732
18733 2008-03-04  Geoff Keating  <geoffk@apple.com>
18734
18735         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
18736         declaration and code.
18737         (tree_invalid_nonnegative_warnv_p): Likewise.
18738
18739 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
18740
18741         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
18742         examples.  Truncate option-names then causing overfull hbox.
18743
18744 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18745
18746         PR target/35222
18747         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
18748         on hpux10.
18749         * configure: Rebuilt.
18750
18751 2008-03-04  Rafael Espindola  <espindola@google.com>
18752
18753         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
18754         (tree_unary_nonnegative_warnv_p): New.
18755         (tree_binary_nonnegative_warnv_p): New.
18756         (tree_single_nonnegative_warnv_p): New.
18757         (tree_invalid_nonnegative_warnv_p): New.
18758         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
18759
18760 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18761
18762         PR 28322
18763         * opts.c (handle_option): Postpone 'unknown option' errors only for
18764         warning options.
18765
18766 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18767
18768         PR target/35453
18769         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
18770         (_SIDD_XXX): This.
18771
18772 2008-03-04  Rafael Espindola  <espindola@google.com>
18773
18774         * fold-const.c (tree_unary_nonzero_warnv_p): New.
18775         (tree_binary_nonzero_warnv_p): New.
18776         (tree_single_nonzero_warnv_p): New.
18777         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
18778
18779 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
18780
18781         PR middle-end/35456
18782         * fold-const.c (fold_cond_expr_with_comparison): Prevent
18783         transformations for modes that have signed zeros.
18784         * ifcvt.c (noce_try_abs): Ditto.
18785
18786 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * config/i386/i386.c (override_options): Force
18789         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
18790
18791 2008-03-04  Jan Hubicka  <jh@suse.cz>
18792
18793         PR c++/35262
18794         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
18795         in last commit.
18796
18797 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
18798
18799         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
18800         label to probe the stack.
18801
18802 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
18803
18804         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
18805         (__gthr_win32_mutex_destroy): Declare.
18806         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
18807         __gthr_win32_mutex_destroy.
18808         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
18809
18810 2008-03-03  Jan Hubicka  <jh@suse.cz>
18811
18812         PR c++/35262
18813         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
18814         aggressive on inlining cold calls.
18815
18816 2008-03-03  Richard Guenther  <rguenther@suse.de>
18817
18818         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
18819         struct copies into the expression table.
18820         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
18821         (try_to_simplify): Likewise.
18822         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
18823         integral and pointer arguments which do not change the
18824         precision to NOP_EXPRs.
18825         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
18826         VIEW_CONVERT_EXPR case.
18827
18828 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
18829
18830         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
18831         defined in a loop at depth 0 is invariant.
18832         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
18833         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
18834         be called at loop depth 0.
18835
18836 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
18837
18838         PR driver/35420
18839         * gcc.c (process_command): Update copyright notice dates.
18840         * gcov.c (print_version): Likewise.
18841         * gcov-dump.c (print_version): Likewise.
18842         * mips-tfile.c (main): Likewise.
18843         * mips-tdump.c (main): Likewise.
18844
18845 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18846
18847         PR 24924
18848         * c-common.c (flag_permissive): Delete.
18849         (constant_expression_warnings): Check flags first.
18850         (constant_expression_error): New.
18851         * c-common.h (flag_permissive): Delete.
18852         (constant_expression_error): Declare.
18853         * flags.h (flag_permissive): Declare. Update description.
18854         * diagnostic.c (pedwarn): Update.
18855         (permerror): New.
18856         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
18857         (permissive_error_kind): New.
18858         * toplev.c (flag_permissive): Define. Update description.
18859         * toplev.h (permissive_error_kind): Declare.
18860         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
18861         (pedwarn_c90): Use pedantic_warning_kind.
18862         * c-opts.c (c_common_post_options): flag_permissive does not affect
18863         flag_pedantic_errors.
18864
18865 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
18866
18867         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
18868         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
18869         __absvsi2, __absvDI2): Use unsigned arithmetic.
18870
18871 2008-03-02  Andi Kleen  <ak@suse.de>
18872             Richard Guenther  <rguenther@suse.de>
18873
18874         * struct-equiv.c: Remove file.
18875         * cfg_cleanup.c (condjump_equiv_p): Remove.
18876         * Makefile.in (OBJS-common): Remove struct-equiv.o.
18877         (struct-equiv.o): Remove rule.
18878         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
18879         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
18880         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
18881
18882 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18883
18884         * ifcvt.c (noce_process_if_block): Try to handle only the then
18885         block if the else block exists but isn't suitable.
18886
18887 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
18888
18889         PR gcc/35063
18890         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
18891         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
18892         regression from previous patch.
18893
18894 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
18895
18896         PR gcc/35063
18897         * gthr.h: Add __gthread_mutex_destroy as a function that must be
18898         implemented.
18899         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
18900         * gthr-single.h (__gthread_mutex_destroy): Likewise.
18901         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
18902         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
18903         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
18904         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
18905         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
18906         (__gthread_mutex_destroy_function): Rename to
18907         __gthread_mutex_destroy.
18908         * gthr-dce.h (__gthread_mutex_destroy): Call
18909         pthread_mutex_destroy.
18910         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
18911         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
18912         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
18913
18914 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18915
18916         * df-scan.c (df_ref_chain_change_bb): Simplify.
18917         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
18918         set_block_for_insn if there's any change.
18919         * df.h ((df_insn_change_bb): Fix prototype.
18920         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
18921         df_insn_change_bb, don't call set_block_for_insn.
18922         * emit-rtl.c (reorder_insns): Likewise.
18923         * haifa-sched.c (move_insn): Likewise.
18924
18925 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18926
18927         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
18928
18929 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18930
18931         * tree-flow-inline.h (next_readonly_imm_use): Return
18932         NULL_USE_OPERAND_P after the end.
18933
18934 2008-03-01  Richard Guenther  <rguenther@suse.de>
18935
18936         PR tree-optimization/35411
18937         * tree-sra.c (sra_build_assignment): Split conversion to
18938         final type to a separate statement if we are not assigning
18939         to a register.
18940
18941 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18942
18943         * fold-const.c (fold_convertible_p): Correct the logic to follow
18944         that in fold_convert().
18945
18946 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
18947
18948         PR c++/35315
18949         * tree-inline.c (build_duplicate_type): When we make a
18950         duplicate type, make it unique in the canonical types system.
18951
18952 2008-02-29  Tom Tromey  <tromey@redhat.com>
18953
18954         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
18955         input_file_stack_history, input_file_stack_restored): Remove.
18956         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18957         * input.h (struct file_stack): Remove.
18958         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18959         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
18960         Likewise.
18961         * diagnostic.h (struct diagnostic_context) <last_module>: Change
18962         type.
18963         (diagnostic_last_module_changed): Add 'map' argument.
18964         (diagnostic_set_last_function): Likewise.
18965         * diagnostic.c (undiagnostic_report_current_module): Iterate using
18966         line map, not input_file_stack.
18967         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
18968
18969 2008-02-29  Paul Brook  <paul@codesourcery.com>
18970
18971         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
18972
18973 2008-02-29  Paul Brook  <paul@codesourcery.com>
18974
18975         * config/arm/ieee754-df.S (muldf3): Use RET macros.
18976
18977 2008-02-29  Richard Guenther  <rguenther@suse.de>
18978
18979         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
18980         vn_lookup_or_add.
18981         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
18982         value for comparing for a store match.
18983         (simplify_unary_expression): Do nothing for SSA_NAMEs.
18984         (try_to_simplify): Do not do a full-blown reference lookup.
18985
18986 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18987
18988         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
18989         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
18990
18991         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
18992
18993 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
18994
18995         * tree-loop-linear.c (try_interchange_loops): Compare memory access
18996         strides against cache sizes.
18997
18998 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18999
19000         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19001         constant to fpul.
19002
19003 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19004
19005         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19006         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19007         is smaller than the original promoted value.
19008         (simplify_subreg): If OP is a SUBREG, try to preserve its
19009         SUBREG_PROMOTED_VAR_P information.
19010
19011 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19012
19013         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19014         (VN_INFO_GET): Allocate new objects on the obstack.
19015         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19016         for rpo_numbers_temp, for consistency.
19017         (free_scc_vn): Free the obstack.
19018
19019 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19020
19021         * doc/invoke.texi: Document -ftree-loop-distribution.
19022         * tree-loop-distribution.c: New.
19023         * tree-pass.h (pass_loop_distribution): New.
19024         * graphds.h (struct graph): Add htab_t indices.
19025         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19026         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19027         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19028         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19029         * tree-data-ref.c (debug_data_dependence_relations): New.
19030         (dump_data_dependence_relation): Also print data references.
19031         (free_data_ref): Extern.
19032         (same_access_functions): Moved...
19033         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19034         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19035         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19036         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19037         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19038         (stmts_from_loop): Skip LABEL_EXPR.
19039         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19040         New.
19041         (build_rdg): Initialize rdg->indices htab.
19042         (free_rdg, stores_from_loop, ref_base_address,
19043         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19044         have_similar_memory_accesses_1, ref_base_address_1,
19045         remove_similar_memory_refs): New.
19046         * tree-data-ref.h: Depend on tree-chrec.h.
19047         (debug_data_dependence_relations, free_data_ref): Declared.
19048         (same_access_functions): ... here.
19049         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19050         New.
19051         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19052         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19053         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19054         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19055         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19056         rdg_vertex_for_stmt): Declared.
19057         (struct rdg_edge): Add level.
19058         (RDGE_LEVEL): New.
19059         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19060         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19061         Declared.
19062         (rdg_has_similar_memory_accesses): New.
19063         * tree-vect-analyze.c: Remove unused static decls.
19064         * lambda.h (dependence_level): New.
19065         * common.opt (ftree-loop-distribution): New.
19066         * tree-flow.h (mark_virtual_ops_in_bb,
19067         slpeel_tree_duplicate_loop_to_edge_cfg,
19068         rename_variables_in_loop): Declared.
19069         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19070         (OBJS-common): Add tree-loop-distribution.o.
19071         (tree-loop-distribution.o): New rule.
19072         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19073         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19074         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19075
19076 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19077
19078         PR target/33963
19079         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19080         other than structures and unions.
19081
19082 2008-02-28  Richard Guenther  <rguenther@suse.de>
19083
19084         Revert:
19085         2008-02-26  Richard Guenther  <rguenther@suse.de>
19086
19087         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19088         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19089         (lookup_decl_from_uid): Declare.
19090         (remove_decl_from_map): Likewise.
19091         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19092         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19093         (decl_for_uid_map): New global hashtable mapping DECL_UID
19094         to the decl tree.
19095         (init_ttree): Allocate it.
19096         (insert_decl_to_uid_decl_map): New helper function.
19097         (make_node_stat): Insert new decls into the map.
19098         (copy_node_stat): Likewise.
19099         (lookup_decl_from_uid): New function.
19100         (remove_decl_from_map): Likewise.
19101         (print_decl_for_uid_map_statistics): New helper.
19102         (dump_tree_statistics): Call it.
19103
19104         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19105         (referenced_var_iterator): Adjust.
19106         (FOR_EACH_REFERENCED_VAR): Adjust.
19107         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19108         (num_referenced_vars): Adjust.
19109         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19110         (first_referenced_var): Remove.
19111         (end_referenced_vars_p): Likewise.
19112         (next_referenced_var): Likewise.
19113         (referenced_var_iterator_set): New helper function.
19114         * tree-dfa.c (referenced_var_lookup): Adjust.
19115         (referenced_var_check_and_insert): Likewise.
19116         (remove_referenced_var): Likewise.
19117         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19118         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19119         (verify_call_clobbering): Likewise.
19120         (verify_memory_partitions): Likewise.
19121         (init_tree_ssa): Allocate bitmap instead of hashtable for
19122         referenced_vars.
19123         (delete_tree_ssa): Adjust.
19124         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19125         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19126         (compute_tag_properties): Likewise.
19127         (set_initial_properties): Likewise.
19128         (find_partition_for): Likewise.
19129         (update_reference_counts): Likewise.
19130         (dump_may_aliases_for): Likewise.
19131         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19132         (add_call_clobber_ops): Likewise.
19133         (add_call_read_ops): Likewise.
19134         (get_asm_expr_operands): Likewise.
19135         * tree-into-ssa.c (dump_decl_set): Likewise.
19136         (update_ssa): Likewise.
19137         * tree-sra.c (scan_function): Likewise.
19138         (decide_instantiations): Likewise.
19139         (scalarize_parms): Likewise.
19140         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19141         (dsa_named_for): Likewise.
19142         * tree-ssa-structalias.c (update_alias_info): Likewise.
19143         (merge_smts_into): Likewise.
19144
19145 2008-02-27  David Daney  <ddaney@avtrex.com>
19146
19147         PR target/34409
19148         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19149         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19150         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19151         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19152         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19153
19154 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
19155
19156         PR target/25477
19157         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19158         (BUILT_IN_NEXTTOWARD): Remove.
19159         (BUILT_IN_NEXTTOWARDF): Ditto.
19160         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19161         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
19162
19163 2008-02-27  Tom Tromey  <tromey@redhat.com>
19164
19165         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19166         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19167
19168 2008-02-27  Jan Beulich  <jbeulich@novell.com>
19169
19170         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19171         update the respective field on newdecl.
19172
19173 2008-02-27  Revital Eres  <eres@il.ibm.com>
19174
19175         PR rtl-optimization/34999
19176         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19177         crossing edges that ends with a call insn.
19178         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19179         call insn and clear the EDGE_CROSSING flag of the crossing edge
19180         when fixing fallthru edges.
19181
19182 2008-02-27  Richard Guenther  <rguenther@suse.de>
19183
19184         PR middle-end/35390
19185         * fold-const.c (fold_unary): Return the correct argument,
19186         converted to the result type.
19187
19188 2008-02-27  Richard Guenther  <rguenther@suse.de>
19189
19190         PR middle-end/34971
19191         * expr.c (expand_expr_real_1): Assert on rotates that operate
19192         on partial modes.
19193         * fold-const.c (fold_binary): Use the types precision, not the
19194         bitsize of the mode if folding rotate expressions.  Build rotates
19195         only for full modes.
19196
19197 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
19198
19199         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19200         and CPP_PRAGMA_EOL.
19201         * c-pragma.c (pragma_ns_name): New typedef.
19202         (registered_pp_pragmas): New variable.
19203         (c_pp_lookup_pragma): New function.
19204         (c_register_pragma_1): If flag_preprocess_only, do nothing
19205         for non-expanded pragmas, for expanded ones push pragma's
19206         namespace and name into registered_pp_pragmas vector.
19207         (c_invoke_pragma_handler): Register OpenMP pragmas even when
19208         flag_preprocess_only, don't register GCC pch_preprocess
19209         pragma if flag_preprocess_only.
19210         * c-opts.c (c_common_init): Call init_pragma even if
19211         flag_preprocess_only.
19212         * c-pragma.c (c_pp_lookup_pragma): New prototype.
19213         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19214         cpp_register_pragma if flag_preprocess_only.
19215
19216 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19217
19218         PR c/28800
19219         * c-parser.c (c_parser_translation_unit): Warn for empty
19220         translation unit, not empty source file.
19221
19222 2008-02-26  Paul Brook  <paul@codesourcery.com>
19223
19224         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19225         operand for Thumb-2.
19226         * config/arm/arm.h (reg_class): Add CORE_REGS.
19227         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19228         (BASE_REG_CLASS): Use CORE_REGS.
19229         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19230         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19231         (REGNO_OK_FOR_INDEX_P): Exclude SP.
19232         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
19233         ARM_REGNO_OK_FOR_INDEX_P.
19234         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19235         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19236         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19237         (ldm/stm peepholes): Ditto.
19238         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19239         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19240         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19241         * config/arm/constraints.md: Enable "k" constraint on ARM.
19242
19243 2008-02-27  Ben Elliston  <bje@au.ibm.com>
19244
19245         * config/rs6000/rs6000.c: Annotate cache line size field in all
19246         instances of struct processor_costs.
19247
19248 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
19249
19250         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19251         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19252         jump_bypass): New counters.
19253         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19254         * dce.c (gate_ud_dce): Same.
19255         (gate_fast_dce): Same.
19256         * dse.c (gate_dse1): New function.
19257         (gate_dse2): New function.
19258         (gate_dse): Merge results of new gate functions.
19259         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19260         (gate_handle_jump_bypass): Add dbg_cnt.
19261         (gate_handle_gcse): Add dbg_cnt.
19262         * ifcvt.c (gate_handle_if_conversion): Same.
19263         (gate_handle_if_after_combine): Same.
19264         (gate_handle_if_after_reload): Same.
19265         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19266
19267 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
19268
19269         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19270         line sizes.
19271         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19272
19273 2008-02-26  Jason Merrill  <jason@redhat.com>
19274
19275         PR c++/35315
19276         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19277         alone if it's the naming decl for the type's main variant.
19278
19279 2008-02-26  Tom Tromey  <tromey@redhat.com>
19280
19281         * system.h (USE_MAPPED_LOCATION): Poison.
19282         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19283         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19284         (make_goto_expr_edges): Likewise.
19285         (remove_bb): Likewise.
19286         (execute_warn_function_return): Likewise.
19287         * basic-block.h (struct edge_def) <goto_locus>: Change type to
19288         location_t.
19289         * c-common.c (fname_decl): Remove old location code.
19290         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19291         location code.
19292         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19293         variant.
19294         (ASM_INPUT_SOURCE_LOCATION): Likewise.
19295         (gen_rtx_ASM_INPUT): Likewise.
19296         (gen_rtx_ASM_INPUT_loc): Likewise.
19297         (get_rtx_asm_OPERANDS): Remove.
19298         * cfglayout.c (insn_locators_alloc): Remove old location code.
19299         (set_curr_insn_source_location): Likewise.
19300         (curr_insn_locator): Likewise.
19301         * print-tree.c (print_node): Remove old location code.
19302         * tree-mudflap.c (mf_varname_tree): Remove old location code.
19303         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19304         * cfgexpand.c (expand_gimple_cond_expr): Don't use
19305         location_from_locus.
19306         (construct_exit_block): Remove old location code.
19307         * emit-rtl.c (force_next_line_note): Remove old location code.
19308         * profile.c (branch_prob): Remove old location code.
19309         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19310         LOC_LINE): Remove old-location variants.
19311         * langhooks.c (lhd_print_error_function): Remove old location
19312         code.
19313         * configure, config.in: Rebuilt.
19314         * configure.ac (--enable-mapped-location): Remove.
19315         * c-decl.c (c_init_decl_processing): Remove old location code.
19316         (finish_function): Likewise.
19317         * recog.c (decode_asm_operands): Remove old location code.
19318         * c-pch.c (c_common_read_pch): Remove old location code.
19319         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19320         variants.
19321         * gimple-low.c (lower_function_body): Remove old location code.
19322         * toplev.c (unknown_location): Remove.
19323         (push_srcloc): Remove old-location variant.
19324         (process_options): Remove old location code.
19325         (lang_dependent_init): Likewise.
19326         * input.h (UNKNOWN_LOCATION): Move definition.
19327         (location_t): Undeprecate.
19328         (source_locus): Remove.
19329         (location_from_locus): Remove.
19330         (struct location_s): Remove.
19331         Remove all old-location code.
19332         (input_line, input_filename): Remove.
19333         * final.c (final_scan_insn): Remove old location code.
19334         * diagnostic.c (diagnostic_build_prefix): Remove
19335         USE_MAPPED_LOCATION test.
19336         * tree.h (gimple_stmt) <locus>: Now a location_t.
19337         (tree_exp) <locus>: Likewise.
19338         (DECL_IS_BUILTIN): Remove old-location variant.
19339         (annotate_with_file_line, annotate_with_locus): Likewise.
19340         (expr_locus, set_expr_locus): Update.
19341         * tree.c (build1_stat): Remove old location code.
19342         (last_annotated_node): Remove.
19343         (annotate_with_file_line): Remove old-location variant.
19344         (annotate_with_locus): Likewise.
19345         (expr_location): Remove old location code.
19346         (set_expr_location): Likewise.
19347         (expr_has_location): Likewise.
19348         (expr_locus): Likewise.
19349         (set_expr_locus): Likewise.
19350         (expr_filename): Don't use location_from_locus.
19351         (expr_lineno): Likewise.
19352         * rtl-error.c (location_for_asm): Remove old location code.
19353         * c-lex.c (cb_line_change): Remove old location code.
19354         (fe_file_change): Likewise.
19355         (cb_def_pragma): Likewise.
19356         (c_lex_with_flags): Likewise.
19357         * gengtype.c (do_typedef): Don't special-case location types.
19358         (define_location_structures): Remove.
19359         (main): Don't call define_location_structures.
19360         * tree-pretty-print.c (dump_implicit_edges): Remove old location
19361         code.
19362
19363 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19364
19365         PR 26264
19366         * builtins.def (BUILT_IN_STDARG_START): Remove.
19367         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19368         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19369         * tree-inline.c (inline_forbidden_p_1): Likewise.
19370
19371 2008-02-26  Richard Guenther  <rguenther@suse.de>
19372
19373         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19374         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19375         (lookup_decl_from_uid): Declare.
19376         (remove_decl_from_map): Likewise.
19377         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19378         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19379         (decl_for_uid_map): New global hashtable mapping DECL_UID
19380         to the decl tree.
19381         (init_ttree): Allocate it.
19382         (insert_decl_to_uid_decl_map): New helper function.
19383         (make_node_stat): Insert new decls into the map.
19384         (copy_node_stat): Likewise.
19385         (lookup_decl_from_uid): New function.
19386         (remove_decl_from_map): Likewise.
19387         (print_decl_for_uid_map_statistics): New helper.
19388         (dump_tree_statistics): Call it.
19389
19390         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19391         (referenced_var_iterator): Adjust.
19392         (FOR_EACH_REFERENCED_VAR): Adjust.
19393         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19394         (num_referenced_vars): Adjust.
19395         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19396         (first_referenced_var): Remove.
19397         (end_referenced_vars_p): Likewise.
19398         (next_referenced_var): Likewise.
19399         (referenced_var_iterator_set): New helper function.
19400         * tree-dfa.c (referenced_var_lookup): Adjust.
19401         (referenced_var_check_and_insert): Likewise.
19402         (remove_referenced_var): Likewise.
19403         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19404         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19405         (verify_call_clobbering): Likewise.
19406         (verify_memory_partitions): Likewise.
19407         (init_tree_ssa): Allocate bitmap instead of hashtable for
19408         referenced_vars.
19409         (delete_tree_ssa): Adjust.
19410         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19411         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19412         (compute_tag_properties): Likewise.
19413         (set_initial_properties): Likewise.
19414         (find_partition_for): Likewise.
19415         (update_reference_counts): Likewise.
19416         (dump_may_aliases_for): Likewise.
19417         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19418         (add_call_clobber_ops): Likewise.
19419         (add_call_read_ops): Likewise.
19420         (get_asm_expr_operands): Likewise.
19421         * tree-into-ssa.c (dump_decl_set): Likewise.
19422         (update_ssa): Likewise.
19423         * tree-sra.c (scan_function): Likewise.
19424         (decide_instantiations): Likewise.
19425         (scalarize_parms): Likewise.
19426         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19427         (dsa_named_for): Likewise.
19428         * tree-ssa-structalias.c (update_alias_info): Likewise.
19429         (merge_smts_into): Likewise.
19430
19431 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19432
19433         PR 34351
19434         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
19435         * c-opts.c (c_common_handle_option): Wall enables
19436         Wvolatile-register-var.
19437         * common.opt: Move Wvolatile-register-var to...
19438         * c.opt: ...here.
19439
19440 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19441
19442         * common.opt (Wlarger-than=): New.
19443         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
19444         -Wlarger-than=.
19445         * opts.c (common_handle_option): Handle -Wlarger-than=.
19446         * optc-gen.awk: Likewise.
19447         * opth-gen.awk: Likewise.
19448         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
19449         * tree-optimize.c (tree_rest_of_compilation): Likewise.
19450
19451 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19452
19453         * c-common.c (match_case_to_enum_1): Add appropriate
19454         OPT_W* parameter to warning.
19455         (c_do_switch_warnings): Likewise.
19456         * c-typeck.c (warning_init): Add one more parameter following
19457         'warning' function.
19458         (push_init_level): Update call to warning_init.
19459         (pop_init_level): Likewise.
19460         (add_pending_init): Likewise.
19461         (output_init_element: Likewise.
19462
19463 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19464
19465         PR 28322
19466         * toplev.c (toplev_main): If there are warnings or error, print
19467         errors for ignored options.
19468         * opts.c (ignored_options): New static variable.
19469         (postpone_unknown_option_error): New.
19470         (print_ignored_options): New.
19471         (handle_option): Postpone errors for unknown -Wno-* options.
19472         * opts.h (print_ignored_options): Declare.
19473
19474 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19475
19476         * config/mips/mips.md (loadgp_blockage, blockage): Change type
19477         to "ghost".
19478
19479 2008-02-25  Richard Guenther  <rguenther@suse.de>
19480
19481         Revert:
19482         2008-02-25  Richard Guenther  <rguenther@suse.de>
19483
19484         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19485         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19486         (lookup_decl_from_uid): Declare.
19487         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19488         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19489         (decl_for_uid_map): New global hashtable mapping DECL_UID
19490         to the decl tree.
19491         (init_ttree): Allocate it.
19492         (insert_decl_to_uid_decl_map): New helper function.
19493         (make_node_stat): Insert new decls into the map.
19494         (copy_node_stat): Likewise.
19495         (lookup_decl_from_uid): New function.
19496         (print_decl_for_uid_map_statistics): New helper.
19497         (dump_tree_statistics): Call it.
19498
19499         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19500         (referenced_var_iterator): Adjust.
19501         (FOR_EACH_REFERENCED_VAR): Adjust.
19502         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19503         (num_referenced_vars): Adjust.
19504         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19505         (first_referenced_var): Remove.
19506         (end_referenced_vars_p): Likewise.
19507         (next_referenced_var): Likewise.
19508         (referenced_var_iterator_set): New helper function.
19509         * tree-dfa.c (referenced_var_lookup): Adjust.
19510         (referenced_var_check_and_insert): Likewise.
19511         (remove_referenced_var): Likewise.
19512         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19513         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19514         (verify_call_clobbering): Likewise.
19515         (verify_memory_partitions): Likewise.
19516         (init_tree_ssa): Allocate bitmap instead of hashtable for
19517         referenced_vars.
19518         (delete_tree_ssa): Adjust.
19519         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19520         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19521         (compute_tag_properties): Likewise.
19522         (set_initial_properties): Likewise.
19523         (find_partition_for): Likewise.
19524         (update_reference_counts): Likewise.
19525         (dump_may_aliases_for): Likewise.
19526         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19527         (add_call_clobber_ops): Likewise.
19528         (add_call_read_ops): Likewise.
19529         (get_asm_expr_operands): Likewise.
19530         * tree-into-ssa.c (dump_decl_set): Likewise.
19531         (update_ssa): Likewise.
19532         * tree-sra.c (scan_function): Likewise.
19533         (decide_instantiations): Likewise.
19534         (scalarize_parms): Likewise.
19535         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19536         (dsa_named_for): Likewise.
19537         * tree-ssa-structalias.c (update_alias_info): Likewise.
19538         (merge_smts_into): Likewise.
19539
19540 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
19541
19542         PR fortran/29549
19543         * doc/invoke.texi (-fcx-limited-range): Document new option.
19544         * toplev.c (process_options): Handle -fcx-fortran-rules.
19545         * common.opt: Add documentation for -fcx-fortran-rules.
19546
19547 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
19548
19549         PR c/35162
19550         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
19551         actual behaviour and C99.
19552
19553 2008-02-26  Ben Elliston  <bje@au.ibm.com>
19554
19555         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
19556         (ASM_CPU_POWER6_SPEC): Likewise.
19557         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
19558         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
19559         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
19560
19561 2008-02-25  Richard Guenther  <rguenther@suse.de>
19562
19563         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19564         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19565         (lookup_decl_from_uid): Declare.
19566         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19567         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19568         (decl_for_uid_map): New global hashtable mapping DECL_UID
19569         to the decl tree.
19570         (init_ttree): Allocate it.
19571         (insert_decl_to_uid_decl_map): New helper function.
19572         (make_node_stat): Insert new decls into the map.
19573         (copy_node_stat): Likewise.
19574         (lookup_decl_from_uid): New function.
19575         (print_decl_for_uid_map_statistics): New helper.
19576         (dump_tree_statistics): Call it.
19577
19578         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19579         (referenced_var_iterator): Adjust.
19580         (FOR_EACH_REFERENCED_VAR): Adjust.
19581         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19582         (num_referenced_vars): Adjust.
19583         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19584         (first_referenced_var): Remove.
19585         (end_referenced_vars_p): Likewise.
19586         (next_referenced_var): Likewise.
19587         (referenced_var_iterator_set): New helper function.
19588         * tree-dfa.c (referenced_var_lookup): Adjust.
19589         (referenced_var_check_and_insert): Likewise.
19590         (remove_referenced_var): Likewise.
19591         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19592         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19593         (verify_call_clobbering): Likewise.
19594         (verify_memory_partitions): Likewise.
19595         (init_tree_ssa): Allocate bitmap instead of hashtable for
19596         referenced_vars.
19597         (delete_tree_ssa): Adjust.
19598         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19599         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19600         (compute_tag_properties): Likewise.
19601         (set_initial_properties): Likewise.
19602         (find_partition_for): Likewise.
19603         (update_reference_counts): Likewise.
19604         (dump_may_aliases_for): Likewise.
19605         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19606         (add_call_clobber_ops): Likewise.
19607         (add_call_read_ops): Likewise.
19608         (get_asm_expr_operands): Likewise.
19609         * tree-into-ssa.c (dump_decl_set): Likewise.
19610         (update_ssa): Likewise.
19611         * tree-sra.c (scan_function): Likewise.
19612         (decide_instantiations): Likewise.
19613         (scalarize_parms): Likewise.
19614         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19615         (dsa_named_for): Likewise.
19616         * tree-ssa-structalias.c (update_alias_info): Likewise.
19617         (merge_smts_into): Likewise.
19618
19619 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
19620
19621         PR target/35258
19622         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
19623         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
19624         * alias.h (nonoverlapping_memrefs_p): Likewise.
19625
19626 2008-02-25  Jan Beulich  <jbeulich@novell.com>
19627
19628         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
19629         * config/i386/netware-libgcc.exp: Add __bswap?i2,
19630         __emultls_get_address, __emultls_register_common,
19631         __floatundi?f, and _Unwind_GetIPInfo.
19632         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
19633         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
19634         (gen_regparm_prefix): Likewise.
19635         (i386_nlm_encode_section_info): Sync with
19636         config/i386/winnt.c:i386_pe_encode_section_info().
19637         (i386_nlm_maybe_mangle_decl_assembler_name): New.
19638         i386_nlm_mangle_decl_assembler_name): New.
19639         (netware_override_options): New.
19640         * config/i386/netware.h (netware_override_options): Declare.
19641         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
19642         (i386_nlm_mangle_decl_assembler_name): Declare.
19643         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
19644
19645 2008-02-25  Ben Elliston  <bje@au.ibm.com>
19646
19647         PR other/32948
19648         * c-decl.c (grokdeclarator): Remove unused local variables
19649         `typedef_type' and `type_as_written'.
19650         * bb-reorder.c
19651         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
19652         unused local variable `has_hot_blocks'.
19653         (fix_crossing_conditional_branches): Remove unused local variable
19654         `prev_bb'.
19655
19656 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
19657
19658         PR middle-end/19984
19659         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
19660         using DEF_C99_BUILTIN.
19661         (BUILT_IN_NANF): Ditto.
19662         (BUILT_IN_NANL): Ditto.
19663
19664 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
19665             Revital Eres  <eres@il.ibm.com>
19666
19667         * modulo-sched.c (calculate_must_precede_follow): Address TODO
19668         regarding the order of two dependent insns in the same row.
19669
19670 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
19671
19672         * stor-layout.c (layout_decl): Do not bump the alignment of a
19673         bit-field to more than byte alignment if it is packed.
19674
19675 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
19676
19677         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
19678         e300c2 and e300c3.
19679
19680 2008-02-24  Diego Novillo  <dnovillo@google.com>
19681
19682         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
19683
19684         PR 33738
19685         * tree-vrp.c (vrp_evaluate_conditional): With
19686         -Wtype-limits, emit a warning when comparing against a
19687         constant outside the natural range of OP0's type.
19688         * c.opt (Wtype-limits): Move ...
19689         * common.opt (Wtype-limits): ... here.
19690
19691 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
19692
19693         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
19694         * config/rs6000/e300c2c3.md: New file.
19695         * config/rs6000/rs6000.c (processor_costs): Add new costs for
19696         e300c2 and e300c3.
19697         (rs6000_override_options): Add e300c2 and e300c3 cases to
19698         processor_target_table. Do not allow usage of Altivec or Spe
19699         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
19700         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
19701         * config/rs6000/rs6000.h (processor_type): Add
19702         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
19703         (ASM_CPU_SPEC): Add e300c2 and e300c3.
19704         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
19705         and ppce300c3. Include e300c2c3.md.
19706
19707 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
19708
19709         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
19710         instead of TARGET_STRICT_ALIGN.
19711
19712 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
19713
19714         * explow.c (memory_address): Assert that the generated address is
19715         valid.
19716
19717 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19718
19719         PR target/25477
19720         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
19721         * config/darwin-ppc-ldouble-patch.def: New file.
19722         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
19723         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
19724         SUBTARGET_INIT_BUILTINS if defined.
19725         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
19726         New functions.
19727
19728 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19729
19730         PR rtl-opt/33512
19731         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
19732         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
19733
19734 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19735
19736         PR pch/35027
19737         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
19738         file" warning condtional on -Winvalid-PCH.
19739
19740 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
19741
19742         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
19743
19744 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
19745
19746         PR target/22076
19747         PR target/34256
19748         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
19749         prevent reload from using MMX registers.
19750         (*mov<mode>_internal): Ditto.
19751         (*movv2sf_internal_rex64): Ditto.
19752         (*movv2sf_internal): Ditto.
19753
19754 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19755
19756         PR documentation/31569
19757         * doc/install.texi2html: Use makeinfo --no-number-sections.
19758
19759 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19760
19761         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
19762         ensure that we can address an entire entity > 8 bytes.  Don't
19763         generate reg+reg addressing for such data.
19764
19765 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19766
19767         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
19768         strings when optimizing for size, unless the target cares about
19769         alignment.
19770
19771 2008-02-22  Tom Tromey  <tromey@redhat.com>
19772
19773         * regclass.c (current_pass): Remove declaration.
19774
19775 2008-02-22  Anatoly Sokolov <aesok@post.ru>
19776
19777         * config/avr/libgcc.S (__RAMPZ__): Define.
19778         (__do_copy_data): Add for devices with 128KB code memory.
19779
19780 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19781
19782         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
19783         Use spe_abi.
19784         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
19785
19786 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
19787
19788         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
19789         GENNONACR_REGS.
19790
19791 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19792
19793         PR c/19999
19794         * c-typeck.c (build_binary_op): Warn about floating point
19795         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
19796
19797 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
19798
19799         PR target/34526
19800         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
19801         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
19802         add vrsave.
19803         (rs6000_override_options): Set altivec_abi as default, not override,
19804         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
19805         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
19806         is used; use new member spe_abi.
19807         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
19808         spe_abi and altivec_abi.
19809
19810 2008-02-22  Tomas Bily  <tbily@suse.cz>
19811
19812         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
19813
19814 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19815
19816         PR bootstrap/35273
19817         * config.build (build_file_translate): Set to `CMD //c' only if
19818         it works.
19819         * Makefile.in (build_file_translate): Improve comment.
19820
19821 2008-02-21  Jan Hubicka  <jh@suse.cz>
19822
19823         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
19824         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
19825         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
19826
19827 2008-02-21  Michael Matz  <matz@suse.de>
19828
19829         PR target/35264
19830         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
19831
19832 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
19833
19834         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
19835         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
19836         as insn constraint.
19837         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
19838         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
19839         SSE_VEC_FLOAT_MODE_P as insn constraint.
19840         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
19841         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
19842         sse4a_movntdf using MODEF mode iterator.
19843         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
19844         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
19845         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
19846         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
19847         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
19848         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
19849         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
19850
19851 2008-02-21  Richard Guenther  <rguenther@suse.de>
19852
19853         * tree.def (PAREN_EXPR): New tree code.
19854         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
19855         and PAREN_EXPR.
19856         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
19857         * expr.c (expand_expr_real_1): Likewise.
19858         * tree-inline.c (estimate_num_insns_1): Likewise.
19859         * tree-complex.c (expand_complex_move): Likewise.
19860         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
19861         as plain x.
19862
19863 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19864
19865         PR target/35225
19866         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
19867
19868 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19869
19870         PR target/35190
19871         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
19872
19873         * config/sh/sh.c (find_barrier): Don't go past
19874         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
19875
19876 2008-02-20  DJ Delorie  <dj@redhat.com>
19877
19878         * config/h8300/h8300.md (insv): Force source operand to be a register.
19879
19880         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
19881         as a jump, not as a plain insn.
19882
19883 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
19884
19885         * doc/invoke.texi (Warning Options): Add new option
19886         -Wframe-larger-than=.
19887         (-Wframe-larger-than): Document.
19888
19889         * flags.h (warn_frame_larger_than, frame_larger_than_size):
19890         Add declarations for new option variables.
19891
19892         * final.c (final_start_function): Check the frame size
19893         before emission and issue a Wframe-larger-than warning.
19894
19895         * opts.c (warn_frame_larger_than, frame_larger_than_size):
19896         Add definitions for new option variables.
19897         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
19898
19899         * common.opt (Wframe-larger-than=): New option.
19900
19901 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
19902
19903         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
19904         (<sse>_div<mode>3): Ditto.
19905         (<sse>_vmdiv<mode>3): Ditto.
19906         (<sse>_vmsqrt<mode>2): Ditto.
19907         (*smax<mode>3): Ditto.
19908         (sse5_frcz<mode>2): Ditto.
19909         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
19910         as insn constraint.
19911
19912 2008-02-20  Richard Guenther  <rguenther@suse.de>
19913
19914         PR middle-end/35265
19915         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
19916         be happy with INTEGRAL_TYPE_P.
19917
19918 2008-02-20  Richard Guenther  <rguenther@suse.de>
19919
19920         * fold-const.c (split_tree): Associate floatig-point expressions
19921         if flag_associative_math is set.
19922
19923 2008-02-20  Richard Guenther  <rguenther@suse.de>
19924
19925         * tree.h (fold_real_zero_addition_p): Declare.
19926         * fold-const.c (fold_real_zero_addition_p): Export.
19927         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
19928         floating-point operations with zero and one.
19929
19930 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
19931
19932         * doc/install.texi: Correct references to CFLAGS, replacing them
19933         with BOOT_CFLAGS.  Document flags used during bootstrap for
19934         target libraries.
19935
19936 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
19937
19938         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
19939         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
19940         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
19941         insn constraint.
19942         (smin<mode>3): Ditto from similar patterns.
19943         (smax<mode>3): Ditto.
19944         (*ieee_smin<mode>3): Ditto.
19945         (*ieee_smax<mode>3): Ditto.
19946         * config/i386/sse.md (sse): New mode attribute.
19947         (mov<mode>): Macroize expander from movv4sf and movv2df using
19948         SSEMODEF2P mode iterator.
19949         (<sse>_movnt<mode>): Ditto from similar patterns. Use
19950         SSE_VEC_FLOAT_MODE_P as insn constraint.
19951         (storent<mode>): Ditto.
19952         (storent<mode>): Macroize expander from storentsf and storentdf using
19953         MODEF mode iterator.
19954         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
19955         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
19956         (abs<mode>2): Ditto from similar patterns.
19957         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
19958         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
19959         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
19960         (<sse>_vmsqrt<mode>2): Ditto.
19961         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
19962         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
19963         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
19964         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
19965         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
19966         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
19967         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
19968         insn constraint.
19969         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
19970         iterator and SSE_FLOAT_MODE_P as insn constraint.
19971         (<sse>_ucomi): Ditto from similar patterns.
19972         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
19973         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
19974         SSE_VEC_FLOAT_MODE_P as insn constraint.
19975         (vcond<mode>): Ditto from similar patterns.
19976         (and<mode>3, *and<mode>3): Ditto.
19977         (<sse>_nand<mode>3): Ditto.
19978         (ior<mode>3, *ior<mode>3): Ditto.
19979         (xor<mode>3, *xor<mode>3): Ditto.
19980         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
19981         iterator and SSE_FLOAT_MODE_P as insn constraint.
19982         (*nand<mode>3): Ditto from similar patterns.
19983         (*ior<mode>3): Ditto.
19984         (*xor<mode>3): Ditto.
19985
19986 2008-02-20  Ira Rosen  <irar@il.ibm.com>
19987
19988         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
19989         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
19990         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
19991
19992 2008-02-19  Jan Hubicka  <jh@suse.cz>
19993
19994         * predict.c (tree_bb_level_predictions): Remove variable next
19995         mistakely introduced by previous commit.
19996
19997 2008-02-19  Jan Hubicka  <jh@suse.cz>
19998
19999         * predict.c (predict_paths_leading_to): Rewrite.
20000         (predict_paths_for_bb): New.
20001         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20002
20003 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20004
20005         PR bootstrap/35218
20006         * Makefile.in (build_file_translate): New.
20007         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20008         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20009         * configure.ac (build_file_translate): Substitute it.
20010         * configure: Regenerate.
20011
20012 2008-02-19  Jan Hubicka  <jh@suse.cz>
20013
20014         PR rtl-optimization/34408
20015         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20016         invalid sharing.
20017
20018 2008-02-19  Jan Hubicka  <jh@suse.cz>
20019
20020         PR middle-end/28779
20021         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20022         call_expr.
20023
20024 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20025
20026         PR Ada/35186
20027         * config/i386/i386-modes.def: Revert the last DI alignment
20028         change until Ada people can look into it.
20029
20030 2008-02-19  Nick Clifton  <nickc@redhat.com>
20031
20032         * opts.c (print_specific_help): Fix typo in --help text.
20033
20034 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20035
20036         PR target/35239
20037         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20038         32-bit inline asm without asm alternatives for host GCC < 3.0.
20039
20040 2008-02-19  Richard Guenther  <rguenther@suse.de>
20041
20042         PR tree-optimization/34989
20043         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20044         Allow propagation to INDIRECT_REF if we can simplify only.
20045
20046 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20047
20048         * c-common.c (warn_for_collisions_1): Use appropriate option when
20049         warning.
20050
20051 2008-02-19  Nick Clifton  <nickc@redhat.com>
20052
20053         PR other/31349
20054         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20055         (handle_options): Fix indentation.
20056         (print_filtered_help): If no language-specific options were
20057         displayed tell the user how to list all the options supported by
20058         the language's front-end.
20059         (print_specific_help): Fix indentation and remove duplicate line.
20060         (common_handle_option): Handle the -v option.
20061         For --help enable the display of undocumented options if the -v
20062         switch has been included on the command line.
20063         For --help= check for overlaps in the arguments between the option
20064         classes and the language names and issue a warning when they
20065         cannot be disambiguated.
20066         * c.opt (v): Pass on to the common option handler.
20067
20068 2008-02-19  Revital Eres  <eres@il.ibm.com>
20069
20070         * modulo-sched.c (sms_schedule): Change dump message when
20071         create_ddg function fails.
20072         (try_scheduling_node_in_cycle): Rename row to cycle.
20073         (print_partial_schedule): Rename CYCLE to ROW.
20074
20075 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20076             Zdenek Dvorak  <ook@ucw.cz>
20077
20078         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20079
20080 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20081
20082         PR target/33555
20083         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20084         (*x86_movdicc_0_m1_se): Ditto.
20085
20086 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20087
20088         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20089         (CMPtype): Define as __gcc_CMPtype.
20090         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20091         (CMPtype): Define as __gcc_CMPtype.
20092
20093 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
20094
20095         Support valgrind 3.3 for --enable-checking=valgrind.
20096         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20097         here.
20098         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20099         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20100         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20101         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20102         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20103         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20104         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20105         respectively.
20106         * ggc-zone.c: Similar.
20107         * ggc-page.c: Similar.
20108
20109 2008-02-19  Paul Brook  <paul@codesourcery.com>
20110
20111         PR target/35071
20112         * config/arm/ieee754-df.S: Fix do_it typo.
20113         * config/arm/ieee754-sf.S: Fix do_it typo.
20114
20115 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20116
20117         PR target/35189
20118         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20119         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20120         (OPTION_MASK_ISA_SSE_SET): Likewise.
20121         (OPTION_MASK_ISA_SSE2_SET): Likewise.
20122         (OPTION_MASK_ISA_SSE3_SET): Likewise.
20123         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20124         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20125         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20126         (OPTION_MASK_ISA_SSE4_SET): Likewise.
20127         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20128         (OPTION_MASK_ISA_SSE5_SET): Likewise.
20129         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20130         (OPTION_MASK_ISA_MMX_UNSET): Updated.
20131         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20132         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20133         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20134         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20135         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20136         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20137         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20138         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20139         (OPTION_MASK_ISA_SSE4): Removed.
20140         (ix86_handle_option): Turn on bits in ix86_isa_flags and
20141         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20142         (override_options): Don't turn on implied SSE/MMX bits in
20143         ix86_isa_flags.
20144
20145 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20146
20147         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20148         32bit host.
20149
20150 2008-02-18  Joey Ye  <joey.ye@intel.com>
20151
20152         PR middle-end/34921
20153         * tree-nested.c (insert_field_into_struct): Set type alignment
20154         to field alignment if the former is less than the latter.
20155
20156 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
20157
20158         * BASE-VER: Set to 4.4.0.
20159
20160 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20161
20162         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20163         * doc/cfg.texi: Likewise.
20164         * doc/extend.texi: Likewise.
20165         * doc/gty.texi: Likewise.
20166         * doc/invoke.texi: Likewise.
20167         * doc/loop.texi: Likewise.
20168         * doc/md.texi: Likewise.
20169         * doc/passes.texi: Likewise.
20170         * doc/rtl.texi: Likewise.
20171         * doc/sourcebuild.texi: Likewise.
20172         * doc/tm.texi: Likewise.
20173         * doc/tree-ssa.texi: Likewise.
20174
20175 2008-02-17  Richard Guenther  <rguenther@suse.de>
20176
20177         PR middle-end/35227
20178         * tree-complex.c (init_parameter_lattice_values): Handle parameters
20179         without default definition.
20180
20181 2008-02-17  Richard Guenther  <rguenther@suse.de>
20182
20183         PR tree-optimization/35231
20184         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20185         if A | B != 1.
20186
20187 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
20188
20189         Revert:
20190         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20191         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20192         libgcc_cmp_return mode.
20193
20194 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20195
20196         PR c/28368
20197         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20198
20199 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
20200
20201         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20202         multilibs.
20203
20204 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20205
20206         * doc/c-tree.texi: Use `@.' where appropriate.
20207         * doc/extend.texi: Likewise.
20208         * doc/install.texi: Likewise.
20209         * doc/invoke.texi: Likewise.
20210         * doc/loop.texi: Likewise.
20211         * doc/makefile.texi: Likewise.
20212         * doc/md.texi: Likewise.
20213         * doc/passes.texi: Likewise.
20214         * doc/standards.texi: Likewise.
20215         * doc/tm.texi: Likewise.
20216
20217 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20218
20219         PR middle-end/35196
20220         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20221         in entry_bb.
20222         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20223         rather than in entry_bb.
20224
20225 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20226
20227         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20228         libgcc_cmp_return mode.
20229
20230 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20231
20232         PR middle-end/35130
20233         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20234         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20235
20236 2008-02-15  Richard Guenther  <rguenther@suse.de>
20237             Zdenek Dvorak  <ook@ucw.cz>
20238
20239         PR tree-optimization/35164
20240         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20241         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20242         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20243         Only propagate addresses which do not have abnormal SSA_NAMEs
20244         in their operands.
20245
20246 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
20247
20248         PR target/35088
20249         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20250
20251 2008-02-15  Jan Hubicka  <jh@suse.cz>
20252
20253         PR middle-end/35149
20254         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20255
20256 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20257
20258         PR middle-end/34621
20259         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20260         when calculating alignment_pad.
20261
20262 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20263
20264         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20265         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20266         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20267         and STACK_BOUNDARY define.
20268
20269 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
20270
20271         PR preprocessor/35061
20272         * c-pragma.c (handle_pragma_pop_macro): Check that
20273         pushed_macro_table has been allocated.
20274
20275 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20276
20277         PR middle-end/35136
20278         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20279         (force_gimple_operand): Likewise.
20280         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20281         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20282         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20283         (find_interesting_uses_address): Check addressability and alignment
20284         of the base expression only after substituting bases of IVs into it.
20285
20286 2008-02-14  Michael Matz  <matz@suse.de>
20287
20288         PR target/34930
20289         * function.c (instantiate_virtual_regs_in_insn): Reload address
20290         before falling back to reloading the whole operand.
20291
20292 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
20293
20294         * config/s390/s390.c (s390_mainpool_start): Emit the pool
20295         before the first section switch note.
20296
20297 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20298
20299         * doc/bugreport.texi: Update copyright years.
20300         * doc/c-tree.texi: Likewise.
20301         * doc/cfg.texi: Likewise.
20302         * doc/cpp.texi: Likewise.
20303         * doc/cppinternals.texi: Likewise.
20304         * doc/fragments.texi: Likewise.
20305         * doc/frontends.texi: Likewise.
20306         * doc/gcc.texi: Likewise.
20307         * doc/gty.texi: Likewise.
20308         * doc/hostconfig.texi: Likewise.
20309         * doc/implement-c.texi: Likewise.
20310         * doc/libgcc.texi: Likewise.
20311         * doc/loop.texi: Likewise.
20312         * doc/makefile.texi: Likewise.
20313         * doc/options.texi: Likewise.
20314         * doc/passes.texi: Likewise.
20315         * doc/rtl.texi: Likewise.
20316         * doc/sourcebuild.texi: Likewise.
20317         * doc/standards.texi: Likewise.
20318         * doc/tree-ssa.texi: Likewise.
20319         * doc/trouble.texi: Likewise.
20320
20321         * doc/extend.texi: Use @: or add comma where appropriate.
20322         * doc/invoke.texi: Likewise.
20323         * doc/tm.texi: Likewise.
20324
20325 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
20326
20327         PR target/34393
20328         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20329         to a reg.
20330
20331 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
20332
20333         * doc/md.texi (clz, ctz): Add reference.
20334         * doc/rtl.texi (clz, ctz): Likewise.
20335
20336 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20337
20338         PR other/35148
20339         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20340         srcdir.
20341
20342 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
20343
20344         * config/s390/s390.c (struct constant_pool): New field
20345         emit_pool_after added.
20346         (s390_mainpool_start): Set the emit_pool_after flag according
20347         to the section switch notes.
20348         (s390_mainpool_finish): Consider emit_pool_after when emitting
20349         the literal pool at the end of the function.
20350         (s390_chunkify_start): Force literal pool splits at section
20351         switch notes.
20352
20353 2008-02-13  Michael Matz  <matz@suse.de>
20354
20355         PR debug/35065
20356         * var-tracking.c (clobber_variable_part): Correctly traverse the
20357         list.
20358
20359 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20360
20361         PR 29673
20362         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20363         Add -fdump-ipa-inline.
20364         * tree-dump.c (dump_files): Remove tree-inlined dump.
20365         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20366
20367 2008-02-12  Richard Guenther  <rguenther@suse.de>
20368
20369         PR tree-optimization/35171
20370         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
20371         default defs.
20372
20373 2008-02-12  Richard Guenther  <rguenther@suse.de>
20374
20375         PR middle-end/35163
20376         * fold-const.c (fold_widened_comparison): Use get_unwidened in
20377         value-preserving mode.  Disallow final truncation.
20378
20379 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
20380
20381         PR middle-end/35136
20382         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
20383         code from here to...
20384         (force_gimple_operand): ...here.
20385
20386 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
20387
20388         PR c++/35144
20389         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
20390         non-compatible pointers.
20391         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
20392         different FIELD_DECLs, try harder by comparing field offsets, sizes
20393         and types.
20394
20395         PR inline-asm/35160
20396         * function.c (match_asm_constraints_1): Don't replace the same input
20397         multiple times.
20398
20399 2008-02-12  Anatoly Sokolov <aesok@post.ru>
20400
20401         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
20402         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
20403         (expand_epilogue): Restore RAMPZ register.
20404         * config/avr/avr.md (RAMPZ_ADDR): New constant.
20405
20406 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
20407
20408         * config/i386/cygwin.asm: (__alloca): Correct calling
20409         convention and alignment.
20410         (__chkstk): Force 8 byte stack alignment.
20411
20412 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
20413             Richard Guenther  <rguenther@suse.de>
20414
20415         PR tree-optimization/33992
20416         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
20417         the zero we compare against.
20418
20419 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
20420
20421         PR libfortran/35063
20422         * gthr-win32.h (__gthread_mutex_destroy_function): New function
20423         to CloseHandle after unlocking to prevent accumulation of handle
20424         count.
20425
20426 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20427
20428         PR middle_end/34150
20429         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
20430         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
20431         and update LABEL_NUSES during and after reload.
20432
20433 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
20434
20435         PR middle-end/34627
20436         * combine.c (simplify_if_then_else): Make sure the comparison is
20437         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
20438
20439 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
20440
20441         PR bootstrap/35051
20442         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
20443         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
20444         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
20445         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
20446         * tree.h (get_type_static_bounds): Likewise.
20447
20448 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20449
20450         * doc/invoke.texi (Option Summary, C++ Dialect Options)
20451         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20452         Make -Wfoo language annotations match what the compiler outputs.
20453
20454 2008-02-08  Sa Liu  <saliu@de.ibm.com>
20455
20456         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
20457         intrinsics spu_convts, spu_convtu, spu_convtf.
20458
20459 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
20460
20461         * doc/extend.texi (Function Attributes) <noinline>: Mention
20462         asm ("") as method to keep calls.
20463
20464 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20465
20466         PR other/32754
20467         * doc/options.texi (Options): Replace references to opts.sh with
20468         optc-gen.awk.
20469         * opts-common.c: Likewise.
20470         * optc-gen.awk: Likewise.
20471
20472 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
20473
20474         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20475
20476 2008-02-07  Richard Henderson  <rth@redhat.com>
20477
20478         PR rtl-opt/33410
20479         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
20480         EXPR_LIST for the REG_EQUAL instead of a comparison with a
20481         funny mode.
20482
20483 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
20484
20485         PR tree-optimization/35085
20486         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
20487         for operand entry oe2 in addition to operand entry oe3 in order to
20488         expose more opportunities for vectorizer sum reduction.
20489
20490 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20491
20492         PR other/35107
20493         * Makefile.in (LIBS): Remove $(GMPLIBS).
20494         (cc1-dummy, cc1): Add $(GMPLIBS).
20495
20496 2008-02-06  Jan Hubicka  <jh@suse.cz>
20497
20498         PR target/23322
20499         * i386.md (moddf_integer): Do not produce partial memory stalls for
20500         targets where it hurts.
20501
20502 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
20503
20504         PR target/35083
20505         * optabs.c (expand_float): Do not check for decimal modes when
20506         expanding unsigned integer through signed conversion.
20507
20508 2008-02-06  Nick Clifton  <nickc@redhat.com>
20509
20510         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
20511         inside the clobber with a match_operand and duplicated operand
20512         number in the constraint.
20513         (ineqbranchsi): Delete redundant comment.
20514
20515 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
20516
20517         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
20518         builtin_define ("__USE_INIT_FINI__").
20519         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
20520         -msx multilibs.
20521         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
20522
20523 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20524
20525         PR documentation/30330
20526         * doc/invoke.texi (C++ Dialect Options)
20527         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20528         For each warning option -Wfoo that allows -Wno-foo, ensure both
20529         -Wfoo and -Wno-foo are listed in the option index.  Fix index
20530         entry of -Wswitch-default, index -Wnormalized= including the
20531         `=', and -Wlarger-than-@var{len} including @var{len}.
20532
20533 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
20534
20535         * config/i386/i386.md (floatunssisf2): Use
20536         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
20537         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
20538         Macroize expander using MODEF mode iterator.
20539
20540 2008-02-05  Diego Novillo  <dnovillo@google.com>
20541
20542         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
20543
20544         PR 33738
20545         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
20546
20547 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20548
20549         PR other/35070
20550         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
20551
20552 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20553
20554         PR target/35084
20555         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
20556         to indicate if a message should be generated.
20557         (init_cumulative_args): Updated.
20558         (function_value_32): Likewise.
20559
20560 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
20561
20562         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
20563
20564 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
20565
20566         PR target/35083
20567         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
20568         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
20569
20570 2008-02-04  Diego Novillo  <dnovillo@google.com>
20571
20572         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
20573
20574         PR 33738
20575         * tree-vrp.c (vrp_evaluate_conditional): With
20576         -Wtype-limits, emit a warning when comparing against a
20577         constant outside the natural range of OP0's type.
20578
20579 2008-02-04  Richard Guenther  <rguenther@suse.de>
20580
20581         PR middle-end/33631
20582         * expr.c (count_type_elements): Give for unions instead of
20583         guessing.
20584
20585 2008-02-04  Richard Guenther  <rguenther@suse.de>
20586
20587         PR middle-end/35043
20588         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
20589         to TYPE_DOMAINs base type instead of using bitsizetype here.
20590
20591 2008-02-03  Jason Merrill  <jason@redhat.com>
20592
20593         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
20594
20595 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20596
20597         PR other/29972
20598         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
20599         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
20600         (RS/6000 and PowerPC Options): Fix typos and markup.
20601         * doc/passes.texi (Tree-SSA passes): Likewise.
20602
20603 2008-02-02  Michael Matz  <matz@suse.de>
20604
20605         PR target/35045
20606         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
20607         from record_last_reg_set_info.
20608         (record_last_reg_set_info): Take an RTX argument, iterate over all
20609         constituent hardregs.
20610         (record_last_set_info, record_opr_changes): Change calls to
20611         new signature or to record_last_reg_set_info_regno.
20612
20613 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
20614
20615         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
20616
20617 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
20618
20619         PR rtl-optimization/34773
20620         * reg-notes.def (EQUAL): Mention significance of combination of
20621         REG_EQUAL and REG_RETVAL.
20622         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
20623         insn that has a REG_RETVAL.
20624
20625 2008-02-01  Roger Sayle  <roger@eyesopen.com>
20626
20627         PR bootstrap/33781
20628         * configure.ac (--enable-fixed-point): Disable unless explicitly
20629         requested on IRIX.
20630         * configure: Regenerate.
20631
20632 2008-02-01  Richard Guenther  <rguenther@suse.de>
20633
20634         PR other/35042
20635         * invoke.texi (-finline-limit): Remove no longer true parts
20636         of the documentation.  Note that there is no default value.
20637
20638 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
20639             Mark Mitchell  <mark@codesourcery.com>
20640             Ben Elliston  <bje@au.ibm.com>
20641
20642         PR c/29326
20643         * doc/extend.texi (Other Builtins): Document.
20644
20645 2008-01-31  Tom Browder <tom.browder@gmail.com>
20646
20647         * doc/c-tree.texi (Types): Fix grammar.
20648         (Expression trees): Ditto.
20649         * doc/passes.texi (Tree-SSA passes): Ditto.
20650
20651         * doc/configterms.texi (Configure Terms): Fix typo.
20652         * doc/cpp.texi (Common Predefined Macros): Ditto.
20653         * doc/md.texi (Machine Constraints): Ditto.
20654
20655         * doc/makefile.texi (Makefile): Add comma.
20656
20657 2008-01-31  Tom Browder  <tom.browder@gmail.com>
20658             Gerald Pfeifer  <gerald@pfeifer.com>
20659
20660         * doc/sourcebuild.texi (Front End): Remove references to CVS
20661         and CVSROOT/modules.
20662         (Texinfo Manuals): Replace reference to CVS by one to SVN.
20663         (Back End): Remove reference to CVS.
20664
20665 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
20666
20667         PR target/34900
20668         * config/mips/mips.c (gen_load_const_gp): New function, taking a
20669         comment from...
20670         (mips16_gp_pseudo_reg): ...here.
20671         * config/mips/mips.md (load_const_gp): Replace with...
20672         (load_const_gp_<mode>): ...this :P-based insn.
20673
20674 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20675
20676         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
20677         options. Minor fixes.
20678         (-std): Move reference to standards closer to where language
20679         standards are first mentioned.
20680
20681 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
20682
20683         PR rtl-optimization/34995
20684         * reload.c (alternative_allows_const_pool_ref): Take an rtx
20685         parameter and return a bool.  If the rtx parameter is nonnull,
20686         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
20687         (find_reloads): Update call accordingly.  Pass the new operand
20688         if it needed no address reloads, otherwise pass null.
20689
20690 2008-01-30  Richard Henderson  <rth@redhat.com>
20691
20692         PR c/34993
20693         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
20694         for unbounded arrays.
20695
20696 2008-01-30  Silvius Rus  <rus@google.com>
20697
20698         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
20699
20700 2008-01-30  Jan Hubicka  <jh@suse.cz>
20701
20702         PR target/34982
20703         * i386.c (init_cumulative_args): Use real function declaration when
20704         calling locally.
20705
20706 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
20707
20708         PR rtl-optimization/34998
20709         * global.c (build_insn_chain): Treat non-subreg_lowpart
20710         SUBREGs of pseudos as clobbering all the words covered by the
20711         SUBREG, not just all the bytes.
20712         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
20713         original df_ref rather than an extract parameter.
20714         (global_conflicts): Update call accordingly.
20715
20716 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
20717
20718         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
20719         the overflow check to make it easier to read.
20720         (__fixtfdi): Change the type of the ll member in union
20721         long_double to UDItype_x.
20722
20723 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
20724
20725         PR middle-end/34969
20726         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
20727         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
20728         * tree-inline.c (fold_marked_statements): Call
20729         cgraph_update_edges_for_call_stmt if folding a call statement.
20730         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
20731         debug_generic_stmt calls, reset it back afterwards.
20732
20733         PR c/35017
20734         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
20735         static decls.
20736         * c-typeck.c (build_external_ref): Don't pedwarn about
20737         static vars in current function's scope.
20738
20739 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
20740
20741         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
20742
20743 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
20744
20745         PR c/35002
20746         * ipa-struct-reorg.c: Fix spelling.
20747         * params.def: Ditto.
20748
20749 2008-01-29  Richard Guenther  <rguenther@suse.de>
20750
20751         PR middle-end/35006
20752         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
20753         field.
20754         * tree-inline.c (remap_type): Increment remapping_type_depth
20755         around remapping types.
20756         (copy_body_r): Only add referenced variables if they are referenced
20757         from code, not types.
20758
20759 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
20760
20761         PR c++/34055
20762         PR c++/34103
20763         PR c++/34219
20764         PR c++/34606
20765         PR c++/34753
20766         PR c++/34754
20767         PR c++/34755
20768         PR c++/34919
20769         PR c++/34961
20770         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
20771         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
20772
20773 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
20774
20775         PR target/34412
20776         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
20777         pointer for tiny stack.
20778
20779 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
20780
20781         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
20782
20783 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
20784
20785         * config/vx-common.h: Fix typo in comment.
20786
20787 2008-01-28  Ian Lance Taylor  <iant@google.com>
20788
20789         PR c++/34862
20790         PR c++/33407
20791         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20792         coalesce pointers if they have different DECL_NO_TBAA_P values.
20793         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
20794         between variables with different DECL_NO_TBAA_P values.
20795
20796 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
20797
20798         PR 31535
20799         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
20800         are not legitimate small data references on SPE targets.
20801
20802 2008-01-28  David Daney  <ddaney@avtrex.com>
20803
20804         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
20805
20806 2008-01-28  David Daney  <ddaney@avtrex.com>
20807
20808         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
20809
20810 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
20811
20812         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
20813         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
20814         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
20815         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
20816         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
20817         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
20818         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
20819         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
20820
20821 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20822
20823         * basic-block.h (condjump_equiv_p): Fix comment.
20824
20825 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20826
20827         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
20828         print_generic_stmt_indented): Fix comment.
20829
20830 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20831
20832         * configure.ac (__stack_chk_fail): Add detecion for availability
20833         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
20834         * configure: Regenerate.
20835
20836 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
20837
20838         PR middle-end/34688
20839         * final.c (output_addr_const): Handle TRUNCATE.
20840
20841 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
20842
20843         PR target/34711
20844         * tree-ssa-loop-ivopts.c (comp_cost): New type.
20845         (zero_cost, infinite_cost): New constants.
20846         (struct cost_pair): Change type of cost to comp_cost.
20847         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
20848         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
20849         New functions.
20850         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
20851         split_address_cost, ptr_difference_cost, difference_cost,
20852         get_computation_cost_at, get_computation_cost,
20853         determine_use_iv_cost_generic, determine_use_iv_cost_address,
20854         determine_use_iv_cost_condition, determine_use_iv_costs,
20855         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
20856         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
20857         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
20858         Change type of cost to comp_cost.
20859         (determine_iv_cost): Increase cost of non-original ivs, instead
20860         of decreasing the cost of original ones.
20861         (get_address_cost): Indicate the complexity of the addressing mode
20862         in comp_cost.
20863         (try_add_cand_for): Prefer using ivs not specific to some object.
20864         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
20865
20866 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
20867             Janis Johnson  <janis187@us.ibm.com>
20868
20869         PR target/34814
20870         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
20871         (TARGET_INSTANTIATE_DECLS): Likewise.
20872         * target.h (expand_to_rtl_hook): New target hook.
20873         (instantiate_decls): Likewise.
20874         * function.c (instantiate_decl): Make non-static.  Rename to...
20875         (instantiate_decl_rtl): ... this.
20876         (instantiate_expr): Use instantiate_decl_rtl.
20877         (instantiate_decls_1): Likewise.
20878         (instantiate_decls): Likewise.
20879         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
20880         * function.h (instantiate_decl_rtl): Add prototype.
20881         * cfgexpand.c (target.h): New include.
20882         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
20883         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
20884         (TARGET_INSTANTIATE_DECLS): Likewise.
20885         (TARGET_INITIALIZER): New target hooks added.
20886         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
20887         New prototype.
20888         * config/rs6000/rs6000.c (tree-flow.h): New include.
20889         (machine_function): Add sdmode_stack_slot field.
20890         (rs6000_alloc_sdmode_stack_slot): New function.
20891         (rs6000_instantiate_decls): Likewise.
20892         (rs6000_secondary_memory_needed_rtx): Likewise.
20893         (rs6000_check_sdmode): Likewise.
20894         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
20895         (TARGET_INSTANTIATE_DECLS): Likewise.
20896         (rs6000_hard_regno_mode_ok): Allow SDmode.
20897         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
20898         (rs6000_emit_move): Handle SDmode.
20899         (function_arg_advance): Likewise.
20900         (function_arg): Likewise.
20901         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
20902         SDmode var args for 32-bit compiles.
20903         (rs6000_secondary_reload_class): Handle SDmode.
20904         (rs6000_output_function_epilogue): Likewise.
20905         (rs6000_function_value): Simplify if statement.
20906         (rs6000_libcall_value): Likewise.
20907         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
20908         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
20909         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
20910         (movsd_hardfloat): New define_insn.
20911         (movsd_softfloat): Likewise.
20912         (movsd_store): Likewise.
20913         (movsd_load): Likewise.
20914         (extendsddd2): Likewise.
20915         (extendsdtd2): Likewise.
20916         (truncddsd2): Likewise.
20917         (movdd_hardfloat64): Fixup comment.
20918         (UNSPEC_MOVSD_LOAD): New constant.
20919         (UNSPEC_MOVSD_STORE): Likewise.
20920
20921 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
20922
20923         PR c++/34965
20924         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
20925         TRUTH_XOR_EXPR.
20926         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
20927         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
20928         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
20929         and TRUTH_XOR_EXPR.
20930
20931 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
20932
20933         PR target/34794
20934         * config.gcc: Separate AIX 5.3 from AIX 6.1.
20935         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20936         __LONGDOUBLE128 too.
20937         * config/rs6000/aix61.h: New file.
20938
20939 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
20940
20941         PR rtl-optimization/34959
20942         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
20943         popcount and parity rtxes the same mode as their operand.
20944         Truncate or extend the result to the return value's mode
20945         if necessary.
20946
20947 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
20948
20949         PR target/34981
20950         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
20951         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
20952         to GOT_VERSION_REGNUM.
20953         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
20954         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
20955         * config/mips/mips.c (mips_emit_call_insn): New function.
20956         (mips_call_tls_get_addr): Call mips_expand_call directly.
20957         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
20958         emit_call_insn.
20959         (mips16_build_call_stub): Likewise.  Return the call insn or null.
20960         (mips_expand_call): Update the call to mips16_build_call_stub
20961         accordingly and a remove redundant condition.  Assert that MIPS16
20962         stubs do not use lazy binding.  Use mips_emit_call_insn and return
20963         the call insn.
20964         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
20965         TARGET_USE_GOT.
20966         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
20967         (mips_avoid_hazard): Remove hazard_set handling.
20968         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
20969         (UNSPEC_RESTORE_GP): ...this.
20970         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
20971         (FAKE_CALL_REGNO): Rename to...
20972         (GOT_VERSION_REGNUM): ...this.
20973         (type): Add "ghost" value.  Add an associated insn reservation.
20974         (hazard_set): Remove.
20975         (exception_receiver): Rename to...
20976         (restore_gp): ...this and update the unspec identifier accordingly.
20977         (exception_receiver, nonlocal_got_receiver): New expanders.
20978         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
20979         FAKE_CALL_REGNO.  Remove hazard_set attribute.
20980         (set_got_version, update_got_version): New patterns.
20981
20982 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
20983
20984         PR target/34970
20985         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
20986
20987 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
20988
20989         PR other/31955
20990         * doc/install.texi2html: Generate gcc-vers.texi.
20991
20992 2008-01-25  DJ Delorie  <dj@redhat.com>
20993
20994         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
20995
20996 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
20997
20998         * config/c4x: Remove directory.
20999         * config.gcc (crx-*, mt-*): Mark obsolete.
21000         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21001         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21002         sh-*-rtemscoff*): Remove cases.
21003         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21004         * real.c (encode_c4x_single, decode_c4x_single,
21005         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21006         c4x_extended_format): Remove.
21007         * real.h (c4x_single_format, c4x_extended_format): Remove.
21008         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21009         on C4x.
21010         (Pragmas): Remove comment about c4x pragmas.
21011         * doc/install.texi (c4x): Remove target-specific instructions.
21012         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21013         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21014         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21015         refer to C4x source files as examples.
21016         (C4X_FLOAT_FORMAT): Remove documentation.
21017
21018 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21019
21020         * config/bfin/bfin.c (override_options): Reorder tests so that
21021         flag_pic gets enabled for -msep-data.
21022
21023 2008-01-25  Richard Guenther  <rguenther@suse.de>
21024
21025         PR middle-end/32244
21026         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21027         to its bitfield precision if required.
21028
21029 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21030
21031         PR middle-end/33880
21032         * tree-nested.c (walk_omp_for): New function.
21033         (convert_nonlocal_reference, convert_local_reference): Call
21034         walk_omp_for on OMP_FOR.
21035         (convert_call_expr): Call walk_body on OMP_FOR's
21036         OMP_FOR_PRE_INIT_BODY.
21037
21038 2008-01-25  Richard Guenther  <rguenther@suse.de>
21039
21040         PR tree-optimization/34966
21041         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21042         default defs and PHI_NODEs we have to insert after the
21043         defining statement.
21044
21045 2008-01-24  Nick Clifton  <nickc@redhat.com>
21046
21047         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21048         Provide a default definition.
21049         (LIBGCC2_UNITS_PER_WORD): Likewise.
21050
21051         * config/stormy16/stormy16.c: Include df.h for the prototype
21052         for df_regs_ever_live_p.
21053         (xstormy16_expand_builtin_va_start): Convert the stack offset
21054         into a component_ref and then use POINTER_PLUS_EXPR to add it
21055         to the incoming_virtual_args_rtx.
21056         (xstormy16_gimplify_va_arg_expr): Rename to
21057         xstormy16_gimplify_va_arg_expr.
21058         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21059         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21060         xstormy16_gimplify_va_arg_expr.
21061         Fix up some formatting issues.
21062
21063         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21064         Move to predicates.md.
21065         (xs_hi_general_operand): Likewise.
21066         (xs_hi_nonmemory_operand): Likewise.
21067         * config/stormy16/predicates.md:
21068         (xstormy16_carry_plus_operand): New predicate.
21069         (xs_hi_general_operand): New predicate.
21070         (xs_hi_nonmemory_operand): New predicate.
21071         * config/stormy16/stormy16-protos.h:
21072         (xstormy16_carry_plus_operand): Delete prototype.
21073         (xs_hi_general_operand): Likewise.
21074         (xs_hi_nonmemory_operand): Likewise.
21075
21076         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21077         modifiers as they are no longer needed and they can trigger
21078         reload spill failures.
21079
21080         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21081         with a match_operand in order to help reload.
21082
21083         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21084         constraint with 'e' for the 8th alternative as this version of
21085         the mov.w instruction only accepts the lower 8 registers.
21086
21087 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21088
21089         PR target/34856
21090         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21091         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21092         vector elements.
21093
21094 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21095
21096         PR middle-end/33333
21097         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21098
21099 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21100
21101         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21102         New functions.
21103         (remove_structure): Update allocations list before removing structure.
21104
21105 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21106
21107         * ipa-struct-reorg.c (is_safe_cond_expr,
21108         create_new_stmts_for_cond_expr): Use integer_zerop function,
21109         that recognize not only zero-pointer, but zero-integer too.
21110
21111 2008-01-25  Ben Elliston  <bje@au.ibm.com>
21112
21113         PR other/22232
21114         * fixproto: Escape "." in sed expression that strips leading "./".
21115
21116 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21117
21118         PR driver/34904
21119         * gcc.c (SWITCH_OK): Removed.
21120         (SWITCH_LIVE): Changed to bit.
21121         (SWITCH_FALSE): Likewise.
21122         (SWITCH_IGNORE): Likewise.
21123         (switchstr): Change live_cond to unsigned int.
21124         (process_command): Replace SWITCH_OK with 0.
21125         (do_self_spec): Likewise.
21126         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21127         (give_switch): Likewise.
21128         (used_arg): Likewise.
21129         (do_spec_1): Set the SWITCH_IGNORE bit.
21130         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21131         bits.  Set the SWITCH_LIVE bit.
21132
21133 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21134
21135         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21136
21137 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
21138
21139         PR tree-optimization/34472
21140         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21141         parameter to a "bool *" and set *DATA to false if there is
21142         an unsafe access.  Do not delete the structure here.
21143         (check_cond_exprs): Delete it here instead.
21144         (check_cond_exprs, exclude_cold_structs): Do not increase
21145         I when removing a structure.
21146
21147 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
21148
21149         PR target/34856
21150         * config/i386/i386.c (ix86_expand_vector_init): Consider only
21151         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21152
21153 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
21154
21155         PR middle-end/34934
21156         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21157         a fixed vector for stack.
21158
21159 2008-01-24  Ben Elliston  <bje@au.ibm.com>
21160
21161         PR c++/25701
21162         * doc/gcc.texi (Software development): Add a direntry for g++.
21163
21164 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
21165
21166         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21167         stale and straggling -fforce-addr comments above.
21168
21169         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21170         define.
21171         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21172         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21173
21174 2008-01-23  Michael Matz  <matz@suse.de>
21175
21176         PR debug/34895
21177         * dwarf2out.c (force_type_die): Use modified_type_die instead of
21178         gen_type_die.
21179
21180 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
21181
21182         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21183         malloc result type.
21184
21185 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21186
21187         * config/avr/avr.c (avr_current_arch): New variable.
21188         (avr_arch_types): Add 'avr31' and 'avr51' entries.
21189         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21190         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21191         (avr_override_options): Init 'avr_current_arch'.
21192         (base_arch_s): Move from here...
21193         * config/avr/avr.h (base_arch_s): ... here. Add new members
21194         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21195         'mega' to 'have_jmp_call'.
21196         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21197         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21198         macros.
21199         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21200         architectures.
21201         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21202         MULTILIB_MATCHES): Ditto.
21203
21204 2008-01-23  Richard Guenther  <rguenther@suse.de>
21205
21206         PR middle-end/31529
21207         * cgraphunit.c (cgraph_reset_node): Always mark the node
21208         not reachable if it is not queued already.
21209
21210 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
21211
21212         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21213         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21214         (cputype_selected): New static variable.
21215         (bfin_handle_option): Set it if -mcpu is used.
21216         (override_option): Select default set of workarounds if no cpu type
21217         selected on the command line.
21218         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21219
21220         From  Michael Frysinger  <michael.frysinger@analog.com>
21221         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21222         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21223
21224         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21225         for bf547, bf523, bf524, and bf526.
21226         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
21227         bf526.
21228         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21229         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21230         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21231         __ADSPBF547__ and __ADSPBF54x__ for bf547.
21232         * doc/invoke.texi (Blackfin Options): Document that
21233         -mcpu now accept bf547, bf523, bf524, and bf526.
21234
21235 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21236
21237         PR rtl-optimization/34628
21238         * combine.c (try_combine): Stop and undo after the first combination
21239         if an autoincrement side-effect on the first insn has effectively
21240         been lost.
21241
21242 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
21243
21244         PR target/34529
21245         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21246         Offset addresses are not valid for Altivec or paired float modes.
21247
21248 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
21249
21250         PR c++/34607
21251         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21252         if DECL_INITIAL (decl) is error_mark_node.
21253
21254         PR c++/34914
21255         * c-common.c (handle_vector_size_attribute): Only allow
21256         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
21257         the same way as pointer, array etc. types.
21258         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21259
21260         PR c++/34917
21261         * tree.c (build_type_attribute_qual_variant): Call
21262         build_qualified_type if attributes are equal, but quals are not.
21263
21264 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21265
21266         PR 32102
21267         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21268         * flags.h (warn_strict_aliasing): Remove.
21269         (warn_strict_overflow): Remove.
21270         * opts.c (warn_strict_aliasing): Remove.
21271         (warn_strict_overflow): Remove.
21272         * c-opts.c (c_common_handle_option): -Wall only sets
21273         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21274         (c_common_post_options): Give default values to -Wstrict-aliasing
21275         and -Wstrict-overflow if they are uninitialized.
21276         * common.opt (Wstrict-aliasing): Specify Var and Init.
21277         (Wstrict-overflow): Likewise.
21278
21279 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21280
21281         PR rtl-optimization/26854
21282         PR rtl-optimization/34400
21283         PR rtl-optimization/34884
21284         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21285         DF_RD->gen.
21286         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21287         (df_rd_bb_info.expanded_lr_out): Deleted
21288         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21289         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
21290         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21291         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21292         Removed code to allocate, initialize or free expanded_lr_out.
21293         (df_rd_bb_local_compute_process_def): Restructured to make more
21294         understandable.
21295         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21296         sets if the sets are being trimmed.
21297
21298 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
21299
21300         PR bootstrap/32287
21301         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21302         (as_vers): Likewise.
21303         * configure: Regenerated.
21304
21305 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21306
21307         PR middle-end/33092
21308         * tree-pass.h (pass_build_alias): New pass.
21309         * tree-ssa-alias.c (gate_build_alias): New.
21310         (pass_build_alias): New.
21311         * passes.c (init_optimization_passes): Add pass_build_alias after
21312         pass_create_structure_vars.
21313
21314 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
21315
21316         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21317         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21318         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21319         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21320         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21321         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21322         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21323         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21324         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21325         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21326         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21327         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21328         * config/s390/s390.md (FP_ALL): New mode iterator.
21329         (_d): New mode attribute.
21330         ("*signbit<mode>2>"): Changed mode of first operand.
21331         ("isinf<mode>2"): Changed mode of first operand.
21332         ("*TDC_insn"): Adaptation for DFP modes.
21333
21334 2008-01-22  Ben Elliston  <bje@au.ibm.com>
21335
21336         * tree.c (check_qualified_type): Improve function description.
21337
21338 2008-01-21  Jason Merrill  <jason@redhat.com>
21339
21340         PR c++/34196
21341         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21342         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21343         if it is set.
21344
21345 2008-01-21  DJ Delorie  <dj@redhat.com>
21346
21347         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21348         return zero.
21349
21350 2008-01-21  Richard Guenther  <rguenther@suse.de>
21351
21352         PR middle-end/34856
21353         * tree-cfg.c (verify_expr): Allow all invariant expressions
21354         instead of just constant class ones as reference argument.
21355         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21356         like any other constant.
21357         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21358
21359 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
21360
21361         * regmove.c (fixup_match_1): Update call crossed frequencies.
21362
21363 2008-01-21  Richard Guenther  <rguenther@suse.de>
21364
21365         PR c/34885
21366         * tree-inline.c (setup_one_parameter): Deal with mismatched
21367         types using a VIEW_CONVERT_EXPR.
21368
21369 2008-01-21  Alon Dayan  <alond@il.ibm.com>
21370             Olga Golovanevsky  <olga@il.ibm.com>
21371
21372         PR tree-optimization/34701
21373         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
21374         when the structure size is not a power of 2.
21375
21376 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21377
21378         * doc/install.texi: Add doc for --enable-checking=df.
21379
21380 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21381
21382         PR rtl-optimization/34808
21383         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
21384
21385 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21386
21387         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
21388         input.
21389
21390 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
21391
21392         PR rtl-optimization/26854
21393         PR rtl-optimization/34400
21394         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
21395         DF_RD->gen.
21396         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
21397         (df_rd_bb_info.expanded_lr_out): New.
21398         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
21399         * loop_iv.c (iv_analysis_loop_init): Ditto.
21400         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21401         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21402         Added code to allocate, initialize or free expanded_lr_out.
21403         (df_rd_bb_local_compute_process_def): Restructured to make
21404         more understandable.
21405         (df_rd_confluence_n): Add code to do nothing with fake edges and
21406         code to no apply invalidate_by_call sets if the sets are being trimmed.
21407         (df_lr_local_finalize): Renamed to df_lr_finalize.
21408         (df_live_local_finalize): Renamed to df_live_finalize.
21409
21410 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21411
21412         PR target/34831
21413         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
21414         deciding whether to use reciprocal instructions.
21415
21416 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
21417
21418         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
21419         dwarf2out_note_section_used if cold_text_section is NULL.
21420
21421 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
21422
21423         PR gcov-profile/34610
21424         * tree-cfg.c (make_edges): Mark both outgoing edges from
21425         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
21426         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
21427         from OMP_FOR and OMP_CONTINUE outgoing edges.
21428
21429         * tree-profile.c (tree_profiling): Return early if
21430         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
21431         at the end.
21432         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
21433         from cfun to child_cfun.
21434         * function.h (struct function): Add after_tree_profile bit.
21435
21436 2008-01-19 Anatoly Sokolov <aesok@post.ru>
21437
21438         * config/avr/avr.S (_exit): Disable interrupt.
21439
21440 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
21441             Steven Bosscher  <stevenb.gcc@gmail.com>
21442
21443         PR rtl-optimization/26854
21444         PR rtl-optimization/34400
21445         * df-problems.c (df_live_scratch): New scratch bitmap.
21446         (df_live_alloc): Allocate df_live_scratch when doing df_live.
21447         (df_live_reset): Clear the proper bitmaps.
21448         (df_live_bb_local_compute): Only process the artificial defs once
21449         since the order is not important.
21450         (df_live_init): Init the df_live sets only with the variables
21451         found live by df_lr.
21452         (df_live_transfer_function): Use the df_lr sets to prune the
21453         df_live sets as they are being computed.
21454         (df_live_free): Free df_live_scratch.
21455
21456 2008-01-18  Ian Lance Taylor  <iant@google.com>
21457
21458         * common.opt: Add fmerge-debug-strings.
21459         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
21460         flag_merge_debug_strings rather than flag_merge_constants.
21461         * doc/invoke.texi (Option Summary): Mention
21462         -fmerge-debug-strings.
21463         (Debugging Options): Document -fmerge-debug-strings.
21464
21465 2008-01-18  Ian Lance Taylor  <iant@google.com>
21466
21467         PR c++/33407
21468         * tree.h (DECL_IS_OPERATOR_NEW): Define.
21469         (struct tree_function_decl): Add new field operator_new_flag.
21470         * tree-inline.c (expand_call_inline): When inlining a call to
21471         operator new, force the return value to go into a variable, and
21472         set DECL_NO_TBAA_P on that variable.
21473         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21474
21475 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
21476
21477         PR debug/34484
21478         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21479         DWARF2_DEBUGGING_INFO.
21480         (dwarf2out_note_section_used): Ditto.  Add prototype.
21481         (have_multiple_function_sections, text_section_used,
21482         cold_text_section_used, *cold_text_sections): Move declarations
21483         before their uses.
21484
21485 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
21486
21487         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
21488         field and add signal_ra.
21489         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
21490         assignments to frame state pc.  Move end of stack check after
21491         MD_FALLBACK_FRAME_STATE_FOR.
21492         (uw_update_context_1): Use frame state signal_regs if set, instead
21493         of checking signal_frame flag.
21494         (uw_update_context): Use frame state signal_ra if set.
21495         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
21496         * config/xtensa/linux-unwind.h: New file.
21497
21498 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
21499
21500         * modulo-sched.c (get_sched_window): Fix comment typo.
21501
21502 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
21503
21504         PR tree-optimization/34648
21505         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
21506
21507 2008-01-17  Anatoly Sokolov <aesok@post.ru>
21508
21509         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
21510         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
21511
21512 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
21513
21514         PR rtl-optimization/34400
21515         * df-core.c (df_worklist_dataflow_overeager,
21516         df_worklist_dataflow_doublequeue): New functions.
21517         (df_worklist_dataflow): Two different worklist solvers.
21518         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
21519         New param.
21520
21521 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21522
21523         PR testsuite/34821
21524         * doc/invoke.texi: Document the dependence on pthread for fopenmp
21525         and ftree-parallelize-loops.
21526
21527 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
21528
21529         PR rtl-optimization/34826
21530         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
21531
21532 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
21533
21534         * global.c (find_reg): Mark the eh regs as used if necessary.
21535         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
21536         * ra.h (struct allocno): no_eh_reg field added.  Changed
21537         no_stack_reg type to bitfield.
21538
21539 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21540
21541         * tree.c (substitute_in_expr): Add missing 'break'.
21542
21543 2008-01-17  Richard Guenther  <rguenther@suse.de>
21544
21545         PR tree-optimization/34825
21546         * tree-ssa-math-opts.c (is_division_by): Do not recognize
21547         x / x as division to handle.
21548
21549 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21550
21551         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
21552         "-pthread" is specified.
21553         * pa-hpux11.h (LIB_SPEC): Likewise.
21554
21555 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
21556             Peter Bergner  <bergner@vnet.ibm.com>
21557
21558         PR rtl-optimization/33796
21559         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
21560
21561 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21562
21563         PR libgfortran/34699
21564         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
21565         static links.
21566         * pa-hpux10.h (LINK_SPEC): Likewise.
21567         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
21568
21569 2008-01-16  Richard Guenther  <rguenther@suse.de>
21570
21571         PR middle-end/32628
21572         * fold-const.c (fold_convert_const_int_from_int): Do not
21573         set overflow if that occured only because of a sign extension
21574         change when converting from/to a sizetype with the same
21575         precision and signedness.
21576
21577 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
21578
21579         PR debug/34249
21580         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
21581         location address to the correct place.  Update copyright year.
21582
21583 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21584
21585         * lambda-code.c (lambda_transform_legal_p): Handle the case of
21586         no dependences in the dependence_relations vector.
21587
21588 2008-01-16  Jan Hubicka  <jh@suse.cz>
21589
21590         PR rtl-optimization/31396
21591         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
21592         * cfg.c (dump_reg_info): Print it.
21593         * regs.h (struct reg_info_t): add freq_calls_crossed.
21594         (REG_FREQ_CALLS_CROSSED): New macro.
21595         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
21596         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
21597         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
21598         regmove_optimize): Update call crossed frequencies.
21599         * local-alloc.c (struct qty): Add freq_calls_crossed.
21600         (alloc_qty): Copute freq_calls_crossed.
21601         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
21602         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
21603         * ra.h (struct allocno): Add freq_calls_crossed.
21604
21605 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21606
21607         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
21608         libgomp when compiling with ftree-parallelize-loops.
21609         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
21610
21611 2008-01-16  Richard Guenther  <rguenther@suse.de>
21612
21613         PR tree-optimization/34769
21614         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
21615         * tree.c (int_cst_value): Instead make this function more
21616         permissive in what it accepts as valid input.  Document this
21617         function always sign-extends the value.
21618
21619 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
21620             Richard Guenther  <rguenther@suse.de>
21621
21622         PR c/34668
21623         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
21624         (gimple_fold_indirect_ref_rhs): ... this.
21625         (gimple_fold_indirect_ref): New function with foldings
21626         that preserve lvalueness.
21627         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
21628         * tree-flow.h (gimple_fold_indirect_ref): Declare.
21629         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
21630         to fold an INDIRECT_REF, fall back to the old use of
21631         fold_indirect_ref_1.
21632
21633 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21634
21635         * tree-data-ref.c (subscript_dependence_tester_1): Call
21636         free_conflict_function.
21637         (compute_self_dependence): Same.
21638
21639 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
21640
21641         PR debug/34249
21642         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
21643         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
21644         function global.
21645         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
21646         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
21647         for DWARF2_UNWIND_INFO targets.
21648
21649 2008-01-16  Richard Guenther  <rguenther@suse.de>
21650
21651         PR c/34768
21652         * c-typeck.c (common_pointer_type): Do not merge inconsistent
21653         type qualifiers for function types.
21654
21655 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
21656
21657         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
21658         loop_iterator li from previous commit.
21659
21660 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
21661
21662         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
21663
21664 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
21665
21666         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
21667         (parallelize_loops): Don't parallelize irreducible components.
21668
21669 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21670
21671         PR c++/24924
21672         * c-opts (c_common_post_options): Do not enable CPP
21673         flag_pedantic_errors by default.
21674
21675 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
21676
21677         PR rtl-optimization/31944
21678         * cse.c (remove_pseudo_from_table): New function.
21679         (merge_equiv_classes): Use above function to remove pseudo-registers.
21680         (invalidate): Likewise.
21681
21682 2008-01-13  Richard Guenther  <rguenther@suse.de>
21683
21684         PR middle-end/34601
21685         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
21686         instead of TYPE_MODE to deal with calls from expand_one_error_var.
21687
21688 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
21689
21690         * gcse.c (cprop_jump): Call validate_unshare_change instead of
21691         validate_change to unshare the source of the PC set.
21692
21693 2008-01-12  Jan Hubicka  <jh@suse.cz>
21694
21695         PR middle-end/32135
21696         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
21697         references above array bounds.  This might trigger bounds checks for
21698         pointers to arrays.
21699
21700 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
21701
21702         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
21703         new_replaceable_dependencies.
21704
21705 2008-01-12  Doug Kwan  <dougkwan@google.com>
21706
21707         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
21708         instead of OPT_Wreturn_type in warning due to ignored return type
21709         qualifiers.
21710         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
21711         options included in -Wextra.
21712         * c.opt: New option -Wignored_qualifiers.
21713         * doc/invoke.texi (Warning Options, -Wextra): Add new option
21714         -Wignore_qualifiers.
21715         (-Wignored-qualifiers): Document.
21716         (-Wreturn-type): Remove description of functionality now handled
21717         by -Wignored-qualifiers.
21718
21719 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
21720
21721         PR ada/33788
21722         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
21723         NOP_EXPR if it is between integral types with the same precision.
21724
21725 2008-01-12  Jan Hubicka  <jh@suse.cz>
21726
21727         PR other/28023
21728         * invoke.texi (max-inline-recursive-depth): Fix default value.
21729
21730 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
21731
21732         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
21733         correct type.
21734
21735 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
21736
21737         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
21738
21739 2008-01-11  James E. Wilson  <wilson@specifix.com>
21740
21741         PR target/26015
21742         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
21743
21744 2008-01-11  Anatoly Sokolov <aesok@post.ru>
21745
21746         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
21747         save/restore frame pointer register and don't use 'call-prologues'
21748         optimization in function with "OS_task" attribute.
21749
21750 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
21751
21752         PR middle-end/31309
21753         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
21754         when copying to memory.
21755
21756 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
21757
21758         PR rtl-optimization/30905
21759         * cfgcleanup.c: Include dce.h
21760         (crossjumps_occured): New global variable.
21761         (try_crossjump_bb): Exit loop after finding a fallthru edge.
21762         If something changed, set crossjumps_occured to true.
21763         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
21764         Don't add/remove fake edges to exit here...
21765         (cleanup_cfg): ...but do it here, when crossjumping.
21766         Run a fast DCE when successful crossjumps occured in the latest
21767         iteration of try_optimize_cfg.
21768
21769 2008-01-11  Richard Guenther  <rguenther@suse.de>
21770
21771         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
21772         (struct vn_unary_op_s): Likewise.
21773         (vn_reference_insert): Free old reference on hash collision.
21774
21775 2008-01-10  Raksit Ashok  <raksit@google.com>
21776
21777         PR rtl-optimization/27971
21778         * combine.c (find_split_point): Split PLUS expressions which are
21779         inside a MEM rtx, and whose first operand is complex.
21780
21781 2008-01-10  DJ Delorie  <dj@redhat.com>
21782
21783         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
21784         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
21785         (m32c_hard_regno_ok): Call the underlying function.
21786
21787 2008-01-10  Richard Guenther  <rguenther@suse.de>
21788
21789         PR middle-end/34683
21790         * tree-cfg.c (tree_merge_blocks): Do not go through the
21791         full-blown folding and stmt updating path if we just deal
21792         with virtual operands.
21793         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
21794         test for abnormal SSA_NAMEs.
21795
21796 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
21797
21798         PR middle-end/34641
21799         * reload.c (push_reload): Add assertions.  All constants from
21800         reg_equiv_constant should have been used for replacing the respective
21801         pseudo earlier.
21802         (find_reloads_address): Invoke find_reloads_address_part for
21803         constant taken from the reg_equiv_constant array.
21804
21805 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
21806
21807         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
21808         field (valnum) the first in the struct.  Replace bools with
21809         unit bit fields.
21810
21811 2008-01-10  Richard Guenther  <rguenther@suse.de>
21812
21813         PR tree-optimization/34651
21814         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
21815         types and ordering for masking and converting.
21816
21817 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
21818
21819         PR tree-optimization/34017
21820         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
21821         also for PHI_NODE expressions.
21822
21823 2008-01-09  Jan Hubicka  <jh@suse.cz>
21824
21825         PR tree-optimization/34708
21826         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
21827         based on number of case labels.
21828         (init_inline_once): Remove switch_cost.
21829         * tree-inline.h (eni_weights_d): Remove switch_cost.
21830
21831 2008-01-09  Richard Guenther  <rguenther@suse.de>
21832         Andrew Pinski  <andrew_pinski@playstation.sony.com>
21833
21834         PR middle-end/30132
21835         * gimplify.c (gimplify_cond_expr): Do not create an addressable
21836         temporary if an rvalue is ok or an lvalue is not required.
21837
21838 2008-01-09  Richard Guenther  <rguenther@suse.de>
21839
21840         PR middle-end/34458
21841         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
21842         adjust return type.
21843
21844 2008-01-09  Richard Guenther  <rguenther@suse.de>
21845
21846         PR middle-end/34679
21847         * tree.c (host_integerp): Check for sizetype only if the
21848         type is an integer type.
21849
21850 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
21851
21852         PR debug/26364
21853         * opts.c (decode_options): Disable inlining of functions called
21854         once if not in unit-at-a-time mode.
21855
21856 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
21857
21858         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
21859
21860 2008-01-08  Richard Guenther  <rguenther@suse.de>
21861
21862         PR middle-end/31863
21863         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
21864         out early if the result will be unused.
21865
21866 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
21867
21868         PR target/34709
21869         Revert:
21870
21871         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
21872         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21873         for TARGET_RECIP.
21874
21875 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
21876
21877         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
21878         for vectorization tuned.
21879
21880 2008-01-08  Richard Guenther  <rguenther@suse.de>
21881
21882         PR tree-optimization/34683
21883         * tree-ssa-operands.c (operand_build_cmp): Export.
21884         * tree-ssa-operands.h (operand_build_cmp): Declare.
21885         * tree-vn.c (vuses_compare): Remove.
21886         (sort_vuses): Use operand_build_cmp.
21887         (sort_vuses_heap): Likewise.
21888         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
21889         to re-use old VEC if available.  Do not sort already sorted VUSEs.
21890         (vdefs_to_vec): Do not sort already sorted VDEFs.
21891
21892 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
21893
21894         PR middle-end/34694
21895         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
21896
21897 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
21898
21899         PR target/34702
21900         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
21901         limitations of reciprocal sequences on x86 targets.
21902
21903 2008-01-08  Richard Guenther  <rguenther@suse.de>
21904
21905         PR tree-optimization/34683
21906         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
21907
21908 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
21909
21910         PR target/34622
21911         * config/darwin.c (darwin_mergeable_string_section): Don't use
21912         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
21913
21914 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
21915
21916         PR target/34682
21917         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
21918         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
21919         predicates of op0 and op1 to register_operand.
21920         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
21921         expander using X87MODEF mode iterator.  Change predicates of
21922         op0 and op1 to register_operand.
21923         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
21924         corresponding patterns and macroize using MODEF macro.  Change
21925         predicates of op0 and op1 to register_operand and remove
21926         "m" constraint. Disparage "r" alternative with "!".
21927         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
21928         macroize using X87MODEF macro.  Change predicates of op0 and op1
21929         to register_operand and remove "m" constraint.  Disparage "r"
21930         alternative with "!".
21931         (absneg splitter with memory operands): Remove.
21932         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
21933         patterns and macroize using X87MODEF mode iterator.
21934         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
21935         Change predicate of op1 to register_operand.
21936         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
21937         for memory operands.
21938
21939 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
21940
21941         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
21942
21943 2008-01-07  Richard Guenther  <rguenther@suse.de>
21944
21945         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
21946         fields.
21947
21948 2008-01-07  Richard Guenther  <rguenther@suse.de>
21949
21950         PR tree-optimization/34683
21951         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
21952         VOPs of the needed size to save memory.  Use VEC_quick_push
21953         to save compile-time.
21954         (vdefs_to_vec): Likewise.
21955
21956 2008-01-07  Sa Liu  <saliu@de.ibm.com>
21957
21958         * config/spu/spu.md (divdf3): Genetate inline code for double
21959         division.  The implementation doesn't handle INF or NAN, therefore it
21960         only applies when -ffinite-math-only is given.
21961
21962 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
21963
21964         PR libstdc++/34680
21965         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
21966         * doc/cpp.texi ([Common Predefined Macros]): Document.
21967
21968 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
21969
21970         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
21971         order to use commutative addition instead of subtraction.
21972
21973 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21974             Mircea Namolaru  <namolaru@il.ibm.com>
21975             Vladimir Yanovsky  <yanov@il.ibm.com>
21976             Revital Eres  <eres@il.ibm.com>
21977
21978         PR tree-optimization/34263
21979         * tree-outof-ssa.c (process_single_block_loop_latch,
21980         contains_tree_r): New functions.
21981         (analyze_edges_for_bb): Call process_single_block_loop_latch
21982         function to empty single-basic-block latch block if possible.
21983
21984 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
21985
21986         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21987         for TARGET_RECIP.
21988         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
21989
21990 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
21991
21992         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
21993
21994 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
21995
21996         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
21997
21998 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
21999
22000         PR tree-optimization/34618
22001         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22002         flag from T.
22003
22004 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22005
22006         PR target/34673
22007         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22008         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22009         Update copyright year.
22010
22011         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22012         Update copyright year.
22013         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22014         using NR fixup.
22015
22016 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22017
22018         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22019         edge does not point to current bb before changing need_assert.
22020
22021 2008-01-04  Richard Guenther  <rguenther@suse.de>
22022
22023         PR middle-end/34029
22024         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22025         for verifying purposes if they are is_gimple_min_invariant.
22026
22027 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22028
22029         PR tree-optimization/34448
22030         PR tree-optimization/34465
22031         * gimplify.c (gimplify_init_constructor): Add new parameter
22032         notify_temp_creation.  Use it.
22033         (gimplify_modify_expr_rhs): Take volatiles into account when
22034         optimizing constructors.
22035         Do not optimize constructors if gimplify_init_constructor will dump to
22036         memory.
22037         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22038         * gcc.c-torture/compile/pr34448.c: New.
22039
22040 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22041
22042         PR gcov-profile/34609
22043         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22044         return_slot if result is TREE_ADDRESSABLE.
22045
22046 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22047
22048         * config/mips/mips.md (sqrt_condition): Tweak comment.
22049         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22050
22051 2008-01-03  Tom Tromey  <tromey@redhat.com>
22052
22053         PR c/34457
22054         * c-common.c (c_type_hash): Handle VLAs.
22055
22056 2008-01-03  Jan Hubicka  <jh@suse.cz>
22057
22058         PR tree-optimization/31081
22059         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22060         0 when inlining and not inlining to first basic block.
22061         (remap_decl): When var is initialized to 0, don't set default_def.
22062         (expand_call_inline): Set entry_bb.
22063         * tree-inline.h (copy_body_data): Add entry_bb.
22064
22065 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22066
22067         PR c++/34619
22068         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22069         before returning.
22070
22071         PR tree-optimization/29484
22072         * tree-inline.c (inline_forbidden_p_2): New function.
22073         (inline_forbidden_p): Disallow inlining if some static var
22074         has an address of a local LABEL_DECL in its initializer.
22075         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22076         vs. inlining.
22077
22078 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22079
22080         PR tree-optimization/34635
22081         * tree-data-ref.c (add_other_self_distances): Make sure that the
22082         evolution step is constant.
22083
22084 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22085
22086         PR middle-end/34608
22087         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22088
22089 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22090
22091         * tree-sra.c (scalarize_init): Insert the generate_element_init
22092         statements after the generate_element_zero statements.
22093
22094 2008-01-02  Richard Guenther  <rguenther@suse.de>
22095
22096         PR middle-end/34093
22097         PR middle-end/31976
22098         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22099         for very large number of operands instead of ICEing.
22100
22101 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
22102
22103         PR target/34013
22104         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22105         while stack probing.
22106
22107 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
22108
22109         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22110         in C++0x mode.
22111
22112 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
22113
22114         PR libmudflap/26442
22115         * tree-mudflap.c (mx_register_decls): Guard warning by
22116         !DECL_ARTIFICIAL check.
22117
22118 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
22119
22120         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22121         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22122         sse5_perm<mode>): Fix constraints.