OSDN Git Service

d89274fbcc3b24ddfd74f3737cad1fda44c57a46
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
2
3         * config/alpha/alpha.c (va_list_skip_additions,
4         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
5         (alpha_gimplify_va_arg): Call unshare_expr on second use of
6         offset_field.
7
8         PR tree-optimization/36766
9         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
10         for already removed basic blocks.
11
12         PR target/36332
13         * real.c (real_maxval): Clear a lower bit to make real_maxval
14         match get_max_float for IBM long double format.
15
16 2008-09-02  Andreas Schwab  <schwab@suse.de>
17
18         * configure.ac: Use m4_quote to quote the expansion of m4_do.
19         * configure: Regenerate.
20
21 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
22
23         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
24         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
25         checking for a non-VOID CONSTANT_P.
26
27 2008-09-02  Jan Hubicka  <jh@suse.cz>
28
29         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
30         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
31
32 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
33
34         * expr.c (emit_group_store): Don't assert stack temp mode size.
35
36 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
37
38         PR target/37283
39         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
40         and -fno-toplevel-reorder after handle_options.
41
42 2008-09-02  Paul Brook  <paul@codesourcery.com>
43
44         * config/arm/arm.c (arm_tune_cortex_a9): Define.
45         (arm_override_options): Set arm_tune_cortex_a9.
46         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
47         (arm_issue_rate): Handle cortexa9.
48         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
49         * config/arm/arm-cores.def: Add cortex-a9.
50         * config/arm/arm-tune.md: Regenerate.
51         * config/arm/arm.md: Include cortex-a9.md.
52         (generic_sched, generic_vfp): Add cortexa9.
53         * config/arm/cortex-a9.md: New file.
54
55 2008-09-02  Richard Guenther  <rguenther@suse.de>
56
57         PR tree-optimization/37327
58         * tree-vrp.c (register_new_assert_for): Make sure to not have
59         TREE_OVERFLOW set on the bound.
60
61 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
62
63         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
64
65         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
66         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
67         spec_info->mask.
68
69 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
70
71         * gcc/config/spu/spu.md (divdf3): Removed.
72
73 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
74
75         PR tree-optimization/37095
76         * cgraph.c (cgraph_node): When creating new cgraph node after
77         assembler_name_hash has been populated, record it in the hash
78         table.
79
80 2008-09-01  Paul Brook  <paul@codesourcery.com>
81
82         * doc/invoke.texi: Document -mword-relocations.
83         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
84         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
85         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
86         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
87         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
88         (arm_emit_movpair): New function.
89         (arm_print_operand <c>): Handle sybolic addresses.
90         * config/arm/arm.h (TARGET_USE_MOVT): Define.
91         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
92         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
93         * config/arm/arm.opt: Add -mword-relocations.
94         * config/arm/arm.md (movsi): Use arm_emit_movpair.
95         (arm_movt, arm_movw): New.
96
97 2008-09-01  Paul Brook  <paul@codesourcery.com>
98
99         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
100         Allow Interworking on ARMv4 EABI based targets.
101         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
102         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
103
104 2008-09-01  Paul Brook  <paul@codesourcery.com>
105
106         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
107         optimized LT0 test.  Remove optimization for GT.
108
109 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
110
111         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
112         openmp applications.
113         * pa-hpux11.h (LIB_SPEC): Likewise.
114
115         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
116         defined.
117
118 2008-09-01  Jan Hubicka  <jh@suse.cz>
119
120         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
121         present, use only counts; when guessed use only frequencies.
122         (estimate_bb_frequencies): Use function_frequency.
123         * profile.c (compute_branch_probabilities): Exit early when
124         profile reading failed. Set profile_status.
125         (branch_prob): Do not set profile_status.
126
127 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
128
129         * tree.c (protected_set_expr_location): New.
130         * tree.h (protected_set_expr_location): New prototype.
131         * c-tree.h (build_array_ref): Add argument.
132         (parser_build_unary_op): Same.
133         * c-typeck.c (build_indirect_ref): Handle new location argument.
134         (build_array_ref): Same.
135         (parser_build_unary_op): Same.
136         * gimplify.c (gimplify_asm_expr): Set input_location before calling
137         error.
138         * c-omp.c (c_finish_omp_atomic): Pass location when calling
139         build_indirect_ref.
140         * c-common.c (finish_label_address_expr): Handle new location
141         argument.
142         * c-common.h (build_indirect_ref): Add argument.
143         (finish_label_address_expr): Same.
144         * c-parser.c (c_parser_unary_expression): Pass location to build
145         functions.
146         (c_parser_postfix_expression): Same.
147
148 2008-09-01  Paul Brook  <paul@codesourcery.com>
149
150         * config/arm/arm.md: Include cortex-r4f.md.
151         (attr fpu): Update type list.
152         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
153         fconstd, fcmps and fcmpd.
154         (attr tune_cortexr4): Define.
155         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
156         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
157         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
158         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
159         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
160         types.
161         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
162         cortex_a8_vfp_farith: Ditto.
163         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
164         * config/arm/cortex-r4.md: Use tune_cortexr4.
165         * config/arm/cortex-r4f.md: New file.
166
167 2008-09-01  Richard Guenther  <rguenther@suse.de>
168
169         PR tree-optimization/37305
170         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
171         the result of constant conversions.
172         (fold_gimple_assign): Likewise.
173
174 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
175
176         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
177         #ifdef ENABLE_CHECKING.
178
179 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
180
181         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
182         * sched-int.h (print_insn, print_pattern, print_value): Declare also
183         when !INSN_SCHEDULING.
184
185 2008-09-01  Andreas Schwab  <schwab@suse.de>
186
187         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
188
189 2008-09-01  Paul Brook  <paul@codesourcery.com>
190
191         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
192
193 2008-09-01  Jan Hubicka  <jh@suse.cz>
194
195         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
196
197         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
198         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
199         * gimplify.c (gimplify_init_constructor): Add speed operand.
200         * tree-sra.c (decide_block_copy): Likewise.
201         * tree-inline.c (estimate_move_cost): Likewise.
202         * config/alpha/alpha.h (MOVE_RATIO): Update.
203         * config/frv/frv.c (MOVE_RATIO): Update.
204         * config/spu/spu.h (MOVE_RATIO): Update.
205         * config/sparc/sparc.h (MOVE_RATIO): Update.
206         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
207         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
208         * config/cris/cris.h (MOVE_RATIO): Update.
209         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
210         * config/arm/arm.h (MOVE_RATIO): Update.
211         * config/pa/pa.md: Update uses of MOVE_RATIO
212         * config/pa/pa.h (MOVE_RATIO): Update.
213         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
214         * config/h8300/h8300.h (MOVE_RATIO): Update.
215         * config/v850/v850.h (MOVE_RATIO): Update.
216         * config/bfin/bfin.h (MOVE_RATIO): Update.
217
218 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
219         Dmitry Melnik  <dm@ispras.ru>
220         Dmitry Zhurikhin  <zhur@ispras.ru>
221         Alexander Monakov  <amonakov@ispras.ru>
222         Maxim Kuvyrkov  <maxim@codesourcery.com>
223
224         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
225         sel-sched-dump.c, sel-sched-ir.c: New files.
226         * Makefile.in (OBJS-common): Add selective scheduling object
227         files.
228         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
229         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
230         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
231         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
232         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
233         (make_forwarder_block): Update loop latch if we have redirected
234         the loop latch edge.
235         * cfgloop.c (get_loop_body_in_custom_order): New function.
236         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
237         (CP_FALLTHRU_PREHEADERS): Likewise.
238         (get_loop_body_in_custom_order): Declare.
239         * cfgloopmanip.c (has_preds_from_loop): New.
240         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
241         Assert that the preheader edge will be fall thru when it is set.
242         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
243         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
244         fsel-sched-substitution, fselective-scheduling): New flags.
245         * cse.c (hash_rtx_cb): New.
246         (hash_rtx): Use it.
247         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
248         sel_sched_insn_cnt): New counters.
249         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
250         * genattr.c (main): Output maximal_insn_latency prototype.
251         * genautomata.c (output_default_latencies): New. Factor its code from ...
252         (output_internal_insn_latency_func): ... here.
253         (output_internal_maximal_insn_latency_func): New.
254         (output_maximal_insn_latency_func): New.
255         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
256         (struct hard_reg_set_iterator): New.
257         (hard_reg_set_iter_init, hard_reg_set_iter_set,
258         hard_reg_set_iter_next): New functions.
259         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
260         * lists.c (remove_free_INSN_LIST_node,
261         remove_free_EXPR_LIST_node): New functions.
262         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
263         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
264         (loop_optimizer_finalize): Do not verify flow info after reload.
265         * recog.c (validate_replace_rtx_1): New parameter simplify.
266         Default it to true.  Update all uses.  Factor out simplifying
267         code to ...
268         (simplify_while_replacing): ... this new function.
269         (validate_replace_rtx_part,
270         validate_replace_rtx_part_nosimplify): New.
271         * recog.h (validate_replace_rtx_part,
272         validate_replace_rtx_part_nosimplify): Declare.
273         * rtl.c (rtx_equal_p_cb): New.
274         (rtx_equal_p): Use it.
275         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
276         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
277         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
278         * vecprim.h: Add a vector type for unsigned int.
279         * haifa-sched.c: Include vecprim.h and cfgloop.h.
280         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
281         ready_try, cycle_issued_insns, spec_info): Make global.
282         (readyp): Initialize.
283         (dfa_lookahead): New global variable.
284         (old_max_uid, old_last_basic_block): Remove.
285         (h_i_d): Make it a vector.
286         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
287         through HID macro.
288         (after_recovery, adding_bb_to_current_region_p):
289         New variables to handle correct insertion of the recovery code.
290         (struct ready_list): Move declaration to sched-int.h.
291         (rgn_n_insns): Removed.
292         (rtx_vec_t): Move to sched-int.h.
293         (find_insn_reg_weight): Remove.
294         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
295         (haifa_init_h_i_d, haifa_finish_h_i_d):
296         New functions to initialize / finalize haifa instruction data.
297         (extend_h_i_d, init_h_i_d): Rewrite.
298         (unlink_other_notes): Move logic to add_to_note_list.  Handle
299         selective scheduler.
300         (ready_lastpos, ready_element, ready_sort, reemit_notes,
301         find_fallthru_edge): Make global, remove static prototypes.
302         (max_issue): Make global.  Add privileged_n and state parameters.  Use
303         them.
304         (extend_global, extend_all): Removed.
305         (init_before_recovery): Add new param.  Fix the handling of the case
306         when we insert a recovery code before the EXIT which has a predecessor
307         with a fallthrough edge to it.
308         (create_recovery_block): Make global.  Rename to
309         sched_create_recovery_block.  Update.
310         (change_pattern): Rename to sched_change_pattern.  Make global.
311         (speculate_insn): Rename to sched_speculate_insn.  Make global.
312         Split haifa-specific functionality into ...
313         (haifa_change_pattern): New static function.
314         (sched_extend_bb): New static function.
315         (sched_init_bbs): New function.
316         (current_sched_info): Change type to struct haifa_sched_info.
317         (insn_cost): Adjust for selective scheduling.
318         (dep_cost_1): New function.  Move logic from ...
319         (dep_cost): ... here.
320         (dep_cost): Use dep_cost_1.
321         (contributes_to_priority_p): Use sched_deps_info instead of
322         current_sched_info.
323         (priority): Adjust to work with selective scheduling.  Process the
324         corner case when all dependencies don't contribute to priority.
325         (rank_for_schedule): Use ds_weak instead of dep_weak.
326         (advance_state): New function.  Move logic from ...
327         (advance_one_cycle): ... here.
328         (add_to_note_list, concat_note_lists): New functions.
329         (rm_other_notes): Make static.  Adjust for selective scheduling.
330         (remove_notes, restore_other_notes): New functions.
331         (move_insn): Add two arguments.  Update assert.  Don't call
332         reemit_notes.
333         (choose_ready): Remove lookahead variable, use dfa_lookahead.
334         Remove more_issue, max_points.  Move the code to initialize
335         max_lookahead_tries to max_issue.
336         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
337         ready.  Adjust use of move_insn.  Call restore_other_notes.
338         (luid): Remove.
339         (sched_init, sched_finish): Move Haifa-specific initialization/
340         finalization to ...
341         (haifa_sched_init, haifa_sched_finish): ... respectively.
342         New functions.
343         (setup_sched_dump): New function.
344         (haifa_init_only_bb): New static function.
345         (haifa_speculate_insn): New static function.
346         (try_ready): Use haifa_* instead of speculate_insn and
347         change_pattern.
348         (extend_ready, extend_all): Remove.
349         (sched_extend_ready_list, sched_finish_ready_list): New functions.
350         (create_check_block_twin, add_to_speculative_block): Use
351         haifa_insns_init instead of extend_global.  Update to use new
352         initialization functions.  Change parameter.  Factor out code from
353         create_check_block_twin to ...
354         (sched_create_recovery_edges) ... this new function.
355         (add_block): Remove.
356         (sched_scan_info): New.
357         (extend_bb): Use sched_scan_info.
358         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
359         static functions for walking through scheduling region.
360         (sched_luids): New vector variable to replace uid_to_luid.
361         (luids_extend_insn): New function.
362         (sched_max_luid): New variable.
363         (luids_init_insn): New function.
364         (sched_init_luids, sched_finish_luids): New functions.
365         (insn_luid): New debug function.
366         (sched_extend_target): New function.
367         (haifa_init_insn): New static function.
368         (sched_init_only_bb): New hook.
369         (sched_split_block): New hook.
370         (sched_split_block_1): New function.
371         (sched_create_empty_bb): New hook.
372         (sched_create_empty_bb_1): New function.
373         (common_sched_info, ready): New global variables.
374         (current_sched_info_var): Remove.
375         (move_block_after_check): Use common_sched_info.
376         (haifa_luid_for_non_insn): New static function.
377         (init_before_recovery): Use haifa_init_only_bb instead of
378         add_block.
379         (increase_insn_priority): New.
380         * modulo-sched.c: (issue_rate): Remove static declaration.
381         (sms_sched_info): Change type to haifa_sched_info.
382         (sms_sched_deps_info, sms_common_sched_info): New variables.
383         (setup_sched_infos): New.
384         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
385         Do not call regstat_free_calls_crossed.
386         (sms_print_insn): Use const_rtx.
387         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
388         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
389         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
390         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
391         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
392         current_sched_info to use it.
393         (enum reg_pending_barrier_mode): Move to sched-int.h.
394         (h_d_i_d): New variable. Initialize to NULL.
395         ({true, output, anti, spec, forward}_dependency_cache): Initialize
396         to NULL.
397         (estimate_dep_weak): Remove static declaration.
398         (sched_has_condition_p): New function.  Adjust users of
399         sched_get_condition to use it instead.
400         (conditions_mutex_p): Add arguments indicating which conditions are
401         reversed.  Use them.
402         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
403         argument to indicate whether returned condition is reversed.  Do not
404         generate new rtx when condition should be reversed; indicate it by
405         setting new argument instead.
406         (add_dependence_list_and_free): Add deps parameter.
407         Update all users.  Do not free dependence list when
408         deps context is readonly.
409         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
410         contexts.
411         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
412         (remove_from_deps): New. Use the above functions.
413         (cur_insn, can_start_lhs_rhs_p): New static variables.
414         (add_or_update_back_dep_1): Initialize present_dep_type.
415         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
416         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
417         haifa_note_dep): New functions implementing dependence hooks for
418         the Haifa scheduler.
419         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
420         note_dep): New functions.
421         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
422         functions.
423         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
424         (free_deps): Initialize deps->reg_last.
425         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
426         sched_analyze_insn): Update to use dependency hooks infrastructure
427         and readonly contexts.
428         (deps_analyze_insn): New function.  Move part of logic from ...
429         (sched_analyze): ... here.  Also move some logic to ...
430         (deps_start_bb): ... here.  New function.
431         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
432         sel_sched_p.
433         (sched_deps_init): New function.  Move code from ...
434         (init_dependency_caches): ... here.  Remove.
435         (init_deps_data_vector): New.
436         (sched_deps_finish): New function.  Move code from ...
437         (free_dependency_caches): ... here.  Remove.
438         (init_deps_global, finish_deps_global): Adjust for use with
439         selective scheduling.
440         (get_dep_weak): Move logic to ...
441         (get_dep_weak_1): New function.
442         (ds_merge): Move logic to ...
443         (ds_merge_1): New static function.
444         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
445         (ds_get_max_dep_weak): New function.
446         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
447         (n_insns): Rename to rgn_n_insns.
448         (debug_ebb_dependencies): New function.
449         (init_ready_list): Use it.
450         (begin_schedule_ready): Use sched_init_only_bb.
451         (ebb_print_insn): Indicate when an insn starts a new cycle.
452         (contributes_to_priority, compute_jump_reg_dependencies,
453         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
454         (add_block1): Remove to ebb_add_block.
455         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
456         (schedule_ebb): Initialize them.  Use remove_notes instead of
457         rm_other_notes.  Use haifa_local_init/finish.
458         (schedule_ebbs): Use haifa_sched_init/finish.
459         * sched-int.h: Include vecprim.h, remove rtl.h.
460         (struct ready_list): Delete declaration.
461         (sched_verbose_param, enum sched_pass_id_t,
462         bb_vec_t, insn_vec_t, rtx_vec_t): New.
463         (struct sched_scan_info_def): New structure.
464         (sched_scan_info, sched_scan, sched_init_bbs,
465         sched_init_luids, sched_finish_luids, sched_extend_target,
466         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
467         (struct common_sched_info_def): New.
468         (common_sched_info, haifa_common_sched_info,
469         sched_emulate_haifa_p): Declare.
470         (sel_sched_p): New.
471         (sched_luids): Declare.
472         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
473         (sched_max_luid, insn_luid): Declare.
474         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
475         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
476         print_insn, print_pattern, print_value, haifa_classify_insn,
477         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
478         setup_sched_dump, sched_init, sched_finish,
479         sel_insn_is_speculation_check): Export.
480         (struct ready_list): Move from haifa-sched.c.
481         (ready_try, ready, max_issue): Export.
482         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
483         sched_init_only_bb, sched_split_block, sched_split_block_1,
484         sched_create_empty_bb, sched_create_empty_bb_1,
485         sched_create_recovery_block, sched_create_recovery_edges): Export.
486         (enum reg_pending_barrier_mode): Export.
487         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
488         (deps_t): New.
489         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
490         print_insn field.  Move add_block and fix_recovery_cfg to
491         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
492         (struct sched_deps_info_def): ... this new structure.
493         (sched_deps_info): Declare.
494         (struct spec_info_def): Remove weakness_cutoff, add
495         data_weakness_cutoff and control_weakness_cutoff.
496         (spec_info): Declare.
497         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
498         dep_count field.
499         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
500         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
501         (current_sched_info): Change type to struct haifa_sched_info.
502         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
503         (h_d_i_d): New variable.
504         (HDID): New accessor macro.
505         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
506         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
507         and HDID.
508         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
509         (enum SCHED_FLAGS): Update for selective scheduler.
510         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
511         (init_dependency_caches, free_dependency_caches): Delete declarations.
512         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
513         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
514         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
515         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
516         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
517         ds_to_dt): Export.
518         (rm_other_notes): Delete declaration.
519         (schedule_block): Remove one argument.
520         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
521         ready_element, ready_lastpos, sched_extend_ready_list,
522         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
523         concat_note_lists): Export.
524         (struct region): Move from sched-rgn.h.
525         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
526         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
527         BLOCK_TO_BB, CONTAINING_RGN): Export.
528         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
529         (current_nr_blocks, current_blocks, target_bb): Likewise.
530         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
531         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
532         sched_rgn_local_init, extend_regions,
533         rgn_make_new_region_out_of_new_block, compute_priorities,
534         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
535         extend_rgns, deps_join rgn_setup_common_sched_info,
536         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
537         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
538         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
539         increase_insn_priority): Likewise.
540         * sched-rgn.c: Include sel-sched.h.
541         (ref_counts): New static variable.  Use it ...
542         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
543         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
544         (sched_is_disabled_for_current_region_p): Delete static declaration.
545         (struct region): Move to sched-int.h.
546         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
547         ebb_head): Define and initialize.
548         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
549         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
550         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
551         sched-int.h.
552         (find_single_block_region): Add new argument to indicate that EBB
553         regions should be constructed.
554         (debug_live): Delete declaration.
555         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
556         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
557         declaration.
558         (init_regions): Delete declaration.
559         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
560         rgn_estimate_number_of_insns): New.
561         (too_large): Use estimate_number_of_insns.
562         (haifa_find_rgns): New. Move the code from ...
563         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
564         (free_trg_info): New.
565         (compute_trg_info): Allocate candidate tables here instead of ...
566         (init_ready_list): ... here.
567         (rgn_print_insn): Use const_rtx.
568         (contributes_to_priority, extend_regions): Delete static declaration.
569         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
570         (add_block1): Rename to rgn_add_block.
571         (debug_rgn_dependencies): Delete static qualifier.
572         (new_ready): Use sched_deps_info.  Simplify.
573         (rgn_common_sched_info, rgn_const_sched_deps_info,
574         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
575         (region_sched_info): Rename to rgn_const_sched_info.
576         (deps_join): New, extracted from ...
577         (propagate_deps): ... here.
578         (compute_block_dependences, debug_dependencies): Update for selective
579         scheduling.
580         (free_rgn_deps, compute_priorities): New functions.
581         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
582         sched_rgn_compute_dependencies): New functions.
583         (schedule_region): Use them.
584         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
585         rgn_setup_common_sched_info, rgn_setup_sched_infos):
586         New functions.
587         (schedule_insns): Call new functions that were split out.
588         (rgn_make_new_region_out_of_new_block): New.
589         (get_rgn_sched_max_insns_priority): New.
590         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
591         scheduling when appropriate.
592         * sched-vis.c: Include insn-attr.h.
593         (print_value, print_pattern): Make global.
594         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
595         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
596         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
597         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
598         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
599         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
600         hooks.  Initialize them to 0.
601         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
602         * target.h (struct gcc_target): Add them.  Rename gen_check field to
603         gen_spec_check.
604         * flags.h (sel_sched_switch_set): Declare.
605         * opts.c (sel_sched_switch_set): New variable.
606         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
607         pipelining is disabled from command line.
608         (common_handle_option): Record whether selective scheduling is
609         requested from command line.
610         * doc/invoke.texi: Document new flags and parameters.
611         * doc/tm.texi: Document new target hooks.
612         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
613         (dfa_state_size): Do not declare locally.
614         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
615         * config/rs6000/rs6000.c (rs6000_init_sched_context,
616         rs6000_alloc_sched_context, rs6000_set_sched_context,
617         rs6000_free_sched_context): New functions.
618         (struct _rs6000_sched_context): New.
619         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
620         scheduling.
621         (rs6000_sched_finish): Do not run for selective scheduling.
622
623 2008-08-31  Jan Hubicka  <jh@suse.cz>
624
625         * frv.c (frv_rtx_costs): Update forward declaration.
626         * spu.c (spu_rtx_costs): Likewise.
627         * pdp11.c: Include df.h
628         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
629         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
630         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
631         * iq2000.c (iq2000_address_cost): Add speed argument.
632         (iq2000_rtx_costs): Likewise.
633         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
634         update call of mn10300_address_cost.
635         * mcore.c: Include df.h
636         (mcore_rtx_costs): Update prototype.
637         * score3.c: Include df.h
638         (score3_rtx_costs): Remove speed argument.
639         * score7.c: Include df.h
640         (score7_address_cost): Remove speed argument.
641         * score-protos.h (score_address_cost): Update prototype.
642         * score.c: Include df.h
643         (score_rtx_costs): Update call of costs functions.
644         * v850.c (v850_rtx_costs): Add bool argument.
645
646 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
647
648         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
649
650 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
651
652         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
653         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
654
655 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
656
657         * mkmap-flat.awk: Add option pe_dll.
658         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
659         * config/i386/t-cygwin (SHLIB_LC): Add.
660         * config/i386/t-mingw32 (SHLIB_LC): Add.
661         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
662         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
663         (LINK_SPEC): Support libgcc_s.
664         (LIBGCC_SPEC): Support libgcc_s.
665         (LIBGCC_SONAME): New.
666
667 2008-08-31  Jan Hubicka  <jh@suse.cz>
668
669         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
670         mistakely had old version of patch.
671
672         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
673         (ipcp_estimate_growth): New.
674         (ipcp_insert_stage): Use ipcp_estimate_growth.
675         * profile.c (branch_prob): When reading failed, do not consider
676         profile as read.
677
678 2008-08-31  Jan Hubicka  <jh@suse.cz>
679
680         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
681         loop is optimized for speed.
682
683 2008-08-31  Richard Guenther  <rguenther@suse.de>
684
685         PR middle-end/37289
686         * fold-const.c (fold_binary): Retain conversions in folding
687         ~A + 1 to -A.
688
689 2008-08-31  Jan Hubicka  <jh@suse.cz>
690
691         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
692         * predict.c (maybe_hot_frequency_p): Make inline.
693         (maybe_hot_count_p): Break out from ...
694         (maybe_hot_bb_p): ... this one.
695         (maybe_hot_edge_p): Simplify.
696         * basic-block.h (probably_cold_bb_p): Remove.
697
698 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
699
700         PR target/37168
701         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
702         prototype.
703         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
704         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
705         Also split V4SFmode.
706         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
707         vector float modes.
708
709 2008-08-31  Jan Hubicka  <jh@suse.cz>
710
711         * predict.c (PROB_VERY_LIKELY): Make small enough so things
712         become cold.
713         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
714
715 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
716
717         PR debug/37287
718         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
719         add source coords.
720
721         * dwarf2out.c (native_encode_initializer): Subtract min_index for
722         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
723
724 2008-08-31  Jan Hubicka  <jh@suse.cz>
725
726         * sparc.h (BRANCH_COST): Fix macro definition.
727         * avr.c (avr_operand_rtx_cost): Add speed argument.
728         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
729
730 2008-08-31  Richard Guenther  <rguenther@suse.de>
731
732         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
733         types instead of operands.  Re-instantiate verifying of
734         binary expression operands.
735
736 2008-08-30  Jan Hubicka  <jh@suse.cz>
737
738         * fwprop.c (should_replace_address): Add speed attribute.
739         (PR_OPTIMIZE_FOR_SPEED): New flag.
740         (propagate_rtx_1): Use it.
741         (propagate_rtx): Set it.
742         (try_fwprop_subst): Update call of rtx_costs.
743         (forward_propagate_and_simplify): LIkewise.
744         * hooks.c (hook_int_rtx_bool_0): New
745         (hook_bool_rtx_int_int_intp_false): Replace by ...
746         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
747         * hooks.h (hook_int_rtx_bool_0): New
748         (hook_bool_rtx_int_int_intp_false): Replace by ...
749         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
750         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
751         (prepare_cmp_insn): UPdate call of rtx_cost.
752         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
753         (reload_cse_simplify_operands): Update call of rtx_cost.
754         (reload_cse_move2add): call of rtx_cost.
755         * target.h (struct gcc_target): Update rtx_costs and address_costs.
756         * rtlanal.c (rtx_cost): Add speed argument.
757         (address_cost): Add speed argument
758         (default_address_cost): Likewise.
759         (insn_rtx_cost): Likewise.
760         * cfgloopanal.c (seq_cost): Add speed argument.
761         (target_reg_cost, target_spill_cost): Turn to array.
762         (init_set_costs): Update for speed.
763         (estimate_reg_pressure_cost): Add speed argument.
764         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
765         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
766         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
767         (seq_cost): Add speed argument.
768         (computation_cost): Add speed arugment.
769         (add_cost, multiply_by_const, get_address_cost): add speed argument.
770         (force_expr_to_var_cost): Update for profile info.
771         (force_var_cost): Likewise.
772         (split_address_cost): Likewise.
773         (ptr_difference_cost): Likewise.
774         (difference_cost): Likewise.
775         (get_computation_cost_at): Likewise.
776         (determine_iv_cost): Likewise.
777         (ivopts_global_cost_for_size): Likewise.
778         (rewrite_use_address): Likewise.
779         (tree_ssa_iv_optimize_loop): Initialize speed field.
780         * cse.c (optimize_this_for_speed_p): New static var.
781         (notreg_cost): Update call of rtx_cost.
782         (cse_extended_basic_block): set optimize_this_for_speed_p.
783         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
784         (noce_try_cmove_arith): Likewise.
785         (noce_try_sign_mask): LIkewise.
786         * expr.c (compress_float_constant): Update rtx_cost calls.
787         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
788         (addr_to_parts): Likewise.
789         (create_mem_ref): Likewise.
790         * dse.c (find_shift_sequence): Add speed argument.
791         (replace_read): Update call.
792         * calls.c (precompute_register_parameters): Update call of rtx_cost.
793         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
794         * neg_cost, shift_cost, shiftadd_cost,
795         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
796         mul_highpart_cost): Increase dimension.
797         (init_expmed): Initialize for both size and speed.
798         (expand_shift): Use profile.
799         (synth_mult): Use profile.
800         (choose_mult_variant): Use profile.
801         (expand_mult): Use profile.
802         (expand_mult_highpart_optab): Use profile.
803         (expand_mult_highpart): Use profile.
804         (expand_smod_pow2): Use profile.
805         (expand_divmod): Use profile.
806         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
807         * loop-invariant.c (create_new_invariant): Use profile.
808         (gain_for_invariant): Add speed parameter.
809         (best_gain_for_invariant): Likewise.
810         (find_invariants_to_move): Likewise.
811         (move_single_loop_invariants): Set it.
812         * target-def.h (TARGET_RTX_COSTS): Use hook.
813         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
814         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
815         * output.h (default_address_cost): Update prototype.
816         * combine.c (optimize_this_for_speed_p): New static var.
817         (combine_validate_cost): Update call of rtx_cost.
818         (combine_instructions): Set optimize_this_for_speed_p.
819         (expand_compound_operation): Update call of rtx_cost.
820         (make_extraction):Update call of rtx_cost.
821         (force_to_mode):Update call of rtx_cost.
822         (distribute_and_simplify_rtx):Update call of rtx_cost.
823         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
824         (estimate_reg_pressure_cost): Update prototype.
825         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
826         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
827         Remove.
828         * config/alpha/alpha.c (alpha_rtx_costs): Update.
829         (alpha_rtx_costs): Update.
830         * config/frv/frv.c (frv_rtx_costs): Update.
831         * config/s390/s390.c (s390_rtx_costs): Update.
832         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
833         (m32c_rtx_costs): Update.
834         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
835         (spu_rtx_costs): Update.
836         * config/sparc/sparc.c (sparc_rtx_costs): Update.
837         * config/m32r/m32r.c (m32r_rtx_costs): Update.
838         * config/i386/i386.c (:ix86_address_cost): Update.
839         (ix86_rtx_costs): Update.
840         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
841         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
842         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
843         * config/crx/crx.c (crx_address_cost): Update.
844         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
845         * config/stormy16/stormy16.c
846         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
847         * config/m68hc11/m68hc11.c
848         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
849         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
850         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
851         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
852         * config/ia64/ia64.c (ia64_rtx_costs): Update.
853         * config/m68k/m68k.c (m68k_rtx_costs): Update.
854         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
855         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
856         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
857         (mcore_rtx_costs): update.
858         * config/score/score3.c (score3_rtx_costs): Update.
859         * config/score/score7.c (score7_rtx_costs): Update.
860         * config/score/score3.h (score3_rtx_costs):Update.
861         * config/score/score7.h (score7_rtx_costs): Update.
862         * config/score/score.c (score_rtx_costs): Update.
863         * config/arm/arm.c (arm_address_cost): Update.
864         (arm_rtx_costs_1): Update.
865         (arm_rtx_costs_1): Update.
866         (arm_size_rtx_costs): Update.
867         (arm_size_rtx_costs): Update.
868         (arm_size_rtx_costs): Update.
869         (arm_xscale_rtx_costs): Update.
870         (arm_thumb_address_cost): Update.
871         * config/pa/pa.c (hppa_address_cost): Update.
872         * config/mips/mips.c (mips_rtx_costs): Update.
873         * config/vax/vax.c (vax_address_cost): Update.
874         * config/h8300/h8300.c (h8300_shift_costs): Update.
875         (h8300_rtx_costs): Update.
876         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
877         (v850_rtx_costs): Update.
878         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
879         * config/bfin/bfin.c
880         (bfin_address_cost): Update.
881         (bfin_rtx_costs): Update.
882         * stmt.c (lshift_cheap_p): Update.
883
884 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
885
886         PR middle-end/36444
887         * expmed.c (extract_bit_field_1): Check the mode size to make
888         sure the vector modes have the same size.
889
890 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
891
892         * dojump.c (top level): Include basic-block.h to declare
893         optimize_insn_for_speed_p
894
895         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
896
897         * opts.h (CL_SAVE): New option class for marking options that are
898         target specific options usable in the target attribute.
899         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
900
901         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
902         can easily find the target specific options that are safe to use
903         in the attribute or pragma.
904
905         * attribs.c (decl_attributes): Change #pragma GCC option to
906         #pragma GCC target, and attribute((option(...))) to
907         attribute((target(...))).
908
909         * doc/extend.texi (target attribute): Change from option
910         attribute.  Delete push/pop/reset.
911         (#pragma GCC target): Change from #pragma GCC option.  Delete
912         push/pop/reset.
913         (#pragma GCC push_options): Document new pragma.
914         (#pragma GCC pop_options): Document new pragma.
915         (#pragma GCC reset_options): Document new pragma.
916
917         * targhooks.c (default_target_option_valid_attribute_p): Add
918         warning about port not supporting target attributes.
919         (default_target_option_pragma_parse): New function, warn about
920         #pragma GCC target not being supported.
921
922         * targhooks.h (default_target_option_pragma_parse): Add
923         declaration.
924
925         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
926         TI_CURRENT_OPTION_PRAGMA.
927         (current_target_pragma): Rename from current_option_pragma.
928
929         * target.h: (struct target_option): Delete booleans for changing
930         the optimization level on hot/cold functions.  Change signature of
931         pragma_parse hook to take a second tree.
932
933         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
934
935         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
936         that the declaration is done at global scope.
937
938         * langhooks.c (add_builtin_function_common): Move most of the code
939         from add_builtin_function here, calling the hook passed in.
940         (add_builtin_function): Call add_builtin_function_common with
941         standard builtin hook.
942         (add_builtin_function_ext_scope): New function to add builtins to
943         global scope.
944
945         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
946         hook.
947         (add_builtin_function_ext_scope): Add declaration.
948
949         * c-pragma.c (handle_pragma_target): Rename from
950         handle_pragma_option, #pragma GCC option is now #pragma GCC
951         target.  Move warning about port not supporting target options to
952         default pragma parse hook.  Remove push/pop/reset from this
953         pragma.
954         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
955         (option_stack): Delete static variable.
956         (optimize_stack): Ditto.
957         (optons_stack): New stack of saved target and optimization
958         options.
959         (handle_pragma_push_options): New function to handle pushing both
960         target and optimization options.
961         (handle_pragma_pop_options): New function to handle popping both
962         target and optimization options.
963         (handle_pragma_reset_options): New function to handle resetting
964         both target and optimization options to their initial state.
965         (init_pragma): Rename handle_pragma_option to
966         handle_pragma_target.  Add support for push_options, pop_options,
967         and reset_options pragmas.
968
969         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
970         default_target_option_pragma_parse.
971         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
972         default_target_option_valid_attribute_p.
973         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
974         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
975         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
976         optimization level on hot/cold functions.
977
978         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
979         if the caller and callee have different optimization levels.
980
981         * c-common.c (handle_target_attribute): Rename from
982         handle_option_attribute, attribute((option(...))) is now
983         attribute((target(...))).  Move warning if the port does not
984         support target attributes to the default hook.
985         (handle_hot_attribute): Delete code to change the optimization
986         level of hot functions.
987         (handle_cold_attribute): Ditto.
988
989         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
990         argument that is the binary tree options to use if there are no
991         arguments.  Call ix86_valid_target_attribute_tree instead of
992         ix86_valid_option_attribute_tree.
993         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
994         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
995         ix86_pragma_option_parse.
996
997         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
998         Rename from ix86_valid_option_attribute_tree.
999
1000         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1001         new builtins when the ISA changes.
1002         (ix86_valid_target_attribute_tree): Rename from
1003         ix86_valid_option_attribute_tree.  Change callers.  If the
1004         function specified optimization options, use those as the starting
1005         point before setting up the target attributes.  If the
1006         optimization options were changed in the course of setting the
1007         target attributes, record the new optimization options.
1008         (ix86_valid_target_attribute_tree_inner_p): Rename from
1009         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
1010         ix86_add_new_builtins if the ISA changed.
1011         (ix86_valid_target_attribute_p): Rename from
1012         ix86_valid_option_attribute_p.  Change callers.
1013         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1014         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1015         as delayed builtin functions.
1016         (struct builtin_isa): New structure to record builtin functions
1017         that should be delayed until the ISA for that function is used.
1018         (ix86_builtins_isa): Change from int to struct to track builtin
1019         functions we want to declare at some point.
1020         (def_builtin): If the front end can delay defining the builtin
1021         functions, don't create builtins for ISAs not part of the default
1022         options.
1023         (def_builtin_const): Ditto.
1024         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1025         __builtin_ia32_pcmov_v2di to be different builtin functions.
1026         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1027         a structure instead of an int.
1028         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1029         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1030         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1031         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1032
1033         * config/ia64/ia64.h
1034         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1035         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1036
1037         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1038         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1039         (LANG_HOOKS_INITIALIZER): Add
1040         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1041
1042 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1043
1044         PR target/37270
1045         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1046         the reload address with the index register for SFmode
1047         access with a displacement.
1048
1049 2008-08-30  Jan Hubicka  <jh@suse.cz>
1050
1051         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1052         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1053         * dojump.c (do_jump): Likewise.
1054         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1055         (note-if_info): Add BRANCH_COST.
1056         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1057         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1058         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1059         branch cost.
1060         * expr.h (BRANCH_COST): Update default.
1061         * predict.c (predictable_edge_p): New function.
1062         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1063         Update BRANCH_COST call.
1064         * basic-block.h (predictable_edge_p): Declare.
1065         * config/alpha/alpha.h (BRANCH_COST): Update.
1066         * config/frv/frv.h (BRANCH_COST): Update.
1067         * config/s390/s390.h (BRANCH_COST): Update.
1068         * config/spu/spu.h (BRANCH_COST): Update.
1069         * config/sparc/sparc.h (BRANCH_COST): Update.
1070         * config/m32r/m32r.h (BRANCH_COST): Update.
1071         * config/i386/i386.h (BRANCH_COST): Update.
1072         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
1073         * config/sh/sh.h (BRANCH_COST): Update.
1074         * config/pdp11/pdp11.h (BRANCH_COST): Update.
1075         * config/avr/avr.h (BRANCH_COST): Update.
1076         * config/crx/crx.h (BRANCH_COST): Update.
1077         * config/xtensa/xtensa.h (BRANCH_COST): Update.
1078         * config/stormy16/stormy16.h (BRANCH_COST): Update.
1079         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
1080         * config/iq2000/iq2000.h (BRANCH_COST): Update.
1081         * config/ia64/ia64.h (BRANCH_COST): Update.
1082         * config/rs6000/rs6000.h (BRANCH_COST): Update.
1083         * config/arc/arc.h (BRANCH_COST): Update.
1084         * config/score/score.h (BRANCH_COST): Update.
1085         * config/arm/arm.h (BRANCH_COST): Update.
1086         * config/pa/pa.h (BRANCH_COST): Update.
1087         * config/mips/mips.h (BRANCH_COST): Update.
1088         * config/vax/vax.h (BRANCH_COST): Update.
1089         * config/h8300/h8300.h (BRANCH_COST): Update.
1090         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
1091         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
1092         * doc/tm.texi (BRANCH_COST): Update.
1093
1094 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
1095
1096         PR target/37283
1097         * config/arm/arm.c (arm_optimization_options): Set
1098         flag_section_anchors to 2 instead of 1 to distinguish it from
1099         -fsection-anchors given explicitely on the command line.
1100
1101 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
1102
1103         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
1104         final insn of a split.
1105
1106 2008-08-30  Jan Hubicka  <jh@suse.cz>
1107
1108         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
1109         optimized for speed.
1110         * final.c (compute_alignments): Use optimize_bb_for_size_p.
1111         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
1112         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
1113         flag_gcse_after_reload_set): New static vars.
1114         (common_handle_option): Enable those flags for profile-use.
1115         (decode_options): Remove optimize_size flags that are handled
1116         on higher granuality.
1117         * tree-vectorizer.c (vectorize_loops): Use
1118         optimize_loop_nest_for_speed_p.
1119         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
1120         * tree-predcom.c (tree_predictive_commoning): Use
1121         optimize_loop_for_speed_p.
1122         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
1123         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
1124         * predict.c (optimize_loop_for_speed_p): Fix walk.
1125
1126 2008-08-30  Jan Hubicka  <jh@suse.cz>
1127
1128         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
1129         functions.
1130         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
1131         profile presence locally.
1132
1133 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
1134
1135         PR bootstrap/37086
1136         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
1137         versions before 4.0.
1138
1139 2008-08-29  Jan Hubicka  <jh@suse.cz>
1140
1141         * tree-inline.c (insert_init_stmt): Insert sequence even when
1142         not in SSA form.
1143
1144 2008-08-29  Jeff Law  <law@redhat.com>
1145
1146         * mn10300.c (mn10300_secondary_reload_class): We need secondary
1147         reloads for AM33-2 if IN is a pseudo with an equivalent memory
1148         location and class is an FP register.
1149
1150 2008-08-29  Jan Hubicka  <jh@suse.cz>
1151
1152         * see.c (see_merge_one_def_extension): Silence used uninitialized
1153         warning.
1154         * matrix-reorg.c (check_allocation_function): Likewise.
1155         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
1156
1157 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
1158
1159         PR c/37261
1160         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
1161         compute new & and | in type rather than TREE_TYPE (arg0).
1162
1163         * dwarf2out.c (fortran_common): Update comment.
1164         (gen_variable_die): Swap com_die and var_die variables in Fortran
1165         COMMON block handling code.
1166
1167         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1168
1169         * dwarf2out.c (gen_const_die): New function.
1170         (size_of_die, value_format, output_die): Output larger
1171         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1172         (native_encode_initializer): New function.
1173         (tree_add_const_value_attribute): Call it.
1174         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1175
1176         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1177         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1178         TREE_THIS_VOLATILE to add_type_attribute.
1179
1180         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
1181         types.
1182         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
1183         types.
1184
1185         * dwarf2out.c (loc_by_reference): New function.
1186         (add_location_or_const_value_attribute): Use it.
1187
1188         PR fortran/23057
1189         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
1190         as DW_TAG_variable children of DW_TAG_common_block rather than
1191         DW_TAG_member children.  Put DW_AT_external to individual
1192         DW_TAG_variable DIEs, not to DW_TAG_common_block.
1193
1194         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
1195         loc_descriptor_from_tree_1.
1196
1197         PR fortran/29635
1198         PR fortran/23057
1199         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
1200         arguments to imported_module_or_decl.
1201         (debug_nothing_tree_tree): Removed.
1202         (debug_nothing_tree_tree_tree_bool): New prototype.
1203         * debug.c (do_nothing_debug_hooks): Adjust.
1204         (debug_nothing_tree_tree): Removed.
1205         (debug_nothing_tree_tree_tree_bool): New function.
1206         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
1207         (gen_variable_die): Put all common vars for the
1208         same COMMON block under one DW_TAG_common_block.
1209         (declare_in_namespace): Return new context_die, for Fortran
1210         return the module DIE instead of adding extra declarations into
1211         the namespace.
1212         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
1213         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
1214         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
1215         DW_AT_declaration.
1216         (dwarf2out_global_decl): Don't skip Fortran global vars.
1217         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
1218         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
1219         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
1220         DW_TAG_imported_declaration as child of previous
1221         DW_TAG_imported_module.
1222         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
1223         * sdbout.c (sdb_debug_hooks): Likewise.
1224         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1225
1226 2008-08-29  Jan Hubicka  <jh@suse.cz>
1227
1228         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
1229
1230         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
1231         * ipa-cp.c (n_cloning_candidates): New static variable.
1232         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
1233         (ipcp_print_all_lattices): Improve debug output.
1234         (ipcp_cloning_candidate_p): New function.
1235         (ipcp_initialize_node_lattices): Use it.
1236         (ipcp_init_stage): Do only analyzis here; prettier debug output.
1237         (ipcp_propagate_stage): Prettier debug output.
1238         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
1239         (ipcp_print_all_structures): Remove.
1240         (ipcp_need_redirect_p): Test !n_cloning_candidates.
1241         (ipcp_insert_stage): Prettier debug output; call
1242         cgraph_remove_unreachable_nodes before propagating.
1243         (pass_ipa_cp): Schedule function removal pass.
1244         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
1245         debug output.
1246         (cgraph_maybe_hot_edge_p): Move to ...
1247         * predict.c (cgraph_maybe_hot_edge_p) ... here.
1248         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
1249         (common_handle_option): Set them; enable ipa-cp when profiling.
1250         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
1251         (ipa_print_all_jump_functions): Likewise.
1252         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
1253         (ipa_print_node_params, ipa_print_all_params): New.
1254         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
1255         ipa_print_all_param_flags): Remove.
1256         (ipa_print_node_params, ipa_print_all_params): New.
1257
1258 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
1259
1260         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
1261         change from 2008-04-03.
1262         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
1263
1264 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
1265
1266         PR rtl-opt/37251
1267
1268         * ira-color.c (push_allocnos_to_stack): Truncate
1269         removed_splay_allocno_vec.
1270
1271 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
1272
1273         PR rtl-opt/37243
1274         * ira-color (ira_fast_allocation): Don't assign hard registers to
1275         global allocnos.
1276
1277 2008-08-29  Jan Hubicka  <jh@suse.cz>
1278
1279         PR middle-end/37278
1280         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
1281         for cold internal loops.
1282
1283 2008-08-29  Richard Guenther  <rguenther@suse.de>
1284
1285         * tree-ssa-structalias.c (create_variable_info_for): Do not
1286         create fields for heap vars or vars with a noalias state.
1287         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
1288         from ESCAPED.
1289
1290 2008-08-29  Richard Guenther  <rguenther@suse.de>
1291
1292         * common.opt (ftree-store-ccp): Mark as preserved for
1293         backward compatibility.
1294         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
1295         * tree-pass.h (pass_store_ccp): Remove.
1296         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
1297         (first_vdef): Remove declaration.
1298         (get_value_loaded_by): Likewise.
1299         * tree-ssa-ccp.c (do_store_ccp): Remove.
1300         (get_default_value): Simplify as do_store_ccp is always false
1301         now.  Do not initialize mem_ref.
1302         (set_value_varying): Likewise.
1303         (canonicalize_float_value): Likewise.
1304         (set_lattice_value): Likewise.
1305         (likely_value): Likewise.
1306         (surely_varying_stmt_p): Likewise.
1307         (ccp_initialize): Likewise.
1308         (ccp_lattice_meet): Likewise.
1309         (ccp_visit_phi_node): Likewise.
1310         (ccp_fold): Likewise.
1311         (evaluate_stmt): Likewise.
1312         (visit_assignment): Likewise.
1313         (ccp_visit_stmt): Likewise.
1314         (execute_ssa_ccp): Fold into ...
1315         (do_ssa_ccp): ... this.
1316         (do_ssa_store_ccp): Remove.
1317         (gate_store_ccp): Likewise.
1318         (pass_store_ccp): Likewise.
1319         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
1320         initialize mem_ref.
1321         * tree-ssa-propagate.c (first_vdef): Remove.
1322         (get_value_loaded_by): Likewise.
1323         (replace_vuses_in): Likewise.
1324         (substitute_and_fold): Do not call replace_vuses_in.
1325         * opts.c (decode_options): Do not set flag_tree_store_ccp.
1326
1327 2008-08-29  Richard Guenther  <rguenther@suse.de>
1328
1329         PR middle-end/37236
1330         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
1331         PARAM_NOALIAS tags with is_heapvar.
1332         * tree-ssa-operands.c (access_can_touch_variable): Offset
1333         based tests do not apply for heapvars.  Fix offset test.
1334
1335 2008-08-29  Jan Hubicka  <jh@suse.cz>
1336
1337         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
1338         (-fipa-cp-clone): Enabled by default at -O3.
1339         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
1340         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
1341
1342 2008-08-29  Jan Hubicka  <jh@suse.cz>
1343
1344         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
1345         New functions.
1346         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
1347         Declare.
1348         * gimple.c (giple_copy_call_skip_args): New function.
1349         (giple_copy_call_skip_args): Declare.
1350
1351         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
1352         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
1353         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
1354         (ipcp_create_replace_map): Improve debug output.
1355         (ipcp_need_redirect_p): Return false when not clonning.
1356         (ipcp_update_callgraph): Skip args.
1357         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
1358         skip args.
1359         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
1360         (save_inline_function_body): Update call of tree_function_versioning.
1361         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
1362         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
1363         (tree_function_versioning): Likewise.
1364         * tree-inline.h (tree_function_versioning): Update prototype.
1365
1366 2008-08-29  Jan Hubicka  <jh@suse.cz>
1367
1368         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
1369         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
1370         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
1371         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
1372         * value-prof.c (gimple_divmod_fixed_value_transform,
1373         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
1374         gimple_stringops_transform): Use optimize_bb_for_size_p.
1375         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
1376         * final.c (compute_alignments): Use optimize_function_for_size_p.
1377         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
1378         (fold_builtin_strcpy, fold_builtin_fputs): Use
1379         optimize_function_for_size_p.
1380         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
1381         * recog.c (relax_delay_slots): Likewise.
1382         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
1383         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
1384         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
1385         optimize_function_for_size_p.
1386         (cgraph_decide_inlining_of_small_function): Use
1387         optimize_function_for_size_p.
1388         * global.c (find_reg): Use optimize_function_for_size_p.
1389         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
1390         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
1391         flag_prefetch_loop_arrays. Those can work it out from profile.
1392         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
1393         optimize_loop_for_speed_p.
1394         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
1395         argument.
1396         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
1397         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
1398         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
1399         * local-alloc.c (block_alloc): Pass BB pointer.
1400         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
1401         * gcse.c (gcse_main): Use optimize_function_for_size_p.
1402         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
1403         (decide_peel_completely): Likewise.
1404         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
1405         optimize_loop_for_size_p.
1406         (vect_enhance_data_refs_alignment): Likewise.
1407         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
1408         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
1409         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
1410         (try_crossjump_bb): Use optimize_bb_for_size_p.
1411         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
1412         optimize_loop_for_speed_p.
1413         * bb-reorder.c (find_traces_1_round): Likewise.
1414         (copy_bb): Use optimize_bb_for_speed_p.
1415         (duplicate_computed_gotos): Likewise.
1416         * basic-block.h (optimize_loop_nest_for_size_p,
1417         optimize_loop_nest_for_speed_p): New.
1418         * stmt.c (expand_case): Use optimize_insn_for_size_p.
1419
1420 2008-08-29  Tristan Gingold  <gingold@adacore.com>
1421
1422         * gcov.c (main): Call expandargv.
1423
1424 2008-08-29  Jan Hubicka  <jh@suse.cz>
1425
1426         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
1427         is not cold.
1428         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1429         Constify arguments.
1430         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
1431         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1432         Constify.
1433         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
1434
1435 2008-08-29  Jan Hubicka  <jh@suse.cz>
1436
1437         * tree-pass.h (pass_strip_predict_hints): Declare.
1438         * predict.c (strip_builtin_expect): Rename to ...
1439         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
1440         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
1441         (tree_estimate_probability): Do not strip builtin_expect.
1442         (pass_strip_predict_hints): New pass.
1443         * tree-inline.c (expand_call_inline): When inlining cold function, predict
1444         it as unlikely.
1445         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
1446
1447 2008-08-29  Richard Guenther  <rguenther@suse.de>
1448
1449         PR tree-optimization/37207
1450         * tree-vrp.c (extract_range_from_binary_expr): Also try
1451         to constant fold if only one of the operands is a constant.
1452
1453 2008-08-29  Nick Clifton  <nickc@redhat.com>
1454
1455         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
1456         the same way as SYMBOL_REFs.
1457
1458 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
1459
1460         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
1461
1462 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
1463
1464         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
1465         * config/mips/mips.md (branch_likely): Remove const.  Fix
1466         comment formatting.
1467         (define_delay for type "branch"): Change to only apply for branch
1468         with likely variant.
1469         (define_delay for type "branch" and "branch_likely" no).  New delay
1470         definition.
1471         (equality_op): New code iterator.
1472         (bbv, bbinv): New code attributes.
1473         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
1474         patterns.
1475
1476 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1477             Andrew Pinski  <pinskia@gcc.gnu.org>
1478
1479         PR 18050
1480         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
1481
1482 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
1483
1484         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
1485         rule that a symbolic constant must be defined and >= 0 for the
1486         corresponding facility to be present at compile-time.
1487         * gthr-posix.c: Likewise.
1488
1489 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
1490
1491         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
1492         * config/mips/mips.md (D): New mode attribute.
1493         (mulsi3, muldi3): Merge it into ...
1494         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
1495         patterns.
1496         (muldi3_mul3): New pattern.
1497         (mulsi3_mult3): Rename to mulsi3_mul3.
1498
1499 2008-08-28  Jan Hubicka  <jh@suse.cz>
1500
1501         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
1502         to fail.
1503         * predict.c (always_optimize_for_size_p): Rename to ...
1504         (optimize_function_for_size): ... this one; make extern.
1505         (optimize_function_for_speed_p): New.
1506         (optimize_bb_for_size_p, optimize_bb_for_size_p,
1507         optimize_edge_for_size_p,optimize_edge_for_size_p,
1508         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
1509         * basic-block.h (optimize_function_for_size_p,
1510         optimize_function_for_speed_p): Declare.
1511         * i386.md (optimize_size checks): Replace them by appropriate
1512         predicate.
1513         (standard_80387_constant_p, ix86_compute_frame_layout,
1514         ix86_expand_epilogue, ix86_decompose_address,
1515         print_operand, emit_i387_cw_initialization,
1516         inline_memory_move_cost, ix86_pad_returns,
1517         ix86_reorg): Replace optimize_size checks.
1518
1519 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1520
1521         * rtl.h (simplify_subreg_regno): Declare.
1522         * rtlanal.c (simplify_subreg_regno): New function, split out from...
1523         * simplify-rtx.c (simplify_subreg): ...here.
1524         * reload.c (find_reloads): Use simplify_subreg_regno instead of
1525         subreg_offset_representable_p.
1526
1527 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1528
1529         PR c/30949
1530         * c-typeck.c (convert_for_assignment): Give a note describing what
1531         was passed and what was expected.
1532
1533 2008-08-28  Joey Ye  <joey.ye@intel.com>
1534
1535         * doc/extend.texi: Document AVX built-in functions.
1536         * doc/invoke.texi: Document -mavx.
1537
1538 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
1539             Joey Ye  <joey.ye@intel.com>
1540             Xuepeng Guo  <xuepeng.guo@intel.com>
1541
1542         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
1543
1544         * config/i386/cpuid.h (bit_FMA): New.
1545         (bit_XSAVE): Likewise.
1546         (bit_OSXSAVE): Likewise.
1547         (bit_AVX): Likewise.
1548
1549         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
1550         define.  Use ASM_OUTPUT_AVX_PREFIX.
1551
1552         * config/i386/gmmintrin.h: New.
1553
1554         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
1555         (OPTION_MASK_ISA_AVX_SET): New.
1556         (OPTION_MASK_ISA_FMA_SET): Likewise.
1557         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
1558         (OPTION_MASK_ISA_FMA_SET): Likewise.
1559         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
1560         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
1561         (pta_flags): Add PTA_AVX and PTA_FMA.
1562         (override_options): Handle PTA_AVX and PTA_FMA.
1563         (init_cumulative_args): Handle warn_avx.
1564         (classify_argument): Return 0 for COImode and OImode.  Return
1565         1 and X86_64_AVX_CLASS for 256bit vector types.
1566         (examine_argument): Handle X86_64_AVX_CLASS.
1567         (construct_container): Likewise.
1568         (function_arg_advance_32): Pass OImode and 256bit vector types
1569         in AVX register.
1570         (function_arg_advance_64): Take a new argument to indicate if a
1571         parameter is named.  Handle 256bit vector types.  Return
1572         immediately for unnamed 256bit vector mode parameters.
1573         (function_arg_advance): Updated.
1574         (function_arg_32): Add comments for TImode.  Handle OImode
1575         and 256bit vector types.
1576         (function_arg_64): Take a new argument to indicate if a
1577         parameter is named.  Handle 256bit vector types.  Return NULL
1578         for unnamed 256bit vector mode parameters.
1579         (function_arg): Updated.
1580         (setup_incoming_varargs_64): Support
1581         AVX encoding for *sse_prologue_save_insn.
1582         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
1583         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
1584         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
1585         enabled, otherwise return -3.
1586         (standard_sse_constant_opcode): Handle AVX and 256bit vector
1587         modes.
1588         (print_reg): Support AVX registers.  Handle 'x' and 't'.
1589         Handle 'd' to duplicate the operand.
1590         (print_operand): Likewise.  Also support AVX vector compare
1591         instructions.
1592         (output_387_binary_op): Support AVX.
1593         (output_fp_compare): Likewise.
1594         (ix86_expand_vector_move_misalign): Likewise.
1595         (ix86_attr_length_vex_default): New.
1596         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
1597         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
1598         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
1599         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
1600         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
1601         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
1602         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
1603         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
1604         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
1605         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
1606         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
1607         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
1608         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
1609         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
1610         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
1611         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
1612         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
1613         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
1614         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
1615         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
1616         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
1617         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
1618         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
1619         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
1620         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
1621         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
1622         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
1623         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
1624         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
1625         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
1626         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
1627         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
1628         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
1629         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
1630         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1631         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1632         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
1633         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
1634         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
1635         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
1636         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
1637         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
1638         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
1639         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
1640         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
1641         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
1642         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
1643         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
1644         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
1645         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
1646         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
1647         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
1648         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
1649         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
1650         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
1651         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
1652         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
1653         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
1654         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
1655         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
1656         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
1657         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
1658         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
1659         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
1660         and IX86_BUILTIN_MOVMSKPS256,
1661         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
1662         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
1663         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
1664         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
1665         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
1666         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
1667         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
1668         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
1669         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
1670         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
1671         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
1672         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
1673         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
1674         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
1675         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
1676         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
1677         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
1678         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
1679         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
1680         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
1681         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
1682         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
1683         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
1684         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
1685         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
1686         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
1687         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
1688         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
1689         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1690         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1691         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
1692         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
1693         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
1694         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
1695         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
1696         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
1697         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
1698         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
1699         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
1700         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
1701         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
1702         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
1703         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
1704         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
1705         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
1706         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
1707         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
1708         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
1709         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
1710         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
1711         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
1712         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
1713         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
1714         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
1715         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
1716         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
1717         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
1718         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
1719         IX86_BUILTIN_CMPPS,
1720         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
1721         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
1722         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
1723         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
1724         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
1725         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
1726         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
1727         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
1728         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
1729         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
1730         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
1731         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
1732         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
1733         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
1734         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
1735         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
1736         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
1737         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
1738         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
1739         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
1740         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
1741         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
1742         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
1743         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
1744         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
1745         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
1746         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
1747         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
1748         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
1749         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
1750         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
1751         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
1752         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
1753         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
1754         IX86_BUILTIN_MOVMSKPS256.
1755         (ix86_init_mmx_sse_builtins): Support AVX builtins.
1756         (ix86_expand_args_builtin): Likewise.
1757         (ix86_expand_special_args_builtin): Likewise.
1758         (ix86_hard_regno_mode_ok): Handle AVX modes.
1759         (ix86_expand_vector_init_duplicate): Likewise.
1760         (ix86_expand_vector_init_one_nonzero): Likewise.
1761         (ix86_expand_vector_init_one_var): Likewise.
1762         (ix86_expand_vector_init_concat): Likewise.
1763         (ix86_expand_vector_init_general): Likewise.
1764         (ix86_expand_vector_set): Likewise.
1765         (ix86_vector_mode_supported_p): Likewise.
1766         (x86_extended_reg_mentioned_p): Check INSN_P before using
1767         PATTERN.
1768
1769         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1770         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
1771
1772         * config/i386/i386.h (TARGET_AVX): New.
1773         (TARGET_FMA): Likewise.
1774         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
1775         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
1776         (VALID_AVX256_REG_MODE): New.
1777         (AVX256_VEC_FLOAT_MODE_P): Likewise.
1778         (AVX_FLOAT_MODE_P): Likewise.
1779         (AVX128_VEC_FLOAT_MODE_P): Likewise.
1780         (AVX256_VEC_FLOAT_MODE_P): Likewise.
1781         (AVX_VEC_FLOAT_MODE_P): Likewise.
1782         (ASM_OUTPUT_AVX_PREFIX): Likewise.
1783         (ASM_OUTPUT_OPCODE): Likewise.
1784         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
1785         support.
1786         (SSE_REG_MODE_P): Allow 256bit vector modes.
1787         (ix86_args): Add a warn_avx field.
1788
1789         * config/i386/i386.md (UNSPEC_PCMP): New.
1790         (UNSPEC_VPERMIL): Likewise.
1791         (UNSPEC_VPERMIL2): Likewise.
1792         (UNSPEC_VPERMIL2F128): Likewise.
1793         (UNSPEC_MASKLOAD): Likewise.
1794         (UNSPEC_MASKSTORE): Likewise.
1795         (UNSPEC_CAST): Likewise.
1796         (UNSPEC_VTESTP): Likewise.
1797         (UNSPECV_VZEROALL): Likewise.
1798         (UNSPECV_VZEROUPPER): Likewise.
1799         (XMM0_REG): Likewise.
1800         (XMM1_REG): Likewise.
1801         (XMM2_REG): Likewise.
1802         (XMM3_REG): Likewise.
1803         (XMM4_REG): Likewise.
1804         (XMM5_REG): Likewise.
1805         (XMM6_REG): Likewise.
1806         (XMM8_REG): Likewise.
1807         (XMM9_REG): Likewise.
1808         (XMM10_REG): Likewise.
1809         (XMM11_REG): Likewise.
1810         (XMM12_REG): Likewise.
1811         (XMM13_REG): Likewise.
1812         (XMM14_REG): Likewise.
1813         (XMM15_REG): Likewise.
1814         (prefix): Likewise.
1815         (prefix_vex_imm8): Likewise.
1816         (prefix_vex_w): Likewise.
1817         (length_vex): Likewise.
1818         (maxmin): Likewise.
1819         (movoi): Likewise.
1820         (*avx_ashlti3): Likewise.
1821         (*avx_lshrti3): Likewise.
1822         (*avx_setcc<mode>): Likewise.
1823         (*fop_<mode>_comm_mixed_avx): Likewise.
1824         (*fop_<mode>_comm_avx): Likewise.
1825         (*fop_<mode>_1_mixed_avx): Likewise.
1826         (*fop_<mode>_1_avx): Likewise.
1827         (*avx_<code><mode>3): Likewise.
1828         (*avx_ieee_smin<mode>3): Likewise.
1829         (*avx_ieee_smax<mode>3): Likewise.
1830         (mode): Add OI, V8SF and V4DF.
1831         (length): Support VEX prefix.
1832         (*cmpfp_i_mixed): Set prefix attribute.
1833         (*cmpfp_i_sse): Likewise.
1834         (*cmpfp_iu_mixed): Likewise.
1835         (*cmpfp_iu_sse): Likewise.
1836         (*movsi_1): Support AVX.
1837         (*movdi_2): Likewise.
1838         (*movdi_1_rex64): Likewise.
1839         (*movti_internal): Likewise.
1840         (*movti_rex64): Likewise.
1841         (*movsf_1): Likewise.
1842         (*movdf_nointeger): Likewise.
1843         (*movdf_integer_rex64): Likewise.
1844         (*movtf_internal): Likewise.
1845         (zero_extendsidi2_32): Likewise.
1846         (zero_extendsidi2_rex64): Likewise.
1847         (*extendsfdf2_mixed): Likewise.
1848         (*extendsfdf2_sse): Likewise.
1849         (*truncdfsf_fast_mixed): Likewise.
1850         (*truncdfsf_fast_sse): Likewise.
1851         (*truncdfsf_mixed): Likewise.
1852         (fix_trunc<mode>di_sse): Likewise.
1853         (fix_trunc<mode>si_sse): Likewise.
1854         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1855         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1856         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1857         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1858         (*rcpsf2_sse): Likewise.
1859         (*rsqrtsf2_sse): Likewise.
1860         (*sqrt<mode>2_sse): Likewise.
1861         (sse4_1_round<mode>2): Likewise.
1862         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
1863         Support AVX.  Set length attribute properly for AVX.
1864
1865         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
1866         (VECTOR_MODES (FLOAT, 32)): Likewise.
1867         (VECTOR_MODE (INT, DI, 8)): Likewise.
1868         (VECTOR_MODE (INT, HI, 32)): Likewise.
1869         (VECTOR_MODE (INT, QI, 64)): Likewise.
1870         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
1871         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
1872         (VECTOR_MODE (INT, DI, 4)): Removed.
1873         (VECTOR_MODE (INT, SI, 8)): Likewise.
1874         (VECTOR_MODE (INT, HI, 16)): Likewise.
1875         (VECTOR_MODE (INT, QI, 32)): Likewise.
1876         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
1877         (INT_MODE (OI, 32)): Likewise.
1878
1879         * config/i386/i386.opt (mavx): New.
1880         (mfma): Likewise.
1881
1882         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
1883
1884         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
1885         (*mov<mode>_internal_avx): New.
1886         (*movv2sf_internal_rex64_avx): Likewise.
1887         (*movv2sf_internal_avx): Likewise.
1888
1889         * config/i386/predicates.md (const_4_to_5_operand): New.
1890         (const_6_to_7_operand): Likewise.
1891         (const_8_to_11_operand): Likewise.
1892         (const_12_to_15_operand): Likewise.
1893         (avx_comparison_float_operator): Likewise.
1894
1895         * config/i386/sse.md (AVX256MODEI): New.
1896         (AVX256MODE): Likewise.
1897         (AVXMODEQI): Likewise.
1898         (AVXMODE): Likewise.
1899         (AVX256MODEF2P): Likewise.
1900         (AVX256MODE2P): Likewise.
1901         (AVX256MODE4P): Likewise.
1902         (AVX256MODE8P): Likewise.
1903         (AVXMODEF2P): Likewise.
1904         (AVXMODEF4P): Likewise.
1905         (AVXMODEDCVTDQ2PS): Likewise.
1906         (AVXMODEDCVTPS2DQ): Likewise.
1907         (avxvecmode): Likewise.
1908         (avxvecpsmode): Likewise.
1909         (avxhalfvecmode): Likewise.
1910         (avxscalarmode): Likewise.
1911         (avxcvtvecmode): Likewise.
1912         (avxpermvecmode): Likewise.
1913         (avxmodesuffixf2c): Likewise.
1914         (avxmodesuffixp): Likewise.
1915         (avxmodesuffixs): Likewise.
1916         (avxmodesuffix): Likewise.
1917         (vpermilbits): Likewise.
1918         (pinsrbits): Likewise.
1919         (mov<mode>): Likewise.
1920         (*mov<mode>_internal): Likewise.
1921         (push<mode>1): Likewise.
1922         (movmisalign<mode>): Likewise.
1923         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1924         (avx_movdqu<avxmodesuffix>): Likewise.
1925         (avx_lddqu<avxmodesuffix>): Likewise.
1926         (<plusminus_insn><mode>3): Likewise.
1927         (*avx_<plusminus_insn><mode>3): Likewise.
1928         (*avx_vm<plusminus_insn><mode>3): Likewise.
1929         (mul<mode>3): Likewise.
1930         (*avx_mul<mode>3): Likewise.
1931         (*avx_vmmul<mode>3): Likewise.
1932         (divv8sf3): Likewise.
1933         (divv4df3): Likewise.
1934         (avx_div<mode>3): Likewise.
1935         (*avx_div<mode>3): Likewise.
1936         (*avx_vmdiv<mode>3): Likewise.
1937         (avx_rcpv8sf2): Likewise.
1938         (*avx_vmrcpv4sf2): Likewise.
1939         (sqrtv8sf2): Likewise.
1940         (avx_sqrtv8sf2): Likewise.
1941         (*avx_vmsqrt<mode>2): Likewise.
1942         (rsqrtv8sf2): Likewise.
1943         (avx_rsqrtv8sf2): Likewise.
1944         (*avx_vmrsqrtv4sf2): Likewise.
1945         (<code><mode>3): Likewise.
1946         (*avx_<code><mode>3_finite): Likewise.
1947         (*avx_<code><mode>3): Likewise.
1948         (*avx_vm<code><mode>3): Likewise.
1949         (*avx_ieee_smin<mode>3): Likewise.
1950         (*avx_ieee_smax<mode>3): Likewise.
1951         (avx_addsubv8sf3): Likewise.
1952         (avx_addsubv4df3): Likewise.
1953         (*avx_addsubv4sf3): Likewise.
1954         (*avx_addsubv2df3): Likewise.
1955         (avx_h<plusminus_insn>v4df3): Likewise.
1956         (avx_h<plusminus_insn>v8sf3): Likewise.
1957         (*avx_h<plusminus_insn>v4sf3): Likewise.
1958         (*avx_h<plusminus_insn>v2df3): Likewise.
1959         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
1960         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
1961         (*avx_maskcmp<mode>3): Likewise.
1962         (avx_nand<mode>3): Likewise.
1963         (*avx_<code><mode>3): Likewise.
1964         (*avx_nand<mode>3): Likewise.
1965         (*avx_<code><mode>3): Likewise.
1966         (*avx_cvtsi2ss): Likewise.
1967         (*avx_cvtsi2ssq): Likewise.
1968         (*avx_cvtsi2sd): Likewise.
1969         (*avx_cvtsi2sdq): Likewise.
1970         (*avx_cvtsd2ss): Likewise.
1971         (avx_cvtss2sd): Likewise.
1972         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
1973         (avx_cvtps2dq<avxmodesuffix>): Likewise.
1974         (avx_cvttps2dq<avxmodesuffix>): Likewise.
1975         (*avx_cvtsi2sd): Likewise.
1976         (*avx_cvtsi2sdq): Likewise.
1977         (avx_cvtdq2pd256): Likewise.
1978         (avx_cvtpd2dq256): Likewise.
1979         (avx_cvttpd2dq256): Likewise.
1980         (*avx_cvtsd2ss): Likewise.
1981         (*avx_cvtss2sd): Likewise.
1982         (avx_cvtpd2ps256): Likewise.
1983         (avx_cvtps2pd256): Likewise.
1984         (*avx_movhlps): Likewise.
1985         (*avx_movlhps): Likewise.
1986         (avx_unpckhps256): Likewise.
1987         (*avx_unpckhps): Likewise.
1988         (avx_unpcklps256): Likewise.
1989         (*avx_unpcklps): Likewise.
1990         (avx_movshdup256): Likewise.
1991         (avx_movsldup256): Likewise.
1992         (avx_shufps256): Likewise.
1993         (avx_shufps256_1): Likewise.
1994         (*avx_shufps_<mode>): Likewise.
1995         (*avx_loadhps): Likewise.
1996         (*avx_storelps): Likewise.
1997         (*avx_loadlps): Likewise.
1998         (*avx_movss): Likewise.
1999         (*vec_dupv4sf_avx): Likewise.
2000         (*vec_concatv2sf_avx): Likewise.
2001         (*vec_concatv4sf_avx): Likewise.
2002         (*vec_setv4sf_0_avx): Likewise.
2003         (*vec_setv4sf_avx): Likewise.
2004         (*avx_insertps): Likewise.
2005         (avx_vextractf128<mode>): Likewise.
2006         (vec_extract_lo_<mode>): Likewise.
2007         (vec_extract_hi_<mode>): Likewise.
2008         (vec_extract_lo_<mode>): Likewise.
2009         (vec_extract_hi_<mode>): Likewise.
2010         (vec_extract_lo_v16hi): Likewise.
2011         (vec_extract_hi_v16hi): Likewise.
2012         (vec_extract_lo_v32qi): Likewise.
2013         (vec_extract_hi_v32qi): Likewise.
2014         (avx_unpckhpd256): Likewise.
2015         (*avx_unpckhpd): Likewise.
2016         (avx_movddup256): Likewise.
2017         (*avx_movddup): Likewise.
2018         (avx_unpcklpd256): Likewise.
2019         (*avx_unpcklpd): Likewise.
2020         (avx_shufpd256): Likewise.
2021         (avx_shufpd256_1): Likewise.
2022         (*avx_punpckhqdq): Likewise.
2023         (*avx_punpcklqdq): Likewise.
2024         (*avx_shufpd_<mode>): Likewise.
2025         (*avx_storehpd): Likewise.
2026         (*avx_loadhpd): Likewise.
2027         (*avx_loadlpd): Likewise.
2028         (*avx_movsd): Likewise.
2029         (*vec_concatv2df_avx): Likewise.
2030         (*avx_<plusminus_insn><mode>3): Likewise.
2031         (*avx_<plusminus_insn><mode>3): Likewise.
2032         (*avx_mulv8hi3): Likewise.
2033         (*avxv8hi3_highpart): Likewise.
2034         (*avx_umulv8hi3_highpart): Likewise.
2035         (*avx_umulv2siv2di3): Likewise.
2036         (*avx_mulv2siv2di3): Likewise.
2037         (*avx_pmaddwd): Likewise.
2038         (*avx_mulv4si3): Likewise.
2039         (*avx_ashr<mode>3): Likewise.
2040         (*avx_lshr<mode>3): Likewise.
2041         (*avx_ashl<mode>3): Likewise.
2042         (*avx_<code><mode>3): Likewise.
2043         (*avx_eq<mode>3): Likewise.
2044         (*avx_gt<mode>3): Likewise.
2045         (*avx_nand<mode>3): Likewise.
2046         (*avx_nand<mode>3): Likewise.
2047         (*avx_<code><mode>3): Likewise.
2048         (*avx_<code><mode>3): Likewise.
2049         (*avx_packsswb): Likewise.
2050         (*avx_packssdw): Likewise.
2051         (*avx_packuswb): Likewise.
2052         (*avx_punpckhbw): Likewise.
2053         (*avx_punpcklbw): Likewise.
2054         (*avx_punpckhwd): Likewise.
2055         (*avx_punpcklwd): Likewise.
2056         (*avx_punpckhdq): Likewise.
2057         (*avx_punpckldq): Likewise.
2058         (*avx_pinsr<avxmodesuffixs>): Likewise.
2059         (*avx_pinsrq): Likewise.
2060         (*avx_loadld): Likewise.
2061         (*vec_extractv2di_1_rex64_avx): Likewise.
2062         (*vec_extractv2di_1_avx): Likewise.
2063         (*vec_dupv2di_avx): Likewise.
2064         (*vec_concatv2si_avx): Likewise.
2065         (*vec_concatv4si_1_avx): Likewise.
2066         (*vec_concatv2di_avx): Likewise.
2067         (*vec_concatv2di_rex64_avx): Likewise.
2068         (*avx_uavgv16qi3): Likewise.
2069         (*avx_uavgv8hi3): Likewise.
2070         (*avx_psadbw): Likewise.
2071         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
2072         (*avx_phaddwv8hi3): Likewise.
2073         (*avx_phadddv4si3): Likewise.
2074         (*avx_phaddswv8hi3): Likewise.
2075         (*avx_phsubwv8hi3): Likewise.
2076         (*avx_phsubdv4si3): Likewise.
2077         (*avx_phsubswv8hi3): Likewise.
2078         (*avx_pmaddubsw128): Likewise.
2079         (*avx_pmulhrswv8hi3): Likewise.
2080         (*avx_pshufbv16qi3): Likewise.
2081         (*avx_psign<mode>3): Likewise.
2082         (*avx_palignrti): Likewise.
2083         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2084         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2085         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2086         (*avx_mpsadbw): Likewise.
2087         (*avx_packusdw): Likewise.
2088         (*avx_pblendvb): Likewise.
2089         (*avx_pblendw): Likewise.
2090         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2091         (avx_ptest256): Likewise.
2092         (avx_roundp<avxmodesuffixf2c>256): Likewise.
2093         (*avx_rounds<ssemodesuffixf2c>): Likewise.
2094         (*avx_aesenc): Likewise.
2095         (*avx_aesenclast): Likewise.
2096         (*avx_aesdec): Likewise.
2097         (*avx_aesdeclast): Likewise.
2098         (avx_vzeroupper): Likewise.
2099         (avx_vzeroupper_rex64): Likewise.
2100         (avx_vpermil<mode>): Likewise.
2101         (avx_vpermilvar<mode>3): Likewise.
2102         (avx_vpermil2<mode>3): Likewise.
2103         (avx_vperm2f128<mode>3): Likewise.
2104         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2105         (avx_vbroadcastss256): Likewise.
2106         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
2107         (avx_vinsertf128<mode>): Likewise.
2108         (vec_set_lo_<mode>): Likewise.
2109         (vec_set_hi_<mode>): Likewise.
2110         (vec_set_lo_<mode>): Likewise.
2111         (vec_set_hi_<mode>): Likewise.
2112         (vec_set_lo_v16hi): Likewise.
2113         (vec_set_hi_v16hi): Likewise.
2114         (vec_set_lo_v32qi): Likewise.
2115         (vec_set_hi_v32qi): Likewise.
2116         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2117         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2118         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2119         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
2120         (vec_init<mode>): Likewise.
2121         (*vec_concat<mode>_avx): Likewise.
2122         (blendbits): Support V8SF and V4DF.
2123         (sse2_movq128): Support AVX.
2124         (<sse>_movnt<mode>): Likewise.
2125         (sse2_movntv2di): Likewise.
2126         (sse_rcpv4sf2): Likewise.
2127         (sse_sqrtv4sf2): Likewise.
2128         (sse_rsqrtv4sf2): Likewise.
2129         (<sse>_comi): Likewise.
2130         (<sse>_ucomi): Likewise.
2131         (sse_cvtss2si): Likewise.
2132         (sse_cvtss2si_2): Likewise.
2133         (sse_cvtss2siq): Likewise.
2134         (sse_cvtss2siq_2): Likewise.
2135         (sse_cvttss2si): Likewise.
2136         (sse_cvttss2siq): Likewise.
2137         (sse2_cvtsd2si): Likewise.
2138         (sse2_cvtsd2si_2): Likewise.
2139         (sse2_cvtsd2siq): Likewise.
2140         (sse2_cvtsd2siq_2): Likewise.
2141         (sse2_cvttsd2si): Likewise.
2142         (sse2_cvttsd2siq): Likewise.
2143         (sse2_cvtdq2pd): Likewise.
2144         (*sse2_cvtpd2dq): Likewise.
2145         (*sse2_cvttpd2dq): Likewise.
2146         (*sse2_cvtpd2ps): Likewise.
2147         (sse2_cvtps2pd): Likewise.
2148         (sse3_movshdup): Likewise.
2149         (sse3_movsldup): Likewise.
2150         (sse_storehps): Likewise.
2151         (*sse4_1_extractps): Likewise.
2152         (sse2_storelpd): Likewise.
2153         (vec_dupv2df_sse3): Likewise.
2154         (*vec_concatv2df_sse3): Likewise.
2155         (*sse4_1_pextrb): Likewise.
2156         (*sse4_1_pextrb_memory): Likewise.
2157         (*sse2_pextrw): Likewise.
2158         (*sse4_1_pextrw_memory): Likewise.
2159         (*sse4_1_pextrd): Likewise.
2160         (*sse4_1_pextrq): Likewise.
2161         (sse2_pshufd_1): Likewise.
2162         (sse2_pshuflw_1): Likewise.
2163         (sse2_pshufhw_1): Likewise.
2164         (*sse2_storeq_rex64): Likewise.
2165         (*vec_dupv4si): Likewise.
2166         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2167         (sse2_pmovmskb): Likewise.
2168         (*sse2_maskmovdqu): Likewise.
2169         (*sse2_maskmovdqu_rex64): Likewise.
2170         (sse_ldmxcsr): Likewise.
2171         (sse_stmxcsr): Likewise.
2172         (abs<mode>2): Likewise.
2173         (sse4_1_movntdqa): Likewise.
2174         (sse4_1_phminposuw): Likewise.
2175         (sse4_1_extendv8qiv8hi2): Likewise.
2176         (*sse4_1_extendv8qiv8hi2): Likewise.
2177         (sse4_1_extendv4qiv4si2): Likewise.
2178         (*sse4_1_extendv4qiv4si2): Likewise.
2179         (sse4_1_extendv2qiv2di2): Likewise.
2180         (*sse4_1_extendv2qiv2di2): Likewise.
2181         (sse4_1_extendv4hiv4si2): Likewise.
2182         (*sse4_1_extendv4hiv4si2): Likewise.
2183         (sse4_1_extendv2hiv2di2): Likewise.
2184         (*sse4_1_extendv2hiv2di2): Likewise.
2185         (sse4_1_extendv2siv2di2): Likewise.
2186         (*sse4_1_extendv2siv2di2): Likewise.
2187         (sse4_1_zero_extendv8qiv8hi2): Likewise.
2188         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2189         (sse4_1_zero_extendv4qiv4si2): Likewise.
2190         (*sse4_1_zero_extendv4qiv4si2): Likewise.
2191         (sse4_1_zero_extendv2qiv2di2): Likewise.
2192         (*sse4_1_zero_extendv2qiv2di2): Likewise.
2193         (sse4_1_zero_extendv4hiv4si2): Likewise.
2194         (*sse4_1_zero_extendv4hiv4si2): Likewise.
2195         (sse4_1_zero_extendv2hiv2di2): Likewise.
2196         (*sse4_1_zero_extendv2hiv2di2): Likewise.
2197         (sse4_1_zero_extendv2siv2di2): Likewise.
2198         (*sse4_1_zero_extendv2siv2di2): Likewise.
2199         (sse4_1_ptest): Likewise.
2200         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
2201         (sse4_2_pcmpestri): Likewise.
2202         (sse4_2_pcmpestrm): Likewise.
2203         (sse4_2_pcmpistri): Likewise.
2204         (sse4_2_pcmpistrm): Likewise.
2205         (aesimc): Likewise.
2206         (aeskeygenassist): Likewise.
2207
2208 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
2209
2210         * config/i386/predicates.md (vzeroall_operation): New.
2211
2212         * config/i386/sse.md (avx_vzeroall): New.
2213         (*avx_vzeroall): Likewise.
2214
2215 2008-08-28  Paul Brook  <paul@codesourcery.com>
2216             Mark Shinwell  <shinwell@codesourcery.com>
2217             Richard Earnshaw  <richard.earnshaw@arm.com>
2218
2219         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
2220         (TARGET_MIN_ANCHOR_OFFSET): New.
2221         (arm_override_options): Set correct anchor ranges for Thumb-1
2222         and Thumb-2 if required.
2223         (legitimize_pic_address): Handle case involving a TLS symbol
2224         reference with an addend.
2225         (arm_optimization_options): Enable section anchors at -O1 and
2226         above.
2227         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
2228         * config/arm/arm-protos.h (arm_optimization_options): New.
2229
2230 2008-08-28  Nick Clifton  <nickc@redhat.com>
2231
2232         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
2233         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
2234         attribute.
2235
2236         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
2237         * config/v850/v850.md (return): Remove frame size restriction.
2238
2239         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
2240
2241         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
2242
2243         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
2244
2245         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
2246
2247 2008-08-28  Paul Brook  <paul@codesourcery.com>
2248
2249         * config/arm/vfp11.md: Update license notice.
2250         * config/arm/cortex-r4.md: Ditto.
2251
2252 2008-08-28  Richard Guenther  <rguenther@suse.de>
2253
2254         PR tree-optimization/37207
2255         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
2256         tuplification bug.
2257
2258 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
2259
2260         PR c++/36741
2261         * tree.c (int_fits_type_p): Don't forget unsigned integers
2262           of type sizetype which higher end word equals -1.
2263
2264 2008-08-28  Ira Rosen  <irar@il.ibm.com>
2265
2266         * target.h (struct vectorize): Add new target builtin.
2267         * tree-vectorizer.c (destroy_loop_vec_info): Call
2268         vect_free_slp_instance instead of vect_free_slp_node.
2269         * tree-vectorizer.h (enum slp_load_perm_type): New.
2270         (struct _slp_instance): Add new fields.
2271         (SLP_INSTANCE_LOAD_PERMUTATION): New.
2272         (SLP_INSTANCE_LOADS): New.
2273         (vect_free_slp_tree): Remove.
2274         (vect_free_slp_instance): Declare.
2275         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
2276         (vectorizable_load): Add argument.
2277         (vect_transform_slp_perm_load): New.
2278         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
2279         vectorizable_load.
2280         (vect_get_place_in_interleaving_chain): New function.
2281         (vect_free_slp_tree): Make static.
2282         (vect_free_slp_instance): New function.
2283         (vect_build_slp_tree): Add new arguments. Allow load permutations and
2284         collect the load location in the interleaving chain.
2285         (vect_supported_slp_permutation_p): New function.
2286         (vect_supported_load_permutation_p): Likewise.
2287         (vect_analyze_slp_instance): In case of loads permutation, call
2288         vect_supported_load_permutation_p to check that the permutation is
2289         supported.
2290         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
2291         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
2292         (vect_create_mask_and_perm): New function.
2293         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
2294         (vectorizable_load): Add an argument. Don't keep the created vectors
2295         statements in the node if permutation is required. Call
2296         vect_transform_slp_perm_load to generate the permutation.
2297         (vect_transform_stmt): Add new argument. Call vectorizable_load with
2298         additional argument.
2299         (vect_schedule_slp_instance): In case of loads permutation, allocate
2300         vectorized statements structure for all the related SLP nodes. Call
2301         vect_transform_stmt with addditional argument.
2302         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
2303         * config/spu/spu.c (spu_builtin_vec_perm): New.
2304         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2305         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
2306         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
2307         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2308
2309 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
2310
2311         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
2312         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
2313         __gthread_cond_signal, __gthread_cond_timedwait,
2314         __gthread_cond_timedwait_recursive): New functions.
2315         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
2316         Likewise.
2317         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
2318         thread interfaces.
2319
2320 2008-08-28  Richard Guenther  <rguenther@suse.de>
2321
2322         PR middle-end/37005
2323         * fold-const.c (maybe_canonicalize_comparison_1): Require
2324         undefined overflow only for canonicalizing A +- CST cmp CST.
2325         Make sure to not generate new constants that are not inside
2326         their TYPE_MIN/MAX_VALUE range.
2327         (maybe_canonicalize_comparison): Remove undefined overflow
2328         checking from here.
2329         (fold_binary): Remove now duplicate folding.
2330
2331 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
2332
2333         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
2334         use not updated in the last change.
2335
2336 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2337
2338         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
2339         (IRA_COVER_CLASSES): Add FPUL_REGS.
2340
2341 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2342
2343         PR 37217
2344         * c-common.c (conversion_warning): Check for null operands.
2345
2346 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2347
2348         PR c/31673
2349         * c-decl.c (check_for_loop_decls): Improve error message. Give
2350         hint.
2351
2352 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2353
2354         PR c/37186
2355         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
2356         (convert_for_assignment): Pass corrent OPT_W* parameter to
2357         WARN_FOR_ASSIGNMENT.
2358
2359 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
2360
2361         PR c++/35321
2362         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
2363
2364 2008-08-27  Paul Brook  <paul@codesourcery.com>
2365
2366         * config.gcc: Loosen checks for arm uclinux eabi targets.
2367
2368 2008-08-27  Paul Brook  <paul@codesourcery.com>
2369
2370         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
2371         _clzsi2.
2372         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2373
2374 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
2375
2376         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
2377         the enumerators of an ENUMERAL_TYPE.
2378         * dbxout.c (dbxout_type): Ditto.
2379
2380 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2381
2382         PR rtl-opt/37219
2383         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
2384         (fwprop_addr): Check that the loop_father is not the outer loop.
2385
2386 2008-08-26  Paul Brook  <paul@codesourcery.com>
2387
2388         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
2389         Remove documentation entry for fmul type.
2390         Use fmuls to annotate single-precision multiplication patterns,
2391         fmuld to annotate double-precision multiplication patterns,
2392         fmacs to annotate single-precision multiply-accumulate patterns
2393         and fmacd to annotate double-precision multiply-accumulate patterns.
2394         * config/arm/vfp11.md: Update reservations accordingly.
2395         * config/arm/arm.md: Note that certain values of the "type"
2396         attribute are documented in vfp.md.
2397         * config/arm/arm1020e.md: Remove out of date duplicate comment.
2398         (v10_cvt): Use new fmul types.
2399
2400 2008-08-26  Paul Brook   <paul@codesourcery.com>
2401
2402         * config/arm/vfp.md: Move pipeline description for VFP11 to...
2403         * config/arm/vfp11.md: ...here.  New.
2404         * config/arm/arm.md: Include vfp11.md.
2405
2406 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
2407
2408         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
2409         parameter to inform call.
2410
2411 2008-08-26  Jeff Law  <law@redhat.com>
2412
2413         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
2414         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
2415         preferred class when copying a constant into a partial word register.
2416
2417 2008-08-26  Ben Elliston  <bje@au.ibm.com>
2418
2419         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
2420         * cp/typeck.c: Likewise.
2421         * cp/tree.c: Likewise.
2422         * gimple-low.c: Likewise.
2423         * jump.c: Likewise.
2424
2425 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
2426
2427         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
2428         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
2429
2430         * doc/passes.texi: Describe IRA.
2431
2432         * doc/tm.texi (IRA_COVER_CLASSES,
2433         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
2434
2435         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
2436         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
2437         -fira-propagate-cost, -fno-ira-share-save-slots,
2438         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
2439
2440         * flags.h (ira_algorithm): New enumeration.
2441         (flag_ira_algorithm, flag_ira_verbose): New external variable
2442         declarations.
2443
2444         * postreload.c (gate_handle_postreload): Don't do post reload
2445         optimizations unless the reload is completed.
2446
2447         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
2448         IRA.
2449
2450         * tree-pass.h (pass_ira): New external variable declaration.
2451
2452         * reload.h: Add 2008 to the Copyright.
2453
2454         * cfgloopanal.c: Include params.h.
2455         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
2456         mode.
2457
2458         * params.h (IRA_MAX_LOOPS_NUM): New macro.
2459
2460         * toplev.c (ira.h): New include.
2461         (flag_ira_algorithm, flag_ira_verbose): New external variables.
2462         (backend_init_target): Call ira_init.
2463         (backend_init): Call ira_init_once.
2464         (finalize): Call finish_ira_once.
2465
2466         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
2467         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
2468         external variables.
2469
2470         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
2471         may_move_out_cost): New external variable declarations.
2472         (move_table): New typedef.
2473
2474         * caller-save.c: Include headers output.h and ira.h.
2475         (no_caller_save_reg_set): New global variable.
2476         (save_slots_num, save_slots): New variables.
2477         (reg_save_code, reg_restore_code, add_stored_regs): Add
2478         prototypes.
2479         (init_caller_save): Set up no_caller_save_reg_set.
2480         (init_save_areas): Reset save_slots_num.
2481         (saved_hard_reg): New structure.
2482         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
2483         (initiate_saved_hard_regs, new_saved_hard_reg,
2484         finish_saved_hard_regs, saved_hard_reg_compare_func): New
2485         functions.
2486         (setup_save_areas): Add code for sharing stack slots.
2487         (all_blocks): New variable.
2488         (save_call_clobbered_regs): Process pseudo-register too.
2489         (mark_set_regs): Process pseudo-register too.
2490         (insert_one_insn): Put the insn after bb note in a empty basic
2491         block.  Add insn check.
2492
2493         * global.c (eliminable_regset): Make it external.
2494         (mark_elimination): Use DF_LR_IN for IRA.
2495         (pseudo_for_reload_consideration_p): New.
2496         (build_insn_chain): Make it external.  Don't ignore spilled
2497         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
2498         (gate_handle_global_alloc): New function.
2499         (pass_global_alloc): Add the gate function.
2500
2501         * opts.c (decode_options): Set up flag_ira.  Print the warning for
2502         -fira.
2503         (common_handle_option): Process -fira-algorithm and -fira-verbose.
2504
2505         * timevar.def (TV_IRA, TV_RELOAD): New passes.
2506
2507         * regmove.c (regmove_optimize): Don't do replacement of output for
2508         IRA.
2509
2510         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
2511         New external variable declarations.
2512
2513         * local-alloc.c (update_equiv_regs): Make it external.  Return
2514         true if jump label rebuilding should be done.  Rescan new_insn for
2515         notes.
2516         (gate_handle_local_alloc): New function.
2517         (pass_local_alloc): Add the gate function.
2518
2519         * alias.c (value_addr_p, stack_addr_p): New functions.
2520         (nonoverlapping_memrefs_p): Use them for IRA.
2521
2522         * common.opt (fira, fira-algorithm, fira-coalesce,
2523         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
2524         fira-verbose): New options.
2525
2526         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
2527         move_cost, may_move_in_cost, may_move_out_cost): Make the
2528         variables external.
2529         (move_table): Remove typedef.
2530         (init_move_cost): Make it external.
2531         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
2532         functions.
2533
2534         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
2535         setup_reg_classes): New function prototypes.
2536         (eliminable_regset): New external variable declaration.
2537         (build_insn_chain, update_equiv_regs): New function prototypes.
2538
2539         * Makefile.in (IRA_INT_H): New definition.
2540         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
2541         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
2542         (reload1.o, toplev.o): Add dependence on ira.h.
2543         (cfgloopanal.o): Add PARAMS_H.
2544         (caller-save.o): Add dependence on output.h and ira.h.
2545         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
2546         ira-emit.o, ira-lives.o): New entries.
2547
2548         * passes.c (pass_ira): New pass.
2549
2550         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
2551
2552         * reload1.c (ira.h): Include the header.
2553         (changed_allocation_pseudos): New bitmap.
2554         (init_reload): Initiate the bitmap.
2555         (compute_use_by_pseudos): Permits spilled registers in FROM.
2556         (temp_pseudo_reg_arr): New variable.
2557         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
2558         IRA.  Call alter_reg with the additional parameter.  Don't clear
2559         spilled_pseudos for IRA.  Restore original insn chain for IRA.
2560         Clear changed_allocation_pseudos at the end of reload.
2561         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
2562         (hard_regno_to_pseudo_regno): New variable.
2563         (count_pseudo): Check spilled pseudos.  Set up
2564         hard_regno_to_pseudo_regno.
2565         (count_spilled_pseudo): Check spilled pseudos. Update
2566         hard_regno_to_pseudo_regno.
2567         (find_reg): Use better_spill_reload_regno_p.  Check
2568         hard_regno_to_pseudo_regno.
2569         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
2570         code for IRA.
2571         (eliminate_regs_1): Use additional parameter for alter_reg.
2572         (finish_spills): Set up pseudo_previous_regs only for spilled
2573         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
2574         more arguments.  Don't clear live_throughout and dead_or_set for
2575         spilled pseudos.  Use additional parameter for alter_reg.  Call
2576         mark_allocation_change.  Set up changed_allocation_pseudos.
2577         Remove sanity check.
2578         (emit_input_reload_insns, delete_output_reload): Use additional
2579         parameter for alter_reg.  Call mark_allocation_change.
2580         (substitute, gen_reload_chain_without_interm_reg_p): New
2581         functions.
2582         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
2583
2584         * testsuite/gcc.dg/20080410-1.c: New file.
2585
2586         * config/s390/s390.h (IRA_COVER_CLASSES,
2587         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
2588
2589         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
2590
2591         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
2592
2593         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2594
2595         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
2596
2597         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2598
2599         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
2600
2601         2008-08-24  Jeff Law  <law@redhat.com>
2602         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
2603         when ignoring unavailable registers.
2604
2605         2008-08-24  Jeff Law  <law@redhat.com>
2606         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
2607         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
2608         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
2609         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
2610
2611         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
2612         * ira-build.c (allocno_range_compare_func): Stabilize sort.
2613
2614         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
2615         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
2616         * reload1.c (find_reg): Process registers in register allocation order.
2617
2618         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2619         * toplev.c (backend_init_target): Move ira_init call from
2620         here...
2621         (lang_dependent_init_target): ...to here.
2622
2623         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2624         * ira.c (setup_class_subset_and_memory_move_costs): Don't
2625         calculate memory move costs for NO_REGS.
2626
2627         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
2628         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
2629         STACK_REGS is defined.
2630
2631         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2632         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
2633
2634         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
2635         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
2636
2637         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
2638         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
2639         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
2640         barrier.
2641
2642 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
2643             Dorit Nuzman  <dorit@il.ibm.com>
2644
2645         * gcc/config/spu/spu.md (vec_extract_evenv4si,
2646         vec_extract_evenv4sf, vec_extract_evenv8hi,
2647         vec_extract_evenv16qi, vec_extract_oddv4si,
2648         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2649         vec_interleave_highv4sf, vec_interleave_lowv4sf,
2650         vec_interleave_highv4si, vec_interleave_lowv4si,
2651         vec_interleave_highv8hi, vec_interleave_lowv8hi,
2652         vec_interleave_highv16qi, vec_interleave_lowv16qi,
2653         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
2654
2655 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
2656
2657         PR target/36756
2658         * config/rs6000/rs6000.c (optimization_options): Don't default to
2659         section anchors without toplevel reorder.
2660
2661 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2662
2663         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
2664         (mfc_end_critical_section): Likewise.
2665
2666 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2667
2668         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
2669         all type qualifiers from element type to vector type.
2670
2671 2008-08-25  David Daney  <ddaney@avtrex.com>
2672
2673         * config/mips/mips.md (immediate_insn): Move up in file, fix
2674         comment typo, reformat.
2675         (fetchop_bit, atomic_hiqi_op memory_barrier,
2676         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
2677         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
2678         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
2679         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
2680         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
2681         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
2682         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
2683         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
2684         sync_old_nand<mode>, sync_new_nand<mode>,
2685         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
2686         test_and_set_12): Moved to sync.md.
2687         (sync.md): Include.
2688         * config/mips/sync.md: New file.
2689
2690 2008-08-25  Richard Henderson  <rth@redhat.com>
2691
2692         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
2693         (regsave): Likewise.
2694         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
2695         (output_cfi_directive): Likewise.
2696         (div_data_align): New.
2697         (output_cfi): Use it.
2698
2699 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
2700
2701         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
2702         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
2703         (TARGET_OCTEON): New macro.
2704         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
2705         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
2706         (ISA_HAS_POP): New macro.
2707         * config/mips/driver-native.c (host_detect_local_cpu): Handle
2708         Octeon.
2709         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
2710         Handle Octeon.
2711         * config/mips/mips.md (cpu): Add octeon.
2712         (type): Add pop attribute value.
2713         (popcount<mode>2): New pattern.
2714         * doc/invoke.texi (-march=@var{arch}): Add octeon.
2715
2716 2008-08-24  Jan Hubicka  <jh@suse.cz>
2717
2718         * doc/invoke.texi (-fipa-cp-clone): New option.
2719         (-fipa-cp): Update docs.
2720         (--param ipcp-unit-growth):New.
2721         * ipa-cp.c: Include fibheap.h, params.h
2722         (ipcp_initialize_node_lattices): When not cloning, all externally
2723         visible functions are bottom.
2724         (ipcp_need_redirect_p): Accept clones.
2725         (ipcp_insert_stage): Use cost driven heuristics.
2726         (max_count, dead_nodes): New static vars.
2727         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
2728         ipcp_const_param_count): New functions.
2729         * common.opt (ipa-cp-clone): New command line option.
2730         * params.def (ipcp-unit-growth): New.
2731
2732 2008-08-24  Jan Hubicka  <jh@suse.cz>
2733
2734         * tree-inline.c (tree_function_versioning): Look harder
2735         for referenced vars.
2736
2737 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
2738
2739         PR tree-optimization/37185
2740         * matrix-reorg.c (transform_access_sites): Update changed stmt.
2741
2742 2008-08-23  Jan Hubicka  <jh@suse.cz>
2743
2744         * ipa-cp.c (ipcp_analyze_node): New function.
2745         (ipcp_update_cloned_node): Use it.
2746         (ipcp_init_stage): Likewise.
2747         * ipa-inline.c (function_insertion_hook_holder): New static var.
2748         (analyze_function): Break out from ....
2749         (inline_generate_summary): Here; register insertion hook.
2750         (cgraph_decide_inlining): Remove hook.
2751         (add_new_function): New function.
2752
2753 2008-08-23  Jan Hubicka  <jh@suse.cz>
2754
2755         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
2756
2757 2008-08-23  Jan Hubicka  <jh@suse.cz>
2758
2759         * ipa-cp.c (constant_val_insert): Remove.
2760         (ipcp_propagate_one_const): Remove.
2761         (ipcp_create_replace_map): Always insert replacements to the map.
2762         (ipcp_insert_stage): Do not try to insert statements by hand.
2763         * tree-inline.c (insert_init_stmt): Break out from ...
2764         (setup_one_parameter): ... here; allow NULL BB pointer.
2765         (tree_function_versioning): Use setup_one_parameter to process
2766         replacement map.
2767
2768 2008-08-23  Jan Hubicka  <jh@suse.cz>
2769
2770         * tree.c (decl_address_ip_invariant_p): New function.
2771         * tree.h (decl_address_ip_invariant_p): Declare.
2772         * gimple.c (strip_invariant_refs): Break out from ...
2773         (is_gimple_invariant_address): ... here
2774         (is_gimple_ip_invariant_address): New function.
2775         (is_gimple_ip_invariant): New function.
2776         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
2777         Declare.
2778
2779         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
2780         (ipcp_lat_is_insertable): All constants are insertable.
2781         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
2782         IPA_CONST_VALUE_REF.
2783         (ipcp_initialize_node_lattices): Propagate all types of operands.
2784         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
2785         (ipcp_create_replace_map): Reformat.
2786         (ipcp_need_redirect_p): Simplify.
2787         (ipcp_insert_stage): Check that argument is used before clonning.
2788         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
2789         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
2790         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
2791         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
2792         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
2793         (jump_func_type): Remove IPA_CONST_VALUE_REF.
2794         * tree-inline.c (tree_function_versioning): Add variables referenced by
2795         replacing trees.
2796
2797 2008-08-23  Jan Hubicka  <jh@suse.cz>
2798
2799         PR target/37094
2800         * i386.c (standard_80387_constant_p): Use optimize_size.
2801
2802 2008-08-23  Ira Rosen  <irar@il.ibm.com>
2803
2804         PR tree-optimization/37161
2805         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
2806         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
2807         (vect_determine_vectorization_factor): Move the scalar type
2808         retrieval to vect_get_smallest_scalar_type.
2809         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
2810         scalar type. Remove redundant computation.
2811         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
2812         (vect_get_slp_defs): Take the type of RHS into account if
2813         necessary by calling vect_get_smallest_scalar_type. Call
2814         vect_get_constant_vectors with additional argument.
2815
2816 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2817
2818         PR 35648
2819         * doc/invoke.texi (Wwrite-strings): Clarify description.
2820
2821 2008-08-23  Ira Rosen  <irar@il.ibm.com>
2822
2823         PR tree-optimization/37174
2824         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
2825         def stmt is a part of the loop before accessing its stmt_vec_info.
2826
2827 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
2828
2829         PR target/11259
2830         * config/avr/avr.md (UNSPEC_SWAP): New constants.
2831         (*swap): New insn pattern.
2832         (*ashlqi3): Rename from ashlqi3 insn pattern.
2833         (ashlqi3): New expanders.
2834         (*lshrqi3): Rename from lshrqi3 insn pattern.
2835         (lshrqi3): New expanders.
2836         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
2837         lshrqi3_const5, lshrqi3_const6): New splitters.
2838         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
2839         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
2840         peephole2 patterns.
2841
2842 2008-08-22  Richard Guenther  <rguenther@suse.de>
2843
2844         PR tree-optimization/37078
2845         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
2846         [+INF, +INF] ranges.
2847
2848 2008-08-22  Richard Guenther  <rguenther@suse.de>
2849
2850         PR tree-optimization/37143
2851         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
2852         a conversion statement instead of a copy.
2853
2854 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
2855
2856         PR target/37184
2857         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
2858         CCCmode, CCOmode and CCSmode destination modes.
2859
2860         PR target/37191
2861         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
2862         from different units in a single alternative.
2863         (*vec_extractv2sf_1): Ditto.
2864         (*vec_extractv2si_0): Ditto.
2865         (*vec_extractv2si_1): Ditto.
2866         * config/i386/sse.md (sse2_storehpd): Ditto.
2867         (sse2_storelpd): Ditto.
2868         (sse2_loadhpd): Ditto.
2869         (sse2_loadlpd): Ditto.
2870
2871         PR target/37197
2872         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
2873         (popcountsi2): Ditto.
2874         (clzdi2_abm): Ditto.
2875         (popcountdi2): Ditto.
2876         (clzhi2_abm): Ditto.
2877         (popcounthi2): Ditto.
2878
2879 2008-08-22  Richard Guenther  <rguenther@suse.de>
2880
2881         PR middle-end/36548
2882         PR middle-end/37125
2883         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
2884         if the multiplication does not overflow.
2885
2886 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
2887
2888         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
2889
2890 2008-08-21  Richard Henderson  <rth@redhat.com>
2891
2892         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
2893         spurrious comma from test.
2894         * configure: Rebuild.
2895
2896 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2897
2898         PR 30457
2899         * builtins.c (fold_builtin_next_arg): Add warning about undefined
2900         behaviour.
2901
2902 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
2903
2904         * c-tree.h (grokfield): New argument.
2905         * c-decl.c (grokfield): Handle new location argument.
2906         * c-parser.c (c_parser_struct_declaration): Pass location to
2907         grokfield.
2908
2909 2008-08-21  Richard Guenther  <rguenther@suse.de>
2910
2911         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
2912
2913 2008-08-21  Jan Hubicka  <jh@suse.cz>
2914
2915         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
2916         (cgraph_add_function_insertion_hook,
2917         cgraph_remove_function_insertion_hook,
2918         cgraph_call_function_insertion_hooks): New functions.
2919         * cgraph.h (cgraph_add_function_insertion_hook,
2920         cgraph_remove_function_insertion_hook,
2921         cgraph_call_function_insertion_hooks): Declare.
2922         * ipa-reference.c (function_insertion_hook_holder): New variable.
2923         (check_operand, look_for_address_of): When checking late, do not care
2924         about module bitmaps.
2925         (add_new_function): New function.
2926         (generate_summary): Register hooks; zero module bitmaps.
2927         (propagate): Unregister hooks.
2928         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
2929         (add_new_function): New function.
2930         (generate_summary): Register hook.
2931         (propagate): Remove hook.
2932
2933         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
2934
2935         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
2936         * ipa-cp.c (ipcp_update_cloned_node): New function.
2937         (build_const_val): Handle functions correctly; bring type logic
2938         into sync with tree-inline.c
2939         (ipcp_init_stage):  Take care of computing stuff needed by
2940         indirect inlining; update clones.
2941         (ipcp_generate_summary): Break out of ipcp_driver.
2942         (ipcp_driver): Do only execution and transformation.
2943         (pass_ipa_cp): Make IPA_PASS.
2944         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
2945         offset to address.
2946         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
2947         ipcp, some info is already available.
2948         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
2949         * tree-inline.c (remap_ssa_name): Unshare expression.
2950
2951 2008-08-21  Richard Guenther  <rguenther@suse.de>
2952
2953         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
2954         a PHI ask VN if it is already available.
2955         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
2956         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
2957
2958 2008-08-21  Richard Guenther  <rguenther@suse.de>
2959
2960         PR middle-end/36817
2961         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
2962         makes sure to produce a result of the correct type.
2963
2964 2008-08-21  Jan Hubicka  <jh@suse.cz>
2965         Backport from LTO branch:
2966
2967         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
2968                     Jan Hubicka  <jh@suse.cz>
2969
2970         * ipa-pure-const.c
2971         (init_state, finish_state, set_function_state, generate_summary):
2972         New functions.
2973         (scan_stmt): Renamed from scan_function.  Changed to keep state in
2974         local static vars rather than cgraph aux field.
2975         (propagate): Renamed from static_execute. Changed to keep state in
2976         local static vars rather than cgraph aux field.
2977         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
2978         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
2979
2980         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
2981
2982         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
2983         * ipa-reference.c (init_function_info, generate_summary,
2984         propagate): New functions.
2985         (analyze_function):  Call init_function_info.
2986         (static_execute): Stripped into generate_summary and propagate.
2987         (pass_ipa_reference): Made into ipa_opt_pass.
2988
2989 2008-08-21  Richard Guenther  <rguenther@suse.de>
2990
2991         PR tree-optimization/37181
2992         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
2993         folding result.
2994         (extract_range_from_unary_expr): Likewise.
2995
2996 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2997
2998         * diagnostic.c (pedwarn_at): Rename as pedwarn.
2999         (pedwarn): Delete.
3000         * toplev.h (pedwarn_at): Likewise.
3001         * builtins.c: Update all calls to pedwarn.
3002         * c-lex.c: Likewise.
3003         * toplev.c: Likewise.
3004         * c-tree.h: Likewise.
3005         * c-decl.c: Likewise.
3006         * c-errors.c: Likewise.
3007         * c-typeck.c: Likewise.
3008         * c-common.c: Likewise.
3009         * c-parser.c: Likewise.
3010
3011 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
3012
3013         PR target/31070
3014         * config/sparc/sparc.c (function_arg_slotno): Handle structure
3015         with MODE_VECTOR_INT mode.
3016
3017 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3018
3019         PR middle-end/179
3020         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3021         initialized outside the current module.
3022         (warn_uninitialized_var): Ignore left-hand side when walking the
3023         trees. Ignore address expressions. Examine VUSE operands in gimple
3024         statements with a variable declaration on the right-hand side.
3025
3026 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3027
3028         PR bootstrap/37155
3029         * rtlanal.c (subreg_offset_representable_p): Revert last change.
3030
3031 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3032
3033         PR 35701
3034         * c-common.c (conversion_warning): Do not warn if applying bit-and
3035         operator to unsigned constant that fits in the target type.
3036
3037 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3038
3039         PR c++/35602
3040         * c-common.c (conversion_warning): Do not warn for artificial
3041         expressions.
3042
3043 2008-08-20  Richard Guenther  <rguenther@suse.de>
3044
3045         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3046         (extract_range_from_binary_expr): Fall back to constant propagation.
3047         (extract_range_from_unary_expr): Likewise.
3048
3049 2008-08-20  Richard Guenther  <rguenther@suse.de>
3050
3051         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3052         with TREE_THIS_VOLATILE on shared nodes.
3053         (fold_stmt_r): Likewise.
3054
3055 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
3056
3057         PR c/37171
3058         * c-parser.c (c_parser_attributes): For keywords use canonical
3059         spelling for attr_name.
3060
3061 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3062
3063         * value-prof.c (check_counter): Revert wrong call to error.
3064
3065 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3066
3067         * profile.c: Update calls to inform.
3068         * value-prof.c: Update calls to inform.
3069
3070 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3071
3072         * diagnostic.c (inform): Add an explicit location_t parameter.
3073         * toplev.h (inform): Update declaration.
3074         * builtins.c: Update all calls to inform.
3075         * c-common.c: Likewise.
3076         * c-decl.c: Likewise.
3077         * c-opts.c: Likewise.
3078         * c-pch.c: Likewise.
3079         * c-pragma.c: Likewise.
3080         * c-typeck.c: Likewise.
3081         * coverage.c: Likewise.
3082         * opts.c: Likewise.
3083         * toplev.c: Likewise.
3084         * tree-cfg.c: Likewise.
3085         * tree-ssa.c: Likewise.
3086
3087 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3088
3089         PR target/37169
3090         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
3091         V2DI mode, for SSE4.1, use movq instead of vector set if the
3092         second element is zero and inter-unit moves are OK.
3093
3094 2008-08-20  Richard Guenther  <rguenther@suse.de>
3095
3096         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
3097         properly handle conversion/copy chains after tuplification.
3098
3099 2008-08-20  Richard Guenther  <rguenther@suse.de>
3100
3101         * passes.c (init_optimization_passes): Move the second
3102         forwprop pass before alias computation.  Remove the second
3103         DCE pass.  Remove the first dominator and phi copy/const
3104         prop passes.
3105
3106 2008-08-20  Nick Clifton  <nickc@redhat.com>
3107
3108         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
3109         support of this feature.  Do not assume that a sufficiently new
3110         assembler will support the feature regardless of the target type.
3111         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3112         * configure: Regenerate.
3113
3114 2008-08-20  Richard Guenther  <rguenther@suse.de>
3115
3116         * tree-vrp.c (found_in_subgraph): Remove.
3117         (live): New global static.
3118         (live_on_edge): New function.
3119         (blocks_visited): Remove.
3120         (register_edge_assert_for_2): Use live_on_edge.
3121         (find_conditional_asserts): Remove code dealing with
3122         found_in_subgraph.  Do not walk the CFG.
3123         (find_switch_asserts): Likewise.
3124         (find_assert_locations_1): Renamed from find_assert_locations.
3125         Move finding assert locations for conditional and switch
3126         statements first.  Update live bitmap.  Do not walk the CFG.
3127         (find_assert_locations): New function.
3128         (insert_range_assertions): Remove entry of CFG walk.
3129         Adjust call to find_assert_locations.
3130         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
3131         that only can appear because of fake exit edges but assert we
3132         never try to insert on those.
3133         (fini_pre): Do not remove fake exit edges here...
3134         (execute_pre): ...but here, before committing edge inserts.
3135
3136 2008-08-19  Richard Guenther  <rguenther@suse.de>
3137
3138         * passes.c (init_optimization_passes): Exchange store-ccp
3139         with a ccp pass.
3140
3141 2008-08-19  Rafael Espindola  <espindola@google.com>
3142
3143         * varasm.c (weak_decls): Move earlier in the file.
3144         (assemble_external): Add weak decls to the weak_decls list.
3145         (declare_weak): Don't add decls to the weak_decls list.
3146
3147 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3148
3149         PR target/37157
3150         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
3151         before (sse2_shufpd_<mode>).
3152
3153 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
3154
3155         PR debug/37156
3156         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
3157         * tree.c (block_nonartificial_location): Likewise.
3158
3159 2008-08-19  Richard Guenther  <rguenther@suse.de>
3160
3161         PR tree-optimization/35972
3162         PR tree-optimization/23094
3163         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
3164         parameter.
3165         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3166         handle MISALIGNED_INDIRECT_REF.
3167         (get_ref_from_reference_ops): New helper.
3168         (vn_reference_lookup_pieces): Walk the use-def chain using the
3169         alias-oracle if requested.
3170         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3171         walking the use-def chain.
3172         (compute_avail): But not here.
3173         (create_component_ref_by_pieces_1): Properly handle
3174         MISALIGNED_INDIRECT_REF.
3175         (do_regular_insertion): Handle fully redundant
3176         expressions after PHI-translation also for SSA_NAME values, not
3177         only constants.  Correctly use edoubleprime for that.
3178
3179 2008-08-19  Ira Rosen  <irar@il.ibm.com>
3180
3181         * tree-vectorizer.c (supportable_widening_operation): Support
3182         multi-step conversion, return the number of steps in such conversion
3183         and the required intermediate types.
3184         (supportable_narrowing_operation): Likewise.
3185         * tree-vectorizer.h (vect_pow2): New function.
3186         (supportable_widening_operation): Change argument types.
3187         (supportable_narrowing_operation): Likewise.
3188         (vectorizable_type_promotion): Add an argument.
3189         (vectorizable_type_demotion): Likewise.
3190         * tree-vect-analyze.c (vect_analyze_operations): Call
3191         vectorizable_type_promotion and vectorizable_type_demotion with
3192         additional argument.
3193         (vect_get_and_check_slp_defs): Detect patterns.
3194         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
3195         types.
3196         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
3197         vect_build_slp_tree with correct arguments. Calculate unrolling factor
3198         according to the smallest type in the loop.
3199         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
3200         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
3201         supportable_widening_operation with correct arguments.
3202         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
3203         operands lists according to the number of vector statements in left
3204         or right node, if exists.
3205         (vect_gen_widened_results_half): Remove unused argument.
3206         (vectorizable_conversion): Call supportable_widening_operation,
3207         supportable_narrowing_operation, and vect_gen_widened_results_half
3208         with correct arguments.
3209         (vectorizable_assignment): Change documentation, support multiple
3210         types in SLP.
3211         (vectorizable_operation): Likewise.
3212         (vect_get_loop_based_defs): New function.
3213         (vect_create_vectorized_demotion_stmts): Likewise.
3214         (vectorizable_type_demotion): Support loop-aware SLP and general
3215         multi-step conversion. Call vect_get_loop_based_defs and
3216         vect_create_vectorized_demotion_stmts for transformation.
3217         (vect_create_vectorized_promotion_stmts): New function.
3218         (vectorizable_type_promotion): Support loop-aware SLP and general
3219         multi-step conversion. Call vect_create_vectorized_promotion_stmts
3220         for transformation.
3221         (vectorizable_store): Change documentation, support multiple
3222         types in SLP.
3223         (vectorizable_load): Likewise.
3224         (vect_transform_stmt): Pass SLP_NODE to
3225         vectorizable_type_promotion and vectorizable_type_demotion.
3226         (vect_schedule_slp_instance): Move here the calculation of number
3227         of vectorized statements for each node from...
3228         (vect_schedule_slp): ... here.
3229         (vect_transform_loop): Call vect_schedule_slp without the last
3230         argument.
3231
3232 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
3233
3234         PR bootstrap/37152
3235         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
3236         to == in assert statement.
3237         (vectorizable_reduction): Fix typo.
3238
3239 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3240
3241         PR bootstrap/37153
3242         * value-prof.c (check_counter): Dereference pointer to overall
3243         count when printing it.
3244
3245 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3246
3247         * profile.h: Really add it.
3248
3249 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3250
3251         * mcf.c: Really add it.
3252
3253 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
3254             Vinodha Ramasamy  <vinodha@google.com>
3255
3256         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
3257         count_scale.
3258         * value-prof.c (check_counter): Fix the counter if
3259         flag_profile_correction is true.
3260         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3261         tree_mod_subtract_transform):
3262         Follow check_counter parameter change.
3263         * common.opt (fprofile-correction): New option.
3264         * mcf.c: New file.
3265         * profile.h: Likewise.
3266         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
3267         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
3268         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
3269         functions.
3270         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
3271         flag_profile_correction is set.
3272
3273 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
3274
3275         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
3276
3277 2008-08-18  Tomas Bily  <tbily@suse.cz>
3278
3279         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
3280         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
3281         CONVERT_EXPR_P.
3282         * tree-data-ref.c (split_constant_offset_1): Likewise.
3283         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
3284         * tree-sra.c (sra_walk_expr): Likewise.
3285         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
3286         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3287         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
3288         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
3289         Likewise.
3290         * gimple.c (gimple_assign_unary_nop_p): Likewise.
3291         * tree-vect-transform.c (vectorizable_type_demotion)
3292         (vectorizable_type_promotion): Likewise.
3293         * tree-inline.c (expand_call_inline):
3294         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3295         (forward_propagate_addr_expr_1, forward_propagate_comparison)
3296         (tree_ssa_forward_propagate_single_use_vars): Likewise.
3297         * expr.c (expand_expr_real_1): Likewise.
3298         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
3299         (gimple_assign_unary_useless_conversion_p): Likewise.
3300         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3301         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
3302         * fold-const.c (fold_unary): Likewise.
3303         * tree.h (CONVERT_EXPR_P): Likewise.
3304         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
3305         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3306         * tree-vrp.c:
3307         (register_edge_assert_for_2, extract_range_from_unary_expr)
3308         (register_edge_assert_for_1): Likewise.
3309
3310 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3311
3312         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
3313         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
3314         (enum real_value_const): Delete.
3315         (get_real_const): Delete.
3316         * real.c (get_real_const): Delete.
3317         (dconst_e_ptr): Define.
3318         (dconst_third_ptr): Define.
3319         (dconst_sqrt2_ptr): Define.
3320         * builtins.c: Update all callers.
3321
3322 2008-08-18  Richard Guenther  <rguenther@suse.de>
3323
3324         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
3325         statement iterator after statement removal.
3326
3327 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
3328
3329         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
3330         (detect_processor_freebsd): Likewise.
3331         (host_detect_local_cpu): Call newly added functions for FreeBSD.
3332
3333 2008-08-18  Richard Guenther  <rguenther@suse.de>
3334
3335         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
3336         and loads have the correct types.
3337
3338 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3339
3340         PR cpp/7263
3341         * c-opts.c (cpp_opts): Remove static.
3342         * c-parser.c (cpp_opts): Declare it extern.
3343         (disable_extension_diagnostics): Handle cpp options.
3344         (enable_extension_diagnostics): Likewise.
3345
3346 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3347
3348         * diagnostics.c (permerror_at): Rename as permerror.
3349         (permerror): Delete.
3350         * toplev.h: Likewise.
3351
3352 2008-08-18  Richard Guenther  <rguenther@suse.de>
3353
3354         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
3355         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
3356         Move call_cdce before build_alias.  Move copyrename2,
3357         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
3358         right after final inlining.
3359         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
3360         (pass_build_cfg): But instead via TODO_dump_func.
3361
3362 2008-08-18  Richard Guenther  <rguenther@suse.de>
3363
3364         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
3365         element index.
3366         (scalarize_init): If we failed to generate some initializers
3367         do not generate zeros for not instantiated members.  Instead
3368         rely on the copy out.
3369         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
3370         about missing flow-sensitive alias info only if we have
3371         aliases computed.
3372
3373 2008-08-17  Nick Clifton  <nickc@redhat.com>
3374
3375         * doc/extend.texi (Function Attributes): Fix typo in description
3376         if hot function attribute.
3377
3378 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
3379             Richard Sandiford  <rdsandiford@googlemail.com>
3380
3381         * doc/install.texi (--with-mips-plt): Document.
3382         * doc/invoke.texi (-mplt, -mno-plt): Document.
3383         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
3384         and handle ${with_mips_plt}.
3385         * config/mips/mips.opt (mplt): New option.
3386         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
3387         (TARGET_ABICALLS_PIC2): Likewise.
3388         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
3389         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
3390         (ASM_SPEC): Use !mabi=* instead of !mabi*.
3391         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
3392         to decide whether to output ".option picX" directives.
3393         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
3394         Pass -call_nonpic rather than -KPIC for -mplt.
3395         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
3396         on the command line.  Also remove it when -mabi=64 is used without
3397         -msym32.
3398         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
3399         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
3400         TARGET_ABICALLS_PIC0.
3401         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
3402         TARGET_ABICALLS.
3403         (mips16_build_function_stub): Only output ".option pic" directives
3404         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
3405         (mips16_build_call_stub): Fix comment and remove redundant
3406         ".set at"/"set .noat" directives.
3407         (mips_function_rodata_section): Use the default behaviour for
3408         TARGET_ABSOLUTE_ABICALLS.
3409         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
3410         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
3411         (mips_restore_gp): Do nothing if the current function doesn't use
3412         a global pointer.
3413         (mips_expand_prologue): Only save $gp if the current function uses it.
3414         Use a normal move for TARGET_ABICALLS_PIC0.
3415         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
3416
3417 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
3418
3419         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
3420         of function when handling GLOBAL_POINTER_REGNUM.
3421
3422 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3423
3424         PR ada/20548
3425         * common.opt (-fstack-check): Do not declare the variable here.
3426         (-fstack-check=): New option variant.
3427         * doc/invoke.texi (Code Gen Options): Document it.
3428         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
3429         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
3430         (STACK_CHECK_STATIC_BUILTIN): New macro.
3431         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
3432         * opts.c: Include expr.h.
3433         (common_handle_option) <OPT_fold_stack_check_>: New case.
3434         <OPT_fstack_check>: Likewise.
3435         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
3436         consistently in the test for variable-sized types.  Adjust for
3437         new behaviour of flag_stack_check.
3438         * explow.c: Include except.h.
3439         (allocate_dynamic_stack_space): Do not take into account
3440         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
3441         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
3442         for variable-sized parameters.  Treat all parameters whose size is
3443         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
3444         stack checking is enabled.
3445         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
3446         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
3447         if generic stack checking is enabled.
3448         (expand_function_end): Adjust for new behaviour of flag_stack_check.
3449         * reload1.c (reload): Likewise.
3450         * stmt.c (expand_decl): Assert that all automatic variables have
3451         fixed size at this point and remove dead code.
3452         * flags.h (stack_check_type): New enumeration type.
3453         (flag_stack_check): Declare.
3454         * toplev.c (flag_stack_check): New global variable.
3455         * Makefile.in (opts.o): Add dependency on EXPR_H.
3456         (explow.o): Add dependency on except.h.
3457
3458 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
3459
3460         * config/avr/avr.c (avr_override_options): Reduce value of
3461         PARAM_INLINE_CALL_COST.
3462
3463 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
3464
3465         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
3466         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
3467         lieu of TYPE_MODE (type) throughout.
3468
3469 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
3470
3471         * config/arm/arm.c (add_minipool_backward_ref): Check for
3472         8-byte-aligned entries in second case of forcing insertion after a
3473         particular entry.  Change third case to avoid inserting
3474         non-8-byte-aligned entries before 8-byte-aligned ones.
3475
3476 2008-08-15  Richard Guenther  <rguenther@suse.de>
3477
3478         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
3479         strip components for unknown size accesses.
3480
3481 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
3482
3483         * config/s390/2097.md New file.
3484         * config/s390/s390.md ("z10prop" attribute): Define none,
3485         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
3486         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
3487         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
3488         possible values and apply them to insns as appropriate.
3489         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
3490         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
3491         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
3492         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
3493         values.
3494         ("bfp" mode attribute): Removed.  Every occurence replaced
3495         with <mode>.
3496         * config/s390/s390.c (struct "z10_cost"): Updated entries.
3497         * config/s390/2084.md (insn_reservation "x_itof"): Updated
3498           type attribute.
3499
3500 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3501
3502         PR c/28152
3503         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
3504         for keywords.
3505
3506 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
3507
3508         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
3509         additional argument. Support reduction when duplication is needed due
3510         to data-types of different sizes in the loop.
3511         (get_initial_def_for_induction): Fix printout.
3512         (vect_get_vec_def_for_stmt_copy): Support case where the
3513         vec_stmt_for_operand is a phi node.
3514         (vectorizable_reduction): Support reduction when duplication is needed
3515         due to data-types of different sizes in the loop.
3516         (vectorizable_call): Remove restriction to not vectorize in case we
3517         have data-types of different sizes in the loop.
3518         (vectorizable_conversion): Likewise.
3519         (vectorizable_operation): Likewise.
3520         (vectorizable_type_demotion): Likewise.
3521         (vectorizable_type_promotion): Likewise.
3522         (vectorizable_induction): Add restriction to not vectorize in case
3523         we have data-types of different sizes in the loop.
3524
3525 2008-08-14  Christophe Saout  <christophe@saout.de>
3526             Uros Bizjak  <ubizjak@gmail.com>
3527
3528         PR target/37101
3529         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
3530         (*vec_concatv2di_rex64_sse4_1): Ditto.
3531         (*vec_concatv2di_rex64_sse): Ditto.
3532
3533 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
3534
3535         PR middle-end/37103
3536         * fold-const.c (fold_widened_comparison): Do not allow
3537         sign changes that change the result even if shorter type
3538         is wider than arg1_unw's type.
3539
3540 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
3541
3542         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
3543         Skip if the multilib testing specifies -march that does not
3544         agree with the one specified in the testcase.
3545
3546 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
3547
3548         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
3549         zero extend SImode values being converted to TFmode before passing
3550         to libcalls.
3551
3552 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3553
3554         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3555         __PPU__ when targeting the Cell/B.E. PPU processor.
3556
3557 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
3558
3559         * gimple.h (gimple_call_set_chain): Accept SSA variables.
3560         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
3561         Rematerialize the static chain, if any.
3562         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
3563         static chain.
3564
3565 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
3566
3567         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
3568         (new_loc_descr): Likewise.
3569         (add_loc_descr): Likewise.
3570         (size_of_loc_descr): Likewise.
3571         (size_of_locs): Likewise.
3572         (output_loc_operands): Likewise.
3573         (output_loc_sequence): Likewise.
3574         (new_reg_loc_descr): New.
3575         (build_cfa_loc): Use it.
3576         (build_cfa_aligned_loc): Likewise.
3577         (one_reg_loc_descriptor): Likewise.
3578         (based_loc_descr): Likewise.
3579
3580 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3581
3582         PR 30551
3583         * doc/invoke.texi (Wmain): Update.
3584         * c-decl.c (start_decl): warn_main is only 0 or 1.
3585         (start_function): Likewise. Fix formatting.
3586         (finish_function): Delete redundant warning.
3587         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
3588         * c-opts (c_common_handle_option): -Wall only has effect if
3589         warn_main is uninitialized. OPT_Wmain is automatically
3590         handled. -pedantic also enables Wmain.
3591         (c_common_post_options): Handle all logic for Wmain here.
3592         * c-common.c (warn_main): Delete.
3593         (check_main_parameter_types): Make pedwarns conditional on
3594         OPT_Wmain.
3595         * c-common.h (warn_main): Delete.
3596
3597 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
3598
3599         PR middle-end/36701
3600         * expr.c (emit_group_store): Allocate stack temp with the
3601         largest alignment when copying from register to stack.
3602
3603 2008-08-13  Richard Guenther  <rguenther@suse.de>
3604
3605         * tree.h (maybe_fold_offset_to_address): Declare.
3606         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
3607         (ccp_fold): Handle pointer conversions the same as fold_stmt.
3608         Likewise for POINTER_PLUS_EXPR.
3609         (maybe_fold_offset_to_reference): Enable disabled code.
3610         (maybe_fold_offset_to_address): New function.
3611         (fold_stmt_r): Use it.
3612         (fold_gimple_assign): Likewise.
3613         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
3614         (gimplify_expr): Likewise.
3615
3616 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3617
3618         * toplev.h (pedwarn_at): Fix declaration.
3619
3620 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
3621
3622         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3623         LINK_SPEC): Use %R in -Y P argument.
3624
3625 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3626
3627         PR c/15236
3628         * diagnostic.c (pedwarn_at): New.
3629         * toplev.h (pedwarn_at): Declare.
3630         * c-tree.h (build_enumerator): Update declaration.
3631         * c-decl.c (finish_enum): Update comment.
3632         (build_enumerator): Take a location parameter. Give a pedwarn but do
3633         not perform any conversion.
3634         * c-parser.c (c_parser_enum_specifier): Set correct location for
3635         enumerator.
3636
3637 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3638
3639         PR 35635
3640         * c-common.c (conversion_warning): Use a switch. Ignore boolean
3641         expressions except for conversions to signed:1 bitfields. Handle
3642         COND_EXPR with constant operands.
3643
3644 2008-08-13  Richard Guenther  <rguenther@suse.de>
3645
3646         PR tree-optimization/15255
3647         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
3648         (struct oecount_s): New struct and VEC types.
3649         (cvec): New global.
3650         (oecount_hash): New function.
3651         (oecount_eq): Likewise.
3652         (oecount_cmp): Likewise.
3653         (zero_one_operation): New function.
3654         (build_and_add_sum): Likewise.
3655         (undistribute_ops_list): Perform un-distribution of multiplication
3656         and division on the chain of summands.
3657         (should_break_up_subtract): Also break up subtracts for factors.
3658         (reassociate_bb): Delete dead visited statements.
3659         Call undistribute_ops_list.  Re-sort and optimize if it did something.
3660         * passes.c (init_optimization_passes): Move DSE before
3661         reassociation.
3662         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
3663         PHI nodes.
3664
3665 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
3666
3667         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
3668
3669         * doc/invoke.texi: Revert unintended checkin.
3670
3671 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
3672
3673         PR libgomp/26165
3674         * gcc.c (include_spec_function): Tweak call to find_a_file.
3675
3676 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
3677
3678         PR middle-end/37014
3679         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
3680         and TRUTH_ORIF_EXPR.
3681         * dojump.c (do_jump): Likewise.
3682
3683         PR tree-optimization/37084
3684         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
3685         if id->regimplify, don't assume stmt is a cast assignment.
3686
3687 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
3688
3689         * final.c (final_scan_insn): Use app_enable/app_disable functions.
3690
3691 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3692
3693         PR bootstrap/37097
3694         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
3695         by last change.
3696
3697 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3698
3699         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
3700         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
3701
3702         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
3703         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
3704         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
3705         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
3706         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
3707
3708         * doc/tm.texi (Storage Layout): Remove documentation for
3709         TARGET_FLOAT_FORMAT.
3710
3711         * simplify-rtx.c (simplify_binary_operation_1): Replace
3712         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
3713
3714 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3715
3716         * real.h (struct real_format): New member has_sign_dependent_rounding.
3717         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
3718         spu_single_format, ieee_double_format, mips_double_format,
3719         motorola_double_format, ieee_extended_motorola_format,
3720         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
3721         ieee_extended_intel_96_round_53_format, ibm_extended_format,
3722         mips_extended_format, ieee_quad_format, mips_quad_format,
3723         vax_f_format, vax_d_format, vax_g_format): Initialize it.
3724         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
3725
3726         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
3727         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
3728         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
3729         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
3730         (ROUND_TOWARDS_ZERO): Likewise.
3731
3732         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
3733         (FLOAT_MODE_FORMAT): New macro.
3734         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
3735         (MODE_COMPOSITE_P): ... this new macro.
3736         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
3737         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
3738         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
3739
3740         * flags.h: Include "real.h".
3741
3742         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
3743         REAL_MODE_FORMAT_COMPOSITE_P.
3744         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
3745
3746         * doc/tm.texi (Storage Layout): Remove documentation of
3747         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
3748         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
3749         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
3750         they only apply to libgcc2.a.
3751
3752 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3753
3754         * config/spu/float_disf.c: New file.
3755         * config/spu/float_unsdisf.c: New file.
3756         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
3757         (LIB2FUNCS_EXCLUDE): Define.
3758
3759 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3760             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3761
3762         * real.h (struct real_format): New member round_towards_zero.
3763         * real.c (round_for_format): Respect fmt->round_towards_zero.
3764         (ieee_single_format, mips_single_format, motorola_single_format,
3765         spu_single_format, ieee_double_format, mips_double_format,
3766         motorola_double_format, ieee_extended_motorola_format,
3767         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
3768         ieee_extended_intel_96_round_53_format, ibm_extended_format,
3769         mips_extended_format, ieee_quad_format, mips_quad_format,
3770         vax_f_format, vax_d_format, vax_g_format): Initialize it.
3771         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
3772
3773         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
3774         real_format to choose rounding mode when calling MPFR functions.
3775         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
3776         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
3777
3778         * real.h (real_to_decimal_for_mode): Add prototype.
3779         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
3780         Respect target rounding mode when generating decimal representation.
3781         (real_to_decimal): New stub for backwards compatibility.
3782         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
3783         real_to_decimal_for_mode instead of real_to_decimal.
3784
3785         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
3786
3787 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3788             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3789
3790         * real.c (spu_single_format): New variable.
3791         * real.h (spu_single_format): Declare.
3792
3793         * config/spu/spu.c (spu_override_options): Install SFmode format.
3794         (spu_split_immediate): Use integer mode to operate on pieces of
3795         floating-point values in all cases.
3796
3797         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
3798         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
3799         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
3800
3801 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3802
3803         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
3804
3805 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3806
3807         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
3808
3809 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
3810
3811         PR c++/36688
3812         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
3813         on the VAR_DECL instead of TYPE_READONLY on its type.
3814
3815 2008-08-12  Ira Rosen  <irar@il.ibm.com>
3816
3817         * tree-vectorizer.c: Depend on langhooks.h.
3818         (supportable_widening_operation): Add two arguments. Support double
3819         type conversions.
3820         (supportable_narrowing_operation): Likewise.
3821         * tree-vectorizer.h (supportable_widening_operation): Add two
3822         arguments.
3823         (supportable_narrowing_operation): Likewise.
3824         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
3825         supportable_widening_operation with correct arguments.
3826         * tree-vect-transform.c (vectorizable_conversion): Likewise.
3827         (vectorizable_type_demotion): Support double type conversions.
3828         (vectorizable_type_promotion): Likewise.
3829         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
3830
3831 2008-08-11  Michael Matz  <matz@suse.de>
3832
3833         * i386/i386.c (override_options): Move initialisation from
3834         flag_schedule_insns_after_reload to here from ...
3835         (optimization_options): ... here.
3836
3837 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
3838
3839         PR rtl-optimization/36998
3840         * dwarf2out.c (compute_barrier_args_size_1,
3841         compute_barrier_args_size): Temporarily remove assertions.
3842
3843 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3844
3845         PR middle-end/20644
3846         * tree-ssa.c (struct walk_data): Add new flag
3847         warn_possibly_uninitialized.
3848         (warn_uninitialized_var): Use it.
3849         (warn_uninitialized_vars): New.
3850         (execute_early_warn_uninitialized): Call it.
3851         (execute_late_warn_uninitialized): Likewise.
3852
3853 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3854
3855         PR middle-end/36238
3856         * reload1.c (gen_reload): Guard calls to get_secondary_mem
3857         for memory subregs.
3858
3859 2008-08-09  Jan Hubicka  <jh@suse.cz>
3860
3861         PR target/37055
3862         * optabs.c (maybe_emit_unop_insn): Remove produced code if
3863         expansion failed.
3864         (expand_fix): Be prepared for expansion to fail.
3865         (expand_sfix_optab): Remove instructions if expansion failed.
3866
3867 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
3868
3869         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
3870         avr31 architecture.
3871         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
3872         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3873
3874 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
3875
3876         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
3877         mips/t-libgcc-mips16 to tmake_file.
3878         * config/mips/mips-protos.h (mips_call_type): New enum.
3879         (mips_pic_base_register, mips_got_load): Declare.
3880         (mips_restore_gp): Take an rtx argument.
3881         (mips_use_pic_fn_addr_reg_p): Declare.
3882         (mips_expand_call): Replace the sibcall_p argument with
3883         a mips_call_type argument.  Add a lazy_p parameter.
3884         (mips_split_call): Declare.
3885         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
3886         (MIPS16_PIC_TEMP): Likewise.
3887         (reg_class): Delete M16_NA_REGS.
3888         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3889         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
3890         (mips_split_hi_p): Declare.
3891         * config/mips/mips.c (mips_split_hi_p): New array.
3892         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
3893         (mips_got_symbol_type_p): New function.
3894         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
3895         (mips16_stub_function_p): New function.
3896         (mips16_local_function_p): Likewise.
3897         (mips_use_pic_fn_addr_reg_p): Likewise.
3898         (mips_cannot_force_const_mem): Return false for HIGHs.
3899         Extend CONST_INT and symbolic handling to MIPS16, using
3900         mips_symbol_insns to check that the base symbol type is a
3901         legitimate constant.  Reject GOT-based constants if
3902         TARGET_MIPS16_PCREL_LOADS.
3903         (mips_const_insns): Check targetm.cannot_force_const_mem when
3904         decomposing a symbolic base and a large offset.
3905         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
3906         When calling a function that needs $25 from MIPS16 code,
3907         move the target address into $25 separately and add a USE
3908         to the call insn.
3909         (mips16_gp_pseudo_reg): Insert the initializer immediately
3910         before the first real insn.
3911         (mips_pic_base_register, mips_got_load): New functions.
3912         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
3913         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
3914         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
3915         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
3916         (mips_call_tls_get_addr): Update the call to mips_expand_call,
3917         also passing NULL_RTX rather than const0_rtx as the aux argument.
3918         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
3919         instead of TARGET_EXPLICIT_RELOCS.
3920         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
3921         (mips_load_call_address): Replace the sibcall_p argument with
3922         a mips_call_type argument.  Use mips_got_load.
3923         (mips16_local_alias): New structure.
3924         (mips16_local_aliases): New variable.
3925         (mips16_local_aliases_hash): New function.
3926         (mips16_local_aliases_eq): Likewise.
3927         (mips16_local_alias): Likewise.
3928         (mips16_stub_function): Likewise.
3929         (mips16_build_function_stub): Create a local alias for the target
3930         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
3931         .cpload directive and an R_MIPS_NONE relocation for the target
3932         function, then load the alias rather than the function itself.
3933         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
3934         (mips16_copy_fpr_return_value): Use mips16_stub_function and
3935         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
3936         (mips16_build_call_stub): Replace the FN parameter with an
3937         FN_PTR parameter.  Force the address into a register if it
3938         isn't a call_insn_operand; don't rely on the caller to do this.
3939         If a call to a locally-defined and locally-binding MIPS16
3940         function must be made indirectly, redirect the call to the
3941         function's local alias.  Use mips16_stub_function_p,
3942         mips16_stub_function, mips_expand_call and use_reg.
3943         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
3944         Use explicit %hi and %lo accesses where possible.
3945         Use MIPS_CALL to generate the correct code form of a
3946         jal instruction.  Add clobbers of $18 instead of uses.
3947         Update the call to mips_emit_call_insn.
3948         (mips_expand_call): Replace the SIBCALL_P argument with a
3949         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
3950         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
3951         allowing it to modify the call address.  Update the calls to
3952         mips_load_call_address and mips_emit_call_insn.
3953         (mips_split_call): New function.
3954         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
3955         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
3956         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
3957         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
3958         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
3959         if TARGET_MIPS16.
3960         (mips_cprestore_slot): New function.
3961         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
3962         and use mips_cprestore_slot.
3963         (mips_output_function_prologue): Handle TARGET_MIPS16 for
3964         LOADGP_OLDABI.
3965         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
3966         then use a copygp_mips16 instruction to set up $28.
3967         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
3968         (mips16_lay_out_constants): Call split_all_insns_noflow.
3969         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
3970         false if TARGET_MIPS16.
3971         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
3972         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
3973         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
3974         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
3975         MIPS16 code.  Allow MIPS16 o32 PIC.
3976         (mips_override_options): Allow MIPS16 o32 PIC.
3977         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
3978         after reload if TARGET_USE_GOT.
3979         (UNSPEC_COPYGP): New constant.
3980         (length): Use a default length of 8 for MIPS16 GOT loads.
3981         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
3982         (*got_page<mode>): Check mips_split_hi_p.
3983         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
3984         (unspec_got<mode>, unspec_call<mode>): New expanders.
3985         (load_got<mode>, load_call<mode>): Remove the length attributes.
3986         Use a got attribute instead of a type attribute.
3987         (copygp_mips16): New insn.
3988         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
3989         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
3990         (sibcall, sibcall_value, call, call_value): Update the calls
3991         to mips_expand_call.
3992         (call_internal, call_value_internal): Use mips_split_call.
3993         (call_value_multiple_internal): Likewise.
3994         (call_split): Move after call_internal (the insn it is split from).
3995         (call_internal_direct, call_value_internal_direct): Turn into
3996         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
3997         (call_direct_split, call_value_direct_split): New patterns.
3998         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
3999         and use M16_REGS instead of M16_NA_REGS.
4000         * config/mips/predicates.md (const_call_insn_operand): Replace
4001         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4002         mips_use_pic_fn_addr_reg_p check.
4003         (move_operand): Reject HIGHs if mips_split_hi_p.
4004         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4005         (__mips16_floatunsisf): Inline __mips16_floatsisf.
4006         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4007         * config/mips/libgcc-mips16.ver: New file.
4008         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4009         $(srcdir)/config/mips/libgcc-mips16.ver.
4010
4011 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4012
4013         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4014         (mips_unspec_address, mips_unspec_offset_high): Likewise.
4015         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4016         (mips16_cfun_returns_in_fpr_p): Likewise.
4017
4018 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4019
4020         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4021         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4022         rather than 4 to PC.
4023
4024 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4025
4026         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4027         (FUNCTION_PROFILER): Save the static chain pointer into $2
4028         beforehand and restore it aftewards.
4029         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
4030         address directly into $25 and call the function through $25;
4031         do not clobber $3.  Pad the DImode version to cover the space
4032         left by the deleted $25 <- $3 move.
4033         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4034         the removal of the $25 <- $3 move.
4035         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4036         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4037
4038 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4039             Daniel Jacobowitz  <dan@codesourcery.com>
4040
4041         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4042         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4043         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4044         * config/mips/mips.c (mips_start_function_definition): New function.
4045         (mips_end_function_definition): Likewise.
4046         (mips_output_function_prologue): Use mips_start_function_definition.
4047         (mips_output_function_epilogue): Use mips_end_function_definition.
4048         (build_mips16_function_stub): Use mips_start_function_definition
4049         and mips_end_function_definition.
4050         (build_mips16_call_stub): Likewise.
4051
4052 2008-08-09  Richard Guenther  <rguenther@suse.de>
4053
4054         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4055         * gimple.h (gimple_call_fn): Adjust comment.
4056         (gimple_call_set_fndecl): New function.
4057         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4058         longer having bare FUNCTION_DECL operand.
4059         (gimple_call_return_type): Likewise.
4060         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4061
4062         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4063         (gimple_mod_pow2): Likewise.
4064         (gimple_mod_subtract): Likewise.
4065         (gimple_ic): Likewise.
4066         (gimple_stringop_fixed_value): Likewise.
4067         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4068         longer having bare FUNCTION_DECL operand.
4069         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
4070         * omp-low.c (optimize_omp_library_calls): Likewise.
4071         * cgraphunit.c (update_call_expr): Likewise.
4072         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4073         (execute_convert_to_rsqrt): Likewise.
4074         * cfgexpand.c (gimple_to_tree): Simplify.
4075         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
4076         bare FUNCTION_DECL operand.
4077         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
4078         (convert_gimple_call): Use gimple_call_fndecl.
4079         * c-common.c (c_warn_unused_result): Likewise.
4080
4081 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4082
4083         PR c/17880
4084         * c-typeck.c (digest_init): Call verify_sequence_points from here.
4085         (c_finish_return): Likewise.
4086         (c_start_case): Likewise.
4087         * c-common.c (warn_for_collisions_1): Use explicit location in
4088         warning.
4089         * c-parser.c (c_parser_condition): New. Call
4090         verify_sequence_points.
4091         (c_parser_paren_condition): Call c_parser_condition.
4092         (c_parser_for_statement): Call c_parser_condition.
4093
4094 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4095
4096         PR 36901
4097         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
4098         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
4099         Moved from diagnostic.h
4100         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
4101         DK_PERMERROR.
4102         (emit_diagnostic): New.
4103         (warning0, pedwarn0): Delete.
4104         (warning, warning_at, pedwarn, permerror): Return bool.
4105         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
4106         Moved to diagnostic.c.
4107         (struct diagnostic_context): Use correct type for
4108         classify_diagnostic.
4109         (diagnostic_report_diagnostic): Update declaration.
4110         (emit_diagnostic): Declare.
4111         * errors.c (warning): Return bool.
4112         * errors.h (warning): Update declaration.
4113         * toplev.h (warning0, pedwarn0): Delete.
4114         (warning, warning_at, pedwarn, permerror): Return bool.
4115         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
4116         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
4117         inform. Update all calls.
4118         (diagnose_mismatched_decls): Check return value of warning/pedwarn
4119         before giving informative note.
4120         (implicit_decl_warning): Likewise.
4121         * c-typeck.c (build_function_call): Likewise.
4122         * tree-sssa.c (warn_uninit): Likewise.
4123         * builtins.c (gimplify_va_arg_expr): Likewise.
4124
4125 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4126
4127         PR 7651
4128         * doc/invoke.texi (-Wextra): Move warning from here...
4129         (-Wuninitialized): ... to here.
4130
4131 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4132
4133         PR 28875
4134         * flags.h (set_Wunused): Delete
4135         * toplev.c (process_options): Handle Wunused flags here.
4136         * opts.c (maybe_warn_unused_parameter): Delete.
4137         (common_handle_option): Replace set_Wunused by warn_unused.
4138         (set_Wextra): Do not handle Wunused-parameter here.
4139         (set_Wunused): Delete.
4140         * c-opts.c (c_common_handle_option): Replace set_Wunused by
4141         warn_unused.
4142         * common.opt (Wunused): Add Var and Init.
4143         (Wunused-function): Likewise.
4144         (Wunused-label): Likewise.
4145         (Wunused-parameter): Likewise.
4146         (Wunused-value): Likewise.
4147         (Wunused-variable): Likewise.
4148
4149 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
4150
4151         * doc/invoke.texi: Add cpu_type power7.
4152         * config.in (HAVE_AS_VSX): New.
4153         * config.gcc: Add cpu_type power7.
4154         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
4155         VSX instructions.
4156         * configure: Regenerate.
4157         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
4158         power5.
4159         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
4160         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
4161         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
4162
4163 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
4164
4165         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4166         type to vectorize.builtin_conversion.
4167         (vectorizable_conversion): Likewise.
4168         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4169         integral type as input.
4170         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4171         FIX_TRUNC_EXPR.
4172         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4173         and ALTIVEC_BUILTIN_VCTSXS.
4174         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4175         formatting.
4176
4177 2008-08-08  Richard Guenther  <rguenther@suse.de>
4178
4179         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
4180         (surely_varying_stmt_p): Calls are varying only if they are
4181         non-builtin and not indirect or have no result.
4182         (ccp_fold): Re-instantiate code before the tuples merge.
4183
4184 2008-08-08  Richard Guenther  <rguenther@suse.de>
4185
4186         PR tree-optimization/37056
4187         * gimple.h (gimple_assign_rhs_class): New helper function.
4188         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
4189         unary operations properly.
4190
4191 2008-08-07  Jan Hubicka  <jh@suse.cz>
4192
4193         * i386.h (ix86_size_cost): Declare.
4194         (ix86_cur_cost): New function macro.
4195         * i386.md (peepholes expanding size and splitters): Predicate by
4196         optimize_insn_for_speed_p.
4197         (peepholes reduce size and splitters): Predicate by
4198         optimize_insn_for_size_p.
4199         * i386.c (ix86_size_cost): Rename from ...
4200         (size_cost): This one.
4201         (override_options): Update.
4202         (decide_alg): Likewise.
4203         (ix86_expand_clear): Use RTL profile.
4204         (ix86_pad_returns): Use RTL profile.
4205
4206 2008-08-07  Jan Hubicka  <jh@suse.cz>
4207
4208         * recog.c (split_all_insns): Set RTL profile
4209         (peephole2_optimize): Likewise.
4210         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4211         * combine.c (combine_instructions): Likewise.
4212
4213 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4214
4215         * c-common.c (c_common_reswords): Also warn about keyword "bool".
4216
4217 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
4218
4219         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
4220         value in a6 after the set_frame_ptr insn.
4221
4222 2008-08-07  Richard Henderson  <rth@redhat.com>
4223
4224         PR debug/37033
4225         * gcc.c (cpp_options): Pass along -g*.
4226
4227 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
4228
4229         * config/arm/arm.c (output_move_neon): Update comment describing
4230         big-endian vector layout.
4231         (arm_assemble_integer): Do not handle big-endian NEON vectors
4232         specially.
4233         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
4234         neon_vget_lane<mode>_sext_internal,
4235         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
4236         element indices for big-endian.
4237
4238 2008-08-07  Richard Henderson  <rth@redhat.com>
4239
4240         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
4241         * configure, config.in: Rebuild.
4242         * debug.h (dwarf2out_do_cfi_asm): Declare.
4243         * c-cppbuiltin.c (c_cpp_builtins): Use it.
4244         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
4245         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
4246         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
4247
4248 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
4249
4250         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4251         movv2si_internal): Combine into mov<mode>_internal.
4252         (movv2si_internal_2): Remove.
4253
4254 2008-08-07  Jan Hubicka  <jh@suse.cz>
4255
4256         PR target/37048
4257         * i386.md (single stringop patterns): Enable unconditionally.
4258
4259 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
4260
4261         PR target/36992
4262         * config/i386/emmintrin.h (_mm_move_epi64): Use
4263         __builtin_ia32_movq128.
4264
4265         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
4266         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
4267
4268         * config/i386/sse.md (sse2_movq128): New.
4269
4270         * doc/extend.texi: Document __builtin_ia32_movq128.
4271
4272 2008-08-07  Richard Guenther  <rguenther@suse.de>
4273
4274         PR middle-end/37042
4275         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
4276         pointers can access anything.
4277
4278 2008-08-06  Jan Hubicka  <jh@suse.cz>
4279
4280         * optabs.c (emit_unop_insn): Break out to ...
4281         (maybe_emit_unop_insn): ... this one.
4282         (expand_sfix_optab): Use maybe variant.
4283         * optabs.h (maybe_emit_unop_insn): Declare.
4284
4285         * i386.md (mov0 patterns): Enable by default.
4286         (FP conversion expanders): Disable expansion of code expanding
4287         sequences when instruction should be optimized for size.
4288         (single strinop patterns): Enable when optimizing for size.
4289         (string expanders): Disable expanding of code expanding sequences
4290         when optimizning instruction for size.
4291         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
4292         per BB basis.
4293         (ix86_fp_comparison_sahf_cost): Likewise.
4294         (ix86_expand_branch): Likewise.
4295         (ix86_expand_ashl_const): Likewise.
4296         (ix86_split_ashl): Likewise.
4297         (ix86_expand_strlen): Likewise.
4298         (ix86_emit_fp_unordered_jump): Likewie.
4299
4300 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4301
4302         * c-common.c: Fix typo.
4303         (c_common_reswords): Activate more C++ keyword warnings.
4304
4305         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
4306
4307 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4308
4309         PR 26785
4310         * diagnostic.c (permerror_at): New.
4311         * toplev.h (permerror_at): Declare.
4312
4313 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
4314             Ira Rosen  <irar@il.ibm.com>
4315
4316         * tree-vect-transform.c (vect_model_simple_cost): Return
4317         immediately if stmt is pure SLP.
4318         (vect_model_store_cost): Ditto.
4319         (vect_model_load_cost): Ditto.
4320         (vectorizable_store): Remove PURE_SLP check before call
4321         to vect_model_store_cost.
4322         (vect_model_store_cost): When checking whether stmt describe
4323         strided access, add a check that it is not slp_node.
4324
4325 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4326
4327         PR 8715
4328         * c-common.c (warn_for_sign_compare): New. Handle separately the
4329         case that 'constant' is zero.
4330         * c-typeck.c (build_binary_op): Move code to c-common.c
4331
4332 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4333
4334         * config/alpha/alpha.c (alpha_preferred_reload_class,
4335         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
4336         alpha_output_mi_thunk_osf): Avoid C++ keywords.
4337         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
4338         * config/arm/arm.md: Likewise.
4339         * config/avr/avr-protos.h (preferred_reload_class,
4340         test_hard_reg_class, avr_simplify_comparison_p,
4341         out_shift_with_cnt, class_max_nregs): Likewise.
4342         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
4343         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
4344         preferred_reload_class, test_hard_reg_class): Likewise.
4345         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
4346         bfin_memory_move_cost, bfin_secondary_reload,
4347         bfin_output_mi_thunk): Likewise.
4348         * config/crx/crx.c (crx_secondary_reload_class,
4349         crx_memory_move_cost): Likewise.
4350         * config/frv/frv-protos.h (frv_secondary_reload_class,
4351         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
4352         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
4353         frv_secondary_reload_class, frv_class_likely_spilled_p,
4354         frv_class_max_nregs): Likewise.
4355         * config/h8300/h8300.c (h8300_classify_operand,
4356         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
4357         Likewise.
4358         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
4359         * config/ia64/ia64.c (ia64_preferred_reload_class,
4360         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
4361         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
4362         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
4363         Likewise.
4364         * config/m68hc11/m68hc11.c (preferred_reload_class,
4365         m68hc11_memory_move_cost): Likewise.
4366         * config/mcore/mcore.c (mcore_secondary_reload_class,
4367         mcore_reload_class): Likewise.
4368         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
4369         mips_class_max_nregs, mips_cannot_change_mode_class,
4370         mips_preferred_reload_class, mips_secondary_reload_class,
4371         mips_output_mi_thunk): Likewise.
4372         * config/mmix/mmix.c (mmix_preferred_reload_class,
4373         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
4374         Likewise.
4375         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4376         Likewise.
4377         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
4378         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
4379         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4380         * config/rs6000/rs6000.c (paired_expand_vector_init,
4381         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
4382         compare_section_name, rs6000_memory_move_cost): Likewise.
4383         * config/s390/s390.c (s390_emit_compare_and_swap,
4384         s390_preferred_reload_class, s390_secondary_reload,
4385         legitimize_pic_address, legitimize_tls_address,
4386         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
4387         s390_class_max_nregs): Likewise.
4388         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4389         * config/s390/s390.md: Likewise.
4390         * config/score/score-protos.h (score_secondary_reload_class,
4391         score_preferred_reload_class): Likewise.
4392         * config/score/score.c (score_preferred_reload_class,
4393         score_secondary_reload_class): Likewise.
4394         * config/score/score3.c (score3_output_mi_thunk,
4395         score3_preferred_reload_class, score3_secondary_reload_class,
4396         score3_hard_regno_mode_ok): Likewise.
4397         * config/score/score3.h (score3_preferred_reload_class,
4398         score3_secondary_reload_class): Likewise.
4399         * config/score/score7.c (score7_output_mi_thunk,
4400         score7_preferred_reload_class, score7_secondary_reload_class,
4401         score7_hard_regno_mode_ok): Likewise.
4402         * config/score/score7.h (score7_preferred_reload_class,
4403         score7_secondary_reload_class): Likewise.
4404         * config/sh/sh.c (prepare_move_operands, output_far_jump,
4405         output_branchy_insn, add_constant, gen_block_redirect,
4406         sh_insn_length_adjustment, sh_cannot_change_mode_class,
4407         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
4408         Likewise.
4409         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4410         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
4411         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
4412         xstormy16_preferred_reload_class): Likewise.
4413         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
4414         xtensa_expand_atomic, override_options,
4415         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
4416         Likewise.
4417         * reorg.c (try_merge_delay_insns): Likewise.
4418         * tree.c (merge_dllimport_decl_attributes): Likewise.
4419
4420         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
4421
4422 2008-08-06  Michael Matz  <matz@suse.de>
4423
4424         * Makefile.in (write_entries_to_file): Quote words.
4425         * gengtype.c: (read_input_line): Skip over leading white-space.
4426
4427 2008-08-06  Marc Gauthier  <marc@tensilica.com>
4428
4429         * config.gcc: Match more processor names for Xtensa.
4430         * configure.ac: Likewise.
4431         * doc/install.texi (Specific): Likewise.
4432         * configure: Regenerate.
4433
4434 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4435
4436         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
4437         * calls.c (avoid_likely_spilled_reg): Likewise.
4438         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4439         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
4440         * config/i386/i386.c (ix86_expand_special_args_builtin,
4441         ix86_secondary_reload): Likewise.
4442         * except.c (struct eh_region, gen_eh_region_catch,
4443         remove_unreachable_regions, duplicate_eh_regions,
4444         assign_filter_values, build_post_landing_pads,
4445         sjlj_find_directly_reachable_regions, remove_eh_handler,
4446         reachable_next_level, foreach_reachable_handler,
4447         can_throw_internal_1, can_throw_external_1,
4448         collect_one_action_chain): Likewise.
4449         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
4450         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
4451         * function.c (update_temp_slot_address, instantiate_new_reg,
4452         instantiate_virtual_regs_in_rtx,
4453         instantiate_virtual_regs_in_insn): Likewise.
4454         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
4455         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
4456         gimplify_cleanup_point_expr): Likewise.
4457         * ipa-cp.c (ipcp_lattice_changed): Likewise.
4458         * passes.c (next_pass_1): Likewise.
4459         * print-tree.c (print_node_brief, print_node): Likewise.
4460         * profile.c (branch_prob): Likewise.
4461         * tree-dump.c (dump_register): Likewise.
4462         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
4463         Likewise.
4464         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
4465         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
4466         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
4467         copy_arguments_for_versioning, copy_static_chain): Likewise.
4468         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
4469         add_new_name_mapping, register_new_name_mapping): Likewise.
4470         * tree-mudflap.c (mf_xform_derefs): Likewise.
4471         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
4472         get_init_expr, combine_chains): Likewise.
4473         * tree-pretty-print.c (dump_generic_node): Likewise.
4474         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
4475         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
4476         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
4477         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
4478
4479 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         PR middle-end/37010
4482         * calls.c (expand_call): Use the biggest preferred stack
4483         boundary.
4484
4485 2008-08-06  Michael Matz  <matz@suse.de>
4486
4487         PR target/36613
4488         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
4489         for reused reload, instead of overwriting them.
4490
4491 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4492
4493         PR middle-end/37009
4494         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
4495         for incoming stack boundary.
4496
4497         * function.c (assign_parm_find_entry_rtl): Update
4498         parm_stack_boundary.
4499
4500         * function.h (rtl_data): Add parm_stack_boundary.
4501
4502         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
4503         parm_stack_boundary for incoming stack boundary.
4504
4505 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
4506
4507         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
4508         for unrepresentable subregs or treat them as equal to other regs
4509         or subregs with the same register number.
4510
4511 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
4512
4513         PR middle-end/35432
4514         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
4515         if want_value.
4516
4517 2008-08-06  Jan Hubicka  <jh@suse.cz>
4518
4519         * predict.c (maybe_hot_frequency_p): When profile is absent, all
4520         frequencies might be hot.
4521
4522 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
4523
4524         * reload.c (find_reloads): Force constants into literal pool
4525         also if they are wrapped in a SUBREG.
4526
4527 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4528
4529         PR target/35659
4530         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
4531         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
4532         Don't allow predicated instructions for data speculation.
4533         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
4534         declaration.
4535
4536 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4537
4538         * haifa-sched.c (extend_global): Split to extend_global_data and
4539         extend_region_data.  Update all uses.
4540         (extend_all): Rename to extend_block_data.
4541
4542 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4543
4544         * sched-rgn.c (new_ready): Check if instruction can be
4545         speculatively scheduled before attempting speculation.
4546         (debug_rgn_dependencies): Remove wrongful assert.
4547
4548 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
4549
4550         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
4551
4552 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
4553
4554         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
4555         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
4556         va_size, and type_size.
4557
4558 2008-08-04  Jason Merrill  <jason@redhat.com>
4559
4560         PR c++/37016
4561         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
4562         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
4563
4564 2008-08-05  Richard Henderson  <rth@redhat.com>
4565
4566         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
4567         * configure: Rebuild.
4568
4569 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4570
4571         PR tree-opt/37024
4572         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
4573         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
4574         is a conversion.
4575
4576 2008-08-05  Richard Henderson  <rth@redhat.com>
4577
4578         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
4579         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
4580         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
4581         * common.opt (fdwarf2-cfi-asm): New.
4582         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
4583         * config.in, configure: Rebuild.
4584         * dwarf2asm.c (dw2_asm_output_data_raw): New.
4585         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
4586         (dw2_force_const_mem): Externalize.
4587         * dwarf2asm.h: Update.
4588         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
4589         generate a real label.
4590         (output_cfi_directive): New.
4591         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
4592         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
4593         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
4594         and .cfi_lsda.
4595         (dwarf2out_end_epilogue): Emit .cfi_endproc.
4596         (output_loc_operands_raw, output_loc_sequence_raw): New.
4597         (output_cfa_loc_raw): New.
4598
4599 2008-08-05  Paul Brook  <paul@codesourcery.com>
4600
4601         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
4602         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
4603         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
4604         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
4605         * config/arm/arm.h (TARGET_VFPD32): Define.
4606         (TARGET_VFP3): Use TARGET_VFPD32.
4607         (fputype): Add FPUTYPE_VFP3D16.
4608         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
4609         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
4610         * config/arm/arm-cores.def: Add cortex-r4f.
4611         * config/arm/arm-tune.md: Regenerate.
4612
4613 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4614
4615         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
4616         Reword some comments throughout the file.
4617
4618         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
4619         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
4620         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
4621         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
4622
4623         (MFC_START_ENABLE): Remove PPU-only define.
4624         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
4625         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
4626
4627         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
4628         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
4629         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
4630         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
4631         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
4632         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
4633         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
4634
4635         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
4636         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
4637         (mfc_sdcrt, mfc_sdcrtst): Likewise.
4638         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
4639
4640         (spu_read_machine_status): Fix typo.
4641
4642 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4643
4644         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
4645         SUBREG of multi-word hard register.
4646         * config/spu/spu.c (valid_subreg): Likewise.
4647         (adjust_operand): Handle SUBREGs of multi-word hard registers.
4648
4649 2008-08-04  Richard Guenther  <rguenther@suse.de>
4650
4651         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
4652         the candidate with the stripped base if that base is different
4653         from the original base even for offset zero.
4654
4655 2008-08-04  Richard Guenther  <rguenther@suse.de>
4656
4657         PR middle-end/36691
4658         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
4659         check for no_overflow.
4660
4661 2008-08-04  Richard Guenther  <rguenther@suse.de>
4662
4663         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
4664
4665 2008-08-04  Paul Brook  <paul@codesourcery.com>
4666
4667         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
4668         (arm_order_regs_for_local_alloc): New function.
4669         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
4670         prototype.
4671         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
4672
4673 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4674
4675         PR target/37012
4676         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
4677         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
4678         (ix86_expand_epilogue): Likewise.
4679
4680 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
4683         in comments.
4684
4685 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
4686
4687         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
4688         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
4689         (*movv2sf_internal_rex64): Ditto.
4690
4691 2008-08-03  Jan Hubicka  <jh@suse.cz>
4692
4693         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
4694         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
4695         * expmed.c (expand_smod_pow2): Likewise.
4696
4697 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
4698
4699         PR target/36992
4700         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
4701         alternative 0 of operand 1.
4702         (*vec_concatv2di_rex64_sse): Ditto.
4703         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
4704         of operand 1.
4705         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
4706         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
4707         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
4708         (*movv2sf_internal_rex64): Ditto.
4709
4710 2008-08-02  Richard Guenther  <rguenther@suse.de>
4711
4712         PR target/35252
4713         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
4714         (ssedoublesizemode): New mode attribute.
4715         (sse_shufps): Call gen_sse_shufps_v4sf.
4716         (sse_shufps_1): Macroize.
4717         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
4718         (sse2_shufpd_1): Macroize.
4719         (vec_extract_odd, vec_extract_even): New expanders.
4720         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
4721         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
4722         * i386.c (ix86_expand_vector_init_one_nonzero): Call
4723         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
4724         (ix86_expand_vector_set): Likewise.
4725         (ix86_expand_reduc_v4sf): Likewise.
4726
4727 2008-08-01  Doug Kwan  <dougkwan@google.com>
4728
4729         * matrix-reorg.c: Re-enable all code.
4730         (struct malloc_call_data): Change CALL_STMT to gimple type.
4731         (collect_data_for_malloc_call): Tuplify.
4732         (struct access_site_info): Change STMT to gimple type.
4733         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
4734         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
4735         (struct free_info): Change STMT to gimple type.
4736         (struct matrix_access_phi_node):  Change PHI to gimple type.
4737         (get_inner_of_cast_expr): Remove.
4738         (may_flatten_matrices_1): Tuplify.
4739         (may_flatten_matrices): Ditto.
4740         (mark_min_matrix_escape_level): Ditto.
4741         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
4742         (ssa_accessed_in_call_rhs): New
4743         (ssa_accessed_in_assign_rhs): New
4744         (record_access_alloc_site_info): Tuplify.
4745         (add_allocation_site): Ditto.
4746         (analyze_matrix_allocation_site): Ditto.
4747         (analyze_transpose): Ditto.
4748         (get_index_from_offset): Ditto.
4749         (update_type_size): Ditto.
4750         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
4751         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
4752         (analyze_accesses_for_phi_node): Tuplify.
4753         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
4754         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
4755         (analyze_matrix_accesses): Tuplify.
4756         (check_var_data): New call-back type for check_var_notmodified_p.
4757         (check_var_notmodified_p): Tuplify and use call-back struct to
4758         return statement found.
4759         (can_calculate_expr_before_stmt): Factor out statement related code
4760         into ...
4761         (can_calculate_stmt_before_stmt): New.
4762         (check_allocation_function): Tuplify.
4763         (find_sites_in_func): Ditto.
4764         (record_all_accesses_in_func): Ditto.
4765         (transform_access_sites): Ditto.
4766         (transform_allocation_sites): Ditto.
4767         (matrix_reorg): Re-enable.
4768         (gate_matrix_reorg): Re-enable.
4769
4770 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
4771
4772         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
4773         for labels for which it hasn't been set yet.  If it has been set,
4774         stop walking insns and continue with next worklist item.
4775         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
4776         if the only BARRIER is at the very end of a function.
4777
4778 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4779
4780         * cfgexpand.c (expand_stack_alignment): Assert that
4781         stack_realign_drap and drap_rtx must match.
4782
4783         * function.c (instantiate_new_reg): If DRAP is used to realign
4784         stack, replace virtual_incoming_args_rtx with internal arg
4785         pointer.
4786
4787 2008-08-01  Richard Guenther  <rguenther@suse.de>
4788
4789         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
4790         loop information only if we initialized it.
4791         (execute_pre): Call fini_pre with in_fre.
4792         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
4793         if we do not unroll because we hit max-completely-peeled-insns.
4794         Use our estimation for consistency, do allow shrinking.
4795
4796 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
4797
4798         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
4799         with MIN_STACK_BOUNDARY.
4800         (ix86_update_stack_boundary): Likewise.
4801         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
4802         STACK_BOUNDARY.
4803
4804         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
4805         (MIN_STACK_BOUNDARY): This.
4806
4807 2008-08-01  Richard Guenther  <rguenther@suse.de>
4808
4809         PR middle-end/36997
4810         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
4811
4812 2008-08-01  Richard Guenther  <rguenther@suse.de>
4813
4814         PR tree-optimization/36988
4815         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
4816         do not matter if that doesn't change volatile qualification.
4817
4818 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
4819
4820         * configure.ac: Do not generate libada-mk.  Do not subst
4821         host_cc_for_libada.
4822         * libada-mk.in: Remove.
4823         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
4824         * configure: Regenerate.
4825
4826 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
4827
4828         * tree-pass.h: Added comment about not dumping passes with name
4829         starting with star in struct opt_pass.
4830         * passes.c (register_dump_files_1): Don't do dump for a pass with
4831         name starting with star.
4832         * doc/passes.texi (Pass manager): Mention pass names and special
4833         meaning of star prefix to avoid dump.
4834
4835 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
4836
4837         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
4838         to MIPS64r2.
4839         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
4840         (ISA_MIPS64R2): New macro.
4841         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
4842         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
4843         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
4844         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
4845         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
4846         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
4847         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
4848         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
4849         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
4850         Move up to keep list alphabetically sorted.
4851         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
4852         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
4853         processor.
4854         * doc/invoke.texi (MIPS Options): Add -mips64r2.
4855         (-march=@var{arch}): Add mips64r2.
4856
4857 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4858
4859         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
4860
4861 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
4862
4863         * expr.c (expand_assignment): Check for complete type.
4864
4865 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4866
4867         PR debug/36977
4868         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
4869
4870         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
4871         for stack alignment.
4872
4873         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
4874
4875 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4876
4877         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
4878         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
4879
4880 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
4881
4882         PR rtl-optimization/36419
4883         * dwarf2out.c (barrier_args_size): New variable.
4884         (compute_barrier_args_size, compute_barrier_args_size_1): New
4885         functions.
4886         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
4887         if not called yet in the current function, use barrier_args_size
4888         array to find the new args_size value.
4889         (dwarf2out_frame_debug): Free and clear barrier_args_size.
4890
4891 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4892
4893         PR debug/36980
4894         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
4895         rule 19.
4896
4897 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
4898
4899         PR debug/36976
4900         * dwarf2out.c (dwarf2out_args_size_adjust): New.
4901         (dwarf2out_stack_adjust): Use it.
4902         (dwarf2out_frame_debug_expr): Likewise.
4903
4904 2008-07-31  Richard Guenther  <rguenther@suse.de>
4905
4906         PR tree-optimization/36978
4907         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
4908         the generated condition.
4909
4910 2008-07-31  Richard Guenther  <rguenther@suse.de>
4911
4912         * passes.c (init_optimization_passes): Always call
4913         pass_early_warn_uninitialized.
4914         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
4915         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
4916         * doc/passes.texi (Warn for uninitialized variables): Adjust.
4917
4918 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
4919
4920         PR c/36970
4921         * builtins.c (maybe_emit_free_warning): New function.
4922         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
4923         maybe_emit_free_warning for BUILT_IN_FREE.
4924
4925         PR debug/36278
4926         * dwarf2out.c (get_context_die): New function.
4927         (force_decl_die, force_type_die): Use it.
4928         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
4929         returns NULL, force generation of DW_TAG_typedef and put that into
4930         DW_AT_import.
4931
4932         PR preprocessor/36649
4933         * c-pch.c (c_common_read_pch): Save and restore
4934         line_table->trace_includes across PCH restore.
4935
4936 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4937
4938         PR ada/36554
4939         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
4940
4941 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
4942
4943         PR 36974
4944         * final.c (call_from_call_insn): Handle COND_EXEC.
4945
4946 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         * builtins.c (std_gimplify_va_arg_expr): Replace
4949         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
4950         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4951
4952 2008-07-30  Joey Ye  <joey.ye@intel.com>
4953             H.J. Lu  <hongjiu.lu@intel.com>
4954
4955         * builtins.c (expand_builtin_setjmp_receiver): Replace
4956         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
4957         (expand_builtin_apply_args_1): Likewise.
4958         (expand_builtin_longjmp): Need DRAP for stack alignment.
4959         (expand_builtin_apply): Likewise.
4960
4961         * caller-save.c (setup_save_areas): Call assign_stack_local_1
4962         instead of assign_stack_local to allow alignment reduction.
4963
4964         * calls.c (emit_call_1): Need DRAP for stack alignment if
4965         return pops.
4966         (expand_call): Replace virtual_incoming_args_rtx with
4967         crtl->args.internal_arg_pointer.
4968         * stmt.c (expand_nl_goto_receiver): Likewise.
4969
4970         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
4971         alignment and store to stack_alignment_estimated and
4972         max_used_stack_slot_alignment.
4973         (expand_one_var): Likewise.
4974         (expand_stack_alignment): New function.
4975         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
4976         and stack_alignment_estimated fields in rtl_data.  Call
4977         expand_stack_alignment at end.
4978
4979         * defaults.h (INCOMING_STACK_BOUNDARY): New.
4980         (MAX_STACK_ALIGNMENT): Likewise.
4981         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
4982         (SUPPORTS_STACK_ALIGNMENT): Likewise.
4983
4984         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
4985         stack alignment when generating virtual registers.
4986
4987         * function.c (assign_stack_local): Renamed to ...
4988         (assign_stack_local_1): This.  Add a parameter to indicate
4989         if it is OK to reduce alignment.
4990         (assign_stack_local): Use it.
4991         (instantiate_new_reg): Instantiate virtual incoming args rtx
4992         to vDRAP if stack realignment and DRAP is needed.
4993         (assign_parms): Collect parameter/return type alignment and
4994         contribute to stack_alignment_estimated.
4995         (locate_and_pad_parm): Likewise.
4996         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
4997         with crtl->args.internal_arg_pointer.
4998
4999         * function.h (rtl_data): Add new field drap_reg,
5000         max_used_stack_slot_alignment, stack_alignment_estimated,
5001         stack_realign_needed, need_drap, stack_realign_processed and
5002         stack_realign_finalized.
5003         (stack_realign_fp): New macro.
5004         (stack_realign_drap): Likewise.
5005
5006         * global.c (compute_regsets): Frame pointer is needed when
5007         stack is realigned.  Can eliminate frame pointer when stack is
5008         realigned and dynamic realigned argument pointer isn't used.
5009
5010         * reload1.c (update_eliminables):  Frame pointer is needed
5011         when stack is realigned.
5012         (init_elim_table): Can eliminate frame pointer when stack is
5013         realigned and dynamic realigned argument pointer isn't used.
5014
5015         * rtl.h (assign_stack_local_1): Declare new funtion.
5016
5017         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5018         (TARGET_GET_DRAP_RTX): Likewise.
5019         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5020         TARGET_GET_DRAP_RTX.
5021
5022         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5023
5024         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5025         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5026
5027 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
5028             H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5031         vdrap_reg, stack_realign and drap_reg_saved.
5032         (add_cfi): Don't allow redefining CFA when DRAP is used.
5033         (reg_save): Handle stack alignment.
5034         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5035         alignment.  Don't generate DWARF information for (set fp sp)
5036         when DRAP is used.
5037         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5038         to INVALID_REGNUM.
5039         (int_loc_descriptor): Move prototype forward.  Also define if
5040         DWARF2_UNWIND_INFO is true.
5041         (output_cfa_loc): Handle DW_CFA_expression.
5042         (build_cfa_aligned_loc): New.
5043         (based_loc_descr): Update assert for stack realign.  For local
5044         variables, use sp+offset when stack is aligned without drap and
5045         fp+offset when stack is aligned with drap.  For arguments, use
5046         cfa+offset when drap is used to align stack.
5047
5048 2008-07-30  Joey Ye  <joey.ye@intel.com>
5049             H.J. Lu  <hongjiu.lu@intel.com>
5050
5051         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5052         Break long line.
5053         (ix86_gen_andsp): New.
5054         (ix86_user_incoming_stack_boundary): Likewise.
5055         (ix86_default_incoming_stack_boundary): Likewise.
5056         (ix86_incoming_stack_boundary): Likewise.
5057         (ix86_can_eliminate): Likewise.
5058         (find_drap_reg): Likewise.
5059         (ix86_update_stack_boundary): Likewise.
5060         (ix86_get_drap_rtx): Likewise.
5061         (ix86_finalize_stack_realign_flags): Likewise.
5062         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5063         (TARGET_GET_DRAP_RTX): Likewise.
5064         (override_options): Overide option value for new options.
5065         (ix86_function_ok_for_sibcall): Remove check for
5066         force_align_arg_pointer.
5067         (ix86_handle_cconv_attribute): Likewise.
5068         (ix86_function_regparm): Likewise.
5069         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
5070         (ix86_va_start): Replace virtual_incoming_args_rtx with
5071         crtl->args.internal_arg_pointer.
5072         (ix86_select_alt_pic_regnum): Check DRAP register.
5073         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
5074         (ix86_compute_frame_layout): Compute frame layout wrt stack
5075         realignment.
5076         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
5077         (ix86_expand_prologue): Decide if stack realignment is needed
5078         and generate prologue code accordingly.
5079         (ix86_expand_epilogue): Generate epilogue code wrt stack
5080         realignment is really needed or not.
5081
5082         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
5083         (ABI_STACK_BOUNDARY): Likewise.
5084         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
5085         (STACK_REALIGN_DEFAULT): Likewise.
5086         (INCOMING_STACK_BOUNDARY): Likewise.
5087         (MAX_STACK_ALIGNMENT): Likewise.
5088         (ix86_incoming_stack_boundary): Likewise.
5089         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
5090         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
5091         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
5092         (machine_function): Remove force_align_arg_pointer.
5093
5094         * config/i386/i386.md (BX_REG): New.
5095         (R13_REG): Likewise.
5096
5097         * config/i386/i386.opt (mforce_drap): New.
5098         (mincoming-stack-boundary): Likewise.
5099         (mstackrealign): Add Init(-1).
5100
5101         * config/i386/i386-protos.h (ix86_can_eliminate): New
5102
5103 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5104
5105         * doc/extend.texi: Update force_align_arg_pointer.
5106
5107         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
5108         -mstackrealign.
5109
5110         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
5111         (INCOMING_STACK_BOUNDARY): Likewise.
5112         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
5113         (TARGET_GET_DRAP_RTX): Likewise.
5114
5115 2008-07-30  Andreas Schwab  <schwab@suse.de>
5116
5117         PR rtl-optimization/36929
5118         * dse.c (replace_inc_dec): Use emit_insn_before instead of
5119         add_insn_before and fix argument order.
5120         (replace_inc_dec_mem): Handle NULL rtx.
5121
5122 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
5123
5124         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
5125         function.
5126         (arm_compute_initial_elimination_offset): Use it.
5127         (arm_compute_save_reg_mask): Include static chain save slot when
5128         calculating alignment.
5129         (arm_get_frame_offsets): Ditto.
5130         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
5131         that we can use to decrement the stack when the stack decrement
5132         could be too big for an immediate value in a single insn.
5133         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
5134
5135 2008-07-30  Richard Guenther  <rguenther@suse.de>
5136
5137         PR tree-optimization/36967
5138         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5139         Release defs of statements we remove.
5140
5141 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5142
5143         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
5144         instead of NULL_RTVEC.
5145
5146 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5147
5148         PR target/35866
5149
5150         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
5151         vector modes.
5152
5153 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
5154
5155         * final.c (call_from_call_insn): New.
5156         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
5157
5158 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5159
5160         * configure.ac: Substitute ADA_CFLAGS.
5161         * configure: Regenerate.
5162         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
5163         * Makefile.in: Remove mention of X_* variables.
5164         * config/pa/x-ada-hpux10: Remove.
5165         * config/pa/x-ada: Remove.
5166
5167         * doc/fragments.texi: Update.
5168
5169 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5170
5171         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5172         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5173         __dso_handle explicitly here.
5174
5175 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5176
5177         PR 34389
5178         * c-typeck.c (build_binary_op): Encapsulate code into...
5179         * c-common.c (shorten_binary_op): ...this new function.
5180         (conversion_warning): Use the new function. Handle non-negative
5181         constant in bitwise-and.
5182         * c-common.h (shorten_binary_op): Declare.
5183
5184 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5185
5186         * scan.c (make_sstring_space): Add explicit conversions of
5187         allocator's return value.
5188         * fix-header.c (recognized_function): Likewise.
5189
5190 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5191
5192         * doc/cpp.texi: Update to GFDL 1.2.
5193         * doc/gcc.texi: Do not list GPL as Invariant Section.
5194         * doc/gccint.texi: Likewise.  Update copyright years.
5195         * doc/install.texi: Update copyright years.
5196
5197 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
5198
5199         PR target/36955
5200         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
5201         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
5202
5203 2008-07-29  Jan Hubicka  <jh@suse.cz>
5204
5205         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
5206         (grokdeclarator): Likewise.
5207         * langhooks.c (lhd_warn_unused_global_decl): Use
5208         DECL_DECLARED_INLINE_P.
5209         * print-tree.c (print_node): Remove DECL_INLINE check.
5210
5211 2008-07-29  Richard Guenther  <rguenther@suse.de>
5212
5213         PR tree-optimization/36945
5214         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
5215         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
5216         Record invariant addresses un-decomposed.
5217         (copy_reference_ops_from_call): Record reference call
5218         arguments properly.  Simplify.
5219         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
5220         helper split out from ...
5221         (create_component_ref_by_pieces): ... here.  Simplify.
5222         Prepare for recursive invocation for call arguments.
5223         (create_expression_by_pieces): Adjust call to
5224         create_component_ref_by_pieces.
5225         (compute_avail): Process operand 2 of reference ops.
5226
5227 2008-07-29  Richard Guenther  <rguenther@suse.de>
5228
5229         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
5230
5231 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
5232
5233         * c-format.c (check_format_types): Revert unwanted checkin.
5234
5235 2008-07-29  Jan Hubicka  <jh@suse.cz>
5236
5237         * flags.h (flag_really_no_inline): Remove.
5238         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
5239         * toplev.c (flag_really_no_inline): Remove.
5240         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
5241         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
5242         (cgraph_decide_inlining_incrementally): Likewise.
5243         (compute_inline_parameters): Likewise.
5244         * opts.c (decode_options): Simplify.
5245         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
5246         * common.opt (finline): Initialize to 1.
5247         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
5248
5249 2008-07-29  Jan Hubicka  <jh@suse.cz>
5250
5251         * predict.c (always_optimize_for_size_p): New function.
5252         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5253         optimize_edge_for_size_p, optimize_edge_for_speed_p,
5254         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
5255         functions.
5256         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
5257         * function.c (prepare_function_start): Set default profile.
5258         * function.h (rtl_data): Add maybe_hot_insn_p.
5259         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
5260         (construct_exit_block): Likewise.
5261         (tree_expand_cfg): Likewise.
5262         * basic-block.h
5263         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5264         optimize_edge_for_size_p, optimize_edge_for_speed_p,
5265         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5266         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
5267         Declare.
5268
5269 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5270
5271         PR 34985
5272         * c-decl.c (merge_decls): Merge USED flags.
5273
5274 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5275
5276         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
5277         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
5278         next_stack, lab_false and lab_over trees.
5279
5280 2008-07-28  Richard Guenther  <rguenther@suse.de>
5281
5282         PR tree-optimization/36957
5283         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
5284         (useless_type_conversion_p): Remove.
5285         (types_compatible_p): Remove.
5286         * gimple.h (tree_ssa_useless_type_conversion): Declare.
5287         (useless_type_conversion_p): Declare.
5288         (types_compatible_p): Declare.
5289         (gimple_expr_type): Return the base type only if it is
5290         trivially convertible to the subtype.
5291
5292 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
5293
5294         * configure.ac: Use the m4_do macro to concatenate the warnings into
5295         one string in ACX_PROG_CC_WARNING_OPTS,
5296         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
5297         * configure: Regenerate.
5298
5299 2008-07-28  Richard Guenther  <rguenther@suse.de>
5300
5301         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
5302         (insert_fake_stores): Remove.
5303         (realify_fake_stores): Likewise.
5304         (execute_pre): Remove dead code.
5305         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
5306         (find_func_aliases): Deal with it here instead.
5307         Re-enable gcc_unreachable call.
5308
5309 2008-07-28  Richard Guenther  <rguenther@suse.de>
5310
5311         Merge from gimple-tuples-branch.
5312
5313         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
5314         * gimple.def: New file.
5315         * gsstruct.def: Likewise.
5316         * gimple-iterator.c: Likewise.
5317         * gimple-pretty-print.c: Likewise.
5318         * tree-gimple.c: Removed.  Merged into ...
5319         * gimple.c: ... here.  New file.
5320         * tree-gimple.h: Removed.  Merged into ...
5321         * gimple.h: ... here.  New file.
5322
5323         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
5324         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
5325         --enable-checking=gimple flag.
5326         * config.in: Likewise.
5327         * configure: Regenerated.
5328
5329         * tree-ssa-operands.h: Tuplified.
5330         * tree-vrp.c: Likewise.
5331         * tree-loop-linear.c: Likewise.
5332         * tree-into-ssa.c: Likewise.
5333         * tree-ssa-loop-im.c: Likewise.
5334         * tree-dump.c: Likewise.
5335         * tree-complex.c: Likewise.
5336         * cgraphbuild.c: Likewise.
5337         * tree-ssa-threadupdate.c: Likewise.
5338         * tree-ssa-loop-niter.c: Likewise.
5339         * tree-pretty-print.c: Likewise.
5340         * tracer.c: Likewise.
5341         * gengtype.c: Likewise.
5342         * tree-loop-distribution.c: Likewise.
5343         * tree-ssa-loop-unswitch.c: Likewise.
5344         * cgraph.c: Likewise.
5345         * cgraph.h: Likewise.
5346         * tree-ssa-loop-manip.c: Likewise.
5347         * value-prof.c: Likewise.
5348         * tree-ssa-loop-ch.c: Likewise.
5349         * tree-tailcall.c: Likewise.
5350         * value-prof.h: Likewise.
5351         * tree.c: Likewise.
5352         * tree.h: Likewise.
5353         * tree-pass.h: Likewise.
5354         * ipa-cp.c: Likewise.
5355         * tree-scalar-evolution.c: Likewise.
5356         * tree-scalar-evolution.h: Likewise.
5357         * target.h: Likewise.
5358         * lambda-mat.c: Likewise.
5359         * tree-phinodes.c: Likewise.
5360         * diagnostic.h: Likewise.
5361         * builtins.c: Likewise.
5362         * tree-ssa-alias-warnings.c: Likewise.
5363         * cfghooks.c: Likewise.
5364         * fold-const.c: Likewise.
5365         * cfghooks.h: Likewise.
5366         * omp-low.c: Likewise.
5367         * tree-ssa-dse.c: Likewise.
5368         * ipa-reference.c: Likewise.
5369         * tree-ssa-uncprop.c: Likewise.
5370         * toplev.c: Likewise.
5371         * tree-gimple.c: Likewise.
5372         * tree-gimple.h: Likewise.
5373         * tree-chrec.c: Likewise.
5374         * tree-chrec.h: Likewise.
5375         * tree-ssa-sccvn.c: Likewise.
5376         * tree-ssa-sccvn.h: Likewise.
5377         * cgraphunit.c: Likewise.
5378         * tree-ssa-copyrename.c: Likewise.
5379         * tree-ssa-ccp.c: Likewise.
5380         * tree-ssa-loop-ivopts.c: Likewise.
5381         * tree-nomudflap.c: Likewise.
5382         * tree-call-cdce.c: Likewise.
5383         * ipa-pure-const.c: Likewise.
5384         * c-format.c: Likewise.
5385         * tree-stdarg.c: Likewise.
5386         * tree-ssa-math-opts.c: Likewise.
5387         * tree-ssa-dom.c: Likewise.
5388         * tree-nrv.c: Likewise.
5389         * tree-ssa-propagate.c: Likewise.
5390         * ipa-utils.c: Likewise.
5391         * tree-ssa-propagate.h: Likewise.
5392         * tree-ssa-alias.c: Likewise.
5393         * gimple-low.c: Likewise.
5394         * tree-ssa-sink.c: Likewise.
5395         * ipa-inline.c: Likewise.
5396         * c-semantics.c: Likewise.
5397         * dwarf2out.c: Likewise.
5398         * expr.c: Likewise.
5399         * tree-ssa-loop-ivcanon.c: Likewise.
5400         * predict.c: Likewise.
5401         * tree-ssa-loop.c: Likewise.
5402         * tree-parloops.c: Likewise.
5403         * tree-ssa-address.c: Likewise.
5404         * tree-ssa-ifcombine.c: Likewise.
5405         * matrix-reorg.c: Likewise.
5406         * c-decl.c: Likewise.
5407         * tree-eh.c: Likewise.
5408         * c-pretty-print.c: Likewise.
5409         * lambda-trans.c: Likewise.
5410         * function.c: Likewise.
5411         * langhooks.c: Likewise.
5412         * ebitmap.h: Likewise.
5413         * tree-vectorizer.c: Likewise.
5414         * function.h: Likewise.
5415         * langhooks.h: Likewise.
5416         * tree-vectorizer.h: Likewise.
5417         * ipa-type-escape.c: Likewise.
5418         * ipa-type-escape.h: Likewise.
5419         * domwalk.c: Likewise.
5420         * tree-if-conv.c: Likewise.
5421         * profile.c: Likewise.
5422         * domwalk.h: Likewise.
5423         * tree-data-ref.c: Likewise.
5424         * tree-data-ref.h: Likewise.
5425         * tree-flow-inline.h: Likewise.
5426         * tree-affine.c: Likewise.
5427         * tree-vect-analyze.c: Likewise.
5428         * c-typeck.c: Likewise.
5429         * gimplify.c: Likewise.
5430         * coretypes.h: Likewise.
5431         * tree-ssa-phiopt.c: Likewise.
5432         * calls.c: Likewise.
5433         * tree-ssa-coalesce.c: Likewise.
5434         * tree.def: Likewise.
5435         * tree-dfa.c: Likewise.
5436         * except.c: Likewise.
5437         * except.h: Likewise.
5438         * cfgexpand.c: Likewise.
5439         * tree-cfgcleanup.c: Likewise.
5440         * tree-ssa-pre.c: Likewise.
5441         * tree-ssa-live.c: Likewise.
5442         * tree-sra.c: Likewise.
5443         * tree-ssa-live.h: Likewise.
5444         * tree-predcom.c: Likewise.
5445         * lambda.h: Likewise.
5446         * tree-mudflap.c: Likewise.
5447         * ipa-prop.c: Likewise.
5448         * print-tree.c: Likewise.
5449         * tree-ssa-copy.c: Likewise.
5450         * ipa-prop.h: Likewise.
5451         * tree-ssa-forwprop.c: Likewise.
5452         * ggc-page.c: Likewise.
5453         * c-omp.c: Likewise.
5454         * tree-ssa-dce.c: Likewise.
5455         * tree-vect-patterns.c: Likewise.
5456         * tree-ssa-ter.c: Likewise.
5457         * tree-nested.c: Likewise.
5458         * tree-ssa.c: Likewise.
5459         * lambda-code.c: Likewise.
5460         * tree-ssa-loop-prefetch.c: Likewise.
5461         * tree-inline.c: Likewise.
5462         * tree-inline.h: Likewise.
5463         * tree-iterator.c: Likewise.
5464         * tree-optimize.c: Likewise.
5465         * tree-ssa-phiprop.c: Likewise.
5466         * tree-vect-transform.c: Likewise.
5467         * tree-object-size.c: Likewise.
5468         * tree-outof-ssa.c: Likewise.
5469         * cfgloop.c: Likewise.
5470         * system.h: Likewise.
5471         * tree-profile.c: Likewise.
5472         * cfgloop.h: Likewise.
5473         * c-gimplify.c: Likewise.
5474         * c-common.c: Likewise.
5475         * tree-vect-generic.c: Likewise.
5476         * tree-flow.h: Likewise.
5477         * c-common.h: Likewise.
5478         * basic-block.h: Likewise.
5479         * tree-ssa-structalias.c: Likewise.
5480         * tree-switch-conversion.c: Likewise.
5481         * tree-ssa-structalias.h: Likewise.
5482         * tree-cfg.c: Likewise.
5483         * passes.c: Likewise.
5484         * ipa-struct-reorg.c: Likewise.
5485         * ipa-struct-reorg.h: Likewise.
5486         * tree-ssa-reassoc.c: Likewise.
5487         * cfgrtl.c: Likewise.
5488         * varpool.c: Likewise.
5489         * stmt.c: Likewise.
5490         * tree-ssanames.c: Likewise.
5491         * tree-ssa-threadedge.c: Likewise.
5492         * langhooks-def.h: Likewise.
5493         * tree-ssa-operands.c: Likewise.
5494         * config/alpha/alpha.c: Likewise.
5495         * config/frv/frv.c: Likewise.
5496         * config/s390/s390.c: Likewise.
5497         * config/m32c/m32c.c: Likewise.
5498         * config/m32c/m32c-protos.h: Likewise.
5499         * config/spu/spu.c: Likewise.
5500         * config/sparc/sparc.c: Likewise.
5501         * config/i386/i386.c: Likewise.
5502         * config/sh/sh.c: Likewise.
5503         * config/xtensa/xtensa.c: Likewise.
5504         * config/stormy16/stormy16.c: Likewise.
5505         * config/ia64/ia64.c: Likewise.
5506         * config/rs6000/rs6000.c: Likewise.
5507         * config/pa/pa.c: Likewise.
5508         * config/mips/mips.c: Likewise.
5509
5510 2008-07-28  Simon Baldwin  <simonb@google.com>
5511
5512         * c-pragma.c (handle_pragma_message): New function.
5513         (init_pragma): Register handle_pragma_message.
5514         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
5515         documentation.
5516
5517 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
5518
5519         PR tree-optimization/35252
5520         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
5521         REALPART_EXPR to be considered as same load operation.
5522
5523 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
5524
5525         PR tree-optimization/36830
5526         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
5527         (expressions_equal_p): Return false if only one operand is null.
5528
5529 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
5530
5531         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
5532         version requirements.
5533
5534 2008-07-26  Olivier Hainque  <hainque@adacore.com>
5535
5536         * collect2.c (symkind): New enum.  Symbol kinds we care about.
5537         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
5538         code and head comment accordingly.
5539         (scan_prog_file): Use symkind names instead of bare integers.
5540
5541 2008-07-25  Jan Hubicka  <jh@suse.cz>
5542
5543         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
5544         DECL_INLINE.
5545         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
5546         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
5547         * dojump.c (clear_pending_stack_adjust): Likewise.
5548         * print-tree.c (print_node): Ignore DECL_INLINE.
5549         * tree-inline.c (inlinable_function_p): Likewise.
5550
5551 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
5552
5553         * doc/extend.texi (hot attribute): Document that the hot attribute
5554         turns on -O3 for some ports.
5555         (cold attribute): Document that the cold attribute turns on -Os
5556         for some ports
5557
5558         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
5559         reflect function specific option support.
5560
5561         * target.h (struct target_option_hooks): Add fields to say whether
5562         the cold attribute implies -Os and the hot attribute implies -O3.
5563
5564         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
5565         By default, do not turn on -Os for cold functions.
5566         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
5567         not turn on -O3 for hot functions.
5568
5569         * c-common.c (handle_hot_attribute): Use target hook to determine
5570         if hot functions should enable -O3.
5571         (handle_cold_attribute): Use target hook to determine if cold
5572         functions should enable -Os.
5573
5574         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
5575         (override_options): Move disable scheduling to
5576         optimization_options.
5577         (optimization_options): Disable scheduling here, not
5578         override_options.
5579         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5580         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5581
5582         * config/ia64/ia64.c (ia64_override_options): Move setting
5583         scheduling flags to ia64_optimization_options.
5584         (ia64_optimization_options): Disable scheduling options here, and
5585         not in ia64_override_options.
5586         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5587         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5588
5589 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
5590
5591         PR target/36936
5592         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
5593
5594 2008-07-25  Martin Jambor  <mjambor@suse.cz>
5595
5596         PR tree-optimization/36926
5597         * ipa-prop.c (ipa_analyze_call_uses): Call
5598         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
5599
5600 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5603         movv2si_internal): Add mem = reg alternative.
5604
5605 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
5606
5607         PR bootstrap/36918
5608         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
5609         DEFAULT_PCC_STRUCT_RETURN to 127.
5610
5611 2008-07-24  Jan Hubicka  <jh@suse.cz>
5612
5613         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
5614         (build_cgraph_edges): Likewise.
5615         * cgraph.c (cgraph_node): Do not update assembler hash.
5616         (cgraph_remove_node): Drop non-unit-at-a-time code.
5617         * tree-pass.h (pass_O0_always_inline): Remove.
5618         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
5619         * toplev.c (process_options): Flag unit-at-a-time does not imply
5620         no section anchors.
5621         * cgraphunit.c: Update comments.
5622         (decide_is_function_needed): Drop non-unit-at-a-time mode.
5623         (cgraph_assemble_pending_functions): Remove.
5624         (cgraph_reset_node): Drop non-unit-at-a-time code.
5625         (cgraph_finalize_function): Likewise.
5626         (cgraph_analyze_function): Likewise.
5627         (cgraph_finalize_compilation_unit): Likewise.
5628         (cgraph_expand_function): Likewise.
5629         (cgraph_optimize): Likesise.
5630         (save_inline_function_body): Likewise.
5631         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
5632         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
5633         * ipa-inline.c: Update comments.
5634         (enum inlining_mode): remove INLINE_SPEED.
5635         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
5636         (cgraph_mark_inline_edge): Likewise.
5637         (try_inline): Likewise.
5638         (cgraph_decide_inlining_incrementally): Likewise.
5639         (cgraph_gate_inlining): Remove.
5640         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
5641         (cgraph_gate_early_inlining): Likewise.
5642         (gate_inline_passes): Remove.
5643         (pass_inline_parameters, pass_ipa_inline): Remove gates.
5644         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
5645         pass_O0_always_inline): Remove.
5646         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
5647         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
5648         * opts.c (no_unit_at_a_time_default): Remove.
5649         (decode_options): Remove flag_unit_at_a_time reset and warning.
5650         * opts.h (no_unit_at_a_time_default): Remove.
5651         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
5652         early in GNU dialect.
5653         (merge_decls): Update comment; drop unit-at-a-time check.
5654         (finish_decl): Likewise.
5655         (grok_declaration): Remove flag_inline_trees code.
5656         (finish_functions): Return on function returning non-void on all
5657         statics.
5658         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
5659         * cfgexpand.c (expand_one_static_var): Remove.
5660         (expand_one_var): Remove expand_one_static_var call.
5661         (expand_used_vars_for_block): Remove flag_unit_a_time check.
5662         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
5663         and flag_unit_at_a-time compatibility checks.
5664         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
5665         * tree-inline.c (flag_inline_trees): Remove.
5666         (inlinable_function_p): Don't check it.
5667         (expand_call_inline): Remove non-unit-at-a-time code.
5668         * tree-inline.h (flag_inline_trees): Remove.
5669         * tree-optimize.c (execute_early_local_optimizations): Remove
5670         unit-at-a-time checks.
5671         (tree_rest_of_compilation): Likewise.
5672         * combine.c (setup_incoming_promotions): Likewise.
5673         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
5674         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
5675         * passes.c (pass_inline_parameters): Update comments; remove
5676         O0_alwaysinline pass.
5677         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
5678         (execute_one_pass): Likewise.
5679         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
5680         (ix86_function_sseregparm): Likewise.
5681         * arm.c (arm_function_in_section_p): Likewise.
5682         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
5683         * varpool.c: Update comments.
5684         (decide_is_variable_needed): Remove unit-at-a-time checks.
5685         (varpool_finalize_decl): Likewise.
5686
5687 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5688
5689         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
5690         to 2 instead of -1.
5691         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
5692
5693 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
5694
5695         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
5696         imp symbol extension.
5697
5698         2008-07-23  Ian Lance Taylor  <iant@google.com>
5699
5700         * tree-vrp.c (infer_value_range): Ignore asm statements when
5701         looking for memory accesses for -fdelete-null-pointer-checks.
5702
5703 2008-07-24  Ben Elliston  <bje@au.ibm.com>
5704
5705         * config/spu/spu-c.c (__vector_keyword): New variable.
5706         (vector_keyword): Likewise.
5707         (spu_categorize_keyword): New function.
5708         (spu_macro_to_expand): Likewise.
5709         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
5710         compiling an ISO C dialect.
5711
5712 2008-07-24  Ben Elliston  <bje@au.ibm.com>
5713
5714         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
5715         conventional usage.
5716
5717 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5718
5719         * configure: Regenerate.
5720         * configure.ac: Require texinfo 4.7.
5721         * doc/install.texi: Document texinfo 4.7 requirement.
5722
5723 2008-07-23  Martin Jambor  <mjambor@suse.cz>
5724
5725         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
5726         rather than for DECL_SAVED_TREE.
5727         * ipa-prop.c: Include diagnostic.h.
5728         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
5729         thoroughly.
5730         (ipa_detect_param_modifications): Function rewritten from scratch.
5731         (ipa_compute_jump_functions): Changed accesses to modification flags.
5732         (ipa_free_node_params_substructures): Update flags destruction.
5733         (ipa_node_duplication_hook): Update flags duplication.
5734         (ipa_print_all_params_modified): Updated flag access.
5735         * ipa-prop.h (struct ipa_param_flags): New structure.
5736         (struct ipa_node_params): New field modification_analysis_done,
5737         modified_flags changed into param_flags.
5738         (ipa_is_ith_param_modified): Changed to use new flags.
5739         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
5740
5741         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
5742         ipa-cp.c and split into two functions.
5743         (ipa_print_node_jump_functions): New function.
5744         (compute_scalar_jump_functions): New function.
5745         (type_like_member_ptr_p): New function.
5746         (compute_pass_through_member_ptrs): New function.
5747         (fill_member_ptr_cst_jump_function): New function.
5748         (determine_cst_member_ptr): New function.
5749         (compute_cst_member_ptr_arguments): New function.
5750         (ipa_compute_jump_functions): Complete rewrite.
5751         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
5752         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
5753         (struct ipa_member_ptr_cst): New structure.
5754         (union jump_func_value): New field member_cst.
5755         * ipa-cp.c (ipcp_lat_is_insertable): New function.
5756         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
5757         jump function types.
5758         (ipcp_print_all_lattices): Slight fprintf rearrangement.
5759         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
5760         instead of ipcp_print_all_jump_functions.
5761         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
5762         only for replacable scalars.
5763
5764         * doc/invoke.texi (Optimize options): Add description of
5765         -findirect-inlining.
5766         * common.opt (flag_indirect_inlining): New flag.
5767         * opts.c (decode_options): Set flag_indirect_inlining when
5768         optimize >= 3.
5769
5770         * ipa-inline.c: Include ipa-prop.h.
5771         (inline_indirect_intraprocedural_analysis): New function.
5772         (inline_generate_summary): Allocate parameter and argument info
5773         structures, call inline_indirect_intraprocedural_analysis on each
5774         node when doing indirect inlining and deallocate indirect inlining
5775         data structures in the end.
5776         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
5777         (free_all_ipa_structures_after_iinln): New function.
5778         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
5779         done.
5780         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
5781
5782         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
5783         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
5784         of computing the frequency separately.
5785         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
5786         of computing the frequency separately.
5787         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
5788         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
5789         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
5790         (ipa_get_stmt_member_ptr_load_param): New function.
5791         (ipa_is_ssa_with_stmt_def): New function.
5792         (ipa_note_param_call): New function.
5793         (ipa_analyze_call_uses): New function.
5794         (ipa_analyze_stmt_uses): New function.
5795         (ipa_analyze_params_uses): New function.
5796         (ipa_free_node_params_substructures): Also free the param_calls linked
5797         list.
5798         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
5799         (ipa_print_node_param_flags): New function.
5800         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
5801         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
5802         * ipa-prop.h (struct ipa_param_flags): New field called.
5803         (struct ipa_param_call_note): New structure.
5804         (struct ipa_node_params): New fields param_calls and
5805         uses_analysis_done.
5806         (ipa_is_ith_param_called): New function.
5807         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5808         ipa_analyze_params_uses and dump parameter flags.
5809
5810         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
5811         ipa_propagate_indirect_call_infos if performing indirect inlining,
5812         pass a new parameter new_edges to it.
5813         (add_new_edges_to_heap): New fucntion.
5814         (cgraph_decide_inlining_of_small_functions): New vector
5815         new_indirect_edges for newly found indirect edges , call
5816         ipa_propagate_indirect_call_infos after inlining.
5817         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
5818         inlining if performing indirect inlining.  Call
5819         free_all_ipa_structures_after_iinln when doing so too.
5820         (inline_generate_summary): Do not call
5821         free_all_ipa_structures_after_iinln here.
5822         * ipa-prop.c (update_jump_functions_after_inlining): New function.
5823         (print_edge_addition_message): New function.
5824         (update_call_notes_after_inlining): New function.
5825         (propagate_info_to_inlined_callees): New function.
5826         (ipa_propagate_indirect_call_infos): New function.
5827         * ipa-prop.h: Include cgraph.h
5828         (struct ipa_param_call_note): Fields reordered, new field processed.
5829         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
5830         flag indirect_call.
5831         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
5832         rediscovered call statements.
5833         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
5834         (dump_cgraph_node): Dump also the indirect_call flag.
5835         (cgraph_clone_edge): Copy also the indirect_call flag.
5836         * tree-inline.c (copy_bb): Do not check for fndecls from call
5837         expressions, check for edge availability when moving clones.
5838         (get_indirect_callee_fndecl): New function.
5839         (expand_call_inline): If callee declaration is not apprent from
5840         the statement, try calling get_indirect_callee_fndecl.  Do not
5841         issue warnings or call sorry when not inlinings an indirect edge.
5842         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
5843
5844         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
5845         bit more frandly to matching.
5846         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
5847         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
5848         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
5849
5850 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
5851
5852         PR 36907
5853         * opth-gen.awk: Suppress function specific features when building
5854         target libraries.
5855         * optc-gen.awk: Ditto.
5856
5857 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5858
5859         PR 35058
5860         * diagnostic.c (pedwarn): Add opt parameter.
5861         (pedwarn0): New.
5862         * c-tree.h (pedwarn_init): Add opt parameter.
5863         (pedwarn_c90): Likewise.
5864         (pedwarn_c99): Likewise.
5865         * c-errors.c (pedwarn_c99): Likewise.
5866         (pedwarn_c90): Likewise.
5867         * toplev.h (pedwarn): Update declaration.
5868         (pedwarn0): Declare.
5869         * c-lex.c: All calls to pedwarn changed.
5870         * builtins.c: All calls to pedwarn changed.
5871         * toplev.c: All calls to pedwarn changed.
5872         * c-decl.c: All calls to pedwarn changed.
5873         * c-typeck.c: All calls to pedwarn changed.
5874         * c-common.c: All calls to pedwarn changed.
5875         * c-parser.c: All calls to pedwarn changed.
5876
5877 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
5878             Karthik Kumar  <karthikkumar@gmail.com>
5879
5880         * attribs.c (file scope): Include c-common.h.
5881         (decl_attributes): Add support for #pragma GCC optimize and
5882         #pragma GCC option.
5883
5884         * targhooks.c (default_can_inline_p): New function that is the
5885         default for the TARGET_CAN_INLINE_P target hook.
5886
5887         * targhooks.h (default_can_inline_p): Add declaration.
5888
5889         * tree.c (cl_optimization_node): New static tree for building
5890         OPTIMIZATION_NODE tree.
5891         (cl_target_option_node): New static tree for building
5892         TARGET_OPTION_NODE tree.
5893         (cl_option_hash_table): New hash table for hashing
5894         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5895         (cl_option_hash_hash): New function to provide the hash value for
5896         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5897         (cl_option_hash_eq): New function to provide an equality test for
5898         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5899         (tree_code_size): Add support for OPTIMIZATION_NODE and
5900         TARGET_OPTION_NODE trees.
5901         (tree_code_structure): Add support for OPTIMIZATION_NODE and
5902         TARGET_OPTION_NODE trees.
5903         (build_optimization_node): Build a tree that has all of the
5904         current optimization options.
5905         (build_target_option_node): Build a tree that has the target
5906         options that might be changed on a per function basis.
5907
5908         * tree.h (file scope): Include options.h.
5909         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
5910         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
5911         (TREE_OPTIMIZATION): Ditto.
5912         (TREE_TARGET_SPECIFIC): Ditto.
5913         (struct tree_function_decl): Add fields for remembering the
5914         current optimization options and target specific options.
5915         (struct tree_optimization_option): New tree variant that remembers
5916         the optimization options.
5917         (struct tree_target_option): New tree variant that remembers the
5918         target specific flags that might change for compiling a particular
5919         function.
5920         (union tree_node): Include tree_optimization_option and
5921         tree_target_option fields.
5922         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
5923         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
5924         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
5925         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
5926         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
5927         optimization and target options.
5928         (optimization_default_node): New macro to refer to global_trees
5929         field.
5930         (optimization_current_node): Ditto.
5931         (optimization_cold_node): Ditto.
5932         (optimization_hot_node): Ditto.
5933         (target_option_default_node): Ditto.
5934         (target_option_current_node): Ditto.
5935         (current_option_pragma): Ditto.
5936         (current_optimize_pragma): Ditto.
5937
5938         * target.h (struct gcc_target): Add valid_option_attribute_p,
5939         target_option_save, target_option_restore, target_option_print,
5940         target_option_pragma_parse, and can_inline_p hooks.
5941
5942         * toplev.h (parse_optimize_options): Add declaration.
5943         (fast_math_flags_struct_set_p): Ditto.
5944
5945         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
5946         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
5947         optimize is used.
5948
5949         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
5950         tree_can_inline_p hook to see if one function can inline another.
5951         (cgraph_decide_inlining): Ditto.
5952         (cgraph_decide_inlining_incrementally): Ditto.
5953
5954         * opts.c (decode_options): Add support for running multiple times
5955         to allow functions with different target or optimization options
5956         than was specified on the command line.
5957         (fast_math_flags_struct_set_p): New function that is similar to
5958         fast_math_flags_set_p, except it uses the values in the
5959         cl_optimization structure instead of global variables.
5960
5961         * optc-gen.awk: Add support for TargetSave to allow a back end to
5962         declare new fields that need to be saved when using function
5963         specific options.  Include flags.h and target.h in the options.c
5964         source.  Add support for Save to indicate which options can be set
5965         for individual functions.  Generate cl_optimize_save,
5966         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
5967         cl_target_option_restore, cl_target_option_print functions to
5968         allow functions to use different optimization or target options.
5969
5970         * opt-functions.awk (var_type_struct): Return the type used for
5971         storing the field in a structure.
5972
5973         * opth-gen.awk: Add support for TargetSave to allow a back end to
5974         declare new fields that need to be saved when using function
5975         specific options.  Add support for Save to indicate which options
5976         can be set for individual functions.  Only generate one extern for
5977         Mask fields.  Generate cl_optimization and cl_target_option
5978         structures to remember optimization and target options.
5979
5980         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
5981         collecting new tree nodes.
5982         (TS_TARGET_OPTION): Ditto.
5983
5984         * c-decl.c (merge_decls): Merge function specific target and
5985         optimization options.
5986
5987         * function.c (invoke_set_current_function_hook): If the function
5988         uses different optimization options, change the global variables
5989         to reflect this.
5990
5991         * coretypes.h (struct cl_optimization): Add forward reference.
5992         (struct cl_target_option): Ditto.
5993
5994         * c-pragma.c (option_stack): New static vector to remember the
5995         current #pragma GCC option stack.
5996         (handle_pragma_option): New function to support #pragma GCC option
5997         to change target options.
5998         (optimize_stack): New static vector to remember the current
5999         #pragma GCC optimize stack.
6000         (handle_pragma_optimize): New function to support #pragma GCC
6001         optimize to change optimization options.
6002         (init_pragma): Add support for #pragma GCC optimize and #pragma
6003         GCC option.
6004
6005         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6006         optimization options.
6007         (TARGET_OPTION_NODE): New tree code for remembering certain target
6008         options.
6009
6010         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6011         TARGET_OPTION_NODE trees.
6012
6013         * common.opt (-O): Add Optimization flag.
6014         (-Os): Ditto.
6015         (-fmath-errno): Ditto.
6016         (-falign-functions): Add UInteger flag to make sure flag gets full
6017         int in cl_optimization structure.
6018         (-falign-jumps): Ditto.
6019         (-falign-labels): Ditto.
6020         (-falign-loops): Ditto.
6021         (-fsched-stalled-insns): Ditto.
6022         (-fsched-stalled-insns-dep): Ditto.
6023
6024         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6025         definition.
6026         (TARGET_OPTION_SAVE): Ditto.
6027         (TARGET_OPTION_RESTORE): Ditto.
6028         (TARGET_OPTION_PRINT): Ditto.
6029         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6030         (TARGET_CAN_INLINE_P): Ditto.
6031         (TARGET_INITIALIZER): Add new hooks.
6032
6033         * tree-inline.c (tree_can_inline_p): New function to determine
6034         whether one function can inline another.  Check if the functions
6035         use compatible optimization options, and also call the backend
6036         can_inline_p hook.
6037
6038         * tree-inline.h (tree_can_inline_p): Add declaration.
6039
6040         * c-common.c (c_common_attribute): Add support for option and
6041         optimize attributes.
6042         (handle_option_attribute): Add support for the option attribute to
6043         allow the user to specify different target options for compiling a
6044         specific function.
6045         (handle_optimize_attribute): Add support for the optimize
6046         attribute to allow the user to specify different optimization
6047         options for compiling a specific function.
6048         (handle_hot_attribute): Turn on -O3 optimization for this one
6049         function if it isn't the default optimization level.
6050         (handle_cold_attribute): Turn on -Os optimization for this one
6051         function if it insn't the default optimization.
6052         (const_char_p): New const char * typedef.
6053         (optimize_args): New static vector to remember the optimization
6054         arguments.
6055         (parse_optimize_options): New function to set up the optimization
6056         arguments from either the optimize attribute or #pragma GCC optimize.
6057
6058         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6059         (builtin_define_std): Ditto.
6060
6061         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6062         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6063         (x86_64-*-*): Ditto.
6064
6065         * Makefile.in (TREE_H): Add options.h.
6066         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6067
6068         * doc/extend.texi (option attribute): Document new attribute.
6069         (optimize attribute): Ditto.
6070         (hot attribute): Document hot attribute sets -O3.
6071         (cold attribute): Document cold attribute sets -Os.
6072         (#pragma GCC option): Document new pragma.
6073         (#pragma GCC optimize): Ditto.
6074
6075         * doc/options.texi (TargetSave): Document TargetSave syntax.
6076         (UInteger): Document UInteger must be used for certain flags.
6077         (Save): Document Save option to create target specific options
6078         that can be saved/restored on a function specific context.
6079
6080         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
6081         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6082
6083         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
6084         (TARGET_OPTION_SAVE): Ditto.
6085         (TARGET_OPTION_RESTORE): Ditto.
6086         (TARGET_OPTION_PRINT): Ditto.
6087         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6088         (TARGET_CAN_INLINE_P): Ditto.
6089
6090         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
6091         -mfpmath=sse,387.
6092         (-mfpmath=both): Ditto.
6093
6094 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6095             Karthik Kumar  <karthikkumar@gmail.com>
6096
6097         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
6098         (TARGET_POPCNT): Ditto.
6099         (TARGET_SAHF): Ditto.
6100         (TARGET_AES): Ditto.
6101         (TARGET_PCLMUL): Ditto.
6102         (TARGET_CMPXCHG16B): Ditto.
6103         (TARGET_RECIP): Move switch into target_flags.
6104         (TARGET_FUSED_MADD): Ditto.
6105         (ix86_arch_features): Make an unsigned char type.
6106         (ix86_tune_features): Ditto.
6107         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
6108         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
6109         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
6110
6111         * config/i386/i386.opt (arch): New TargetSave field to define
6112         fields that need to be saved for function specific option support.
6113         (tune): Ditto.
6114         (fpmath): Ditto.
6115         (branch_cost): Ditto.
6116         (ix86_isa_flags_explicit): Ditto.
6117         (tune_defaulted): Ditto.
6118         (arch_specified): Ditto.
6119         (-m128-long-double): Add Save flag to save option for target
6120         specific option support.
6121         (-m80387): Ditto.
6122         (-maccumulate-outgoing-args): Ditto.
6123         (-malign-double): Ditto.
6124         (-malign-stringops): Ditto.
6125         (-mfancy-math-387): Ditto.
6126         (-mhard-float): Ditto.
6127         (-mieee-fp): Ditto.
6128         (-minline-all-stringops): Ditto.
6129         (-minline-stringops-dynamically): Ditto.
6130         (-mms-bitfields): Ditto.
6131         (-mno-align-stringops): Ditto.
6132         (-mno-fancy-math-387): Ditto.
6133         (-mno-push-args): Ditto.
6134         (-mno-red-zone): Ditto.
6135         (-mpush-args): Ditto.
6136         (-mred-zone): Ditto.
6137         (-mrtd): Ditto.
6138         (-msseregparm): Ditto.
6139         (-mstack-arg-probe): Ditto.
6140         (-m32): Ditto.
6141         (-m64): Ditto.
6142         (-mmmx): Ditto.
6143         (-m3dnow): Ditto.
6144         (-m3dnowa): Ditto.
6145         (-msse): Ditto.
6146         (-msse2): Ditto.
6147         (-msse3): Ditto.
6148         (-msse4.1): Ditto.
6149         (-msse4.2): Ditto.
6150         (-msse4): Ditto.
6151         (-mno-sse4): Ditto.
6152         (-msse4a): Ditto.
6153         (-msse5): Ditto.
6154         (-mrecip): Move flag into target_flags.
6155         (-mcld): Ditto.
6156         (-mno-fused-madd): Ditto.
6157         (-mfused-madd): Ditto.
6158         (-mabm): Move flag into ix86_isa_flags.
6159         (-mcx16): Ditto.
6160         (-mpopcnt): Ditto.
6161         (-msahf): Ditto.
6162         (-maes): Ditto.
6163         (-mpclmul): Ditto.
6164
6165         * config/i386/i386-c.c: New file for #pragma support.
6166         (ix86_target_macros_internal): New function to #define or #undef
6167         target macros based when the user uses the #pragma GCC option to
6168         change target options.
6169         (ix86_pragma_option_parse): New function to add #pragma GCC option
6170         support.
6171         (ix86_target_macros): Move defining the target macros here from
6172         TARGET_CPU_CPP_BUILTINS in i386.h.
6173         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
6174         defined, initialize any subtarget #pragmas.
6175
6176         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6177         REGISTER_TARGET_PRAGMAS.
6178
6179         * config/i386/t-i386: New file for x86 dependencies.
6180         (i386.o): Make dependencies mirror the include files used.
6181         (i386-c.o): New file, add dependencies.
6182
6183         * config/i386/i386-protos.h (override_options): Add bool argument.
6184         (ix86_valid_option_attribute_tree): Add declaration.
6185         (ix86_target_macros): Ditto.
6186         (ix86_register_macros): Ditto.
6187
6188         * config/i386/i386.c (ix86_tune_features): Move initialization of
6189         the target masks to initial_ix86_tune_features to allow functions
6190         to have different target options.  Make type unsigned char,
6191         instead of unsigned int.
6192         (initial_ix86_tune_features): New static vector to hold processor
6193         masks for the tune variables.
6194         (ix86_arch_features): Move initialization of the target masks to
6195         initial_ix86_arch_features to allow functions to have different
6196         target options.  Make type unsigned char, instead of unsigned int.
6197         (initial_ix86_arch_features): New static vector to hold processor
6198         masks for the arch variables.
6199         (enum ix86_function_specific_strings): New enum to describe the
6200         string options used for attribute((option(...))).
6201         (ix86_target_string): New function to return a string that
6202         describes the target options.
6203         (ix86_debug_options): New function to print the current options in
6204         the debugger.
6205         (ix86_function_specific_save): New function hook to save the
6206         function specific global variables in the cl_target_option structure.
6207         (ix86_function_specific_restore): New function hook to restore the
6208         function specific variables from the cl_target_option structure to
6209         the global variables.
6210         (ix86_function_specific_print): New function hook to print the
6211         target specific options in the cl_target_option structure.
6212         (ix86_valid_option_attribute_p): New function hook to validate
6213         attribute((option(...))) arguments.
6214         (ix86_valid_option_attribute_tree): New function that is common
6215         code between attribute((option(...))) and #pragma GCC option
6216         support that parses the options and returns a tree holding the options.
6217         (ix86_valid_option_attribute_inner_p): New helper function for
6218         ix86_valid_option_attribute_tree.
6219         (ix86_can_inline_p): New function hook to decide if one function
6220         can inline another on a target specific basis.
6221         (ix86_set_current_function); New function hook to switch target
6222         options if the user used attribute((option(...))) or #pragma GCC
6223         option.
6224         (ix86_tune_defaulted): Move to static file scope from
6225         override_options.
6226         (ix86_arch_specified): Ditto.
6227         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
6228         ix86_isa_flags.
6229         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
6230         (OPTION_MASK_ISA_ABM_SET): Ditto.
6231         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
6232         (OPTION_MASK_ISA_CX16_SET): Ditto.
6233         (OPTION_MASK_ISA_SAHF_SET): Ditto.
6234         (OPTION_MASK_ISA_AES_UNSET): Ditto.
6235         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
6236         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
6237         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
6238         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
6239         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
6240         (struct ptt): Move to static file scope from override_options.
6241         (processor_target_table): Ditto.
6242         (cpu_names): Ditto.
6243         (ix86_handle_option): Add support for options that are now isa options.
6244         (override_options): Add support for declaring functions that
6245         support different target options than were specified on the
6246         command line.  Move struct ptt, processor_target_table, cpu_names,
6247         ix86_tune_defaulted, ix86_arch_specified to static file scope.
6248         Add bool argument.  Fix up error messages so the appropriate error
6249         is given for either command line or attribute.
6250         (ix86_previous_fndecl): New static to remember previous function
6251         declaration to see if we need to change target options.
6252         (ix86_builtins_isa): New array to record the ISA of each builtin
6253         function.
6254         (def_builtin): Always create the builtin function, even if the
6255         current ISA doesn't support it.
6256         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
6257         tests for those builtins.
6258         (ix86_init_builtins): Remove TARGET_MMX test for calling
6259         ix86_init_mmx_sse_builtins.
6260         (ix86_expand_builtin): If the current ISA doesn't support a given
6261         builtin, signal an error.
6262         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
6263         (TARGET_SET_CURRENT_FUNCTION): Ditto.
6264         (TARGET_OPTION_SAVE): Ditto.
6265         (TARGET_OPTION_RESTORE): Ditto.
6266         (TARGET_OPTION_PRINT): Ditto.
6267         (TARGET_CAN_INLINE_P): Ditto.
6268
6269 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
6270
6271         * c-typeck.c (build_external_ref): Don't call assemble_external.
6272         * final.c (output_operand): Call assemble_external.
6273
6274 2008-07-21  DJ Delorie  <dj@redhat.com>
6275
6276         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
6277         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6278
6279 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6280
6281         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
6282         original insn and splitter contents into ...
6283         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
6284         flag_unsafe_math_optimizations.  Add dummy scratch register.
6285         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
6286         !flag_unsafe_math_optimizations.  Returns number with next
6287         highest magnitude if this is still less or equal to the true
6288         quotient in magnitude.
6289
6290 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
6291
6292         * Makefile.in: Replace toplev.h with TOPLEV_H.
6293         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
6294         * c-lex.c (fe_file_change): Don't set in_system_header.
6295         * c-parser.c (c_token): Remove in_system_header.
6296         (c_lex_one_token): Don't set in_system_header.
6297         (c_parser_set_source_position_from_token): Don't set in_system_header.
6298         * diagnostic.c (diagnostic_report_diagnostic): Use location from
6299         diagnostic_info.
6300         (warning_at): New.
6301         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
6302         * flags.h (in_system_header): Remove.
6303         * function.c (saved_in_system_header): Remove.
6304         (push_cfun): Don't set in_system_header.
6305         (pop_cfun): Don't set in_system_header.
6306         (push_struct_function): Don't set in_system_header.
6307         * input.h (expanded_location): Add sysp.
6308         (in_system_header_at): New.
6309         (in_system_header): New.
6310         * toplev.c (in_system_header): Remove.
6311         * toplev.h: Include input.h
6312         (warning_at): New.
6313         * tree-cfg.c (execute_warn_function_return): Call warning_at.
6314         * tree-ssa.c (warn_uninit): Call warning_at.
6315         (warn_uninitialized_var): Update calls to warn_uninit.
6316         (warn_uninitialized_phi): Update calls to warn_uninit.
6317         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
6318         (expand_location): Initialize xloc.sysp.
6319         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
6320         (tree_decl_with_vis): Remove in_system_header_flag.
6321
6322 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6323
6324         PR target/36822
6325         * recog.c (asm_operand_ok): Change the order of the extra
6326         memory constraint checks.
6327
6328 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6329
6330         PR tree-opt/36879
6331         * tree-switch-conversion.c (build_one_array): Call
6332         varpool_mark_needed_node and varpool_finalize_decl
6333         instead of assemble_variable.
6334
6335 2008-07-19  Jan Hubicka  <jh@suse.cz>
6336
6337         * cgraph.c (cgraph_add_new_function): Do early local passes.
6338         * tree-nrv.c (gate_pass_return_slot): New gate.
6339         (pass_nrv): Add the gate.
6340         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
6341         functions.
6342         (coalesce_ssa_name): Coalesce SSA names.
6343         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
6344         not optimizing so unused user vars remains visible.
6345         * common.opt (flag_tree_ter): Always enable by default.
6346         * tree-ssa-ter.c: Include flags.h
6347         (is_replaceable_p): Check that locations match; when aliasing is missing
6348         be conservative about loads.
6349         * tree-optimize.c (gate_init_datastructures): Remove.
6350         (pass_init_datastructures): New.
6351         * passes.c: Reorder passes so we always go into SSA.
6352
6353 2008-07-19  Jan Hubicka  <jh@suse.cz>
6354
6355         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
6356         * doc/invoke.texi (--combine): Likewise.
6357         (-finline-functions-called-once): Update levels when enabled.
6358         (-funit-at-a-time): Document new behaviour.
6359         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
6360         -fno-section-anchors when disabled explicitly.
6361         (inline params): They are not ignored now.
6362         (precompiled headers): Remove unit-at-a-time as being incompatible.
6363         * opts.c (decode_options): Handle unit-at-a-time as alias;
6364         imply -fno-section-anchors when toplevel reorder is disabled
6365         explicitly.
6366         * common.opt (ftoplevel-reorder): Set default value to 2.
6367         (funit-at-a-time): Set default value to 1.
6368         * config/rs6000/rs6000.c (optimization_options): Set section anchors
6369         to 2.
6370
6371 2008-07-19  Jan Hubicka  <jh@suse.cz>
6372
6373         * builtins.c (expand_builtin_int_roundingfn,
6374         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
6375         it is not useful.
6376
6377 2008-07-19  Richard Guenther  <rguenther@suse.de>
6378
6379         PR bootstrap/36864
6380         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
6381         * tree-ssa-sccvn.c (get_constant_value_id): New function.
6382         * tree-ssa-pre.c (get_expr_value_id): For newly created
6383         constant value-ids make sure to add the expression to its
6384         expression-set.
6385
6386 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
6387
6388         PR middle-end/36877
6389         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
6390         return value of the builtin is ignored.
6391
6392 2008-07-19  Olivier Hainque  <hainque@adacore.com>
6393
6394         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
6395         bits, a C conformant malloc implementation has to provide.
6396         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
6397
6398 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
6399
6400         PR target/36780
6401         PR target/36827
6402         * reload.c (find_reloads_subreg_address): Only reload address if
6403         reloaded == 0, not for reloaded != 1.
6404
6405         Revert:
6406         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
6407         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6408         (m32c_legitimate_address_p): Handle "++rii" addresses created by
6409         m32c_legitimize_reload_address.
6410
6411         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6412         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6413         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6414
6415 2008-07-19  Olivier Hainque  <hainque@adacore.com>
6416
6417         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
6418         argument, saying whether nested array are to be collapsed
6419         into a single array type DIE with multiple subscripts.
6420         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
6421         issues, centralize the nested array types collapsing control and
6422         disable the transformation for Ada.
6423
6424 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
6425
6426         PR target/36786
6427         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
6428         x86_64_shift_adj.
6429         (x86_64_shift_adj_2): New expander.
6430         (x86_64_shift_adj_3): Ditto.
6431         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
6432         to split TImode operands.
6433         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
6434         (ix86_split_lshr): Ditto.
6435
6436 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
6437
6438         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
6439         and __CHAR32_TYPE__.
6440         * c-typeck.c (digest_init): Support char16_t and char32_t.
6441         (set_nonincremental_init_from_string): Idem.
6442
6443 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6444
6445         PR middle-end/36859
6446         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
6447         PREFERRED_STACK_BOUNDARY.
6448         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6449
6450 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
6451
6452         PR middle-end/36858
6453         * function.c (locate_and_pad_parm): Cap boundary earlier.
6454
6455 2008-07-17  Julian Brown  <julian@codesourcery.com>
6456
6457         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
6458         no-op for targets which don't use DLLs.
6459
6460 2008-07-17  Martin Jambor  <mjambor@suse.cz>
6461
6462         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
6463         that nodes are relevant by examining the node->analyzed flag.
6464         (ipcp_init_stage): Check which nodes are relevant, assert that the
6465         relevant ones are also required.
6466         (ipcp_propagate_stage): Check on the side arrays are properly
6467         allocated.
6468         (ipcp_print_all_jump_functions): Make sure not to touch any node
6469         that is not analyzed or an edge that does not have a corresponding
6470         entry in the on-the-side vectors.
6471         (ipcp_function_scale_print): Likewise.
6472         (ipcp_update_callgraph): Check that the node is relevant.
6473         (ipcp_insert_stage): Check that the node is relevant.  Check there is
6474         an info for every node and edge.
6475         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
6476         (ipa_print_all_tree_maps): Likewise and a new variable info.
6477         (ipa_print_all_params_modified): Likewise.
6478         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
6479
6480 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
6481
6482         PR target/25343
6483         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
6484
6485 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
6486
6487         PR rtl-optimization/36753
6488         * fwprop.c (use_killed_between): Don't shortcut
6489         single-definition global registers.
6490
6491 2008-07-16  Jan Hubicka  <jh@suse.cz>
6492
6493         * cgraph.h (varpool_empty_needed_queue): Declare.
6494         * cgraphunit.c (output_in_order): Mark all variables as needed;
6495         empty the queue.
6496         * varpool.c (varpool_assemble_node): Update debug queue.
6497         (varpool_assemble_pending_decls): Don't do it here.
6498         (varpool_empty_needed_queue):  New function.
6499
6500 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6501
6502         * recog.c (peephole2_optimize): Fix formatting.
6503
6504 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6505
6506         * c-pch.c (get_ident): Avoid C++ keywords.
6507         * combine-stack-adj.c (single_set_for_csa): Likewise.
6508         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
6509         output_asm_insn): Likewise.
6510         * reload.c (push_secondary_reload, find_reusable_reload,
6511         push_reload, combine_reloads, find_reloads,
6512         debug_reload_to_stream): Likewise.
6513         * reload.h (struct reload): Likewise.
6514         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
6515         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
6516         emit_output_reload_insns): Likewise.
6517         * targhooks.c (default_secondary_reload): Likewise.
6518         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
6519
6520 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6521
6522         * recog.c (validate_change_1, validate_change,
6523         validate_unshare_change, validate_replace_rtx_1, struct
6524         funny_match, constrain_operands, peephole2_optimize): Avoid C++
6525         keywords.
6526         * reload.c (push_secondary_reload, secondary_reload_class,
6527         scratch_reload_class, find_valid_class, find_reusable_reload,
6528         push_reload, find_dummy_reload, find_reloads_address_1,
6529         find_reloads_address_part, find_equiv_reg): Likewise.
6530         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
6531         choose_reload_regs): Likewise.
6532         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
6533         Likewise.
6534         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
6535         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
6536         * sched-rgn.c (concat_INSN_LIST): Likewise.
6537         * stor-layout.c (mode_for_size, mode_for_size_tree,
6538         smallest_mode_for_size): Likewise.
6539
6540 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6541
6542         * cfg.c (dump_reg_info): Avoid C++ keywords.
6543         * dwarf2asm.c (dw2_force_const_mem,
6544         dw2_asm_output_encoded_addr_rtx): Likewise.
6545         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
6546         * expmed.c (expand_shift): Likewise.
6547         * global.c (find_reg): Likewise.
6548         * graph.c (draw_edge): Likewise.
6549         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
6550         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
6551         widen_clz, widen_bswap, expand_parity, expand_unop,
6552         emit_cmp_and_jump_insn_1): Likewise.
6553         * postreload.c (reload_cse_simplify_operands): Likewise.
6554         * ra.h (add_neighbor): Likewise.
6555         * reg-stack.c (remove_regno_note, change_stack): Likewise.
6556         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
6557         record_reg_classes, copy_cost, record_address_regs,
6558         invalid_mode_change_p): Likewise.
6559         * regrename.c (regrename_optimize, scan_rtx_reg,
6560         dump_def_use_chain, find_oldest_value_reg,
6561         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
6562
6563 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
6564
6565         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
6566         MASK_POWERPC64 for power4 in previous commit.
6567
6568 2008-07-16  Olivier Hainque  <hainque@adacore.com>
6569
6570         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
6571         instead of bare conversion to cast const-ness away.
6572
6573 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
6574
6575         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
6576         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
6577         * config/xtensa/xtensa.c (xtensa_function_value): New function.
6578         (TARGET_FUNCTION_VALUE): Define.
6579
6580 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
6581
6582         * config/rs6000/rs6000.c (processor_target_table): Add
6583         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
6584
6585 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
6586
6587         PR target/36827
6588         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6589         (m32c_legitimate_address_p): Handle "++rii" addresses created by
6590         m32c_legitimize_reload_address.
6591
6592 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
6593
6594         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
6595         DECL_IN_SYSTEM_HEADER in sync.
6596
6597 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
6598
6599         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
6600         * tree-ssa-pre.c (pre_expr_eq): Ditto
6601         (get_constant_for_value_id): Take a type as an argument.
6602         (fully_constant_expression): Pass in type.
6603         (find_or_generate_expression): Short circuit constant case.
6604         (create_expression_by_pieces): Remove special casing of
6605         pointer_plus.
6606         (do_regular_insertion): Short circuit constant case.
6607         (do_partial_partial_insertion): Ditto.
6608
6609 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6610
6611         PR target/36782
6612         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
6613
6614 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
6615
6616         * config/xtensa/libgcc-xtensa.ver: New file.
6617         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
6618
6619 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6620
6621         * df-problems.c (df_set_note): Avoid C++ keywords.
6622         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
6623         * dse.c (record_store, remove_useless_values): Likewise.
6624         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
6625         gen_reg_rtx_offset, operand_subword, change_address_1,
6626         change_address, adjust_address_1, offset_address,
6627         widen_memory_access, emit_copy_of_insn_after): Likewise.
6628         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
6629         * fwprop.c (should_replace_address, propagate_rtx_1,
6630         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
6631         Likewise.
6632         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
6633         gcse_emit_move_after, update_ld_motion_stores): Likewise.
6634         * lcm.c (compute_insert_delete, pre_edge_lcm,
6635         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
6636         * lower-subreg.c (resolve_reg_notes): Likewise.
6637         * mode-switching.c (optimize_mode_switching): Likewise.
6638
6639 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6640
6641         * bt-load.c (add_btr_def, migrate_btr_def,
6642         branch_target_load_optimize): Avoid C++ keywords.
6643         * caller-save.c (insert_restore, insert_save, insert_one_insn):
6644         Likewise.
6645         * combine.c (subst, simplify_set, make_extraction,
6646         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
6647         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
6648         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
6649
6650 2008-07-15  Richard Guenther  <rguenther@suse.de>
6651
6652         PR middle-end/36369
6653         * c-common.c (strict_aliasing_warning): Do not warn for
6654         TYPE_REF_CAN_ALIAS_ALL pointers.
6655         (c_common_get_alias_set): may_alias types are not special.
6656         * tree.c (build_pointer_type_for_mode): Look up the may_alias
6657         attribute and set can_ref_all accordingly.
6658         (build_reference_type_for_mode): Likewise.
6659         * doc/extend.texi (may_alias): Clarify.
6660
6661 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6662
6663         PR target/36780
6664         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6665         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6666
6667 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6668
6669         PR target/31568
6670         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
6671         gcc_assert, instead call output_operand_lossage.
6672
6673 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
6674
6675         * builtins.c (std_canonical_va_list): Treat structure based
6676         va_list types.
6677
6678 2008-07-15  Ben Elliston  <bje@au.ibm.com>
6679
6680         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
6681
6682 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
6683
6684         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
6685         is set.
6686
6687 2008-07-14  Jan Hubicka  <jh@suse.cz>
6688
6689         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
6690         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
6691         fix predicates and constraints.
6692         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
6693         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
6694
6695 2008-07-14  Doug Kwan  <dougkwan@google.com>
6696
6697         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
6698         additional option file arm/eabi.opt.
6699         * config/arm/eabi.h (File): New configuration file for EABI targets.
6700         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
6701         SUBSUBTARGET_EXTRA_SPECS.
6702         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
6703         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
6704         from STARTFILE_SPEC so that it can be referenced in an override.
6705         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
6706         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
6707         can be referenced in an override.
6708         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
6709         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
6710         so that it can be referenced in an override.
6711         (LINK_SPEC): Use BPABI_LINK_SPEC.
6712         * config/arm/eabi.opt (File): New.
6713
6714 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6715
6716         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
6717         (FIXED_VALUE_H): New variable.
6718         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
6719         input.h, fixed-value.h.
6720         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
6721         (BASIC_BLOCK_H): Use $(BITMAP_H).
6722         (FUNCTION_H): Add varray.h.
6723         (IPA_REFERENCE_H): Use $(BITMAP_H).
6724         (CGRAPH_H): Add $(BASIC_BLOCK_H).
6725         (DF_H): Use $(BITMAP_H).
6726         (GGC_H): Add statistics.h.
6727         (INSN_ADDR_H): New.
6728         (INSN_ATTR_H): Use it.
6729         (SYSTEM_H): Add safe-ctype.h, filenames.h.
6730         (INPUT_H): New.
6731         (SYMTAB_H): Add $(OBSTACK_H).
6732         (CPP_INTERNAL_H): New.
6733         (TREE_DUMP_H): Add tree-pass.h.
6734         (TREE_FLOW_H): Use $(BITMAP_H)
6735         (PRETTY_PRINT_H): Use $(INPUT_H).
6736         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
6737         (GSTAB_H): New.
6738         (BITMAP_H): New.
6739         (many object files): Fix lots of header dependencies throughout.
6740
6741 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6742
6743         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
6744         New macros.
6745         (s-gtyp-input): Use them to write tmp-gi.list.
6746         (echo_to_gi.list): Remove.
6747
6748 2008-07-14  Richard Guenther  <rguenther@suse.de>
6749
6750         * tree-ssa-sccvn.c (pre_info): Remove.
6751         (switch_to_PRE_table): Likewise.
6752         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
6753         (set_hashtable_value_ids): Do not create value-ids for the
6754         optimistic tables.
6755         (run_scc_vn): Remove double test.  Remove bogus special-case
6756         in value-number printing.
6757         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
6758         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
6759         SSA_NAME_VALUE.
6760         * tree-flow-inline.h (get_value_handle): Remove.
6761         * tree-flow.h (get_value_handle): Remove.
6762
6763 2008-07-14  Martin Jambor  <mjambor@suse.cz>
6764
6765         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
6766         in which we generate arithmetics is not a subrange.
6767
6768 2008-07-14  Martin Jambor  <mjambor@suse.cz>
6769
6770         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
6771
6772 2008-07-14  Richard Guenther  <rguenther@suse.de>
6773
6774         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
6775
6776 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
6777
6778         PR target/36745
6779         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
6780         reload for symbol refs moved to r0 with -fPIC.
6781         (legitimize_pic_address): Use the target register as temporary
6782         reg if possible.
6783         (emit_symbolic_move): Adjust comment.
6784         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
6785         New expanders.
6786
6787 2008-07-14  Ben Elliston  <bje@au.ibm.com>
6788
6789         * c-common.h (C_CPP_HASHNODE): New macro.
6790         * coretypes.h (struct cpp_token): Forward declare.
6791         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6792         the context-sensitive keyword method.
6793         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
6794         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
6795         expand_bool_pixel): New.
6796         (altivec_categorize_keyword): New function.
6797         (init_vector_keywords): New function.
6798         (rs6000_macro_to_expand): Likewise.
6799         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
6800         compiling an ISO C dialect.
6801
6802 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
6803
6804         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
6805         (create_expression_by_pieces): Fix typo.
6806         (do_regular_insertion): Use debug counter here too.
6807
6808 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
6809
6810         PR target/35492.
6811         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
6812         CONST_OK_FOR_LETTER_P.  All port-local users changed.
6813         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
6814         implement Kp matching power-of-two.
6815         (CONSTRAINT_LEN): Define to match.
6816         * config/cris/cris.md: Replace all use of constraint K with Kc.
6817         ("*btst*): Use Kp for operand 0 of last alternative.
6818
6819 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6820
6821         PR testsuite/36440
6822         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
6823         and quad formats.
6824
6825 2008-07-13  Jan Hubicka  <jh@suse.cz>
6826
6827         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
6828         to be mangled too.
6829
6830 2008-07-13  Richard Guenther  <rguenther@suse.de>
6831
6832         PR middle-end/36811
6833         * langhooks.c (lhd_print_error_function): Deal with recursive
6834         BLOCK trees.
6835
6836 2008-07-12  Jan Hubicka  <jh@suse.cz>
6837
6838         * cgraph.c (assembler_name_hash): New static var.
6839         (hash_node_by_assembler_name, eq_assembler_name): New.
6840         (cgraph_node_for_asm): Use hashtable.
6841         (cgraph_remove_node): Maintain hashtable.
6842         (change_decl_assembler_name): Sanity check that names are not changing
6843         after aliasing was processed.
6844         * cgraph.h (varpoon_node): Add next GGC marker.
6845         * tree.c (decl_assembler_name_equal): Constify.
6846         (decl_assembler_name_hash): New.
6847         * tree.h (decl_assembler_name_equal): Constify.
6848         (decl_assembler_name_hash): Update.
6849
6850 2008-07-12  David Daney  <ddaney@avtrex.com>
6851
6852         * config/mips/driver-native.c (host_detect_local_cpu): Handle
6853         sb1 and r5000 cpus.
6854
6855 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6856
6857         * doc/md.texi: Document the MIPS "v" constraint.
6858         * config/mips/mips.h (reg_class): Revert last change.
6859         (REG_CLASS_NAMES): Likewise.
6860         (REG_CLASS_CONTENTS): Likewise.
6861         * config/mips/mips.c (mips_regno_to_class): Likewise.
6862         * config/mips/constraints.md (v): Likewise, but add documentation.
6863         Add a comment to say that this constraint should not be used in
6864         gcc code.
6865
6866 2008-07-11  DJ Delorie  <dj@redhat.com>
6867
6868         * config/h8300/h8300.md (length): Fix branch offset limit.
6869
6870 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
6871
6872         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
6873         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
6874         (avr_hard_regno_scratch_ok): New function.
6875         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6876         * config/avr/avr.md (all peepholes that request a scratch register):
6877         Remove avr_peep2_scratch_safe use.
6878
6879 2008-07-11  Tom Tromey  <tromey@redhat.com>
6880             Ian Lance Taylor  <iant@google.com>
6881
6882         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
6883         (struct c_common_resword): Define.
6884         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
6885         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
6886         (c_common_reswords, num_c_common_reswords): Declare.
6887         * c-common.c (c_common_reswords): New global const array.
6888         (num_c_common_reswords): New const int.
6889         * c-parser.c (struct resword, reswords): Don't define.
6890         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
6891         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
6892         than reswords.  If warning about C++ keywords, give them a special
6893         RID code.
6894         (c_lex_one_token): Warn about C++ keywords.  Call
6895         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
6896         (c_parser_external_declaration): Look for RID_xxx rather than
6897         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
6898         (c_parser_statement_after_labels): Likewise.
6899         (c_parser_objc_class_instance_variables): Likewise.
6900         (c_parser_objc_class_declaration): Likewise.
6901         (c_parser_objc_try_catch_statement): Likewise.
6902         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
6903         (declspecs_add_type): Likewise.
6904
6905 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
6906
6907         * ggc-page.c (alloc_page):
6908         Substituting xmalloc, xcalloc with
6909         XNEWVEC and XCNEWVAR macros which add the
6910         needed casts.
6911
6912 2008-07-11  Richard Guenther  <rguenther@suse.de>
6913
6914         PR tree-optimization/36765
6915         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
6916         aliases from HEAP vars to SMTs.
6917
6918 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6919
6920         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
6921         * configure.ac (loose_warn): Move -Wc++-compat from here...
6922         (strict_warn): ...to here.
6923         * configure: Regenerate.
6924
6925 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
6926
6927         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
6928         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
6929         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
6930         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
6931         excluding more specific h8300-*-* and sh-*-* targets.
6932
6933 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
6934
6935         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
6936         (eliminate): Ditto.
6937         (execute_pre): Call loop_optimizer_finalize in early exit.
6938
6939 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
6940
6941         PR middle-end/36790
6942         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
6943         uids in the bitmap, not just VAR_DECL uids.
6944
6945         PR rtl-optimization/36419
6946         * combine-stack-adj.c (adjust_frame_related_expr): New function.
6947         (combine_stack_adjustments_for_block): Call it if needed.  Delete
6948         correct insn.
6949         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
6950         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
6951         prologue sp adjustment.
6952
6953 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
6954
6955         PR other/28322
6956         * opts.c (print_ignored_options): Report postponed diagnostics for
6957         unknown -Wno-* options as warnings, not errors.
6958         (postpone_unknown_option_error): Renamed to...
6959         (postpone_unknown_option_warning): ... this.
6960
6961 2008-07-09  Doug Kwan  <dougkwan@google.com>
6962
6963         Revert:
6964         2008-07-08  Doug Kwan  <dougkwan@google.com>
6965
6966         * config/arm/arm.opt (mandroid): New option.
6967         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
6968         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
6969         (CC1_SPEC): Same.
6970         (CC1PLUS_SPEC): Same.
6971         (LIB_SPEC): Same.
6972         (STARTFILE_SPEC): Same.
6973         (ENDFILE_SPEC): Same.
6974         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
6975         used.
6976
6977 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
6978
6979         PR target/35802
6980         * config/mips/mips.h (reg_class): Remove V1_REG.
6981         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6982         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
6983         instead of V1_REGS.
6984         (mips_get_tp): New function.
6985         (mips_legitimize_tls_address): Use it.
6986         * config/mips/constraints.md (v): Delete.
6987         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
6988         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
6989         After reload, split into a move and ...
6990         (*tls_get_tp_<mode>_split): ...this new instruction.
6991
6992 2008-07-09  David Daney  <ddaney@avtrex.com>
6993
6994         * config/mips/driver-native.c: Include coretypes.h and tm.h.
6995
6996 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
6997
6998         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
6999         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7000         Add c argument.
7001         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7002         htab_delete should be called.  Don't free c.
7003         (lookup_tmp_var): Create temp_htab lazily.
7004         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7005         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7006         callers.
7007         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7008         lower_omp_ordered, lower_omp_critical, lower_omp_for,
7009         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7010         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7011         * tree-sra.c (generate_element_init): Likewise.
7012         * tree-mudflap.c (execute_mudflap_function_ops,
7013         execute_mudflap_function_decls): Likewise.
7014         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7015         * tree-gimple.h (struct gimplify_ctx): New type.
7016         (push_gimplify_context): Adjust prototype.
7017
7018 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
7019
7020         * tree-ssa-pre.c (phi_translate_1): Update placement of
7021         add_to_value calls.
7022
7023 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
7024
7025         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7026         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7027         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7028         * targhooks.c (default_hard_regno_scratch_ok): New function.
7029         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7030         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7031         * recog.c:  Include "target.h".
7032         (peep2_find_free_register): Add check for global regs. Add target
7033         specific check.
7034         * Makefile.in (recog.o): Depend on target.h.
7035
7036 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7037
7038         * config/sh/sh.c (sh_canonical_va_list_type): New.
7039         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7040
7041 2008-07-09  Raksit Ashok <raksit@google.com>
7042
7043         * doc/invoke.texi (Option Summary): Mention new option
7044         -Wdisallowed-function-list=...
7045         (Warning Options): Document -Wdisallowed-function-list=...
7046         * common.opt (Wdisallowed-function-list=): New flag.
7047         * flags.h (warn_disallowed_functions): External definition of new
7048         boolean warning flag.
7049         (warn_if_disallowed_function_p): Declare new function.
7050         * opts.c (warning_disallowed_functions): New static variable.
7051         (warn_disallowed_functions): New boolean warning flag.
7052         (warn_if_disallowed_function_p): New function.
7053         (add_comma_separated_to_vector): Rename
7054         add_instrument_functions_exclude_list to this.
7055         (common_handle_option): Handle new option. Rename calls to
7056         add_instrument_functions_exclude_list into calls to
7057         add_comma_separated_to_vector.
7058         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7059         based on flag warn_disallowed_functions.
7060
7061 2008-07-09  Christian Bruel  <christian.bruel@st.com>
7062
7063         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7064          instead of get_attr_length.
7065
7066 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7067
7068         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
7069         keywords.
7070         * genemit.c (gen_insn): Likewise.
7071         * gengtype.c (note_def_vec): Likewise.
7072         * gengtype.h (note_def_vec): Likewise.
7073         * genoutput.c (struct data, output_insn_data, process_template,
7074         gen_expand, gen_split, note_constraint): Likewise.
7075         * genrecog.c (new_decision, add_to_sequence, factor_tests,
7076         make_insn_sequence): Likewise.
7077         * gensupport.c (record_insn_name): Likewise.
7078
7079 2008-07-08  Doug Kwan  <dougkwan@google.com>
7080
7081         * config/arm/arm.opt (mandroid): New option.
7082         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7083         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7084         (CC1_SPEC): Same.
7085         (CC1PLUS_SPEC): Same.
7086         (LIB_SPEC): Same.
7087         (STARTFILE_SPEC): Same.
7088         (ENDFILE_SPEC): Same.
7089         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7090         used.
7091
7092 2008-07-08  Raksit Ashok  <raksit@google.com>
7093
7094         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
7095         (set_storage_via_setmem): Fix expected_align parameter.
7096         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
7097         missing from the list.
7098         * doc/md.texi (movmem): Explicitly state that expected alignment is
7099         to be expressed in bytes.
7100         (setmem): Explicitly state that expected alignment is to be expressed
7101         in bytes.
7102
7103 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
7104
7105         * reload.c (find_reloads_subreg_address): Do not require validity
7106         of address in original mode before reloading address.
7107
7108 2008-07-07  Tianwei Sheng  <tianweis@google.com>
7109
7110         * df-core.c (df_remove_problem): Adjust the access to avoid out of
7111         bounds array access.
7112
7113 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
7114
7115         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
7116
7117 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
7118
7119         Fix PR tree-optimization/23455
7120         Fix PR tree-optimization/35286
7121         Fix PR tree-optimization/35287
7122         * Makefile.in (OBJS-common): Remove tree-vn.o.
7123         (tree-vn.o): Remove.
7124         * dbgcnt.def: Add treepre_insert debug counter.
7125         * gcc/tree-flow.h (add_to_value): Updated for other changes.
7126         (debug_value_expressions): Ditto.
7127         (print_value_expressions): Ditto.
7128         * tree-pretty-print.c (dump_generic_node): Updated for
7129         VALUE_HANDLE removal.
7130         * tree-ssa-dom.c (record_equality): Ditto.
7131         (cprop_operand): Ditto.
7132         (lookup_avail_expr): Ditto.
7133         * tree-ssa-threadedge.c
7134         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
7135         (simplify_control_stmt_condition): Ditto.
7136         * tree.c (tree_code_size): Ditto.
7137         (tree_node_structure): Ditto.
7138         (iterative_hash_expr): Ditto.
7139         * tree.def: Ditto.
7140         * tree.h (VALUE_HANDLE_ID): Ditto.
7141         (VALUE_HANDLE_EXPR_SET): Ditto.
7142         (struct tree_value_handle): Ditto.
7143         (union tree_node): Ditto.
7144         * treestruct.def: Ditto.
7145         * tree-vn.c: Removed.
7146         * tree-ssa-pre.c: Rewritten entirely.
7147         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
7148         (constant_value_ids): Ditto.
7149         (vn_nary_op_t): Moved to header.
7150         (vn_phi_t): Ditto.
7151         (vn_reference_op_t): Ditto
7152         (vn_reference_t): Ditto.
7153         (next_value_id): New variable.
7154         (VN_INFO): Add an assert.
7155         (vn_constant_eq): New function.
7156         (vn_constant_hash): Ditto.
7157         (get_or_alloc_constant_value_id): Ditto.
7158         (value_id_constant_p): Ditto.
7159         (vn_reference_compute_hash): De-staticify.
7160         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
7161         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
7162         (valueize_refs): Update opcode if it changes from ssa name to constant.
7163         (vn_reference_lookup_1): Add new argument.
7164         (vn_reference_lookup):  Ditto.
7165         (vn_reference_lookup_pieces): New function.
7166         (vn_reference_insert): Add return type. Modify to deal with value ids.
7167         (vn_reference_insert_pieces):  New function.
7168         (vn_nary_op_compute_hash): De-staticify.
7169         (vn_nary_op_eq): Ditto.
7170         (vn_nary_op_lookup_pieces): New function.
7171         (vn_nary_op_lookup): Add new argument.
7172         (vn_nary_op_insert_pieces): New function.
7173         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7174         (vn_phi_insert): Ditto.
7175         (visit_unary_op): Update for callee changes.
7176         (visit_binary_op): Ditto.
7177         (visit_reference_op_load): Ditto.
7178         (visit_reference_op_store): Ditto.
7179         (init_scc_vn): Init next_value_id, constant_to_value_id and
7180         constant_value_ids.
7181         (free_scc_vn): Free them.
7182         (set_hashtable_value_ids): New function.
7183         (run_scc_vn): Use it.
7184         (get_max_value_id): New function.
7185         (get_next_value_id): Ditto.
7186         (expressions_equal_p): Moved from tree-vn.c
7187         (sort_vuses): Ditto.
7188         (sort_vuses_heap): Ditto.
7189         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
7190         above).
7191         * tree.c (iterative_hash_hashval_t): Made non-static
7192         * tree.h (iterative_hash_hashval_t): Declare it.
7193
7194 2008-07-08  Martin Jambor  <mjambor@suse.cz>
7195
7196         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
7197         instead of ipa_create_node_params.
7198         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
7199         ipa_check_create_edge_args, free them with
7200         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
7201
7202         * ipa-prop.c: Include flags.h and tree-inline.h.
7203         (ipa_node_params_vector): New variable.
7204         (ipa_edge_args_vector): New variable.
7205         (edge_removal_hook_holder): New variable.
7206         (node_removal_hook_holder): New variable.
7207         (edge_duplication_hook_holder): New variable.
7208         (node_duplication_hook_holder): New variable.
7209         (ipa_detect_param_modifications): Check for presence of modified flags.
7210         (ipa_compute_jump_functions): Check for presence of jump functions.
7211         (ipa_free_edge_args_substructures): New function.
7212         (ipa_create_node_params): Removed.
7213         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
7214         (ipa_free_node_params_substructures): New function.
7215         (ipa_free_all_node_params): Changed to deallocate the on-the-side
7216         vector.
7217         (ipa_edge_removal_hook): New function.
7218         (ipa_node_removal_hook): New function.
7219         (duplicate_array): New function.
7220         (ipa_edge_duplication_hook): New function.
7221         (ipa_node_duplication_hook): New function.
7222         (ipa_register_cgraph_hooks): New function.
7223         (ipa_unregister_cgraph_hooks): New function.
7224         (free_all_ipa_structures_after_ipa_cp): New function.
7225
7226         * ipa-prop.h: Include vec.h.
7227         (ipa_node_params_t): New typedef with vector types for it.
7228         (ipa_edge_args_t):  New typedef with vector types for it.
7229         (IPA_NODE_REF): Changed to access an on-the-side vector.
7230         (IPA_EDGE_REF): Changed to access an on-the-side vector.
7231         (ipa_check_create_node_params): New function.
7232         (ipa_check_create_edge_args): New function.
7233
7234         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
7235         all users.
7236
7237 2008-07-07  Tom Tromey  <tromey@redhat.com>
7238
7239         * configure, config.in: Rebuilt.
7240         * configure.ac: Don't check for scandir or alphasort.
7241
7242 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
7243
7244         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
7245         types immediately after creating them.
7246
7247 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
7248
7249         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
7250
7251 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
7252
7253         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
7254         dump_constraint_graph.
7255         (dump_constraint_edge): New function.
7256         (dump_constraint_graph): New function.
7257         (debug_constraint_graph): New function.
7258         (dump_constraint): Removed useless comparison.
7259         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
7260         (dump_constraint_graph): Declare.
7261         (debug_constraint_graph): Declare.
7262         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
7263
7264 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
7265
7266         * config/i386/i386.c (is_va_list_char_pointer): New.
7267         (ix86_va_start): Replace compare with ms_va_list_type_node
7268         by is_va_list_char_pointer.
7269         (ix86_gimplify_va_arg): Likewise.
7270
7271 2008-07-07  Martin Jambor  <mjambor@suse.cz>
7272
7273         * cgraph.c (cgraph_edge_max_uid): New variable.
7274         (struct cgraph_edge_hook_list): New type.
7275         (struct cgraph_node_hook_list): New type.
7276         (struct cgraph_2edge_hook_list): New type.
7277         (struct cgraph_2node_hook_list): New type.
7278         (first_cgraph_edge_removal_hook): New variable.
7279         (first_cgraph_node_removal_hook): New variable.
7280         (first_cgraph_edge_duplicated_hook): New variable.
7281         (first_cgraph_node_duplicated_hook): New variable.
7282         (cgraph_add_edge_removal_hook): New function.
7283         (cgraph_remove_edge_removal_hook): New function.
7284         (cgraph_call_edge_removal_hooks):  New function.
7285         (cgraph_add_node_removal_hook):  New function.
7286         (cgraph_remove_node_removal_hook):  New function.
7287         (cgraph_call_node_removal_hooks):  New function.
7288         (cgraph_add_edge_duplication_hook):  New function.
7289         (cgraph_remove_edge_duplication_hook):  New function.
7290         (cgraph_call_edge_duplication_hooks):  New function.
7291         (cgraph_add_node_duplication_hook):  New function.
7292         (cgraph_remove_node_duplication_hook):  New function.
7293         (cgraph_call_node_duplication_hooks):  New function.
7294         (cgraph_create_edge): Assign to edge uid.
7295         (cgraph_remove_edge): Call edge removal hooks.
7296         (cgraph_node_remove_callees): Call edge removal hooks.
7297         (cgraph_node_remove_callers): Call edge removal hooks.
7298         (cgraph_remove_node): Call node removal hooks.
7299         (cgraph_clone_edge): Call edge duplication hooks.
7300         (cgraph_clone_node): Call node duplication hooks.
7301
7302         * cgraph.h (cgraph_edge): New field uid.
7303         (cgraph_edge_hook): New type.
7304         (cgraph_node_hook): New type.
7305         (cgraph_2edge_hook): New type.
7306         (cgraph_2node_hook): New type.
7307
7308 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
7309
7310         * config.in: Regenerate.
7311
7312 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
7313
7314         * gcc.c (print_sysroot): New.
7315         (option_map, display_help, process_command): Handle the
7316         -print-sysroot option.
7317         (main): Print the sysroot if requested.
7318         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
7319
7320 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7321
7322         PR target/34780
7323         * unwind-pe.h (size_of_encoded_value): add attribute unused.
7324
7325 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
7326
7327         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
7328         (assign_parm_setup_block_p): Also check mode of entry_parm.
7329
7330 2008-07-07  Richard Guenther  <rguenther@suse.de>
7331
7332         * tree-ssa-structalias.h (set_used_smts): Remove.
7333         * tree-ssa-structalias.c (used_smts): Likewise.
7334         (set_used_smts): Likewise.
7335         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
7336         call to set_used_smts.
7337
7338 2008-07-07  Richard Guenther  <rguenther@suse.de>
7339
7340         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
7341         (new_var_info): Set it to false.
7342         (solution_set_add): Correctly handle pointers outside a var and
7343         inside a field.
7344         (type_safe): Treat variables with is_full_var properly.
7345         (do_sd_constraint): Likewise.
7346         (do_ds_constraint): Likewise.
7347         (process_constraint): Remove zeroing offset for !use_field_sensitive.
7348         (get_constraint_for_ptr_offset): New function.
7349         (get_constraint_for_component_ref): For addresses at least include
7350         the last field of the variable.  Handle is_full_vars properly.
7351         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
7352         (handle_ptr_arith): Remove.
7353         (find_func_aliases): Simplify assignment handling.
7354         (create_function_info_for): For parameter and result varinfos set
7355         is_full_var flag.
7356         (create_variable_info_for): Set is_full_var flag whenever we
7357         just created a single varinfo for a decl.
7358         (init_alias_vars): Initialize use_field_sensitive from
7359         max-fields-for-field-sensitive parameter.
7360
7361 2008-07-07  Richard Guenther  <rguenther@suse.de>
7362
7363         PR tree-optimization/36713
7364         * tree-flow-inline.h (is_call_used): New function.
7365         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
7366         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7367         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
7368
7369 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7370
7371         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
7372
7373 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
7374
7375         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
7376
7377 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7378             Nathan Sidwell  <nathan@codesourcery.com>
7379
7380         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
7381         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
7382         tmake_file.
7383         * config/m68k/t-linux: New.
7384         * doc/install.texi: Document m68k-*-linux is now multilibbed by
7385         default.
7386
7387 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
7388
7389         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
7390         * config/m68k/m68k-devices.def: Remove multilibs that only differ
7391         by MAC/EMAC.
7392
7393 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7394
7395         * gcc.c (execute): Fix -Wc++-compat warning.
7396
7397 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7398
7399         PR target/36720
7400         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
7401         constant for little endian.
7402
7403 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
7404
7405         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
7406         mips_base_mips16 instead of TARGET_MIPS16.
7407         (mips_base_mips16): Declare.
7408         * config/mips/mips.c (mips_base_mips16): Make global.
7409         (was_mips16_p): Remove GTY marker.
7410         (was_mips16_pch_p): New variable.
7411         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
7412         (mips_override_options): Force to non-MIPS16 mode initially.
7413         Do not complain about MIPS16 PIC incompatibilities here.
7414         Only allow -mgpopt if -mexplicit-relocs is in force for
7415         non-MIPS16 code.
7416
7417 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
7418
7419         * configure.ac: Check for caddr_t, define to char * if not defined.
7420         * configure: Regenerate.
7421         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
7422         (mmap_gt_pch_use_address): Likewise.
7423         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
7424
7425 2008-07-06  Richard Guenther  <rguenther@suse.de>
7426
7427         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
7428         (new_var_info): Deal with it.
7429         (solution_set_add): Likewise.
7430         (bitpos_of_field): Make signed, fix.
7431         (struct fieldoff): Remove type and decl fields.  Make size field
7432         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
7433         flags.
7434         (fieldoff_compare): Deal with it.
7435         (push_fields_onto_fieldstack): Remove has_union argument, glob
7436         adjacent non-pointer fields together.
7437         (create_function_info_for): Do not set has_union.
7438         (create_variable_info_for): Simplify.
7439
7440 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
7441
7442         * config.gcc (extra_headers): Add cross-stdarg.h for target
7443         x86_64-*-* and i?86-*-*.
7444         * config/i386/cross-stdarg.h: New.
7445         * builtins.c (std_fn_abi_va_list): New.
7446         (std_canonical_va_list_type): New.
7447         (stabilize_va_list): Replace va_list_type_node use by
7448         mtarget.canonical_va_list_type.
7449         (gimplify_va_arg_expr): Likewise.
7450         (expand_builtin_va_copy): Replace va_list_type_node use by
7451         mtarget.fn_abi_va_list.
7452         * tree-sra.c (is_va_list_type): New helper.
7453         (decl_can_be_decomposed_p): Replace
7454         va_list_type_node use by is_va_list_type.
7455         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
7456         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7457         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
7458         * config/i386/i386-protos.h (ix86_get_valist_type): New.
7459         (ix86_enum_va_list): New.
7460         * config/i386/i386.c (sysv_va_list_type_node): New.
7461         (ms_va_list_type_node): New.
7462         (ix86_function_type_abi): Remove sorry.
7463         (ix86_build_builtin_va_list_abi): New.
7464         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
7465         for 64-bit targets.
7466         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
7467         (ix86_init_builtins_va_builtins_abi): New.
7468         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
7469         for 64-bit targets.
7470         (ix86_handle_abi_attribute): New.
7471         (attribute_spec): Add sysv_abi and ms_abi.
7472         (ix86_fn_abi_va_list): New.
7473         (ix86_canonical_va_list_type): New.
7474         (ix86_enum_va_list): New.
7475         (TARGET_FN_ABI_VA_LIST): New.
7476         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7477         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
7478         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
7479         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7480         (TARGET_ENUM_VA_LIST): New.
7481         * expr.h (std_fn_abi_va_list): New.
7482         (std_canonical_va_list_type): New.
7483         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
7484         (TARGET_CANONICAL_VA_LIST_TYPE): New.
7485         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
7486         TARGET_CANONICAL_VA_LIST_TYPE.
7487         * target.h (struct gcc_target): Add fn_abi_va_list hook
7488         and canonical_va_list_type hook.
7489
7490 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7491
7492         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
7493         integral and pointer types.
7494
7495 2008-07-04  Roger Sayle  <roger@eyesopen.com>
7496
7497         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
7498         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
7499
7500 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7501
7502         PR target/36684
7503         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
7504
7505 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
7506
7507         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
7508         build_gimple_modify_stmt.
7509         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
7510         gimple operand.  Use fold_build* instead of build*.
7511
7512 2008-07-04  Richard Guenther  <rguenther@suse.de>
7513
7514         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
7515         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
7516         properly to compute the reachability set if we do field-sensitive PTA.
7517         * invoke.texi (max-fields-for-field-sensitive): Document default.
7518         * opts.c (decode_options): Set max-fields-for-field-sensitive to
7519         100 for optimize >= 2.
7520
7521 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7522
7523         * ggc-zone.c (lookup_page_table_if_allocated,
7524         set_page_table_entry, zone_find_object_size, alloc_small_page,
7525         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
7526         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
7527         -Wc++-compat and/or -Wcast-qual warnings.
7528
7529 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
7530
7531         PR target/36634
7532         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
7533         pic_offset_table_rtx to be marked as used here.
7534         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
7535         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
7536         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
7537         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
7538         !TARGET_SECURE_PLT.
7539
7540 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7541
7542         * alloc-pool.c (hash_descriptor, eq_descriptor,
7543         alloc_pool_descriptor): Fix -Wc++-compat warnings.
7544         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
7545         Likewise.
7546         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
7547         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
7548         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
7549         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
7550         Likewise.
7551
7552 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
7553
7554         * tree-flow.h (loop_only_exit_p): Declare.
7555         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
7556         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
7557         the number of iterations if it is constant.  Otherwise, if this is the
7558         only possible exit of the loop, use the conservative estimate on the
7559         number of iterations of the entire loop if available.
7560
7561 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
7562
7563         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
7564         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
7565         Add synchronization functions.
7566         * config/sync.c: New file.
7567         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
7568         (LIBGCC_SYNC_CFLAGS): Likewise.
7569
7570 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
7571
7572         PR target/36710
7573         * config/i386/i386.md (mode): Add TF to "mode" attribute.
7574         (*pushtf_sse): New insn pattern.
7575         (pushtf splitters): New splitters.
7576
7577 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
7578
7579         PR middle-end/35736
7580         * predict.c (build_predict_expr): Use void_type_node for the tree
7581         type, instead of NULL_TREE.
7582
7583 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7584
7585         * config/i386/i386.c (contains_aligned_value_p): Return true
7586         for TCmode.
7587         (ix86_data_alignment): Align TCmode to 128bits.
7588         (ix86_local_alignment): Likewise.
7589
7590 2008-07-03  Andrew Haley  <aph@redhat.com>
7591
7592         PR bootstrap/33304
7593         * vec.h (VEC_TA): New.
7594         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
7595         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
7596         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
7597         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
7598         (C_COMMON_FIXED_TYPES): Remove first arg.
7599         (C_COMMON_FIXED_MODE_TYPES): Likewise.
7600         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
7601         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
7602         not to use empty macro arguments.
7603
7604 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
7605
7606         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
7607         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
7608         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
7609         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
7610         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
7611         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
7612         config/ia64/crtn.asm, config/m68hc11/larith.asm,
7613         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
7614         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
7615         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
7616         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
7617         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
7618         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
7619         config/rs6000/e500crtres64gpr.asm,
7620         config/rs6000/e500crtres64gprctr.asm,
7621         config/rs6000/e500crtrest32gpr.asm,
7622         config/rs6000/e500crtrest64gpr.asm,
7623         config/rs6000/e500crtresx32gpr.asm,
7624         config/rs6000/e500crtresx64gpr.asm,
7625         config/rs6000/e500crtsav32gpr.asm,
7626         config/rs6000/e500crtsav64gpr.asm,
7627         config/rs6000/e500crtsav64gprctr.asm,
7628         config/rs6000/e500crtsavg32gpr.asm,
7629         config/rs6000/e500crtsavg64gpr.asm,
7630         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
7631         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
7632         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
7633         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
7634         config/sparc/sol2-cn.asm: Remove .file directives.
7635
7636 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
7637
7638         * resource.c (mark_referenced_resources): Look inside
7639         UNSPEC_VOLATILEs and ASM_INPUTs.
7640
7641 2008-07-02  Ian Lance Taylor  <iant@google.com>
7642
7643         * rtlanal.c (add_reg_note): New function.
7644         * rtl.h (add_reg_note): Declare.
7645         * auto-inc-dec.c (attempt_change): Use add_reg_note.
7646         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
7647         * builtins.c (expand_builtin_longjmp): Likewise.
7648         (expand_builtin_nonlocal_goto): Likewise.
7649         * calls.c (emit_call_1, expand_call): Likewise.
7650         * cfgexpand.c (add_reg_br_prob_note): Likewise.
7651         * cfglayout.c (fixup_reorder_chain): Likewise.
7652         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7653         (commit_one_edge_insertion): Likewise.
7654         * combine.c (move_deaths, distribute_notes): Likewise.
7655         * df-problems.c (df_set_note): Likewise.
7656         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
7657         (set_unique_reg_note): Likewise.
7658         (emit_copy_of_insn_after): Likewise.
7659         * expr.c (expand_expr_real): Likewise.
7660         * gcse.c (add_label_notes): Likewise.
7661         * haifa-sched.c (create_check_block_twin): Likewise.
7662         * jump.c (mark_jump_label_1): Likewise.
7663         * loop-doloop.c (add_test, doloop_modify): Likewise.
7664         * loop-unswitch.c (compare_and_jump_seq): Likewise.
7665         * lower-subreg.c (move_eh_region_note): Likewise.
7666         * optabs.c (emit_libcall_block): Likewise.
7667         * predict.c (predict_insn): Likewise.
7668         (combine_predictions_for_insn): Likewise.
7669         * recog.c (peephole2_optimize): Likewise.
7670         * regmove.c (try_auto_increment): Likewise.
7671         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
7672         * reload.c (find_reloads): Likewise.
7673         * reload1.c (fixup_eh_region_note): Likewise.
7674         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
7675         * reorg.c (delete_prior_computation): Likewise.
7676         (delete_computation, dbr_schedule): Likewise.
7677         * config/pa/pa.c (legitimize_pic_address): Likewise.
7678         * config/sh/sh.c (sh_reorg): Likewise.
7679
7680 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
7681
7682         PR target/36669
7683         * config/libgcc-glibc.ver: Add %exclude.
7684         * config/m32r/libgcc-glibc.ver: Likwise.
7685         * config/s390/libgcc-glibc.ver: Likwise.
7686         * config/sh/libgcc-glibc.ver: Likwise.
7687         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
7688
7689         * config/i386/libgcc-glibc.ver: New.
7690
7691         * config/i386/libgcc-x86_64-glibc.ver: Removed.
7692
7693 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
7694
7695         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
7696         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
7697         i[34567]86-*-linux*, x86_64-*-linux*.  Add
7698         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
7699         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
7700         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
7701         i[34567]86-*-linux*, x86_64-*-linux*.
7702
7703         * libgcc-std.ver: Add empty GCC_4.4.0.
7704
7705         * mkmap-symver.awk: Support multiple versions per symbol.
7706
7707         * config/i386/i386.c (ix86_init_builtins): Always define
7708         __builtin_fabsq and __builtin_copysignq with fallbacks.
7709         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
7710         and __builtin_copysignq if SSE2 isn't available.
7711
7712         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
7713         (LIBGCC2_TF_CEXT): Likwise.
7714         (TF_SIZE): Likwise.
7715
7716         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
7717
7718         * config/i386/sfp-machine.h: Moved to libgcc.
7719
7720         * config/i386/sfp-machine.h: New.
7721         * config/i386/t-linux: Likwise.
7722
7723         * config/i386/t-darwin: Remove softfp_wrap_start and
7724         softfp_wrap_end.
7725         * config/i386/t-darwin64: Likewise.
7726
7727         * config/i386/t-fprules-softfp64: Renamed to ...
7728         * config/i386/t-fprules-softfp: This.
7729
7730         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
7731         and softfp_wrap_end.
7732
7733 2008-07-02  Jason Merrill  <jason@redhat.com>
7734
7735         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
7736
7737         * tree.c (ctor_to_list): New fn.
7738         * tree.h: Declare it.
7739         (CONSTRUCTOR_ELT): New macro.
7740         (CONSTRUCTOR_NELTS): New macro.
7741
7742 2008-07-02  Richard Guenther  <rguenther@suse.de>
7743
7744         * tree-ssa-structalias.c (struct variable_info): Reorder
7745         to fill padding on 64bit hosts.  Make collapsed_to an int.
7746         (get_varinfo_fc): Deal with that.
7747         (new_var_info): Likewise.
7748         (collapse_rest_of_var): Likewise.
7749
7750 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
7751
7752         * doc/install.texi (--enable-java-home): Document.
7753         (--enable-aot-compile-rpm): Likewise.
7754         (--with-arch-directory): Likewise.
7755         (--with-os-directory): Likewise.
7756         (--with-origin-name): Likewise.
7757         (--with-arch-suffix): Likewise.
7758         (--with-jvm-root-dir): Likewise.
7759         (--with-jvm-jar-dir): Likewise.
7760         (--with-python-dir): Likewise.
7761
7762 2008-07-02  Richard Guenther  <rguenther@suse.de>
7763
7764         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
7765         from decls explicitly.  Merge operand checking from tuples.
7766
7767 2008-07-02  Martin Jambor  <mjambor@suse.cz>
7768
7769         * tree-switch-conversion.c: Included timevar.h which I forgot before.
7770
7771 2008-07-02  Martin Jambor  <mjambor@suse.cz>
7772
7773         * tree-switch-conversion.c: Included timevar.h
7774         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
7775
7776         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
7777
7778 2008-07-02  Martin Jambor  <mjambor@suse.cz>
7779
7780         * tree-switch-conversion.c: Corrected various comments and
7781         whitespace issues
7782         (build_constructors): Fixed minor formatting mistakes.
7783
7784         * invoke.texi (Optimize Options): Corrected the
7785         switch-conversion-max-branch-ratio parameter.
7786
7787 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
7788
7789         * final.c (asm_insn_count): Return zero for an empty asm body.
7790
7791 2008-07-02  Richard Guenther  <rguenther@suse.de>
7792
7793         * bitmap.h (bitmap_set_bit): Return bool.
7794         (bitmap_clear_bit): Likewise.
7795         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
7796         write to the bitmap if it would.
7797         (bitmap_clear_bit): Likewise.
7798         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
7799         bitmap_set_bit return value.
7800         (add_pred_graph_edge): Likewise.
7801         (add_graph_edge): Likewise.
7802         (do_sd_constraint): Likewise.
7803         (do_ds_constraint): Likewise.
7804
7805 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7806
7807         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
7808         Fix -Wc++-compat and/or -Wcast-qual warnings.
7809         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
7810         gen_regparm_prefix): Likewise.
7811         * vmsdbgout.c (write_modbeg, lookup_filename,
7812         vmsdbgout_source_line, vmsdbgout_init): Likewise.
7813
7814 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
7815
7816         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
7817         defaults.h definition apply.
7818
7819 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
7820
7821         * function.c (assign_parm_remove_parallels): New.
7822         (assign_parm_setup_block_p): Do not return true for non-BLKmode
7823         PARALLELs.
7824         (assign_parm_setup_block): Do not handle them.
7825         (assign_parm_setup_reg, assign_parm_setup_stack): Call
7826         assign_parm_remove_parallels.
7827
7828 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
7829
7830         * c-typeck.c (convert_for_assignment): Use
7831         vector_targets_convertible_p.
7832         * c-common.c (vector_targets_convertible_p): New.
7833         * c-common.h (vector_targets_convertible_p): New prototype.
7834         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
7835         opaque_p_V2SI_type_node.
7836
7837 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
7838
7839         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
7840         RFmode constants.
7841
7842 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
7843
7844         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
7845         TFmode constants via two element DImode vector for hosts with
7846         HOST_BITS_PER_WIDE_INT < 64.
7847         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
7848         also for HOST_BITS_PER_WIDE_INT < 64.
7849
7850 2008-07-01  Richard Guenther  <rguenther@suse.de>
7851
7852         PR tree-optimization/36666
7853         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
7854         (get_constraint_exp_from_ssa_var): Split into ...
7855         (get_constraint_exp_for_temp): ... this ...
7856         (get_constraint_for_ssa_var): ... and that.
7857         Return constraint expressions for all touched sub-fields
7858         if the results address is not taken.
7859         (process_constraint): Remove assertion that aggregate
7860         assignments do not happen at this place.
7861         (get_constraint_for_component_ref): Add address_p argument.
7862         Return constraint expressions for all touched sub-fields
7863         if the results address is not taken.
7864         (do_deref): Use get_constraint_exp_for_temp.
7865         (get_constraint_for_1): Rename from ...
7866         (get_constraint_for): ... this.  Add the old function as wrapper.
7867         (do_structure_copy): Use get_constraint_for_1.
7868
7869 2008-07-01  Martin Jambor  <mjambor@suse.cz>
7870
7871         * Makefile.in (tree-switch-conversion.o): Add.
7872         (OBJS-common): Add tree-swtch-conversion.o.
7873         * passes.c (init_optimization_passes): Add pass_convert_switch.
7874         * tree-pass.h: (pass_convert_switch): Add.
7875         * tree-switch-conversion.c: New file.
7876         * gcc.dg/tree-ssa/cswtch.c: New testcase.
7877         * common.opt (ftree-cswtch): New option.
7878         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
7879         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
7880         * opts.c (decode_options): Set flag_tree_switch_conversion when
7881         optimization level is >= 2.
7882         * doc/invoke.texi (Optimize Options): Added description of
7883         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
7884
7885 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7886
7887         * config/darwin-driver.c (darwin_default_min_version): Fix
7888         -Wc++-compat warnings.
7889
7890 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
7891
7892         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
7893         of operand 0.
7894
7895 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
7896
7897         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
7898
7899 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
7900
7901         PR rtl-optimization/34744
7902         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
7903         (df_scan_free_internal): Free data structures not
7904         allocated in storage pools.
7905         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
7906         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
7907         df_scan_free_mws_vec.
7908         * dse.c (dse_step6): Free offset_map_p and offset_map_n
7909         unconditionally.
7910
7911 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7912
7913         * config/i386/i386.c (contains_aligned_value_p): Return true
7914         for __float128.
7915         (ix86_function_arg_boundary): Return its natural boundary
7916         for __float128.
7917         (return_in_memory_32): Don't check TDmode.
7918         (ix86_split_to_parts): Support splitting into 4 parts and
7919         support TFmode for 32bit target.
7920         (ix86_split_long_move): Support splitting into 4 parts.
7921         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
7922         for SSE2.
7923         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
7924         (ix86_init_builtins): Here.
7925         (ix86_scalar_mode_supported_p): Always return true for TFmode.
7926         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
7927         'q' and 'w', respectively.
7928
7929         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
7930         TARGET_64BIT.
7931         (movtf_internal): Likewise.
7932         (<code>tf2): Likewise.
7933         (*absnegtf2_sse): Likewise.
7934         (copysign<mode>3): Likewise.
7935         (copysign<mode>3_const): Likewise.
7936         (copysign<mode>3_var): Likewise.
7937         (define_split UNSPEC_COPYSIGN): Likewise.
7938         * config/i386/sse.md (*nandtf3): Likewise.
7939         (<code>tf3): Likewise.
7940         (*<code>tf3): Likewise.
7941
7942 2008-06-30  Joey Ye  <joey.ye@intel.com>
7943             H.J. Lu  <hongjiu.lu@intel.com>
7944
7945         * global.c (compute_regsets): Set frame_pointer_needed here.
7946         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
7947
7948 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7949
7950         * doc/install.texi (specific): Expand Windows build notes.
7951
7952 2008-06-30  Ira Rosen  <irar@il.ibm.com>
7953
7954         PR tree-optimization/36648
7955         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
7956         number of prolog iterations by step. Fix the comment.
7957
7958 2008-06-30  Richard Guenther  <rguenther@suse.de>
7959
7960         PR middle-end/36671
7961         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
7962         handle calls from ECF_MALLOC functions.
7963         (handle_pure_call): ECF_MALLOC functions do not return
7964         call-used memory.
7965         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
7966
7967 2008-06-29  Andreas Schwab  <schwab@suse.de>
7968
7969         * config/m68k/m68k.c (print_operand): Always print a float
7970         constant in hex.
7971         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
7972         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
7973         Remove macros.
7974
7975         * config/rs6000/x-linux64: Remove never used file.
7976
7977 2008-06-29  Richard Guenther  <rguenther@suse.de>
7978
7979         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
7980         prototype.
7981         (struct alias_info): Move ...
7982         * tree-ssa-alias.c: ... here.
7983         (update_alias_info): Declare.
7984         (compute_may_aliases): Call it.
7985         (update_alias_info): New function.
7986         * tree-ssa-structalias.c (update_alias_info): Move ...
7987         * tree-ssa-alias.c (update_alias_info_1): ... here.
7988         * tree-ssa-structalias.c (process_constraint_1): Remove
7989         unused from_call argument.  Rename to ...
7990         (process_constraint): ... this.  Delete old wrapper.
7991         (make_constraint_to): Adjust callers.
7992         (handle_const_call): Likewise.
7993         (handle_pure_call): Likewise.
7994         (init_base_vars): Likewise.
7995         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
7996         (find_func_aliases): We don't need structure copies for
7997         complex types.
7998         (make_constraint_from_anything): Remove.
7999         (create_variable_info_for): For globals make constraints
8000         from escaped, not from anything.
8001         (compute_points_to_sets): Do not call update_alias_info.
8002         (ipa_pta_execute): Use make_constraint_from.
8003
8004 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8005
8006         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8007         (bitmap.o-warn, dominance.o-warn): New.
8008         * configure.ac (cxx_compat_warn): Delete.
8009         (loose_warn): Add -Wcast-qual and -Wc++-compat.
8010         * system.h: Remove #pragma diagnostic for -Wcast-qual and
8011         -Wc++-compat.
8012         * configure: Regenerate.
8013
8014         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8015         warnings.
8016
8017 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8018
8019         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8020         * df-scan.c (df_notes_rescan): Likewise.
8021         * ggc-page.c (set_page_table_entry): Likewise.
8022         * intl.c (gcc_gettext_width): Likewise.
8023         * varasm.c (get_unnamed_section, get_noswitch_section,
8024         get_section): Likewise.
8025
8026 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
8027
8028         * regrename.c (build_def_use): Don't copy RTX.
8029
8030 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
8031
8032         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8033         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
8034         punctuation.  Use @ref instead of @xref.
8035         (Function Names): Remove stray @display/@end display.
8036         (C++ Attributes): Use @ref instead of @xref.
8037         (Deprecated Features): Fix punctuation around @xref.
8038         (Backwards Compatibility): Likewise.
8039         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8040
8041 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
8042
8043         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8044         constants for E500 double.
8045
8046 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8047
8048         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8049         element type of const_vector.
8050
8051 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
8052
8053         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8054         Remove FLAGS_REG clobber from expander pattern.
8055         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8056         (anddi3, andsi3, andhi3, andqi3): Ditto.
8057         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8058         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8059         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8060         (ashlsi3, ashlhi3, ashlqi3): Ditto.
8061         (ashrsi3, ashrhi3, ashrqi3): Ditto.
8062         (lshrsi3, lshrhi3, lshrqi3): Ditto.
8063         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8064         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8065
8066 2008-06-28  Richard Guenther  <rguenther@suse.de>
8067
8068         * tree-ssa-structalias.c (callused_id, var_callused,
8069         callused_tree): Add.
8070         (handle_pure_call): New function.
8071         (find_func_aliases): Call it.
8072         (find_what_p_points_to): Handle the call-used set.
8073         (clobber_what_escaped): Likewise.
8074         (compute_call_used_vars): New function.
8075         (init_base_vars): Init the call-used variable.
8076         (do_sd_constraint): Do not propagate the solution from CALLUSED
8077         but use CALLUSED as a placeholder.
8078         (solve_graph): Likewise.
8079         * tree-flow-inline.h (gimple_call_used_vars): New function.
8080         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
8081         (compute_call_used_vars): Declare.
8082         * tree-ssa-alias.c (set_initial_properties): Call
8083         compute_call_used_vars.
8084         (reset_alias_info): Clear call-used variables.
8085         (add_call_clobber_ops): Assert we are not called for const/pure
8086         functions.  Remove handling of them.
8087         (add_call_read_ops): Handle pure functions by adding the
8088         call-used set of variables as VUSEs.
8089         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
8090         (delete_tree_ssa): Free it.
8091         * tree-dfa.c (remove_referenced_var): Clear the var from the
8092         call-used bitmap.
8093
8094 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
8095
8096         * tree.c (build_varargs_function_type_list): New.
8097         (build_function_type_list_1): New.
8098         (build_function_type_list): Use build_function_type_list_1.
8099         * tree.h (build_varargs_function_type_list): New.
8100
8101 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8102
8103         PR target/34856
8104         * config/spu/spu.c (spu_builtin_splats): Do not generate
8105         invalid CONST_VECTOR expressions.
8106         (spu_expand_vector_init): Likewise.
8107
8108 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
8109
8110         * optabs.c (libfunc_decls): New variable.
8111         (libfunc_decl_hash, libfunc_decl_eq): New functions.
8112         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
8113         for the same function twice.
8114
8115 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
8116
8117         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
8118         ix86_expand_binary_operator directly.
8119         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
8120         for operand 2.
8121         (*ashrti3_1): Ditto.
8122         (*lshrti3_1): Ditto.
8123         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
8124         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
8125         using only one splitter.  Conditionaly execute splitter before or
8126         after peephole2 pass.
8127         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
8128         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
8129         Use only one alternative in asm template.
8130         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
8131         in asm template.
8132         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
8133         "J" operand constraint for operand 2.
8134         (*ashldi3_cconly_rex64): Ditto.
8135         (*ashrdi3_cmp_rex64): Ditto.
8136         (*ashrdi3_cconly_rex64): Ditto.
8137         (*lshrdi3_cmp_rex64): Ditto.
8138         (*lshrdi3_cconly_rex64): Ditto.
8139         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
8140         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
8141         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
8142         gen_x86_shrd_1.
8143
8144 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
8145
8146         * gimplify.c (omp_is_private): Don't return true if decl is not
8147         already private on #pragma omp for or #pragma omp parallel for.
8148
8149         PR debug/36617
8150         * tree-cfg.c (struct move_stmt_d): Replace block field with
8151         orig_block and new_block fields.
8152         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
8153         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8154         (move_block_to_fn): Replace vars_map and new_label_map arguments
8155         with struct move_stmt_d pointer.
8156         (replace_block_vars_by_duplicates): New function.
8157         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
8158         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
8159         all subblocks of ORIG_BLOCK to the new function.  Call
8160         replace_block_vars_by_duplicates.
8161         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
8162         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
8163         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
8164         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
8165         (expand_omp): Temporarily set input_location to the location of
8166         region's controlling stmt.
8167         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8168         BIND_EXPR, push ctx->block_vars and gimplification vars into
8169         the BIND_EXPR and its block's BLOCK_VARS instead of directly
8170         into dest function.
8171         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8172         there are any BLOCK_VARS.
8173         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8174         OMP_PARALLEL or OMP_TASK stmt.
8175         (lower_omp): Save and restore input_location around the lower_omp_1
8176         call.
8177
8178 2008-06-27  Richard Guenther  <rguenther@suse.de>
8179
8180         PR tree-optimization/36400
8181         PR tree-optimization/36373
8182         PR tree-optimization/36344
8183         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
8184         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
8185         (update_alias_info): Remove call clobbering code.
8186         (make_constraint_to): New helper function.
8187         (make_escape_constraint): Likewise.
8188         (handle_rhs_call): Use it on all pointer containing arguments.
8189         Also mark the static chain escaped.
8190         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
8191         instead of ANYTHING.
8192         (make_constraint_from): New helper split out from ...
8193         (make_constraint_from_anything): ... here.
8194         (find_func_aliases): Add constraints for escape sites.
8195         (intra_create_variable_infos): Make constraints from NONLOCAL
8196         for parameters.
8197         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
8198         as ANYTHING.
8199         (clobber_what_p_points_to): Remove.
8200         (clobber_what_escaped): New function.
8201         (init_base_vars): Init NONLOCAL and ESCAPED.
8202         (do_sd_constraint): Do not propagate the solution from ESCAPED
8203         but use ESCAPED as a placeholder.
8204         (solve_graph): Likewise.
8205         * tree-flow.h (clobber_what_p_points_to): Remove.
8206         (clobber_what_escaped): Declare.
8207         * tree-ssa-alias.c (set_initial_properties): Call it.
8208         Remove code clobbering escaped pointers.
8209
8210 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
8211
8212         * function.c (allocate_struct_function): Only allocate a unique
8213         funcdef_no if the decl is nonzero.
8214
8215 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
8216
8217         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
8218         * config/mips/mips.c (mips_split_const_insns): New function.
8219         * config/mips/mips.md (move_type): New attribute.
8220         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
8221         (dword_mode): New attribute.
8222         (type): Avoid long line.  Map "move_type"s to "type"s,
8223         choosing "multi" for doubleword moves if appropriate.
8224         Swap MTC/MFC comments to match their declaration order.
8225         (extended_mips16): Default to "yes" if "move_type" is "sll0",
8226         "type" is "branch" or "jal" is "direct".
8227         (length): Handle "extended_mips16" first.  Make the default
8228         "0" for "ghost" instructions.  Set the length from "move_type".
8229         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
8230         of "type", with "sll0" for the register alternative.  Remove the
8231         "extended_mips16" attribute.
8232         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
8233         of "type", with "shift_shift" for the register alternative.
8234         Remove the "length" attribute.
8235         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
8236         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
8237         of "type", with "andi" for the register alternative.
8238         (*zero_extendqihi2): Likewise.
8239         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
8240         of "andi" instead of a "type" of "arith".
8241         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
8242         instead of "type".
8243         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
8244         (mov_<store>r, *mov<mode>_ra): Likewise.
8245         (extendsidi2): Use "move_type" instead of "type", with "move"
8246         for the register alternative.
8247         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
8248         of "type", with "signext" for the register alternative.
8249         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
8250         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
8251         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
8252         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
8253         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
8254         (unnamed branch insn): Likewise.
8255         (*movdi_gp32_fp64): Fold into...
8256         (*movdi_32bit): ...here.
8257         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
8258         (*movdf_hardfloat): ...this new pattern.
8259         (*movdf_softfloat): Remove redundant FPR alternatives.
8260         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
8261         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
8262         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
8263         the "move" attribute.
8264         (*movdi_32bit): Use "move_type" instead of "type" and remove the
8265         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
8266         and "store" for COP loads and stores.
8267         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
8268         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
8269         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
8270         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
8271         (*movtf_mips16, *movv2sf): Likewise.
8272         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
8273         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
8274         (mfhc1<mode>): Use "move_type" instead of "move".
8275         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
8276         (loadgp_blockage): Remove the "length" attribute.
8277         (blockage, set_got_version, update_got_version): Likewise.
8278         (call_internal): Remove the "extended_mips16" attribute.
8279         (call_value_internal, call_value_multiple_internal): Likewise.
8280         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
8281         instead of "move".
8282         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
8283         the "length" attribute.
8284
8285 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8286
8287         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
8288         -Wcast-qual warnings.
8289         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
8290         handle_pragma_pop_macro): Likewise.
8291         * collect2.c (resolve_lib_name): Likewise.
8292         * config/arc/arc.c (arc_init): Likewise.
8293         * config/arm/arm.c (neon_builtin_compare,
8294         locate_neon_builtin_icode): Likewise.
8295         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
8296         * config/bfin/bfin.c (bfin_init_machine_status,
8297         bfin_optimize_loop): Likewise.
8298         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8299         * config/cris/cris.c (cris_init_expanders): Likewise.
8300         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
8301         * config/darwin.c (machopic_indirection_eq,
8302         machopic_indirection_name, machopic_output_indirection): Likewise.
8303         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
8304         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
8305         frv_optimize_membar): Likewise.
8306         * config/i386/cygwin.h (mingw_scan,
8307         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
8308         * config/i386/cygwin1.c (mingw_scan): Likewise.
8309         * config/i386/i386.c (machopic_output_stub): Likewise.
8310         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
8311         i386_pe_unique_section): Likewise.
8312         * config/ia64/ia64.c (ia64_init_machine_status,
8313         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
8314         Likewise.
8315         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
8316         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
8317         * config/m68k/m68k.c (m68k_handle_option,
8318         m68k_sched_md_init_global): Likewise.
8319         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
8320         mcore_unique_section): Likewise.
8321         * config/mips/mips.c (mips_block_move_straight,
8322         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
8323         Likewise.
8324         * config/mmix/mmix.c (mmix_init_machine_status,
8325         mmix_encode_section_info): Likewise.
8326         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
8327         * config/rs6000/rs6000.c (rs6000_init_machine_status,
8328         print_operand_address, output_toc, redefine_groups,
8329         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
8330         * config/s390/s390.c (s390_init_machine_status): Likewise.
8331         * config/score/score.c (score_block_move_straight,
8332         score_block_move_loop_body): Likewise.
8333         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8334         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8335         * emit-rtl.c (find_auto_inc): Likewise.
8336         * gcc.c (translate_options, process_command): Likewise.
8337         * reorg.c (dbr_schedule): Likewise.
8338         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
8339         * xcoffout.c (xcoffout_declare_function): Likewise.
8340
8341 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
8342
8343         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
8344         ipa-pta working again.
8345
8346 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
8347
8348         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
8349         genautomata.
8350
8351 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
8352
8353         * config.gcc (powerpc*-*-*): Add new core e500mc.
8354         * config/rs6000/e500mc.md: New file.
8355         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8356         e500mc.
8357         (rs6000_override_options): Add e500mc case to
8358         processor_target_table. Altivec and Spe options not allowed
8359         with e500mc. Add isel instruction to e500mc by
8360         default. Initialize rs6000_cost for e500mc.
8361         (rs6000_issue_rate): Set issue rate for e500mc.
8362         * config/rs6000/rs6000.h (processor_type): Add
8363         PROCESSOR_PPCE500MC.
8364         (ASM_CPU_SPEC): Add e500mc.
8365         Set TARGET_ISEL to rs6000_isel.
8366         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
8367         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
8368         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
8369         Include e500mc.md.
8370         * doc/invoke.texi: Add e500mc to list of cpus.
8371
8372 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8373
8374         PR c/34867
8375         * c-lex.c (lex_charconst): Initialize unsignedp.
8376
8377 2008-06-27  Olivier Hainque  <hainque@adacore.com>
8378
8379         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
8380         documented assumptions.
8381
8382 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
8383
8384         * dwarf2out.c: Remove trailing white spaces.  Break long line
8385         in comments.
8386
8387 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
8388
8389         * libfuncs.h (LTI_synchronize): New libfunc_index.
8390         (synchronize_libfunc): Declare.
8391         * builtins.c (expand_builtin_synchronize): Consider using
8392         synchronize_libfunc before falling back on an asm blockage.
8393         * config/mips/mips.c: Include libfuncs.h
8394         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
8395
8396 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
8397
8398         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
8399         parameter.  Copy stack_reg to r11 where appropriate.
8400         (no_global_regs_above): Add gpr parameter.
8401         (rs6000_stack_info): Only add padding for SPE save area if we
8402         are saving SPE GPRs and CR.
8403         (saveres_routine_syms): New variable.
8404         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
8405         Define.
8406         (rs6000_savres_routine_sym): New function.
8407         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
8408         split out of...
8409         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
8410         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
8411         Tweak FPR out-of-line saving.
8412         (rs6000_make_savres_rtx): New function.
8413         (rs6000_use_multiple_p): New function.
8414         (rs6000_savres_strategy): New function.
8415         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
8416         out-of-line if appropriate.
8417         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
8418         if we are optimizing for size.
8419         (GP_SAVE_INLINE): Define.
8420         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
8421         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
8422         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
8423         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
8424         (*save_fpregs_<mode>): Add use of r11.
8425         (*restore_gpregs_<mode>): New insn.
8426         (*return_and_restore_gpregs_<mode>): New insn.
8427         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
8428         use r11.
8429         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
8430         (*restore_gpregs_spe): New insn.
8431         (*return_and_restore_gpregs_spe): New insn.
8432         * config/rs6000/predicates.md (save_world_operation): Fix check.
8433
8434 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
8435
8436         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
8437         this point, so assert that.
8438
8439 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
8440
8441         * cfganal.c: Include vec.h and vecprim.h.
8442         (compute_idf): Import from...
8443         * tree-into-ssa (compute_idf): ...here.
8444         * basic-block.h (compute_idf): Export.
8445
8446 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * c-decl.c (merge_decls): Use !current_function_decl to check for
8449         extern declaration of C99 inline function being at file scope.
8450
8451 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
8452
8453         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
8454
8455 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8456
8457         * alias.c (record_alias_subset, init_alias_analysis): Fix
8458         -Wc++-compat and/or -Wcast-qual warnings.
8459         * attribs.c (lookup_attribute_spec): Likewise.
8460         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
8461         copy_bb, connect_traces,
8462         find_rarely_executed_basic_blocks_and_cr): Likewise.
8463         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
8464         note_btr_set, migrate_btr_defs): Likewise.
8465         * builtins.c (result_vector, expand_builtin_memcpy,
8466         expand_builtin_mempcpy_args, expand_builtin_strncpy,
8467         builtin_memset_read_str, expand_builtin_printf,
8468         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
8469         Likewise.
8470         * caller-save.c (mark_set_regs): Likewise.
8471         * calls.c (expand_call, emit_library_call_value_1): Likewise.
8472         * cgraph.c (cgraph_edge): Likewise.
8473         * combine.c (likely_spilled_retval_1): Likewise.
8474         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
8475         htab_counts_entry_del, get_coverage_counts): Likewise.
8476         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
8477         new_cselib_val): Likewise.
8478         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
8479         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
8480         Likewise.
8481         * df-core.c (df_compact_blocks): Likewise.
8482         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
8483         * df-scan.c (df_grow_reg_info, df_ref_create,
8484         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
8485         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
8486         df_record_entry_block_defs, df_record_exit_block_uses,
8487         df_bb_verify): Likewise.
8488         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
8489         DF_REF_EXTRACT_MODE_CONST): New.
8490         * dominance.c (get_immediate_dominator, get_dominated_by,
8491         nearest_common_dominator, root_of_dom_tree,
8492         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
8493         -Wc++-compat and/or -Wcast-qual warnings.
8494         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
8495         record_store, replace_read, check_mem_read_rtx, scan_insn,
8496         dse_step1, dse_record_singleton_alias_set): Likewise.
8497         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8498
8499 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8500
8501         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
8502         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
8503         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
8504         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
8505         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
8506         add_ranges_num, add_ranges_by_labels, file_info_cmp,
8507         file_name_acquire, output_file_names, add_const_value_attribute,
8508         premark_used_types_helper, file_table_eq, file_table_hash,
8509         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
8510         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
8511         -Wcast-qual warnings.
8512         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
8513         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
8514         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
8515         gen_reg_rtx, start_sequence, init_emit): Likewise.
8516         * et-forest.c (et_new_occ, et_new_tree): Likewise.
8517         * except.c (init_eh_for_function, gen_eh_region,
8518         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
8519         arh_to_landing_pad, arh_to_label, add_action_record,
8520         add_call_site, switch_to_exception_section): Likewise.
8521         * expmed.c (synth_mult): Likewise.
8522         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
8523         store_expr): Likewise.
8524         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
8525         Likewise.
8526         * function.c (assign_stack_temp_for_type,
8527         allocate_struct_function, match_asm_constraints_1): Likewise.
8528         * gcov-io.c (gcov_allocate): Likewise.
8529         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
8530         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
8531         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
8532         record_one_set, insert_expr_in_table, insert_set_in_table,
8533         dump_hash_table, compute_hash_table_work, alloc_hash_table,
8534         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
8535         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
8536         -Wcast-qual warnings.
8537
8538 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8539
8540         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
8541         -Wcast-qual warnings.
8542         * gcc.c (process_command): Likewise.
8543         * genattrtab.c (oballoc): Use XOBNEW.
8544         (oballocvec): Define.
8545         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
8546         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
8547         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
8548         -Wc++-compat and/or -Wcast-qual warnings.
8549         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
8550         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
8551         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8552         gen_presence_absence_set, gen_automaton, gen_regexp_el,
8553         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
8554         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
8555         add_excls, process_presence_absence_names,
8556         process_presence_absence_patterns, add_presence_absence,
8557         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
8558         get_free_state, add_arc, get_free_automata_list_el,
8559         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
8560         transform_3, cache_presence, create_ainsns, create_automata,
8561         create_state_ainsn_table, dfa_insn_code_enlarge,
8562         output_trans_func, output_min_issue_delay_func,
8563         output_dead_lock_func, output_reset_func,
8564         output_get_cpu_unit_code_func, output_dfa_start_func,
8565         expand_automata): Likewise.
8566         * genextract.c (gen_insn): Likewise.
8567         * gengtype-lex.l: Likewise.
8568         * gengtype.c (read_input_list, adjust_field_type,
8569         process_gc_options): Likewise.
8570         * genoutput.c (note_constraint): Likewise.
8571         * genpreds.c (mangle, add_constraint): Likewise.
8572         * genrecog.c (process_define_predicate, new_decision,
8573         add_to_sequence): Likewise.
8574         * gensupport.c (record_insn_name): Likewise.
8575
8576 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8577
8578         * config/i386/driver-i386.c (detect_caches_amd,
8579         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
8580         and/or -Wcast-qual warnings.
8581         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
8582         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
8583         gt_pch_save): Likewise.
8584         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
8585         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
8586         * global.c (compute_regsets): Likewise.
8587         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
8588         finish_graph_dump_file): Likewise.
8589         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
8590         unlink_bb_notes): Likewise.
8591         * integrate.c (get_hard_reg_initial_val): Likewise.
8592         * ipa-prop.c (ipa_push_func_to_list): Likewise.
8593         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
8594         * local-alloc.c (update_equiv_regs): Likewise.
8595         * loop-invariant.c (check_invariant_table_size,
8596         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
8597         Likewise.
8598         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
8599         altered_reg_used, mark_altered): Likewise.
8600         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
8601         insert_var_expansion_initialization,
8602         combine_var_copies_in_loop_exit, apply_opt_in_copies,
8603         release_var_copies): Likewise.
8604         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
8605         analyze_matrix_decl, add_allocation_site, analyze_transpose,
8606         analyze_accesses_for_phi_node, check_var_notmodified_p,
8607         check_allocation_function, find_sites_in_func,
8608         record_all_accesses_in_func, transform_access_sites,
8609         transform_allocation_sites): Likewise.
8610         * omp-low.c (new_omp_region, create_omp_child_function_name,
8611         check_omp_nesting_restrictions, check_combined_parallel,
8612         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
8613         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
8614         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
8615         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
8616         Likewise.
8617         * opts-common.c (prune_options): Likewise.
8618         * opts.c (add_input_filename, print_filtered_help,
8619         get_option_state): Likewise.
8620         * params.c (add_params): Likewise.
8621         * passes.c (set_pass_for_id, next_pass_1,
8622         do_per_function_toporder, pass_fini_dump_file): Likewise.
8623         * postreload.c (reload_cse_simplify_operands): Likewise.
8624         * predict.c (tree_predicted_by_p, tree_predict_edge,
8625         clear_bb_predictions, combine_predictions_for_bb): Likewise.
8626
8627 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8628
8629         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
8630         warnings.
8631         * recog.c (check_asm_operands, validate_change_1): Likewise.
8632         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
8633         subst_asm_stack_regs): Likewise.
8634         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
8635         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
8636         * regmove.c (reg_is_remote_constant_p): Likewise.
8637         * regrename.c (regrename_optimize, scan_rtx_reg,
8638         kill_clobbered_value, kill_set_value, kill_autoinc_value):
8639         Likewise.
8640         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
8641         regstat_compute_calls_crossed): Likewise.
8642         * reload1.c (init_reload, new_insn_chain,
8643         has_nonexceptional_receiver, reload, copy_reloads,
8644         calculate_needs_all_insns, init_elim_table): Likewise.
8645         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
8646         * rtl.c (shallow_copy_rtx_stat): Likewise.
8647         * rtlanal.c (parms_set): Likewise.
8648         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
8649         sbitmap_resize, sbitmap_vector_alloc): Likewise.
8650         * sched-ebb.c (earliest_block_with_similiar_load,
8651         add_deps_for_risky_insns): Likewise.
8652         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
8653         schedule_region): Likewise.
8654         * see.c (eq_descriptor_pre_extension,
8655         hash_descriptor_pre_extension, hash_del_pre_extension,
8656         eq_descriptor_properties, hash_descriptor_properties,
8657         hash_del_properties, see_seek_pre_extension_expr,
8658         see_initialize_data_structures, see_print_register_properties,
8659         see_print_pre_extension_expr, see_delete_merged_def_extension,
8660         see_delete_unmerged_def_extension, see_emit_use_extension,
8661         see_pre_delete_extension, see_map_extension, see_commit_changes,
8662         see_analyze_merged_def_local_prop,
8663         see_analyze_merged_def_local_prop,
8664         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
8665         see_set_prop_merged_def, see_set_prop_unmerged_def,
8666         see_set_prop_unmerged_use, see_print_one_extension,
8667         see_merge_one_use_extension, see_merge_one_def_extension,
8668         see_store_reference_and_extension, see_update_uses_relevancy,
8669         see_update_defs_relevancy): Likewise.
8670         * statistics.c (hash_statistics_hash, hash_statistics_eq,
8671         hash_statistics_free, curr_statistics_hash): Likewise.
8672         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
8673         expand_asm_operands, expand_return, case_bit_test_cmp,
8674         expand_case): Likewise.
8675         * stor-layout.c (start_record_layout): Likewise.
8676         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
8677         gt_pch_save_stringpool): Likewise.
8678         * tree-data-ref.c (hash_stmt_vertex_info,
8679         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
8680         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
8681
8682 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
8683
8684         PR target/36627
8685         * config/i386/i386.md : Change constraints of HImode and QImode
8686         immediate operands from "i" to "n".  Change SImode "ni" constraint to
8687         "i" and SImode "rmi" constraint to "g".  Remove all constraints
8688         from const0_operand and const1_operand predicated operands.
8689         (i): Change QImode and HImode attribute from "i" to "n".
8690         (*subqi_2): Change HImode operands to QImode.
8691         (*subqi_3): Ditto.
8692
8693 2008-06-25  Olivier Hainque  <hainque@adacore.com>
8694
8695         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
8696         sed substitutions.
8697
8698 2008-06-25  Richard Guenther  <rguenther@suse.de>
8699
8700         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
8701         not overflow the result type.
8702
8703 2008-06-25  Richard Guenther  <rguenther@suse.de>
8704
8705         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
8706         (vn_lookup): Likewise.
8707
8708 2008-06-25  Richard Guenther  <rguenther@suse.de>
8709
8710         PR tree-optimization/35518
8711         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
8712         * tree-sra.c (instantiate_element): Use fold_build3 to build
8713         BIT_FIELD_REFs.
8714         (try_instantiate_multiple_fields): Likewise.
8715
8716 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8717
8718         * config/rs6000/rs6000.md: Change all string instruction's clobber to
8719         be early clobbers.
8720
8721 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8722
8723         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
8724         use_backchain_to_restore_sp to true
8725         if the offset of the link register save area would go over the 32k - 1
8726         offset limit of the load
8727         instructions.
8728
8729 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
8730
8731         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
8732         anchor for the type-punning blurb.  Cross-reference "Structures
8733         unions enumerations and bit-fields implementation".  Provide a
8734         cast-through-pointer example.  Make final sentence self-contained.
8735         * doc/implement-c.texi (Structures unions enumerations and
8736         bit-fields implementation): Cross-reference the type-punning blurb
8737         in the -fstrict-aliasing documentation.
8738
8739 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8740
8741         PR middle-end/36594
8742         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
8743         the memory instead of the memory itself for the save area.
8744
8745 2008-06-24  Olivier Hainque  <hainque@adacore.com>
8746             Nicolas Roche  <roche@adacore.com>
8747
8748         * gengtype.c (srcdir_len): size_t instead of int.
8749         (get_file_realbasename): New function.  For F a filename, the real
8750         basename of F, with all the path components stripped.
8751         (get_file_srcdir_relative_path): New function.  For F a filename, the
8752         relative path to F from $(srcdir).
8753         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
8754         get_file_realbasename.  Adjust the head comment.
8755         (get_prefix_langdir_index): New function. For F a filename, return the
8756         lang_dir_names[] relative index of the language directory that is
8757         a prefix in F.
8758         (get_file_langdir): For F a filename, return the name of the language
8759         directory where F is located.
8760         (get_file_gtfilename): New function. The gt- output file name for an
8761         input filename F.
8762         (get_output_file_with_visibility): Replace in-line computations with
8763         uses of get_file_gtfilename and get_prefix_langdir_index.
8764         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
8765
8766 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
8767
8768         PR tree-optimization/36504
8769         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
8770         references without base address.
8771
8772 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
8773
8774         PR middle-end/36584
8775         * calls.c (expand_call): Increase alignment for recursive functions.
8776
8777 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
8778
8779         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
8780         (TARGET_FUNCTION_VALUE): New define.
8781         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
8782         * config/avr/avr.h (FUNCTION_VALUE): Remove.
8783
8784 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
8785
8786         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
8787         (fmod<mode>3): Ditto.
8788         (remainderxf3): Ditto.
8789         (remainder<mode>3): Ditto.
8790
8791 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
8792
8793         PR target/36533
8794         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
8795         REG is a hard register.
8796
8797         PR tree-optimization/36508
8798         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
8799         499, don't check it at all in release compilers.
8800
8801 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
8802
8803         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
8804         together with SSE_TARGET_MATH to disable insn pattern.
8805         (*fop_<MODEF:mode>_2_i387): Ditto.
8806         (*fop_<MODEF:mode>_3_i387): Ditto.
8807
8808 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
8809
8810         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
8811
8812 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8813
8814         PR middle-end/34906
8815         * gimplify.c (gimplify_asm_expr): Check the return code of
8816         parse_output_constraint call, set function return and is_inout
8817         value if it failed.
8818
8819 2008-06-22  Ian Lance Taylor  <iant@google.com>
8820
8821         * c-lex.c (narrowest_unsigned_type): Change itk to int.
8822         (narrowest_signed_type): Likewise.
8823         * c-typeck.c (c_common_type): Change local variable mclass to enum
8824         mode_class, twice.
8825         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
8826         tcc_comparison, not the tree code itself.
8827         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
8828         (c_expand_expr): Cast modifier to enum expand_modifier.
8829         * c-common.h (C_RID_CODE): Add casts.
8830         (C_SET_RID_CODE): Define.
8831         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
8832         (c_lex_one_token): Add cast to avoid warning.
8833         (c_parser_objc_type_name): Rename local typename to type_name.
8834         (check_no_duplicate_clause): Change code parameter to enum
8835         omp_clause_code.
8836         (c_parser_omp_var_list_parens): Change kind parameter to enum
8837         omp_clause_code.
8838         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
8839         c_parser_omp_list_var_parens.
8840         (c_parser_omp_threadprivate): Likewise.
8841         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
8842         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
8843         * c-format.c (NO_FMT): Define.
8844         (printf_length_specs): Use NO_FMT.
8845         (asm_fprintf_length_specs): Likewise.
8846         (gcc_diag_length_specs): Likewise.
8847         (scanf_length_specs): Likewise.
8848         (strfmon_length_specs): Likewise.
8849         (gcc_gfc_length_specs): Likewise.
8850         (printf_flag_specs): Change 0 to STD_C89.
8851         (asm_fprintf_flag_specs): Likewise.
8852         (gcc_diag_flag_specs): Likewise.
8853         (gcc_cxxdiag_flag_specs): Likewise.
8854         (scanf_flag_specs): Likewise.
8855         (strftime_flag_specs): Likewise.
8856         (strfmon_flag_specs): Likewise.
8857         (print_char_table): Likewise.
8858         (asm_fprintf_char_table): Likewise.
8859         (gcc_diag_char_table): Likewise.
8860         (gcc_tdiag_char_table): Likewise.
8861         (gcc_cdiag_char_table): Likewise.
8862         (gcc_cxxdiag_char_table): Likewise.
8863         (gcc_gfc_char_table): Likewise.
8864         (scan_char_table): Likewise.
8865         (time_char_table): Likewis.
8866         (monetary_char_table): Likewise.
8867         * c-format.h (BADLEN): Likewise.
8868
8869 2008-06-21  Ian Lance Taylor  <iant@google.com>
8870
8871         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
8872         Define END_OF_BASE_TREE_CODES around inclusion.
8873         * tree.c (tree_code_type): New global array.
8874         (tree_code_length, tree_code_name): Likewise.
8875         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
8876         $(lang_tree_files).
8877         (all-tree.def, s-alltree): New targets.
8878         (gencheck.h, s-gencheck): Remove.
8879         (tree.o): Depend upon all-tree.def.
8880         (build/gencheck.o): Remove gencheck.h dependency.
8881         (mostlyclean): Don't remove gencheck.h.
8882         * c-common.h (enum c_tree_code): Remove.
8883         * c-lang.c (tree_code_type): Remove.
8884         (tree_code_length, tree_code_name): Remove.
8885         * gencheck.c (tree_codes): Include all-tree.def, rather than
8886         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
8887         after it is used.
8888         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
8889         than tree.def.
8890         * cp/cp-tree.h (enum cplus_tree_code): Remove.
8891         (operator_name_info): Size to MAX_TREE_CODES.
8892         (assignment_operator_name_info): Likewise.
8893         * cp/cp-lang.c (tree_code_type): Remove.
8894         (tree_code_length, tree_code_name): Remove.
8895         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
8896         (assignment_operator_name_info): Likewise.
8897         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
8898         MAX_TREE_CODES.
8899         * cp/mangle.c (write_expression): Likewise.
8900         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
8901         * fortran/f95-lang.c (tree_code_type): Remove.
8902         (tree_code_length, tree_code_name): Remove.
8903         * java/java-tree.h (enum java_tree_code): Remove.
8904         * java/lang.c (tree_code_type): Remove.
8905         (tree_code_length, tree_code_name): Remove.
8906         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
8907         * objc/objc-act.h (enum objc_tree_code): Remove.
8908         * objc/objc-lang.c (tree_code_type): Remove.
8909         (tree_code_length, tree_code_name): Remove.
8910         * objcp/objcp-lang.c (tree_code_type): Remove.
8911         (tree_code_length, tree_code_name): Remove.
8912         * ada/ada-tree.h (enum gnat_tree_code): Remove.
8913         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
8914         * ada/misc.c (tree_code_type): Remove.
8915         (tree_code_length, tree_code_name): Remove.
8916
8917 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
8918
8919         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
8920         the grand_bitmap_obstack.
8921
8922 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8923
8924         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
8925         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
8926         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
8927         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
8928         move_stmt_r, new_label_mapper): Likewise.
8929         * tree-complex.c (cvc_lookup): Likewise.
8930         * tree-dfa.c (create_function_ann): Likewise.
8931         * tree-dump.c (dump_register): Likewise.
8932         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
8933         find_phi_replacement_condition): Likewise.
8934         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
8935         tree_function_versioning): Likewise.
8936         * tree-into-ssa.c (cmp_dfsnum): Likewise.
8937         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
8938         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
8939         get_nonlocal_debug_decl, convert_nonlocal_reference,
8940         convert_nonlocal_omp_clauses, get_local_debug_decl,
8941         convert_local_reference, convert_local_omp_clauses,
8942         convert_nl_goto_reference, convert_nl_goto_receiver,
8943         convert_tramp_reference, convert_call_expr): Likewise.
8944         * tree-outof-ssa.c (contains_tree_r): Likewise.
8945         * tree-parloops.c (reduction_phi, initialize_reductions,
8946         eliminate_local_variables_1, add_field_for_reduction,
8947         add_field_for_name, create_phi_for_local_result,
8948         create_call_for_reduction_1, create_loads_for_reductions,
8949         create_stores_for_reduction, create_loads_and_stores_for_name):
8950         Likewise.
8951         * tree-phinodes.c (allocate_phi_node): Likewise.
8952         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
8953         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
8954         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
8955         * tree-ssa-coalesce.c (compare_pairs): Likewise.
8956         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
8957         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
8958         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
8959         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
8960         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
8961         vn_nary_op_insert): Likewise.
8962         * tree-ssa.c (redirect_edge_var_map_add,
8963         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
8964         * tree-vectorizer.c (vectorize_loops): Likewise.
8965         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
8966         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
8967         tree_cons_stat, build1_stat, build_variant_type_copy,
8968         decl_init_priority_lookup, decl_fini_priority_lookup,
8969         decl_priority_info, decl_restrict_base_lookup,
8970         decl_restrict_base_insert, decl_debug_expr_lookup,
8971         decl_debug_expr_insert, decl_value_expr_lookup,
8972         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
8973         type_hash_add, get_file_function_name, tree_check_failed,
8974         tree_not_check_failed, tree_range_check_failed,
8975         omp_clause_range_check_failed, build_omp_clause,
8976         build_vl_exp_stat): Likewise.
8977         * value-prof.c (gimple_histogram_value,
8978         gimple_duplicate_stmt_histograms): Likewise.
8979         * var-tracking.c (attrs_list_insert, attrs_list_copy,
8980         unshare_variable, variable_union_info_cmp_pos, variable_union,
8981         dataflow_set_different_1, dataflow_set_different_2,
8982         vt_find_locations, variable_was_changed, set_variable_part,
8983         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
8984         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
8985         section_entry_hash, object_block_entry_eq,
8986         object_block_entry_hash, create_block_symbol,
8987         initialize_cold_section_name, default_function_rodata_section,
8988         strip_reg_name, set_user_assembler_name, const_desc_eq,
8989         build_constant_desc, output_constant_def, lookup_constant_def,
8990         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
8991         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
8992         default_internal_label): Likewise.
8993         * varray.c (varray_init, varray_grow): Likewise.
8994         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
8995
8996 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
8997
8998         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
8999         operators for "test" insn.  Macroize insn using SWI mode macro.
9000         (*jcc_fused_2): Ditto.
9001         (*jcc_fused_3): Macroize insn using SWI mode macro.
9002         (*jcc_fused_4): Ditto.
9003
9004 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
9005
9006         * tree-ssa-pre.c: Fix typo in comment.
9007         (init_antic, fini_antic): Add explicit funtions for
9008         initializing and deinitializing ANTIC and AVAIL sets.
9009         (create_expression_by_pieces): Fix typo in comment.
9010         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9011         (execute_pre): Eventually dump details about ANTIC_IN.
9012
9013 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9014
9015         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9016         * gcc.c (translate_options, init_spec, store_arg, read_specs,
9017         add_to_obstack, file_at_path, find_a_file, execute,
9018         add_preprocessor_option, add_assembler_option, add_linker_option,
9019         process_command, insert_wrapper, do_option_spec, do_self_spec,
9020         spec_path, do_spec_1, is_directory, main, used_arg,
9021         getenv_spec_function): Likewise.
9022         * tlink.c (symbol_hash_lookup, file_hash_lookup,
9023         demangled_hash_lookup, symbol_push, file_push, frob_extension):
9024         Likewise.
9025
9026 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9027
9028         * doc/rtl.texi: Updated subreg section.
9029
9030 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9031
9032         PR c++/36523
9033         * cgraphunit.c (cgraph_process_new_functions): Don't clear
9034         node->needed and node->reachable.
9035         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9036         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9037         (expand_task_call): Don't call expand_task_copyfn.
9038         (expand_task_copyfn): Renamed to...
9039         (finalize_task_copyfn): ... this.
9040
9041 2008-06-19  Jan Hubicka  <jh@suse.cz>
9042
9043         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9044         clobbering framepointer.
9045
9046 2008-06-19  Jan Hubicka  <jh@suse.cz>
9047
9048         * tree-optimize.c (execute_early_local_optimizations): Set
9049         cgraph_state only at first invocation.
9050
9051 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9052
9053         * system.h (-Wc++-compat): Activate as a warning, no an error.
9054
9055 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9056
9057         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9058         instead of "#" in insn asm template.
9059         (*jcc_fused_2): Ditto.
9060
9061 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9062
9063         * config/i386/i386.h (ix86_tune_indices)
9064         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9065         (TARGET_FUSE_CMP_AND_BRANCH): New define.
9066         * config/i386/i386.md (*jcc_fused_1): New insn pattern
9067         (*jcc_fused_2): Ditto.
9068         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
9069         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
9070         (print operand): Handle 'E' and 'e' code.
9071
9072 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
9073
9074         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
9075         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9076         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9077
9078 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
9079
9080         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
9081         node->decl.
9082         (cgraph_expand_function): Use local copy of decl.
9083         (cgraph_expand_all_functions): Remove redundant initialization of
9084         order_pos.
9085         (cgraph_optimize): Reword internal_error message.
9086
9087 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
9088
9089         * arm-protos.h (arm_return_in_memory): Remove public
9090         arm_return_in_memory() prototype.
9091         * arm.c (arm_return_in_memory): Add static prototype, add target
9092         hook macro, change definition and comments.
9093         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
9094
9095 2008-06-19  Ben Elliston  <bje@au.ibm.com>
9096
9097         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
9098         real.c: Remove references to IEEE 754R.
9099         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
9100         * doc/libgcc.texi (Decimal float library routines): Likewise.
9101
9102 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9103
9104         * targhooks.h (struct gcc_target): New member unwind_word_mode.
9105         (default_unwind_word_mode): Add prototype.
9106         * targhooks.c (default_unwind_word_mode): New function.
9107         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
9108         instead of word_mode.
9109         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
9110         (TARGET_INITIALIZER): Use it.
9111
9112         * c-common.c (handle_mode_attribute): Support "unwind_word"
9113         mode attribute.
9114         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
9115
9116         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
9117         word_mode to access SjLj_Function_Context member "data".
9118         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
9119         conversion from targetm.eh_return_filter_mode () to
9120         targetm.unwind_word_mode () if they differ.
9121
9122         * builtin-types.def (BT_UNWINDWORD): New primitive type.
9123         (BT_FN_UNWINDWORD_PTR): New function type.
9124         (BT_FN_WORD_PTR): Remove.
9125         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
9126         * except.c (expand_builtin_extend_pointer): Convert pointer to
9127         targetm.unwind_word_mode () instead of word_mode.
9128
9129         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
9130         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
9131         (spu_unwind_word_mode): New function.
9132         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
9133         (TARGET_UNWIND_WORD_MODE): Define.
9134         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
9135
9136 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9137
9138         * config/spu/spu.c (reg_align): Remove.
9139         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
9140         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
9141         (spu_split_store): Likewise.
9142
9143 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9144
9145         * gcc/tree-vn.c: Fix typo in comment.
9146
9147 2008-06-18  Jan Hubicka  <jh@suse.cz>
9148
9149         * cgraphunit.c (cgraph_optimize): Output debug info when doing
9150         toplevel reorder too.
9151
9152 2008-06-18  Jan Hubicka  <jh@suse.cz>
9153
9154         * c-opts.c (c_common_post_options): PCH is not compatible with
9155         no-unit-at-a-time.
9156         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
9157         -fno-toplevel-reorder by default now.
9158
9159 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9160
9161         PR documentation/30739
9162         * doc/install.texi (Prerequisites): Document dependency on awk.
9163
9164 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
9165             Ian Lance Taylor  <iant@google.com>
9166
9167         PR rtl-optimization/35604
9168         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9169         only want to change jump destinations, not eventual label comparisons.
9170
9171 2008-06-16  Jan Hubicka  <jh@suse.cz>
9172
9173         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9174         syntax errors.
9175         (cgraph_analyze_function): Likewise.
9176
9177 2008-06-16  Jan Hubicka  <jh@suse.cz>
9178
9179         * cgraph.h (cgraph_mark_if_needed): New function.
9180         * cgraphunit.c (cgraph_mark_if_needed): New function.
9181         * c-decl.c (duplicate_decl): Use it.
9182
9183 2008-06-16  Jan Hubicka  <jh@suse.cz>
9184
9185         * cgraph.c (cgraph_add_new_function): When in expansion state, do
9186         lowering.
9187
9188 2008-06-16  Jan Hubicka  <jh@suse.cz>
9189
9190         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
9191
9192 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
9193             Kazu Hirata  <kazu@codesourcery.com>
9194             Maxim Kuvyrkov  <maxim@codesourcery.com
9195
9196         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
9197         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
9198         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
9199         EXTRA_SPEC_FUNCTIONS.
9200         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
9201         (DRIVER_SELF_SPECS): Adjust.
9202         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
9203         * config/mips/st.h, config/mips/t-st: New.
9204         * config/mips/driver-native.c, config/mips/x-native: New.
9205         * doc/invoke.texi (MIPS): Document 'native' value for -march and
9206         -mtune options.
9207
9208 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9209
9210         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
9211         from it.
9212         (ISA_HAS_FP_CONDMOVE): New macro.
9213         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
9214         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
9215         (ISA_HAS_NMADD3_NMSUB3): New macro.
9216         * config/mips/mips.c (mips_rtx_costs): Update.
9217         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
9218         compiling for ST Loongson 2E/2F.
9219         (madd<mode>): Rename to madd4<mode>.  Update.
9220         (madd3<mode>): New pattern.
9221         (msub<mode>): Rename to msub4<mode>.  Update.
9222         (msub3<mode>): New pattern.
9223         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
9224         (nmadd3<mode>): New pattern.
9225         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
9226         (nmadd3<mode>_fastmath): New pattern.
9227         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
9228         (nmsub3<mode>): New pattern.
9229         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
9230         (nmsub3<mode>_fastmath): New pattern.
9231         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
9232
9233 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
9234
9235         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
9236         (DF_REF_INSN_INFO): New.
9237         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
9238         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
9239         with a NULL DF_REF_INSN_INFO.
9240         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
9241         DF_INSN_SET.
9242         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
9243         DF_INSN_INFO_EQ_USES): New.
9244         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
9245         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
9246         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
9247         * df-core.c: Update comment for above changes.
9248         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
9249         DF_INSN_UID_* macros.
9250         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
9251         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
9252         insn rtx.  Update all callers.
9253         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
9254         df_ref_create_structure, df_insn_refs_collect): Likewise.
9255         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
9256         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
9257         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
9258         macros to access the insn refs.
9259         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
9260         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
9261         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
9262         for accessing the refs.
9263         (try_fwprop_subst): Likewise.
9264         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
9265         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
9266         for accessing the refs.
9267         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
9268         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
9269         to look at the insn refs.
9270         (record_uses): Likewise.
9271         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
9272         function anymore.
9273         (mark_artificial_uses): Don't mark_insn for artificial refs.
9274         (mark_reg_rependencies): Likewise.
9275
9276         * doc/rtl.texi: Remove documentation of ADDRESSOF.
9277
9278 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9279
9280         * configure: Regenerate.
9281
9282 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9283
9284         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
9285         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9286         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9287
9288 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9289
9290         * config/avr/avr.c (avr_mcu_t): Add attiny167.
9291         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9292         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9293
9294 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
9295
9296         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
9297         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9298         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9299
9300 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
9301
9302         * tree-ssa-sccvn.c: Fix format of comments.
9303
9304 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
9305
9306         * cgraph.c: Remove unneeded forward declarations of eq_node()
9307         and hash_node().
9308
9309 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
9310
9311         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
9312         REG_RETVAL notes.
9313         (see_update_relevancy): Likewise.
9314         * fwprop.c (try_fwprop_subst): Likewise.
9315         * rtlanal.c (noop_move_p): Likewise.
9316         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
9317         notes to non-existing libcall blocks.
9318         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
9319         Remove orig_set.
9320         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
9321         (dead_libcall_p): Remove.
9322         (delete_trivially_dead_insns): Don't use it.
9323         * web.c (union_defs): Remove comment about keeping nops.
9324         * gcse.c (hash_scan_insn): Don't take libcall pointers.
9325         (compute_hash_table_work): Don't track libcall notes.
9326         (do_local_cprop): Don't take libcall pointers.  Don't update
9327         libcall notes.
9328         (adjust_libcall_notes): Deleted.
9329         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
9330         ever have existed in the first place).
9331         (replace_store_insn): Don't try to remove libcall notes.
9332         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
9333         (resolve_reg_notes): Don't call them.
9334         (resolve_simple_move): Likewise.
9335         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
9336         Don't remove REG_RETVAL notes.
9337         * emit-rtl.c (try_split): Don't update libcall notes.
9338         (emit_copy_of_insn_after): Dito.
9339         * cselib.c (cselib_current_insn_in_libcall): Remove.
9340         (cselib_process_insn): Don't set/clear it.
9341         (new_elt_loc_list): Don't record it.
9342         (cselib_init): Don't initialize it.
9343         * cselib.c (struct elt_loc_list): Remove in_libcall field.
9344         * loop-invariant.c (find_invariant_insn): Don't look for libcall
9345         notes.
9346         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
9347         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
9348         (init_deps): Don't initialize it.
9349         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
9350         * combine.c (delete_noop_moves): Don't update libcall notes.
9351         (can_combine_p): Remove now pointless #if 0 block.
9352         (try_combine): Remove another obsolete #if 0 block.
9353         (distribute_notes): Don't distribute libcall notes.
9354         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
9355         * dce.c (libcall_dead_p): Remove.
9356         (delete_unmarked_insns): Don't handle libcall blocks.
9357         (preserve_libcall_for_dce): Remove.
9358         (prescan_insns_for_dce): Don't special-case libcall block insns.
9359         * reload1 (reload): Don't handle libcall notes.
9360         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
9361         documentation.
9362
9363 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
9364
9365         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
9366         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9367         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9368
9369 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
9370
9371         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
9372         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9373         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9374
9375 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9376
9377         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
9378
9379 2008-06-16  Ira Rosen  <irar@il.ibm.com>
9380
9381         PR tree-optimization/36493
9382         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
9383         the arguments list. Use VECTYPE to create vector pointer.
9384         (vectorizable_store): Fail if accesses through a pointer to vectype
9385         do not alias the original memory reference operands.
9386         Call vect_create_data_ref_ptr without the removed argument.
9387         (vectorizable_load): Likewise.
9388         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
9389         removed argument.
9390
9391 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
9392
9393         PR target/36336
9394         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
9395         reg_equiv_constant.
9396
9397 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9398
9399         * config/mips/loongson2ef.md: New file.
9400         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9401         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9402         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9403         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
9404         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
9405         and loongson_2f.
9406         (loongson2ef.md): New include.
9407         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
9408         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
9409         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
9410         (loongson_gt_<mode>, loongson_extract_halfword)
9411         (loongson_insert_halfword_0, loongson_insert_halfword_2)
9412         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
9413         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
9414         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
9415         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
9416         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
9417         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
9418         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
9419         (vec_interleave_low<mode>): Define type attribute.
9420         * config/mips/mips.c (mips_ls2): New static variable.
9421         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
9422         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
9423         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
9424         Implement target scheduling hooks.
9425         (mips_multipass_dfa_lookahead): Update to handle tuning for
9426         Loongson 2E/2F.
9427         (mips_sched_init): Initialize data for Loongson scheduling.
9428         (mips_ls2_variable_issue): New static function.
9429         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
9430         Add sanity check.
9431         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
9432         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
9433         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
9434         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
9435         Handle ST Loongson 2E/2F cores.
9436         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
9437
9438 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9439
9440         * omp-low.c (extract_omp_for_data): Fix comment typo.
9441         * c.opt: Fix typo.
9442
9443 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9444
9445         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
9446         FIXME note about gcc/config.guess.
9447         * doc/options.texi (Option file format): Remove non-ASCII bytes.
9448         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
9449         * doc/cppopts.texi: Likewise.
9450         * doc/extend.texi: Likewise.
9451         * doc/gcc.texi: Likewise.
9452         * doc/gccint.texi: Likewise.
9453         * doc/gcov.texi: Likewise.
9454         * doc/gty.texi: Likewise.
9455         * doc/hostconfig.texi: Likewise.
9456         * doc/install.texi: Likewise.
9457         * doc/invoke.texi: Likewise.
9458         * doc/loop.texi: Likewise.
9459         * doc/makefile.texi: Likewise.
9460         * doc/md.texi: Likewise.
9461         * doc/passes.texi: Likewise.
9462         * doc/tm.texi: Likewise.
9463         * doc/tree-ssa.texi: Likewise.
9464         * doc/trouble.texi: Likewise.
9465
9466 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
9467             Nathan Sidwell  <nathan@codesourcery.com>
9468             Maxim Kuvyrkov  <maxim@codesourcery.com>
9469             Richard Sandiford  <rdsandiford@googlemail.com>
9470
9471         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
9472         * config/mips/mips-protos.h (mips_expand_vector_init): New.
9473         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
9474         builtins.
9475         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
9476         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
9477         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
9478         V8QImode cases.
9479         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
9480         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
9481         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
9482         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
9483         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
9484         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
9485         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
9486         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
9487         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
9488         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
9489         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
9490         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
9491         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
9492         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
9493         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
9494         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
9495         (mips_builtins): Add Loongson builtins.
9496         (mips_loongson_2ef_bdesc): New.
9497         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
9498         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
9499         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
9500         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
9501         New.
9502         (mips_expand_vector_init): New.
9503         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
9504         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
9505         if appropriate.
9506         * config/mips/mips.md: Add unspec numbers for Loongson
9507         builtins.  Include loongson.md.
9508         (MOVE64): Include Loongson vector modes.
9509         (SPLITF): Include Loongson vector modes.
9510         (HALFMODE): Handle Loongson vector modes.
9511         * config/mips/loongson.md: New.
9512         * config/mips/loongson.h: New.
9513         * config.gcc: Add loongson.h header for mips*-*-* targets.
9514         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
9515
9516 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
9517
9518         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
9519         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
9520         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
9521         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
9522         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
9523         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
9524         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
9525         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
9526         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
9527         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
9528         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
9529         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
9530         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
9531         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
9532         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
9533         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
9534         Remove use_fixproto=yes.
9535         (ia64*-*-hpux*): Remove comment about using fixproto.
9536         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
9537
9538 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9539
9540         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
9541         library rebuilds.
9542         * configure: Regenerate.
9543
9544 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9545
9546         PR middle-end/36520
9547         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
9548         before evaluating it.
9549
9550 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
9551
9552         PR c/36507
9553         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
9554         nested inline functions.
9555         (start_decl, start_function): Don't invert DECL_EXTERNAL
9556         for nested inline functions.
9557
9558 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
9559
9560         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
9561         splits that must be made for correctness.
9562
9563 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
9564
9565         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
9566         (AVAIL_NON_MIPS16): Likewise.
9567         (mips_builtin_description): Replace target_flags with a predicate.
9568         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
9569         (dspr2_32): New availability predicates.
9570         (MIPS_BUILTIN): New macro.
9571         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
9572         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
9573         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
9574         Replace the TARGET_FLAGS parameters with AVAIL parameters.
9575         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
9576         (mips_dsp_32only_bdesc): Merge into...
9577         (mips_builtins): ...this new array.
9578         (mips_bdesc_map, mips_bdesc_arrays): Delete.
9579         (mips_init_builtins): Update after above changes.
9580         (mips_expand_builtin_1): Merge into...
9581         (mips_expand_builtin): ...here and update after above changes.
9582
9583 2008-06-12  Paul Brook  <paul@codesourcery.com>
9584
9585         * longlong.h (__arm__): Define count_leading_zeros.
9586         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
9587         (clzsi2, clzdi2): New functions.
9588         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
9589         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
9590         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
9591         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
9592         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
9593         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
9594         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
9595         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
9596         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
9597         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
9598
9599 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
9600
9601         * config/m68k/m68k.c (m68k_tune_flags): New.
9602         (override_options): Compute m68k_tune_flags.
9603         (MULL_COST, MULW_COST): Update for various variants of CFV2.
9604         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
9605
9606 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
9607
9608         PR middle-end/36506
9609         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
9610
9611 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
9612
9613         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
9614         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
9615
9616 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
9617
9618         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
9619         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
9620
9621 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
9622
9623         PR middle-end/36506
9624         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
9625         reductions.
9626
9627 2008-06-12  Richard Guenther  <rguenther@suse.de>
9628
9629         PR tree-optimization/36345
9630         * tree-flow.h (struct ptr_info_def): Align escape_mask,
9631         add memory_tag_needed flag.
9632         (may_alias_p): Declare.
9633         * tree-ssa-alias.c (may_alias_p): Export.
9634         (set_initial_properties): Use memory_tag_needed flag.
9635         (update_reference_counts): Likewise.
9636         (reset_alias_info): Reset memory_tag_needed flag.
9637         (create_name_tags): Check memory_tag_needed flag.
9638         (dump_points_to_info_for): Dump it.
9639         * tree-ssa-structalias.c (struct variable_info): Remove
9640         directly_dereferenced flag.
9641         (new_var_info): Do not initialize it.
9642         (process_constraint_1): Do not set it.
9643         (update_alias_info): Set is_dereferenced flag.
9644         (set_uids_in_ptset): Use may_alias_p.
9645         (set_used_smts): Check memory_tag_needed flag.
9646         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
9647         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
9648         memory_tag_needed flag.
9649         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
9650         from broken design.
9651
9652 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
9653
9654         * config/i386/i386.c (ix86_compute_frame_layout): Disable
9655         red zone for w64 abi.
9656         (ix86_expand_prologue): Likewise.
9657         (ix86_force_to_memory): Likewise.
9658         (ix86_free_from_memory): Likewise.
9659
9660 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
9661
9662         PR target/36425
9663         * config/rs6000/rs6000.c (rs6000_override_options): Set
9664         rs6000_isel conditionally to the absence of comand line override.
9665         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9666         Remove duplicate rs6000_isel setting.
9667         * config/rs6000/eabispe.h: Ditto.
9668
9669 2008-06-11  Richard Guenther  <rguenther@suse.de>
9670
9671         * alias.c (get_alias_set): Use the element alias-set for arrays.
9672         (record_component_aliases): For arrays and vectors do nothing.
9673         * c-common.c (strict_aliasing_warning): Handle the cases
9674         of alias set zero explicitly.
9675         * Makefile.in (dfp.o-warn): Add -Wno-error.
9676
9677 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
9678
9679         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
9680         tune_32 tune_64.
9681         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
9682         tune_32 tune_64 to supported_defaults.  Allow values not
9683         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
9684         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
9685         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
9686         with_cpu_64 to generic for 64-bit-supporting configurations, not
9687         with_cpu.  Remove FIXMEs.
9688         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
9689         --with-arch-64, --with-tune-32, --with-tune-64): Document.
9690         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
9691         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
9692         arch_32 and arch_64.
9693
9694 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9695             Olivier Hainque  <hainque@adacore.com>
9696
9697         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
9698         Use DECL_SIZE_UNIT to retrieve the size of the field.
9699
9700 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
9701
9702         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
9703         with function calls after declarations.  Lay out
9704         neon_float_type_node before further use.
9705
9706 2008-06-11  Richard Guenther  <rguenther@suse.de>
9707
9708         * tree-flow.h (may_point_to_global_var): Declare.
9709         * tree-ssa-alias.c (may_point_to_global_var): New function.
9710         * tree-ssa-sink.c (is_hidden_global_store): Use it.
9711
9712 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
9713
9714         * configure.ac: Teach that fido supports .debug_line.
9715         * configure: Regenerate.
9716
9717 2008-06-10  Tom Tromey  <tromey@redhat.com>
9718
9719         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
9720         debug hook.
9721
9722 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
9723
9724         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
9725         (encode_decimal64, decode_decimal64, encode_decimal128,
9726         decode_decimal128): Reverse order of 32-bit parts of value if host
9727         and target endianness differ.
9728
9729 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
9730
9731         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
9732         Avoid division by 0.
9733         (tree_mod_pow2_value_transform): Likewise.
9734         (tree_ic_transform): Likewise.
9735         (tree_stringops_transform): Likewise.
9736         (tree_mod_subtract_transform): Likewise.
9737         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
9738         (copy_edges_for_bb): Likewise.
9739         (initialize_cfun): Likewise.
9740
9741 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
9742
9743         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
9744         nonmemory_operand. Add "N" operand constraint.
9745         (*btsi): Ditto.
9746         (*jcc_btdi_mask_rex64): New instruction and split pattern.
9747         (*jcc_btsi_mask): Ditto.
9748         (*jcc_btsi_mask_1): Ditto.
9749
9750 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
9751
9752         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
9753         TYPE_CANONICAL for copied element type.
9754
9755 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
9756
9757         PR target/36473
9758         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
9759         Add m_CORE2 and m_GENERIC.
9760         * config/i386/predicates.md (bt_comparison_operator): New predicate.
9761         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
9762         (*btsi): Ditto.
9763         (*jcc_btdi_rex64): New instruction and split pattern.
9764         (*jcc_btsi): Ditto.
9765         (*jcc_btsi_1): Ditto.
9766         (*btsq): Fix Intel asm dialect operand order.
9767         (*btrq): Ditto.
9768         (*btcq): Ditto.
9769
9770 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
9771
9772         PR middle-end/36447
9773         * simplify-rtx.c (simplify_subreg): Add check for shift count
9774         greater than size.
9775
9776 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
9777
9778         * doc/md.texi: Synchronize with later constraints.md change.
9779         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
9780         with a C implementation.
9781         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
9782         MFLO handling.
9783         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
9784         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
9785         when moving to and from MD_REGNUM.
9786         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
9787         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
9788         Handle byte and halfword moves.
9789         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
9790         separately.
9791         * config/mips/constraints.md (h): Turn into NO_REGS.
9792         (l, x): Update documentation.
9793         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
9794         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
9795         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
9796         (HILO): New mode iterator.
9797         (MOVE128): Add TI.
9798         (any_div): New code iterator.
9799         (u): Extend code attribute to div and udiv.
9800         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
9801         d_operand in the splitters.  Remove redundant CONST_INT checks.
9802         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
9803         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
9804         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
9805         accordingly, using normal moves instead of unspecs to move LO into
9806         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
9807         (<u>mulsidi3): Handle expansion in C code.
9808         (<u>mulsidi3_32bit_internal): Rename to...
9809         (<u>mulsidi3_32bit): ...this.
9810         (<u>mulsidi3_32bit_r4000): Fix insn separator.
9811         (*<u>mulsidi3_64bit): Rename to...
9812         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
9813         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
9814         to set LO and HI to the multiplication result.  Use a normal move
9815         for MFLO and an unspec for MFHI.
9816         (*<u>mulsidi3_64bit_parts): Replace with...
9817         (<u>mulsidi3_64bit_hilo): ...this new instruction.
9818         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
9819         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
9820         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
9821         instead of HI.  Split the instruction into a separate multiplication
9822         and MFHI if !TARGET_FIX_R4000.
9823         (<su>muldi3_highpart): Likewise.
9824         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
9825         and the "=h" clobber.
9826         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
9827         (<u>mulditi3): New expander.
9828         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
9829         (madsi): Remove "=h" clobber.
9830         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
9831         Force the modulus result to be a GPR and split the instruction into
9832         a division followed by an MFHI after reload.
9833         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
9834         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
9835         the MIPS16 HIGH define_split.
9836         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
9837         of acc<->gpr moves to "multi".
9838         (*movdi_64bit): Replace the single "x" alternative with
9839         alternatives for moving into and out of "a".
9840         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
9841         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
9842         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
9843         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
9844         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
9845         (movti): New expander.
9846         (*movti, *movti_mips16): New insns.
9847         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
9848         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
9849         (mthi<GPR:mode>_<HILO:mode>): Likewise.
9850         * config/mips/predicates.md (fpr_operand): Delete.
9851         (d_operand): New predicate.
9852
9853 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
9854
9855         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
9856         failure on some Bourne shells.
9857         (x86_64-*-*): Ditto.
9858
9859 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
9860
9861         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
9862
9863 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
9864
9865         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
9866         (sparc-sun-solaris2*): Likewise.
9867
9868 2008-06-09  Arnaud Charlet  <charlet@adacore.com
9869
9870         * doc/install.texi: Update requirements to build the Ada compiler.
9871
9872 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
9873
9874         * df-scan.c (struct df_scan_problem_data): Remove the
9875         mw_link_pool alloc pool.
9876         (df_scan_free_internal): Don't free it.
9877         (df_scan_alloc): Don't allocate it.
9878         * df.h (struct df_link): Update comment.
9879
9880 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
9881
9882         * except.h: Correct checks for when SJLJ exceptions must be used.
9883
9884 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9885
9886         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
9887         default.
9888
9889 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
9890
9891         PR tree-optimization/36218
9892         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
9893         configure for the build system.
9894         (BUILD_LDFLAGS): Define.
9895         * configure: Regenerate.
9896         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
9897
9898 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
9899
9900         PR target/36424
9901         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
9902         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
9903         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
9904
9905 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
9906
9907         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
9908
9909 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
9910
9911         * config.gcc (Obsolete configurations): Remove list of
9912         configurations.
9913         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
9914         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
9915         targets matched by those patterns.
9916         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
9917         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
9918         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
9919         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
9920         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9921         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
9922         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
9923         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
9924         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
9925         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
9926         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
9927         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
9928         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
9929         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
9930         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
9931         Make code for Solaris 7 and greater unconditional for Solaris.
9932         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
9933         Remove --with-* handling.
9934         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
9935         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
9936         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
9937         LINK_OS_WINDISS_SPEC): Remove.
9938         * config/rs6000/sysv4.opt (mwindiss): Remove.
9939         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
9940         * configure: Regenerate.
9941         * doc/cpp.texi: Don't mention BeOS.
9942         * doc/extend.texi (interrupt): Don't mention MS1.
9943         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
9944         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
9945         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
9946         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
9947         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
9948         Remove.
9949         * doc/invoke.texi (MT Options): Remove.
9950         (-mwindiss): Remove.
9951         (CRIS Options): Remove cris-axis-aout references.
9952         (HPPA Options): Don't mention hppa1.1-*-pro.
9953         * doc/md.texi: (MorphoTech family): Remove.
9954         * libgcc2.c: Don't handle UWIN.
9955         * config/alpha/t-unicosmk: Remove.
9956         * config/alpha/unicosmk.h: Remove.
9957         * config/arm/kaos-arm.h: Remove.
9958         * config/arm/kaos-strongarm.h: Remove.
9959         * config/arm/strongarm-coff.h: Remove.
9960         * config/arm/strongarm-elf.h: Remove.
9961         * config/arm/strongarm-pe.h: Remove.
9962         * config/arm/t-strongarm-pe: Remove.
9963         * config/arm/t-xscale-coff: Remove.
9964         * config/arm/t-xscale-elf: Remove.
9965         * config/arm/xscale-coff.h: Remove.
9966         * config/arm/xscale-elf.h: Remove.
9967         * config/chorus.h: Remove.
9968         * config/cris/aout.h: Remove.
9969         * config/cris/aout.opt: Remove.
9970         * config/cris/t-aout: Remove.
9971         * config/i386/beos-elf.h: Remove.
9972         * config/i386/kaos-i386.h: Remove.
9973         * config/i386/ptx4-i.h: Remove.
9974         * config/i386/sco5.h: Remove.
9975         * config/i386/sco5.opt: Remove.
9976         * config/i386/sysv4-cpp.h: Remove.
9977         * config/i386/sysv5.h: Remove.
9978         * config/i386/t-beos: Remove.
9979         * config/i386/t-sco5: Remove.
9980         * config/i386/t-uwin: Remove.
9981         * config/i386/uwin.asm: Remove.
9982         * config/i386/uwin.h: Remove.
9983         * config/kaos.h: Remove.
9984         * config/mips/windiss.h: Remove.
9985         * config/mt: Remove directory.
9986         * config/pa/pa-osf.h: Remove.
9987         * config/pa/pa-pro-end.h: Remove.
9988         * config/pa/t-pro: Remove.
9989         * config/ptx4.h: Remove.
9990         * config/rs6000/beos.h: Remove.
9991         * config/rs6000/kaos-ppc.h: Remove.
9992         * config/rs6000/t-beos: Remove.
9993         * config/rs6000/windiss.h: Remove.
9994         * config/sh/kaos-sh.h: Remove.
9995         * config/sol2-6.h: Remove.
9996         * config/sparc/sol26-sld.h: Remove.
9997         * config/sparc/sysv4-only.h: Remove.
9998         * config/vax/bsd.h: Remove.
9999         * config/vax/t-memfuncs: Remove.
10000         * config/vax/ultrix.h: Remove.
10001         * config/vax/vaxv.h: Remove.
10002         * config/windiss.h: Remove.
10003
10004 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
10005
10006         PR rtl-optimization/36438
10007         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10008         for vector shifts with constant scalar shift operands.
10009
10010 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
10011
10012         * doc/invoke.texi: Document -march=xlr.
10013         * config/mips/xlr.md: New file.
10014         * config/mips/mips.md: Include it.
10015         (cpu): Add "xlr".
10016         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10017         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10018         (mips_rtx_cost_data): Likewise.
10019
10020 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10021
10022         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10023         PRE_INC and PRE_DEC cases.
10024
10025 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10026
10027         PR rtl-optimization/36419
10028         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10029         the emitting jump insn.
10030
10031         PR target/36362
10032         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10033         is not bool, boolify the whole *expr_p and convert to the desired type.
10034
10035 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10036
10037         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10038         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10039         Add omp_private_outer_ref hook, add another argument to
10040         omp_clause_default_ctor hook.
10041         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10042         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10043         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10044         hook_tree_tree_tree_tree_null.
10045         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10046         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10047         * hooks.c (hook_tree_tree_tree_tree_null): New function.
10048         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10049         * tree.def (OMP_TASK): New tree code.
10050         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10051         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10052         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10053         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10054         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10055         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10056         OMP_CLAUSE_COLLAPSE_EXPR): Define.
10057         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10058         (OMP_DIRECTIVE_P): Add OMP_TASK.
10059         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10060         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10061         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10062         and OMP_CLAUSE_UNTIED entries.
10063         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
10064         num_ops to 2.
10065         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10066         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10067         * tree-pretty-print.c (dump_omp_clause): Handle
10068         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
10069         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10070         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
10071         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
10072         warning about unsigned iterators.  Change decl/init/cond/incr
10073         arguments to TREE_VECs, check arguments for all collapsed loops.
10074         (c_finish_omp_taskwait): New function.
10075         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
10076         ws_clauses.
10077         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
10078         default_function_array_conversion on init.  Add par_clauses argument.
10079         If decl is present in parallel's lastprivate clause, change it to
10080         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
10081         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
10082         collapse count in clauses.
10083         (c_parser_omp_for, c_parser_omp_parallel): Adjust
10084         c_parser_omp_for_loop callers.
10085         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
10086         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
10087         (c_parser_omp_clause_name): Handle collapse and untied clauses.
10088         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
10089         functions.
10090         (c_parser_omp_clause_schedule): Handle schedule(auto).
10091         Include correct location in the error message.
10092         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
10093         and PRAGMA_OMP_CLAUSE_UNTIED.
10094         (OMP_TASK_CLAUSE_MASK): Define.
10095         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
10096         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
10097         * tree-nested.c (convert_nonlocal_omp_clauses,
10098         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
10099         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
10100         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10101         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
10102         OMP_CLAUSE_DECL.
10103         (conver_nonlocal_reference, convert_local_reference,
10104         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
10105         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
10106         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
10107         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
10108         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
10109         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
10110         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
10111         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
10112         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10113         OMP_CLAUSE_UNTIED.
10114         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
10115         * c-common.h (c_finish_omp_taskwait): New prototype.
10116         * gimple-low.c (lower_stmt): Handle OMP_TASK.
10117         * tree-parloops.c (create_parallel_loop): Create 1 entry
10118         vectors for OMP_FOR_{INIT,COND,INCR}.
10119         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10120         (make_edges): Handle OMP_TASK.
10121         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
10122         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10123         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
10124         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
10125         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
10126         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10127         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10128         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
10129         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
10130         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
10131         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
10132         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
10133         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
10134         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
10135         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
10136         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
10137         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
10138         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
10139         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
10140         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
10141         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
10142         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
10143         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
10144         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
10145         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
10146         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
10147         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
10148         original iterator is present in lastprivate clause or if
10149         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
10150         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10151         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
10152         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
10153         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
10154         if it is set, lookup var in outer contexts too.  Handle
10155         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
10156         to be implicitly determined firstprivate for task regions.
10157         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
10158         if it is set, lookup var in outer contexts too.  Set
10159         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
10160         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
10161         OMP_CLAUSE_UNTIED.  Take region_type as last argument
10162         instead of in_parallel and in_combined_parallel.
10163         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
10164         Adjust callers.
10165         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10166         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
10167         (new_omp_context): Set default_kind to
10168         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10169         (omp_region_type): New enum.
10170         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10171         fields, add region_type.
10172         (new_omp_context): Take region_type as argument instead of is_parallel
10173         and is_combined_parallel.
10174         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10175         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10176         ctx->is_combined_parallel checks.
10177         (gimplify_omp_task): New function.
10178         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10179         OMP_CLAUSE_UNTIED.
10180         * omp-low.c (extract_omp_for_data): Use schedule(static)
10181         for schedule(auto).  Handle pointer and unsigned iterators.
10182         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
10183         Add loops argument.  Extract data for collapsed OMP_FOR loops.
10184         (expand_parallel_call): Assert sched_kind isn't auto,
10185         map runtime schedule to index 3.
10186         (struct omp_for_data_loop): New type.
10187         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
10188         Add loop, loops, collapse and iter_type fields.
10189         (workshare_safe_to_combine_p): Disallow combined for if
10190         iter_type is unsigned long long.  Don't combine collapse > 1 loops
10191         unless all bounds and steps are constant.  Adjust extract_omp_for_data
10192         caller.
10193         (expand_omp_for_generic): Handle pointer, unsigned and long long
10194         iterators.  Handle collapsed OMP_FOR loops.  Adjust
10195         for struct omp_for_data changes.  If libgomp function doesn't return
10196         boolean_type_node, add comparison of the return value with 0.
10197         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
10198         pointer, unsigned and long long iterators.  Adjust for struct
10199         omp_for_data changes.
10200         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
10201         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
10202         unsigned long long.  Allocate loops array, pass it to
10203         extract_omp_for_data.  For collapse > 1 loops use always
10204         expand_omp_for_generic.
10205         (omp_context): Add sfield_map and srecord_type fields.
10206         (is_task_ctx, lookup_sfield): New functions.
10207         (use_pointer_for_field): Use is_task_ctx helper.  Change first
10208         argument's type from const_tree to tree.  Clarify comment.
10209         In OMP_TASK disallow copy-in/out sharing.
10210         (build_sender_ref): Call lookup_sfield instead of lookup_field.
10211         (install_var_field): Add mask argument.  Populate both record_type
10212         and srecord_type if needed.
10213         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
10214         in srecord_type.
10215         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
10216         and DECL_FIELD_OFFSET.
10217         (scan_sharing_clauses): Adjust install_var_field callers.  For
10218         firstprivate clauses on explicit tasks allocate the var by value in
10219         record_type unconditionally, rather than by reference.
10220         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
10221         Use is_taskreg_ctx instead of is_parallel_ctx.
10222         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10223         (create_omp_child_function_name): Add task_copy argument, use
10224         *_omp_cpyfn* names if it is true.
10225         (create_omp_child_function): Add task_copy argument, if true create
10226         *_omp_cpyfn* helper function.
10227         (scan_omp_parallel): Adjust create_omp_child_function callers.
10228         Rename parallel_nesting_level to taskreg_nesting_level.
10229         (scan_omp_task): New function.
10230         (lower_rec_input_clauses): Don't run constructors for firstprivate
10231         explicit task vars which are initialized by *_omp_cpyfn*.
10232         Pass outer var ref to omp_clause_default_ctor hook if
10233         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
10234         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
10235         OMP_CLAUSE_REDUCTION_INIT.
10236         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
10237         avoid duplicate setting of fields.  Handle
10238         OMP_CLAUSE_PRIVATE_OUTER_REF.
10239         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
10240         copy-out if TREE_READONLY, only copy-in.
10241         (expand_task_copyfn): New function.
10242         (expand_task_call): New function.
10243         (struct omp_taskcopy_context): New type.
10244         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
10245         New functions.
10246         (lower_omp_parallel): Rename to...
10247         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
10248         Call create_task_copyfn if srecord_type is needed.  Adjust
10249         sender_decl type.
10250         (task_shared_vars): New variable.
10251         (check_omp_nesting_restrictions): Warn if work-sharing,
10252         barrier, master or ordered region is closely nested inside OMP_TASK.
10253         Add warnings for barrier if closely nested inside of work-sharing,
10254         ordered, or master region.
10255         (scan_omp_1): Call check_omp_nesting_restrictions even for
10256         GOMP_barrier calls.  Rename parallel_nesting_level to
10257         taskreg_nesting_level.  Handle OMP_TASK.
10258         (lower_lastprivate_clauses): Even if some lastprivate is found on a
10259         work-sharing construct, continue looking for them on parent parallel
10260         construct.
10261         (lower_omp_for_lastprivate): Add lastprivate clauses
10262         to the beginning of dlist rather than end.  Adjust for struct
10263         omp_for_data changes.
10264         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
10265         not after it.  Handle collapsed OMP_FOR loops, adjust for
10266         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
10267         (get_ws_args_for): Adjust extract_omp_for_data caller.
10268         (scan_omp_for): Handle collapsed OMP_FOR
10269         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10270         (lower_omp_single_simple): If libgomp function doesn't return
10271         boolean_type_node, add comparison of the return value with 0.
10272         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
10273         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
10274         (parallel_nesting_level): Rename to...
10275         (taskreg_nesting_level): ... this.
10276         (is_taskreg_ctx): New function.
10277         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
10278         of is_parallel_ctx.
10279         (execute_lower_omp): Rename parallel_nesting_level to
10280         taskreg_nesting_level.
10281         (expand_omp_parallel): Rename to...
10282         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
10283         Call omp_task_call for OMP_TASK regions.
10284         (expand_omp): Adjust caller, handle OMP_TASK.
10285         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
10286
10287         * bitmap.c (bitmap_default_obstack_depth): New variable.
10288         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
10289         if argument is NULL and bitmap_default_obstack is already initialized.
10290         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
10291         at the end.
10292         * matrix-reorg.c (matrix_reorg): Likewise.
10293
10294 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
10295
10296         * config/i386/i386.md (*indirect_jump): Macroize using P
10297         mode iterator.  Remove !TARGET_64BIT from insn constraints.
10298         (*tablejump_1): Ditto.
10299         (*indirect_jump_rex64): Remove insn pattern.
10300         (*tablejump_1_rex64): Ditto.
10301         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
10302         and eh_return_si insn patterns.
10303
10304 2008-06-06  Richard Guenther  <rguenther@suse.de>
10305
10306         * tree-ssa-structalias.c (merge_smts_into): Remove.
10307         (find_what_p_points_to): Do not bother to compute the
10308         points-to set for pt_anything pointers.
10309         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
10310         for pt_anything pointers is ok.
10311
10312 2008-06-06  Jan Hubicka  <jh@suse.cz>
10313
10314         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
10315
10316 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10317
10318         * cgraph.c: Fix typos in comments.
10319         (cgraph_availability_names): Fix string typo.
10320         * fold-const.c: Fix typos in comments.
10321         (fold_binary): Fix typo in warning.
10322         * genautomata.c: Fix typos in comments.
10323         (check_presence_pattern_sets): Fix typo in local variable.
10324         (output_description): Fix typo in output.
10325         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
10326         * hwint.h: Likewise.
10327         * matrix-reorg.c (check_allocation_function): Likewise.
10328         * omega.c (smooth_weird_equations): Likewise.
10329         * auto-inc-dec.c: Fix typos in comments.
10330         * bb-reorder.c: Likewise.
10331         * builtins.c: Likewise.
10332         * c-common.c: Likewise.
10333         * c-cppbuiltin.c: Likewise.
10334         * c-parser.c: Likewise.
10335         * c-pretty-print.c: Likewise.
10336         * cfgcleanup.c: Likewise.
10337         * cfgexpand.c: Likewise.
10338         * cfghooks.c: Likewise.
10339         * cfglayout.c: Likewise.
10340         * cfgloopmanip.c: Likewise.
10341         * cgraphunit.c: Likewise.
10342         * coverage.c: Likewise.
10343         * dbxout.c: Likewise.
10344         * df-byte-scan.c: Likewise.
10345         * df-core.c: Likewise.
10346         * df-problems.c: Likewise.
10347         * df-scan.c: Likewise.
10348         * dfp.c: Likewise.
10349         * dominance.c: Likewise.
10350         * domwalk.c: Likewise.
10351         * dse.c: Likewise.
10352         * dwarf2out.c: Likewise.
10353         * emit-rtl.c: Likewise.
10354         * et-forest.c: Likewise.
10355         * function.c: Likewise.
10356         * function.h: Likewise.
10357         * gcc.c: Likewise.
10358         * gcov-io.c: Likewise.
10359         * gcov.c: Likewise.
10360         * gcse.c: Likewise.
10361         * genattrtab.c: Likewise.
10362         * ggc-page.c: Likewise.
10363         * gimplify.c: Likewise.
10364         * gthr-lynx.h: Likewise.
10365         * haifa-sched.c: Likewise.
10366         * ipa-cp.c: Likewise.
10367         * ipa-inline.c: Likewise.
10368         * ipa-prop.h: Likewise.
10369         * ipa-pure-const.c: Likewise.
10370         * ipa-struct-reorg.c: Likewise.
10371         * ipa-struct-reorg.h: Likewise.
10372         * ipa-type-escape.c: Likewise.
10373         * ipa.c: Likewise.
10374         * loop-doloop.c: Likewise.
10375         * mips-tfile.c: Likewise.
10376         * mkmap-flat.awk: Likewise.
10377         * mkmap-symver.awk: Likewise.
10378         * modulo-sched.c: Likewise.
10379         * omp-low.c: Likewise.
10380         * optabs.c: Likewise.
10381         * optabs.h: Likewise.
10382         * opts.c: Likewise.
10383         * passes.c: Likewise.
10384         * postreload-gcse.c: Likewise.
10385         * postreload.c: Likewise.
10386         * predict.c: Likewise.
10387         * pretty-print.h: Likewise.
10388         * profile.c: Likewise.
10389         * protoize.c: Likewise.
10390         * ra-conflict.c: Likewise.
10391         * real.c: Likewise.
10392         * recog.c: Likewise.
10393         * regclass.c: Likewise.
10394         * regs.h: Likewise.
10395         * reload.c: Likewise.
10396         * rtl-error.c: Likewise.
10397         * rtlanal.c: Likewise.
10398         * scan.h: Likewise.
10399         * sched-rgn.c: Likewise.
10400         * see.c: Likewise.
10401         * stmt.c: Likewise.
10402         * target.h: Likewise.
10403         * tree-dfa.c: Likewise.
10404         * tree-eh.c: Likewise.
10405         * tree-flow-inline.h: Likewise.
10406         * tree-inline.c: Likewise.
10407         * tree-into-ssa.c: Likewise.
10408         * tree-loop-distribution.c: Likewise.
10409         * tree-nested.c: Likewise.
10410         * tree-parloops.c: Likewise.
10411         * tree-pass.h: Likewise.
10412         * tree-pretty-print.c: Likewise.
10413         * tree-profile.c: Likewise.
10414         * tree-scalar-evolution.c: Likewise.
10415         * tree-sra.c: Likewise.
10416         * tree-ssa-alias-warnings.c: Likewise.
10417         * tree-ssa-ccp.c: Likewise.
10418         * tree-ssa-coalesce.c: Likewise.
10419         * tree-ssa-dom.c: Likewise.
10420         * tree-ssa-dse.c: Likewise.
10421         * tree-ssa-forwprop.c: Likewise.
10422         * tree-ssa-live.c: Likewise.
10423         * tree-ssa-live.h: Likewise.
10424         * tree-ssa-loop-im.c: Likewise.
10425         * tree-ssa-loop-ivopts.c: Likewise.
10426         * tree-ssa-loop-niter.c: Likewise.
10427         * tree-ssa-loop-prefetch.c: Likewise.
10428         * tree-ssa-phiopt.c: Likewise.
10429         * tree-ssa-phiprop.c: Likewise.
10430         * tree-ssa-sccvn.c: Likewise.
10431         * tree-ssa-ter.c: Likewise.
10432         * tree-ssa-threadupdate.c: Likewise.
10433         * tree-ssa.c: Likewise.
10434         * tree-vect-analyze.c: Likewise.
10435         * tree-vect-transform.c: Likewise.
10436         * tree-vectorizer.c: Likewise.
10437         * tree-vn.c: Likewise.
10438         * tree-vrp.c: Likewise.
10439         * tree.c: Likewise.
10440         * tree.def: Likewise.
10441         * tree.h: Likewise.
10442         * unwind-dw2-fde.c: Likewise.
10443         * unwind.inc: Likewise.
10444         * value-prof.c: Likewise.
10445         * vmsdbgout.c: Likewise.
10446
10447 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
10448
10449         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
10450         always place FP constants in the TOC for TARGET_POWERPC64.
10451         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
10452
10453 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
10454
10455         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
10456         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
10457         enable for TARGET_E500_DOUBLE.
10458         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
10459         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
10460         floating-point modes like integer modes for E500 double.
10461         (rs6000_legitimate_offset_address_p): Likewise.
10462         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
10463         addressing for DDmode for E500 double.
10464         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
10465         modes as using 64-bits of registers for E500 double.
10466         (spe_build_register_parallel): Do not handle DDmode or TDmode.
10467         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
10468         specially for E500 double.
10469         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
10470         TDmode for E500 double.
10471         (rs6000_gimplify_va_arg): Only handle SDmode in registers
10472         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
10473         (rs6000_split_multireg_move): Do not handle TDmode specially for
10474         E500 double.
10475         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
10476         using 64-bit registers for E500 double.
10477         (emit_frame_save): Do not handle DDmode specially for E500 double.
10478         (gen_frame_mem_offset): Likewise.
10479         (rs6000_function_value): Do not call spe_build_register_parallel
10480         for DDmode or TDmode.
10481         (rs6000_libcall_value): Likewise.
10482         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
10483         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
10484         for E500 double.
10485
10486 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10487
10488         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
10489         in comments.
10490
10491 2008-06-04  Junjie Gu <jgu@tensilica.com>
10492
10493         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
10494         comparison for frame pointers.
10495
10496 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
10497
10498         PR target/27386
10499         * config/avr/avr.h (PUSH_ROUNDING): Remove.
10500
10501 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
10502
10503         PR target/30243
10504         * builtins.c (expand_builtin_signbit): Don't take lowpart when
10505         register is already smaller or equal to required mode.
10506
10507 2008-06-04  Xinliang David Li  <davidxl@google.com>
10508
10509         * tree-call-cdce.c: New file.
10510         (cond_dead_built_in_calls): New static variable.
10511         (input_domain): New struct.
10512         (check_pow): New function.
10513         (check_builtin_call): Ditto.
10514         (check_target_format): Ditto.
10515         (is_call_dce_candidate): Ditto.
10516         (gen_one_condition): Ditto.
10517         (gen_conditions_for_domain): Ditto.
10518         (get_domain): Ditto.
10519         (gen_conditions_for_pow_cst_base): Ditto.
10520         (gen_conditions_for_pow_int_base): Ditto.
10521         (gen_conditions_for_pow): Ditto.
10522         (get_no_error_domain): Ditto.
10523         (gen_shrink_wrap_conditions): Ditto.
10524         (shrink_wrap_one_built_in_call): Ditto.
10525         (shink_wrap_conditional_dead_built_in_calls): Ditto.
10526         (tree_call_cdce): Ditto.
10527         (gate_call_cdce): Ditto.
10528         (pass_call_cdce): New gimple pass.
10529         * passes.c: (init_optimization_passes): New pass.
10530         * tree-pass.h: New pass declaration.
10531         * opts.c (decode_options): New flag setting.
10532         * common.opt: Add -ftree-builtin-call-dce flag.
10533         * Makefile.in: Add new source file.
10534         * tempvar.def: New tv_id.
10535         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
10536
10537 2008-06-04  Richard Guenther  <rguenther@suse.de>
10538
10539         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
10540         (is_call_clobbered): Always check var_ann->call_clobbered.
10541         (mark_call_clobbered): Always set var_ann->call_clobbered.
10542         (clear_call_clobbered): Always clear var_ann->call_clobbered.
10543         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
10544         (reset_alias_info): Clear call clobbering info on MTAGs and
10545         globals as well.
10546         (set_pt_anything): Set pt_global_mem.
10547         (create_tag_raw): Adjust comment.
10548         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
10549
10550 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
10551             Maxim Kuvyrkov  <maxim@codesourcery.com>
10552
10553         * config/m68k/m68k.opt (mxgot): New option.
10554         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
10555         (m68k_output_addr_const_extra): New.
10556         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
10557         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
10558         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
10559         * doc/invoke.texi (M680x0 Options): Document -mxgot.
10560
10561 2008-06-04  Richard Guenther  <rguenther@suse.de>
10562
10563         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
10564         negative or non-representable offsets.
10565
10566 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10567
10568         * config/i386/i386.c (ix86_gen_leave): New.
10569         (ix86_gen_pop1): Likewise.
10570         (ix86_gen_add3): Likewise.
10571         (ix86_gen_sub3): Likewise.
10572         (ix86_gen_sub3_carry): Likewise.
10573         (ix86_gen_one_cmpl2): Likewise.
10574         (ix86_gen_monitor): Likewise.
10575         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
10576         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10577         ix86_gen_one_cmpl2 and ix86_gen_monitor.
10578         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
10579         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
10580         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
10581         (ix86_expand_epilogue): Updated.
10582         (print_operand): Handle integer register operand for 'z'.
10583         (ix86_expand_strlensi_unroll_1): Likewise.
10584         (ix86_expand_strlen): Likewise.
10585         (ix86_expand_builtin): Likewise.
10586         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
10587         mov{q}/mov{l} and add{q}/add{l}.
10588
10589 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10590
10591         * config/i386/i386.md (P): New mode iterator.
10592         (SFmode push_operand splitter): Macroize DImode and SImode pushes
10593         using P mode iterator.
10594         (DFmode push_operand splitter): Ditto.
10595         (XFmode push_operand splitter): Ditto.
10596         (DFmode float_extend SFmode push_operand splitter): Ditto.
10597         (XFmode float_extend SFmode push_operand splitter): Do not generate
10598         SImode pushes for 64bit target.  Macroize Dimode and SImode
10599         pushes using P mode iterator.
10600         (XFmode float_extend DFmode push_operand splitter): Ditto.
10601
10602 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10603
10604         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
10605         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
10606         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
10607         return type to int.
10608         (ix86_call_abi_override): Remove check for call_used_regs.
10609
10610 2008-06-03  Richard Guenther  <rguenther@suse.de>
10611
10612         * tree-ssa-structalias.c (find_func_aliases): Add constraints
10613         for the lhs of calls if the return type contains pointers.
10614
10615 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
10616
10617         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
10618         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
10619         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
10620         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
10621         of cfun and DEFAULT_ABI to deceide abi mode.
10622         (DEFAULT_ABI): New.
10623         (REG_PARM_STACK_SPACE): Removed.
10624         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
10625         (STACK_BOUNDARY): Use default target to deceide stack boundary.
10626         * config/i386/i386-protos.h (ix86_cfun_abi): New.
10627         (ix86_function_abi): Likewise.
10628         (ix86_function_type_abi): Likewise.
10629         (ix86_call_abi_override): Likewise.
10630         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
10631         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
10632         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
10633         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
10634         specific defines.
10635         (X86_64_REGPARM_MAX): New.
10636         (X86_64_SSE_REGPARM_MAX): New.
10637         (X64_REGPARM_MAX): New.
10638         (X64_SSE_REGPARM_MAX): New.
10639         (X86_32_REGPARM_MAX): New.
10640         (X86_32_SSE_REGPARM_MAX): New.
10641         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
10642         (ix86_function_regparm): Handle user calling abi.
10643         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
10644         by DEFAULT_ABI versus SYSV_ABI check.
10645         (ix86_reg_parm_stack_space): New.
10646         (ix86_function_type_abi): New.
10647         (ix86_call_abi_override): New.
10648         (ix86_function_abi): New.
10649         (ix86_cfun_abi): New.
10650         (init_cumulative_args): Call abi specific initialization.
10651         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
10652         (function_arg_64): Extend SSE_REGPARM_MAX check.
10653         (function_arg (): Remove TARGET_64BIT_MS_ABI.
10654         (ix86_pass_by_reference): Likewise.
10655         (ix86_function_value_regno_p): Likewise.
10656         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
10657         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
10658         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
10659         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
10660         (setup_incoming_varargs_64): Adjust regparm for call abi.
10661         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
10662         (ix86_va_start): Likewise.
10663         (ix86_gimplify_va_arg): Likewise.
10664         (ix86_expand_prologue): Likewise.
10665         (output_pic_addr_const): Likewise.
10666         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
10667         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
10668         (x86_output_mi_thunk): Likewise.
10669         (x86_function_profiler): Likewise.
10670         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
10671         (SYSV_ABI, MS_ABI): New constants.
10672         (DEFAULT_ABI): New.
10673         (init_regs): Add prototype of function in regclass.c file.
10674         (OVERRIDE_ABI_FORMAT): New.
10675         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
10676         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
10677         (OUTGOING_REG_PARM_STACK_SPACE): New.
10678         (ix86_reg_parm_stack_space): New prototype.
10679         (CUMULATIVE_ARGS): Add call_abi member.
10680         (machine_function): Add call_abi member.
10681         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
10682         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
10683
10684 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
10685
10686         PR target/34879
10687         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
10688         (avr_builtin_setjmp_frame_value): New function.
10689         * config/avr/avr.md (nonlocal_goto_receiver): Define.
10690         (nonlocal_goto): Define.
10691
10692 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
10693
10694         * config/mips/mips.c (mips_emit_loadgp): Return early if
10695         there is nothing do to, otherwise emit a blockage if
10696         !TARGET_EXPLICIT_RELOCS || crtl->profile.
10697         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
10698
10699 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10700
10701         * configure.ac: Drop unneeded backslash ending up in config.in.
10702         * acinclude.m4: Likewise.
10703         * config.in: Regenerate.
10704
10705 2008-05-26  Jan Hubicka  <jh@suse.cz>
10706
10707         * predict.c (maybe_hot_frequency_p): Break out of...
10708         (maybe_hot_bb_p): ... here.
10709         (maybe_hot_edge_p): New.
10710         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
10711         * basic-block.h (maybe_hot_edge_p): Declare.
10712
10713 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
10714
10715         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
10716         (*cmpfp_<mode>_cc): Ditto.
10717         (*fp_jcc_8<mode>_387): Ditto.
10718         (*fop_<MODEF:mode>_2_i387): Ditto.
10719         (*fop_<MODEF:mode>_3_i387): Ditto.
10720         (*fop_xf_2_i387): Ditto.
10721         (*fop_xf_3_i387): Ditto.
10722
10723 2008-06-02  Tomas Bily  <tbily@suse.cz>
10724
10725         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
10726
10727 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
10728
10729         * config/mips/mips.c (mips_valid_offset_p): New function.
10730         (mips_valid_lo_sum_p): Likewise.
10731         (mips_classify_address): Use them.
10732         (mips_force_address): New function.
10733         (mips_legitimize_address): Use it.
10734         * config/mips/mips.md (MOVE128): New mode iterator.
10735         (movtf): Require TARGET_64BIT.  Remove empty strings.
10736         (*movtf_internal): Rename to...
10737         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
10738         of "R" and use {,fp}{load,store} attributes instead of "multi".
10739         Use a separate define_split.
10740         (*movtf_mips16): New pattern.
10741
10742 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
10743
10744         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
10745         * config/mips/mips.c (mips_expand_before_return): New function.
10746         (mips_expand_epilogue): Call it.
10747         * config/mips/mips.md (return): Turn into a define_expand.
10748         (*return): New insn.
10749
10750 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
10751
10752         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
10753         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
10754         functions.  Do not emit uses and clobbers of CONCATs; individually
10755         use and clobber their operands.
10756         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
10757         gen_clobber, emit_use and gen_use.
10758         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10759         (expand_builtin_return): Likewise.
10760         * cfgbuild.c (count_basic_blocks): Likewise.
10761         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
10762         * explow.c (emit_stack_restore): Likewise.
10763         * expmed.c (extract_bit_field_1): Likewise.
10764         * expr.c (convert_move, emit_move_complex_parts): Likewise.
10765         (emit_move_multi_word, store_constructor): Likewise.
10766         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
10767         (thread_prologue_and_epilogue_insns): Likewise.
10768         * lower-subreg.c (resolve_simple_move): Likewise.
10769         * optabs.c (widen_operand, expand_binop): Likewise.
10770         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
10771         * reload.c (find_reloads): Likewise.
10772         * reload1.c (eliminate_regs_in_insn): Likewise.
10773         * stmt.c (expand_nl_goto_receiver): Likewise.
10774         * config/alpha/alpha.md (builtin_longjmp): Likewise.
10775         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
10776         * config/arm/arm.c (arm_load_pic_register): Likewise.
10777         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
10778         * config/arm/arm.md (untyped_return): Likewise.
10779         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
10780         * config/avr/avr.c (expand_prologue): Likewise.
10781         * config/bfin/bfin.c (do_unlink): Likewise.
10782         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
10783         * config/cris/cris.c (cris_expand_prologue): Likewise.
10784         * config/darwin.c (machopic_indirect_data_reference): Likewise.
10785         (machopic_legitimize_pic_address): Likewise.
10786         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
10787         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
10788         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
10789         (ix86_expand_convert_uns_didf_sse): Likewise.
10790         (ix86_expand_vector_init_general): Likewise.
10791         * config/ia64/ia64.md (eh_epilogue): Likewise.
10792         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
10793         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
10794         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
10795         (config/iq2000/iq2000.c): Likewise.
10796         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10797         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10798         (builtin_longjmp): Likewise.
10799         * config/mn10300/mn10300.md (call, call_value): Likewise.
10800         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
10801         * config/pdp11/pdp11.md (abshi2): Likewise.
10802         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10803         * config/s390/s390.c (s390_emit_prologue): Likewise.
10804         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
10805         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
10806         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
10807         * config/sh/sh.c (prepare_move_operands): Likewise.
10808         (output_stack_adjust, sh_expand_epilogue): Likewise.
10809         (sh_set_return_address, sh_expand_t_scc): Likewise.
10810         * config/sparc/sparc.c (load_pic_register): Likewise.
10811         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
10812         * config/spu/spu.c (spu_expand_epilogue): Likewise.
10813         * config/v850/v850.c (expand_epilogue): Likewise.
10814
10815 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
10816
10817         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
10818         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
10819         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
10820         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
10821         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
10822         stack pointer register.
10823         (output_movhi): Remove code for interrupt specific writing to the
10824         stack pointer register.
10825
10826 2008-05-31  Richard Guenther  <rguenther@suse.de>
10827
10828         PR tree-optimization/34244
10829         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
10830         (tree_expr_nonzero_warnv_p): Likewise.
10831         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
10832         ssa_name_nonnegative_p.
10833         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
10834         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
10835         not tree_expr_nonzero_warnv_p.
10836
10837         PR tree-optimization/36262
10838         Revert
10839         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
10840
10841         PR tree-optimization/34244
10842         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
10843         (record_numbers_of_iterations): New function.
10844         (execute_vrp): Cache the numbers of iterations of loops.
10845         * tree-scalar-evolution.c (scev_reset_except_niters):
10846         New function.
10847         (scev_reset): Use scev_reset_except_niters.
10848         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
10849
10850 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
10851
10852         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10853         __WORKAROUND_RETS when appropriate.
10854
10855 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
10856
10857         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
10858         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
10859         mode iterator.
10860         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
10861         *fop_df_comm_sse insn patterns using MODEF mode iterator.
10862         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
10863         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
10864         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
10865         *fop_df_1_mixed insn patterns using MODEF mode iterator.
10866         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
10867         *fop_df_1_sse insn patterns using MODEF mode iterator.
10868         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
10869         *fop_df_1_i387 insn patterns using MODEF mode iterator.
10870         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
10871         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
10872         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
10873         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
10874         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
10875         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
10876         (*fop_xf_4_i387): Use <MODE> for mode attribute.
10877         (*fop_xf_5_i387): Ditto.
10878         (*fop_xf_6_i387): Ditto.
10879
10880 2008-05-30  Richard Guenther  <rguenther@suse.de>
10881
10882         * builtins.c (build_string_literal): Avoid generating
10883         a non-gimple_val result.
10884
10885 2008-05-30  DJ Delorie  <dj@redhat.com>
10886
10887         * exec-tool.in: Use an environment variable (private) instead of a
10888         file (shared) as a semaphore, so as to not break parallel builds.
10889
10890 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
10891
10892         * optabs.c (maybe_encapsulate_block): Remove.
10893         (emit_libcall_block): Adjust accordingly.
10894         * optabs.h (maybe_encapsulate_block): Remove prototype.
10895
10896         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
10897         Don't use maybe_encapsulate_block.
10898
10899 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
10900
10901         * config/rs6000/rs6000.c (rs6000_legitimize_address,
10902         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
10903         rtx is a SYMBOL_REF before calling get_pool_constant.
10904
10905 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
10906
10907         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
10908
10909 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
10910
10911         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
10912         rather than OS names to choose INO_T_EQ definition.
10913         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
10914         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
10915
10916 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
10917
10918         PR target/36348
10919         * config/darwin-f.c: New.
10920         * config/t-darwin: Added rule to build darwin-f.o.
10921         * config.gcc: Defined new variable, fortran_target_objs.
10922         (*-*-darwin*): Set fortran_target_objs.
10923         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
10924         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
10925         * configure: Regenerated.
10926
10927 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10928
10929         PR target/35771
10930         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
10931         canonical type if needed.
10932
10933 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
10934
10935         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
10936
10937 2008-05-29  Richard Guenther  <rguenther@suse.de>
10938
10939         PR tree-optimization/36343
10940         PR tree-optimization/36346
10941         PR tree-optimization/36347
10942         * tree-flow.h (clobber_what_p_points_to): Declare.
10943         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
10944         pointed-to variable is dereferenced is irrelevant to whether
10945         the pointer can access the pointed-to variable.
10946         (clobber_what_p_points_to): New function.
10947         * tree-ssa-alias.c (set_initial_properties): Use it.
10948         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
10949         call clobber check for NMTs.
10950
10951 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
10952
10953         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
10954         for printing gcov_type.
10955
10956 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
10957
10958         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
10959         and the eh region information.
10960         * value-prof.c (gimple_move_stmt_histograms): New function.
10961         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
10962
10963 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
10964
10965         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
10966
10967 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
10968
10969         * value-prof.c (tree_ic_transform): Print counts.
10970         * tree-profile.c (tree_gen_ic_func_profiler):
10971         Clear __gcov_indreict_call_callee variable to avoid misattribution
10972         of the profile.
10973
10974 2008-05-28  Rafael Espindola  <espindola@google.com>
10975
10976         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
10977         invalid sharing.
10978
10979 2008-05-28  Richard Guenther  <rguenther@suse.de>
10980
10981         PR tree-optimization/36339
10982         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
10983         and clobbering code out of the loop.
10984
10985 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
10986
10987         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
10988         letters defined.
10989
10990         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
10991         s390_contiguous_bitmask_p, s390_symref_operand_p,
10992         s390_check_symref_alignment, s390_reload_larl_operand,
10993         s390_reload_symref_address): New functions.
10994         (s390_branch_condition_mnemonic): Support compare and branch
10995         instructions.
10996         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
10997         and 'W' constraints.
10998         (s390_secondary_reload): Add secondary reloads for unaligned
10999         symbol refs or symbol refs to floating point or QI/TI mode
11000         integer values.
11001         (legitimate_address_p): Accept symbol references as addresses.
11002         (s390_expand_insv): Use rotate and insert selected bits
11003         instruction for insv when building for z10.
11004         (print_operand_address): Handle symbol ref addresses.
11005         (print_operand): Output modifier 'c' added for signed byte values.
11006         (s390_encode_section_info): Mark symbol refs with
11007         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11008
11009         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11010         (length attribute): RRF, RRR have 4 byte length.
11011         (FPALL, INTALL): New mode iterators added.
11012         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11013         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11014         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11015         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11016         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11017         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11018         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11019         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11020         instructions.
11021         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11022         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11023         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11024         reload<INTALL:mode><P:mode>_toreg_z10,
11025         reload<FPALL:mode><P:mode>_tomem_z10,
11026         reload<FPALL:mode><P:mode>_toreg_z10,
11027         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11028         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11029         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11030         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11031         definition.
11032         (movmem, clrmem, cmpmem): New splitters added.
11033
11034         * config/s390/predicates.md (larl_operand): Use
11035         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11036         SYMBOL_REF_ALIGN1_P.
11037         (s390_signed_integer_comparison,
11038         s390_unsigned_integer_comparison): New predicates.
11039
11040         * config/s390/s390-protos.h (s390_check_symref_alignment,
11041         s390_contiguous_bitmask_p, s390_reload_larl_operand,
11042         s390_reload_symref_address,
11043         s390_compare_and_branch_condition_mask): Prototypes added.
11044
11045         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11046         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11047         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11048
11049 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11050
11051         * config/s390/s390.c (z10_cost): New cost function for z10.
11052         (s390_handle_arch_option, override_options): Support -march=z10 switch.
11053         (s390_issue_rate): Adjust issue rate for z10.
11054         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11055         (processor_flags): Add PF_Z10.
11056         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11057         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11058         * gcc/config.gcc: Add z10.
11059
11060 2008-05-28  Richard Guenther  <rguenther@suse.de>
11061
11062         PR tree-optimization/36291
11063         * tree-flow. h (struct gimple_df): Remove var_anns member.
11064         * tree-flow-inline.h (gimple_var_anns): Remove.
11065         (var_ann): Simplify.
11066         * tree-dfa.c (create_var_ann): Simplify.
11067         (remove_referenced_var): Clear alias info from var_anns of globals.
11068         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
11069         (delete_tree_ssa): Clear alias info from var_anns of globals.
11070         Do not free var_anns.
11071         (var_ann_eq): Remove.
11072         (var_ann_hash): Likewise.
11073
11074 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
11075
11076         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
11077         and loongson2f entries.
11078         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
11079         * config/mips/mips.h (processor_type): Add Loongson-2E
11080         and Loongson-2F entries.
11081         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
11082         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
11083         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
11084         * doc/invoke.texi (MIPS Options): Document loongson2e
11085         and loongson2f processor names.
11086
11087 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11088
11089         PR target/35767
11090         PR target/35771
11091         * config/i386/i386.c (ix86_function_arg_boundary): Use
11092         alignment of canonical type.
11093         (ix86_expand_vector_move): Check unaligned memory access for
11094         all SSE modes.
11095
11096 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11097
11098         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
11099         Moved to the front of file.
11100
11101 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
11102             H.J. Lu  <hongjiu.lu@intel.com>
11103
11104         * dwarf2out.c (current_fde): New.
11105         (add_cfi): Use it.
11106         (lookup_cfa:): Likewise.
11107         (dwarf2out_end_epilogue): Likewise.
11108         (dwarf2out_note_section_used): Likewise.
11109
11110 2008-05-27  Michael Matz  <matz@suse.de>
11111
11112         PR c++/27975
11113         * c.opt (Wenum-compare): New warning option.
11114         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
11115
11116 2008-05-27  Michael Matz  <matz@suse.de>
11117
11118         PR middle-end/36326
11119         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
11120         non-BLKmode types.
11121         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
11122         into memory as tail calls.
11123
11124 2008-05-27  Richard Guenther  <rguenther@suse.de>
11125
11126         PR tree-optimization/36339
11127         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
11128         pointers cause all addressable variables to be call clobbered.
11129
11130 2008-05-27  Richard Guenther  <rguenther@suse.de>
11131
11132         PR tree-optimization/36245
11133         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
11134
11135 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11136
11137         * config/s390/s390.md: Replace all occurences of the 'm'
11138         constraint with 'RT'.
11139
11140 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11141
11142         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
11143         definitions added.
11144         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
11145         "*movdi_64".
11146         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
11147         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
11148         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
11149
11150 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11151
11152         * reload.c: (find_reloads): Skip alternatives according to the
11153         "enabled" attribute. Constify the constraint variable.
11154         * recog.c (get_attr_enabled): Add default implementation.
11155         (extract_insn): Set the alternative_enabled_p array
11156         in the recog_data struct.
11157         (preprocess_constraints, constrain_operands): Skip
11158         alternatives according to the "enabled" attribute
11159         * recog.h (struct recog_data): New field alternative_enabled_p.
11160         (skip_alternative): New inline function.
11161         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
11162         (record_reg_classes): Skip alternative according to the
11163         "enabled" attribute.
11164
11165         * doc/md.texi: Add documention for the "enabled" attribute.
11166
11167 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11168
11169         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11170         * postreload.c (reload_cse_simplify_operands): Replace 'm'
11171         constraint with TARGET_MEM_CONSTRAINT.
11172         * recog.c (asm_operand_ok, preprocess_constraints,
11173         constrain_operands): Likewise.
11174         * regclass.c (record_reg_classes): Likewise.
11175         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11176         * reload1.c (maybe_fix_stack_asms): Likewise.
11177         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11178         * recog.h: Adjust comment.
11179         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
11180         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
11181         * doc/md.texi: Add a note to description of 'm' constraint.
11182         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
11183
11184 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11185
11186         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
11187         that the bitfield is of integral type before testing its precision.
11188
11189 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11190             Sa Liu  <saliu@de.ibm.com>
11191
11192         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
11193         __modti3, __udivti3, __umodti3 and __udivmodti4.
11194         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
11195         that implement TImode mul and div functions.
11196         * config/spu/multi3.c: New. Implement __multi3.
11197         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
11198         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
11199         functions on SPU.
11200
11201 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
11202
11203         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
11204         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
11205         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
11206         tls_sysv_suffix): New mode and mode attribute iterators.
11207         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
11208         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
11209         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
11210         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
11211         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
11212         iterators.
11213
11214 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11215
11216         PR tree-optimization/36329
11217         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
11218         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
11219         * cgraphbuild.c (initialize_inline_failed): Use the latter
11220         macro in lieu of the former.
11221         * ipa-inline.c (cgraph_mark_inline): Likewise.
11222         (cgraph_decide_inlining_of_small_function): Likewise.
11223         (cgraph_decide_inlining): Likewise.
11224         (cgraph_decide_inlining_incrementally): Likewise.
11225
11226 2008-05-26  Tristan Gingold  <gingold@adacore.com>
11227             Anatoly Sokolov  <aesok@post.ru>
11228
11229         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
11230         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
11231         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
11232         optimization for 'avr6' architecture.
11233
11234 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
11235
11236         PR target/34932
11237         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
11238
11239 2008-05-26  Richard Guenther  <rguenther@suse.de>
11240
11241         * tree-ssa-sccvn.c (expr_has_constants): Declare.
11242         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
11243
11244 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11245
11246         PR middle-end/36253
11247         * caller-save.c (insert_restore): Verify alignment of spill space.
11248         (insert_save): Likewise.
11249         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
11250         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
11251         (STACK_SLOT_ALIGNMENT): Likewise.
11252         * function.c (LOCAL_ALIGNMENT): Removed.
11253         (get_stack_local_alignment): New.
11254         (assign_stack_local): Use it.  Set alignment on stack slot.
11255         (assign_stack_temp_for_type): Use get_stack_local_alignment.
11256         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
11257         (STACK_SLOT_ALIGNMENT): New.
11258         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
11259         stack slot in XFmode.
11260
11261         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
11262
11263 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
11264
11265         PR/36321
11266         * config/i386/i386.md (allocate_stack_worker_64): Make sure
11267         argument operand in rax isn't removed.
11268
11269 2008-05-26  Richard Guenther  <rguenther@suse.de>
11270
11271         PR middle-end/36300
11272         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
11273         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
11274
11275 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11276
11277         PR bootstrap/36331
11278         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
11279
11280 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
11281
11282         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
11283         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
11284
11285 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11286
11287         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
11288         build a trampoline if we don't want one.
11289         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
11290         return zero for nested functions if we don't want a trampoline.
11291
11292 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11293
11294         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
11295
11296 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
11297
11298         PR fortran/18428
11299         * c.opt: Removed undocumented option '-lang-fortran'.
11300         * c-common.h: Removed global variable 'lang_fortran'.
11301         * c-opts.c (c_common_handle_option): Removed code to handle
11302         option '-lang-fortran'. Updated includes.
11303         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
11304         definition of '__GFORTRAN__'.
11305         (define__GNUC__): Reimplemented to use BASEVER and
11306         cpp_define_formatted.
11307         (builtin_define_with_value_n): Removed.
11308         * c-incpath.h: Renamed to ...
11309         * incpath.h: ... this.
11310         * c-incpath.c: Renamed to ...
11311         * incpath.c: ... this. Updated includes.
11312         * fix-header.c: Updated includes.
11313         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
11314         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
11315         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
11316
11317 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11318
11319         * tree.h: Update the table of flags used on tree nodes.
11320         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
11321         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
11322         (FORCED_LABEL): Add access check.
11323         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
11324         (ASM_INPUT_P): Likewise.
11325         (ASM_VOLATILE_P): Likewise.
11326         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
11327         (OMP_SECTION_LAST): Access private_flag directly.
11328         (OMP_RETURN_NOWAIT): Likewise.
11329         (OMP_PARALLEL_COMBINED): Likewise.
11330         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
11331         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
11332         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
11333         deprecated_flag directly.
11334
11335 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11336
11337         * final.c (frame_pointer_needed): Removed.
11338         * flags.h (frame_pointer_needed): Likewise.
11339
11340         * function.h (rtl_data): Add frame_pointer_needed.
11341         (frame_pointer_needed): New.
11342
11343 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
11344
11345         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
11346
11347 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
11348
11349         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
11350         SRC is a REG.
11351
11352 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
11353
11354         * c-common.c (strip_array_types): Move function to..
11355         * tree.c: ..here.
11356         (get_inner_array_type): Delete.
11357         * c-common.h (strip_array_types): Move declaration to..
11358         * tree.h: ..here.
11359         (get_inner_array_type): Delete.
11360         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
11361         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
11362         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11363         * config/pa/pa.c (emit_move_sequence): Likewise.
11364
11365 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11366
11367         * config/i386/i386.md (*sse_prologue_save_insn): Set length
11368         attribute to 34.
11369
11370 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
11371
11372         * function.c: Include target hook for nonlocal_goto frame value.
11373
11374 2008-05-24  Richard Guenther  <rguenther@suse.de>
11375
11376         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
11377         variable can be only accessed through a pointer or a union.
11378
11379 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11380
11381         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
11382         * doc/extend.texi: Likewise.
11383
11384 2008-05-23  DJ Delorie  <dj@redhat.com>
11385
11386         * config/m32c/jump.md (untyped_call): Add.
11387
11388         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
11389         for A24 to PSImode.
11390         (m32c_address_cost): Detail costs for indirect offsets.
11391
11392 2008-05-23  Rafael Espindola  <espindola@google.com>
11393
11394         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
11395         if a node is a SUBREG.
11396         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
11397         is a SUBREG.
11398
11399 2008-05-23  Paul Brook  <paul@codesourcery.com>
11400             Carlos O'Donell  <carlos@codesourcery.com>
11401
11402         * doc/extend.texi: Clarify use of __attribute__((naked)).
11403         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11404         * target.h (gcc_target): Add allocate_stack_slots_for_args.
11405         * function.c (use_register_for_decl): Use
11406         targetm.calls.allocate_stack_slots_for_args.
11407         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11408         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
11409         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
11410
11411 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
11412
11413         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
11414
11415 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
11416
11417         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
11418         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
11419         is only rounded once.
11420
11421 2008-05-23  Richard Guenther  <rguenther@suse.de>
11422
11423         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
11424
11425 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
11426             Jakub Jelinek  <jakub@redhat.com>
11427
11428         PR target/36079
11429         * configure.ac: Handle --enable-cld.
11430         * configure: Regenerated.
11431         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
11432         * config/i386/i386.h (struct machine_function): Add needs_cld field.
11433         (ix86_current_function_needs_cld): New define.
11434         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
11435         (cld): New isns pattern.
11436         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
11437         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
11438         * config/i386/i386.opt (mcld): New option.
11439         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
11440         TARGET_CLD and ix86_current_function_needs_cld.
11441         (override_options): Use -mcld by default for 32-bit code if
11442         USE_IX86_CLD.
11443
11444         * doc/install.texi (Options specification): Document --enable-cld.
11445         * doc/invoke.texi (Machine Dependent Options)
11446         [i386 and x86-64 Options]: Add -mcld option.
11447         (Intel 386 and AMD x86-64 Options): Document -mcld option.
11448
11449 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
11450         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
11451         (return_in_memory_64): Likewise.
11452         (return_in_memory_ms_64): Likewise.
11453
11454 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11455
11456         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
11457         * builtins.c (fold_builtin_fpclassify): New.
11458         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
11459         * builtins.def (BUILT_IN_FPCLASSIFY): New.
11460         * c-common.c (handle_type_generic_attribute): Adjust to accept
11461         fixed arguments before an elipsis.
11462         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
11463         * doc/extend.texi: Document __builtin_fpclassify.
11464
11465 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
11466
11467         * omp-low.c (gate_expand_omp_ssa): Remove.
11468         (pass_expand_omp_ssa): Remove.
11469         (gate_expand_omp): Do not check for flag_openmp_ssa.
11470         * common.opt (-fopenmp-ssa): Remove.
11471         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
11472
11473 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11474
11475         * config/sh/sh.opt (mfixed-range): New option.
11476         * config/sh/sh-protos.h (sh_fix_range): Declare.
11477         * config/sh/sh.c (sh_fix_range): New function.
11478         * config/sh/sh.h (sh_fixed_range_str): Declare.
11479         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
11480         is not empty.
11481         * doc/invoke.texi (SH Options): Document -mfixed-range.
11482
11483 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
11484
11485         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
11486         it before the redeclaration.
11487
11488 2008-05-22  Anatoly Sokolov <aesok@post.ru>
11489
11490         * config/avr/avr.c (get_sequence_length): Add new function.
11491         (expand_prologue, expand_epilogue): Remove duplicate code.
11492
11493 2008-05-22  Rafael Espindola  <espindola@google.com>
11494
11495         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
11496         sharing.
11497
11498 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11499
11500         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
11501         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
11502
11503         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
11504         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
11505         (vect_update_misalignment_for_peel): Likewise.
11506         (vector_alignment_reachable_p): Likewise.
11507         * tree-vect-transform.c (vectorizable_load): Likewise.
11508         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
11509         (get_vectype_for_scalar_type): Pass mode of scalar_type
11510         to UNITS_PER_SIMD_WORD.
11511
11512         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
11513         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11514         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11515         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11516         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11517
11518 2008-05-22  Ira Rosen  <irar@il.ibm.com>
11519
11520         PR tree-optimization/36293
11521         * tree-vect-transform.c (vect_transform_strided_load): Don't check
11522         if the first load must be skipped because of a gap.
11523
11524 2008-05-22  Richard Guenther  <rguenther@suse.de>
11525
11526         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
11527         more cases of offset disambiguation that is possible if
11528         strict-aliasing rules apply.
11529         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
11530         for basic offset and type-based disambiguation.
11531
11532 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11533
11534         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
11535         ix86_expand_vector_set on V16QImode for SSE4.1.
11536
11537 2008-05-21  Tom Tromey  <tromey@redhat.com>
11538
11539         * c.opt (Wimport): Mark as undocumented.
11540         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
11541         -Wno-import.
11542         (Warning Options): Likewise.
11543         * doc/cppopts.texi: Don't mention -Wimport.
11544
11545 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
11546
11547         PR tree-optimization/36287
11548         PR tree-optimization/36286
11549         * lambda-code.c (build_access_matrix): Do not use the loop->num
11550         for computing the number of induction variables: use the loop depth
11551         instead.
11552
11553 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
11554
11555         PR/36280
11556         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
11557         option -f(no-)leading-underscore.
11558
11559 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11560
11561         * config/i386/i386.c (ix86_expand_vector_init_general): Use
11562         GET_MODE_NUNITS (mode).
11563
11564 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
11565
11566         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
11567         (-mmulhw): Add 464 to description.
11568         (-mdlmzb): Likewise.
11569         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
11570         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
11571         464fp entries.
11572         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
11573         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
11574         * config/rs6000/rs6000.md: Update comments for 464.
11575
11576 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
11577
11578         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
11579
11580 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11581
11582         * config/i386/sse.md (vec_extractv4sf): Removed.
11583         (vec_extractv2df): Likewise.
11584         (vec_extractv2di): Likewise.
11585         (vec_extractv4si): Likewise.
11586         (vec_extractv8hi): Likewise.
11587         (vec_extractv16qi): Likewise.
11588         (vec_extract<mode>): New.
11589
11590 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11591
11592         * config/i386/sse.md (vec_setv4sf): Removed.
11593         (vec_setv2df): Likewise.
11594         (vec_setv2di): Likewise.
11595         (vec_setv4si): Likewise.
11596         (vec_setv8hi): Likewise.
11597         (vec_setv16qi): Likewise.
11598         (vec_set<mode>): New.
11599
11600 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11601
11602         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
11603         goto for vec_concat and vec_interleave.
11604
11605 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11606
11607         * config/i386/sse.md (vec_initv4sf): Removed.
11608         (vec_initv2df): Likewise.
11609         (vec_initv2di): Likewise.
11610         (vec_initv4si): Likewise.
11611         (vec_initv8hi): Likewise.
11612         (vec_initv16qi): Likewise.
11613         (vec_init<mode>): New.
11614
11615 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
11616
11617         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
11618
11619 2008-05-21  Tom Tromey  <tromey@redhat.com>
11620
11621         * ggc-zone.c (lookup_page_table_if_allocated): New function.
11622         (zone_find_object_offset): Likewise.
11623         (gt_ggc_m_S): Likewise.
11624         (highest_bit): Likewise.
11625         * ggc-page.c (gt_ggc_m_S): New function.
11626         * stringpool.c (string_stack): Remove.
11627         (init_stringpool): Update.
11628         (ggc_alloc_string): Use ggc_alloc.
11629         (maybe_delete_ident): New function.
11630         (ggc_purge_stringpool): Likewise.
11631         (gt_ggc_m_S): Remove.
11632         * ggc-common.c (ggc_protect_identifiers): New global.
11633         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
11634         ggc_protect_identifiers.
11635         * ggc.h (ggc_protect_identifiers): Declare.
11636         (gt_ggc_m_S): Update.
11637         (ggc_purge_stringpool): Declare.
11638         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
11639         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
11640         special case.
11641         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
11642
11643 2008-05-21  David S. Miller  <davem@davemloft.net>
11644
11645         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
11646         tmake_file.
11647
11648 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
11649
11650         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
11651         once finished.
11652
11653 2008-05-20  David Daney  <ddaney@avtrex.com>
11654
11655         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
11656         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
11657         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11658         UNSPEC_UPDATE_GOT_VERSION): Renumber.
11659         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
11660         (atomic_hiqi_op): New define_code_iterator.
11661         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
11662         mips_expand_compare_and_swap_12.
11663         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
11664         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
11665         (sync_<optab><mode>, sync_old_<optab><mode>,
11666         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11667         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
11668         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
11669         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
11670         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
11671         (test_and_set_12): New insn.
11672         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
11673         sync_new_<optab><mode>, sync_old_nand<mode>,
11674         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
11675         clobber to operand 0 for SI and DI mode insns.
11676         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
11677         mips_gen_fn_4): New typedefs.
11678         (mips_gen_fn_ptrs): Define new union type.
11679         (mips_expand_compare_and_swap_12): Remove declaration.
11680         (mips_expand_atomic_qihi): Declare function.
11681         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
11682         (mips_expand_atomic_qihi): ... this.  Use new generator function
11683         parameter.
11684         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
11685         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
11686         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
11687         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
11688         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
11689         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
11690         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
11691         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
11692         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
11693         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
11694         New macros.
11695
11696 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
11697
11698         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
11699         the missing break.
11700
11701 2008-05-20  Anatoly Sokolov <aesok@post.ru>
11702
11703         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
11704         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
11705         (avr_attribute_table): Add 'OS_main' function attribute.
11706         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
11707         functions with 'OS_main' attribute.
11708
11709 2008-05-20  Richard Guenther  <rguenther@suse.de>
11710
11711         PR tree-optimization/35204
11712         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
11713         helper, split out from ...
11714         (DFS): ... here.  Make the DFS walk non-recursive.
11715
11716 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
11717             Jan Sjodin  <jan.sjodin@amd.com>
11718
11719         PR tree-optimization/36181
11720         * tree-parloops.c (loop_has_vector_phi_nodes): New.
11721         (parallelize_loops): Don't parallelize when the loop has vector
11722         phi nodes.
11723
11724 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
11725             Sebastian Pop  <sebastian.pop@amd.com>
11726
11727         * tree-loop-linear.c (gather_interchange_stats): Look in the access
11728         matrix, and never look at the tree representation of the memory
11729         accesses.
11730         (linear_transform_loops): Computes parameters and access matrices.
11731         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
11732         when fails.
11733         (access_matrix_get_index_for_parameter): New.
11734         * tree-data-ref.h (struct access_matrix): New.
11735         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11736         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11737         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
11738         am_vector_index_for_loop): New.
11739         (struct data_reference): Add field access_matrix.
11740         (DR_ACCESS_MATRIX): New.
11741         (compute_data_dependences_for_loop): Update declaration.
11742         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
11743         * lambda.h (lambda_vector_vec_p): Declared.
11744         * lambda-code.c: Depend on pointer-set.h.
11745         (lambda_collect_parameters_from_af, lambda_collect_parameters,
11746         av_for_af_base, av_for_af, build_access_matrix,
11747         lambda_compute_access_matrices): New.
11748         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
11749
11750 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
11751
11752         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
11753         $SOURCEDIR/include.
11754
11755 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
11756             Sebastian Pop  <sebastian.pop@amd.com>
11757
11758         PR tree-optimization/36206
11759         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
11760         FOLD_CONVERSIONS.
11761         (instantiate_scev_1): Rename flags to fold_conversions.
11762         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
11763         outeside instantiation_loop.
11764         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
11765         (evolution_function_is_affine_or_constant_p): Removed.
11766         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
11767         instantiate_scev.
11768         (analyze_siv_subscript): Pass in the loop nest number.
11769         Call evolution_function_is_affine_in_loop instead of
11770         evolution_function_is_affine_p.
11771         (analyze_overlapping_iterations): Pass in the loop nest number.
11772
11773 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
11774             Sebastian Pop  <sebastian.pop@amd.com>
11775
11776         PR tree-optimization/36206
11777         * tree-chrec.h (chrec_fold_op): New.
11778         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
11779         and other trees.
11780
11781 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
11782
11783         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
11784         (DIRS_EQ): New.
11785         (remove_duplicates): Do not set inode on non-inode systems.
11786         Use DIRS_EQ.
11787
11788 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
11789
11790         * config.gcc (tm_file): Update comments about relative pathnames.
11791
11792 2008-05-20  Richard Guenther  <rguenther@suse.de>
11793
11794         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
11795         * tree-ssa-sccvn.c (process_scc): Likewise.
11796         * tree-ssa-sink.c (execute_sink_code): Likewise.
11797         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
11798         * tree-vrp.c (process_assert_insertions): Likewise.
11799         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
11800         (perform_tree_ssa_dce): Likewise.
11801         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
11802         (dump_dominator_optimization_stats): Likewise.
11803         * tree-vectorizer.c (vectorize_loops): Likewise.
11804
11805 2008-05-20  Richard Guenther  <rguenther@suse.de>
11806
11807         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
11808
11809 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
11810
11811         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
11812         (ix86_i386elf_return_in_memory): Likewise.
11813         (ix86_i386interix_return_in_memory): Likewise.
11814         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
11815         (SUBTARGET_RETURN_IN_MEMORY): New.
11816         * config/i386/i386elf.h: Likewise.
11817         * config/i386/ptx4-i.h: Likewise.
11818         * config/i386/sol2-10.h: Likewise.
11819         * config/i386/sysv4.h: Likewise.
11820         * config/i386/vx-common.h: Likewise.
11821         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
11822         * config/i386/i386.c (ix86_return_in_memory): Made static and
11823         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
11824         (ix86_i386elf_return_in_memory): Removed.
11825         (ix86_i386interix_return_in_memory): Removed.
11826         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
11827         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
11828
11829 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
11830
11831         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
11832
11833 2008-05-19  Xinliang David Li  <davidxl@google.com>
11834
11835         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
11836         * opts.c: Ditto.
11837         * common.opt: Ditto.
11838         * doc/invoke.texi: Ditto.
11839
11840 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11841
11842         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
11843         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
11844
11845 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11846
11847         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
11848         sizes of operand array from 8/4 to 4/2.
11849         (ix86_expand_vector_init_general): Change size of operand array
11850         from 32 to 16.  Remove op0, op1 and half_mode.
11851
11852 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11853
11854         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
11855         (ix86_expand_vector_init_interleave): Likewise.
11856         (ix86_expand_vector_init_general): Use them.  Assert
11857         word_mode == SImode when n_words == 4.
11858
11859 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
11860
11861         * config/i386/i386.c (ix86_secondary_reload): New static function.
11862         (TARGET_SECONDARY_RELOAD): New define.
11863         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
11864         * config/i386/i386.md (reload_outqi): Remove.
11865
11866 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11867
11868         PR middle-end/35509
11869         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
11870         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
11871         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
11872         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
11873         (fold_builtin_1): Likewise.
11874         * builtins.def (BUILT_IN_ISINF_SIGN): New.
11875         c-common.c (check_builtin_function_arguments): Handle
11876         BUILT_IN_ISINF_SIGN.
11877         * doc/extend.texi: Document __builtin_isinf_sign.
11878         * fold-const.c (operand_equal_p): Handle COND_EXPR.
11879
11880 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
11881
11882         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
11883         EH cleanup at the end of the pass, search for those that have been
11884         turned into forwarder blocks and do the cleanup on their successor.
11885
11886 2008-05-18  Richard Guenther  <rguenther@suse.de>
11887
11888         * tree-cfg.c (verify_gimple_expr): Allow conversions from
11889         pointers to sizetype and vice versa.
11890
11891 2008-05-18 Xinliang David Li   <davidxl@google.com>
11892
11893         * gcc/tree-ssa-dce.c: Coding style fix.
11894         (check_pow): Documentation comment.
11895         (check_log): Documenation comment. Coding style fix.
11896         (is_unnecessary_except_errno_call): Ditto.
11897         (gen_conditions_for_pow): Ditto.
11898         (gen_conditions_for_log): Ditto.
11899         (gen_shrink_wrap_conditions): Ditto.
11900         (shrink_wrap_one_built_in_calls): Ditto.
11901         * gcc/doc/invoke.texi: Better documentation string.
11902         * ChangeLog: Fix wrong change log entries from
11903         May 17 checkin on function call DCE.
11904
11905 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
11906
11907         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
11908
11909 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
11910
11911         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
11912         * df-problems.c (simulation routines): Fixed block comment to
11913         properly say how to add forwards scanning functions.
11914
11915 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
11916
11917         * tree-inline.c (setup_one_parameter): Remove dead code.
11918
11919 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
11920
11921         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
11922         a BIT_AND_EXPR only for an INTEGER_TYPE.
11923
11924 2008-05-17 Xinliang David Li   <davidxl@google.com>
11925
11926         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
11927         (check_pow, check_log, is_unnecessary_except_errno_call): New
11928         functions to check for eliminating math functions that are pure
11929         except for setting errno.
11930         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
11931         general condition expressions for shrink-wrapping pow/log calls.
11932         (gen_shrink_wrap_conditions): Ditto.
11933         (shrink_wrap_one_built_in_call): Ditto.
11934         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
11935         (mark_operand_necessary): If debugging, output if OP is necessary.
11936         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
11937         unnecessary.
11938         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
11939         opt level >= 2.
11940         * gcc/common.opt: New user flag -ftree-builtin-dce.
11941         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
11942
11943 2008-05-16  David S. Miller  <davem@davemloft.net>
11944
11945         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
11946         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
11947
11948 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
11949
11950         PR target/36246
11951         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
11952
11953 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
11954
11955         * ifcvt.c (dead_or_predicable): Rename
11956         df_simulate_one_insn_backwards to df_simulate_one_insn.
11957         * recog.c (peephole2_optimize): Ditto.
11958         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
11959         Ditto.
11960         * df.h: Rename df_simulate_one_insn_backwards to
11961         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
11962         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
11963         scanning of defs and uses.
11964         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
11965         (df_simulate_one_insn_forwards): Removed.
11966
11967 2008-05-16  Doug Kwan  <dougkwan@google.com>
11968
11969         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
11970         QNaN & SNaN.
11971         (real_from_string): Handle NaNs and Inf as approriate.
11972
11973 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
11974
11975         * doc/gty.texi (Source Files Containing Type Information): Note
11976         that headers should appear first in the gtfiles list.
11977
11978 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
11979
11980         * tree.def (COND_EXEC): Properly documented this code.
11981
11982 2008-05-16  Diego Novillo  <dnovillo@google.com>
11983
11984         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
11985         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
11986         the new field.
11987
11988 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
11989
11990         * tree-ssa-dse (max_stmt_uid): Removed.
11991         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
11992         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
11993         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
11994         * function.h (cfun.last_stmt_uid): New field.
11995         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
11996         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
11997         New functions.
11998         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
11999         (create_stmt_ann): Initialize the ann->uid field.
12000         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12001         with new calls.
12002         * tree-flow.h (renumber_gimple_stmt_uids): New function.
12003
12004 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12005
12006         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12007         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12008         (init_empty_tree_cfg): Call it.
12009
12010 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12011
12012         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
12013         Update all users.
12014
12015 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12016
12017         * doc/invoke.text (-fdump-tree-*-verbose): New option.
12018         * tree-dump.c (dump_options): New verbose option.
12019         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12020         Add verbose dump.
12021         * tree-pass.h (TDF_VERBOSE): New dump flag.
12022         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12023         (tree-flow.h): Added include.
12024         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
12025
12026 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
12027
12028         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12029
12030         From Jie Zhang  <jie.zhang@analog.com>
12031         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12032         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12033         mcpu=bf561-none and mcpu=bf561-0.2.
12034         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12035         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12036         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12037         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12038         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12039         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12040         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
12041         option.
12042         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12043         (cputype_selected): Remove.
12044         (bfin_handle_option): Don't use cputype_selected.
12045         (override_options): When no mcpu option, enable all workarounds.
12046         Don't use bfin_workarounds.
12047         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12048         processor type.
12049         (DEFAULT_CPU_TYPE): Don't define.
12050
12051 2008-05-16  Richard Guenther  <rguenther@suse.de>
12052
12053         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12054         on deletion of the last stmt.
12055
12056 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12057
12058         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12059         V8HImode for SSE2 and V16QImode for SSE4.1.
12060
12061 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
12062
12063         * cgraph.h (compute_inline_parameters): Made public.
12064         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12065         variable_generate_summary, function_write_summary,
12066         variable_write_summary, variable_read_summary.  Added generate_summary,
12067         write_summary, read_summary.
12068         * cgraphunit.c (cgraph_process_new_functions): Changed call from
12069         pass_ipa_inline.function_generate_summary, to
12070         compute_inline_parameters.
12071         * ipa-inline.c (compute_inline_parameters): Made public and added
12072         node parameter.
12073         (compute_inline_parameters_for_current): New function.
12074         (pass_inline_param): Now calls compute_inline_parameters_for_current.
12075         (inline_generate_summary): Removed parameter and made to loop over
12076         all cgraph nodes.
12077         (pass_ipa_inline): Updated for new IPA_PASS structure.
12078         * passes.c (execute_ipa_summary_passes): Now is called once per
12079         pass rather than once per node*pass.
12080
12081 2008-05-15  Anatoly Sokolov <aesok@post.ru>
12082
12083         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
12084         avr_have_mul_p, avr_asm_only_p): Remove variables.
12085         (avr_override_options): Remove initialization of removed variables.
12086         (avr_file_start):  Convert removed variables to fields of
12087         'struct base_arch_s *avr_current_arch'.
12088         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
12089         (AVR_HAVE_MUL): (Ditto.).
12090         (AVR_HAVE_MOVW): (Ditto.).
12091         (AVR_HAVE_LPMX): (Ditto.).
12092         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
12093         avr_asm_only_p): Remove declaration.
12094
12095 2008-05-15  Diego Novillo  <dnovillo@google.com>
12096
12097         * config/arm/arm.c (arm_return_in_memory): Fix return type.
12098         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
12099
12100 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
12101
12102         PR middle-end/36194
12103         * combine.c (check_conversion): Rename back to check_promoted_subreg.
12104         Don't call record_truncated_value from here.
12105         (record_truncated_value): Turn it into a for_each_rtx callback.
12106         (record_truncated_values): New function.
12107         (combine_instructions): Call note_uses with record_truncated_values.
12108         Change name of check_conversion to check_promoted_subreg.
12109
12110 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
12111
12112         * doc/sourcebuild.texi: Document support for torture tests.
12113
12114 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12115
12116         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
12117         to alternative 4 of operand 2.
12118
12119 2008-05-15  Richard Guenther  <rguenther@suse.de>
12120
12121         * tree-pass.h (current_pass): Declare.
12122         (get_pass_for_id): Likewise.
12123         * passes.c (passes_by_id, passes_by_id_size): New globals.
12124         (set_pass_for_id): New function.
12125         (get_pass_for_id): Likewise.
12126         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
12127         (execute_function_todo): Flush per function statistics.
12128         * toplev.c (compile_file): Init statistics.
12129         (general_init): Do early statistics initialization.
12130         (finalize): Finish statistics.
12131         * statistics.h (statistics_early_init): Declare.
12132         (statistics_init): Likewise.
12133         (statistics_fini): Likewise.
12134         (statistics_fini_pass): Likewise.
12135         (statistics_counter_event): Likewise.
12136         (statistics_histogram_event): Likewise.
12137         * statistics.c: New file.
12138         * Makefile.in (OBJS-common): Add statistics.o.
12139         (statistics.o): Add dependencies.
12140         * doc/invoke.texi (-fdump-statistics): Document.
12141
12142         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
12143         (insert): Likewise.
12144         (execute_pre): Use statistics_counter_event.
12145         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
12146         (substitute_and_fold): Increment it.  Use statistics_counter_event.
12147
12148 2008-05-15  Diego Novillo  <dnovillo@google.com>
12149
12150         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
12151
12152         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
12153         * tree-ssa-alias.c (new_type_alias): Remove references to
12154         sub-variables from comment.
12155         * tree-ssa-operands.c (swap_tree_operands): Likewise.
12156
12157 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12158
12159         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
12160         attribute to 1 only for insertps alternative.
12161
12162 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12163
12164         * config/bfin/bfin.md (loadbytes): New pattern.
12165         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12166         (bfin_init_builtins): Initialize it.
12167         (bdesc_1arg): Add it.
12168
12169 2008-05-15  Sa Liu  <saliu@de.ibm.com>
12170
12171         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12172         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12173         * testsuite/lib/target-supports.exp: Add
12174         check_effective_target_fortran_integer_16.
12175
12176 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12177
12178         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12179         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
12180         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
12181         (TARGET_RETURN_IN_MEMORY): Define.
12182
12183 2008-05-15  Richard Guenther  <rguenther@suse.de>
12184
12185         PR middle-end/36244
12186         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
12187         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
12188         represent unmodifiable vars.
12189
12190 2008-05-15  Richard Guenther  <rguenther@suse.de>
12191
12192         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
12193         INDIRECT_REF and TARGET_MEM_REF.
12194         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12195         TARGET_MEM_REF.
12196
12197 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12198             H.J. Lu  <hongjiu.lu@intel.com>
12199
12200         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
12201         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
12202         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
12203         insn alternatives.  Add missing alternatives.
12204         (*vec_concatv2di_rex64_sse4_1): Likewise.
12205         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
12206         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
12207         Require TARGET_SSE.
12208
12209 2008-05-15  Richard Guenther  <rguenther@suse.de>
12210
12211         PR tree-optimization/36009
12212         PR tree-optimization/36204
12213         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
12214         (determine_invariantness_stmt): Record the loop a store is
12215         always executed in.
12216         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
12217         dependency.
12218
12219 2008-05-15  Richard Guenther  <rguenther@suse.de>
12220
12221         PR tree-optimization/34330
12222         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
12223         through the pointer will alias the SMT.
12224
12225 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
12226
12227         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
12228
12229 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12230
12231         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
12232
12233 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12234             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
12235
12236         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
12237         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
12238         (vashl_optab): New optab for vector/vector shifts.
12239         (vashr_optab): Ditto.
12240         (vlshr_optab): Ditto.
12241         (vrotl_optab): Ditto.
12242         (vrotr_optab): Ditto.
12243         (optab_subtype): New enum for optab_for_tree_code call.
12244         (optab_for_tree_code): Add enum optab_subtype argument.
12245
12246         * optabs.c (optab_for_tree_code): Take an additional argument to
12247         distinguish between a vector shift by a scalar and vector shift by
12248         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
12249         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
12250         vector shift by a vector.
12251         (expand_widen_pattern_expr): Pass additional argument to
12252         optab_for_tree_code.
12253
12254         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
12255         vrotl_optab, vrotr_optab.
12256
12257         * expr.c (expand_expr_real_1): Update calls to
12258         optab_for_tree_code to distinguish between vector shifted by a
12259         scalar and vector shifted by a vector.
12260         * tree-vectorizer.c (supportable_widening_operation): Ditto.
12261         (supportable_narrowing_operation): Ditto.
12262         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
12263         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
12264         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
12265         (vect_create_epilog_for_reduction): Ditto.
12266         (vectorizable_reduction): Ditto.
12267         (vectorizable_operation): Ditto.
12268         (vect_strided_store_supported): Ditto.
12269         (vect_strided_load_supported): Ditto.
12270         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12271         * expmed.c (expand_shift): Ditto.
12272
12273         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
12274         scalar type.
12275         (ashr@var{m}3): Ditto.
12276         (vashl@var{m}3): Document new vector/vector shift standard name.
12277         (vashr@var{m}3): Ditto.
12278         (vlshr@var{m}3): Ditto.
12279         (vrotl@var{m}3): Ditto.
12280         (vrotr@var{m}3): Ditto.
12281
12282         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
12283         (PPERM_INVERT): Ditto.
12284         (PPERM_REVERSE): Ditto.
12285         (PPERM_REV_INV): Ditto.
12286         (PPERM_ZERO): Ditto.
12287         (PPERM_ONES): Ditto.
12288         (PPERM_SIGN): Ditto.
12289         (PPERM_INV_SIGN): Ditto.
12290         (PPERM_SRC1): Ditto.
12291         (PPERM_SRC2): Ditto.
12292
12293         * config/i386/sse.md (mulv2di3): Add SSE5 support.
12294         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
12295         allows a memory operand to be the value being added, and split it
12296         to improve vectorization.
12297         (sse5_pmacsdqh_mem): Ditto.
12298         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
12299         (sse5_mulv2div2di3_high): Ditto.
12300         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
12301         (vec_pack_trunc_v4si): Ditto.
12302         (vec_pack_trunc_v2di): Ditto.
12303         (sse5_pcmov_<mode>): Remove code that tried to use use
12304         andps/andnps instead of pcmov.
12305         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
12306         pmacsdqh instructions.
12307         (vec_widen_smult_lo_v4si): Ditto.
12308
12309         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
12310         (PPERM_INVERT): Ditto.
12311         (PPERM_REVERSE): Ditto.
12312         (PPERM_REV_INV): Ditto.
12313         (PPERM_ZERO): Ditto.
12314         (PPERM_ONES): Ditto.
12315         (PPERM_SIGN): Ditto.
12316         (PPERM_INV_SIGN): Ditto.
12317         (PPERM_SRC1): Ditto.
12318         (PPERM_SRC2): Ditto.
12319         (ix86_expand_sse_movcc): Move the SSE5 test after the if
12320         true/false tests.
12321         (ix86_expand_int_vcond): If SSE5 generate all possible integer
12322         comparisons.
12323         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
12324         says ignore whether the last reference is a memory operand.
12325
12326 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12327             Paolo Bonzini <bonzini at gnu dot org>
12328
12329         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
12330         shift patterns.
12331
12332         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
12333         (vlshr<mode>3): Rename from vlshr<mode>3.
12334         (vashr<mode>3): Rename from vashr<mode>3.
12335         (mulv4sf3): Change the names of vector shift patterns.
12336         (mulv4si3): Ditto.
12337         (negv4sf2): Ditt.
12338
12339         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
12340         shift insns.
12341
12342         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
12343         (SI_SHLHI): Ditto.
12344         (SI_SHL): Ditto.
12345         (SI_SHLI): Ditto.
12346         (SI_ROTH): Ditto.
12347         (SI_ROTHI): Ditto.
12348         (SI_ROT): Ditto.
12349         (SI_ROTI): Ditto.
12350         (SPU_RL_0): Ditto.
12351         (SPU_RL_1): Ditto.
12352         (SPU_RL_2): Ditto.
12353         (SPU_RL_3): Ditto.
12354         (SPU_RL_4): Ditto.
12355         (SPU_RL_5): Ditto.
12356         (SPU_RL_6): Ditto.
12357         (SPU_RL_7): Ditto.
12358         (SPU_SL_0): Ditto.
12359         (SPU_SL_1): Ditto.
12360         (SPU_SL_2): Ditto.
12361         (SPU_SL_3): Ditto.
12362         (SPU_SL_4): Ditto.
12363         (SPU_SL_5): Ditto.
12364         (SPU_SL_6): Ditto.
12365         (SPU_SL_7): Ditto.
12366
12367         * config/spu/spu.md (v): New iterator macro to add v for vector types.
12368         (floatunssidf2_internal): Change vector/vector shift names.
12369         (floatunsdidf2_internal): Ditto.
12370         (mulv8hi3): Ditto.
12371         (ashrdi3): Ditto.
12372         (ashrti3): Ditto.
12373         (cgt_df): Ditto.
12374         (cgt_v2df): Ditto.
12375         (dftsv): Ditto.
12376         (vashl<mode>3): Rename from ashl<mode>3.
12377         (vashr<mode>3): Rename from ashr<mode>3.
12378         (vlshr<mode>3): Rename from lshr<mode>3.
12379         (vrotl<mode>3): Rename from rotl<mode>3.
12380
12381 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
12382
12383         PR target/36224
12384         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
12385         multiply gives the wrong value when doing widening multiplies.
12386         (vec_widen_smult_lo_v4si): Ditto.
12387
12388 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
12389
12390         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
12391         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
12392         emit_library_call_value.
12393         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
12394         * tree.h (ECF_LIBCALL_BLOCK): Removed.
12395         * calls.c (initialize_argument_information, precompute_arguments,
12396         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
12397         (precompute_arguments): Removed flags parameter.
12398         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
12399
12400 2008-05-14  Richard Guenther  <rguenther@suse.de>
12401
12402         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
12403         Make sure to register the store if the use is a PHI_NODE.
12404
12405 2008-05-14  Olivier Hainque  <hainque@adacore.com>
12406
12407         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
12408         memory if the component is to be referenced in BLKmode according
12409         to get_inner_reference.
12410
12411 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
12412
12413         * calls.c (emit_library_call_value_1): Restore code clearing
12414         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
12415
12416 2008-05-14  Olivier Hainque  <hainque@adacore.com>
12417             Nicolas Roche  <roche@adacore.com>
12418
12419         * configure.ac: Add support for a "gcc_subdir" variable in
12420         config-lang.in, to denote a subdirectory where the language/GCC
12421         integration files are to be found.
12422         * configure: Regenerate.
12423
12424 2008-05-14  Ira Rosen  <irar@il.ibm.com>
12425
12426         PR tree-optimization/36098
12427         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
12428         value for the first load in the group in case of a gap.
12429         (vect_build_slp_tree): Check that there are no gaps in loads.
12430
12431 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
12432
12433         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
12434         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
12435         expand_copysign_bit, ): Change call to emit_no_conflict_block to
12436         emit_insn and remove unneeded code to construct extra args.
12437         (emit_no_conflict_block): Removed.
12438         * optabls.h: (emit_no_conflict_block): Removed.
12439         * cse.c (cse_extended_basic_block): Remove search for
12440         REG_NO_CONFLICT note.
12441         * global.c: Removed incorrect comment added in revision 117.
12442         * expr.c (convert_move): Change call to emit_no_conflict_block to
12443         emit_insn.
12444         * recog.c: Change comments so that they do not mention
12445         REG_NO_CONFLICT.
12446         * local_alloc.c (combine_regs): Removed last parameter.
12447         (no_conflict_p): Removed.
12448         (block_alloc): Removed note, no_conflict_combined_regno and set
12449         local vars. Removed all code to process REG_NO_CONFLICT blocks.
12450         (combine_regs): Removed already_dead and code to look for
12451         REG_NO_CONFLICT notes.
12452         * lower_subreg (remove_retval_note): Removed code to look for
12453         REG_NO_CONFLICT block.
12454         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
12455         (resolve_clobber): Remove code to process libcalls that have
12456         REG_NO_CONFLICT notes.
12457         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
12458         case.
12459         * combine.c (can_combine_p, distribute_notes):  Removed
12460         REG_NO_CONFLICT case.
12461         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
12462         to emit_insns.
12463         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
12464         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
12465         Ditto.
12466         * reg-notes.def (NO_CONFLICT): Removed.
12467
12468 2008-05-14  David S. Miller  <davem@davemloft.net>
12469
12470         * config/sparc/sparc.c (sparc_profile_hook): If
12471         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
12472         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
12473         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12474
12475 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
12476
12477         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
12478
12479 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
12480
12481         PR target/36222
12482         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
12483         and op1 expansion before vector concat to have less live pseudos.
12484
12485 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
12486
12487         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
12488         ix86_expand_vector_set if supported.
12489
12490 2008-05-13  Diego Novillo  <dnovillo@google.com>
12491             Kenneth Zadeck  <zadeck@naturalbridge.com>
12492
12493         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
12494
12495         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
12496         phinodes_print_statistics, init_ssanames, fini_ssanames,
12497         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
12498         release_ssa_name, release_defs, replace_ssa_name_symbol,
12499         ssanames_print_statistics): Move ...
12500         * tree-flow.h: ... here.
12501         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
12502         Use FN instead of cfun.
12503         (make_ssa_name_fn): Rename from make_ssa_name.
12504         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
12505         * tree-flow-inline.h (make_ssa_name): Move from
12506         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
12507         * omp-low.c (expand_omp_parallel):
12508         * tree-flow-inline.h (redirect_edge_var_map_result):
12509         * tree-ssa.c (init_tree_ssa): Add argument FN.
12510         Use it instead of cfun.  Update all users.
12511
12512 2008-05-13  Tom Tromey  <tromey@redhat.com>
12513
12514         PR preprocessor/22168:
12515         * doc/cpp.texi (Top): Update menu.
12516         (Alternatives to Wrapper #ifndef): New node.
12517         (Other Directives): Document deprecation.
12518         (Obsolete Features): Remove menu.
12519         (Assertions): Merge node into Obsolete Features.
12520         (Obsolete once-only headers): Move earlier; rename to Alternatives
12521         to Wrapper #ifndef.
12522         * doc/cppopts.texi: Update.
12523         * c.opt (Wdeprecated): Enable for C and ObjC.
12524         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
12525         (C++ Dialect Options): Move -Wno-deprecated from here to...
12526         (Warning Options): ... here.
12527
12528 2008-05-13  Richard Guenther  <rguenther@suse.de>
12529
12530         PR middle-end/36227
12531         * fold-const.c (fold_sign_changed_comparison): Do not allow
12532         changes in pointer-ness.
12533
12534 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12535
12536         PR target/24713
12537         * config/sh/sh.c (sh_expand_prologue): Don't clear
12538         RTX_FRAME_RELATED_P for push insns.
12539
12540 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
12541
12542         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
12543
12544 2008-05-12  Anatoly Sokolov <aesok@post.ru>
12545
12546         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
12547         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
12548         Use 'machine->is_leaf' instead of 'leaf_func_p'.
12549
12550 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12551
12552         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
12553         (*vec_concatv4sf_sse): This.
12554         (*sse2_concatv2si): Renamed to ...
12555         (*vec_concatv2si_sse2): This.
12556         (*sse1_concatv2si): Renamed to ...
12557         (*vec_concatv2si_sse): This.
12558         (*vec_concatv2di_rex): Renamed to ...
12559         (*vec_concatv2di_rex64): This.
12560         (*vec_concatv2si_sse4_1): New.
12561         (*vec_concatv2di_rex64_sse4_1): Likewise.
12562
12563 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
12564
12565         PR rtl-optimization/36111
12566         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
12567         that was created for swappable operands.
12568
12569 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
12570
12571         PR ada/36001
12572         * Makefile.in: Substitute GNATMAKE and GNATBIND.
12573         * configure.ac: Add call to ACX_PROG_GNAT.
12574
12575 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
12576
12577         * optc-gen.awk: Fix comment typo.
12578
12579 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12580
12581         * pretty-print.c (pp_integer_with_precision): Use
12582         HOST_LONG_LONG_FORMAT.
12583
12584 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
12585
12586         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
12587
12588 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12589
12590         * config/i386/i386.c (bdesc_ptest): Removed.
12591         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
12592         (bdesc_args): Add __builtin_ia32_ptestz128,
12593         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
12594         (ix86_init_mmx_sse_builtins): Updated.
12595         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
12596         (ix86_expand_builtin): Updated.
12597
12598 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
12599
12600         * tree-cfg.c (valid_fixed_convert_types_p): New function.
12601         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
12602
12603 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
12604
12605         * value-prof.c (interesting_stringop_to_profile): Do not
12606         return early for BUILT_IN_MEMPCPY.
12607
12608 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
12609
12610         * calls.c (expand_call): Don't use callgraph to increase
12611         preferred_stack_boundary.
12612
12613         * cgraph.h (cgraph_rtl_info): Use unsigned on
12614         preferred_incoming_stack_boundary.
12615
12616         * final.c (rest_of_clean_state): Use unsigned on
12617         preferred_stack_boundary.
12618
12619 2008-05-09  Tom Tromey  <tromey@redhat.com>
12620
12621         PR preprocessor/22231:
12622         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
12623         proceeding.
12624
12625 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
12626
12627         PR tree-optimization/36129
12628         * tree-ssa-ccp.c: Include value-prof.h.
12629         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
12630         built-in function was folded to a constant.
12631         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
12632
12633 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
12634             Sebastian Pop  <sebastian.pop@amd.com>
12635
12636         * tree-scalar-evolution.c: Document instantiate_scev.
12637         (instantiate_parameters_1): Renamed instantiate_scev_1.
12638         Don't use the same loop for instantiation_loop and evolution_loop.
12639         (instantiate_scev): New.
12640         (instantiate_parameters): Moved...
12641         (resolve_mixers): Update call to instantiate_scev_1 to pass the
12642         same loop twice.  Maintains the semantics for this function.
12643         * tree-scalar-evolution.h (instantiate_scev): Declare.
12644         (instantiate_parameters): ...here.  Now static inline.
12645         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
12646         instead of resolve_mixers.
12647
12648 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12649
12650         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
12651
12652 2008-05-09  Tomas Bily  <tbily@suse.cz>
12653
12654         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
12655         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
12656         * tree-ssa-structalias.c (get_constraint_for): Likewise.
12657         * c-common.c (c_common_truthvalue_conversion): Likewise.
12658         * tree-object-size.c (compute_object_offset): Likewise.
12659         * tree-inline.c (estimate_num_insns_1): Likewise.
12660         * varasm.c (const_hash_1, compare_constant, copy_constant)
12661         (compute_reloc_for_constant, output_addressed_constants)
12662         (initializer_constant_valid_p): Likewise.
12663         * c-omp.c (check_omp_for_incr_expr): Likewise.
12664         * gimplify.c (gimplify_expr): Likewise.
12665         * c-typeck.c (c_finish_return): Likewise.
12666         * tree-vectorizer.c (supportable_widening_operation)
12667         (supportable_narrowing_operation): Likewise.
12668         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
12669         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
12670         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
12671         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
12672         (descr_info_loc): Likewise.
12673         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
12674         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
12675         (fold_unary): Likewise.
12676         * builtins.c (get_pointer_alignment): Likewise.
12677         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
12678         (instantiate_parameters_1): Likewise.
12679         * tree.c (expr_align, stabilize_reference): Likewise.
12680         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
12681         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12682         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
12683         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12684         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
12685         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
12686         Likewise.
12687         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
12688         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
12689         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
12690         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
12691         (forward_propagate_comparison)
12692         (tree_ssa_forward_propagate_single_use_vars): Likewise.
12693         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
12694         * emit-rtl.c (component_ref_for_mem_expr)
12695         (set_mem_attributes_minus_bitpos): Likewise.
12696         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
12697         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
12698         Likewise.
12699         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
12700         (build_function_call, pointer_diff, build_compound_expr)
12701         (c_finish_return): Likewise.
12702         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
12703         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
12704         Likewise.
12705         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
12706         * expr.c (is_aligning_offset): Likewise.
12707         * tree-ssa-alias.c (is_escape_site): Likewise.
12708         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
12709         (check_all_va_list_escapes): Likewise.
12710         * tree-ssa-loop-ivopts.c (determine_base_object)
12711         (determine_common_wider_type): Likewise.
12712         * dojump.c (do_jump): Likewise.
12713         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
12714         * tree-gimple.c (is_gimple_cast): Likewise.
12715         * fold-const.c (decode_field_reference, )
12716         (fold_sign_changed_comparison, fold_unary, fold_comparison)
12717         (fold_binary): Likewise.
12718         * tree-ssa-alias-warnings.c (find_alias_site_helper)
12719         (already_warned_in_frontend_p): Likewise.
12720         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
12721         * tree.c (really_constant_p, get_unwidened): Likewise.
12722         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
12723         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
12724         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
12725         Likewise.
12726         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
12727         CONVERT_EXPR_P.
12728         (CONVERT_EXPR_P): Define.
12729         (CASE_CONVERT): Define.
12730
12731 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12732
12733         PR middle-end/36117
12734         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
12735         (delete_unmarked_insns): When deleting a call, call
12736         delete_unreachable_blocks.
12737         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
12738         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
12739
12740 2008-05-08  Richard Guenther  <rguenther@suse.de>
12741
12742         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
12743         (-ftree-salias): Likewise.
12744         (salias-max-implicit-fields): Remove param documentation.
12745         (salias-max-array-elements): Likewise.
12746         * tree-pass.h (pass_create_structure_vars): Remove.
12747         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
12748         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
12749         * tree-ssa-alias.c (create_structure_vars): Remove.
12750         (gate_structure_vars): Likewise.
12751         (pass_create_structure_vars): Likewise.
12752         (gate_build_alias): Likewise.
12753         (pass_build_alias): Adjust to run always and dump the function.
12754         * common.opt (ftree-salias): Hide.
12755         * passes.c (init_optimization_passes): Remove
12756         pass_create_structure_vars, adjust comment.
12757         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
12758         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
12759         * opts.c (decode_options): Do not set flag_tree_salias.
12760         (common_handle_option): Add OPT_ftree_salias to the backward
12761         compatibility section.
12762
12763 2008-05-08  Richard Guenther  <rguenther@suse.de>
12764
12765         * tree-flow-inline.h (var_can_have_subvars): Move ...
12766         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
12767         * tree-flow.h (var_can_have_subvars): Remove.
12768         (push_fields_onto_fieldstack): Remove.
12769         (sort_fieldstack): Likewise.
12770         (struct fieldoff): Move ...
12771         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
12772         alias_set and base_for_components fields.
12773         (sort_fieldstack): Make static.
12774         (push_fields_onto_fieldstack): Likewise.  Remove code that
12775         handles anything but RECORD_TYPEs.  Remove alias_set and
12776         base_for_components handling.
12777         (create_variable_info_for): Adjust.
12778
12779 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
12780
12781         * common.opt (Wframe-larger-than=): Shorten the help message
12782         to one line.
12783         * doc/invoke.texi (Wframe-larger-than=): Add more description.
12784
12785 2008-05-08  Rafael Espindola  <espindola@google.com>
12786
12787         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
12788         trap.
12789         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
12790         trap and that both operands are gimple values.
12791         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
12792         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
12793         is a fp operation.
12794
12795 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
12796
12797         * read-rtl.c (join_c_conditions): Return the first string if the
12798         two strings are equal.
12799
12800 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
12801
12802         * gensupport.h (pred_data): Add a "num_codes" field.
12803         (add_predicate_code): Declare.
12804         * gensupport.c (add_predicate_code): New function.
12805         (std_pred_table): Add an "allows_const_p" field.
12806         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
12807         Remove the (incomplete) list of such codes from the codes field.
12808         (init_predicate_table): Use add_predicate_code.  Add all
12809         RTX_CONST_OBJs if allows_const_p is true.
12810         * genrecog.c (process_define_predicate): Use add_predicate_code.
12811
12812 2008-05-08  David Daney  <ddaney@avtrex.com>
12813             Richard Sandiford  <rsandifo@nildram.co.uk>
12814
12815         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
12816         special case of constant zero operands.
12817         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
12818         old and new values.  Special case constant zero values.
12819         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
12820         fails.
12821         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
12822         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
12823
12824 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
12825
12826         PR target/36090
12827         * simplify-rtx.c (simplify_plus_minus): Create CONST of
12828         similar RTX_CONST_OBJ before CONST_INT.
12829
12830 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
12831
12832         * stmt.c (expand_stack_restore): Change sa mode if needed.
12833
12834 2008-05-08  Richard Guenther  <rguenther@suse.de>
12835
12836         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
12837         return type to bool.
12838         (ix86_sol10_return_in_memory): Likewise.
12839         (ix86_i386elf_return_in_memory): Likewise.
12840         (ix86_i386interix_return_in_memory): Likewise.
12841         * config/i386/i386.c (ix86_return_in_memory): Likewise.
12842         (ix86_sol10_return_in_memory): Likewise.
12843         (ix86_i386elf_return_in_memory): Likewise.
12844         (ix86_i386interix_return_in_memory): Likewise.
12845
12846 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
12847
12848         PR bootstrap/36180
12849         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
12850         fndecl argument.
12851         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
12852         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
12853         declared in front.
12854
12855 2008-05-08  Richard Guenther  <rguenther@suse.de>
12856
12857         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
12858         * tree-data-ref.h (struct dr_alias): Remove subvars field.
12859         (DR_SUBVARS): Remove.
12860         * tree-dfa.c (dump_subvars_for): Remove.
12861         (debug_subvars_for): Likewise.
12862         (dump_variable): Do not dump subvars.
12863         (remove_referenced_var): Do not remove subvars.
12864         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
12865         (lookup_subvars_for_var): Remove.
12866         (get_subvars_for_var): Likewise.
12867         (get_subvars_at): Likewise.
12868         (get_first_overlapping_subvar): Likewise.
12869         (overlap_subvar): Likewise.
12870         * tree-flow.h (subvar_t): Remove.
12871         (struct var_ann_d): Remove subvars field.
12872         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
12873         argument.  Remove special handling of SFTs.
12874         (compute_tag_properties): Likewise.
12875         (set_initial_properties): Likewise.
12876         (compute_call_clobbered): Likewise.
12877         (count_mem_refs): Likewise.
12878         (compute_memory_partitions): Likewise.
12879         (compute_flow_insensitive_aliasing): Likewise.
12880         (setup_pointers_and_addressables): Likewise.
12881         (new_type_alias): Likewise.
12882         (struct used_part): Remove.
12883         (used_portions): Likewise.
12884         (struct used_part_map): Likewise.
12885         (used_part_map_eq): Likewise.
12886         (used_part_map_hash): Likewise.
12887         (free_used_part_map): Likewise.
12888         (up_lookup): Likewise.
12889         (up_insert): Likewise.
12890         (get_or_create_used_part_for): Likewise.
12891         (create_sft): Likewise.
12892         (create_overlap_variables_for): Likewise.
12893         (find_used_portions): Likewise.
12894         (create_structure_vars): Likewise.
12895         * tree.def (STRUCT_FIELD_TAG): Remove.
12896         * tree.h (MTAG_P): Adjust.
12897         (struct tree_memory_tag): Remove base_for_components and
12898         unpartitionable flags.
12899         (struct tree_struct_field_tag): Remove.
12900         (SFT_PARENT_VAR): Likewise.
12901         (SFT_OFFSET): Likewise.
12902         (SFT_SIZE): Likewise.
12903         (SFT_NONADDRESSABLE_P): Likewise.
12904         (SFT_ALIAS_SET): Likewise.
12905         (SFT_UNPARTITIONABLE_P): Likewise.
12906         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
12907         (union tree_node): Remove sft field.
12908         * alias.c (get_alias_set): Remove special handling of SFTs.
12909         * print-tree.c (print_node): Remove handling of SFTs.
12910         * tree-dump.c (dequeue_and_dump): Likewise.
12911         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
12912         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
12913         * tree-predcom.c (set_alias_info): Do not set subvars.
12914         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
12915         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
12916         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
12917         (add_vars_for_offset): Remove.
12918         (add_virtual_operand): Remove special handling of SFTs.
12919         (add_call_clobber_ops): Likewise.
12920         (add_call_read_ops): Likewise.
12921         (get_asm_expr_operands): Likewise.
12922         (get_modify_stmt_operands): Likewise.
12923         (get_expr_operands): Likewise.
12924         (add_to_addressable_set): Likewise.
12925         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
12926         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
12927         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
12928         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
12929         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
12930         (tree_node_structure): Likewise.
12931         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
12932         handling of SFTs.
12933         (find_what_p_points_to): Likewise.
12934
12935 2008-05-08  Sa Liu  <saliu@de.ibm.com>
12936
12937         * config/spu/spu.md: Fixed subti3 pattern.
12938
12939 2008-05-08  Richard Guenther  <rguenther@suse.de>
12940
12941         PR middle-end/36154
12942         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12943         sure to create a representative for trailing arrays for PTA.
12944
12945 2008-05-08  Richard Guenther  <rguenther@suse.de>
12946
12947         PR middle-end/36172
12948         * fold-const.c (operand_equal_p): Two objects which types
12949         differ in pointerness are not equal.
12950
12951 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
12952
12953         * calls.c (compute_argument_block_size): Add argument tree fndecl.
12954         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
12955         (emit_library_call_value_1): Add new variable fndecl initialized by
12956         NULL_TREE. It should be the decl type of orgfun, but this information
12957         seems not to be available here, so it uses the default calling abi.
12958         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
12959         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
12960         by TARGET_RETURN_IN_MEMORY.
12961         * config/i386/i386-interix.h: Likewise.
12962         * config/i386/i386.h: Likewise.
12963         * config/i386/i386elf.h: Likewise.
12964         * config/i386/ptx4-i.h: Likewise.
12965         * config/i386/sol2-10.h: Likewise.
12966         * config/i386/sysv4.h: Likewise.
12967         * config/i386/vx-common.h: Likewise.
12968         * config/cris/cris.h: Removed #if 0 clause.
12969         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
12970         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
12971         argument.
12972         (ix86_sol10_return_in_memory): Likewise.
12973         (ix86_i386elf_return_in_memory): New.
12974         (ix86_i386interix_return_in_memory): New.
12975         * config/mt/mt-protos.h (mt_return_in_memory): New.
12976         * config/mt/mt.c: Likewise.
12977         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
12978         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
12979         * config/bfin/bfin.h: Likewise.
12980         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
12981         argument.
12982         * config/bfin/bfin.c: Likewise.
12983         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
12984         * config/alpha/unicosmk.h: Likewise.
12985         * config/i386/cygming.h: Likewise.
12986         * config/iq2000/iq2000.h: Likewise.
12987         * config/mips/mips.h: Likewise.
12988         * config/mn10300/mn10300.h: Likewise.
12989         * config/rs6000/rs6000.h: Likewise.
12990         * config/score/score.h: Likewise.
12991         * config/spu/spu.h: Likewise.
12992         * config/v850/v850.h: Likewise.
12993         * defaults.h: Likewise.
12994         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
12995         * expr.c (emit_block_move): Adjust use of
12996         OUTGOING_REG_PARM_STACK_SPACE.
12997         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
12998         OUTGOING_REG_PARM_STACK_SPACE.
12999         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13000
13001 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13002
13003         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13004         on OMP_RETURN for OMP_FOR.
13005
13006         PR debug/35896
13007         * dwarf2out.c (dw_expand_expr, common_check): Removed.
13008         (fortran_common): New function.
13009         (gen_variable_die): Call fortran_common instead of common_check,
13010         adjust for it returning tree instead of rtx.  Formatting.
13011
13012 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13013
13014         PR rtl/7335
13015         PR rtl/33826
13016         * see.c (see_copy_insn): Copy new pure const attributes for new call.
13017         * c-decl.c (merge_decls): Ditto.
13018         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13019         to RTL_CONST_OR_PURE_CALL_P.
13020         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13021         Initialized DECL_LOOPING_CONST_PURE.
13022         (process_call_operands): Set tree_side_effects properly.
13023         * tree.h (TREE_READONLY_DECL_P): Removed.
13024         (DECL_IS_PURE): Renamed to DECL_PURE_P.
13025         (DECL_LOOPING_OR_CONST_P): New macro.
13026         (struct tree_function_decl): Added looping_const_or_pure_p.
13027         (ECF_*) Renumbered.
13028         (ECF_LOOPING_OR_CONST_P): New macro.
13029         * rtlanal.c (pure_const_p): Removed.
13030         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13031         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13032         to RTL_CONST_CALL_P.
13033         * ipa-pure-const.c (pure_const_state_e): Added looping field.
13034         (check_decl, check_tree, check_call, scan_function): Initialize
13035         looping.
13036         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13037         (static_execute): Set looping true for recursive functions.
13038         Undo setting state to IPA_NEITHER for recursive functions.
13039         * cse.c (cse_insn):
13040         * ifcvt.c (noce_can_store_speculate_p): Changed
13041         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13042         RTL_CONST_OR_PURE_CALL_P.
13043         * dse.c (scan_insn): Ditto.
13044         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13045         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13046         RTL_CONST_OR_PURE_CALL_P.
13047         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13048         pure_call_p to RTL_CONST_CALL_P.
13049         * gimplify.c (gimplify_call_expr): Clear side effects for
13050         non-looping pure and constant calls.
13051         * calls.c (emit_call_1): Set rtl flags from ecf flags.
13052         (flags_from_decl_or_type): Set ecf flags from decl flags.
13053         (initialize_argument_information): Turn off
13054         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13055         Change const to pure if callee_copies is true rather than just
13056         turning off const.
13057         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13058         way of marking pure calls.
13059         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13060         Remove hack that was supposed to fix pr7335 and remove old
13061         way of marking pure calls.
13062         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13063         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13064         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13065         RTL_CONST_OR_PURE_CALL_P.
13066         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13067         * loop-invariant.c (find_exits, find_invariant_bb): Changed
13068         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
13069         * sched-deps.c (schedule_analyze): Ditto.
13070         * rtl.h (struct rtx_def): Use call field, unchanging field, and
13071         return_val field of calls to represent pure and const function info.
13072         (CONST_OR_PURE_CALL_P): Deleted macro.
13073         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13074         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
13075         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
13076         TREE_READONLY.
13077         * tree-optimize.c (execute_fixup_cfg): Added test for
13078         ECF_LOOPING_CONST_OR_PURE.
13079         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
13080         DECL_PURE_P.
13081         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
13082         effects for looping pure or const calls.
13083         (verify_gimple_expr): Added verification code.
13084         * config/alpha/alpha.c (alpha_legitimize_address,
13085         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
13086         RTL_CONST_CALL_P.
13087         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
13088         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
13089         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
13090         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
13091         RTL_CONST_OR_PURE_CALL_P.
13092         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
13093         and const calls to be deleted.
13094
13095 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13096
13097         PR target/35714
13098         * config/i386/mmx.md (mmx_subv2sf3): New expander.
13099         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
13100         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
13101         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13102         to handle nonimmediate operands.
13103         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
13104         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
13105         to handle nonimmediate operands.
13106         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
13107         (mmx_pmulhrwv4hi3): New expander.  Use
13108         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13109         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
13110         (sse2_umulv1siv1di3): New expander.  Use
13111         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13112         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
13113         (mmx_eq<mode>3): New expander.  Use
13114         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13115         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
13116         (mmx_uavgv8qi3): New expander.  Use
13117         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13118         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
13119         (mmx_uavgv4hi3): New expander.  Use
13120         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13121
13122         * config/i386/sse.md
13123         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
13124         to handle nonimmediate operands.
13125         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
13126         to handle nonimmediate operands.
13127         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
13128         to handle nonimmediate operands.
13129         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
13130         to handle nonimmediate operands.
13131         (sse2_unpckhpd_exp): New expander.  Use
13132         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13133         (sse2_unpcklpd_exp): New expander.  Use
13134         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13135         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
13136         to handle nonimmediate operands.
13137         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
13138         to handle nonimmediate operands.
13139         (*sse2_<plusminus_insn><mode>3): Rename from
13140         sse2_<plusminus_insn><mode>3 insn pattern.
13141         (sse2_<plusminus_insn><mode>3): New expander.  Use
13142         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13143         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
13144         (sse2_umulv2siv2di3): New expander.  Use
13145         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13146         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
13147         (sse4_1_mulv2siv2di3): New expander.  Use
13148         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13149         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
13150         (sse2_pmaddwd): New expander.  Use
13151         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13152         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
13153         (sse2_eq<mode>3): New expander.  Use
13154         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13155         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
13156         (sse4_1_eqv2di3): New expander.  Use
13157         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13158         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13159         (sse2_uavgv16qi3): New expander.  Use
13160         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13161         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13162         (sse2_uavgv16qi3): New expander.  Use
13163         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13164         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
13165         (sse2_uavgv8hi3): New expander.  Use
13166         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13167         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13168         (ssse3_pmulhrswv8hi3): New expander.  Use
13169         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13170         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13171         (ssse3_pmulhrswv4hi3): New expander.  Use
13172         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13173
13174         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13175         (<sse>_vmmul<mode>3): Ditto.
13176         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13177         (divv2df3): Ditto.
13178         (ssse3_pmaddubsw128): Use register_operand for operand 1.
13179         (ssse3_pmaddubsw): Ditto.
13180
13181         * config/i386/i386.c (struct_builtin_description)
13182         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
13183         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
13184         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
13185         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
13186         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
13187         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
13188         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
13189         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
13190         (ix86_fixup_binary_operands): Assert that src1
13191         and src2 must have the same mode when swapped.
13192         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
13193         and ix86_binary_operator_ok.  Do not force operands in registers
13194         when optimizing.
13195
13196 2008-05-07  Jan Hubicka  <jh@suse.cz>
13197
13198         * cgraph.c (dump_cgraph_node): Update.
13199         * cgraph.h (cgraph_local_info): Break out inline summary.
13200         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
13201         hook.
13202         * ipa-inline (inline_summary): New accestor function.
13203         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
13204         cgraph_decide_inlining, compute_inline_parameters): Update.
13205         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
13206
13207 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
13208
13209         Cleanup ColdFire scheduling support and add V4 pipeline model.
13210
13211         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
13212         (define_attr cpu): Add cfv4 value.
13213         (define_attr type, define_attr type1): Merge into a single 'type'
13214         attribute.  Update all uses.
13215         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
13216         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
13217         Update all uses.
13218         (define_attr opx_mem, define_attr opy_mem): Remove.
13219         (define_attr op_mem): Clean up, update comment.
13220         (define_attr size): Use specific values instead of general int.
13221         (define_attr guess, define_attr split): Remove.  Update all uses.
13222         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
13223         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
13224         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
13225         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
13226         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
13227         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
13228         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
13229         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
13230         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
13231         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
13232         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
13233         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
13234         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
13235         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
13236         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
13237         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
13238         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
13239         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
13240         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
13241         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
13242         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
13243         Update or set attributes.
13244         (stack_tie): New fake instruction.
13245
13246         * config/m68k/m68k.h (TUNE_CFV4): New macro.
13247         (m68k_sched_attr_size): Update declaration.
13248         (m68k_sched_attr_type2): Remove.
13249         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
13250         Declare new bypass predicates.
13251
13252         * config/m68k/m68k.c (m68k_sched_issue_rate,
13253         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
13254         implementations.
13255         (TARGET_SCHED_ISSUE_RATE,
13256         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
13257         (override_options): Handle scheduling for ColdFire V4 core.
13258         (m68k_expand_prologue): Emit stack_tie.
13259         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
13260         'OP_TYPE_FPN'.  Update all uses.
13261         (sched_guess_p): Remove.
13262         (sched_address_type): Handle symbolic addresses.
13263         (sched_get_operand): New static function.
13264         (sched_operand_type): Merge into sched_attr_op_type.
13265         (sched_attr_op_type): Handle FP registers, handle quick constants,
13266         update.
13267         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
13268         (m68k_sched_attr_size): Update.  Move logic to ...
13269         (sched_get_attr_size_int): New static function.
13270         (sched_get_opxy_mem_type): New static function.
13271         (m68k_sched_attr_op_mem): Update.
13272         (m68k_sched_attr_type2): Remove.
13273         (sched_cfv4_bypass_data): New static variable.
13274         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
13275         (m68k_sched_issue_rate): Implement scheduler hook.
13276         (struct _sched_ib: enabled_p): New field.
13277         (m68k_sched_variable_issue): Update.  Handle V4.
13278         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
13279         sched_dump_class_func_t, sched_dump_split_class,
13280         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
13281         sched_dump_dfa_class, m68k_sched_dump): Remove.
13282         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
13283         hook.
13284         (m68k_sched_init_global): Remove statisctics dumping, introduce
13285         sanity check that all instructions have pipeline reservations.  Handle
13286         ColdFire V4 core.
13287         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
13288         Handle ColdFire V4 core.
13289         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
13290         New static functions.
13291         (m68k_sched_address_bypass_p): New bypass predicate.
13292         (sched_get_indexed_address_scale): New static function.
13293         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
13294
13295         * cf.md: Update comments.
13296         (define_attr type2): Remove.  Use 'type' attribute instead.
13297         Update all uses.
13298         (cf_ib): Rename to cfv123_ib.  Update all uses.
13299         (cf_oep): Rename to cfv123_oep.  Update all uses.
13300         (cf_chr): Rename to cfv123_chr.  Update all uses.
13301         (cf_mem): Rename to cfv123_mem.  Update all uses.
13302         (cf_mac): Move to more appropriate place.
13303         (cfv123_guess): New automaton and cpu_unit.
13304         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
13305         Update uses of 'size' attribute.  Handle before reload scheduling.
13306         (cfv123_guess): New dummy reservation for unhandled instructions.
13307         (cfv4_*): Pipeline description of ColdFire V4 core.
13308         (ignore): New reservation to handle 'ignore' type.
13309
13310 2008-05-07  Ian Lance Taylor  <iant@google.com>
13311
13312         PR middle-end/36013
13313         * gimplify.c (find_single_pointer_decl_1): Don't look through
13314         indirections.
13315         (find_single_pointer_decl): Adjust comments.
13316
13317 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
13318
13319         PR middle-end/36137
13320         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
13321         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
13322
13323         PR middle-end/36106
13324         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
13325         integral type rather than floating point, then VIEW_CONVERT_EXPR
13326         to the floating point type.
13327
13328 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13329
13330         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
13331         TFmode op0 to register.
13332
13333 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
13334
13335         * c-decl.c (grokdeclarator): Comment typo.
13336
13337 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
13338
13339         * tree-flow.h: Remove prototype for computed_goto_p.
13340         * tree-cfg.c (computed_goto_p): Make static.
13341
13342 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13343
13344         PR target/35657
13345         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
13346         (contains_aligned_value_p): This.  Handle _Decimal128.
13347         (ix86_function_arg_boundary): Only align _Decimal128 to its
13348         natural boundary and handle it properly.
13349
13350 2008-05-06  Martin Jambor  <mjambor@suse.cz>
13351
13352         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
13353         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
13354         (ipcp_method_set_orig_node): Removed.
13355         (ipcp_cval_get_cvalue_type): Removed.
13356         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
13357         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
13358         (ipcp_cval_set_cvalue_type): Removed.
13359         (ipcp_cval_get_cvalue): Removed.
13360         (ipcp_cval_set_cvalue): Removed.
13361         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
13362         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
13363         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
13364         (ipcp_cval_meet): Renamed to ipa_lattice_meet
13365         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
13366         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
13367         (ipcp_get_ith_lattice): Changed parameters.
13368         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
13369         (ipcp_lattice_from_jfunc): Changed parameters.
13370         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
13371         (ipcp_method_cval_print): Added temporary variable info.
13372         (ipcp_redirect): Removed already unused local variable caller.
13373         (ipcp_redirect): New temporary variable orig_callee_info
13374         (ipcp_redirect): Removed newly unused local variable callee.
13375         (ipcp_redirect): Removed (a bit confusing) local variable type.
13376         (ipcp_insert_stage): Added local variable info.
13377         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
13378         renamed too
13379         (ipcp_formal_create): Removed.
13380         (ipcp_method_cval_set): Removed.
13381         (ipcp_propagate_stage): Renamed lattice variables.
13382         (ipcp_method_cval_set_cvalue_type): Removed.
13383         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
13384         (ipcp_print_all_lattices): Changed printed strings to refer to
13385         lattices rather than cvals.
13386         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
13387         (ipcp_propagate_const): Changed formal parameters.
13388         (build_const_val): Changed formal parameters.
13389         (ipcp_insert_stage): Removed useless variable cvalue
13390         (build_const_val): Changed formal parameters.
13391         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
13392         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
13393         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
13394         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
13395         (ipcp_print_func_profile_counts): Changed string from "method" to
13396         "function"
13397         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
13398         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
13399         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
13400         (ipcp_structures_print): Renamed to ipcp_print_all_structures
13401         (ipcp_profile_print): Renamed to ipcp_print_profile_data
13402         (ipcp_lat_is_const): Changed parameters and made inline.
13403         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
13404         (ipcp_redirect): Renamed to ipcp_need_redirect_p
13405         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
13406         the predicate condition directly
13407         (ipcp_propagate_stage): Added local variable args. Removed local
13408         variable callee.  (Both are mere code simplifications.)
13409         (ipcp_method_dont_insert_const): Renamed to
13410         ipcp_node_not_modifiable_p.
13411         (ipcp_node_not_modifiable_p): Made inline.
13412         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
13413         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
13414         (ipcp_print_all_lattices): Removed variable cvalue
13415         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
13416         Updated comments.
13417
13418 2008-05-06  Olivier Hainque  <hainque@adacore.com>
13419
13420         * tree-sra.c (try_instantiate_multiple_fields): Early return
13421         if field has POINTER_TYPE.
13422
13423 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
13424
13425         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
13426         by using 'q' specifier for instruction.
13427         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
13428
13429 2008-05-06  Anatoly Sokolov <aesok@post.ru>
13430
13431         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
13432         Change mode of zero_extract from QImode to HImode.
13433         (sign bit tests peepholes): (Ditto.).
13434
13435 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
13436
13437         * config/i386/mmx.md: Remove double backslashes from asm templates.
13438         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
13439         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13440         to handle nonimmediate operands.
13441         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
13442         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13443         to handle nonimmediate operands.
13444         (*mmx_<code>v2sf3_finite): New insn pattern.
13445         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
13446         (mmx_<code>v2sf3): New expander.  Use
13447         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13448         (mmx_<plusminus_insn><mode>3): New expander.  Use
13449         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13450         (*mmx_<plusminus_insn><mode>3): New insn pattern.
13451         (mmx_add<mode>3): Removed.
13452         (mmx_ssadd<mode>3): Ditto.
13453         (mmx_usadd<mode>3): Ditto.
13454         (mmx_sub<mode>3): Ditto.
13455         (mmx_sssub<mode>3): Ditto.
13456         (mmx_ussub<mode>3): Ditto.
13457         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
13458         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
13459         to handle nonimmediate operands.
13460         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
13461         insn pattern.
13462         (mmx_smulv4hi3_highpart): New expander.  Use
13463         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13464         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
13465         insn pattern.
13466         (mmx_umulv4hi3_highpart): New expander.  Use
13467         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13468         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
13469         (mmx_<code>v4hi3): New expander.  Use
13470         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13471         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
13472         (mmx_<code>v8qi3): New expander.  Use
13473         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13474         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
13475         (mmx_<code><mode>3): New expander.  Use
13476         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13477
13478 2008-05-05  Jan Hubicka  <jh@suse.cz>
13479
13480         PR tree-optimization/36118
13481         * passes.c (pass_init_dump_file): Fix dump header.
13482
13483 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13484
13485         PR middle-end/36141
13486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
13487         VCE for function decls.
13488
13489 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
13490
13491         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
13492
13493 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
13494
13495         * config/i386/i386.md (sat_plusminus): New.
13496         (plusminus_insn): Likewise.
13497         (plusminus_mnemonic): Likewise.
13498         (addsub): Removed.
13499         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
13500         (*<addsub><mode>3_cc_overflow): Renamed to ...
13501         (*<plusminus_insn><mode>3_cc_overflow): This.
13502         (*<addsub>si3_zext_cc_overflow): Renamed to ...
13503         (*<plusminus_insn>si3_zext_cc_overflow): This.
13504
13505         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
13506         (<plusminus_insn><mode>3): This.
13507         (*<addsub><mode>3): Renamed to ...
13508         (*<plusminus_insn><mode>3): This.
13509         (<sse>_vm<addsub><mode>3): Renamed to ...
13510         (<sse>_vm<plusminus_insn><mode>3): This.
13511         (sse3_h<addsub>v4sf3): Renamed to ...
13512         (sse3_h<plusminus_insn>v4sf3): This.
13513         (sse3_h<addsub>v2df3): Renamed to ...
13514         (sse3_h<plusminus_insn>v2df3): This.
13515         (<plusminus_insn><mode>3): New.
13516         (*<plusminus_insn><mode>3): Likewise.
13517         (sse2_<plusminus_insn><mode>3): Likewise.
13518         (add<mode>): Removed.
13519         (*add<mode>3): Likewise.
13520         (sse2_ssadd<mode>3): Likewise.
13521         (sse2_usadd<mode>3): Likewise.
13522         (sub<mode>3): Likewise.
13523         (*sub<mode>3): Likewise.
13524         (sse2_sssub<mode>3): Likewise.
13525         (sse2_ussub<mode>3): Likewise.
13526
13527 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
13528
13529         * gthr-single.h: Add in required interface elements as per gthr.h.
13530         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
13531         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
13532         Generalize UNUSED macro.
13533         (__gthread_once): Add.
13534         (__gthread_key_create): Add.
13535         (__gthread_key_delete): Add.
13536         (__gthread_getspecific): Add.
13537         (__gthread_setspecific): Add.
13538
13539 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
13540
13541         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
13542         the same size types for the indirect reference on the rhs, then
13543         create a VCE.
13544
13545 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
13546
13547         * config/i386/i386.md
13548         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
13549         one insn template instead of template series.
13550         (*xordi_1_rex64): Ditto.
13551         (*xordi_2_rex64): Ditto.
13552
13553 2008-05-05  Ira Rosen  <irar@il.ibm.com>
13554
13555         PR tree-optimization/36119
13556         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
13557         in case of SLP.
13558
13559 2008-06-04  Jan Hubicka  <jh@suse.cz>
13560
13561         tree-optimization/36100
13562         * tree-pass.h (pass_O0_always_inline): Declare.
13563         * ipa-inline.c (inline_transform): Remove dead code.
13564         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
13565         pass_O0_always_inline): New.
13566         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
13567
13568 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
13569
13570         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
13571         mnemonic in this_param move for TARGET_64BIT.
13572
13573 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
13574
13575         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
13576         (*strmovsi_rex_1): Ditto.
13577         (*strsetsi_1): Ditto.
13578         (*strsetsi_rex_1): Ditto.
13579
13580         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
13581         adddicc expanders using SWI mode iterator.
13582
13583 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13584
13585         PR target/36121
13586         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
13587         argument handling.
13588
13589 2008-05-04  David S. Miller  <davem@davemloft.net>
13590
13591         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
13592         (sparc*-*-linux*): Use linux.h in tm_file.
13593         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
13594         compiler defaulting to 32-bit.
13595         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
13596         no longer needed.
13597         * config/sparc/linux.h: Remove definitions now obtained
13598         properly from linux.h
13599         * config/sparc/linux64.h: Likewise.
13600         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
13601         don't want this setting for 32-bit builds in a biarch compiler.
13602         * doc/install.texi: Add sparc-linux to list of targets
13603         supporting --enable-targets=all.
13604
13605 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
13606
13607         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
13608
13609 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
13610
13611         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
13612         after V4SI_FTYPE_V8HI.
13613         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
13614         case V4SI_FTYPE_V2DF.
13615
13616 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
13617
13618         * doc/invoke.texi (max-flow-memory-locations): Removed.
13619         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
13620
13621 2008-05-03  Richard Guenther  <rguenther@suse.de>
13622
13623         PR middle-end/34973
13624         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
13625
13626 2008-05-02  David S. Miller  <davem@davemloft.net>
13627
13628         * config.gcc (need_64bit_hwint): Document libcpp dependency.
13629
13630 2008-05-02  Simon Baldwin <simonb@google.com>
13631
13632         PR bootstrap/36108
13633         * c-common.h (warn_array_subscript_range): Removed.
13634         * c-common.c (warn_array_subscript_range): Ditto.
13635         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
13636         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
13637
13638 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13639
13640         * config/i386/i386.c (ix86_special_builtin_type): New.
13641         (bdesc_special_args): Likewise.
13642         (ix86_expand_special_args_builtin): Likewise.
13643         (ix86_init_mmx_sse_builtins): Updated.
13644         (ix86_expand_builtin): Updated.
13645         (ix86_expand_store_builtin): Removed.
13646         (ix86_expand_unop_builtin): Likewise.
13647
13648         * config/i386/mm3dnow.h (__v2sf): Moved to ...
13649         * config/i386/mmintrin.h (__v2sf): Here.
13650
13651         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
13652         const __v2sf.
13653         (_mm_loadl_pi): Likewise.
13654         (_mm_storeh_pi): Replace __v2si with __v2sf.
13655         (_mm_storel_pi): Likewise.
13656
13657         * doc/extend.texi: Correct __builtin_ia32_loadhps,
13658         __builtin_ia32_loadlps, __builtin_ia32_storehps,
13659         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
13660         __builtin_ia32_loadlpd.
13661
13662 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13663
13664         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
13665         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
13666         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
13667         (ix86_init_mmx_sse_builtins): Updated.
13668         (ix86_expand_args_builtin): Likewise.
13669         (ix86_expand_builtin): Likewise.
13670         (ix86_expand_unop1_builtin): Renamed to ...
13671         (ix86_expand_unop_vec_merge_builtin): This.
13672
13673 2008-05-01  Jan Hubicka  <jh@suse.cz>
13674
13675         PR bootstrap/36100
13676         * ipa-inline.c (inline_generate_summary): Make static.
13677         (inline_transform): Do not call inlining at -O0; make static.
13678         * passes.c (execute_todo): Add sanity check.
13679         (execute_one_ipa_transform_pass): Execute proper flags.
13680
13681 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
13682
13683         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
13684         (DECL_NONADDRESSABLE_P): Likewise.
13685         * alias.c (record_component_aliases): Fix comment.
13686
13687 2008-05-01  Simon Baldwin <simonb@google.com>
13688
13689         * c-common.h (warn_array_subscript_range): New function.
13690         * c-common.c (warn_array_subscript_range): Ditto.
13691         * tree-vrp.c (check_array_ref): Corrected code to agree with
13692         comment, ignoring only arrays of size 0 or size 1.
13693         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
13694
13695 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13696
13697         * config/i386/i386.c (ix86_builtin_type): Replace
13698         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
13699         (bdesc_args): Updated.
13700         (ix86_init_mmx_sse_builtins): Likewise.
13701         (ix86_expand_args_builtin): Likewise.
13702
13703         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
13704         with __v1di.
13705
13706         * doc/extend.texi: Correct __builtin_ia32_palignr.
13707
13708 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13709
13710         PR target/36095
13711         * config/i386/i386.c (bdesc_crc32): Removed.
13712         (ix86_expand_crc32): Likewise.
13713         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
13714         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
13715         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
13716         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
13717         UINT_FTYPE_UINT_UCHAR.
13718         (bdesc_args): Updated. Add crc32 builtins.
13719         (ix86_init_mmx_sse_builtins): Updated.
13720         (ix86_expand_args_builtin): Updated to support subreg.
13721
13722         * doc/extend.texi: Correct __builtin_ia32_crc32di.
13723
13724 2008-05-01  Jan Hubicka  <jh@suse.cz>
13725
13726         * tree-pass.h (opt_pass): Add IPA_PASS.
13727         (varpool_node, cgraph_node): Forward declare.
13728         (ipa_opt_pass): Define.
13729         (pass_ipa_inline): Turn into ipa_opt_pass.
13730         (pass_apply_inline): Remove.
13731         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
13732         (apply_inline): Turn into ....
13733         (inline_transform): ... this one.
13734         (inline_generate_summary): New function.
13735         (pass_apply_inline): Remove.
13736         * function.h (ipa_opt_pass): Forward declare structure; typedef;
13737         vector.
13738         (struct function): Add ipa_transforms_to_apply.
13739         * passes.c (register_one_dump_file): Work on IPA_PASS.
13740         (init_optimization_passes): Remove pass_inline_parameters and
13741         pass_apply_inline.
13742         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
13743         (execute_one_pass) ... here; apply transforms when possible.
13744         (add_ipa_transform_pass, execute_ipa_summary_asses,
13745         execute_one_ipa_transform_pass): New.
13746         (execute_ipa_pass_list): Update for IPA_PASS type.
13747
13748 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13749
13750         * config/i386/i386.c (ix86_builtin_type): Add
13751         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
13752         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
13753         (bdesc_args): Add SSE4a builtins.
13754         (ix86_init_mmx_sse_builtins): Updated.
13755         (ix86_expand_args_builtin): Likewise.
13756         (ix86_expand_builtin): Likewise.
13757
13758 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
13759
13760         * config/i386/i386.c (ix86_builtin_type): Add
13761         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
13762         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
13763         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
13764         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
13765         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
13766         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
13767         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
13768         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
13769         and DI_FTYPE_DI_DI_INT.
13770         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
13771         (ix86_init_mmx_sse_builtins): Updated.
13772         (ix86_expand_args_builtin): Likewise.
13773         (ix86_expand_builtin): Likewise.
13774         (ix86_expand_binop_imm_builtin): Removed.
13775
13776         * doc/extend.texi: Correct __builtin_ia32_palignr128.
13777
13778 2008-04-30  Richard Guenther  <rguenther@suse.de>
13779
13780         PR tree-optimization/32921
13781         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
13782
13783 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13784
13785         * config/arm/arm.c (arm_unwind_emit): Use
13786         crtl->all_throwers_are_sibcalls instead of
13787         cfun->all_throwers_are_sibcalls.
13788         (arm_output_fn_unwind): Likewise.
13789         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
13790         instead of cfun->uses_pic_offset_table.
13791         (frv_expand_prologue): Likewise.
13792         (frv_frame_pointer_required): Likewise.
13793         (frv_expand_fdpic_call): Likewise.
13794         (frv_emit_movsi): Likewise.
13795         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
13796         cfun->returns_pcc_struct instead of
13797         current_function_returns_pcc_struct.
13798         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
13799         instead of cfun->calls_eh_return.
13800         (m32c_pushm_popm): Likewise.
13801         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
13802         "extern" declaration.
13803
13804 2008-04-30  Richard Guenther  <rguenther@suse.de>
13805
13806         PR tree-optimization/21636
13807         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
13808         constant address.
13809         (evaluate_stmt): Print the likely value.
13810         (ccp_visit_stmt): Avoid excessive vertical spacing.
13811
13812 2008-04-30  Rafael Espindola  <espindola@google.com>
13813
13814         * builtins.c (fold_call_expr): Return realret.
13815         * tree-ssa-threadedge.c
13816         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
13817         __builtin_object_size.
13818
13819 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
13820
13821         * gcc.c (wrapper_string): New variable.
13822         (insert_wrapper): New function.
13823         (execute): New option -wrapper.
13824         * doc/invoke.texi (Overall Options): New driver option -wrapper.
13825
13826 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
13827
13828         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
13829         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
13830         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
13831         from...
13832         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
13833         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
13834         config/rs6000/e500crtres64gprctr.asm,
13835         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
13836         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
13837         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
13838         config/rs6000/e500crtsav64gprctr.asm,
13839         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
13840         config/rs6000/e500crtsavg64gprctr.asm: New files.
13841         * config/rs6000/t-ppccomm: Add build rules for new files.
13842         (LIB2FUNCS_STATIC_EXTRA): Add new files.
13843         * config/rs6000/t-netbsd: Add build rules for new files.
13844         (LIB2FUNCS_STATIC_EXTRA): New variable.
13845         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
13846         (CRTSAVRES_DEFAULT_SPEC): Likewise.
13847         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
13848
13849 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
13850
13851         * config/i386/i386.c (ix86_builtin_type): Add
13852         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
13853         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
13854         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
13855         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
13856         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
13857         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
13858         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
13859         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
13860         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
13861         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
13862         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
13863         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
13864         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
13865         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
13866         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
13867         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
13868         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
13869         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
13870         V1DI_FTYPE_V2SI_V2SI.
13871         (bdesc_2arg): Moved to ...
13872         (bdesc_args): Here.
13873         (ix86_init_mmx_sse_builtins): Updated.
13874         (ix86_expand_args_builtin): Updated.  Take a pointer
13875         to const struct builtin_description.  Handle comparison
13876         builtin functions.
13877         (ix86_expand_sse_compare): Take a new argument for swapping operands.
13878         (ix86_expand_builtin): Updated.
13879
13880         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
13881         (ssse3_pmaddubsw128): This.
13882         (ssse3_pmaddubswv4hi3): Renamed to ...
13883         (ssse3_pmaddubsw): This.
13884
13885         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
13886         (__builtin_ia32_packssdw128): Likewise.
13887         (__builtin_ia32_packuswb128): Likewise.
13888         (__builtin_ia32_pmaddubsw): Likewise.
13889         (__builtin_ia32_pmaddubsw128): Likewise.
13890
13891 2008-04-30  Richard Guenther  <rguenther@suse.de>
13892
13893         PR tree-optimization/14847
13894         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
13895         (recognize_bits_test): Use it.
13896         (recognize_single_bit_test): Likewise.
13897
13898 2008-04-30  Martin Jambor  <mjambor@suse.cz>
13899
13900         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
13901         instead of setting number of formal parameters to zero.
13902         (ipcp_init_stage): Do not set the number of actual parameters to zero
13903         either.
13904         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
13905         which are called with variable number of arguments.
13906         (ipcp_insert_stage): Explicitely skipping all nodes which are
13907         called with variable number of arguments.
13908         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
13909         number of parameters.
13910
13911         * ipa-prop.h (struct ipa_node_params): Added flag
13912         called_with_var_arguments
13913         (ipa_set_param_count): Added.  Changed sole setter to use it.
13914         (ipa_get_param_count): Added.  All readers of param_count
13915         converted to use it instead.
13916         (ipa_set_called_with_variable_arg): Added.
13917         (ipa_is_called_with_var_arguments): Added.
13918         (ipa_get_ith_param): Added.  All readers of param_decls converted
13919         to use it instead.
13920         (ipa_set_cs_argument_count): Added, sole writer to argument_count
13921         changed to use it.
13922         (ipa_get_cs_argument_count): Added, all readers of argument_count
13923         changed to cal it.
13924         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
13925         to use it.
13926
13927         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
13928         (struct ipcp_lattice): Renamed cval_type to type
13929         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
13930
13931         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
13932         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
13933         (ipcp_insert_stage): Changed the type of variable cvalue to tree
13934         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
13935         (build_const_val): Changed the type of parameter cvalue to tree
13936         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
13937         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
13938
13939         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
13940         constant
13941
13942         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
13943         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
13944         (ipa_add_method): Renamed to ipa_push_func_to_list
13945         (ipa_remove_method): Renamed to ipa_pop_func_from_list
13946         (ipa_callsite_param_count): Removed.
13947         (ipa_callsite_param_count_set): Removed.
13948         (ipa_callsite_param): Removed.
13949         (ipa_callsite_callee): Removed.
13950         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
13951         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
13952         (ipa_method_formal_count): Removed.
13953         (ipa_method_formal_count_set): Removed.
13954         (ipa_method_get_tree): Removed.
13955         (ipa_method_tree_map_create): Removed.
13956         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
13957         (ipa_create_param_decls_array): Creates the array itself
13958         (ipa_create_param_decls_array): Temporary variable info instead of
13959         a few dereferences.
13960         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
13961         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
13962         (get_type): Removed.
13963         (ipa_jf_get_info_type): Removed.
13964         (ipa_node_create): Renamed to ipa_create_node_params
13965         (ipa_free): Renamed to ipa_free_all_node_params
13966         (ipa_nodes_create): Renamed to ipa_create_all_node_params
13967         (ipa_edges_create): Renamed to ipa_create_all_edge_args
13968         (ipa_edges_free): Renamed to ipa_free_all_edge_args
13969         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
13970         (ipa_free_all_node_params): Deallocation to jump_functions moved to
13971         ipa_free_all_edge_args
13972         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
13973         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
13974         (ipa_create_methodlist_node): Removed.
13975         (ipa_methodlist_method): Removed.
13976         (ipa_methodlist_method_set): Removed.
13977         (ipa_methodlist_next_method): Removed.
13978         (ipa_methodlist_next_method_set): Removed.
13979         (ipa_method_is_modified): Removed.
13980         (ipa_method_modify_create): Removed.
13981         (ipa_method_modify_init): Temporary variable info instead of a few
13982         dereferences.
13983         (ipa_detect_param_modifications): Temporary variable info instead of
13984         a few dereferences.
13985         (ipa_compute_jump_functions): Temporary variable info instead of
13986         a few dereferences.
13987         (ipa_method_modify_set): Removed.
13988         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
13989         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
13990         than craph_node as the first parameter.
13991         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
13992         (ipa_method_modify_init): Removed.
13993         (ipa_compute_jump_functions): Added a temp variable instead of
13994         repeatadly dereferencing the cgraph_edge.aux pointer
13995         (ipa_callsite_param_set_type): Removed.
13996         (ipa_compute_jump_functions): i renamed to index and moved to
13997         an inner block
13998         (ipa_callsite_param_set_info_type_formal): Removed.
13999         (ipa_callsite_param_set_info_type): Removed.
14000         (ipa_callsite_param_map_create): Removed.
14001         (ipa_callsite_tree): Removed.
14002         (ipa_callsite_caller): Removed.
14003         (ipa_pop_func_from_list): return_method removed to return_func
14004
14005         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14006         prefixed all values with IPA_. Changed all users.
14007         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14008         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14009         and FORMAL_IPATYPE IPA_PASS_THROUGH.
14010         (union parameter_info): Renamed to jump_func_value.
14011         (union jump_func_value): Renamed value to constant
14012         (struct ipa_jump_func): Renamed info_type to value
14013         (struct ipa_node): Renamed to ipa_node_params
14014         (struct ipa_node_params): Renamed ipa_arg_num to param_count
14015         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14016         (struct ipa_node_params): Renamed ipa_mod to modified_flags
14017         (struct ipa_edge): Renamed to ipa_edge_args
14018         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14019         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14020         (struct ipa_methodlist): Renamed to ipa_func_list
14021         (struct ipa_func_list): method_p renamed to node, next_method
14022         renamed to next
14023         (ipa_methodlist_p): Removed, switched all users to struct pointer
14024         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14025
14026 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
14027
14028         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14029         (rs6000_emit_epilogue): Use backchain to restore only when we
14030         have a large frame.  Make use of frame pointer to restore if we
14031         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14032
14033 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
14034
14035         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14036         Add mode to zero_extract.
14037         (sign bit tests peepholes): (Ditto.).
14038
14039 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14040
14041         * config/i386/i386.c (ix86_builtins): Replace Prescott New
14042         Instructions in comments with SSE3.
14043         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
14044         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14045         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14046         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14047         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14048         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14049         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14050         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14051         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14052         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14053         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14054         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14055         (bdesc_sse_args): Renamed to ...
14056         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14057         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14058         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14059         IX86_BUILTIN_FABSQ.
14060         (bdesc_1arg): Moved to ...
14061         (bdesc_args): Here.
14062         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
14063         Instructions in comments with SSE3.
14064         (ix86_expand_sse_operands_builtin): Renamed to ...
14065         (ix86_expand_args_builtin): This.  Updated.
14066         (ix86_expand_unop1_builtin): Update comments.
14067         (ix86_expand_builtin): Updated.
14068
14069 2008-04-29  Richard Guenther  <rguenther@suse.de>
14070
14071         PR tree-optimization/36078
14072         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
14073         Update virtual SSA form after cleaning up the CFG.
14074
14075 2008-04-29  Richard Guenther  <rguenther@suse.de>
14076
14077         PR middle-end/15255
14078         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
14079
14080 2008-04-29  Richard Guenther  <rguenther@suse.de>
14081
14082         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
14083         (compute_may_aliases): Do not call finalize_ref_all_pointers.
14084         (compute_flow_insensitive_aliasing): Do not treat
14085         PTR_IS_REF_ALL pointers special.
14086         (get_smt_for): Likewise.
14087         (may_alias_p): Re-structure.
14088         (is_escape_site): A ref-all pointer conversion is not an escape site.
14089         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
14090         PTR_IS_REF_ALL pointers special.
14091         * tree-ssa-structalias.h (struct alias_info): Remove
14092         ref_all_symbol_mem_tag field.
14093         (PTR_IS_REF_ALL): Remove.
14094
14095 2008-04-29  Richard Guenther  <rguenther@suse.de>
14096
14097         PR middle-end/36077
14098         * fold-const.c (extract_muldiv_1): In combining division constants
14099         make sure to never overflow.
14100
14101 2008-04-29  Nick Clifton  <nickc@redhat.com>
14102
14103         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
14104
14105 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14106
14107         PR bootstrap/35169
14108         * optc-gen.awk: Work around HP-UX/IA awk bug.
14109
14110 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
14111
14112         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
14113         2008-04-25 commit.
14114
14115 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14116
14117         PR target/36073
14118         * config/i386/i386.md
14119         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
14120         Change operand 1 predicate to nonimmediate_operand.
14121
14122 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
14123
14124         PR debug/36060
14125         * dwarf2out.c (struct die_struct): Mark as chain_circular through
14126         die_sub field.
14127         * gengtype.c (walk_type, write_func_for_structure): Handle
14128         chain_circular.
14129         * doc/gty.texi: Document chain_circular.
14130
14131 2008-04-28  Richard Guenther  <rguenther@suse.de>
14132
14133         PR tree-optimization/36066
14134         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
14135         SCEV and loop.
14136
14137 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14138
14139         PR target/36064
14140         * config/i386/i386.md
14141         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
14142         Use match_scratch instead of match_operand for operands 3 and 4.
14143
14144 2008-04-27  Richard Guenther  <rguenther@suse.de>
14145
14146         PR tree-optimization/18754
14147         PR tree-optimization/34223
14148         * tree-pass.h (pass_complete_unrolli): Declare.
14149         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
14150         loop size before and after unconditionally of UL_NO_GROWTH in effect.
14151         Rewrite loop into loop closed SSA form if it is not already.
14152         (tree_unroll_loops_completely): Re-structure to iterate over
14153         innermost loops with intermediate CFG cleanups.
14154         Unroll outermost loops only if requested or the code does not grow
14155         doing so.
14156         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
14157         loops are available.
14158         (tree_vectorize): Instead do so here.
14159         (tree_complete_unroll): Also unroll outermost loops.
14160         (tree_complete_unroll_inner): New function.
14161         (gate_tree_complete_unroll_inner): Likewise.
14162         (pass_complete_unrolli): New pass.
14163         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
14164         uses outside of the loop.
14165         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14166         form if it is available.
14167         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14168         * passes.c (init_optimization_passes): Schedule complete inner
14169         loop unrolling pass before the first CCP pass after final inlining.
14170
14171 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
14172
14173         * targhooks.h (default_emutls_var_fields,
14174         default_emutls_var_init): Declare.
14175         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14176         * target.h (struct gcc_target): Add struct emutls member.
14177         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14178         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14179         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
14180         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
14181         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
14182         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
14183         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
14184         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
14185         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
14186         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
14187         emit debug information.
14188         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
14189         * varasm.c: Include targhooks.h.
14190         (emutls_object_section, emutls_tmpl_section): New.
14191         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
14192         (EMUTLS_SEPARATOR): New.
14193         (prefix_name): New.
14194         (get_emutls_object_name): New.
14195         (default_emutls_var_fields): New, broken out of ...
14196         (get_emutls_object_type): ... here.  Adjust to use target hooks.
14197         (get_emutls_init_templ_addr): Adjust to use target hooks.
14198         (emutls_decl): Adjust to use target hooks.
14199         (emutls_finish): Likewise.
14200         (default_emutls_var_init): New, broken out of ...
14201         (assemble_variable): ... here.  Adjust to use target hooks.
14202         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
14203         SECCAT_EMUTLS_TMPL.
14204         * c-common.c (handle_section_attribute): Prevent overriding
14205         sections for emulated tls with special sections.
14206         * config/i386/i386.c (x86_64_elf_select_section): Add
14207         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
14208         (x86_64_elf_unique_section): Likewise.
14209         * config/vxworks.c: Include tree.h.
14210         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
14211         (vxworks_override_options): Set TLS scheme.
14212         * doc/tm.texi (Emulated TLS): New node.
14213
14214 2008-04-26  Simon Baldwin <simonb@google.com>
14215
14216         PR c/35652
14217         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
14218         with propagated string constants.
14219
14220 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
14221
14222         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
14223         constraint for operand 2 when operand 0 is memory operand.
14224         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
14225         operand 0 is memory operand.
14226         (fix_trunc<mode>_i387_with_temp): Ditto.
14227         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
14228         operand 2 when operand 1 is memory operand.
14229         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
14230         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
14231         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
14232         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
14233         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
14234         operands 2,3 and 4 when operand 1 is memory operand.
14235         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
14236         is memory operand.
14237         (fistdi2_floor_with_temp): Ditto.
14238         (fist<mode>2_floor_with_temp): Ditto.
14239         (fistdi2_ceil_with_temp): Ditto.
14240         (fist<mode>2_ceil_with_temp): Ditto.
14241         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
14242
14243 2008-04-26  David Daney  <ddaney@avtrex.com>
14244
14245         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
14246         unspec_volitile.
14247         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
14248         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14249         UNSPEC_UPDATE_GOT_VERSION): Renumber.
14250         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
14251         (compare_and_swap_12): New insn.
14252         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
14253         * config/mips/mips.c (mips_force_binary): New function.
14254         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
14255         (mips_expand_compare_and_swap_12): New function.
14256         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
14257
14258 2008-04-25  Jan Hubicka  <jh@suse.cz>
14259
14260         PR testsuite/35843
14261         * cfgexpand.c (pass_expand): Turn into RTL pass.
14262         * passes.c (execute_one_pass): Do pass typechecking after execution.
14263         * tree-pass.h (pass_expand): Turn into RTL pass.
14264
14265         * function.h (struct rtl_data): Move here fields
14266         accesses_prior_frames, calls_eh_return, saves_all_registers,
14267         has_nonlocal_goto, has_asm_statement, is_thunk,
14268         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
14269         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
14270         arg_pointer_save_area_init from struct function; turn into bool.
14271         (struct function): Move
14272         calls_eh_return, saves_all_registers, has_nonlocal_goto,
14273         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
14274         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
14275         tail_call_emit, arg_pointer_save_area_init
14276         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
14277         (current_function_returns_struct, current_function_returns_pcc_struct,
14278         current_function_calls_setjmp, current_function_calls_alloca,
14279         current_function_accesses_prior_frames,
14280         current_function_calls_eh_return, current_function_is_thunk,
14281         current_function_stdarg, current_function_profile,
14282         current_function_limit_stack, current_function_uses_pic_offset_table,
14283         current_function_uses_const_pool, current_function_has_nonlocal_label,
14284         current_function_saves_all_registers,
14285         current_function_has_nonlocal_goto,
14286         current_function_has_asm_statement): Remove accesor macros.
14287         * ra-conflict.c (global_conflicts): Update.
14288         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
14289         (suitable_for_tail_call_opt_p): Update.
14290         * builtins.c (expand_builtin_return_addr): Update.
14291         (expand_builtin_setjmp_setup): Update.
14292         (expand_builtin_nonlocal_goto): Update.
14293         * final.c (final_start_function): Update.
14294         (profile_function): Update.
14295         (leaf_function_p): Update.
14296         (only_leaf_regs_used): Update.
14297         * df-scan.c (df_get_exit_block_use_set): Update.
14298         * dojump.c (clear_pending_stack_adjust): Update.
14299         * tree-stdarg.c (gate_optimize_stdarg): Update.
14300         * gimple-low.c (lower_function_body): Update.
14301         * global.c (compute_regsets): Update.
14302         (global_alloc): Update.
14303         * dwarf2out.c (dwarf2out_begin_prologue): Update.
14304         * expr.c (expand_assignment): Update.
14305         * dse.c (dse_step0): Update.
14306         (dse_step1): Update.
14307         * c-decl.c (store_parm_decls): Update.
14308         * local-alloc.c (combine_regs): Update.
14309         (find_free_reg): Update.
14310         * function.c (assign_parms_augmented_arg_list): Update.
14311         (assign_parm_find_data_types): Update.
14312         (assign_parms): Update.
14313         (allocate_struct_function): Update.
14314         (expand_function_start): Update.
14315         (expand_function_end): Update.
14316         (get_arg_pointer_save_area): Update.
14317         (thread_prologue_and_epilogue_insns): Update.
14318         (rest_of_match_asm_constraints): Update.
14319         * stor-layout.c (variable_size): Update.
14320         * gcse.c (gcse_main): Update.
14321         (bypass_jumps): Update.
14322         * gimplify.c (gimplify_function_tree): Update.
14323         * calls.c (emit_call_1): Update.
14324         (expand_call): Update.
14325         * bt-load.c (compute_defs_uses_and_gen): Update.
14326         * except.c (sjlj_assign_call_site_values): Update.
14327         (sjlj_emit_function_enter): Update.
14328         (can_throw_external): Update.
14329         (set_nothrow_function_flags): Update.
14330         (expand_builtin_unwind_init): Update.
14331         (expand_eh_return): Update.
14332         (convert_to_eh_region_ranges): Update.
14333         (output_function_exception_table): Update.
14334         * emit-rtl.c (gen_tmp_stack_mem): Update.
14335         * cfgexpand.c (expand_used_vars): Update.
14336         (tree_expand_cfg): Update.
14337         * cfgcleanup.c (rest_of_handle_jump): Update.
14338         * explow.c (allocate_dynamic_stack_space): Update.
14339         * varasm.c (assemble_start_function): Update.
14340         (force_const_mem): Update.
14341         (mark_constant_pool): Update.
14342         * tree-optimize.c (tree_rest_of_compilation): Update.
14343         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
14344         * tree-cfg.c (notice_special_calls): Update.
14345         (is_ctrl_altering_stmt): Update.
14346         (tree_can_make_abnormal_goto): Update.
14347         (tree_purge_dead_abnormal_call_edges): Update.
14348         * config/alpha/predicates.md: Update.
14349         * config/alpha/alpha.c (alpha_sa_mask): Update.
14350         (alpha_sa_size): Update.
14351         (alpha_does_function_need_gp): Update.
14352         (alpha_expand_prologue): Update.
14353         (alpha_start_function): Update.
14354         (alpha_output_function_end_prologue): Update.
14355         (alpha_expand_epilogue): Update.
14356         * config/frv/frv.c (frv_stack_info): Update.
14357         (frv_expand_epilogue): Update.
14358         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
14359         (s390_register_info): Update.
14360         (s390_frame_info): Update.
14361         (s390_init_frame_layout): Update.
14362         (s390_can_eliminate): Update.
14363         (save_gprs): Update.
14364         * config/spu/spu.c (spu_split_immediate): Update.
14365         (need_to_save_reg): Update.
14366         (spu_expand_prologue): Update.
14367         (spu_expand_epilogue): Update.
14368         * config/sparc/sparc.md: Update.
14369         * config/sparc/sparc.c (eligible_for_return_delay): Update.
14370         (sparc_tls_got): Update.
14371         (legitimize_pic_address): Update.
14372         (sparc_emit_call_insn): Update.
14373         (sparc_expand_prologue): Update.
14374         (output_return): Update.
14375         (print_operand): Update.
14376         (sparc_function_ok_for_sibcall): Update.
14377         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
14378         * config/m32r/m32r.md: Update.
14379         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
14380         (m32r_compute_frame_size): Update.
14381         (m32r_expand_prologue): Update.
14382         (m32r_expand_epilogue): Update.
14383         (m32r_legitimize_pic_address): Update.
14384         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
14385         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14386         * config/i386/i386.c (ix86_frame_pointer_required): Update.
14387         (gen_push): Update.
14388         (ix86_save_reg): Update.
14389         (ix86_compute_frame_layout): Update.
14390         (ix86_expand_prologue): Update.
14391         (ix86_expand_epilogue): Update.
14392         * config/sh/sh.c (output_stack_adjust): Update.
14393         (calc_live_regs): Update.
14394         (sh5_schedule_saves): Update.
14395         (sh_expand_prologue): Update.
14396         (sh_expand_epilogue): Update.
14397         (sh_setup_incoming_varargs): Update.
14398         (sh_allocate_initial_value): Update.
14399         (sh_get_pr_initial_val): Update.
14400         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
14401         * config/sh/sh.md (label:): Update.
14402         * config/avr/avr.c (out_movhi_mr_r): Update.
14403         * config/crx/crx.h (enum): Update.
14404         * config/xtensa/xtensa.h (along): Update.
14405         * config/stormy16/stormy16.c Update.
14406         (xstormy16_compute_stack_layout): Update.
14407         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
14408         (fr30_expand_prologue): Update.
14409         * config/cris/cris.c (cris_conditional_register_usage): Update.
14410         (cris_reg_saved_in_regsave_area): Update.
14411         (cris_initial_frame_pointer_offset): Update.
14412         (cris_simple_epilogue): Update.
14413         (cris_expand_prologue): Update.
14414         (cris_expand_epilogue): Update.
14415         (cris_expand_pic_call_address): Update.
14416         (cris_asm_output_symbol_ref): Update.
14417         (cris_asm_output_label_ref): Update.
14418         * config/cris/cris.md Update.
14419         * config/iq2000/iq2000.c (compute_frame_size): Update.
14420         (iq2000_expand_epilogue): Update.
14421         * config/mt/mt.h (save_direction): Update.
14422         * config/mn10300/mn10300.c (mn10300_function_value): Update.
14423         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
14424         (ia64_secondary_reload_class): Update.
14425         * config/m68k/m68k.c (m68k_save_reg): Update.
14426         (m68k_expand_prologue): Update.
14427         (m68k_expand_epilogue): Update.
14428         (legitimize_pic_address): Update.
14429         * config/rs6000/rs6000.c (rs6000_got_register): Update.
14430         (first_reg_to_save): Update.
14431         (first_altivec_reg_to_save): Update.
14432         (compute_vrsave_mask): Update.
14433         (compute_save_world_info): Update.
14434         (rs6000_stack_info): Update.
14435         (spe_func_has_64bit_regs_p): Update.
14436         (rs6000_ra_ever_killed): Update.
14437         (rs6000_emit_eh_reg_restore): Update.
14438         (rs6000_emit_allocate_stack): Update.
14439         (rs6000_emit_prologue): Update.
14440         (rs6000_emit_epilogue): Update.
14441         (rs6000_output_function_epilogue): Update.
14442         (output_profile_hook): Update.
14443         (rs6000_elf_declare_function_name): Update.
14444         * config/rs6000/rs6000.h (rs6000_args): Update.
14445         * config/rs6000/rs6000.md: Update.
14446         * config/mcore/mcore.c (mcore_expand_prolog): Update.
14447         * config/arc/arc.c (arc_output_function_epilogue): Update.
14448         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
14449         * config/darwin.c (machopic_function_base_name): Update.
14450         * config/score/score3.c (score3_compute_frame_size): Update.
14451         (rpush): Update.
14452         (rpop): Update.
14453         (score3_epilogue): Update.
14454         * config/score/score7.c (score7_compute_frame_size): Update.
14455         (score7_prologue): Update.
14456         (score7_epilogue): Update.
14457         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
14458         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14459         * config/arm/arm.c (use_return_insn): Update.
14460         (require_pic_register): Update.
14461         (arm_load_pic_register): Update.
14462         (arm_compute_save_reg0_reg12_mask): Update.
14463         (arm_compute_save_reg_mask): Update.
14464         (thumb1_compute_save_reg_mask): Update.
14465         (output_return_instruction): Update.
14466         (arm_output_function_prologue): Update.
14467         (arm_output_epilogue): Update.
14468         (arm_get_frame_offsets): Update.
14469         (arm_expand_prologue): Update.
14470         (thumb_pushpop): Update.
14471         (thumb_exit): Update.
14472         (thumb1_expand_prologue): Update.
14473         (thumb1_expand_epilogue): Update.
14474         (arm_unwind_emit): Update.
14475         (arm_output_fn_unwind): Update.
14476         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
14477         * config/arm/arm.md: Update.
14478         * config/pa/pa.md: Update.
14479         * config/pa/pa.c (legitimize_pic_address): Update.
14480         (compute_frame_size): Update.
14481         (hppa_expand_prologue): Update.
14482         (hppa_expand_epilogue): Update.
14483         (borx_reg_operand): Update.
14484         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
14485         (HARD_REGNO_RENAME_OK): Update.
14486         * config/mips/mips.c (mips_global_pointer): Update.
14487         (mips_save_reg_p): Update.
14488         (mips_compute_frame_info): Update.
14489         (mips_frame_pointer_required): Update.
14490         (mips_expand_prologue): Update.
14491         (mips_expand_epilogue): Update.
14492         (mips_can_use_return_insn): Update.
14493         (mips_reorg_process_insns): Update.
14494         * config/v850/v850.c (compute_register_save_size): Update.
14495         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
14496         * config/mmix/mmix.c (along): Update.
14497         (mmix_expand_epilogue): Update.
14498         * config/bfin/bfin.c (legitimize_pic_address): Update.
14499         (must_save_p): Update.
14500         (stack_frame_needed_p): Update.
14501         (add_to_reg): Update.
14502         (bfin_expand_prologue): Update.
14503         * stmt.c (expand_asm_operands): Update.
14504         * reload1.c (reload): Update.
14505         (init_elim_table): Update.
14506
14507 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
14508
14509         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
14510
14511 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
14512
14513         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
14514         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
14515         (mov<mode>): Removed.
14516         (*movv4sf_internal): Likewise.
14517         (*movv2df_internal): Likewise.
14518
14519 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
14520
14521         * config.gcc (crx-*-elf): Remove deprecation.
14522
14523 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
14524
14525         * config/i386/cygming-crtend.c (register_frame_ctor): Register
14526         __gcc_deregister_frame with atexit.
14527         (deregister_frame_dtor): Remove.
14528
14529 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
14530             Nathan Sidwell  <nathan@codesourcery.com>
14531
14532         * config/rs6000/rs6000.opt (mspe): Remove Var property.
14533         (misel): Likewise.
14534         * config/rs6000/rs6000.h (rs6000_spe): Declare.
14535         (rs6000_isel): Likewise.
14536         * config/rs6000/rs6000.c (rs6000_spe): New variable.
14537         (rs6000_isel): New variable.
14538         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
14539
14540 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14541
14542         PR c++/35758
14543         * c-common.c (handle_vector_size_attribute): Call
14544         lang_hooks.types.reconstruct_complex_type instead of
14545         reconstruct_complex_type.
14546         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
14547         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
14548         * langhooks.h (struct lang_hooks_for_types): Add
14549         reconstruct_complex_type hook.
14550         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
14551         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14552
14553 2008-04-24  Richard Guenther  <rguenther@suse.de>
14554
14555         * c-common.h (check_builtin_function_arguments): Declare.
14556         * c-common.c (validate_nargs): New function.
14557         (check_builtin_function_arguments): Likewise.
14558         * c-typeck.c (build_function_call): Call
14559         check_builtin_function_arguments.
14560         * builtins.c (fold_builtin_classify): Remove error reporting code.
14561         (fold_builtin_unordered_cmp): Likewise.
14562         (fold_builtin_1): Likewise.
14563         (fold_builtin_n): Likewise.
14564
14565 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14566
14567         PR tree-optimization/36008
14568         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
14569         the original op1, rather than delta by step.
14570
14571 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
14572             Sebastian Pop  <sebastian.pop@amd.com>
14573
14574         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
14575         eliminate_local_variables_stmt, eliminate_local_variables,
14576         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
14577         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
14578         of code delimited by two edges in the CFG.
14579         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
14580         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
14581         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
14582         the case of parallelisation of reductions.
14583         (expr_invariant_in_region_p): New.
14584
14585         * tree-flow.h (gather_blocks_in_sese_region): Declared.
14586         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
14587
14588 2008-04-24  Ira Rosen  <irar@il.ibm.com>
14589             Richard Guenther  <rguenther@suse.de>
14590
14591         PR tree-optimization/36034
14592         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
14593         incapable of dealing with loads with gaps.
14594
14595 2008-04-24  Rafael Espindola  <espindola@google.com>
14596
14597         * tree-flow.h (vrp_evaluate_conditional): Change signature.
14598         * tree-ssa-propagate.c (fold_predicate_in): Update call to
14599         vrp_evaluate_conditional.
14600         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
14601         (vrp_evaluate_conditional): Split the cond argument.
14602         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
14603         (simplify_stmt_for_jump_threading): Update call to
14604         vrp_evaluate_conditional.
14605
14606 2008-04-24  Ira Rosen  <irar@il.ibm.com>
14607
14608         PR tree-optimization/35982
14609         * tree-vect-analyze.c (vect_check_interleaving): Check that the
14610         interleaved data-refs are of the same type.
14611
14612 2008-04-24  Danny Smith  <dannysmith@users.net>
14613
14614         * c-format.c (check_format_info_main): Use strncmp rather than a
14615         magic prefix to handle multichar length specs.
14616         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
14617         Don't prefix "I64" and "I32" with '\0'.
14618
14619 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
14620
14621         PR target/36015
14622         * config/i386/i386.c (init_cumulative_args): Don't pass anything
14623         in registers for -m32 only if stdarg_p (fntype).
14624
14625 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
14626
14627         PR rtl-optimization/36006
14628         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
14629         temp to op0 in order to avoid invalid rtx sharing.
14630
14631 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
14632
14633         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
14634         check TREE_INVARIANT.
14635         * tree-gimple.c (is_gimple_address): New.
14636         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
14637         * tree-gimple.h (is_gimple_address): New.
14638         * tree.h (decl_address_invariant_p): New.
14639         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
14640         (build_string): Likewise.
14641         (decl_address_invariant_p): New, from is_gimple_invariant_address.
14642         (tree_invariant_p_1): Likewise.
14643         (save_expr): Use it.
14644         (tree_invariant_p): New.
14645         (skip_simple_arithmetic): Use it.
14646         (stabilize_reference_1): Use it.
14647         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
14648         simplify.
14649         (build1_stat): Drop code to compute TREE_INVARIANT.
14650         (build2_stat): Drop code to compute TREE_INVARIANT.
14651         (build3_stat): Drop code to compute TREE_INVARIANT.
14652         (build4_stat): Drop code to compute TREE_INVARIANT.
14653         (build5_stat): Drop code to compute TREE_INVARIANT.
14654         (build7_stat): Drop code to compute TREE_INVARIANT.
14655         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
14656         * tree.h (struct tree_base): Remove invariant_flag.
14657         (TREE_INVARIANT): Remove.
14658         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
14659         (fold_builtin_expect): Check TREE_CONSTANT.
14660         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
14661         * c-tree.h (c_expr_to_decl): Drop third parameter.
14662         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
14663         (build_c_cast): Don't set TREE_INVARIANT.
14664         (pop_init_level): Don't set TREE_INVARIANT.
14665         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
14666         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
14667         TREE_CONSTANT.
14668         (gimplify_init_constructor): Don't set TREE_INVARIANT.
14669         (gimplify_addr_expr): Adjust comment.
14670         * tree-mudflap.c (mf_build_string):
14671         * print-tree.c (print_node): Don't print TREE_INVARIANT.
14672         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
14673         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
14674         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
14675         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
14676         * langhooks.h (struct lang_hooks): Drop third parameter from
14677         expr_to_decl.
14678
14679 2008-04-23  Richard Guenther  <rguenther@suse.de>
14680
14681         PR tree-optimization/27799
14682         PR tree-optimization/32921
14683         PR tree-optimization/32624
14684         * tree-ssa-structalias.c (merge_smts_into): Only merge the
14685         SMTs aliases and the tag itself into the solution.
14686         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
14687         merge the points-to solution back into the SMT aliases.
14688         (may_alias_p): Use alias_set_subset_of instead of
14689         aliases_conflict_p.  A pointer which points to
14690         memory with alias set zero may access any variable.
14691
14692 2008-04-23  Richard Guenther  <rguenther@suse.de>
14693
14694         * alias.c (alias_set_subset_of): Correctly handle asking
14695         if zero is a subset of an alias set with zero child.
14696         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
14697         (compute_flow_insensitive_aliasing): Correctly walk all
14698         pointers.  Do not unnecessarily union sets.
14699
14700 2008-04-23  Richard Guenther  <rguenther@suse.de>
14701
14702         PR middle-end/36021
14703         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
14704
14705 2008-04-22  Tomas Bily  <tbily@suse.cz>
14706
14707         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
14708         unreachable case.
14709         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
14710         NON_LVALUE_EXPR.
14711         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14712         * tree-ssa-structalias.c (get_constraint_for): Likewise.
14713         * tree-inline.c (estimate_num_insns_1): Likewise.
14714         * varasm.c (const_hash_1, compare_constant, copy_constant)
14715         (compute_reloc_for_constant, output_addressed_constants): Likewise.
14716         * emit-rtl.c (component_ref_for_mem_expr)
14717         (set_mem_attributes_minus_bitpos): Likewise.
14718         * expr.c (highest_pow2_factor, expand_expr_real_1, )
14719         (is_aligning_offset): Likewise.
14720         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
14721         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
14722         * dojump.c (do_jump): Likewise.
14723         * builtins.c (get_pointer_alignment, get_memory_rtx)
14724         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
14725         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
14726
14727 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
14728
14729         PR rtl-optimization/36017
14730         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
14731         expanding the library call.
14732
14733 2008-04-22  Ian Lance Taylor  <iant@google.com>
14734
14735         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
14736         than size_in_bytes.
14737
14738 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
14739
14740         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
14741         of LR/CTR moves for Power6.
14742
14743 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14744
14745         PR middle-end/36003
14746         * passes.c (init_optimization_passes): Remove
14747         pass_fast_rtl_byte_dce.
14748
14749 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
14750
14751         PR target/29096
14752         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
14753         builtin functions to generate faster code.
14754         (_mm_cvtpu16_ps): Ditto.
14755         (_mm_cvtpi32x2_ps): Ditto.
14756
14757 2008-04-22  Nick Clifton  <nickc@redhat.com>
14758
14759         * common.opt (ftree-loop-distribution): Add Optimization
14760         attribute.
14761
14762         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
14763         (frv_expand_builtin_va_start): Likewise.
14764
14765         * config/arm/arm.c (thumb_find_work_register): Fix location of
14766         argument register count.
14767
14768 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14769
14770         Support scheduling for ColdFire V1 and V3 microarchitecture.
14771         Improve scheduling of multiplication instructions.
14772
14773         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
14774         (mac): New instruction attribute.
14775         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
14776         (m68k_sched_mac): New variable.
14777         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
14778         Handle cfv1 and cfv3.
14779         (max_insn_size): New static variable.
14780         (struct _sched_ib): New type.
14781         (sched_ib): New static variable.
14782         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
14783         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
14784         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
14785         Update.
14786         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
14787         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
14788         new variables.  Update.
14789         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14790         Add modeling of cfv3 instruction buffer.  Update.
14791         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
14792         * config/m68k/m68k.h (TUNE_CFV3): New macro.
14793         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
14794         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
14795         a particular reservation applies to.
14796         (type2): Reorganize attribute values.  Rename alu to alu_reg,
14797         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
14798         to mul_l and mul_w.
14799         (cf_ib_*): Simplify description of instruction buffer.
14800         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
14801         (cf_mem): Split into cf_mem1 and cf_mem2.
14802         (cf_v2_move_??): Rename to cfv12_alu_??.
14803         (cf_v2_move_l_??): Rename to cfv12_omove_??.
14804         (cf_v2_mul_??): Remove reservations.
14805         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
14806         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
14807         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
14808         appropriate place.
14809         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
14810         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
14811         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
14812         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
14813         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
14814         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
14815         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
14816         expansions of the above reservations for instructions of sizes
14817         1, 2 and 3 words.
14818
14819 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14820
14821         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
14822
14823 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
14824
14825         * coverage.c: Include tree-pass.h.
14826         (coverage_counter_alloc): Print da_file_name to the dump file.
14827
14828 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
14829
14830         * sbitmap.c (sbitmap_range_empty_p): New function.
14831         * sbitmap.h (sbitmap_range_empty_p): New function.
14832         * bitmap.h: Now includes obstack.h.
14833
14834 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
14835             Kenneth Zadeck  <zadeck@naturalbridge.com>
14836
14837         * dbgcnt.def (ra_byte_scan): Added.
14838         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
14839         when the last hit happens for a counter.
14840         * timevar.def (TV_DF_BYTE_LR): New variable.
14841         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
14842         * passes.c (pass_fast_rtl_byte_dce): New pass.
14843         * fwprop.c (update_df): Added mode to call df_ref_create.
14844         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
14845         DF_REF_EXTRACT_OFFSET.
14846         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
14847         DF_BYTE_LR_OUT, df_byte_lr): New macro.
14848         (df_mm): New enum.
14849         (df_ref_extract): Added mode field.
14850         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
14851         DF_REF_EXTRACT_OFFSET.
14852         (DF_REF_EXTRACT_MODE): New macro.
14853         (df_byte_lr_bb_info): New structure.
14854         (df_print_byte_regset, df_compute_accessed_bytes,
14855         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
14856         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
14857         df_byte_lr_simulate_uses,
14858         df_byte_lr_simulate_artificial_refs_at_top,
14859         df_byte_lr_simulate_artificial_refs_at_end,
14860         df_compute_accessed_bytes): New function.
14861         (df_ref_create): Add parameter.
14862         (df_byte_lr_get_bb_info): New inline function.
14863         * df-scan.c (df_ref_record, df_uses_record,
14864         df_ref_create_structure): Added mode parameter.
14865         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
14866         df_defs_record, df_uses_record, df_get_conditional_uses,
14867         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
14868         df_entry_block_defs_collect, df_exit_block_uses_collect):
14869         Added mode parameter to calls to df_ref_record, df_uses_record,
14870         df_ref_create_structure.
14871         (df_ref_equal_p, df_ref_compare): Added test for modes.
14872         (df_ref_create_structure): Added code to set mode.  Renamed
14873         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
14874         DF_REF_EXTRACT_OFFSET.
14875         * df-core.c (df_print_byte_regset): New function.
14876         * df-byte-scan.c: New file.
14877         * df-problems.c (df_rd_transfer_function): Removed unnecessary
14878         calls to BITMAP_FREE.
14879         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
14880         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
14881         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
14882         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
14883         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
14884         df_byte_lr_local_compute, df_byte_lr_init,
14885         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
14886         df_byte_lr_transfer_function, df_byte_lr_free,
14887         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
14888         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
14889         df_byte_lr_simulate_uses,
14890         df_byte_lr_simulate_artificial_refs_at_top,
14891         df_byte_lr_simulate_artificial_refs_at_end): New function.
14892         * dce.c (byte_dce_process_block): New function.
14893         (dce_process_block): au is now passed in rather than computed
14894         locally.  Changed loops that look at artificial defs to not look
14895         for conditional or partial ones, because there never are any.
14896         (fast_dce): Now is able to drive byte_dce_process_block or
14897         dce_process_block depending on the kind of dce being done.
14898         (rest_of_handle_fast_dce): Add parameter to fast_dce.
14899         (rest_of_handle_fast_byte_dce): New function.
14900         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
14901         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
14902
14903 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
14904
14905         PR fortran/35019
14906         * gcc.h: Added fortran options that take arguments to
14907         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
14908         macros.
14909
14910 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
14911
14912         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
14913         scalarization if on the LHS and not a full access.
14914
14915 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14916
14917         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
14918
14919 2008-04-18  Rafael Espindola  <espindola@google.com>
14920
14921         * tree-vrp.c (find_case_label_index): Fix the binary search.
14922         (find_case_label_range): New.
14923         (vrp_visit_switch_stmt): Use find_case_label_range.
14924         (simplify_switch_using_ranges): Use find_case_label_range.
14925
14926 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14927
14928         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
14929         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
14930
14931 2008-04-18  Tom Tromey  <tromey@redhat.com>
14932
14933         PR libcpp/15500:
14934         * doc/cpp.texi (Implementation-defined behavior): Mention
14935         -finput-charset.
14936
14937 2008-04-18  Ian Lance Taylor  <iant@google.com>
14938
14939         * fold-const.c (pointer_may_wrap_p): New static function.
14940         (fold_comparison): Add another test for pointer overflow.  Use
14941         pointer_may_wrap_p to disable some false positives.
14942
14943 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
14944
14945         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
14946         (fname_as_string): Match updated cpp_interpret_string prototype.
14947         (fix_string_type): Support char16_t* and char32_t*.
14948         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
14949         derivative) nodes.  Register as builtin if C++0x.
14950         (c_parse_error): Support CPP_CHAR{16,32}.
14951         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
14952         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
14953         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
14954         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
14955         CTI_CHAR32_ARRAY_TYPE>: New elements.
14956         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
14957         char32_type_node, signed_char32_type_node, char16_array_type_node,
14958         char32_array_type_node): New defines.
14959         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
14960         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
14961         (lex_string): Support CPP_STRING{16,32}, match updated
14962         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
14963         (lex_charconst): Support CPP_CHAR{16,32}.
14964         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
14965         and CPP_STRING{16,32}.
14966
14967 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14968
14969         PR bootstrap/35457
14970         * aclocal.m4: Regenerate.
14971         * configure: Regenerate.
14972
14973 2008-04-18  Jan Hubicka  <jh@suse.cz>
14974
14975         * except.c (dw2_size_of_call_site_table,
14976         sjlj_size_of_call_site_table): Use vector API for call_site_record.
14977
14978         * cgraphbuild.c (build_cgraph_edges): Update.
14979         * tree-pass.h: Update comment.
14980         * final.c (leaf_function_p): Update.
14981         (leaf_renumber_regs): Update.
14982         (rest_of_clean_state): Update.
14983         * omp-low.c (expand_omp_parallel): Update.
14984         * ipa-reference.c (analyze_function): Update.
14985         * reorg.c (find_end_label): Update.
14986         (optimize_skip): Update.
14987         (fill_simple_delay_slots): Update.
14988         (fill_simple_delay_slots): Update.
14989         (make_return_insns): Update.
14990         (dbr_schedule): Update.
14991         * gimple-low.c (record_vars_into): Update.
14992         * cfgbuild.c (make_edges): Update.
14993         * function.c (assign_stack_local): Update.
14994         (assign_parm_adjust_stack_rtl): Update.
14995         (locate_and_pad_parm): Update.
14996         (allocate_struct_function): Do not initialize stack_alignment_needed
14997         and preferred_stack_boundary here.
14998         (stack_protect_prologue): Update.
14999         (stack_protect_epilogue): Update.
15000         (expand_function_start): Initialize stack_alignment_needed,
15001         preferred_stack_boundary and max_jumptable_ents.
15002         (expand_function_end): Update.
15003         (free_after_compilation): Do not NULLify epilogue_delay_list.
15004         * function.h (struct rtl_data): Add stack_protect_guard,
15005         stack_alignment_needed,
15006         preferred_stack_boundary, epilogue_delay_list.
15007         (struct function): Remove value_histograms, stack_alignment_needed,
15008         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15009         last_label_uid,
15010         unexpanded_var_list, stack_protect_guard.
15011         (current_function_epilogue_delay_list): Remove.
15012         * ipa-type-escape.c (analyze_function): Update.
15013         * gimplify.c (pop_gimplify_context): Update comment.
15014         * calls.c (expand_call): Update.
15015         (emit_library_call_value_1): Update.
15016         * except.c (set_nothrow_function_flags): Update.
15017         * cfgexpand.c (get_decl_align_unit): Update.
15018         (create_stack_guard): Update.
15019         (estimated_stack_frame_size): Update.
15020         (expand_used_vars): Update.
15021         (tree_expand_cfg): Free histogram earliers, init expansion variables.
15022         * explow.c (allocate_dynamic_stack_space): Update.
15023         * tree-ssa-live.c (remove_unused_locals): Update.
15024         * varasm.c (mark_constant_pool): Update.
15025         * tree-inline.c (remap_decls): Update.
15026         (initialize_cfun): Update.
15027         (declare_return_variable): Update.
15028         (inline_forbidden_p): Update.
15029         (expand_call_inline): Update.
15030         (declare_inline_vars): Update.
15031         (tree_function_versioning): Update.
15032         * tree-flow.h (value_histograms): New.
15033         (VALUE_HISTOGRAMS): New macro.
15034         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15035         last_label_uid.
15036         * tree-cfg.c (set_bb_for_stmt): Update.
15037         (replace_by_duplicate_decl): Update.
15038         (move_block_to_fn): Update.
15039         (new_label_mapper): Update.
15040         (dump_function_to_file): Update.
15041         * ipa-struct-reorg.c (build_data_structure): Update.
15042         * cfgrtl.c (print_rtl_with_bb): Update.
15043         * reload1.c (reload): Update.
15044         (reload): Update.
15045         * config/i386/i386.c (setup_incoming_varargs_64,
15046         ix86_compute_frame_layout): Update.
15047         * config/arc/arc.c (arc_output_function_epilogue): Update.
15048
15049 2008-04-18  Marius Strobl <marius@FreeBSD.org>
15050
15051         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15052         for FreeBSD as well.
15053         * gthr-posix95.h: Likewise.
15054
15055 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
15056
15057         PR rtl-optimization/35838
15058         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15059         out the byte offset of the first subreg.
15060
15061 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
15062
15063         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15064         to split_ti instead of three separate calls with single member arrays.
15065         (subti3 splitter): Ditto.
15066         (adddi3 splitter): Ditto with split_di.
15067         (subdi3 splitter): Ditto.
15068         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
15069         two separate calls with single member arrays.  Swap match_dup
15070         operands 1 and 2 to better fit into the array.
15071         (negdi2 splitter): Ditto with split_di.
15072         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
15073         two separate calls with single member arrays.  Swap match_dup operands
15074         6 and 7 to better fit into the array.
15075
15076 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15077
15078         * config/i386/i386.c (sse_builtin_type): New.
15079         (bdesc_sse_args): Likewise.
15080         (bdesc_sse_3arg): Removed.
15081         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15082         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
15083         IX86_BUILTIN_ROUNDPS.
15084         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
15085         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
15086         IX86_BUILTIN_ROUNDPS.
15087         (ix86_expand_sse_4_operands_builtin): Removed.
15088         (ix86_expand_sse_operands_builtin): New.
15089         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
15090         and CODE_FOR_sse4_1_roundps.
15091         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15092         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
15093
15094 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
15095
15096         PR target/35907
15097         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
15098         regs before frame pop when needed.  If use_backchain_to_restore_sp
15099         then load backchain into a temp reg to restore vr and vrsave.  Add
15100         code to restore vr after frame pop if possible.
15101
15102 2008-04-17  Richard Guenther  <rguenther@suse.de>
15103
15104         * tree-vn.c (expressions_equal_p): Do not check type
15105         equality or compatibility before calling operand_equal_p.
15106         * fold-const.c (operand_equal_p): Check equivalence of
15107         integer constants before bailing out due to signedness or
15108         precision differences.
15109         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
15110         spurious differences in type qualification.  Ignore types
15111         for COMPONENT_REFs at all.
15112
15113 2008-04-17  Christian Bruel  <christian.bruel@st.com>
15114
15115         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
15116         msw_skip comparison.
15117
15118 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
15119
15120         PR c/35739
15121         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
15122         reg type.
15123
15124         PR tree-optimization/35899
15125         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
15126         rather than TREE_OPERAND.
15127
15128 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
15129
15130         PR target/35944
15131         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
15132         temporary registers.  Change operand predicate to general_operand.
15133         (remainderxf3): Ditto.
15134
15135 2008-04-16  Richard Guenther  <rguenther@suse.de>
15136
15137         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
15138         * tree-affine.c (aff_combination_expand): Look through some
15139         conversions.
15140
15141 2008-04-15  Doug Kwan  <dougkwan@google.com>
15142
15143         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
15144         for hex printing.
15145         * tree-pretty-print.c (dump_generic_node): Ditto.
15146         * final.c (output_addr_const): Ditto.
15147         * dwarf2out.c (output_cfi): Ditto.
15148         * c-pretty-print.c (pp_c_integer_constant): Ditto.
15149         * print-rtl.c (print_rtx): Ditto.
15150         * print-tree.c (print_node_brief, print_node): Ditto.
15151         * c-common.c (match_case_to_enum_1): Ditto.
15152         * sched-vis.c (print_value): Ditto.
15153         * config/i386/i386.c (print_operand): Cast to long unsigned int
15154         for hex printing.
15155
15156 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
15157         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
15158         MS Windows VirtualProtect function.
15159
15160 2008-04-15  Jan Hubicka  <jh@suse.cz>
15161
15162         * gengtype.c (write_root): Param_is argument is OK.
15163         * expr.c (expand_expr_real_1): Update call of get_exception_*.
15164         * function.h: Include varray.h
15165         (rtl_eh): New stucture based on except.c one.
15166         (call_site_record): New forward declaration and vector type.
15167         * calls.c (emit_call_1): Do not call
15168         note_current_region_may_contain_throw.
15169         * except.c (eh_status): Remove cur_region, try_region since they are
15170         unused.
15171         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15172         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15173         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15174         Remove call_site_data_used, call_site_data_size.
15175         Turn call_site_record into vector in function.h.
15176         (note_current_region_may_contain_throw): Remove.
15177         (get_exception_pointer, get_exception_filter): Do not take struct
15178         function argument; update.
15179         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
15180         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
15181         build_post_landing_pads, dw2_build_landing_pads,
15182         sjlj_assign_call_site_values, sjlj_mark_call_sites,
15183         sjlj_emit_function_enter, sjlj_emit_function_enter,
15184         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
15185         sjlj_build_landing_pads, finish_eh_generation,
15186         remove_exception_handler_label, remove_eh_handler,
15187         maybe_remove_eh_handler, add_reachable_handler,
15188         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
15189         add_action_record, collect_one_action_chain, add_call_site,
15190         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
15191         sjlj_output_call_site_table, output_function_exception_table,
15192         * except.h (note_current_region_may_contain_throw): Remove
15193         (get_exception_pointer, get_exception_filter): Do not take struct
15194         function argument.
15195         * Makefile.in (GTFILES): Put varargs before struct function.
15196
15197 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15198
15199         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
15200         punt for STRING_CST.
15201         (get_constraint_for): Deal with STRING_CST here instead.
15202
15203 2008-04-15  Richard Guenther  <rguenther@suse.de>
15204
15205         * tree-ssa-propagate.c (substitute_and_fold): Substitute
15206         statements in a basic-block with a backward walk.  Do not
15207         substitute into dead statements but instead remove those.
15208
15209 2008-04-15  Richard Guenther  <rguenther@suse.de>
15210
15211         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
15212         to zero, thus disable creation of SFTs.
15213
15214 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15215
15216         * tree-predcom.c (suitable_reference_p): Return false if the
15217         reference can throw.
15218
15219 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
15220
15221         PR c/35751
15222         * c-decl.c (finish_decl): If extern or static var has variable
15223         size, set TREE_TYPE (decl) to error_mark_node.
15224
15225 2008-04-15  Rafael Espindola  <espindola@google.com>
15226
15227         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
15228         variable arg1.
15229
15230 2008-04-15  Richard Guenther  <rguenther@suse.de>
15231
15232         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15233         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
15234         (visit_reference_op_load): Do walk vuse-vdef chains on
15235         vn_reference_lookup.
15236         (visit_reference_op_store): But do not here.
15237         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
15238         vn_reference_lookup.
15239         (vn_lookup_with_vuses): But do so here.
15240
15241 2008-04-14  Ian Lance Taylor  <iant@google.com>
15242
15243         * fold-const.c (fold_overflow_warning): Remove assertion.
15244
15245 2008-04-15  Ben Elliston  <bje@au.ibm.com>
15246
15247         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
15248         temp1 local variables.
15249
15250 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
15251
15252         PR target/35661
15253         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
15254         ".text.unlikely" section as executable.
15255
15256 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
15257
15258         * config/ia64/ia64.c (rtx_needs_barrier): Handle
15259         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
15260         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
15261         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
15262         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
15263         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
15264         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
15265
15266 2008-04-14  Ian Lance Taylor  <iant@google.com>
15267
15268         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
15269         * fold-const.c (fold_comparison): If appropriate, test
15270         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
15271         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
15272         reassociating a pointer type.
15273         * doc/invoke.texi (Optimize Options): Document that
15274         -fstrict-overflow applies to pointer wraparound.
15275
15276 2008-04-13  Jan Hubicka  <jh@suse.cz>
15277
15278         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
15279
15280 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
15281
15282         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
15283         we are going to "save the world".
15284
15285 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
15286
15287         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
15288         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
15289         operand 0 constraint, not "=".
15290
15291 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
15292
15293         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
15294
15295 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
15296
15297         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
15298         of size of positions_needed * CHAR_BIT.
15299
15300 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
15301
15302         PR middle-end/35897
15303         * dse.c (store_info): Change positions_needed to unsigned
15304         HOST_WIDE_INT.
15305         (lowpart_bitmask): New.
15306         (record_store): Cast to unsigned HOST_WIDE_INT for
15307         positions_needed.  Assert width <= size of positions_needed *
15308         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
15309         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
15310         lowpart_bitmask to set mask.
15311
15312 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
15313
15314         * config/bfin/constraints.md: New file.
15315         * config/bfin/bfin.md: Include it.
15316         (adddi3): Use satisfies_constraint functions instead of the old macros.
15317         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
15318         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
15319         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
15320         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
15321         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
15322         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
15323         EXTRA_CONSTRAINT): Delete.
15324         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
15325         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
15326         of the old macros.
15327         * config/bfin/bfin.c: Include "tm-constrs.h".
15328         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
15329         Use satisfies_constraint functions instead of the old macros.
15330         * doc/md.texi (Blackfin Constraints): Update file name reference.
15331
15332 2008-04-11  Richard Guenther  <rguenther@suse.de>
15333
15334         PR tree-optimization/35869
15335         * tree-vrp.c (execute_vrp): Move switch statement update after
15336         jump threading.  Schedule another cfg cleanup run.
15337
15338 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
15339
15340         PR c/35744
15341         * attribs.c (decl_attributes): Return early on errorneous node.
15342
15343 2008-04-10  Oleg Ryjkov  <olegr@google.com>
15344
15345         * tree.h (struct tree_base): Added a new flag default_def_flag.
15346         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
15347
15348 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
15349
15350         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
15351
15352 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15353
15354         PR target/35768
15355         * pa.md: Define mode iterator P.  Define mode attribute dwc.
15356         (dcacheflush): Update pattern to use iterator P and attribute dwc.
15357         (icacheflush): Likewise.
15358         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
15359         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
15360
15361 2008-04-11  Ben Elliston  <bje@au.ibm.com>
15362
15363         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
15364
15365 2008-04-10  Rafael Espindola  <espindola@google.com>
15366
15367         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
15368         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
15369         (extract_range_from_expr): The same.
15370
15371 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
15372
15373         * config/mips/mips.md (GPR2): New mode iterator.
15374         (seq): Add comment.
15375         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
15376         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
15377         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
15378         Rewrite these to take two modes, the mode of comparison and the
15379         mode of the destination.
15380         * config/mips/mips.c (mips_expand_scc): Instead of having
15381         paradoxical subreg as destination, expand "narrowing" scc if mode
15382         of comparison is SI and target is requested in DI mode.
15383         (mips_emit_int_order_test): Update comment.  Make mode of
15384         comparison match CMP0 rather than TARGET.  When creating inverse
15385         target use mode of TARGET.
15386
15387 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
15388
15389         * gcov-dump.c (tag_summary): Only print summaries for the first
15390         GCOV_COUNTERS_SUMMABLE counters.
15391
15392 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
15393
15394         * config/i386/i386.md (absneg): New code iterator.
15395         (absnegprefix): New code attribute.
15396         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
15397         patterns using absneg code iterator.
15398         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
15399         using absneg code iterator.
15400         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
15401         *neg<mode>2 patterns using absneg code iterator.
15402         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15403         *negextendsfdf2 patterns using absneg code iterator.
15404         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
15405         *negextendsfxf2 patterns using absneg code iterator.
15406         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15407         *negextendsfdf2 patterns using absneg code iterator.
15408         * config/i386/sse.md (<code><mode>2): Macroize expander from
15409         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
15410
15411 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
15412
15413         * config/s390/s390.h: Remove the remains of the recent search
15414         & replace action of current_function_outgoing_args_size.
15415
15416 2008-04-10  Ira Rosen  <irar@il.ibm.com>
15417
15418         PR tree-optimization/35821
15419         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
15420         NEW_STMT_LIST is not NULL.
15421
15422 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
15423
15424         PR libstdc++/35597
15425         * toplev.c (process_options): Remove -ffunction-sections debugging
15426         warning.
15427
15428 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
15429
15430         PR middle-end/PR28690
15431         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
15432         than gen_rtx_fmt_ee to perform more canonicalizations.
15433
15434 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15435
15436         PR driver/35665
15437         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
15438
15439 2008-04-09  Richard Guenther  <rguenther@suse.de>
15440
15441         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
15442         (dump_function_to_file): Dump function arguments with types.
15443
15444 2008-04-08  Richard Guenther  <rguenther@suse.de>
15445
15446         * fold-const.c (fold_widened_comparison): Do not allow
15447         sign-changes that change the result.
15448
15449 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
15450
15451         PR target/35839
15452         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
15453         kinds of indirect references.
15454
15455 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
15456
15457         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
15458         GNU Fortran language string.
15459
15460 2008-04-08  Rafael Espindola  <espindola@google.com>
15461
15462         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
15463         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
15464         * tree.h (tree_call_nonnegative_warnv_p): New.
15465
15466 2008-04-08  Jan Hubicka  <jh@suse.cz>
15467
15468         * function.c (free_after_compilation): Clear out regno_reg_rtx
15469         pointer.
15470
15471 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
15472
15473         Revert
15474         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
15475
15476         PR middle-end/PR28690
15477         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
15478         same precedence as REG_POINTER and MEM_POINTER operands.
15479
15480 2008-04-08  Richard Guenther  <rguenther@suse.de>
15481
15482         PR middle-end/35834
15483         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
15484         for adding index to base.
15485
15486 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
15487
15488         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
15489         (MINGW_ENABLE_EXECUTE_STACK): New.
15490         (IN_LIBGCC2): For libgcc include windows.h file for
15491         function declarations.
15492
15493 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
15494
15495         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
15496         and tem2 if tem1 is not a REG or MULT.
15497
15498 2008-04-08  Jan Hubicka  <jh@suse.cz>
15499
15500         * function.h (incomming_args): Break out of struct function.
15501         (function_subsections): Break out of struct function.
15502         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
15503         return_rtx and hard_reg_initial_vals from struct function.
15504         Kill inl_max_label_num.
15505         (current_function_pops_args, current_function_args_info,
15506         current_function_args_size, current_function_args_size,
15507         current_function_pretend_args_size,
15508         current_function_outgoing_args_size,
15509         current_function_internal_arg_pointer, current_function_return_rtx):
15510         Kill compatibility accestor macros.
15511         * builtins.c (expand_builtin_apply_args_1): Update.
15512         (expand_builtin_next_arg): Update.
15513         * df-scan.c (df_get_call_refs): Update.
15514         * dbxout.c (dbxout_function_end): Update.
15515         * dwarf2out.c (dwarf2out_switch_text_section): Update.
15516         (output_line_info): Update.
15517         (secname_for_decl): Update.
15518         (dwarf2out_var_location): Update.
15519         * function.c (free_after_compilation): Update.
15520         (assign_parm_find_stack_rtl): Update.
15521         (assign_parms): Update.
15522         (expand_dummy_function_end): Update.
15523         (expand_function_end): Update.
15524         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
15525         (expand_call): Update.
15526         (emit_library_call_value_1): Update.
15527         (store_one_arg): Update.
15528         * varasm.c (initialize_cold_section_name): Update.
15529         (unlikely_text_section): Update.
15530         (unlikely_text_section_p): Update.
15531         (assemble_start_function): Update.
15532         (assemble_end_function): Update.
15533         (default_section_type_flags): Update.
15534         (switch_to_section): Update.
15535         * integrate.c (set_decl_abstract_flags): Update.
15536         (get_hard_reg_initial_val): Update.
15537         (has_hard_reg_initial_val): Update.
15538         (allocate_initial_values): Update.
15539         * resource.c (init_resource_info): Update.
15540         * config/alpha/alpha.c (NUM_ARGS): Update.
15541         (direct_return): Update.
15542         (alpha_va_start): Update.
15543         (alpha_sa_size): Update.
15544         (alpha_initial_elimination_offset): Update.
15545         (alpha_expand_prologue): Update.
15546         (alpha_start_function): Update.
15547         (alpha_expand_epilogue): Update.
15548         (unicosmk_initial_elimination_offset):
15549         * config/alpha/alpha.md (call expander): Update.
15550         * config/s390/s390.c (s390_register_info): Update.
15551         (s390_register_info): Update.
15552         (s390_frame_info): Update.
15553         (s390_initial_elimination_offset): Update.
15554         (s390_build_builtin_va_list): Update.
15555         (s390_va_start): Update.
15556         * config/spu/spu.c (direct_return): Update.
15557         (spu_expand_prologue): Update.
15558         (spu_initial_elimination_offset): Update.
15559         (spu_build_builtin_va_list): Update.
15560         (spu_va_start): Update.
15561         * config/sparc/sparc.c (sparc_init_modes): Update.
15562         (sparc_compute_frame_size): Update.
15563         (function_value): Update.
15564         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
15565         * config/i386/i386.md (return expander): Update.
15566         * config/i386/i386.c (ix86_va_start): Update.
15567         (ix86_can_use_return_insn_p): Update.
15568         (ix86_compute_frame_layout): Update.
15569         (ix86_expand_epilogue): Update.
15570         * config/sh/sh.c (output_stack_adjust): Update.
15571         (calc_live_regs): Update.
15572         (sh_expand_prologue): Update.
15573         (sh_builtin_saveregs): Update.
15574         (sh_va_start): Update.
15575         (initial_elimination_offset): Update.
15576         (sh_allocate_initial_value): Update.
15577         (sh_function_ok_for_sibcall): Update.
15578         (sh_get_pr_initial_val): Update.
15579         * config/sh/sh.md (return expander): Update.
15580         * config/avr/avr.c (frame_pointer_required_p): UPdate.
15581         * config/crx/crx.c (crx_compute_frame): UPdate.
15582         (crx_initial_elimination_offset): UPdate.
15583         * config/xtensa/xtensa.c (compute_frame_size): Update
15584         (xtensa_builtin_saveregs): Update.
15585         (xtensa_va_start): Update.
15586         (order_regs_for_local_alloc): Update.
15587         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
15588         (xstormy16_expand_builtin_va_start): Update.
15589         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
15590         * config/m68hc11/m68hc11.md (return expanders): Update.
15591         * config/m68hc11/m68hc11.c (expand_prologue): Update.
15592         (expand_epilogue): Update.
15593         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
15594         (cris_simple_epilogue): Update.
15595         (cris_expand_prologue): Update.
15596         (cris_expand_epilogue): Update.
15597         * config/iq2000/iq2000.c (iq2000_va_start): Update.
15598         (compute_frame_size): Update.
15599         * config/mt/mt.c (mt_compute_frame_size): Update.
15600         * config/mn10300/mn10300.c (expand_prologue): Update.
15601         (expand_epilogue): Update.
15602         (initial_offset): Update.
15603         (mn10300_builtin_saveregs):
15604         * config/mn10300/mn10300.md (return expander): Update.
15605         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15606         (ia64_initial_elimination_offset): Update.
15607         (ia64_initial_elimination_offset): Update.
15608         (ia64_expand_prologue): Update.
15609         * config/m68k/m68k.md (return expander): Update.
15610         * config/rs6000/rs6000.c (rs6000_va_start): Update.
15611         (rs6000_stack_info): Update.
15612         * config/mcore/mcore.c (layout_mcore_frame): Update.
15613         (mcore_expand_prolog): Update.
15614         * config/arc/arc.c (arc_compute_frame_size): Update.
15615         * config/score/score3.c (score3_compute_frame_size): Update.
15616         * config/score/score7.c (score7_compute_frame_size): Update.
15617         * config/arm/arm.c (use_return_insn): Update.
15618         (thumb_find_work_register): Update.
15619         (arm_compute_save_reg_mask): Update.
15620         (arm_output_function_prologue): Update.
15621         (arm_output_epilogue): Update.
15622         (arm_size_return_regs): Update.
15623         (arm_get_frame_offsets): Update.
15624         (arm_expand_prologue): Update.
15625         (thumb_exit): Update.
15626         (thumb_unexpanded_epilogue): Update.
15627         (thumb1_output_function_prologue): Update.
15628         * config/pa/pa.md (return expander): Update.
15629         * config/pa/pa.c (compute_frame_size): Update.
15630         (hppa_builtin_saveregs): Update.
15631         * config/mips/mips.c (mips_va_start): Update.
15632         (mips16_build_function_stub): Update.
15633         (mips_compute_frame_info): Update.
15634         (mips_restore_gp): Update.
15635         (mips_output_function_prologue): Update.
15636         (mips_expand_prologue): Update.
15637         * config/v850/v850.c (compute_frame_size): Update.
15638         (expand_prologue): * config/mmix/mmix.c (along): update.
15639         (mmix_initial_elimination_offset): update.
15640         (mmix_reorg): update.
15641         (mmix_use_simple_return): update.
15642         (mmix_expand_prologue): update.
15643         (mmix_expand_epilogue): Update.
15644         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
15645         (emit_link_insn): Update.
15646
15647 2008-04-08  Anatoly Sokolov <aesok@post.ru>
15648
15649         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
15650         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
15651         instructions.
15652         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
15653         atmega103 device.
15654
15655 2008-04-07  Jan Hubicka  <jh@suse.cz>
15656
15657         * function.h (rtl): Rename to x_rtl.
15658         (crtl): New define.
15659         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
15660         frame_offset, stack_check_probe_note, arg_pointer_save_area,
15661         used_temp_slots avail_temp_slots, temp_slot_level,
15662         nonlocal_goto_handler_labels): Update accesstors.
15663         (rtl): New global variable.
15664         (struct function): Move some fileds to rtl_data.
15665         (get_arg_pointer_save_area): Update prototype.
15666         * builtins.c (expand_builtin_setjmp_receiver): Update call of
15667         get_arg_pointer_save_area.
15668         * expr.c (init_expr): Update
15669         * function.c (get_frame_size): Update
15670         (assign_stack_local): Update
15671         (expand_function_end): Update.
15672         (get_art_pointer_save_area): Update
15673         * function.h
15674         * emit-rtl.c (rtl): Declare.
15675         (regno_reg_rtx): Declare.
15676         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
15677         Update.
15678         (gen_reg_rtx): Update.
15679         * varasm.c (n_deferred_constatns): Update accestor.
15680         (init_varasm_status): Do not allocate varasm_status.
15681         (force_const_mem, get_pool_size, output_constant_pool): Update.
15682         * stmt.c (force_label_rtx): Do not use x_ prefixes.
15683         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
15684         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
15685         * sparc/sparc.h (INIT_EXPANDERS): Update.
15686         * ia64/ia64.h (INIT_EXPANDERS): Update.
15687
15688 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
15689
15690         * reload.c (push_secondary_reload): Add missing break to for loop.
15691
15692 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
15693
15694         PR middle-end/PR28690
15695         * rtlanal.c: Update copyright years.
15696         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
15697         as REG_POINTER and MEM_POINTER operands.
15698         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
15699         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
15700         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
15701         * gcse.c: Update copyright years.
15702         (pre_delete): Call gen_reg_rtx_and_attrs.
15703         (hoist_code): Likewise.
15704         (build_store_vectors): Likewise.
15705         (delete_store): Likewise.
15706         * loop-invariant.c (move_invariant_reg): Likewise.
15707         Update copyright years.
15708
15709 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
15710
15711         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
15712         control string instead of quoted.
15713
15714 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
15715
15716         * doc/rtl.texi: Rewrite of subreg section.
15717
15718 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
15719
15720         PR/35842
15721         * config/i386/i386.c (legitimize_pic_address): Add treating
15722         of dllimport SYM_REF's.
15723         (legitimize_dllimport_symbol): Add prototype.
15724
15725 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
15726
15727         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
15728         reference in constructor with non self-referential type.
15729
15730 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
15731
15732         Removal of Return with Depressed Stack Pointer support
15733         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
15734         (ECF_SP_DEPRESSED): Likewise.
15735         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
15736         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
15737         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15738         (expand_call): Do not test ECF_SP_DEPRESSED.
15739         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15740         * function.c (keep_stack_depressed): Delete.
15741         (handle_epilogue_set): Likewise.
15742         (update_epilogue_consts): Likewise.
15743         (emit_equiv_load): Likewise.
15744         (thread_prologue_and_epilogue_insns): Remove support for Return with
15745         Depressed Stack Pointer.
15746         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15747
15748 2008-04-06  Richard Guenther  <rguenther@suse.de>
15749
15750         PR tree-optimization/35400
15751         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
15752         information from SSA_NAMEs.
15753
15754 2008-04-06  Anatoly Sokolov <aesok@post.ru>
15755
15756         * config/avr/avr.h (avr_mega_p): Remove declaration.
15757         (AVR_MEGA): Remove macro.
15758         * config/avr/avr.c (avr_mega_p): Remove variable.
15759         (avr_override_options): Remove inicializion of avr_mega_p.
15760         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
15761         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
15762         (avr_jump_mode): (Ditto.).
15763         (avr_output_progmem_section_asm_op): (Ditto.).
15764         (avr_asm_init_sections): (Ditto.).
15765         (avr_asm_init_sections): (Ditto.).
15766         (avr_rtx_costs): (Ditto.).
15767         * config/avr/avr.md: (Ditto.).
15768         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
15769         '__AVR_MEGA__'.
15770
15771 2008-04-06  Richard Guenther  <rguenther@suse.de>
15772
15773         PR tree-optimization/35842
15774         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
15775         is_gimple_invariant_address.
15776
15777 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15778
15779         * gcc.c (default_compilers): Sync Fortran extensions list with
15780         that in fortran/lang-specs.h.
15781         * doc/invoke.texi: Likewise.
15782         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
15783         * dwarf2out.c (gen_compile_unit_die): Likewise.
15784
15785 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
15786
15787         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
15788
15789 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
15790
15791         PR target/12329
15792         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
15793         attribute is used for nested functions.
15794
15795 2008-04-05  Jan Hubicka  <jh@suse.cz>
15796
15797         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
15798
15799         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
15800         letter argument.
15801         (dump_files): Update.
15802         (enable_rtl_dump_file): Do not accept letter argument.
15803         * tree-pass.h (dump_file_info): Remove letter argument.
15804         * toplev.c (decode_d_option): Update -da handling.
15805         * toplev.h (enable_rtl_dump_file): Update prototype.
15806         * passes.c (register_one_dump_file): Do not accept IPA argument; work
15807         it out based on pass type.
15808         (register_dump_files_1): Likewise.
15809         (init_optimization_passes): Update register_one_dump_file calls.
15810         (execute_one_pass): Sanity check that IPA passes are called at IPA
15811         level and RTL passes at RTL level.
15812         (execute_pass_list): IPA pass can not be after or subpass of
15813         GIMPLE/RTL pass.
15814         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
15815         disallov RTL subpasses of IPA subpasses.
15816
15817 2008-04-05  Ben Elliston  <bje@au.ibm.com>
15818
15819         * tree-cfg.c (need_fake_edge_p): Return false for calls to
15820         builtins that return exactly once and do not throw. Cache call to
15821         call_expr_flags.
15822
15823 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
15824
15825         PR rtl-optimization/34916
15826         PR middle-end/35519
15827         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
15828         between instruction pairs.
15829
15830 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
15831
15832         * doc/invoke.texi: Document -mbitops for SH.
15833         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
15834         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
15835         * config/sh/sh.c (print_operand): Add %t operand code.
15836         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
15837         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
15838         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
15839         (extendqihi2): Likewise.
15840         (movqi_i): Likewise.
15841         (insv): Use bset, bclr and bst instructions for SH2A if possible.
15842         (extv): Use bld instruction for SH2A if possible.
15843         (extzv): Likewise.
15844         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
15845         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
15846         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
15847         (bset.b, bclr.b): Define peepholes.
15848         * config/sh/sh.opt (mbitops): New option.
15849
15850 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
15851
15852         PR target/35620
15853         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
15854         and view convert expression.
15855
15856 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
15857
15858         PR target/35364
15859         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
15860
15861 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
15862
15863         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
15864
15865         * config/i386/cpuid.h (bit_AES): New.
15866         (bit_PCLMUL): Likewise.
15867
15868         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
15869         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
15870         SSE2 if AES or PCLMUL is enabled.
15871         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
15872         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
15873         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
15874         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
15875         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
15876         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
15877         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
15878         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
15879         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
15880         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
15881         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
15882         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
15883         __builtin_ia32_aeskeygenassist128 and
15884         __builtin_ia32_pclmulqdq128.
15885         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
15886         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
15887         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
15888
15889         * config/i386/i386.h (TARGET_AES): New.
15890         (TARGET_PCLMUL): Likewise.
15891         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
15892
15893         * config/i386/i386.md (UNSPEC_AESENC): New.
15894         (UNSPEC_AESENCLAST): Likewise.
15895         (UNSPEC_AESDEC): Likewise.
15896         (UNSPEC_AESDECLAST): Likewise.
15897         (UNSPEC_AESIMC): Likewise.
15898         (UNSPEC_AESKEYGENASSIST): Likewise.
15899         (UNSPEC_PCLMUL): Likewise.
15900
15901         * config/i386/i386.opt (maes): New.
15902         (mpclmul): Likewise.
15903
15904         * config/i386/sse.md (aesenc): New pattern.
15905         (aesenclast): Likewise.
15906         (aesdec): Likewise.
15907         (aesdeclast): Likewise.
15908         (aesimc): Likewise.
15909         (aeskeygenassist): Likewise.
15910         (pclmulqdq): Likewise.
15911
15912         * config/i386/wmmintrin.h: New.
15913
15914         * doc/extend.texi: Document AES and PCLMUL built-in function.
15915
15916         * doc/invoke.texi: Document -maes and -mpclmul.
15917
15918 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
15919
15920         * function.c (free_after_parsing): Replace with
15921         cxx_push_function_context from C++ front-end.
15922         (allocate_struct_function): Don't call langhook.
15923         * langhooks.h (struct lang_hooks_for_functions): Delete.
15924         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
15925         member "function".
15926         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
15927         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
15928         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
15929         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
15930         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
15931         remove LANG_HOOKS_FUNCTION_INITIALIZER.
15932         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
15933
15934         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
15935         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
15936
15937 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
15938
15939         PR c/35440
15940         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
15941         for all types.
15942
15943 2008-04-04  Richard Guenther  <rguenther@suse.de>
15944
15945         PR middle-end/35823
15946         * fold-const.c (optimize_minmax_comparison): Use the correct
15947         type for the constant in the simplified comparison.
15948
15949 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
15950
15951         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
15952         Pass L2 size as "--param l2-cache-size" to the compiler.
15953         (decode_l2_cache): New function to decode L2 cache parameters using
15954         0x8000006 extended cpuid function.
15955         (detect_caches_amd): Determine parameters of L2 cache using
15956         decode_l2_caches function.
15957         (decode_caches_intel): Decode L2 cache parameters.
15958         (detect_caches_intel): Determine L2 cache parameters using
15959         decode_caches_intel and decode_l2_caches functions.
15960
15961 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
15962
15963         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
15964         secondary input reload for subword loads from the constant pool.
15965
15966 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
15967
15968         PR target/35713
15969         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
15970           constants of the appropriate size for runtime calculations.
15971
15972         PR c/35712
15973         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
15974           decimal-float literal constant zero.
15975
15976 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
15977
15978         PR c/35738
15979         * c-parser.c (c_parser_omp_atomic): Call
15980         default_function_array_conversion on the RHS.
15981
15982         PR middle-end/35818
15983         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
15984         call is_variable_sized if decl has incomplete type.
15985
15986 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
15987
15988         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
15989
15990 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
15991
15992         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
15993         iterators.
15994         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
15995         (sgt<u>): Merge sgt and sgtu into new expander.
15996         (sgt, sgtu): Remove expanders.
15997         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
15998         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
15999         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16000         *sgtu_<mode>_mips16 into new pattern.
16001         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16002         (sge<u>): Merge sge and sgeu into new expander.
16003         (sge, sgeu): Remove expanders.
16004         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16005         new pattern.
16006         (*sge_<mode>, second *sge_<mode>): Remove patterns.
16007         (slt<u>): Merge slt and sltu into new expander.
16008         (slt, sltu): Remove expanders.
16009         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16010         (*slt_<mode>, *sltu_<mode>): Remove patterns.
16011         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16012         *sltu_<mode>_mips16 into new pattern.
16013         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16014         (sle<u>): Merge sle and sleu into new expander.
16015         (sle, sleu): Remove expanders.
16016         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16017         (*sle_<mode>, *sleu_<mode>): Remove patterns.
16018         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16019         *sleu_<mode>_mips16 into new pattern.
16020         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16021
16022 2008-04-03  Jan Hubicka  <jh@suse.cz>
16023
16024         PR tree-optimization/35795
16025         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16026         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16027         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16028         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16029         * score/score3.c (score3_output_mi_thunk): Likewise.
16030         * score/score7.c (score7_output_mi_thunk): Likewise.
16031         * mips/mips.c (mips_output_mi_thunk): Likewise.
16032
16033 2008-04-03  Richard Guenther  <rguenther@suse.de>
16034
16035         * tree-vrp.c (extract_range_from_unary_expr): Handle all
16036         conversions.  Simplify code.
16037
16038 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16039
16040         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16041
16042 2008-04-03  Tom Tromey  <tromey@redhat.com>
16043             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16044
16045         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16046         * config/bfin/t-bfin-linux (generated_files): Add
16047         linux-sysroot-suffix.h.
16048         * doc/install.texi (Prerequisites): Require make 3.80.
16049         * doc/sourcebuild.texi (Front End Directory): Document new
16050         variable.
16051         * Makefile.in (generated_files): New variable.
16052         (ALL_HOST_OBJS): New variable.
16053         ($(ALL_HOST_OBJS)): New target.
16054
16055 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16056
16057         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16058         (remap_block): Call id->transform_lang_insert_block instead
16059         of langhook.
16060         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16061         Set id.transform_lang_insert_block to NULL.
16062         (clone_body): Move to cp/optimize.c
16063         * tree-inline.h (struct copy_body_data): Change
16064         transform_lang_insert_block to function pointer.
16065         (copy_generic_body, copy_decl_no_change): Export.
16066         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16067         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16068         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
16069
16070         * c-tree.h (insert_block): Kill.
16071         * c-decl.c (insert_block): Kill.
16072
16073 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16074
16075         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16076         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16077         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
16078         argument.
16079         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
16080         argument, call {push,pop}_function_context from here.
16081         * c-parser.c: Use c_{push,pop}_function_context.
16082
16083         * function.c (push_function_context_to): Move meat ...
16084         (push_function_context): ... here.  Simplify.
16085         * function.c (pop_function_context_from): Move meat ...
16086         (pop_function_context): ... here.  Simplify.
16087         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
16088         leave_nested).
16089         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16090         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16091         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
16092         * tree.h (push_function_context_to, pop_function_context_from): Remove.
16093
16094 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16095
16096         * expmed.c (extract_force_align_mem_bit_field): Remove.
16097
16098 2008-04-03  Richard Guenther  <rguenther@suse.de>
16099
16100         PR middle-end/35800
16101         * expr.h (try_casesi): Adjust prototype.
16102         * expr.c (try_casesi): Take fallback label as extra parameter.
16103         Use that for gen_casesi if default_label is NULL.
16104         * stmt.c (expand_case): Pass fallback label to try_casesi,
16105         make sure to fill gaps with a fallback label if default_label
16106         is not present.
16107
16108 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
16109
16110         PR target/35801
16111         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
16112
16113 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16114
16115         * expmed.c (extract_split_bit_field): Remove if (0) code.
16116         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
16117         (do_ds_constraint): Likewise.
16118
16119 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
16120
16121         * doc/cppopts.texi (-dU): Document.
16122         * c-common.h (flag_dump_macros): Update comment.
16123         * c-opts.c (handle_OPT_d): Handle -dU.
16124         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
16125         dump_queued_macros, cb_used_define, cb_used_undef): New.
16126         (init_pp_output): Handle -dU.
16127         (cb_line_change): Call dump_queued_macros.
16128         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
16129
16130 2008-04-02  Anatoly Sokolov <aesok@post.ru>
16131
16132         * config/avr/predicates.md (io_address_operand): New predicate.
16133         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
16134         * config/avr/avr.c (avr_io_address_p): Remove function.
16135         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
16136         'avr_io_address_p' function.
16137         (out_movhi_r_mr): (Ditto.).
16138         (out_movqi_mr_r): (Ditto.).
16139         (out_movhi_mr_r): (Ditto.).
16140         (avr_address_cost): (Ditto.).
16141
16142 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
16143
16144         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
16145         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
16146         in 32bit mode when XMM registers are available to avoid store
16147         forwarding stalls.
16148         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
16149         corresponding post-reload splitters.
16150
16151 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16152
16153         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
16154         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
16155         __builtin_ia32_roundss.
16156         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16157         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
16158         __builtin_ia32_roundss.
16159         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
16160         IX86_BUILTIN_SHUFPD here.
16161
16162 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16163
16164         * config/i386/i386.md (plogic): New.
16165         (plogicprefix): Likewise.
16166
16167         * config/i386/mmx.md (mmx_<code><mode>3): New.
16168         (mmx_and<mode>3): Removed.
16169         (mmx_ior<mode>3): Likewise.
16170         (mmx_xor<mode>3): Likewise.
16171
16172         * config/i386/sse.md (<code><mode>3): New.
16173         (*<code><mode>3): Likewise.
16174         (*<code><mode>3): Likewise.
16175         (<code><mode>3): Likewise.
16176         (*sse_<code><mode>3): Likewise.
16177         (*sse2_<code><mode>3): Likewise.
16178         (<code>tf3): Likewise.
16179         (*<code>tf3): Likewise.
16180         (and<mode>3): Likewise.
16181         (*and<mode>3): Likewise.
16182         (ior<mode>3): Removed.
16183         (*ior<mode>3): Likewise.
16184         (xor<mode>3): Likewise.
16185         (*xor<mode>3): Likewise.
16186         (*and<mode>3): Likewise.
16187         (*ior<mode>3): Likewise.
16188         (*xor<mode>3): Likewise.
16189         (and<mode>3): Likewise.
16190         (*sse_and<mode>3): Likewise.
16191         (*sse2_and<mode>3): Likewise.
16192         (andtf3): Likewise.
16193         (*andtf3): Likewise.
16194         (ior<mode>3): Likewise.
16195         (*sse_ior<mode>3): Likewise.
16196         (*sse2_ior<mode>3): Likewise.
16197         (iortf3): Likewise.
16198         (*iortf3): Likewise.
16199         (xor<mode>3): Likewise.
16200         (*sse_xor<mode>3): Likewise.
16201         (*sse2_xor<mode>3): Likewise.
16202         (xortf3): Likewise.
16203         (*xortf3): Likewise.
16204
16205 2008-04-02  Richard Guenther  <rguenther@suse.de>
16206
16207         PR tree-optimization/14495
16208         PR tree-optimization/34793
16209         * tree-vrp.c (struct switch_update): New structure.
16210         (to_remove_edges, to_update_switch_stmts): New VECs.
16211         (simplify_switch_using_ranges): New function.  Remove not taken
16212         case labels and edges.
16213         (simplify_stmt_using_ranges): Call it.
16214         (identify_jump_threads): Mark edges we have queued for removal
16215         so we don't thread them.
16216         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
16217         case label vector.
16218         * tree-cfg.c (group_case_labels): Deal with missing default label.
16219         (tree_verify_flow_info): Allow missing default label.
16220         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
16221         (emit_case_nodes): Likewise.
16222         (expand_case): Do not rely on the default label to be present.
16223         * expr.c (try_casesi): Deal with NULL default_label.
16224         (do_tablejump): Likewise.
16225
16226 2008-04-02  Richard Guenther  <rguenther@suse.de>
16227
16228         PR tree-optimization/14495
16229         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
16230         SWITCH_EXPR here ...
16231         (vrp_visit_switch_stmt): ... but here (new function).
16232         (find_case_label_index): New helper function.
16233         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
16234
16235 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16236
16237         * fwprop.c: Fix ISO-C99ism.
16238
16239 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16240
16241         PR bootstrap/35752
16242         * Makefile.in (objdir): Set it here.
16243         * configure.ac: Not here.  Find dynamic linker characteristics.
16244         * exec-tool.in: Use them.
16245         * aclocal.m4: Regenerate.
16246         * configure: Regenerate.
16247
16248 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16249
16250         * expr.c (expand_var): Delete it.
16251         * expr.h (expand_var): Delete prototype.
16252         * function.c (expand_function_start): Use expand_decl instead.
16253         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
16254         langhook.
16255
16256 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
16257
16258         PR rtl-optimization/35542
16259         * fwprop.c (forward_propagate_and_simplify): Replace
16260         loc_reg_mentioned_in_p with reg_mentioned_p.
16261
16262 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
16263
16264         PR rtl-optimization/35281
16265         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
16266         (propagate_rtx_1): Handle PR_HANDLE_MEM.
16267         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
16268         (varying_mem_p): Move above propagate_rtx.
16269         (all_uses_available_at): Do not check MEMs.
16270
16271 2008-04-02  Rafael Espindola  <espindola@google.com>
16272
16273         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
16274         (register_edge_assert_for_2): Split the cond argument.
16275         (register_edge_assert_for_1): Adjust for the change in
16276         register_edge_assert_for_2.
16277         (register_edge_assert_for): Split the cond argument.
16278         (find_switch_asserts): Adjust for the change in
16279         register_edge_assert_for.
16280
16281 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
16282
16283         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
16284         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
16285         offsets for 64-bit mingw.
16286         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
16287         abi for x86_64-pc-mingw.
16288
16289 2008-04-02  Richard Guenther  <rguenther@suse.de>
16290
16291         * tree-vrp.c (extract_range_from_assert): Make sure to not
16292         produce range min/max with TREE_OVERFOW set.
16293         If merging a anti-range and a range keep the anti-range if
16294         the range covers all values of the type.
16295         (register_edge_assert_for_2): Only allow sign-changing
16296         conversions in detecting canonical range checks.  Also
16297         register an assert for the unsigned name if useful.
16298
16299         PR tree-optimization/35787
16300         * tree-vrp.c (vrp_val_max): New function.
16301         (vrp_val_min): Likewise.
16302         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
16303         (vrp_val_is_min): Likewise.
16304         (supports_overflow_infinity): Use vrp_val_{min,max}.
16305         (negative_overflow_infinity): Likewise.
16306         (positive_overflow_infinity): Likewise.
16307         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
16308         (is_positive_overflow_infinity): Likewise.
16309         (is_overflow_infinity): Likewise.
16310         (avoid_overflow_infinity): Use vrp_val_{min,max} and
16311         vrp_val_is_{min,max}.
16312         (set_and_canonicalize_value_range): Canonicalize anti-ranges
16313         to ranges if possible.  Avoid empty ranges.
16314
16315 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16316
16317         PR middle-end/35705
16318         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
16319         the expression is a function address.
16320
16321 2008-04-01  George Helffrich  <george@gcc.gnu.org>
16322
16323         PR fortran/35154, fortran/23057
16324         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
16325         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
16326         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
16327         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
16328         in common.
16329         (dbxout_syms): Check for COMMON-based symbol and wrap in
16330         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
16331         in bracket for efficiency.
16332
16333         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
16334         using DW_TAG_common_block + member offset.
16335         (add_pubname_string): New function.
16336         (dw_expand_expr): New function to find block name and offset for
16337         COMMON var.
16338         (common_check): New function to check whether symbol in Fortran COMMON.
16339         (gen_variable_die): If COMMON, use DW_TAG_common_block.
16340
16341 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
16342
16343         PR c/35436
16344         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
16345
16346 2008-04-02  Ben Elliston  <bje@au.ibm.com>
16347
16348         * config/v850/v850.md (casesi): Remove if (0) code.
16349         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16350         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16351
16352 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
16353
16354         * config/i386/i386.md (rex64suffix): New mode attribute.
16355         (floathi<mode>2): Disable expander for SSE math.
16356         (*floathi<mode>2_1): New insn insn_and_split pattern.
16357         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
16358         corresponding post-reload splitters.
16359         (*floathi<mode>2_i387): New macroized insn pattern.
16360         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
16361         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
16362         insn_and_split pattern.
16363         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
16364         New macroized instruction patterns and corresponding post-reload
16365         splitters.
16366         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
16367         and corresponding post-reload splitters.
16368         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
16369         New macroized instruction patterns.
16370         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
16371         macroized instruction patterns and corresponding post-reload splitters.
16372         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
16373         corresponding post-reload splitters.
16374         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
16375         New macroized instruction patterns.
16376         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
16377         corresponding post-reload splitters.
16378         (*floatsi<mode>2_i387): New macroized instruction patterns.
16379
16380 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
16381
16382         * config/i386/i386.md (smaxmin): New.
16383         (umaxmin): Likewise.
16384         (maxminiprefix): Likewise.
16385         (maxminfprefix): Likewise.
16386         (<code><mode>3): Likewise.
16387         (smin<mode>3): Removed.
16388         (smax<mode>3): Likewise.
16389
16390         * config/i386/mmx.md (mmx_<code>v2sf3): New.
16391         (mmx_<code>v4hi3): Likewise.
16392         (mmx_<code>v8qi3): Likewise.
16393         (mmx_smaxv2sf3): Removed.
16394         (mmx_sminv2sf3): Likewise.
16395         (mmx_umaxv8qi3): Likewise.
16396         (mmx_smaxv4hi3): Likewise.
16397         (mmx_uminv8qi3): Likewise.
16398         (mmx_sminv4hi3): Likewise.
16399
16400         * config/i386/sse.md (<addsub><mode>3): New.
16401         (*<addsub><mode>3): Likewise.
16402         (<sse>_vm<addsub><mode>3): Likewise.
16403         (<maxmin><mode>3): Likewise.
16404         (*<maxmin><mode>3_finite): Likewise.
16405         (*<maxmin><mode>3): Likewise.
16406         (<sse>_vm<maxmin><mode>3): Likewise.
16407         (sse3_h<addsub>v4sf3): Likewise.
16408         (sse3_h<addsub>v2df3): Likewise.
16409         (<maxmin>v16qi3): Likewise.
16410         (*<maxmin>v16qi3): Likewise.
16411         (<maxmin>v8hi3): Likewise.
16412         (*<maxmin>v8hi3): Likewise.
16413         (*sse4_1_<maxmin><mode>3): Likewise.
16414         (*sse4_1_<maxmin><mode>3): Likewise.
16415         (add<mode>3): Removed.
16416         (*add<mode>3): Likewise.
16417         (<sse>_vmadd<mode>3): Likewise.
16418         (sub<mode>3): Likewise.
16419         (*sub<mode>3): Likewise.
16420         (<sse>_vmsub<mode>3): Likewise.
16421         (smin<mode>3): Likewise.
16422         (*smin<mode>3_finite): Likewise.
16423         (*smin<mode>3): Likewise.
16424         (<sse>_vmsmin<mode>3): Likewise.
16425         (smax<mode>3): Likewise.
16426         (*smax<mode>3_finite): Likewise.
16427         (*smax<mode>3): Likewise.
16428         (<sse>_vmsmax<mode>3): Likewise.
16429         (sse3_haddv4sf3): Likewise.
16430         (sse3_haddv2df3): Likewise.
16431         (sse3_hsubv4sf3): Likewise.
16432         (sse3_hsubv2df3): Likewise.
16433         (umaxv16qi3): Likewise.
16434         (*umaxv16qi3): Likewise.
16435         (smaxv8hi3): Likewise.
16436         (*smaxv8hi3): Likewise.
16437         (*sse4_1_smax<mode>3): Likewise.
16438         (*sse4_1_umax<mode>3): Likewise.
16439         (uminv16qi3): Likewise.
16440         (*uminv16qi3): Likewise.
16441         (sminv8hi3): Likewise.
16442         (*sminv8hi3): Likewise.
16443         (*sse4_1_smin<mode>3): Likewise.
16444         (*sse4_1_umin<mode>3): Likewise.
16445
16446 2008-04-01  Rafael Espindola  <espindola@google.com>
16447
16448         * tree-cfg.c (verify_expr): remove in_phi.
16449         (verify_stmt): Don't call walk_tree with verify_expr. Use
16450         is_gimple_min_invariant instead of is_gimple_val.
16451
16452 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
16453
16454         * doc/include/gpl_v3.texi: Update for manpage generation.
16455         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
16456         gpl.texi.
16457         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
16458         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
16459         gpl_v3.texi instead of gpl.texi.
16460         (gpl.pod): New.
16461
16462 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
16463
16464         PR pch/13675
16465         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
16466
16467 2008-04-01  Rafael Espindola  <espindola@google.com>
16468
16469         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
16470         (extract_code_and_val_from_cond): Use
16471         extract_code_and_val_from_cond_with_ops.
16472
16473 2008-04-01  Jan Hubicka  <jh@suse.cz>
16474
16475         * function.c (free_after_compilation): Free epilogue_delay_list.
16476         (prepare_function_start): Assert that previous compilation was freed.
16477
16478 2008-04-01  Jan Hubicka  <jh@suse.cz>
16479             Jim Wilson  <wilson@tuliptree.org>
16480             Andreas Tobler <andreast@gcc.gnu.org>
16481
16482         PR middle-end/35781
16483         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
16484         rtl.emit instead cfun->emit.
16485         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
16486         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
16487
16488 2008-04-01  Ben Elliston  <bje@au.ibm.com>
16489
16490         * doc/c-tree.texi (Function Basics): Fix grammatical error.
16491
16492 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
16493
16494         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
16495         New options
16496         (fprofile-use): Add var flag_profile_use
16497         * coverage.c (coverage_begin_output): Do not open a gcno file for
16498         output only if -ftest-coverage is set.
16499         Do not add getpwd() to gcda file path.
16500         (build_gcov_info): Check the new flag
16501         flag_profile_datafile_relative_path.
16502         (coverage_init): Use profile_data_prefix.
16503         Read profile counter only if flag_profile_use is set.
16504         * opts.c (common_handle_option): New option fprofile-use=,
16505         fprofile-dir=, fprofile-generate=.
16506         * toplev.c (profile_data_prefix): New variable definition.
16507         * toplev.h (profile_data_prefix): New declaration.
16508         * doc/invoke.tex (Option Summary, Optimization Options):
16509         Add new options.
16510
16511 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
16512
16513         * varasm.c (output_constant_pool_1): In LABEL_REF check,
16514         use tmp consistently.
16515
16516         PR target/35695
16517         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
16518         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16519         UNSPEC_FR_RECIP_APPROX_RES.
16520         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
16521
16522 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
16523
16524         PR c/35750
16525         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
16526
16527 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16528
16529         PR middle-end/30186
16530         * fold-const.c (fold_indirect_ref_1): Support accessing non first
16531         element of the vector via a pointer.
16532
16533 2008-03-31  Ian Lance Taylor  <iant@google.com>
16534
16535         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
16536
16537 2008-03-31  Jan Hubicka  <jh@suse.cz>
16538
16539         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16540         get_arg_pointer_save_area.
16541         * expr.c (init_expr): Just clear out rtl.expr.
16542         * function.c (free_after_compilation): Clear out whole RTL structure.
16543         (get_func_frame_size): Merge into ...
16544         (get_frame_size): ... this one.
16545         (assign_stack_local_1): Merge into ...
16546         (assign_stack_local): ... this one.
16547         (expand_function_end): Update call of get_arg_pointer_save_area.
16548         (get_art_pointer_save_area): Remove cfun argument.
16549         * function.h (emit_status): regno_pointer_align does not need length
16550         attribute. Move x_regno_reg_rtx to ...
16551         (regno_reg_rtx): ... new global array.
16552         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
16553         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
16554         apply_args_value, forced_labels, stack_pointer_delta):
16555         Update accestors.
16556         (struct varasm_status): Move here from varasm.c
16557         (struct rtl_data): New. Move here some fields from struct function.
16558         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16559         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16560         used_temp_slots avail_temp_slots, temp_slot_level,
16561         nonlocal_goto_handler_labels): Update accesstors.
16562         (rtl): New global variable.
16563         (struct function): Move some fileds to rtl_data.
16564         (get_arg_pointer_save_area): Update prototype.
16565         * emit-rtl.c (rtl): Declare.
16566         (regno_reg_rtx): Declare.
16567         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16568         Update.
16569         (gen_reg_rtx): Update.
16570         (init_virtual_regs): Do not tate emit_status argument.
16571         (init_emit): Do not allocate emit.
16572         * varasm.c (varasm_statuc): Move to function.h.
16573         (n_deferred_constatns): Update accestor.
16574         (init_varasm_status): Do not allocate varasm_status.
16575         (force_const_mem, get_pool_size, output_constant_pool): Update.
16576         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16577         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16578
16579 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
16580
16581         PR rtl-optimization/35729
16582         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
16583         references.
16584
16585 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
16586
16587         PR target/32000
16588         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
16589         load/store if memory is unaligned.
16590         (*movti_rex64): Likewise.
16591
16592         * config/i386/predicates.md (misaligned_operand): New.
16593
16594 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
16595
16596         PR tree-opt/35431
16597         * tree-ssa-phiopt.c (conditional_replacement): Return early for
16598         complex types.
16599
16600 2008-03-31  Jan Beulich  <jbeulich@novell.com>
16601
16602         * config/ia64/constraints.md: Add 'j' constraint.
16603         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
16604         (movdi_internal): Likewise.
16605
16606 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
16607
16608         PR c/35748
16609         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
16610
16611 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16612
16613         PR target/35757
16614         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
16615         proper error message for the third argument on blendpd and
16616         blendps.
16617
16618         * config/i386/sse.md (blendbits): New.
16619         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
16620
16621 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
16622
16623         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
16624
16625 2008-03-30  Richard Guenther  <rguenther@suse.de>
16626
16627         PR middle-end/31023
16628         * fold-const.c (fold_sign_changed_comparison): Do leave
16629         conversions to base-types alone.
16630
16631 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16632
16633         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
16634         the link register if one altivec register is be saved.
16635
16636 2008-03-30  Ben Elliston  <bje@au.ibm.com>
16637
16638         * final.c (final_scan_insn): Remove if (0) code.
16639
16640 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
16641
16642         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
16643
16644 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
16645
16646         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
16647         of V4SFmode to ix86_binary_operator_ok.
16648
16649 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
16650
16651         * config/i386/i386.c (override_options): Initialize
16652         ix86_veclib_handler to ix86_veclibabi_svml when
16653         -mveclibabi=svml is used.
16654         (ix86_veclibabi_svml): New function for SVML ABI style
16655         vectorization support.
16656         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
16657
16658 2008-03-28  Rafael Espindola  <espindola@google.com>
16659
16660         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
16661         (tree_binary_nonnegative_warnv_p): Make it public.
16662         (tree_single_nonnegative_warnv_p): Make it public.
16663         (tree_invalid_nonnegative_warnv_p): Make it public.
16664         (tree_unary_nonzero_warnv_p): Make it public.
16665         (tree_binary_nonzero_warnv_p): Make it public
16666         (tree_single_nonzero_warnv_p): Make it public.
16667         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
16668         (extract_range_from_binary_expr): Split the expr argument.
16669         (extract_range_from_unary_expr): Split the expr argument.
16670         (extract_range_from_comparison): Split the expr argument.
16671         (extract_range_from_expr): Use the new aux functions.
16672         (vrp_evaluate_conditional_warnv): Use
16673         vrp_evaluate_conditional_warnv_with_ops.
16674         * tree.h (tree_unary_nonzero_warnv_p): Declare.
16675         (tree_binary_nonzero_warnv_p): Declare.
16676         (tree_single_nonzero_warnv_p): Declare.
16677         (tree_expr_nonzero_warnv_p): Declare.
16678         (tree_unary_nonnegative_warnv_p): Declare.
16679         (tree_binary_nonnegative_warnv_p): Declare.
16680         (tree_single_nonnegative_warnv_p): Declare.
16681         (tree_invalid_nonnegative_warnv_p): Declare.
16682
16683 2008-03-28  Richard Guenther  <rguenther@suse.de>
16684
16685         PR tree-optimization/30317
16686         PR tree-optimization/30911
16687         PR tree-optimization/34793
16688         * tree-vrp.c (set_and_canonicalize_value_range): New function.
16689         (struct assert_locus_d): New member EXPR.
16690         (register_new_assert_for): Add EXPR parameter to support
16691         ASSERT_EXPR <name, expr OP limit>.
16692         (register_edge_assert_for_1): Adjust callers.
16693         (find_assert_locations): Likewise.
16694         (process_assert_insertions_for): Build condition from expression.
16695         (extract_range_from_assert): Handle ASSERT_EXPRs
16696         of the form ASSERT_EXPR <name, expr OP limit>.
16697         (register_edge_assert_for_2): New helper registering
16698         asserts for comparisons.  Recognize range tests of the form
16699         (unsigned)i - CST1 OP CST2.
16700         (register_edge_assert_for_1): Use it.
16701         (register_edge_assert_for): Likewise.
16702         (needs_overflow_infinity): Integer sub-types
16703         do not need overflow infinities.
16704         (vrp_val_is_max): The extreme values of integer sub-types
16705         are those of the base type.
16706         (vrp_val_is_min): Likewise.
16707         * tree.def (ASSERT_EXPR): Document extra allowed conditional
16708         expressions.
16709
16710 2008-03-28  Nick Clifton  <nickc@redhat.com>
16711
16712         PR target/31110
16713         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
16714         Return GENERAL_REGS for stack adjustment reloads.
16715
16716 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16717
16718         PR target/31334
16719         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
16720         const_vector when all the vectors are constant.
16721
16722 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
16723
16724         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
16725         comparisons.
16726         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
16727         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
16728         (scc_sf): New.
16729         (s<code>_sf): Use new scc_sf attribute for opcode names.
16730
16731 2008-03-27  Tom Tromey  <tromey@redhat.com>
16732
16733         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
16734         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
16735         config/spu/t-spu-elf, config/i386/t-interix,
16736         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
16737         config/i386/x-darwin, config/i386/x-mingw32,
16738         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
16739         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
16740         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
16741         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
16742         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
16743         config/rs6000/x-darwin, config/rs6000/t-rs6000,
16744         config/score/t-score-elf, config/arm/t-strongarm-pe,
16745         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
16746         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
16747         Revert automatic dependency patch.
16748
16749 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16750
16751         PR target/35657
16752         * config/i386/i386.c (ix86_function_arg_boundary): Align
16753         decimal floating point to its natural boundary.
16754
16755 2008-03-27  Richard Guenther  <rguenther@suse.de>
16756
16757         PR middle-end/35716
16758         * fold-const.c (fold_comparison): Restrict distinct decl
16759         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
16760         solely rely on operand_equal_p.
16761
16762 2008-03-27  Richard Guenther  <rguenther@suse.de>
16763
16764         PR c/32511
16765         * c-common.c (handle_weak_attribute): Reject combination of
16766         weak and inline.
16767
16768 2008-03-27  Richard Guenther  <rguenther@suse.de>
16769
16770         PR tree-optimization/32810
16771         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
16772         conversions from DECL_INITIAL.
16773         (fold_const_aggregate_ref): Likewise from constructor elements.
16774
16775 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
16776
16777         * tree-affine.h (aff_combination_expand): Declare.
16778         (get_inner_reference_aff): Likewise.
16779         * tree-affine.c (aff_combination_expand): Split out from
16780         tree_to_aff_combination_expand.
16781         (get_inner_reference_aff): New function.
16782         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
16783         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
16784         (struct lim_aux_data): sm_done field removed.
16785         (mem_ref_loc_p, mem_ref_locs_p): New types.
16786         (struct mem_ref): Added id, stored, accesses_in_loop,
16787         indep_loop, dep_loop, indep_ref, dep_ref fields.
16788         Removed is_stored, locs and next fields.
16789         (memory_accesses): New variable.
16790         (movement_possibility): Do not allow moving statements
16791         that store to memory.
16792         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
16793         New functions.
16794         (determine_max_movement): For statements with memory references,
16795         find the outermost loop in that the reference is independent.
16796         (move_computations_stmt): Mark the virtual operands for renaming.
16797         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
16798         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
16799         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
16800         add_vop_ref_mapping, create_vop_ref_mapping_loop,
16801         create_vop_ref_mapping, analyze_memory_references,
16802         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
16803         get_all_locs_in_loop, ref_always_accessed_p,
16804         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
16805         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
16806         store_motion_loop, store_motion): New functions.
16807         (struct vop_to_refs_elt): New type.
16808         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
16809         memref_hash, memref_eq, hoist_memory_references): Rewritten.
16810         (schedule_sm): Replaced by...
16811         (execute_sm): ... this.
16812         (determine_lsm_ref, hoist_memory_references,
16813         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
16814         find_more_ref_vops, free_mem_ref, free_mem_refs,
16815         determine_lsm_loop, determine_lsm): Removed.
16816         (tree_ssa_lim_finalize): Free data structures used by store motion.
16817         (tree_ssa_lim): Call analyze_memory_references.  Use
16818         store_motion instead of determine_lsm.
16819
16820 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
16821
16822         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
16823         rename tmake_file to m68hc11/t-m68hc11.
16824         (mcore): Set inhibit_libc to true.
16825         * config.host (alpha*-dec-*vms*): Set extra_programs.
16826         (interix3*): Don't use host_xmake_file.
16827         * configure.ac: Let config.gcc override inhibit_libc.
16828         * configure: Regenerate.
16829
16830         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
16831         * config/t-openbsd-thread: Remove commented out lines.
16832
16833         * config/x-interix: Remove.
16834
16835         * config/m68hc11/t-m68hc11-gas: Rename to...
16836         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
16837
16838         * config/mcore/t-mcore: Remove T_CFLAGS.
16839         * config/mcore/t-mcore-pe: Likewise.
16840
16841 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
16842
16843         * configure.ac: Replace custom __GNU_SOURCE test with
16844         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
16845         * aclocal.m4: Regenerate.
16846         * configure: Regenerate.
16847         * config.in: Regenerate.
16848
16849 2008-03-27  Richard Guenther  <rguenther@suse.de>
16850
16851         * fold-const.c (target.h): Include.
16852         (fold_comparison): Fold comparison of addresses of decls
16853         that bind locally or of constants.  Consolidate address folding code.
16854         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
16855         results from fold_binary_to_constant.
16856         (compare_values_warnv): Likewise.
16857
16858 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
16859
16860         PR middle-end/35429
16861         * fold-const.c (fold_truthop): Check for integeral types when folding
16862         a == 0 && b == 0 and a != 0 || b != 0 .
16863
16864 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
16865
16866         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
16867
16868 2008-03-26  Andreas Schwab  <schwab@suse.de>
16869
16870         * doc/invoke.texi: Fix use of @item vs. @itemx.
16871
16872 2008-03-26  Tom Tromey  <tromey@redhat.com>
16873
16874         * Makefile.in (build/gensupport.o, build/print-rtl.o,
16875         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
16876         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
16877         build/gencodes.o, build/genconditions.o, build/genconfig.o,
16878         build/genconstants.o, build/genemit.o, build/genextract.o,
16879         build/genflags.o, build/genmddeps.o, build/genopinit.o,
16880         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
16881         options.h.
16882
16883 2008-03-26  Richard Guenther  <rguenther@suse.de>
16884
16885         Revert
16886         2008-03-26  Richard Guenther  <rguenther@suse.de>
16887
16888         * fold-const.c (target.h): Include.
16889         (fold_comparison): Fold comparison of addresses of two decls
16890         that bind locally.  Consolidate address folding code.
16891
16892 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16893
16894         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
16895         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
16896         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
16897         dconstsqrt2, dconstthird, dconste and/or dconst10.
16898         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
16899         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
16900         dconstsqrt2, dconste): Delete.
16901         (init_emit_once): Likewise.  Simplify initializing dconstm1.
16902         Constify variable.
16903         * real.c (get_real_const): New.
16904         * real.h (dconst3, dconst10, dconstm2, dconstthird,
16905         dconstsqrt2, dconste): Delete.
16906         (real_value_const, get_real_const): New.
16907
16908 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
16909
16910         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
16911
16912         * config/i386/i386.c (ix86_function_arg_boundary): Check
16913         BIGGEST_ALIGNMENT instead of 128.
16914         (setup_incoming_varargs_64): Likewise.
16915
16916 2008-03-26  Tom Tromey  <tromey@redhat.com>
16917
16918         * Makefile.in (DEPFILES): Add missing '/'.
16919
16920 2008-03-26  Richard Guenther  <rguenther@suse.de>
16921
16922         * fold-const.c (target.h): Include.
16923         (fold_comparison): Fold comparison of addresses of two decls
16924         that bind locally.  Consolidate address folding code.
16925
16926 2008-03-26  Nick Clifton  <nickc@redhat.com>
16927
16928         PR target/31232
16929         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
16930         not allow INT+INT as a legitimate addressing mode.
16931
16932 2008-03-26  Richard Guenther  <rguenther@suse.de>
16933
16934         * tree-flow.h (widen_bitfield): Remove declaration.
16935         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
16936         (widen_bitfield): Remove function.
16937         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
16938         code.
16939
16940 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16941
16942         PR target/31558
16943         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
16944         error_mark_node's.
16945
16946 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
16947
16948         PR rtl-optimization/35232
16949         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
16950         (forget_old_reloads_1, forget_marked_reloads): Don't clear
16951         reg_reloaded_call_part_clobbered here.
16952         (reload_regs_reach_end_p): New function.
16953         (reload_reg_rtx_for_input): New variable.
16954         (reload_reg_rtx_for_output): Likewise.
16955         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
16956         when reassigning a pseudo register.  Load reloadreg from
16957         reload_reg_rtx_for_input, moving the mode and register
16958         calculation to...
16959         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
16960         instead of the original when deciding whether an input reload
16961         would be a no-op or whether an output reload can be deleted.
16962         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
16963         when setting up new_spill_reg_store.  Load it from
16964         reload_reg_rtx_for_output, moving the mode and register
16965         calculation to...
16966         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
16967         instead of the original when deciding whether an output reload
16968         would be a no-op.  Do the same when modifying insn notes.
16969         Use rtx_equal_p instead of == to compare the registers.
16970         (inherit_piecemeal_p): Take a mode and two register numbers
16971         as argument.
16972         (emit_reload_insns): Clear new_spill_reg_store for every hard
16973         register in the reload register.  Remove spill registers
16974         from reg_reloaded_valid before considering whether to record
16975         inheritance information for them.  Use reload_reg_rtx_for_output
16976         instead of reg_rtx when recording output reloads.  Use
16977         reload_reg_rtx_for_input instead of reg_rtx when recording
16978         input reloads.  Set or clear reg_reloaded_call_part_clobbered
16979         at the same time as setting reg_reloaded_valid.
16980         (delete_output_reload): Add a new_reload_reg parameter and use it
16981         instead of rld[j].reg_rtx.
16982         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
16983         calls accordingly.
16984
16985 2008-03-25  Tom Tromey  <tromey@redhat.com>
16986
16987         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
16988         (build/genattr.o): Likewise.
16989         (build/genattrtab.o): Likewise.
16990         (build/gencodes.o): Likewise.
16991         (build/genconfig.o): Likewise.
16992         (build/genconstants.o): Likewise.
16993         (build/genemit.o): Likewise.
16994         (build/genextract.o): Likewise.
16995         (build/genflags.o): Likewise.
16996
16997 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
16998
16999         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17000         instead of size_int for integer types.
17001         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17002         to match type of MINUS_EXPR.
17003
17004 2008-03-25  Tom Tromey  <tromey@redhat.com>
17005
17006         * configure: Rebuilt.
17007         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17008         Makefile.
17009
17010 2008-03-25  Tom Tromey  <tromey@redhat.com>
17011
17012         * config/x-solaris (host-solaris.o): Update.
17013         * config/x-linux (host-linux.o): Update.
17014         * config/x-hpux (host-hpux.o): Update.
17015         * config/x-darwin (host-darwin.o): Update.
17016         * config/v850/t-v850e (v850-c.o): Update.
17017         * config/v850/t-v850 (v850-c.o): Update.
17018         * config/t-vxworks (vxworks.o): Update.
17019         * config/t-sol2 (sol2-c.o, sol2.o): Update.
17020         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17021         * config/spu/t-spu-elf (spu-c.o): Update.
17022         (spu.o): Remove.
17023         * config/sh/t-symbian (sh-c.o): Update.
17024         (symbian.o): Update.
17025         * config/sh/t-sh (sh-c.o): Update.
17026         * config/score/t-score-elf (score7.o, score3.o): Update.
17027         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17028         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17029         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17030         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17031         (rs6000.o): Remove.
17032         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17033         * config/m32c/t-m32c (m32c-pragma.o): Update.
17034         * config/ia64/t-ia64 (ia64-c.o): Update.
17035         * config/i386/x-mingw32 (host-mingw32.o): Update.
17036         * config/i386/x-i386 (driver-i386.o): Update.
17037         * config/i386/x-darwin (host-i386-darwin.o): Update.
17038         * config/i386/x-cygwin (host-cygwin.o): Update.
17039         * config/i386/t-nwld (nwld.o): Update.
17040         * config/i386/t-netware (netware.o): Update.
17041         * config/i386/t-interix (winnt.o): Update.
17042         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17043         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17044         msformat-c.o): Update.
17045         * config/bfin/t-bfin-linux (generated_files): Add
17046         linux-sysroot-suffix.h.
17047         * config/arm/t-wince-pe (pe.o): Update.
17048         * config/arm/t-strongarm-pe (pe.o): Update.
17049         * config/arm/t-pe (pe.o): Update.
17050         * config/arm/t-arm (arm-c.o): Update.
17051         * doc/install.texi (Prerequisites): Require make 3.80.
17052         * Makefile.in: Remove .o targets.
17053         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17054         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17055         (simple_generated_h, simple_generated_c): Move earlier.
17056         (generated_files): New variable.
17057         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17058         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17059         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17060         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17061         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17062         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17063         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17064         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17065         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17066         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17067         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17068         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
17069         (.c.o): Remove.
17070         (COMPILE.base, COMPILE): New variables.
17071         (%.o): New pattern rule.
17072         (ALL_HOST_OBJS): New variable.
17073         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
17074         (dummy-checksum.o, cc1-checksum.o): Remove.
17075         (DRIVER_SHLIB): New variable.
17076         (DRIVER_DEFINES): Use it.
17077         (gencondmd.c): Move out of build/.
17078         (s-conditions): Update.
17079         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
17080         (ALL_BUILD_OBJS): Likewise.
17081         (build/%.o): Use BUILDCOMPILE.
17082         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
17083         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
17084         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
17085         build/gencheck.o, build/gencodes.o, build/genconditions.o,
17086         build/genconfig.o, build/genconstants.o, build/genemit.o,
17087         build/genextract.o, build/genflags.o, build/genmddeps.o,
17088         build/genopinit.o, build/genoutput.o, build/genpeep.o,
17089         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
17090         build/gen-protos.o, build/scan.o, build/fix-header.o,
17091         build/scan-decls.o): Simplify.
17092         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
17093         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
17094         prefix.o, toplev.o): Reduce to variable setting.
17095         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
17096         ($(out_object_file), gcc-options.o): New targets.
17097         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
17098         * configure: Rebuilt.
17099         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
17100         * doc/sourcebuild.texi (Front End Directory): Document new variable.
17101
17102 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
17103
17104         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
17105         complain when we hit an error, return ERROR_MARK_NODE.
17106
17107 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17108
17109         * config/sh/constraints.md (Pso, Psz): New constraints.
17110         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
17111         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
17112
17113 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17114
17115         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
17116         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
17117
17118 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17119
17120         * config/sh/sh.md (prefetch): Add condition for SH2A target.
17121         (prefetch_sh2a): New.
17122
17123 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17124             Naveen.H.S  <naveen.hs@kpitcummins.com>
17125
17126         * config/sh/constraints.md (I28): New constraint.
17127         * config/sh/sh.c (broken_move): Add support for movi20s.
17128         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
17129
17130 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
17131             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17132             Naveen.H.S  <naveen.hs@kpitcummins.com>
17133
17134         * config/sh/sh.c (SH_ATTRIBUTES): Define.
17135         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
17136         (print_operand): Handle resbank in %@ operand code.
17137         (sh_encode_section_info): New.
17138         (push_regs): Add conditions for resbank.
17139         (sh_expand_epilogue): Likewise.
17140         (sh_insert_attributes): Likewise.
17141         (sh_attribute_table): Likewise.
17142         (sh_handle_resbank_handler_attribute): New.
17143         (sh2a_handle_function_vector_handler_attribute): New.
17144         (sh2a_is_function_vector_call): New.
17145         (sh2a_get_function_vector_number): New.
17146         (sh2a_function_vector_p): New.
17147         (sh_cfun_resbank_handler_p): New.
17148         * config/sh/sh.md (calli): Emit jsr/n if possible.
17149         (calli_tbr_rel): New.
17150         (calli_pcrel): Emit jsr/n if possible.
17151         (return_i): Emit rts/n if possible.
17152         (call_valuei_tbr_rel): New.
17153         (call_valuei_pcrel): Add condition for SH2A target.
17154         (call_value): Likewise.
17155         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
17156         (sh2a_get_function_vector_number): Likewise.
17157         (sh2a_is_function_vector_call): Likewise.
17158         * doc/extend.texi: Document TBR relative addressing of SH2A.
17159         (resbank): Add description for SH2A.
17160
17161 2008-03-24  Richard Guenther  <rguenther@suse.de>
17162
17163         PR c/22371
17164         * gimplify.c (gimplify_modify_expr): For frontend type-correct
17165         pointer assignments change conversions according to middle-end rules.
17166         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17167         * configure.ac: Include type checking in yes.
17168         * configure: Regenerate.
17169
17170 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17171
17172         * diagnostic.c (diagnostic_count_diagnostic): Delete.
17173         (diagnostic_report_diagnostic): Update. Handle ICEs here.
17174
17175 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
17176
17177         * gthr-vxworks.h (UNUSED): Define.
17178
17179 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17180
17181         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
17182
17183 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
17184
17185         * doc/extend.texi (Function Attributes): Add missing comma in the
17186         example of the "alloc_size" attribute.
17187
17188 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
17189
17190         Revert:
17191         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17192
17193         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17194         32bit host.
17195
17196         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
17197
17198         PR target/35496
17199         * stor-layout.c (update_alignment_for_field): Set minimum alignment
17200         of the underlying type of a MS bitfield layout to the natural
17201         alignment of the type.
17202
17203         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
17204
17205         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17206         to their natural alignment to avoid store forwarding stalls.
17207
17208 2008-03-22  Richard Guenther  <rguenther@suse.de>
17209
17210         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
17211         For PHI nodes verify the address is invariant.
17212         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
17213         (get_symbol_constant_value): Use is_gimple_min_invariant.
17214         (maybe_fold_stmt_indirect): Likewise.
17215
17216 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
17217
17218         PR rtl-optimization/33927
17219         * Makefile.in (dse.o): Depend on $(TM_P_H).
17220         * expr.h (extract_low_bits): Declare.
17221         * expmed.c (extract_low_bits): New function.
17222         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
17223         * dse.c: Include tm_p.h.
17224         (find_shift_sequence): Remove the read_reg argument and return the
17225         read value.  Emit the instructions instead of returning them.
17226         Iterate on new_mode rather than calculating it each time.
17227         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
17228         source to NEW_MODE and extract_low_bits to convert the shifted
17229         value to READ_MODE.
17230         (replace_read): Allow the load and store to have different mode
17231         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
17232         or extraction instructions before trying the replacement.  Update
17233         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
17234
17235 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
17236
17237         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17238         to their natural alignment to avoid store forwarding stalls.
17239
17240 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17241
17242         PR target/27946
17243         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
17244         encouraging but not allowing gprs for input;
17245         change the input constraint to !f#r.
17246         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
17247         gprs for output;
17248         change the output constraint to !f#r.
17249
17250 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
17251
17252         PR target/13958
17253         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
17254         corresponding post-reload splitters.
17255         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
17256         when x87 FP math is selected.
17257         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
17258         New function prototype.
17259         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
17260         unreachable function to ease macroization of insn patterns.
17261
17262 2008-03-21  Martin Jambor  <mjambor@suse.cz>
17263
17264         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
17265         reference dumps if ddr is NULL or dependence is unknown.
17266
17267 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17268
17269         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
17270         unsigned extension into account.
17271         (ATOMIC_COMPARE_AND_SWAP): Likewise.
17272         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
17273         Do computations on a scratch register.
17274
17275 2008-03-21  Richard Guenther  <rguenther@suse.de>
17276
17277         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17278         Use is_gimple_min_invariant instead of TREE_INVARIANT.
17279         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17280         * tree-ssa-dom.c (record_equality): Likewise.
17281         * tree-inline.c (copy_body_r): Likewise.
17282         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
17283         TREE_INVARIANT.
17284
17285 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17286
17287         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
17288         as 'delete_unused' argument.
17289
17290 2008-03-20  Richard Guenther  <rguenther@suse.de>
17291
17292         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
17293         special casing of constant qualifiers.
17294         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
17295         care about them in general.
17296         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
17297         regardless of their type.
17298         (fold_stmt_r): Forcefully fold *& if we end up with that.
17299
17300 2008-03-20  Paul Brook  <paul@codesourcery.com>
17301
17302         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
17303         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
17304         linker flags.
17305         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
17306         definition.
17307         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
17308         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
17309
17310 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
17311
17312         * common.opt (Wmudflap): New option.
17313         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
17314         (mx_register_decls): Likewise.
17315         (mudflap_finish_file): Likewise.
17316         * doc/invoke.texi: Document -Wno-mudflap.
17317
17318 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
17319
17320         * c-format.c (replace_format_name_to_system_name): New.
17321         (cmp_attribs): New.
17322         (convert_format_name_to_system_name): New.
17323         (decode_format_attr): Add use of convert_format_name_to_system_name.
17324         (format_types_orig): Add gnu_ prefix to names.
17325         (check_format_info_main): Special treating of \0 escaped names for
17326         supporting multi-character format specifiers as I32, I64.
17327         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
17328         (gnu_target_overrides_format_attributes): New.
17329         * c-format.h: Add structure target_ovr_attr to hold
17330         system specific formatter names.
17331         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
17332         msformat-c.o file to c_target_objs and cxx_target_objs.
17333         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17334         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
17335         (TARGET_N_FORMAT_TYPES): New.
17336         * config/i386/msformat-c.c: New.
17337         * config/i386/t-cygming: Add build rule for msformat-c.o.
17338         * doc/extend.texi: Add new format names gnu_* and ms_* and
17339         further details.
17340         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17341
17342 2008-03-20  Ira Rosen  <irar@il.ibm.com>
17343
17344         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
17345         optimizations turned on under -O3.
17346         (ftree-vectorize): Add that the flag is turned on with -O3.
17347
17348 2008-03-20  Ben Elliston  <bje@au.ibm.com>
17349
17350         * regmove.c (try_auto_increment): Fix spelling error in comment.
17351         * final.c (final_scan_insn): Likewise.
17352
17353 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
17354
17355         PR target/14552
17356         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
17357         allocator preferences for "y" and "r" class registers.
17358         ("*mov<mode>_internal"): Ditto.
17359         ("*movv2sf_internal_rex64"): Ditto.
17360         ("*movv2sf_internal"): Ditto.
17361
17362 2008-03-19  Michael Matz  <matz@suse.de>
17363
17364         PR middle-end/35616
17365         * calls.c (expand_call): Check overlap of arguments with call
17366         address for sibcalls.
17367
17368 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
17369
17370         PR target/35496
17371         * stor-layout.c (update_alignment_for_field): Set minimum alignment
17372         of the underlying type of a MS bitfield layout to the natural
17373         alignment of the type.
17374
17375 2008-03-19  Jan Hubicka  <jh@suse.cz>
17376
17377         PR other/35094
17378         * toplev.c (decode_d_option): Handle all CPP flags.
17379         * tree-vrp.c: Update tree_pass descriptors.
17380         * regrename.c: Update tree_pass descriptors.
17381         * fwprop.c: Update tree_pass descriptors.
17382         * doc/invoke.texi: Remove documentation of dropped -d? flags.
17383         * tree-into-ssa.c: Update tree_pass descriptors.
17384         * tree-dump.c: Update tree_pass descriptors.
17385         * tree-complex.c: Update tree_pass descriptors.
17386         * tree-dump.h: Update tree_pass descriptors.
17387         * see.c: Update tree_pass descriptors.
17388         * cgraphbuild.c: Update tree_pass descriptors.
17389         * tracer.c: Update tree_pass descriptors.
17390         * tree-loop-distribution.c: Update tree_pass descriptors.
17391         * cgraph.c: Update tree_pass descriptors.
17392         * postreload-gcse.c: Update tree_pass descriptors.
17393         * postreload.c: Update tree_pass descriptors.
17394         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
17395         * tree-tailcall.c: Update tree_pass descriptors.
17396         * tree-pass.h (tree_opt_pass): Rename to ...
17397         (opt_pass) ... this one; add "type" field and remove letter field.
17398         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
17399         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
17400         all_lowering_passes): Update declaration.
17401         * ipa-cp.c: Update tree_pass descriptors.
17402         * final.c: Update tree_pass descriptors.
17403         * omp-low.c: Update tree_pass descriptors.
17404         * tree-ssa-dse.c: Update tree_pass descriptors.
17405         * ipa-reference.c: Update tree_pass descriptors.
17406         * tree-ssa-uncprop.c: Update tree_pass descriptors.
17407         * auto-inc-dec.c: Update tree_pass descriptors.
17408         * reorg.c: Update tree_pass descriptors.
17409         * cgraphunit.c: Update tree_pass descriptors.
17410         * tree-ssa-copyrename.c: Update tree_pass descriptors.
17411         * tree-ssa-ccp.c: Update tree_pass descriptors.
17412         * df-core.c: Update tree_pass descriptors.
17413         * mode-switching.c: Update tree_pass descriptors.
17414         * tree-nomudflap.c: Update tree_pass descriptors.
17415         * modulo-sched.c: Update tree_pass descriptors.
17416         * ipa-pure-const.c: Update tree_pass descriptors.
17417         * cse.c: Update tree_pass descriptors.
17418         * web.c: Update tree_pass descriptors.
17419         * tree-stdarg.c: Update tree_pass descriptors.
17420         * tree-ssa-math-opts.c: Update tree_pass descriptors.
17421         * tree-ssa-dom.c: Update tree_pass descriptors.
17422         * tree-nrv.c: Update tree_pass descriptors.
17423         * tree-ssa-alias.c: Update tree_pass descriptors.
17424         * loop-init.c: Update tree_pass descriptors.
17425         * gimple-low.c: Update tree_pass descriptors.
17426         * ipa-inline.c: Update tree_pass descriptors.
17427         * tree-ssa-sink.c: Update tree_pass descriptors.
17428         * global.c: Update tree_pass descriptors.
17429         * ifcvt.c: Update tree_pass descriptors.
17430         * jump.c: Update tree_pass descriptors.
17431         * predict.c: Update tree_pass descriptors.
17432         * tree-ssa-loop.c: Update tree_pass descriptors.
17433         * recog.c: Update tree_pass descriptors.
17434         * dse.c: Update tree_pass descriptors.
17435         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
17436         * tree-eh.c: Update tree_pass descriptors.
17437         * regmove.c: Update tree_pass descriptors.
17438         * local-alloc.c
17439         * function.c: Update tree_pass descriptors.
17440         * tree-vectorizer.c: Update tree_pass descriptors.
17441         * gcse.c: Update tree_pass descriptors.
17442         * ipa-type-escape.c: Update tree_pass descriptors.
17443         * tree-if-conv.c: Update tree_pass descriptors.
17444         * init-regs.c: Update tree_pass descriptors.
17445         * ipa.c: Update tree_pass descriptors.
17446         * tree-ssa-phiopt.c: Update tree_pass descriptors.
17447         * rtl-factoring.c: Update tree_pass descriptors.
17448         * lower-subreg.c: Update tree_pass descriptors.
17449         * bt-load.c: Update tree_pass descriptors.
17450         * tree-dfa.c: Update tree_pass descriptors.
17451         * except.c: Update tree_pass descriptors.
17452         * emit-rtl.c: Update tree_pass descriptors.
17453         * cfgexpand.c: Update tree_pass descriptors.
17454         * tree-cfgcleanup.c: Update tree_pass descriptors.
17455         * cfgcleanup.c: Update tree_pass descriptors.
17456         * tree-ssa-pre.c: Update tree_pass descriptors.
17457         * tree-sra.c: Update tree_pass descriptors.
17458         * tree-mudflap.c: Update tree_pass descriptors.
17459         * tree-ssa-copy.c: Update tree_pass descriptors.
17460         * cfglayout.c: Update tree_pass descriptors.
17461         * tree-ssa-forwprop.c: Update tree_pass descriptors.
17462         * tree-ssa-dce.c: Update tree_pass descriptors.
17463         * tree-ssa.c: Update tree_pass descriptors.
17464         * regclass.c: Update tree_pass descriptors.
17465         * integrate.c: Update tree_pass descriptors.
17466         * tree-optimize.c: Update tree_pass descriptors.
17467         * tree-ssa-phiprop.c: Update tree_pass descriptors.
17468         * tree-object-size.c: Update tree_pass descriptors.
17469         * combine.c: Update tree_pass descriptors.
17470         * tree-outof-ssa.c: Update tree_pass descriptors.
17471         * bb-reorder.c: Update tree_pass descriptors.
17472         * stack-ptr-mod.c: Update tree_pass descriptors.
17473         * var-tracking.c: Update tree_pass descriptors.
17474         * tree-profile.c: Update tree_pass descriptors.
17475         * tree-vect-generic.c: Update tree_pass descriptors.
17476         * reg-stack.c: Update tree_pass descriptors.
17477         * sched-rgn.c: Update tree_pass descriptors.
17478         * tree-ssa-structalias.c: Update tree_pass descriptors.
17479         * tree-cfg.c: Update tree_pass descriptors.
17480         * passes.c (current_pass): Update declaration.
17481         (finish_optimization_passes): Update.
17482         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
17483         (register_one_dump_file, register_dump_files_1, next_pass_1):
17484         Update arguments.
17485         (init_optimization_passes): Update handling of new types.
17486         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
17487         * ipa-struct-reorg.c: Update tree_pass descriptors.
17488         * tree-ssa-reassoc.c: Update tree_pass descriptors.
17489         * combine-stack-adj.c: Update tree_pass descriptors.
17490         * cfgrtl.c: Update tree_pass descriptors.
17491         * dce.c: Update tree_pass descriptors.
17492         * tree-ssanames.c: Update tree_pass descriptors.
17493
17494 2008-03-19  Richard Guenther  <rguenther@suse.de>
17495
17496         PR middle-end/35609
17497         * tree-ssa.c (walk_data): New structure.
17498         (warn_uninitialized_var): If not always_executed warn with "maybe"
17499         instead of "is".
17500         (execute_early_warn_uninitialized): Compute post-dominators.
17501         Initialize always_executed before processing each basic block.
17502
17503 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
17504
17505         PR target/35504
17506         * config/i386/i386.c (x86_this_parameter): Calculate correct location
17507         of "this" pointer when "regparm = N" or "fastcall" is in effect.
17508
17509 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17510
17511         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
17512
17513 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
17514
17515         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
17516         is true.
17517         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
17518         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
17519         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
17520         target after ignore has been set, and move there also the commputation
17521         of subtarget and original_target.
17522         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
17523         (LANG_HOOKS_INITIALIZER): Remove it.
17524         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
17525
17526 2008-03-18  Richard Guenther  <rguenther@suse.de>
17527
17528         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
17529         found an expression with constants, note that in the VN for the lhs.
17530         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
17531         fold them to constants if possible.  Run cleanup_cfg if done so.
17532         (execute_pre): Return todo.
17533         (do_pre): Likewise.
17534         (execute_fre): Likewise.
17535         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
17536         of constants.
17537         (get_prop_source_stmt): Look through pointer conversions.
17538
17539 2008-03-18  Jan Hubicka  <jh@suse.cz>
17540
17541         * tree-pretty-print.c: Include predict.h.
17542         (dump_generic_node): Dump predictor.
17543         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
17544         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
17545         * gimple-low.c (lower_stmt): Likewise.
17546         * expr.c (expand_expr_real): Likewise.
17547         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
17548         them.
17549         (build_predict_expr, build_predict_expr): New.
17550         * predict.h (predictor_name, build_predict_expr): Update.
17551         * c-typeck.c (c_finish_bc_stmt): Add prediction.
17552         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
17553         * predict.def (PRED_CONTINUE): Update hitrate.
17554         * tree.def (PREDICT_EXPR): Define.
17555         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
17556         do not handle BIND_EXPR.
17557         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
17558         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
17559         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
17560         operands.
17561
17562 2008-03-18  Michael Matz  <matz@suse.de>
17563
17564         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
17565
17566 2008-03-18  Richard Guenther  <rguenther@suse.de>
17567
17568         * tree-gimple.h (is_gimple_invariant_address): Declare.
17569         (is_gimple_constant): Likewise.
17570         * tree-gimple.c (is_gimple_constant): New function.
17571         (is_gimple_invariant_address): Likewise.
17572         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
17573         and is_gimple_invariant_address.
17574         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
17575         previous change.
17576         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
17577         an addressable base.
17578
17579 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
17580
17581         PR middle-end/35611
17582         * gimplify.c (gimplify_expr): Gimplify second operand of
17583         OMP_ATOMIC_LOAD.
17584
17585 2008-03-17  Richard Guenther  <rguenther@suse.de>
17586
17587         PR tree-optimization/19637
17588         * fold-const.c (fold_unary): Remove restrictions of removing
17589         intermediate pointer-conversions (P2)(P1)P0.
17590         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
17591         conversion to void pointer.
17592         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
17593
17594 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
17595
17596         PR debug/31510
17597         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
17598         emulated thread local variables.
17599
17600 2008-03-16  Richard Guenther  <rguenther@suse.de>
17601
17602         PR middle-end/35607
17603         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
17604         expand TREE_INVARIANT operations that are not gimple invariant.
17605
17606 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
17607
17608         * doc/extend.texi (Alignment): Say that the ABI controls
17609         the __alignof__ for non-strict-alignment targets rather
17610         than being a recommendation.
17611
17612 2008-03-15  Paul Brook  <paul@codesourcery.com>
17613
17614         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
17615         annotations.
17616         (arm_output_fn_unwind): Mark functions that can not be unwound.
17617
17618 2008-03-15  Paul Brook  <paul@codesourcery.com>
17619
17620         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
17621         extension instructions.
17622
17623 2008-03-15  Richard Guenther  <rguenther@suse.de>
17624
17625         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
17626         and fold constant aggregate refs.
17627         (fold_const_aggregate_ref): Handle string constants
17628         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
17629         (evaluate_stmt): Simplify now that ccp_fold folds constant
17630         aggregate refs.
17631
17632 2008-03-15  Paul Brook  <paul@codesourcery.com>
17633
17634         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
17635         (extzv): Use gen_extzv_t2.
17636         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
17637
17638 2008-03-15  Richard Guenther  <rguenther@suse.de>
17639
17640         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
17641         (fold_const_aggregate_ref): Likewise.
17642         (get_value): Return NULL if we don't have any values.
17643         (ccp_finalize): Set const_val to NULL after freeing it.
17644         * tree-flow.h (get_symbol_constant_value): Declare.
17645         (fold_const_aggregate_ref): Likewise.
17646         * tree-ssa-sccvn.c (try_to_simplify): Use them.
17647
17648 2008-03-15  Richard Guenther  <rguenther@suse.de>
17649
17650         PR middle-end/35593
17651         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
17652         to not produce negative array indices if not allowed.  Add
17653         parameter to indicate that.
17654         (maybe_fold_offset_to_component_ref): Allow negative array
17655         indices only for the first member of a structure.
17656         (maybe_fold_offset_to_reference): Allow negative array indices.
17657         (maybe_fold_stmt_addition): Likewise.
17658
17659 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
17660             Anatoly Sokolov <aesok@post.ru>
17661
17662         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
17663         (avr_arch): Add ARCH_AVR6.
17664         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
17665         (initial_elimination_offset): Initialize and use 'avr_pc_size'
17666         instead of fixed value 2.
17667         (print_operand_address): Use gs() asm specifier instead of pm().
17668         (avr_assemble_integer): (Ditto.).
17669         (avr_output_addr_vec_elt): (Ditto.).
17670         (print_operand): Handle "!" code.
17671         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
17672         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
17673         (AVR_HAVE_EIJMP_EICALL): Define.
17674         (AVR_3_BYTE_PC): Redefine.
17675         (AVR_2_BYTE_PC): (Ditto.).
17676         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
17677         (LINK_SPEC): Add atmega2560 and atmega2561.
17678         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
17679         (crtm2561.o).
17680         * config/avr/avr.md (call_insn): Use eicall instead of icall
17681         for 3 byte PC devices.
17682         (call_value_insn): (Ditto.).
17683         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
17684         (indirect_jump): Use only for for 2 byte PC devices.
17685         (*tablejump): (Ditto.).
17686         (*indirect_jump_avr6): Add insn.
17687         (*tablejump_rjmp): Don't use for 3 byte PC devices.
17688         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
17689         instead of ijmp for 3 byte PC devices.
17690         (__tablejump2__): (Ditto.).
17691         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
17692         (MULITLIB_DIRNAMES): (Ditto.).
17693         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
17694
17695 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
17696
17697         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
17698         "sse2_umulsidi3".  Use V1DI mode for operand 0.
17699         ("mmx_psadbw"): Use V1DI mode for operand 0.
17700         * config/i386/i386-modes.def (V1SI): New vector mode.
17701         * config/i386/i386.c (struct builtin_description)
17702         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
17703         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
17704         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
17705         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
17706         v1di_ftype_v8qi_v8qi type.
17707         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
17708
17709         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
17710         __builtin_ia32_pmuludq]: Fix the mode of return value.
17711
17712 2008-03-15  Richard Guenther  <rguenther@suse.de>
17713
17714         PR middle-end/35595
17715         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
17716         being a PHI_NODE.
17717
17718 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
17719
17720         * doc/invoke.texi (Option Summary, Xtensa Options): Document
17721         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
17722         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
17723         unless TARGET_SERIALIZE_VOLATILE is enabled.
17724         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
17725         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
17726         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
17727
17728 2008-03-14  Richard Guenther  <rguenther@suse.de>
17729
17730         PR tree-optimization/34172
17731         * tree-flow.h (refs_may_alias_p): Declare.
17732         (get_single_def_stmt): Likewise.
17733         (get_single_def_stmt_from_phi): Likewise.
17734         (get_single_def_stmt_with_phi): Likewise.
17735         * tree-dfa.c (refs_may_alias_p): New function.
17736         (get_single_def_stmt): Likewise.
17737         (get_single_def_stmt_from_phi): Likewise.
17738         (get_single_def_stmt_with_phi): Likewise.
17739         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
17740         (vn_reference_lookup_1): New helper function.
17741         (vn_reference_lookup): Walk the virtual use-def chain to
17742         continue searching for a match if the def does not alias the
17743         reference we are looking for.
17744
17745 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
17746
17747         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
17748         archive and Perzl.  Update The Written Word listing.
17749
17750 2008-03-14  Richard Guenther  <rguenther@suse.de>
17751
17752         PR tree-optimization/34043
17753         PR tree-optimization/33989
17754         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
17755         when doing FRE.
17756         (bitmap_find_leader): Use extra argument to verify dominance
17757         relationship inside a basic-block.
17758         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
17759         (find_leader_in_sets): Adjust.
17760         (create_component_ref_by_pieces): Take extra argument for
17761         dominance check, handle lookup failures.
17762         (find_or_generate_expression): Likewise.
17763         (create_expression_by_pieces): Likewise.
17764         (insert_into_preds_of_block): Adjust.
17765         (create_value_expr_from): If asked for, verify all operands
17766         are in the blocks AVAIL_OUT set.
17767         (make_values_for_stmt): Check for SSA_NAMEs that are life
17768         over an abnormal edge.
17769         (compute_avail): Remove such check.
17770         (do_SCCVN_insertion): New function.
17771         (eliminate): If we do not find a leader suitable for replacement
17772         insert a replacement expression from SCCVN if available.
17773         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
17774         (struct vn_ssa_aux): Add needs_insertion flag.
17775         * tree-ssa-sccvn.c (may_insert): New global flag.
17776         (copy_reference_ops_from_ref): Value-number union member access
17777         based on its size, not type and member if insertion is allowed.
17778         (visit_reference_op_load): For a weak match from union type
17779         punning lookup a view-converted value and insert a SSA_NAME
17780         for that value if that is not found.
17781         (visit_use): Make dumps shorter.  Do not disallow value numbering
17782         SSA_NAMEs that are life over an abnormal edge to constants.
17783         (free_scc_vn): Release inserted SSA_NAMEs.
17784         (run_scc_vn): New flag to specify whether insertion is allowed.
17785         Process SSA_NAMEs in forward order.
17786         * tree-ssa-loop-im.c (for_each_index): Handle invariant
17787         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
17788         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
17789         pointer type to/from integral types that do not change the
17790         precision to regular conversions.
17791
17792 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
17793
17794         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
17795         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
17796         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
17797         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
17798         input arguments and the mode of return value.  Built-in functions
17799         that operate on whole 64-bit MMX register now use V1DI mode.
17800
17801 2008-03-13  Alon Dayan  <alond@il.ibm.com>
17802             Olga Golovanevsky  <olga@il.ibm.com>
17803
17804         PR tree-optimization/35041
17805         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
17806         to locate the right position in a statement.
17807
17808 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
17809
17810         PR target/34000
17811         PR target/35553
17812         * config/i386/xmmintrin.h:  Change all static inline functions to
17813         extern inline and add __gnu_inline__ attribute.
17814         * config/i386/bmintrin.h: Ditto.
17815         * config/i386/smmintrin.h: Ditto.
17816         * config/i386/tmmintrin.h: Ditto.
17817         * config/i386/mmintrin-common.h: Ditto.
17818         * config/i386/ammintrin.h: Ditto.
17819         * config/i386/emmintrin.h: Ditto.
17820         * config/i386/pmmintrin.h: Ditto.
17821         * config/i386/mmintrin.h: Ditto.
17822         * config/i386/mm3dnow.h: Ditto.
17823
17824 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
17825
17826         PR middle-end/35185
17827         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
17828         (lower_omp_2): New function.
17829         (lower_omp_1, lower_omp): Rewritten.
17830
17831 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
17832
17833         PR 35054
17834         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
17835         with the phrase "Microsoft Windows compilers".
17836         (Push/Pop Macro Pragmas): New subsection. Document
17837         #pragma push_macro and pragma pop_macro.
17838
17839 2008-03-12  Paul Brook  <paul@codesourcery.com>
17840
17841         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
17842
17843 2008-03-12  Paul Brook  <paul@codesourcery.com>
17844
17845         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
17846         (thumb2_alusi3_short): Exclude PLUS and MINUS.
17847         (thumb2_addsi_shortim): Rename ...
17848         (thumb2_addsi_short): ... to this.  Allow register operands.
17849         (thumb2_subsi_short): New pattern.
17850         (thumb2_one_cmplsi2_short,
17851         thumb2_negsi2_short): New patterns and peepholes.
17852
17853 2008-03-12  Paul Brook  <paul@codesourcery.com>
17854
17855         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
17856
17857 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
17858
17859         * config/i386/i386.md (int_cond): New code iterator.
17860         (fp_cond): Ditto.
17861         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
17862         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
17863         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
17864         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
17865         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
17866         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
17867         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
17868         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
17869
17870 2008-03-12  Paul Brook  <paul@codesourcery.com>
17871
17872         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
17873         instead of {arm,thumb}_compute_save_reg_mask.
17874         (output_return_instruction): Ditto.
17875         (thumb_unexpanded_epilogue): Ditto.
17876         (thumb1_expand_prologue): Ditto.
17877         (thumb1_output_function_prologue): Ditto.
17878         (arm_set_return_address): Ditto.
17879         (thumb_set_return_address): Ditto.
17880         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
17881         regs to achieve stack alignment.
17882         (thumb1_compute_save_reg_mask): Fix compiler warning.
17883         (arm_output_epilogue): Use offsets->saved_regs_mask.
17884         Adjust stack pointer by poping call clobered registers.
17885         (arm_expand_prologue): Use offsets->saved_regs_mask.
17886         Adjust stack pointer by pushing extra registers.
17887         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
17888
17889 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
17890
17891         PR tree-opt/35422
17892         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
17893         conversion to the operands of a multiplication.
17894
17895 2008-03-12  Richard Guenther  <rguenther@suse.de>
17896
17897         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
17898         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
17899         * timevar.def (TV_TREE_PHIPROP): Add.
17900         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
17901         pass description.  Use TV_TREE_PHIPROP.
17902         * tree-ssa-forwprop.c: Remove phiprop code.
17903
17904 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
17905
17906         PR middle-end/35549
17907         * omp-low.c (maybe_lookup_decl): Constify first argument.
17908         (use_pointer_for_field): Change last argument from bool to
17909         omp_context *.  Disallow shared copy-in/out in nested
17910         parallel if decl is shared in outer parallel too.
17911         (build_outer_var_ref, scan_sharing_clauses,
17912         lower_rec_input_clauses, lower_copyprivate_clauses,
17913         lower_send_clauses, lower_send_shared_vars): Adjust callers.
17914
17915 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
17916             Ira Rosen  <irar@il.ibm.com>
17917
17918         * tree-vectorizer.c (free_stmt_vec_info): New function.
17919         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
17920         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
17921         * tree-vectorizer.h (free_stmt_vec_info): Declare.
17922         * tree-vect-transform.c (vectorizable_conversion): Free
17923         vec_oprnds0 if it was allocated.
17924         (vect_permute_store_chain): Remove unused VECs.
17925         (vectorizable_store): Free VECs that are allocated in the..
17926         function.
17927         (vect_transform_strided_load, vectorizable_load): Likewise.
17928         (vect_remove_stores): Simplify the code.
17929         (vect_transform_loop): Move code to vect_remove_stores().
17930         Call vect_remove_stores() and free_stmt_vec_info().
17931
17932 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17933
17934         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
17935         TARGET_HPUX.  Revise comment.
17936         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
17937         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
17938         Use sr4 variant of `be' instruction when not generating PIC code.
17939         (attr_length_call): Adjust for above change.
17940
17941 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17942
17943         * ipa-reference.c (static_execute): Remove module_statics_const and
17944         associated setting code.
17945
17946 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
17947
17948         PR target/35540
17949         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
17950         predicate for operand 1.
17951         (paritysi2_cmp): Use register_operand predicate for operand 2.
17952         Use earlyclobber modifier for operand 1.  Remove support for
17953         memory operands.
17954         (paritydi2_cmp): Use register_operand predicate for operand 3.
17955         Use earlyclobber modifier for operand 1.  Remove support for
17956         memory operands.
17957
17958 2008-03-11  Paul Brook  <paul@codesourcery.com>
17959             Vladimir Prus  <vladimir@codesourcery.com>
17960
17961         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
17962         (arm_compute_save_reg0_reg12_mask): Always
17963         check if register 11 must be saved.  Always safe hard frame pointer
17964         when frame_pointer_needeed.
17965         (arm_compute_save_reg_mask): Save IP and PC
17966         only with apcs frames.
17967         (arm_output_epilogue): Adjust Thumb2 codepath to
17968         be also invoked and work for ARM non-apcs frames.
17969         (arm_expand_prologue): Don't bother saving IP
17970         for non-apcs frame, since it's not clobbered by
17971         prologue code.  Implement non-apcs frame
17972         layout.
17973
17974 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
17975
17976         PR rtl-optimization/35281
17977         * expr.c (convert_move): Use a new pseudo for the intermediate
17978         from_mode->word_mode result.
17979
17980 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
17981
17982         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
17983         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
17984         * toplev.c (compile_file): Don't call it.
17985
17986 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
17987
17988         PR middle-end/35526
17989         * expr.c (store_expr): Call emit_block_move if the mode
17990         of "temp" RTX is BLKmode.
17991
17992 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17993             Richard Guenther  <rguenther@suse.de>
17994
17995         PR tree-optimization/31358
17996         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
17997         the step with a NULL_TREE.
17998         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
17999         to sizetype if type is a pointer type.
18000         (add_candidate_1): Don't convert the base and step to
18001         the generic type if the orginal type is a pointer type.
18002         (add_iv_value_candidates): Use sizetype for the step
18003         if type is a pointer type.
18004         (cand_value_at): Likewise.
18005         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18006         for pointer types.
18007         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18008         Don't convert the tem affine to the type.
18009         (add_elt_to_tree): Use sizetype for the step if a pointer.
18010         Use POINTER_PLUS_EXPR for pointers.
18011         (aff_combination_to_tree): Use sizetype for the step if a
18012         pointer.
18013
18014 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
18015
18016         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18017         Remove commutativity hint.
18018
18019 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
18020
18021         PR c/35438
18022         PR c/35439
18023         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18024         errorneous type.  Check that v is a VAR_DECL.
18025
18026         PR middle-end/35099
18027         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18028
18029 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18030
18031         PR tree-optimization/35494
18032         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18033         may be overriden at link and run time.
18034
18035 2008-03-10  Richard Guenther  <rguenther@suse.de>
18036
18037         PR tree-optimization/34677
18038         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18039         (poolify_tree): Likewise.
18040         (modify_expr_template): Likewise.
18041         (poolify_modify_stmt): Likewise.
18042         (insert_fake_stores): Handle all component-ref style stores
18043         in addition to INDIRECT_REF.  Also handle complex types.
18044         Do not poolify the inserted load.
18045         (realify_fake_stores): Do not rebuild the tree but only
18046         make it a SSA_NAME copy.
18047         (init_pre): Remove initialzation of modify_expr_template.
18048         Do not allocate modify_expr_node_pool.
18049         (fini_pre): Do not free modify_expr_node_pool.
18050
18051 2008-03-10  Paul Brook  <paul@codesourcery.com>
18052
18053         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18054         to avoid conflicts.
18055
18056 2008-03-10  Paul Brook  <paul@codesourcery.com>
18057             Mark Shinwell  <shinwell@codesourcery.com>
18058
18059         * config/arm/cortex-r4.md: New.
18060         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18061         insn attributes.
18062         * config/arm/arm.md: Include cortex-r4.md.
18063         (insn): Add smmls, sdiv and udiv values.
18064         (generic_sched): Don't use generic scheduling for Cortex-R4.
18065         (arm_issue_rate): New function.
18066         (TARGET_SCHED_ISSUE_RATE): Define.
18067
18068 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
18069
18070         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
18071
18072 2008-03-10  Richard Guenther  <rguenther@suse.de>
18073
18074         * tree-ssa-pre.c (get_sccvn_value): Simplify.
18075         (compute_avail): Do not add stmt uses to AVAIL_OUT.
18076
18077 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
18078
18079         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
18080         Set default to true.
18081
18082 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18083
18084         * c.opt (Wsynth): Deprecate.
18085         * doc/invoke.texi (Option Summary, Warning Options): Document
18086         -Wno-format-contains-nul.
18087
18088 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
18089
18090         PR target/35496
18091         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
18092         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
18093
18094 2008-03-09  Ira Rosen  <irar@il.ibm.com>
18095
18096         * config/rs6000/rs6000.c (builtin_description): Rename vector
18097         left shift operations.
18098         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
18099         (altivec_vsl<VI_char>): Rename to ...
18100         (ashl<mode>3): ... new name.
18101         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
18102         gen_ashlv4si3.
18103         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
18104
18105 2008-03-08  Richard Guenther  <rguenther@suse.de>
18106
18107         * coverage.h (tree_coverage_counter_addr): Declare.
18108         * coverage.c (tree_coverage_counter_addr): New function.
18109         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
18110         before using again.
18111         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
18112         (tree_gen_one_value_profiler): Likewise.
18113         (tree_gen_ic_profiler): Likewise.
18114         (tree_gen_average_profiler): Likewise.
18115         (tree_gen_ior_profiler): Likewise.
18116
18117 2008-03-08  Richard Guenther  <rguenther@suse.de>
18118
18119         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
18120         (vn_binary_op_insert): Likewise.
18121         (vn_unary_op_lookup): Likewise.
18122         (vn_unary_op_insert): Likewise.
18123         (vn_nary_op_lookup): Declare.
18124         (vn_nary_op_insert): Likewise.
18125         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
18126         and binary hashes, use a single obstack for unary_op_pool
18127         and binary_op_pool.
18128         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
18129         a single struct vn_nary_op_s.  Store tree code length and
18130         a variable number of operands.
18131         (struct vn_reference_op_struct): Remove unused op2.
18132         (vn_reference_op_eq): Do not compare op2.
18133         (vn_reference_op_compute_hash): Do not compute hash of op2.
18134         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
18135         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
18136         with vn_nary_op_compute_hash.
18137         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
18138         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
18139         vn_nary_op_lookup.
18140         (vn_unary_op_insert, vn_binary_op_insert): Replace with
18141         vn_nary_op_insert.
18142         (visit_unary_op): Call nary functions.
18143         (visit_binary_op): Likewise.
18144         (process_scc): Adjust for struct vn_tables_s changes.
18145         (allocate_vn_table): Likewise.
18146         (free_vn_table): Likewise.
18147         * tree-vn.c (vn_add): Call nary functions.
18148         (vn_lookup): Likewise.
18149
18150 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
18151
18152         PR target/35498
18153         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
18154         wdst back after sync_compare_and_swapqhi_internal.
18155
18156 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
18157
18158         PR target/22152
18159         * config/i386/i386-modes.def (V1DI): New vector mode.
18160         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
18161         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
18162         (MMXMODE248): Ditto.
18163         (MMXMODE): Add V1DI mode.
18164         (mmxvecsize): Change DI mode to V1DI mode.
18165         ("mov<mode>): Use MMXMODEI8 mode iterator.
18166         ("*mov<mode>_internal_rex64"): Ditto.
18167         ("*mov<mode>_internal"): Ditto.
18168         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
18169         ("mmx_sub<mode>3"): Ditto.
18170         ("mmx_adddi3"): Remove insn pattern.
18171         ("mmx_subdi3"): Ditto.
18172         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18173         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18174         ("mmx_ashl<mode>3"): Ditto.
18175         ("mmx_lshrdi3"): Remove insn pattern.
18176         ("mmx_ashldi3"): Ditto.
18177         * config/i386/i386.c (classify_argument): Handle V1DImode.
18178         (function_arg_advance_32): Ditto.
18179         (function_arg_32): Ditto.
18180         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
18181         mmx_addv1di3 insn pattern.
18182         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
18183         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
18184         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
18185         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
18186         Remove definitions of built-in functions.
18187         (V1DI_type_node): New node.
18188         (v1di_ftype_v1di_int): Ditto.
18189         (v1di_ftype_v1di_v1di): Ditto.
18190         (v2si_ftype_v2si_si): Ditto.
18191         (v4hi_ftype_v4hi_di): Remove node.
18192         (v2si_ftype_v2si_di): Ditto.
18193         (ix86_init_mmx_sse_builtins): Handle V1DImode.
18194         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
18195         Redefine builtins using def_builtin_const with *_ftype_*_int node.
18196         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
18197         Add new builtins using def_builtin_const.
18198         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
18199         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
18200         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
18201         * config/i386/mmintrin.h (__v1di): New typedef.
18202         (_mm_add_si64): Cast arguments to __v1di type.
18203         (_mm_sub_si64): Ditto.
18204         (_mm_sll_pi16): Cast __count to __v4hi type.
18205         (_mm_sll_pi32): Cast __count to __v2si type.
18206         (_mm_sll_si64): Cast arguments to __v1di type.
18207         (_mm_srl_pi16): Cast __count to __v4hi type.
18208         (_mm_srl_pi32): Cast __count to __v2si type.
18209         (_mm_srl_si64): Cast arguments to __v1di type.
18210         (_mm_sra_pi16): Cast __count to __v4hi type.
18211         (_mm_sra_pi32): Cast __count to __v2si type.
18212         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
18213         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
18214         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
18215         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
18216         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
18217         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
18218         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
18219         (_mm_srai_pi32): Use __builtin_ia32_psradi.
18220         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
18221         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18222         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18223         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
18224
18225 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
18226
18227         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
18228
18229 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
18230
18231         PR target/35373
18232         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
18233         reg+const addressing for Altivec modes.  Don't generate reg+reg
18234         addressing for TFmode or TDmode quantities.
18235
18236 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
18237
18238         * c-common.c (vector_types_convertible_p): Call langhook
18239         instead of comptypes.
18240
18241 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18242
18243         PR tree-opt/35402
18244         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
18245         integral and scalar float variables which have a
18246         NULL DECL_INITIAL.
18247
18248 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
18249
18250         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
18251         dwarf_register_span hook when emitting unwind information for
18252         register-to-memory saves.
18253         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
18254         (rs6000_frame_related): Remove call to spe_synthesize_frame.
18255
18256 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18257
18258         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
18259         for the same VAR_DECL.
18260
18261 2008-03-06  Tom Tromey  <tromey@redhat.com>
18262
18263         * treelang: Delete.
18264         * doc/standards.texi (Standards): Don't mention treelang.
18265         * doc/invoke.texi (Overall Options): Don't mention treelang.
18266         * doc/install.texi (Prerequisites): Don't mention bison or
18267         treelang.
18268         (Configuration): Don't mention treelang.
18269         (Building): Likewise.
18270         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
18271
18272 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
18273
18274         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
18275         word-extractions out of a multi-word object.
18276
18277 2008-03-06  Richard Guenther  <rguenther@suse.de>
18278
18279         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
18280         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
18281         result type and precision.
18282         * expr.c (get_inner_reference): Set unsignedp based on the result
18283         type of BIT_FIELD_REF.
18284         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
18285         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
18286         (try_instantiate_multiple_fields): Likewise.  Use the correct type
18287         for BIT_FIELD_REF.
18288         (sra_build_assignment): Likewise.
18289         (sra_build_elt_assignment): Likewise.
18290         (sra_explode_bitfield_assignment): Likewise.
18291         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
18292         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
18293         set BIT_FIELD_REF_UNSIGNED.
18294         (vectorizable_load): Likewise.
18295
18296 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
18297
18298         * cse.c (cse_extended_basic_block): Invalidate artificial defs
18299         at bb start.
18300
18301 2008-03-06  Richard Guenther  <rguenther@suse.de>
18302
18303         * alias.c (struct alias_set_entry): Move has_zero_child field
18304         to pack with alias_set.
18305
18306 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18307
18308         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18309         32bit host.
18310
18311 2008-03-05  Ian Lance Taylor  <iant@google.com>
18312
18313         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
18314
18315 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
18316
18317         * fwprop.c (update_df): Support width and offset parameters of
18318         df_ref_create.
18319         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
18320         global_conflicts): Change DF_REF_EXTRACT to either
18321         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18322         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18323         * df-scan.c (df_ref_record, df_defs_record,
18324         df_ref_create_structure, df_def_record_1, df_uses_record,
18325         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
18326         df_bb_refs_collect, df_entry_block_defs_collect,
18327         df_exit_block_uses_collect): Support new width and offset fields.
18328         (ref_extract_pool): New storage pool.
18329         (df_free_ref): New function.
18330         (df_reg_chain_unlink, df_free_collection_rec,
18331         df_sort_and_compress_refs): Call df_free_ref.
18332         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
18333         of df_ref_extract.
18334         (df_ref_create_structure): Allocate df_ref_extract if offset and
18335         width fields are used.
18336         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
18337         (df_uses_record): Get offset and width from ZERO_EXTRACT
18338         and SIGN_EXTRACT.
18339         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
18340         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18341         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18342         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
18343         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
18344         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18345         (df_ref_extract): New structure.
18346         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
18347         (df_ref_create): Add width and offset parameters.
18348
18349 2008-03-05  Richard Guenther  <rguenther@suse.de>
18350
18351         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18352         Use ranges_overlap_p.
18353         (offset_overlaps_with_access): Rename
18354         to ranges_overlap_p and move ...
18355         * tree-flow-inline.h (ranges_overlap_p): ... here.
18356
18357         * tree.h (get_inner_reference, handled_component_p): Update
18358         comments.
18359
18360         * tree.h (record_component_aliases, get_alias_set,
18361         alias_sets_conflict_p, alias_sets_must_conflict_p,
18362         objects_must_conflict_p): Move declarations ...
18363         * alias.h (record_component_aliases, get_alias_set,
18364         alias_sets_conflict_p, alias_sets_must_conflict_p,
18365         objects_must_conflict_p): ... here.
18366         Include coretypes.h.
18367         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
18368
18369 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
18370
18371         * cfg.c: Include tree-flow.h.
18372         (remove_edge_raw): Call redirect_edge_var_map_clear.
18373         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
18374         * tree-flow-inline.h (redirect_edge_var_map_def): New.
18375         (redirect_edge_var_map_result): New.
18376         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
18377         PENDING_STMT use with redirect_edge_var_map_*.
18378         * tree-ssa.c (edge_var_maps): New definition.
18379         (redirect_edge_var_map_add): New.
18380         (redirect_edge_var_map_clear): New.
18381         (redirect_edge_var_map_dup): New.
18382         (redirect_edge_var_map_vector): New.
18383         (redirect_edge_var_map_destroy): New.
18384         (ssa_redirect_edge): Replace PENDING_STMT use with
18385         redirect_edge_var_map_*.
18386         (flush_pending_stmts): Same.
18387         (delete_tree_ssa): Destroy edge var map.
18388         * tree-flow.h (struct _edge_var_map): New.
18389         Define edge_var_map vector type.
18390         Declare redirect_edge_var_map_* prototypes.
18391         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
18392         * tree-cfg.c (reinstall_phi_args): Replace
18393         PENDING_STMT use with redirect_edge_var_map_*.
18394
18395 2008-03-05  Richard Guenther  <rguenther@suse.de>
18396
18397         PR tree-optimization/35472
18398         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
18399         whose single use_stmt has a overlapping set of loaded and
18400         stored symbols as that use_stmt might be a noop assignment then.
18401
18402 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
18403
18404         * gthr-rtems.h: Implement __gthread_mutex_destroy.
18405
18406 2008-03-05  Richard Guenther  <rguenther@suse.de>
18407
18408         PR c++/35336
18409         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
18410         should be constants.
18411         * tree-cfg.c (verify_expr): Verify it.
18412         * fold-const.c (fold_truthop): Remove code generating
18413         BIT_FIELD_REFs of structure bases.
18414         (fold_binary): Likewise.
18415         (fold_ternary): Position and size of BIT_FIELD_REFs are
18416         always host integers.
18417         (make_bit_field_ref): Remove.
18418         (optimize_bit_field_compare): Remove.
18419         (all_ones_mask_p): Remove.
18420
18421 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
18422
18423         PR gcc/33009
18424         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
18425         (split_block_and_df_analyze): New. Split basic block and rebuild
18426         dataflow.
18427         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
18428         SPLIT_BLOCK.
18429         (split_pattern_seq): Likewise.
18430         (erase_matching_seqs): Likewise.
18431         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
18432
18433 2008-03-04  Geoff Keating  <geoffk@apple.com>
18434
18435         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
18436         declaration and code.
18437         (tree_invalid_nonnegative_warnv_p): Likewise.
18438
18439 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
18440
18441         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
18442         examples.  Truncate option-names then causing overfull hbox.
18443
18444 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18445
18446         PR target/35222
18447         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
18448         on hpux10.
18449         * configure: Rebuilt.
18450
18451 2008-03-04  Rafael Espindola  <espindola@google.com>
18452
18453         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
18454         (tree_unary_nonnegative_warnv_p): New.
18455         (tree_binary_nonnegative_warnv_p): New.
18456         (tree_single_nonnegative_warnv_p): New.
18457         (tree_invalid_nonnegative_warnv_p): New.
18458         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
18459
18460 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18461
18462         PR 28322
18463         * opts.c (handle_option): Postpone 'unknown option' errors only for
18464         warning options.
18465
18466 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18467
18468         PR target/35453
18469         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
18470         (_SIDD_XXX): This.
18471
18472 2008-03-04  Rafael Espindola  <espindola@google.com>
18473
18474         * fold-const.c (tree_unary_nonzero_warnv_p): New.
18475         (tree_binary_nonzero_warnv_p): New.
18476         (tree_single_nonzero_warnv_p): New.
18477         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
18478
18479 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
18480
18481         PR middle-end/35456
18482         * fold-const.c (fold_cond_expr_with_comparison): Prevent
18483         transformations for modes that have signed zeros.
18484         * ifcvt.c (noce_try_abs): Ditto.
18485
18486 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
18487
18488         * config/i386/i386.c (override_options): Force
18489         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
18490
18491 2008-03-04  Jan Hubicka  <jh@suse.cz>
18492
18493         PR c++/35262
18494         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
18495         in last commit.
18496
18497 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
18498
18499         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
18500         label to probe the stack.
18501
18502 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
18503
18504         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
18505         (__gthr_win32_mutex_destroy): Declare.
18506         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
18507         __gthr_win32_mutex_destroy.
18508         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
18509
18510 2008-03-03  Jan Hubicka  <jh@suse.cz>
18511
18512         PR c++/35262
18513         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
18514         aggressive on inlining cold calls.
18515
18516 2008-03-03  Richard Guenther  <rguenther@suse.de>
18517
18518         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
18519         struct copies into the expression table.
18520         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
18521         (try_to_simplify): Likewise.
18522         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
18523         integral and pointer arguments which do not change the
18524         precision to NOP_EXPRs.
18525         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
18526         VIEW_CONVERT_EXPR case.
18527
18528 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
18529
18530         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
18531         defined in a loop at depth 0 is invariant.
18532         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
18533         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
18534         be called at loop depth 0.
18535
18536 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
18537
18538         PR driver/35420
18539         * gcc.c (process_command): Update copyright notice dates.
18540         * gcov.c (print_version): Likewise.
18541         * gcov-dump.c (print_version): Likewise.
18542         * mips-tfile.c (main): Likewise.
18543         * mips-tdump.c (main): Likewise.
18544
18545 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18546
18547         PR 24924
18548         * c-common.c (flag_permissive): Delete.
18549         (constant_expression_warnings): Check flags first.
18550         (constant_expression_error): New.
18551         * c-common.h (flag_permissive): Delete.
18552         (constant_expression_error): Declare.
18553         * flags.h (flag_permissive): Declare. Update description.
18554         * diagnostic.c (pedwarn): Update.
18555         (permerror): New.
18556         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
18557         (permissive_error_kind): New.
18558         * toplev.c (flag_permissive): Define. Update description.
18559         * toplev.h (permissive_error_kind): Declare.
18560         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
18561         (pedwarn_c90): Use pedantic_warning_kind.
18562         * c-opts.c (c_common_post_options): flag_permissive does not affect
18563         flag_pedantic_errors.
18564
18565 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
18566
18567         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
18568         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
18569         __absvsi2, __absvDI2): Use unsigned arithmetic.
18570
18571 2008-03-02  Andi Kleen  <ak@suse.de>
18572             Richard Guenther  <rguenther@suse.de>
18573
18574         * struct-equiv.c: Remove file.
18575         * cfg_cleanup.c (condjump_equiv_p): Remove.
18576         * Makefile.in (OBJS-common): Remove struct-equiv.o.
18577         (struct-equiv.o): Remove rule.
18578         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
18579         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
18580         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
18581
18582 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18583
18584         * ifcvt.c (noce_process_if_block): Try to handle only the then
18585         block if the else block exists but isn't suitable.
18586
18587 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
18588
18589         PR gcc/35063
18590         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
18591         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
18592         regression from previous patch.
18593
18594 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
18595
18596         PR gcc/35063
18597         * gthr.h: Add __gthread_mutex_destroy as a function that must be
18598         implemented.
18599         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
18600         * gthr-single.h (__gthread_mutex_destroy): Likewise.
18601         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
18602         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
18603         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
18604         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
18605         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
18606         (__gthread_mutex_destroy_function): Rename to
18607         __gthread_mutex_destroy.
18608         * gthr-dce.h (__gthread_mutex_destroy): Call
18609         pthread_mutex_destroy.
18610         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
18611         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
18612         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
18613
18614 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18615
18616         * df-scan.c (df_ref_chain_change_bb): Simplify.
18617         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
18618         set_block_for_insn if there's any change.
18619         * df.h ((df_insn_change_bb): Fix prototype.
18620         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
18621         df_insn_change_bb, don't call set_block_for_insn.
18622         * emit-rtl.c (reorder_insns): Likewise.
18623         * haifa-sched.c (move_insn): Likewise.
18624
18625 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18626
18627         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
18628
18629 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
18630
18631         * tree-flow-inline.h (next_readonly_imm_use): Return
18632         NULL_USE_OPERAND_P after the end.
18633
18634 2008-03-01  Richard Guenther  <rguenther@suse.de>
18635
18636         PR tree-optimization/35411
18637         * tree-sra.c (sra_build_assignment): Split conversion to
18638         final type to a separate statement if we are not assigning
18639         to a register.
18640
18641 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18642
18643         * fold-const.c (fold_convertible_p): Correct the logic to follow
18644         that in fold_convert().
18645
18646 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
18647
18648         PR c++/35315
18649         * tree-inline.c (build_duplicate_type): When we make a
18650         duplicate type, make it unique in the canonical types system.
18651
18652 2008-02-29  Tom Tromey  <tromey@redhat.com>
18653
18654         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
18655         input_file_stack_history, input_file_stack_restored): Remove.
18656         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18657         * input.h (struct file_stack): Remove.
18658         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18659         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
18660         Likewise.
18661         * diagnostic.h (struct diagnostic_context) <last_module>: Change
18662         type.
18663         (diagnostic_last_module_changed): Add 'map' argument.
18664         (diagnostic_set_last_function): Likewise.
18665         * diagnostic.c (undiagnostic_report_current_module): Iterate using
18666         line map, not input_file_stack.
18667         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
18668
18669 2008-02-29  Paul Brook  <paul@codesourcery.com>
18670
18671         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
18672
18673 2008-02-29  Paul Brook  <paul@codesourcery.com>
18674
18675         * config/arm/ieee754-df.S (muldf3): Use RET macros.
18676
18677 2008-02-29  Richard Guenther  <rguenther@suse.de>
18678
18679         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
18680         vn_lookup_or_add.
18681         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
18682         value for comparing for a store match.
18683         (simplify_unary_expression): Do nothing for SSA_NAMEs.
18684         (try_to_simplify): Do not do a full-blown reference lookup.
18685
18686 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18687
18688         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
18689         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
18690
18691         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
18692
18693 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
18694
18695         * tree-loop-linear.c (try_interchange_loops): Compare memory access
18696         strides against cache sizes.
18697
18698 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
18699
18700         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
18701         constant to fpul.
18702
18703 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
18704
18705         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
18706         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
18707         is smaller than the original promoted value.
18708         (simplify_subreg): If OP is a SUBREG, try to preserve its
18709         SUBREG_PROMOTED_VAR_P information.
18710
18711 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
18712
18713         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
18714         (VN_INFO_GET): Allocate new objects on the obstack.
18715         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
18716         for rpo_numbers_temp, for consistency.
18717         (free_scc_vn): Free the obstack.
18718
18719 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
18720
18721         * doc/invoke.texi: Document -ftree-loop-distribution.
18722         * tree-loop-distribution.c: New.
18723         * tree-pass.h (pass_loop_distribution): New.
18724         * graphds.h (struct graph): Add htab_t indices.
18725         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
18726         * tree-vectorizer.c (rename_variables_in_loop): Extern.
18727         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
18728         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
18729         * tree-data-ref.c (debug_data_dependence_relations): New.
18730         (dump_data_dependence_relation): Also print data references.
18731         (free_data_ref): Extern.
18732         (same_access_functions): Moved...
18733         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
18734         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
18735         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
18736         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
18737         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
18738         (stmts_from_loop): Skip LABEL_EXPR.
18739         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
18740         New.
18741         (build_rdg): Initialize rdg->indices htab.
18742         (free_rdg, stores_from_loop, ref_base_address,
18743         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
18744         have_similar_memory_accesses_1, ref_base_address_1,
18745         remove_similar_memory_refs): New.
18746         * tree-data-ref.h: Depend on tree-chrec.h.
18747         (debug_data_dependence_relations, free_data_ref): Declared.
18748         (same_access_functions): ... here.
18749         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
18750         New.
18751         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
18752         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
18753         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
18754         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
18755         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
18756         rdg_vertex_for_stmt): Declared.
18757         (struct rdg_edge): Add level.
18758         (RDGE_LEVEL): New.
18759         (free_rdg, stores_from_loop, remove_similar_memory_refs,
18760         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
18761         Declared.
18762         (rdg_has_similar_memory_accesses): New.
18763         * tree-vect-analyze.c: Remove unused static decls.
18764         * lambda.h (dependence_level): New.
18765         * common.opt (ftree-loop-distribution): New.
18766         * tree-flow.h (mark_virtual_ops_in_bb,
18767         slpeel_tree_duplicate_loop_to_edge_cfg,
18768         rename_variables_in_loop): Declared.
18769         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
18770         (OBJS-common): Add tree-loop-distribution.o.
18771         (tree-loop-distribution.o): New rule.
18772         * tree-cfg.c (mark_virtual_ops_in_bb): New.
18773         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
18774         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
18775
18776 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
18777
18778         PR target/33963
18779         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
18780         other than structures and unions.
18781
18782 2008-02-28  Richard Guenther  <rguenther@suse.de>
18783
18784         Revert:
18785         2008-02-26  Richard Guenther  <rguenther@suse.de>
18786
18787         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
18788         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
18789         (lookup_decl_from_uid): Declare.
18790         (remove_decl_from_map): Likewise.
18791         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
18792         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
18793         (decl_for_uid_map): New global hashtable mapping DECL_UID
18794         to the decl tree.
18795         (init_ttree): Allocate it.
18796         (insert_decl_to_uid_decl_map): New helper function.
18797         (make_node_stat): Insert new decls into the map.
18798         (copy_node_stat): Likewise.
18799         (lookup_decl_from_uid): New function.
18800         (remove_decl_from_map): Likewise.
18801         (print_decl_for_uid_map_statistics): New helper.
18802         (dump_tree_statistics): Call it.
18803
18804         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
18805         (referenced_var_iterator): Adjust.
18806         (FOR_EACH_REFERENCED_VAR): Adjust.
18807         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
18808         (num_referenced_vars): Adjust.
18809         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
18810         (first_referenced_var): Remove.
18811         (end_referenced_vars_p): Likewise.
18812         (next_referenced_var): Likewise.
18813         (referenced_var_iterator_set): New helper function.
18814         * tree-dfa.c (referenced_var_lookup): Adjust.
18815         (referenced_var_check_and_insert): Likewise.
18816         (remove_referenced_var): Likewise.
18817         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
18818         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18819         (verify_call_clobbering): Likewise.
18820         (verify_memory_partitions): Likewise.
18821         (init_tree_ssa): Allocate bitmap instead of hashtable for
18822         referenced_vars.
18823         (delete_tree_ssa): Adjust.
18824         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
18825         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18826         (compute_tag_properties): Likewise.
18827         (set_initial_properties): Likewise.
18828         (find_partition_for): Likewise.
18829         (update_reference_counts): Likewise.
18830         (dump_may_aliases_for): Likewise.
18831         * tree-ssa-operands.c (add_virtual_operand): Likewise.
18832         (add_call_clobber_ops): Likewise.
18833         (add_call_read_ops): Likewise.
18834         (get_asm_expr_operands): Likewise.
18835         * tree-into-ssa.c (dump_decl_set): Likewise.
18836         (update_ssa): Likewise.
18837         * tree-sra.c (scan_function): Likewise.
18838         (decide_instantiations): Likewise.
18839         (scalarize_parms): Likewise.
18840         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
18841         (dsa_named_for): Likewise.
18842         * tree-ssa-structalias.c (update_alias_info): Likewise.
18843         (merge_smts_into): Likewise.
18844
18845 2008-02-27  David Daney  <ddaney@avtrex.com>
18846
18847         PR target/34409
18848         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
18849         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
18850         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
18851         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
18852         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
18853
18854 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
18855
18856         PR target/25477
18857         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
18858         (BUILT_IN_NEXTTOWARD): Remove.
18859         (BUILT_IN_NEXTTOWARDF): Ditto.
18860         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
18861         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
18862
18863 2008-02-27  Tom Tromey  <tromey@redhat.com>
18864
18865         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
18866         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
18867
18868 2008-02-27  Jan Beulich  <jbeulich@novell.com>
18869
18870         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
18871         update the respective field on newdecl.
18872
18873 2008-02-27  Revital Eres  <eres@il.ibm.com>
18874
18875         PR rtl-optimization/34999
18876         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
18877         crossing edges that ends with a call insn.
18878         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
18879         call insn and clear the EDGE_CROSSING flag of the crossing edge
18880         when fixing fallthru edges.
18881
18882 2008-02-27  Richard Guenther  <rguenther@suse.de>
18883
18884         PR middle-end/35390
18885         * fold-const.c (fold_unary): Return the correct argument,
18886         converted to the result type.
18887
18888 2008-02-27  Richard Guenther  <rguenther@suse.de>
18889
18890         PR middle-end/34971
18891         * expr.c (expand_expr_real_1): Assert on rotates that operate
18892         on partial modes.
18893         * fold-const.c (fold_binary): Use the types precision, not the
18894         bitsize of the mode if folding rotate expressions.  Build rotates
18895         only for full modes.
18896
18897 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
18898
18899         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
18900         and CPP_PRAGMA_EOL.
18901         * c-pragma.c (pragma_ns_name): New typedef.
18902         (registered_pp_pragmas): New variable.
18903         (c_pp_lookup_pragma): New function.
18904         (c_register_pragma_1): If flag_preprocess_only, do nothing
18905         for non-expanded pragmas, for expanded ones push pragma's
18906         namespace and name into registered_pp_pragmas vector.
18907         (c_invoke_pragma_handler): Register OpenMP pragmas even when
18908         flag_preprocess_only, don't register GCC pch_preprocess
18909         pragma if flag_preprocess_only.
18910         * c-opts.c (c_common_init): Call init_pragma even if
18911         flag_preprocess_only.
18912         * c-pragma.c (c_pp_lookup_pragma): New prototype.
18913         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
18914         cpp_register_pragma if flag_preprocess_only.
18915
18916 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18917
18918         PR c/28800
18919         * c-parser.c (c_parser_translation_unit): Warn for empty
18920         translation unit, not empty source file.
18921
18922 2008-02-26  Paul Brook  <paul@codesourcery.com>
18923
18924         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
18925         operand for Thumb-2.
18926         * config/arm/arm.h (reg_class): Add CORE_REGS.
18927         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
18928         (BASE_REG_CLASS): Use CORE_REGS.
18929         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
18930         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
18931         (REGNO_OK_FOR_INDEX_P): Exclude SP.
18932         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
18933         ARM_REGNO_OK_FOR_INDEX_P.
18934         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
18935         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
18936         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
18937         (ldm/stm peepholes): Ditto.
18938         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
18939         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
18940         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
18941         * config/arm/constraints.md: Enable "k" constraint on ARM.
18942
18943 2008-02-27  Ben Elliston  <bje@au.ibm.com>
18944
18945         * config/rs6000/rs6000.c: Annotate cache line size field in all
18946         instances of struct processor_costs.
18947
18948 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
18949
18950         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
18951         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
18952         jump_bypass): New counters.
18953         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
18954         * dce.c (gate_ud_dce): Same.
18955         (gate_fast_dce): Same.
18956         * dse.c (gate_dse1): New function.
18957         (gate_dse2): New function.
18958         (gate_dse): Merge results of new gate functions.
18959         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
18960         (gate_handle_jump_bypass): Add dbg_cnt.
18961         (gate_handle_gcse): Add dbg_cnt.
18962         * ifcvt.c (gate_handle_if_conversion): Same.
18963         (gate_handle_if_after_combine): Same.
18964         (gate_handle_if_after_reload): Same.
18965         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
18966
18967 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
18968
18969         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
18970         line sizes.
18971         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
18972
18973 2008-02-26  Jason Merrill  <jason@redhat.com>
18974
18975         PR c++/35315
18976         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
18977         alone if it's the naming decl for the type's main variant.
18978
18979 2008-02-26  Tom Tromey  <tromey@redhat.com>
18980
18981         * system.h (USE_MAPPED_LOCATION): Poison.
18982         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
18983         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
18984         (make_goto_expr_edges): Likewise.
18985         (remove_bb): Likewise.
18986         (execute_warn_function_return): Likewise.
18987         * basic-block.h (struct edge_def) <goto_locus>: Change type to
18988         location_t.
18989         * c-common.c (fname_decl): Remove old location code.
18990         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
18991         location code.
18992         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
18993         variant.
18994         (ASM_INPUT_SOURCE_LOCATION): Likewise.
18995         (gen_rtx_ASM_INPUT): Likewise.
18996         (gen_rtx_ASM_INPUT_loc): Likewise.
18997         (get_rtx_asm_OPERANDS): Remove.
18998         * cfglayout.c (insn_locators_alloc): Remove old location code.
18999         (set_curr_insn_source_location): Likewise.
19000         (curr_insn_locator): Likewise.
19001         * print-tree.c (print_node): Remove old location code.
19002         * tree-mudflap.c (mf_varname_tree): Remove old location code.
19003         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19004         * cfgexpand.c (expand_gimple_cond_expr): Don't use
19005         location_from_locus.
19006         (construct_exit_block): Remove old location code.
19007         * emit-rtl.c (force_next_line_note): Remove old location code.
19008         * profile.c (branch_prob): Remove old location code.
19009         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19010         LOC_LINE): Remove old-location variants.
19011         * langhooks.c (lhd_print_error_function): Remove old location
19012         code.
19013         * configure, config.in: Rebuilt.
19014         * configure.ac (--enable-mapped-location): Remove.
19015         * c-decl.c (c_init_decl_processing): Remove old location code.
19016         (finish_function): Likewise.
19017         * recog.c (decode_asm_operands): Remove old location code.
19018         * c-pch.c (c_common_read_pch): Remove old location code.
19019         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19020         variants.
19021         * gimple-low.c (lower_function_body): Remove old location code.
19022         * toplev.c (unknown_location): Remove.
19023         (push_srcloc): Remove old-location variant.
19024         (process_options): Remove old location code.
19025         (lang_dependent_init): Likewise.
19026         * input.h (UNKNOWN_LOCATION): Move definition.
19027         (location_t): Undeprecate.
19028         (source_locus): Remove.
19029         (location_from_locus): Remove.
19030         (struct location_s): Remove.
19031         Remove all old-location code.
19032         (input_line, input_filename): Remove.
19033         * final.c (final_scan_insn): Remove old location code.
19034         * diagnostic.c (diagnostic_build_prefix): Remove
19035         USE_MAPPED_LOCATION test.
19036         * tree.h (gimple_stmt) <locus>: Now a location_t.
19037         (tree_exp) <locus>: Likewise.
19038         (DECL_IS_BUILTIN): Remove old-location variant.
19039         (annotate_with_file_line, annotate_with_locus): Likewise.
19040         (expr_locus, set_expr_locus): Update.
19041         * tree.c (build1_stat): Remove old location code.
19042         (last_annotated_node): Remove.
19043         (annotate_with_file_line): Remove old-location variant.
19044         (annotate_with_locus): Likewise.
19045         (expr_location): Remove old location code.
19046         (set_expr_location): Likewise.
19047         (expr_has_location): Likewise.
19048         (expr_locus): Likewise.
19049         (set_expr_locus): Likewise.
19050         (expr_filename): Don't use location_from_locus.
19051         (expr_lineno): Likewise.
19052         * rtl-error.c (location_for_asm): Remove old location code.
19053         * c-lex.c (cb_line_change): Remove old location code.
19054         (fe_file_change): Likewise.
19055         (cb_def_pragma): Likewise.
19056         (c_lex_with_flags): Likewise.
19057         * gengtype.c (do_typedef): Don't special-case location types.
19058         (define_location_structures): Remove.
19059         (main): Don't call define_location_structures.
19060         * tree-pretty-print.c (dump_implicit_edges): Remove old location
19061         code.
19062
19063 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19064
19065         PR 26264
19066         * builtins.def (BUILT_IN_STDARG_START): Remove.
19067         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19068         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19069         * tree-inline.c (inline_forbidden_p_1): Likewise.
19070
19071 2008-02-26  Richard Guenther  <rguenther@suse.de>
19072
19073         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19074         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19075         (lookup_decl_from_uid): Declare.
19076         (remove_decl_from_map): Likewise.
19077         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19078         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19079         (decl_for_uid_map): New global hashtable mapping DECL_UID
19080         to the decl tree.
19081         (init_ttree): Allocate it.
19082         (insert_decl_to_uid_decl_map): New helper function.
19083         (make_node_stat): Insert new decls into the map.
19084         (copy_node_stat): Likewise.
19085         (lookup_decl_from_uid): New function.
19086         (remove_decl_from_map): Likewise.
19087         (print_decl_for_uid_map_statistics): New helper.
19088         (dump_tree_statistics): Call it.
19089
19090         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19091         (referenced_var_iterator): Adjust.
19092         (FOR_EACH_REFERENCED_VAR): Adjust.
19093         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19094         (num_referenced_vars): Adjust.
19095         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19096         (first_referenced_var): Remove.
19097         (end_referenced_vars_p): Likewise.
19098         (next_referenced_var): Likewise.
19099         (referenced_var_iterator_set): New helper function.
19100         * tree-dfa.c (referenced_var_lookup): Adjust.
19101         (referenced_var_check_and_insert): Likewise.
19102         (remove_referenced_var): Likewise.
19103         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19104         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19105         (verify_call_clobbering): Likewise.
19106         (verify_memory_partitions): Likewise.
19107         (init_tree_ssa): Allocate bitmap instead of hashtable for
19108         referenced_vars.
19109         (delete_tree_ssa): Adjust.
19110         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19111         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19112         (compute_tag_properties): Likewise.
19113         (set_initial_properties): Likewise.
19114         (find_partition_for): Likewise.
19115         (update_reference_counts): Likewise.
19116         (dump_may_aliases_for): Likewise.
19117         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19118         (add_call_clobber_ops): Likewise.
19119         (add_call_read_ops): Likewise.
19120         (get_asm_expr_operands): Likewise.
19121         * tree-into-ssa.c (dump_decl_set): Likewise.
19122         (update_ssa): Likewise.
19123         * tree-sra.c (scan_function): Likewise.
19124         (decide_instantiations): Likewise.
19125         (scalarize_parms): Likewise.
19126         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19127         (dsa_named_for): Likewise.
19128         * tree-ssa-structalias.c (update_alias_info): Likewise.
19129         (merge_smts_into): Likewise.
19130
19131 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19132
19133         PR 34351
19134         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
19135         * c-opts.c (c_common_handle_option): Wall enables
19136         Wvolatile-register-var.
19137         * common.opt: Move Wvolatile-register-var to...
19138         * c.opt: ...here.
19139
19140 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19141
19142         * common.opt (Wlarger-than=): New.
19143         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
19144         -Wlarger-than=.
19145         * opts.c (common_handle_option): Handle -Wlarger-than=.
19146         * optc-gen.awk: Likewise.
19147         * opth-gen.awk: Likewise.
19148         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
19149         * tree-optimize.c (tree_rest_of_compilation): Likewise.
19150
19151 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19152
19153         * c-common.c (match_case_to_enum_1): Add appropriate
19154         OPT_W* parameter to warning.
19155         (c_do_switch_warnings): Likewise.
19156         * c-typeck.c (warning_init): Add one more parameter following
19157         'warning' function.
19158         (push_init_level): Update call to warning_init.
19159         (pop_init_level): Likewise.
19160         (add_pending_init): Likewise.
19161         (output_init_element: Likewise.
19162
19163 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19164
19165         PR 28322
19166         * toplev.c (toplev_main): If there are warnings or error, print
19167         errors for ignored options.
19168         * opts.c (ignored_options): New static variable.
19169         (postpone_unknown_option_error): New.
19170         (print_ignored_options): New.
19171         (handle_option): Postpone errors for unknown -Wno-* options.
19172         * opts.h (print_ignored_options): Declare.
19173
19174 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19175
19176         * config/mips/mips.md (loadgp_blockage, blockage): Change type
19177         to "ghost".
19178
19179 2008-02-25  Richard Guenther  <rguenther@suse.de>
19180
19181         Revert:
19182         2008-02-25  Richard Guenther  <rguenther@suse.de>
19183
19184         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19185         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19186         (lookup_decl_from_uid): Declare.
19187         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19188         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19189         (decl_for_uid_map): New global hashtable mapping DECL_UID
19190         to the decl tree.
19191         (init_ttree): Allocate it.
19192         (insert_decl_to_uid_decl_map): New helper function.
19193         (make_node_stat): Insert new decls into the map.
19194         (copy_node_stat): Likewise.
19195         (lookup_decl_from_uid): New function.
19196         (print_decl_for_uid_map_statistics): New helper.
19197         (dump_tree_statistics): Call it.
19198
19199         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19200         (referenced_var_iterator): Adjust.
19201         (FOR_EACH_REFERENCED_VAR): Adjust.
19202         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19203         (num_referenced_vars): Adjust.
19204         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19205         (first_referenced_var): Remove.
19206         (end_referenced_vars_p): Likewise.
19207         (next_referenced_var): Likewise.
19208         (referenced_var_iterator_set): New helper function.
19209         * tree-dfa.c (referenced_var_lookup): Adjust.
19210         (referenced_var_check_and_insert): Likewise.
19211         (remove_referenced_var): Likewise.
19212         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19213         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19214         (verify_call_clobbering): Likewise.
19215         (verify_memory_partitions): Likewise.
19216         (init_tree_ssa): Allocate bitmap instead of hashtable for
19217         referenced_vars.
19218         (delete_tree_ssa): Adjust.
19219         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19220         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19221         (compute_tag_properties): Likewise.
19222         (set_initial_properties): Likewise.
19223         (find_partition_for): Likewise.
19224         (update_reference_counts): Likewise.
19225         (dump_may_aliases_for): Likewise.
19226         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19227         (add_call_clobber_ops): Likewise.
19228         (add_call_read_ops): Likewise.
19229         (get_asm_expr_operands): Likewise.
19230         * tree-into-ssa.c (dump_decl_set): Likewise.
19231         (update_ssa): Likewise.
19232         * tree-sra.c (scan_function): Likewise.
19233         (decide_instantiations): Likewise.
19234         (scalarize_parms): Likewise.
19235         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19236         (dsa_named_for): Likewise.
19237         * tree-ssa-structalias.c (update_alias_info): Likewise.
19238         (merge_smts_into): Likewise.
19239
19240 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
19241
19242         PR fortran/29549
19243         * doc/invoke.texi (-fcx-limited-range): Document new option.
19244         * toplev.c (process_options): Handle -fcx-fortran-rules.
19245         * common.opt: Add documentation for -fcx-fortran-rules.
19246
19247 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
19248
19249         PR c/35162
19250         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
19251         actual behaviour and C99.
19252
19253 2008-02-26  Ben Elliston  <bje@au.ibm.com>
19254
19255         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
19256         (ASM_CPU_POWER6_SPEC): Likewise.
19257         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
19258         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
19259         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
19260
19261 2008-02-25  Richard Guenther  <rguenther@suse.de>
19262
19263         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19264         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19265         (lookup_decl_from_uid): Declare.
19266         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19267         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19268         (decl_for_uid_map): New global hashtable mapping DECL_UID
19269         to the decl tree.
19270         (init_ttree): Allocate it.
19271         (insert_decl_to_uid_decl_map): New helper function.
19272         (make_node_stat): Insert new decls into the map.
19273         (copy_node_stat): Likewise.
19274         (lookup_decl_from_uid): New function.
19275         (print_decl_for_uid_map_statistics): New helper.
19276         (dump_tree_statistics): Call it.
19277
19278         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19279         (referenced_var_iterator): Adjust.
19280         (FOR_EACH_REFERENCED_VAR): Adjust.
19281         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19282         (num_referenced_vars): Adjust.
19283         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19284         (first_referenced_var): Remove.
19285         (end_referenced_vars_p): Likewise.
19286         (next_referenced_var): Likewise.
19287         (referenced_var_iterator_set): New helper function.
19288         * tree-dfa.c (referenced_var_lookup): Adjust.
19289         (referenced_var_check_and_insert): Likewise.
19290         (remove_referenced_var): Likewise.
19291         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19292         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19293         (verify_call_clobbering): Likewise.
19294         (verify_memory_partitions): Likewise.
19295         (init_tree_ssa): Allocate bitmap instead of hashtable for
19296         referenced_vars.
19297         (delete_tree_ssa): Adjust.
19298         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19299         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19300         (compute_tag_properties): Likewise.
19301         (set_initial_properties): Likewise.
19302         (find_partition_for): Likewise.
19303         (update_reference_counts): Likewise.
19304         (dump_may_aliases_for): Likewise.
19305         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19306         (add_call_clobber_ops): Likewise.
19307         (add_call_read_ops): Likewise.
19308         (get_asm_expr_operands): Likewise.
19309         * tree-into-ssa.c (dump_decl_set): Likewise.
19310         (update_ssa): Likewise.
19311         * tree-sra.c (scan_function): Likewise.
19312         (decide_instantiations): Likewise.
19313         (scalarize_parms): Likewise.
19314         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19315         (dsa_named_for): Likewise.
19316         * tree-ssa-structalias.c (update_alias_info): Likewise.
19317         (merge_smts_into): Likewise.
19318
19319 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
19320
19321         PR target/35258
19322         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
19323         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
19324         * alias.h (nonoverlapping_memrefs_p): Likewise.
19325
19326 2008-02-25  Jan Beulich  <jbeulich@novell.com>
19327
19328         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
19329         * config/i386/netware-libgcc.exp: Add __bswap?i2,
19330         __emultls_get_address, __emultls_register_common,
19331         __floatundi?f, and _Unwind_GetIPInfo.
19332         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
19333         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
19334         (gen_regparm_prefix): Likewise.
19335         (i386_nlm_encode_section_info): Sync with
19336         config/i386/winnt.c:i386_pe_encode_section_info().
19337         (i386_nlm_maybe_mangle_decl_assembler_name): New.
19338         i386_nlm_mangle_decl_assembler_name): New.
19339         (netware_override_options): New.
19340         * config/i386/netware.h (netware_override_options): Declare.
19341         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
19342         (i386_nlm_mangle_decl_assembler_name): Declare.
19343         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
19344
19345 2008-02-25  Ben Elliston  <bje@au.ibm.com>
19346
19347         PR other/32948
19348         * c-decl.c (grokdeclarator): Remove unused local variables
19349         `typedef_type' and `type_as_written'.
19350         * bb-reorder.c
19351         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
19352         unused local variable `has_hot_blocks'.
19353         (fix_crossing_conditional_branches): Remove unused local variable
19354         `prev_bb'.
19355
19356 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
19357
19358         PR middle-end/19984
19359         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
19360         using DEF_C99_BUILTIN.
19361         (BUILT_IN_NANF): Ditto.
19362         (BUILT_IN_NANL): Ditto.
19363
19364 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
19365             Revital Eres  <eres@il.ibm.com>
19366
19367         * modulo-sched.c (calculate_must_precede_follow): Address TODO
19368         regarding the order of two dependent insns in the same row.
19369
19370 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
19371
19372         * stor-layout.c (layout_decl): Do not bump the alignment of a
19373         bit-field to more than byte alignment if it is packed.
19374
19375 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
19376
19377         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
19378         e300c2 and e300c3.
19379
19380 2008-02-24  Diego Novillo  <dnovillo@google.com>
19381
19382         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
19383
19384         PR 33738
19385         * tree-vrp.c (vrp_evaluate_conditional): With
19386         -Wtype-limits, emit a warning when comparing against a
19387         constant outside the natural range of OP0's type.
19388         * c.opt (Wtype-limits): Move ...
19389         * common.opt (Wtype-limits): ... here.
19390
19391 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
19392
19393         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
19394         * config/rs6000/e300c2c3.md: New file.
19395         * config/rs6000/rs6000.c (processor_costs): Add new costs for
19396         e300c2 and e300c3.
19397         (rs6000_override_options): Add e300c2 and e300c3 cases to
19398         processor_target_table. Do not allow usage of Altivec or Spe
19399         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
19400         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
19401         * config/rs6000/rs6000.h (processor_type): Add
19402         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
19403         (ASM_CPU_SPEC): Add e300c2 and e300c3.
19404         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
19405         and ppce300c3. Include e300c2c3.md.
19406
19407 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
19408
19409         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
19410         instead of TARGET_STRICT_ALIGN.
19411
19412 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
19413
19414         * explow.c (memory_address): Assert that the generated address is
19415         valid.
19416
19417 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19418
19419         PR target/25477
19420         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
19421         * config/darwin-ppc-ldouble-patch.def: New file.
19422         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
19423         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
19424         SUBTARGET_INIT_BUILTINS if defined.
19425         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
19426         New functions.
19427
19428 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19429
19430         PR rtl-opt/33512
19431         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
19432         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
19433
19434 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19435
19436         PR pch/35027
19437         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
19438         file" warning condtional on -Winvalid-PCH.
19439
19440 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
19441
19442         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
19443
19444 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
19445
19446         PR target/22076
19447         PR target/34256
19448         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
19449         prevent reload from using MMX registers.
19450         (*mov<mode>_internal): Ditto.
19451         (*movv2sf_internal_rex64): Ditto.
19452         (*movv2sf_internal): Ditto.
19453
19454 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19455
19456         PR documentation/31569
19457         * doc/install.texi2html: Use makeinfo --no-number-sections.
19458
19459 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19460
19461         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
19462         ensure that we can address an entire entity > 8 bytes.  Don't
19463         generate reg+reg addressing for such data.
19464
19465 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19466
19467         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
19468         strings when optimizing for size, unless the target cares about
19469         alignment.
19470
19471 2008-02-22  Tom Tromey  <tromey@redhat.com>
19472
19473         * regclass.c (current_pass): Remove declaration.
19474
19475 2008-02-22  Anatoly Sokolov <aesok@post.ru>
19476
19477         * config/avr/libgcc.S (__RAMPZ__): Define.
19478         (__do_copy_data): Add for devices with 128KB code memory.
19479
19480 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
19481
19482         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
19483         Use spe_abi.
19484         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
19485
19486 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
19487
19488         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
19489         GENNONACR_REGS.
19490
19491 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19492
19493         PR c/19999
19494         * c-typeck.c (build_binary_op): Warn about floating point
19495         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
19496
19497 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
19498
19499         PR target/34526
19500         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
19501         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
19502         add vrsave.
19503         (rs6000_override_options): Set altivec_abi as default, not override,
19504         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
19505         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
19506         is used; use new member spe_abi.
19507         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
19508         spe_abi and altivec_abi.
19509
19510 2008-02-22  Tomas Bily  <tbily@suse.cz>
19511
19512         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
19513
19514 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19515
19516         PR bootstrap/35273
19517         * config.build (build_file_translate): Set to `CMD //c' only if
19518         it works.
19519         * Makefile.in (build_file_translate): Improve comment.
19520
19521 2008-02-21  Jan Hubicka  <jh@suse.cz>
19522
19523         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
19524         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
19525         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
19526
19527 2008-02-21  Michael Matz  <matz@suse.de>
19528
19529         PR target/35264
19530         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
19531
19532 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
19533
19534         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
19535         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
19536         as insn constraint.
19537         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
19538         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
19539         SSE_VEC_FLOAT_MODE_P as insn constraint.
19540         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
19541         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
19542         sse4a_movntdf using MODEF mode iterator.
19543         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
19544         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
19545         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
19546         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
19547         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
19548         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
19549         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
19550
19551 2008-02-21  Richard Guenther  <rguenther@suse.de>
19552
19553         * tree.def (PAREN_EXPR): New tree code.
19554         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
19555         and PAREN_EXPR.
19556         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
19557         * expr.c (expand_expr_real_1): Likewise.
19558         * tree-inline.c (estimate_num_insns_1): Likewise.
19559         * tree-complex.c (expand_complex_move): Likewise.
19560         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
19561         as plain x.
19562
19563 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19564
19565         PR target/35225
19566         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
19567
19568 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19569
19570         PR target/35190
19571         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
19572
19573         * config/sh/sh.c (find_barrier): Don't go past
19574         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
19575
19576 2008-02-20  DJ Delorie  <dj@redhat.com>
19577
19578         * config/h8300/h8300.md (insv): Force source operand to be a register.
19579
19580         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
19581         as a jump, not as a plain insn.
19582
19583 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
19584
19585         * doc/invoke.texi (Warning Options): Add new option
19586         -Wframe-larger-than=.
19587         (-Wframe-larger-than): Document.
19588
19589         * flags.h (warn_frame_larger_than, frame_larger_than_size):
19590         Add declarations for new option variables.
19591
19592         * final.c (final_start_function): Check the frame size
19593         before emission and issue a Wframe-larger-than warning.
19594
19595         * opts.c (warn_frame_larger_than, frame_larger_than_size):
19596         Add definitions for new option variables.
19597         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
19598
19599         * common.opt (Wframe-larger-than=): New option.
19600
19601 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
19602
19603         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
19604         (<sse>_div<mode>3): Ditto.
19605         (<sse>_vmdiv<mode>3): Ditto.
19606         (<sse>_vmsqrt<mode>2): Ditto.
19607         (*smax<mode>3): Ditto.
19608         (sse5_frcz<mode>2): Ditto.
19609         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
19610         as insn constraint.
19611
19612 2008-02-20  Richard Guenther  <rguenther@suse.de>
19613
19614         PR middle-end/35265
19615         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
19616         be happy with INTEGRAL_TYPE_P.
19617
19618 2008-02-20  Richard Guenther  <rguenther@suse.de>
19619
19620         * fold-const.c (split_tree): Associate floatig-point expressions
19621         if flag_associative_math is set.
19622
19623 2008-02-20  Richard Guenther  <rguenther@suse.de>
19624
19625         * tree.h (fold_real_zero_addition_p): Declare.
19626         * fold-const.c (fold_real_zero_addition_p): Export.
19627         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
19628         floating-point operations with zero and one.
19629
19630 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
19631
19632         * doc/install.texi: Correct references to CFLAGS, replacing them
19633         with BOOT_CFLAGS.  Document flags used during bootstrap for
19634         target libraries.
19635
19636 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
19637
19638         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
19639         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
19640         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
19641         insn constraint.
19642         (smin<mode>3): Ditto from similar patterns.
19643         (smax<mode>3): Ditto.
19644         (*ieee_smin<mode>3): Ditto.
19645         (*ieee_smax<mode>3): Ditto.
19646         * config/i386/sse.md (sse): New mode attribute.
19647         (mov<mode>): Macroize expander from movv4sf and movv2df using
19648         SSEMODEF2P mode iterator.
19649         (<sse>_movnt<mode>): Ditto from similar patterns. Use
19650         SSE_VEC_FLOAT_MODE_P as insn constraint.
19651         (storent<mode>): Ditto.
19652         (storent<mode>): Macroize expander from storentsf and storentdf using
19653         MODEF mode iterator.
19654         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
19655         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
19656         (abs<mode>2): Ditto from similar patterns.
19657         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
19658         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
19659         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
19660         (<sse>_vmsqrt<mode>2): Ditto.
19661         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
19662         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
19663         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
19664         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
19665         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
19666         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
19667         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
19668         insn constraint.
19669         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
19670         iterator and SSE_FLOAT_MODE_P as insn constraint.
19671         (<sse>_ucomi): Ditto from similar patterns.
19672         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
19673         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
19674         SSE_VEC_FLOAT_MODE_P as insn constraint.
19675         (vcond<mode>): Ditto from similar patterns.
19676         (and<mode>3, *and<mode>3): Ditto.
19677         (<sse>_nand<mode>3): Ditto.
19678         (ior<mode>3, *ior<mode>3): Ditto.
19679         (xor<mode>3, *xor<mode>3): Ditto.
19680         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
19681         iterator and SSE_FLOAT_MODE_P as insn constraint.
19682         (*nand<mode>3): Ditto from similar patterns.
19683         (*ior<mode>3): Ditto.
19684         (*xor<mode>3): Ditto.
19685
19686 2008-02-20  Ira Rosen  <irar@il.ibm.com>
19687
19688         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
19689         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
19690         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
19691
19692 2008-02-19  Jan Hubicka  <jh@suse.cz>
19693
19694         * predict.c (tree_bb_level_predictions): Remove variable next
19695         mistakely introduced by previous commit.
19696
19697 2008-02-19  Jan Hubicka  <jh@suse.cz>
19698
19699         * predict.c (predict_paths_leading_to): Rewrite.
19700         (predict_paths_for_bb): New.
19701         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
19702
19703 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19704
19705         PR bootstrap/35218
19706         * Makefile.in (build_file_translate): New.
19707         (gcc-vers.texi): Use it for translating $(abs_srcdir).
19708         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
19709         * configure.ac (build_file_translate): Substitute it.
19710         * configure: Regenerate.
19711
19712 2008-02-19  Jan Hubicka  <jh@suse.cz>
19713
19714         PR rtl-optimization/34408
19715         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
19716         invalid sharing.
19717
19718 2008-02-19  Jan Hubicka  <jh@suse.cz>
19719
19720         PR middle-end/28779
19721         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
19722         call_expr.
19723
19724 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
19725
19726         PR Ada/35186
19727         * config/i386/i386-modes.def: Revert the last DI alignment
19728         change until Ada people can look into it.
19729
19730 2008-02-19  Nick Clifton  <nickc@redhat.com>
19731
19732         * opts.c (print_specific_help): Fix typo in --help text.
19733
19734 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
19735
19736         PR target/35239
19737         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
19738         32-bit inline asm without asm alternatives for host GCC < 3.0.
19739
19740 2008-02-19  Richard Guenther  <rguenther@suse.de>
19741
19742         PR tree-optimization/34989
19743         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
19744         Allow propagation to INDIRECT_REF if we can simplify only.
19745
19746 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19747
19748         * c-common.c (warn_for_collisions_1): Use appropriate option when
19749         warning.
19750
19751 2008-02-19  Nick Clifton  <nickc@redhat.com>
19752
19753         PR other/31349
19754         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
19755         (handle_options): Fix indentation.
19756         (print_filtered_help): If no language-specific options were
19757         displayed tell the user how to list all the options supported by
19758         the language's front-end.
19759         (print_specific_help): Fix indentation and remove duplicate line.
19760         (common_handle_option): Handle the -v option.
19761         For --help enable the display of undocumented options if the -v
19762         switch has been included on the command line.
19763         For --help= check for overlaps in the arguments between the option
19764         classes and the language names and issue a warning when they
19765         cannot be disambiguated.
19766         * c.opt (v): Pass on to the common option handler.
19767
19768 2008-02-19  Revital Eres  <eres@il.ibm.com>
19769
19770         * modulo-sched.c (sms_schedule): Change dump message when
19771         create_ddg function fails.
19772         (try_scheduling_node_in_cycle): Rename row to cycle.
19773         (print_partial_schedule): Rename CYCLE to ROW.
19774
19775 2008-02-19  Christian Bruel  <christian.bruel@st.com>
19776             Zdenek Dvorak  <ook@ucw.cz>
19777
19778         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
19779
19780 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
19781
19782         PR target/33555
19783         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
19784         (*x86_movdicc_0_m1_se): Ditto.
19785
19786 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
19787
19788         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
19789         (CMPtype): Define as __gcc_CMPtype.
19790         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
19791         (CMPtype): Define as __gcc_CMPtype.
19792
19793 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
19794
19795         Support valgrind 3.3 for --enable-checking=valgrind.
19796         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
19797         here.
19798         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
19799         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
19800         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
19801         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
19802         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
19803         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
19804         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
19805         respectively.
19806         * ggc-zone.c: Similar.
19807         * ggc-page.c: Similar.
19808
19809 2008-02-19  Paul Brook  <paul@codesourcery.com>
19810
19811         PR target/35071
19812         * config/arm/ieee754-df.S: Fix do_it typo.
19813         * config/arm/ieee754-sf.S: Fix do_it typo.
19814
19815 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19816
19817         PR target/35189
19818         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
19819         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
19820         (OPTION_MASK_ISA_SSE_SET): Likewise.
19821         (OPTION_MASK_ISA_SSE2_SET): Likewise.
19822         (OPTION_MASK_ISA_SSE3_SET): Likewise.
19823         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
19824         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
19825         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
19826         (OPTION_MASK_ISA_SSE4_SET): Likewise.
19827         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
19828         (OPTION_MASK_ISA_SSE5_SET): Likewise.
19829         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
19830         (OPTION_MASK_ISA_MMX_UNSET): Updated.
19831         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
19832         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
19833         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
19834         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
19835         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
19836         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
19837         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
19838         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
19839         (OPTION_MASK_ISA_SSE4): Removed.
19840         (ix86_handle_option): Turn on bits in ix86_isa_flags and
19841         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
19842         (override_options): Don't turn on implied SSE/MMX bits in
19843         ix86_isa_flags.
19844
19845 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19846
19847         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19848         32bit host.
19849
19850 2008-02-18  Joey Ye  <joey.ye@intel.com>
19851
19852         PR middle-end/34921
19853         * tree-nested.c (insert_field_into_struct): Set type alignment
19854         to field alignment if the former is less than the latter.
19855
19856 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
19857
19858         * BASE-VER: Set to 4.4.0.
19859
19860 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19861
19862         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
19863         * doc/cfg.texi: Likewise.
19864         * doc/extend.texi: Likewise.
19865         * doc/gty.texi: Likewise.
19866         * doc/invoke.texi: Likewise.
19867         * doc/loop.texi: Likewise.
19868         * doc/md.texi: Likewise.
19869         * doc/passes.texi: Likewise.
19870         * doc/rtl.texi: Likewise.
19871         * doc/sourcebuild.texi: Likewise.
19872         * doc/tm.texi: Likewise.
19873         * doc/tree-ssa.texi: Likewise.
19874
19875 2008-02-17  Richard Guenther  <rguenther@suse.de>
19876
19877         PR middle-end/35227
19878         * tree-complex.c (init_parameter_lattice_values): Handle parameters
19879         without default definition.
19880
19881 2008-02-17  Richard Guenther  <rguenther@suse.de>
19882
19883         PR tree-optimization/35231
19884         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
19885         if A | B != 1.
19886
19887 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
19888
19889         Revert:
19890         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
19891         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
19892         libgcc_cmp_return mode.
19893
19894 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19895
19896         PR c/28368
19897         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
19898
19899 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
19900
19901         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
19902         multilibs.
19903
19904 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19905
19906         * doc/c-tree.texi: Use `@.' where appropriate.
19907         * doc/extend.texi: Likewise.
19908         * doc/install.texi: Likewise.
19909         * doc/invoke.texi: Likewise.
19910         * doc/loop.texi: Likewise.
19911         * doc/makefile.texi: Likewise.
19912         * doc/md.texi: Likewise.
19913         * doc/passes.texi: Likewise.
19914         * doc/standards.texi: Likewise.
19915         * doc/tm.texi: Likewise.
19916
19917 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19918
19919         PR middle-end/35196
19920         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
19921         in entry_bb.
19922         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
19923         rather than in entry_bb.
19924
19925 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
19926
19927         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
19928         libgcc_cmp_return mode.
19929
19930 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19931
19932         PR middle-end/35130
19933         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
19934         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
19935
19936 2008-02-15  Richard Guenther  <rguenther@suse.de>
19937             Zdenek Dvorak  <ook@ucw.cz>
19938
19939         PR tree-optimization/35164
19940         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
19941         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
19942         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
19943         Only propagate addresses which do not have abnormal SSA_NAMEs
19944         in their operands.
19945
19946 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
19947
19948         PR target/35088
19949         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
19950
19951 2008-02-15  Jan Hubicka  <jh@suse.cz>
19952
19953         PR middle-end/35149
19954         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
19955
19956 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
19957
19958         PR middle-end/34621
19959         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
19960         when calculating alignment_pad.
19961
19962 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
19963
19964         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
19965         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
19966         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
19967         and STACK_BOUNDARY define.
19968
19969 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
19970
19971         PR preprocessor/35061
19972         * c-pragma.c (handle_pragma_pop_macro): Check that
19973         pushed_macro_table has been allocated.
19974
19975 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
19976
19977         PR middle-end/35136
19978         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
19979         (force_gimple_operand): Likewise.
19980         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
19981         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
19982         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
19983         (find_interesting_uses_address): Check addressability and alignment
19984         of the base expression only after substituting bases of IVs into it.
19985
19986 2008-02-14  Michael Matz  <matz@suse.de>
19987
19988         PR target/34930
19989         * function.c (instantiate_virtual_regs_in_insn): Reload address
19990         before falling back to reloading the whole operand.
19991
19992 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
19993
19994         * config/s390/s390.c (s390_mainpool_start): Emit the pool
19995         before the first section switch note.
19996
19997 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19998
19999         * doc/bugreport.texi: Update copyright years.
20000         * doc/c-tree.texi: Likewise.
20001         * doc/cfg.texi: Likewise.
20002         * doc/cpp.texi: Likewise.
20003         * doc/cppinternals.texi: Likewise.
20004         * doc/fragments.texi: Likewise.
20005         * doc/frontends.texi: Likewise.
20006         * doc/gcc.texi: Likewise.
20007         * doc/gty.texi: Likewise.
20008         * doc/hostconfig.texi: Likewise.
20009         * doc/implement-c.texi: Likewise.
20010         * doc/libgcc.texi: Likewise.
20011         * doc/loop.texi: Likewise.
20012         * doc/makefile.texi: Likewise.
20013         * doc/options.texi: Likewise.
20014         * doc/passes.texi: Likewise.
20015         * doc/rtl.texi: Likewise.
20016         * doc/sourcebuild.texi: Likewise.
20017         * doc/standards.texi: Likewise.
20018         * doc/tree-ssa.texi: Likewise.
20019         * doc/trouble.texi: Likewise.
20020
20021         * doc/extend.texi: Use @: or add comma where appropriate.
20022         * doc/invoke.texi: Likewise.
20023         * doc/tm.texi: Likewise.
20024
20025 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
20026
20027         PR target/34393
20028         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20029         to a reg.
20030
20031 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
20032
20033         * doc/md.texi (clz, ctz): Add reference.
20034         * doc/rtl.texi (clz, ctz): Likewise.
20035
20036 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20037
20038         PR other/35148
20039         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20040         srcdir.
20041
20042 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
20043
20044         * config/s390/s390.c (struct constant_pool): New field
20045         emit_pool_after added.
20046         (s390_mainpool_start): Set the emit_pool_after flag according
20047         to the section switch notes.
20048         (s390_mainpool_finish): Consider emit_pool_after when emitting
20049         the literal pool at the end of the function.
20050         (s390_chunkify_start): Force literal pool splits at section
20051         switch notes.
20052
20053 2008-02-13  Michael Matz  <matz@suse.de>
20054
20055         PR debug/35065
20056         * var-tracking.c (clobber_variable_part): Correctly traverse the
20057         list.
20058
20059 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20060
20061         PR 29673
20062         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20063         Add -fdump-ipa-inline.
20064         * tree-dump.c (dump_files): Remove tree-inlined dump.
20065         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20066
20067 2008-02-12  Richard Guenther  <rguenther@suse.de>
20068
20069         PR tree-optimization/35171
20070         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
20071         default defs.
20072
20073 2008-02-12  Richard Guenther  <rguenther@suse.de>
20074
20075         PR middle-end/35163
20076         * fold-const.c (fold_widened_comparison): Use get_unwidened in
20077         value-preserving mode.  Disallow final truncation.
20078
20079 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
20080
20081         PR middle-end/35136
20082         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
20083         code from here to...
20084         (force_gimple_operand): ...here.
20085
20086 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
20087
20088         PR c++/35144
20089         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
20090         non-compatible pointers.
20091         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
20092         different FIELD_DECLs, try harder by comparing field offsets, sizes
20093         and types.
20094
20095         PR inline-asm/35160
20096         * function.c (match_asm_constraints_1): Don't replace the same input
20097         multiple times.
20098
20099 2008-02-12  Anatoly Sokolov <aesok@post.ru>
20100
20101         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
20102         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
20103         (expand_epilogue): Restore RAMPZ register.
20104         * config/avr/avr.md (RAMPZ_ADDR): New constant.
20105
20106 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
20107
20108         * config/i386/cygwin.asm: (__alloca): Correct calling
20109         convention and alignment.
20110         (__chkstk): Force 8 byte stack alignment.
20111
20112 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
20113             Richard Guenther  <rguenther@suse.de>
20114
20115         PR tree-optimization/33992
20116         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
20117         the zero we compare against.
20118
20119 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
20120
20121         PR libfortran/35063
20122         * gthr-win32.h (__gthread_mutex_destroy_function): New function
20123         to CloseHandle after unlocking to prevent accumulation of handle
20124         count.
20125
20126 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20127
20128         PR middle_end/34150
20129         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
20130         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
20131         and update LABEL_NUSES during and after reload.
20132
20133 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
20134
20135         PR middle-end/34627
20136         * combine.c (simplify_if_then_else): Make sure the comparison is
20137         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
20138
20139 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
20140
20141         PR bootstrap/35051
20142         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
20143         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
20144         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
20145         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
20146         * tree.h (get_type_static_bounds): Likewise.
20147
20148 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20149
20150         * doc/invoke.texi (Option Summary, C++ Dialect Options)
20151         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20152         Make -Wfoo language annotations match what the compiler outputs.
20153
20154 2008-02-08  Sa Liu  <saliu@de.ibm.com>
20155
20156         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
20157         intrinsics spu_convts, spu_convtu, spu_convtf.
20158
20159 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
20160
20161         * doc/extend.texi (Function Attributes) <noinline>: Mention
20162         asm ("") as method to keep calls.
20163
20164 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20165
20166         PR other/32754
20167         * doc/options.texi (Options): Replace references to opts.sh with
20168         optc-gen.awk.
20169         * opts-common.c: Likewise.
20170         * optc-gen.awk: Likewise.
20171
20172 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
20173
20174         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20175
20176 2008-02-07  Richard Henderson  <rth@redhat.com>
20177
20178         PR rtl-opt/33410
20179         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
20180         EXPR_LIST for the REG_EQUAL instead of a comparison with a
20181         funny mode.
20182
20183 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
20184
20185         PR tree-optimization/35085
20186         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
20187         for operand entry oe2 in addition to operand entry oe3 in order to
20188         expose more opportunities for vectorizer sum reduction.
20189
20190 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20191
20192         PR other/35107
20193         * Makefile.in (LIBS): Remove $(GMPLIBS).
20194         (cc1-dummy, cc1): Add $(GMPLIBS).
20195
20196 2008-02-06  Jan Hubicka  <jh@suse.cz>
20197
20198         PR target/23322
20199         * i386.md (moddf_integer): Do not produce partial memory stalls for
20200         targets where it hurts.
20201
20202 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
20203
20204         PR target/35083
20205         * optabs.c (expand_float): Do not check for decimal modes when
20206         expanding unsigned integer through signed conversion.
20207
20208 2008-02-06  Nick Clifton  <nickc@redhat.com>
20209
20210         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
20211         inside the clobber with a match_operand and duplicated operand
20212         number in the constraint.
20213         (ineqbranchsi): Delete redundant comment.
20214
20215 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
20216
20217         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
20218         builtin_define ("__USE_INIT_FINI__").
20219         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
20220         -msx multilibs.
20221         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
20222
20223 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20224
20225         PR documentation/30330
20226         * doc/invoke.texi (C++ Dialect Options)
20227         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20228         For each warning option -Wfoo that allows -Wno-foo, ensure both
20229         -Wfoo and -Wno-foo are listed in the option index.  Fix index
20230         entry of -Wswitch-default, index -Wnormalized= including the
20231         `=', and -Wlarger-than-@var{len} including @var{len}.
20232
20233 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
20234
20235         * config/i386/i386.md (floatunssisf2): Use
20236         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
20237         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
20238         Macroize expander using MODEF mode iterator.
20239
20240 2008-02-05  Diego Novillo  <dnovillo@google.com>
20241
20242         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
20243
20244         PR 33738
20245         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
20246
20247 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20248
20249         PR other/35070
20250         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
20251
20252 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
20253
20254         PR target/35084
20255         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
20256         to indicate if a message should be generated.
20257         (init_cumulative_args): Updated.
20258         (function_value_32): Likewise.
20259
20260 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
20261
20262         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
20263
20264 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
20265
20266         PR target/35083
20267         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
20268         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
20269
20270 2008-02-04  Diego Novillo  <dnovillo@google.com>
20271
20272         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
20273
20274         PR 33738
20275         * tree-vrp.c (vrp_evaluate_conditional): With
20276         -Wtype-limits, emit a warning when comparing against a
20277         constant outside the natural range of OP0's type.
20278
20279 2008-02-04  Richard Guenther  <rguenther@suse.de>
20280
20281         PR middle-end/33631
20282         * expr.c (count_type_elements): Give for unions instead of
20283         guessing.
20284
20285 2008-02-04  Richard Guenther  <rguenther@suse.de>
20286
20287         PR middle-end/35043
20288         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
20289         to TYPE_DOMAINs base type instead of using bitsizetype here.
20290
20291 2008-02-03  Jason Merrill  <jason@redhat.com>
20292
20293         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
20294
20295 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20296
20297         PR other/29972
20298         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
20299         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
20300         (RS/6000 and PowerPC Options): Fix typos and markup.
20301         * doc/passes.texi (Tree-SSA passes): Likewise.
20302
20303 2008-02-02  Michael Matz  <matz@suse.de>
20304
20305         PR target/35045
20306         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
20307         from record_last_reg_set_info.
20308         (record_last_reg_set_info): Take an RTX argument, iterate over all
20309         constituent hardregs.
20310         (record_last_set_info, record_opr_changes): Change calls to
20311         new signature or to record_last_reg_set_info_regno.
20312
20313 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
20314
20315         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
20316
20317 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
20318
20319         PR rtl-optimization/34773
20320         * reg-notes.def (EQUAL): Mention significance of combination of
20321         REG_EQUAL and REG_RETVAL.
20322         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
20323         insn that has a REG_RETVAL.
20324
20325 2008-02-01  Roger Sayle  <roger@eyesopen.com>
20326
20327         PR bootstrap/33781
20328         * configure.ac (--enable-fixed-point): Disable unless explicitly
20329         requested on IRIX.
20330         * configure: Regenerate.
20331
20332 2008-02-01  Richard Guenther  <rguenther@suse.de>
20333
20334         PR other/35042
20335         * invoke.texi (-finline-limit): Remove no longer true parts
20336         of the documentation.  Note that there is no default value.
20337
20338 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
20339             Mark Mitchell  <mark@codesourcery.com>
20340             Ben Elliston  <bje@au.ibm.com>
20341
20342         PR c/29326
20343         * doc/extend.texi (Other Builtins): Document.
20344
20345 2008-01-31  Tom Browder <tom.browder@gmail.com>
20346
20347         * doc/c-tree.texi (Types): Fix grammar.
20348         (Expression trees): Ditto.
20349         * doc/passes.texi (Tree-SSA passes): Ditto.
20350
20351         * doc/configterms.texi (Configure Terms): Fix typo.
20352         * doc/cpp.texi (Common Predefined Macros): Ditto.
20353         * doc/md.texi (Machine Constraints): Ditto.
20354
20355         * doc/makefile.texi (Makefile): Add comma.
20356
20357 2008-01-31  Tom Browder  <tom.browder@gmail.com>
20358             Gerald Pfeifer  <gerald@pfeifer.com>
20359
20360         * doc/sourcebuild.texi (Front End): Remove references to CVS
20361         and CVSROOT/modules.
20362         (Texinfo Manuals): Replace reference to CVS by one to SVN.
20363         (Back End): Remove reference to CVS.
20364
20365 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
20366
20367         PR target/34900
20368         * config/mips/mips.c (gen_load_const_gp): New function, taking a
20369         comment from...
20370         (mips16_gp_pseudo_reg): ...here.
20371         * config/mips/mips.md (load_const_gp): Replace with...
20372         (load_const_gp_<mode>): ...this :P-based insn.
20373
20374 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20375
20376         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
20377         options. Minor fixes.
20378         (-std): Move reference to standards closer to where language
20379         standards are first mentioned.
20380
20381 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
20382
20383         PR rtl-optimization/34995
20384         * reload.c (alternative_allows_const_pool_ref): Take an rtx
20385         parameter and return a bool.  If the rtx parameter is nonnull,
20386         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
20387         (find_reloads): Update call accordingly.  Pass the new operand
20388         if it needed no address reloads, otherwise pass null.
20389
20390 2008-01-30  Richard Henderson  <rth@redhat.com>
20391
20392         PR c/34993
20393         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
20394         for unbounded arrays.
20395
20396 2008-01-30  Silvius Rus  <rus@google.com>
20397
20398         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
20399
20400 2008-01-30  Jan Hubicka  <jh@suse.cz>
20401
20402         PR target/34982
20403         * i386.c (init_cumulative_args): Use real function declaration when
20404         calling locally.
20405
20406 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
20407
20408         PR rtl-optimization/34998
20409         * global.c (build_insn_chain): Treat non-subreg_lowpart
20410         SUBREGs of pseudos as clobbering all the words covered by the
20411         SUBREG, not just all the bytes.
20412         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
20413         original df_ref rather than an extract parameter.
20414         (global_conflicts): Update call accordingly.
20415
20416 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
20417
20418         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
20419         the overflow check to make it easier to read.
20420         (__fixtfdi): Change the type of the ll member in union
20421         long_double to UDItype_x.
20422
20423 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
20424
20425         PR middle-end/34969
20426         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
20427         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
20428         * tree-inline.c (fold_marked_statements): Call
20429         cgraph_update_edges_for_call_stmt if folding a call statement.
20430         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
20431         debug_generic_stmt calls, reset it back afterwards.
20432
20433         PR c/35017
20434         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
20435         static decls.
20436         * c-typeck.c (build_external_ref): Don't pedwarn about
20437         static vars in current function's scope.
20438
20439 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
20440
20441         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
20442
20443 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
20444
20445         PR c/35002
20446         * ipa-struct-reorg.c: Fix spelling.
20447         * params.def: Ditto.
20448
20449 2008-01-29  Richard Guenther  <rguenther@suse.de>
20450
20451         PR middle-end/35006
20452         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
20453         field.
20454         * tree-inline.c (remap_type): Increment remapping_type_depth
20455         around remapping types.
20456         (copy_body_r): Only add referenced variables if they are referenced
20457         from code, not types.
20458
20459 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
20460
20461         PR c++/34055
20462         PR c++/34103
20463         PR c++/34219
20464         PR c++/34606
20465         PR c++/34753
20466         PR c++/34754
20467         PR c++/34755
20468         PR c++/34919
20469         PR c++/34961
20470         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
20471         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
20472
20473 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
20474
20475         PR target/34412
20476         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
20477         pointer for tiny stack.
20478
20479 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
20480
20481         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
20482
20483 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
20484
20485         * config/vx-common.h: Fix typo in comment.
20486
20487 2008-01-28  Ian Lance Taylor  <iant@google.com>
20488
20489         PR c++/34862
20490         PR c++/33407
20491         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20492         coalesce pointers if they have different DECL_NO_TBAA_P values.
20493         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
20494         between variables with different DECL_NO_TBAA_P values.
20495
20496 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
20497
20498         PR 31535
20499         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
20500         are not legitimate small data references on SPE targets.
20501
20502 2008-01-28  David Daney  <ddaney@avtrex.com>
20503
20504         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
20505
20506 2008-01-28  David Daney  <ddaney@avtrex.com>
20507
20508         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
20509
20510 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
20511
20512         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
20513         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
20514         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
20515         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
20516         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
20517         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
20518         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
20519         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
20520
20521 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20522
20523         * basic-block.h (condjump_equiv_p): Fix comment.
20524
20525 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20526
20527         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
20528         print_generic_stmt_indented): Fix comment.
20529
20530 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
20531
20532         * configure.ac (__stack_chk_fail): Add detecion for availability
20533         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
20534         * configure: Regenerate.
20535
20536 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
20537
20538         PR middle-end/34688
20539         * final.c (output_addr_const): Handle TRUNCATE.
20540
20541 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
20542
20543         PR target/34711
20544         * tree-ssa-loop-ivopts.c (comp_cost): New type.
20545         (zero_cost, infinite_cost): New constants.
20546         (struct cost_pair): Change type of cost to comp_cost.
20547         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
20548         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
20549         New functions.
20550         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
20551         split_address_cost, ptr_difference_cost, difference_cost,
20552         get_computation_cost_at, get_computation_cost,
20553         determine_use_iv_cost_generic, determine_use_iv_cost_address,
20554         determine_use_iv_cost_condition, determine_use_iv_costs,
20555         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
20556         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
20557         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
20558         Change type of cost to comp_cost.
20559         (determine_iv_cost): Increase cost of non-original ivs, instead
20560         of decreasing the cost of original ones.
20561         (get_address_cost): Indicate the complexity of the addressing mode
20562         in comp_cost.
20563         (try_add_cand_for): Prefer using ivs not specific to some object.
20564         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
20565
20566 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
20567             Janis Johnson  <janis187@us.ibm.com>
20568
20569         PR target/34814
20570         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
20571         (TARGET_INSTANTIATE_DECLS): Likewise.
20572         * target.h (expand_to_rtl_hook): New target hook.
20573         (instantiate_decls): Likewise.
20574         * function.c (instantiate_decl): Make non-static.  Rename to...
20575         (instantiate_decl_rtl): ... this.
20576         (instantiate_expr): Use instantiate_decl_rtl.
20577         (instantiate_decls_1): Likewise.
20578         (instantiate_decls): Likewise.
20579         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
20580         * function.h (instantiate_decl_rtl): Add prototype.
20581         * cfgexpand.c (target.h): New include.
20582         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
20583         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
20584         (TARGET_INSTANTIATE_DECLS): Likewise.
20585         (TARGET_INITIALIZER): New target hooks added.
20586         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
20587         New prototype.
20588         * config/rs6000/rs6000.c (tree-flow.h): New include.
20589         (machine_function): Add sdmode_stack_slot field.
20590         (rs6000_alloc_sdmode_stack_slot): New function.
20591         (rs6000_instantiate_decls): Likewise.
20592         (rs6000_secondary_memory_needed_rtx): Likewise.
20593         (rs6000_check_sdmode): Likewise.
20594         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
20595         (TARGET_INSTANTIATE_DECLS): Likewise.
20596         (rs6000_hard_regno_mode_ok): Allow SDmode.
20597         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
20598         (rs6000_emit_move): Handle SDmode.
20599         (function_arg_advance): Likewise.
20600         (function_arg): Likewise.
20601         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
20602         SDmode var args for 32-bit compiles.
20603         (rs6000_secondary_reload_class): Handle SDmode.
20604         (rs6000_output_function_epilogue): Likewise.
20605         (rs6000_function_value): Simplify if statement.
20606         (rs6000_libcall_value): Likewise.
20607         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
20608         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
20609         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
20610         (movsd_hardfloat): New define_insn.
20611         (movsd_softfloat): Likewise.
20612         (movsd_store): Likewise.
20613         (movsd_load): Likewise.
20614         (extendsddd2): Likewise.
20615         (extendsdtd2): Likewise.
20616         (truncddsd2): Likewise.
20617         (movdd_hardfloat64): Fixup comment.
20618         (UNSPEC_MOVSD_LOAD): New constant.
20619         (UNSPEC_MOVSD_STORE): Likewise.
20620
20621 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
20622
20623         PR c++/34965
20624         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
20625         TRUTH_XOR_EXPR.
20626         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
20627         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
20628         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
20629         and TRUTH_XOR_EXPR.
20630
20631 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
20632
20633         PR target/34794
20634         * config.gcc: Separate AIX 5.3 from AIX 6.1.
20635         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20636         __LONGDOUBLE128 too.
20637         * config/rs6000/aix61.h: New file.
20638
20639 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
20640
20641         PR rtl-optimization/34959
20642         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
20643         popcount and parity rtxes the same mode as their operand.
20644         Truncate or extend the result to the return value's mode
20645         if necessary.
20646
20647 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
20648
20649         PR target/34981
20650         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
20651         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
20652         to GOT_VERSION_REGNUM.
20653         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
20654         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
20655         * config/mips/mips.c (mips_emit_call_insn): New function.
20656         (mips_call_tls_get_addr): Call mips_expand_call directly.
20657         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
20658         emit_call_insn.
20659         (mips16_build_call_stub): Likewise.  Return the call insn or null.
20660         (mips_expand_call): Update the call to mips16_build_call_stub
20661         accordingly and a remove redundant condition.  Assert that MIPS16
20662         stubs do not use lazy binding.  Use mips_emit_call_insn and return
20663         the call insn.
20664         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
20665         TARGET_USE_GOT.
20666         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
20667         (mips_avoid_hazard): Remove hazard_set handling.
20668         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
20669         (UNSPEC_RESTORE_GP): ...this.
20670         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
20671         (FAKE_CALL_REGNO): Rename to...
20672         (GOT_VERSION_REGNUM): ...this.
20673         (type): Add "ghost" value.  Add an associated insn reservation.
20674         (hazard_set): Remove.
20675         (exception_receiver): Rename to...
20676         (restore_gp): ...this and update the unspec identifier accordingly.
20677         (exception_receiver, nonlocal_got_receiver): New expanders.
20678         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
20679         FAKE_CALL_REGNO.  Remove hazard_set attribute.
20680         (set_got_version, update_got_version): New patterns.
20681
20682 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
20683
20684         PR target/34970
20685         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
20686
20687 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
20688
20689         PR other/31955
20690         * doc/install.texi2html: Generate gcc-vers.texi.
20691
20692 2008-01-25  DJ Delorie  <dj@redhat.com>
20693
20694         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
20695
20696 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
20697
20698         * config/c4x: Remove directory.
20699         * config.gcc (crx-*, mt-*): Mark obsolete.
20700         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
20701         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
20702         sh-*-rtemscoff*): Remove cases.
20703         * defaults.h (C4X_FLOAT_FORMAT): Remove.
20704         * real.c (encode_c4x_single, decode_c4x_single,
20705         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
20706         c4x_extended_format): Remove.
20707         * real.h (c4x_single_format, c4x_extended_format): Remove.
20708         * doc/extend.texi (interrupt, naked): Remove mention of attributes
20709         on C4x.
20710         (Pragmas): Remove comment about c4x pragmas.
20711         * doc/install.texi (c4x): Remove target-specific instructions.
20712         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
20713         * doc/md.texi (Machine Constraints): Remove C4x documentation.
20714         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
20715         refer to C4x source files as examples.
20716         (C4X_FLOAT_FORMAT): Remove documentation.
20717
20718 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
20719
20720         * config/bfin/bfin.c (override_options): Reorder tests so that
20721         flag_pic gets enabled for -msep-data.
20722
20723 2008-01-25  Richard Guenther  <rguenther@suse.de>
20724
20725         PR middle-end/32244
20726         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
20727         to its bitfield precision if required.
20728
20729 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
20730
20731         PR middle-end/33880
20732         * tree-nested.c (walk_omp_for): New function.
20733         (convert_nonlocal_reference, convert_local_reference): Call
20734         walk_omp_for on OMP_FOR.
20735         (convert_call_expr): Call walk_body on OMP_FOR's
20736         OMP_FOR_PRE_INIT_BODY.
20737
20738 2008-01-25  Richard Guenther  <rguenther@suse.de>
20739
20740         PR tree-optimization/34966
20741         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
20742         default defs and PHI_NODEs we have to insert after the
20743         defining statement.
20744
20745 2008-01-24  Nick Clifton  <nickc@redhat.com>
20746
20747         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
20748         Provide a default definition.
20749         (LIBGCC2_UNITS_PER_WORD): Likewise.
20750
20751         * config/stormy16/stormy16.c: Include df.h for the prototype
20752         for df_regs_ever_live_p.
20753         (xstormy16_expand_builtin_va_start): Convert the stack offset
20754         into a component_ref and then use POINTER_PLUS_EXPR to add it
20755         to the incoming_virtual_args_rtx.
20756         (xstormy16_gimplify_va_arg_expr): Rename to
20757         xstormy16_gimplify_va_arg_expr.
20758         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
20759         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
20760         xstormy16_gimplify_va_arg_expr.
20761         Fix up some formatting issues.
20762
20763         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
20764         Move to predicates.md.
20765         (xs_hi_general_operand): Likewise.
20766         (xs_hi_nonmemory_operand): Likewise.
20767         * config/stormy16/predicates.md:
20768         (xstormy16_carry_plus_operand): New predicate.
20769         (xs_hi_general_operand): New predicate.
20770         (xs_hi_nonmemory_operand): New predicate.
20771         * config/stormy16/stormy16-protos.h:
20772         (xstormy16_carry_plus_operand): Delete prototype.
20773         (xs_hi_general_operand): Likewise.
20774         (xs_hi_nonmemory_operand): Likewise.
20775
20776         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
20777         modifiers as they are no longer needed and they can trigger
20778         reload spill failures.
20779
20780         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
20781         with a match_operand in order to help reload.
20782
20783         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
20784         constraint with 'e' for the 8th alternative as this version of
20785         the mov.w instruction only accepts the lower 8 registers.
20786
20787 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
20788
20789         PR target/34856
20790         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
20791         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
20792         vector elements.
20793
20794 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
20795
20796         PR middle-end/33333
20797         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
20798
20799 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
20800
20801         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
20802         New functions.
20803         (remove_structure): Update allocations list before removing structure.
20804
20805 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
20806
20807         * ipa-struct-reorg.c (is_safe_cond_expr,
20808         create_new_stmts_for_cond_expr): Use integer_zerop function,
20809         that recognize not only zero-pointer, but zero-integer too.
20810
20811 2008-01-25  Ben Elliston  <bje@au.ibm.com>
20812
20813         PR other/22232
20814         * fixproto: Escape "." in sed expression that strips leading "./".
20815
20816 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
20817
20818         PR driver/34904
20819         * gcc.c (SWITCH_OK): Removed.
20820         (SWITCH_LIVE): Changed to bit.
20821         (SWITCH_FALSE): Likewise.
20822         (SWITCH_IGNORE): Likewise.
20823         (switchstr): Change live_cond to unsigned int.
20824         (process_command): Replace SWITCH_OK with 0.
20825         (do_self_spec): Likewise.
20826         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
20827         (give_switch): Likewise.
20828         (used_arg): Likewise.
20829         (do_spec_1): Set the SWITCH_IGNORE bit.
20830         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
20831         bits.  Set the SWITCH_LIVE bit.
20832
20833 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
20834
20835         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
20836
20837 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
20838
20839         PR tree-optimization/34472
20840         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
20841         parameter to a "bool *" and set *DATA to false if there is
20842         an unsafe access.  Do not delete the structure here.
20843         (check_cond_exprs): Delete it here instead.
20844         (check_cond_exprs, exclude_cold_structs): Do not increase
20845         I when removing a structure.
20846
20847 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
20848
20849         PR target/34856
20850         * config/i386/i386.c (ix86_expand_vector_init): Consider only
20851         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
20852
20853 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
20854
20855         PR middle-end/34934
20856         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
20857         a fixed vector for stack.
20858
20859 2008-01-24  Ben Elliston  <bje@au.ibm.com>
20860
20861         PR c++/25701
20862         * doc/gcc.texi (Software development): Add a direntry for g++.
20863
20864 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
20865
20866         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
20867         stale and straggling -fforce-addr comments above.
20868
20869         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
20870         define.
20871         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
20872         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
20873
20874 2008-01-23  Michael Matz  <matz@suse.de>
20875
20876         PR debug/34895
20877         * dwarf2out.c (force_type_die): Use modified_type_die instead of
20878         gen_type_die.
20879
20880 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
20881
20882         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
20883         malloc result type.
20884
20885 2008-01-23 Anatoly Sokolov <aesok@post.ru>
20886
20887         * config/avr/avr.c (avr_current_arch): New variable.
20888         (avr_arch_types): Add 'avr31' and 'avr51' entries.
20889         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
20890         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
20891         (avr_override_options): Init 'avr_current_arch'.
20892         (base_arch_s): Move from here...
20893         * config/avr/avr.h (base_arch_s): ... here. Add new members
20894         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
20895         'mega' to 'have_jmp_call'.
20896         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
20897         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
20898         macros.
20899         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
20900         architectures.
20901         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
20902         MULTILIB_MATCHES): Ditto.
20903
20904 2008-01-23  Richard Guenther  <rguenther@suse.de>
20905
20906         PR middle-end/31529
20907         * cgraphunit.c (cgraph_reset_node): Always mark the node
20908         not reachable if it is not queued already.
20909
20910 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
20911
20912         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
20913         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
20914         (cputype_selected): New static variable.
20915         (bfin_handle_option): Set it if -mcpu is used.
20916         (override_option): Select default set of workarounds if no cpu type
20917         selected on the command line.
20918         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
20919
20920         From  Michael Frysinger  <michael.frysinger@analog.com>
20921         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
20922         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
20923
20924         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
20925         for bf547, bf523, bf524, and bf526.
20926         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
20927         bf526.
20928         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20929         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
20930         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
20931         __ADSPBF547__ and __ADSPBF54x__ for bf547.
20932         * doc/invoke.texi (Blackfin Options): Document that
20933         -mcpu now accept bf547, bf523, bf524, and bf526.
20934
20935 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
20936
20937         PR rtl-optimization/34628
20938         * combine.c (try_combine): Stop and undo after the first combination
20939         if an autoincrement side-effect on the first insn has effectively
20940         been lost.
20941
20942 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
20943
20944         PR target/34529
20945         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
20946         Offset addresses are not valid for Altivec or paired float modes.
20947
20948 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
20949
20950         PR c++/34607
20951         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
20952         if DECL_INITIAL (decl) is error_mark_node.
20953
20954         PR c++/34914
20955         * c-common.c (handle_vector_size_attribute): Only allow
20956         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
20957         the same way as pointer, array etc. types.
20958         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
20959
20960         PR c++/34917
20961         * tree.c (build_type_attribute_qual_variant): Call
20962         build_qualified_type if attributes are equal, but quals are not.
20963
20964 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20965
20966         PR 32102
20967         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
20968         * flags.h (warn_strict_aliasing): Remove.
20969         (warn_strict_overflow): Remove.
20970         * opts.c (warn_strict_aliasing): Remove.
20971         (warn_strict_overflow): Remove.
20972         * c-opts.c (c_common_handle_option): -Wall only sets
20973         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
20974         (c_common_post_options): Give default values to -Wstrict-aliasing
20975         and -Wstrict-overflow if they are uninitialized.
20976         * common.opt (Wstrict-aliasing): Specify Var and Init.
20977         (Wstrict-overflow): Likewise.
20978
20979 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
20980
20981         PR rtl-optimization/26854
20982         PR rtl-optimization/34400
20983         PR rtl-optimization/34884
20984         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
20985         DF_RD->gen.
20986         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
20987         (df_rd_bb_info.expanded_lr_out): Deleted
20988         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
20989         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
20990         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
20991         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
20992         Removed code to allocate, initialize or free expanded_lr_out.
20993         (df_rd_bb_local_compute_process_def): Restructured to make more
20994         understandable.
20995         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
20996         sets if the sets are being trimmed.
20997
20998 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
20999
21000         PR bootstrap/32287
21001         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21002         (as_vers): Likewise.
21003         * configure: Regenerated.
21004
21005 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21006
21007         PR middle-end/33092
21008         * tree-pass.h (pass_build_alias): New pass.
21009         * tree-ssa-alias.c (gate_build_alias): New.
21010         (pass_build_alias): New.
21011         * passes.c (init_optimization_passes): Add pass_build_alias after
21012         pass_create_structure_vars.
21013
21014 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
21015
21016         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21017         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21018         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21019         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21020         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21021         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21022         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21023         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21024         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21025         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21026         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21027         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21028         * config/s390/s390.md (FP_ALL): New mode iterator.
21029         (_d): New mode attribute.
21030         ("*signbit<mode>2>"): Changed mode of first operand.
21031         ("isinf<mode>2"): Changed mode of first operand.
21032         ("*TDC_insn"): Adaptation for DFP modes.
21033
21034 2008-01-22  Ben Elliston  <bje@au.ibm.com>
21035
21036         * tree.c (check_qualified_type): Improve function description.
21037
21038 2008-01-21  Jason Merrill  <jason@redhat.com>
21039
21040         PR c++/34196
21041         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21042         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21043         if it is set.
21044
21045 2008-01-21  DJ Delorie  <dj@redhat.com>
21046
21047         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21048         return zero.
21049
21050 2008-01-21  Richard Guenther  <rguenther@suse.de>
21051
21052         PR middle-end/34856
21053         * tree-cfg.c (verify_expr): Allow all invariant expressions
21054         instead of just constant class ones as reference argument.
21055         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21056         like any other constant.
21057         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21058
21059 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
21060
21061         * regmove.c (fixup_match_1): Update call crossed frequencies.
21062
21063 2008-01-21  Richard Guenther  <rguenther@suse.de>
21064
21065         PR c/34885
21066         * tree-inline.c (setup_one_parameter): Deal with mismatched
21067         types using a VIEW_CONVERT_EXPR.
21068
21069 2008-01-21  Alon Dayan  <alond@il.ibm.com>
21070             Olga Golovanevsky  <olga@il.ibm.com>
21071
21072         PR tree-optimization/34701
21073         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
21074         when the structure size is not a power of 2.
21075
21076 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21077
21078         * doc/install.texi: Add doc for --enable-checking=df.
21079
21080 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21081
21082         PR rtl-optimization/34808
21083         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
21084
21085 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21086
21087         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
21088         input.
21089
21090 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
21091
21092         PR rtl-optimization/26854
21093         PR rtl-optimization/34400
21094         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
21095         DF_RD->gen.
21096         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
21097         (df_rd_bb_info.expanded_lr_out): New.
21098         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
21099         * loop_iv.c (iv_analysis_loop_init): Ditto.
21100         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21101         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21102         Added code to allocate, initialize or free expanded_lr_out.
21103         (df_rd_bb_local_compute_process_def): Restructured to make
21104         more understandable.
21105         (df_rd_confluence_n): Add code to do nothing with fake edges and
21106         code to no apply invalidate_by_call sets if the sets are being trimmed.
21107         (df_lr_local_finalize): Renamed to df_lr_finalize.
21108         (df_live_local_finalize): Renamed to df_live_finalize.
21109
21110 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21111
21112         PR target/34831
21113         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
21114         deciding whether to use reciprocal instructions.
21115
21116 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
21117
21118         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
21119         dwarf2out_note_section_used if cold_text_section is NULL.
21120
21121 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
21122
21123         PR gcov-profile/34610
21124         * tree-cfg.c (make_edges): Mark both outgoing edges from
21125         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
21126         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
21127         from OMP_FOR and OMP_CONTINUE outgoing edges.
21128
21129         * tree-profile.c (tree_profiling): Return early if
21130         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
21131         at the end.
21132         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
21133         from cfun to child_cfun.
21134         * function.h (struct function): Add after_tree_profile bit.
21135
21136 2008-01-19 Anatoly Sokolov <aesok@post.ru>
21137
21138         * config/avr/avr.S (_exit): Disable interrupt.
21139
21140 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
21141             Steven Bosscher  <stevenb.gcc@gmail.com>
21142
21143         PR rtl-optimization/26854
21144         PR rtl-optimization/34400
21145         * df-problems.c (df_live_scratch): New scratch bitmap.
21146         (df_live_alloc): Allocate df_live_scratch when doing df_live.
21147         (df_live_reset): Clear the proper bitmaps.
21148         (df_live_bb_local_compute): Only process the artificial defs once
21149         since the order is not important.
21150         (df_live_init): Init the df_live sets only with the variables
21151         found live by df_lr.
21152         (df_live_transfer_function): Use the df_lr sets to prune the
21153         df_live sets as they are being computed.
21154         (df_live_free): Free df_live_scratch.
21155
21156 2008-01-18  Ian Lance Taylor  <iant@google.com>
21157
21158         * common.opt: Add fmerge-debug-strings.
21159         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
21160         flag_merge_debug_strings rather than flag_merge_constants.
21161         * doc/invoke.texi (Option Summary): Mention
21162         -fmerge-debug-strings.
21163         (Debugging Options): Document -fmerge-debug-strings.
21164
21165 2008-01-18  Ian Lance Taylor  <iant@google.com>
21166
21167         PR c++/33407
21168         * tree.h (DECL_IS_OPERATOR_NEW): Define.
21169         (struct tree_function_decl): Add new field operator_new_flag.
21170         * tree-inline.c (expand_call_inline): When inlining a call to
21171         operator new, force the return value to go into a variable, and
21172         set DECL_NO_TBAA_P on that variable.
21173         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21174
21175 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
21176
21177         PR debug/34484
21178         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21179         DWARF2_DEBUGGING_INFO.
21180         (dwarf2out_note_section_used): Ditto.  Add prototype.
21181         (have_multiple_function_sections, text_section_used,
21182         cold_text_section_used, *cold_text_sections): Move declarations
21183         before their uses.
21184
21185 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
21186
21187         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
21188         field and add signal_ra.
21189         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
21190         assignments to frame state pc.  Move end of stack check after
21191         MD_FALLBACK_FRAME_STATE_FOR.
21192         (uw_update_context_1): Use frame state signal_regs if set, instead
21193         of checking signal_frame flag.
21194         (uw_update_context): Use frame state signal_ra if set.
21195         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
21196         * config/xtensa/linux-unwind.h: New file.
21197
21198 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
21199
21200         * modulo-sched.c (get_sched_window): Fix comment typo.
21201
21202 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
21203
21204         PR tree-optimization/34648
21205         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
21206
21207 2008-01-17  Anatoly Sokolov <aesok@post.ru>
21208
21209         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
21210         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
21211
21212 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
21213
21214         PR rtl-optimization/34400
21215         * df-core.c (df_worklist_dataflow_overeager,
21216         df_worklist_dataflow_doublequeue): New functions.
21217         (df_worklist_dataflow): Two different worklist solvers.
21218         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
21219         New param.
21220
21221 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21222
21223         PR testsuite/34821
21224         * doc/invoke.texi: Document the dependence on pthread for fopenmp
21225         and ftree-parallelize-loops.
21226
21227 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
21228
21229         PR rtl-optimization/34826
21230         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
21231
21232 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
21233
21234         * global.c (find_reg): Mark the eh regs as used if necessary.
21235         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
21236         * ra.h (struct allocno): no_eh_reg field added.  Changed
21237         no_stack_reg type to bitfield.
21238
21239 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21240
21241         * tree.c (substitute_in_expr): Add missing 'break'.
21242
21243 2008-01-17  Richard Guenther  <rguenther@suse.de>
21244
21245         PR tree-optimization/34825
21246         * tree-ssa-math-opts.c (is_division_by): Do not recognize
21247         x / x as division to handle.
21248
21249 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21250
21251         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
21252         "-pthread" is specified.
21253         * pa-hpux11.h (LIB_SPEC): Likewise.
21254
21255 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
21256             Peter Bergner  <bergner@vnet.ibm.com>
21257
21258         PR rtl-optimization/33796
21259         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
21260
21261 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21262
21263         PR libgfortran/34699
21264         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
21265         static links.
21266         * pa-hpux10.h (LINK_SPEC): Likewise.
21267         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
21268
21269 2008-01-16  Richard Guenther  <rguenther@suse.de>
21270
21271         PR middle-end/32628
21272         * fold-const.c (fold_convert_const_int_from_int): Do not
21273         set overflow if that occured only because of a sign extension
21274         change when converting from/to a sizetype with the same
21275         precision and signedness.
21276
21277 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
21278
21279         PR debug/34249
21280         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
21281         location address to the correct place.  Update copyright year.
21282
21283 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21284
21285         * lambda-code.c (lambda_transform_legal_p): Handle the case of
21286         no dependences in the dependence_relations vector.
21287
21288 2008-01-16  Jan Hubicka  <jh@suse.cz>
21289
21290         PR rtl-optimization/31396
21291         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
21292         * cfg.c (dump_reg_info): Print it.
21293         * regs.h (struct reg_info_t): add freq_calls_crossed.
21294         (REG_FREQ_CALLS_CROSSED): New macro.
21295         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
21296         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
21297         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
21298         regmove_optimize): Update call crossed frequencies.
21299         * local-alloc.c (struct qty): Add freq_calls_crossed.
21300         (alloc_qty): Copute freq_calls_crossed.
21301         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
21302         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
21303         * ra.h (struct allocno): Add freq_calls_crossed.
21304
21305 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21306
21307         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
21308         libgomp when compiling with ftree-parallelize-loops.
21309         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
21310
21311 2008-01-16  Richard Guenther  <rguenther@suse.de>
21312
21313         PR tree-optimization/34769
21314         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
21315         * tree.c (int_cst_value): Instead make this function more
21316         permissive in what it accepts as valid input.  Document this
21317         function always sign-extends the value.
21318
21319 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
21320             Richard Guenther  <rguenther@suse.de>
21321
21322         PR c/34668
21323         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
21324         (gimple_fold_indirect_ref_rhs): ... this.
21325         (gimple_fold_indirect_ref): New function with foldings
21326         that preserve lvalueness.
21327         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
21328         * tree-flow.h (gimple_fold_indirect_ref): Declare.
21329         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
21330         to fold an INDIRECT_REF, fall back to the old use of
21331         fold_indirect_ref_1.
21332
21333 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
21334
21335         * tree-data-ref.c (subscript_dependence_tester_1): Call
21336         free_conflict_function.
21337         (compute_self_dependence): Same.
21338
21339 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
21340
21341         PR debug/34249
21342         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
21343         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
21344         function global.
21345         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
21346         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
21347         for DWARF2_UNWIND_INFO targets.
21348
21349 2008-01-16  Richard Guenther  <rguenther@suse.de>
21350
21351         PR c/34768
21352         * c-typeck.c (common_pointer_type): Do not merge inconsistent
21353         type qualifiers for function types.
21354
21355 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
21356
21357         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
21358         loop_iterator li from previous commit.
21359
21360 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
21361
21362         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
21363
21364 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
21365
21366         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
21367         (parallelize_loops): Don't parallelize irreducible components.
21368
21369 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21370
21371         PR c++/24924
21372         * c-opts (c_common_post_options): Do not enable CPP
21373         flag_pedantic_errors by default.
21374
21375 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
21376
21377         PR rtl-optimization/31944
21378         * cse.c (remove_pseudo_from_table): New function.
21379         (merge_equiv_classes): Use above function to remove pseudo-registers.
21380         (invalidate): Likewise.
21381
21382 2008-01-13  Richard Guenther  <rguenther@suse.de>
21383
21384         PR middle-end/34601
21385         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
21386         instead of TYPE_MODE to deal with calls from expand_one_error_var.
21387
21388 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
21389
21390         * gcse.c (cprop_jump): Call validate_unshare_change instead of
21391         validate_change to unshare the source of the PC set.
21392
21393 2008-01-12  Jan Hubicka  <jh@suse.cz>
21394
21395         PR middle-end/32135
21396         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
21397         references above array bounds.  This might trigger bounds checks for
21398         pointers to arrays.
21399
21400 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
21401
21402         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
21403         new_replaceable_dependencies.
21404
21405 2008-01-12  Doug Kwan  <dougkwan@google.com>
21406
21407         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
21408         instead of OPT_Wreturn_type in warning due to ignored return type
21409         qualifiers.
21410         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
21411         options included in -Wextra.
21412         * c.opt: New option -Wignored_qualifiers.
21413         * doc/invoke.texi (Warning Options, -Wextra): Add new option
21414         -Wignore_qualifiers.
21415         (-Wignored-qualifiers): Document.
21416         (-Wreturn-type): Remove description of functionality now handled
21417         by -Wignored-qualifiers.
21418
21419 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
21420
21421         PR ada/33788
21422         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
21423         NOP_EXPR if it is between integral types with the same precision.
21424
21425 2008-01-12  Jan Hubicka  <jh@suse.cz>
21426
21427         PR other/28023
21428         * invoke.texi (max-inline-recursive-depth): Fix default value.
21429
21430 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
21431
21432         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
21433         correct type.
21434
21435 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
21436
21437         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
21438
21439 2008-01-11  James E. Wilson  <wilson@specifix.com>
21440
21441         PR target/26015
21442         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
21443
21444 2008-01-11  Anatoly Sokolov <aesok@post.ru>
21445
21446         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
21447         save/restore frame pointer register and don't use 'call-prologues'
21448         optimization in function with "OS_task" attribute.
21449
21450 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
21451
21452         PR middle-end/31309
21453         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
21454         when copying to memory.
21455
21456 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
21457
21458         PR rtl-optimization/30905
21459         * cfgcleanup.c: Include dce.h
21460         (crossjumps_occured): New global variable.
21461         (try_crossjump_bb): Exit loop after finding a fallthru edge.
21462         If something changed, set crossjumps_occured to true.
21463         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
21464         Don't add/remove fake edges to exit here...
21465         (cleanup_cfg): ...but do it here, when crossjumping.
21466         Run a fast DCE when successful crossjumps occured in the latest
21467         iteration of try_optimize_cfg.
21468
21469 2008-01-11  Richard Guenther  <rguenther@suse.de>
21470
21471         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
21472         (struct vn_unary_op_s): Likewise.
21473         (vn_reference_insert): Free old reference on hash collision.
21474
21475 2008-01-10  Raksit Ashok  <raksit@google.com>
21476
21477         PR rtl-optimization/27971
21478         * combine.c (find_split_point): Split PLUS expressions which are
21479         inside a MEM rtx, and whose first operand is complex.
21480
21481 2008-01-10  DJ Delorie  <dj@redhat.com>
21482
21483         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
21484         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
21485         (m32c_hard_regno_ok): Call the underlying function.
21486
21487 2008-01-10  Richard Guenther  <rguenther@suse.de>
21488
21489         PR middle-end/34683
21490         * tree-cfg.c (tree_merge_blocks): Do not go through the
21491         full-blown folding and stmt updating path if we just deal
21492         with virtual operands.
21493         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
21494         test for abnormal SSA_NAMEs.
21495
21496 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
21497
21498         PR middle-end/34641
21499         * reload.c (push_reload): Add assertions.  All constants from
21500         reg_equiv_constant should have been used for replacing the respective
21501         pseudo earlier.
21502         (find_reloads_address): Invoke find_reloads_address_part for
21503         constant taken from the reg_equiv_constant array.
21504
21505 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
21506
21507         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
21508         field (valnum) the first in the struct.  Replace bools with
21509         unit bit fields.
21510
21511 2008-01-10  Richard Guenther  <rguenther@suse.de>
21512
21513         PR tree-optimization/34651
21514         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
21515         types and ordering for masking and converting.
21516
21517 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
21518
21519         PR tree-optimization/34017
21520         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
21521         also for PHI_NODE expressions.
21522
21523 2008-01-09  Jan Hubicka  <jh@suse.cz>
21524
21525         PR tree-optimization/34708
21526         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
21527         based on number of case labels.
21528         (init_inline_once): Remove switch_cost.
21529         * tree-inline.h (eni_weights_d): Remove switch_cost.
21530
21531 2008-01-09  Richard Guenther  <rguenther@suse.de>
21532         Andrew Pinski  <andrew_pinski@playstation.sony.com>
21533
21534         PR middle-end/30132
21535         * gimplify.c (gimplify_cond_expr): Do not create an addressable
21536         temporary if an rvalue is ok or an lvalue is not required.
21537
21538 2008-01-09  Richard Guenther  <rguenther@suse.de>
21539
21540         PR middle-end/34458
21541         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
21542         adjust return type.
21543
21544 2008-01-09  Richard Guenther  <rguenther@suse.de>
21545
21546         PR middle-end/34679
21547         * tree.c (host_integerp): Check for sizetype only if the
21548         type is an integer type.
21549
21550 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
21551
21552         PR debug/26364
21553         * opts.c (decode_options): Disable inlining of functions called
21554         once if not in unit-at-a-time mode.
21555
21556 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
21557
21558         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
21559
21560 2008-01-08  Richard Guenther  <rguenther@suse.de>
21561
21562         PR middle-end/31863
21563         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
21564         out early if the result will be unused.
21565
21566 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
21567
21568         PR target/34709
21569         Revert:
21570
21571         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
21572         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21573         for TARGET_RECIP.
21574
21575 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
21576
21577         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
21578         for vectorization tuned.
21579
21580 2008-01-08  Richard Guenther  <rguenther@suse.de>
21581
21582         PR tree-optimization/34683
21583         * tree-ssa-operands.c (operand_build_cmp): Export.
21584         * tree-ssa-operands.h (operand_build_cmp): Declare.
21585         * tree-vn.c (vuses_compare): Remove.
21586         (sort_vuses): Use operand_build_cmp.
21587         (sort_vuses_heap): Likewise.
21588         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
21589         to re-use old VEC if available.  Do not sort already sorted VUSEs.
21590         (vdefs_to_vec): Do not sort already sorted VDEFs.
21591
21592 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
21593
21594         PR middle-end/34694
21595         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
21596
21597 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
21598
21599         PR target/34702
21600         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
21601         limitations of reciprocal sequences on x86 targets.
21602
21603 2008-01-08  Richard Guenther  <rguenther@suse.de>
21604
21605         PR tree-optimization/34683
21606         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
21607
21608 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
21609
21610         PR target/34622
21611         * config/darwin.c (darwin_mergeable_string_section): Don't use
21612         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
21613
21614 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
21615
21616         PR target/34682
21617         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
21618         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
21619         predicates of op0 and op1 to register_operand.
21620         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
21621         expander using X87MODEF mode iterator.  Change predicates of
21622         op0 and op1 to register_operand.
21623         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
21624         corresponding patterns and macroize using MODEF macro.  Change
21625         predicates of op0 and op1 to register_operand and remove
21626         "m" constraint. Disparage "r" alternative with "!".
21627         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
21628         macroize using X87MODEF macro.  Change predicates of op0 and op1
21629         to register_operand and remove "m" constraint.  Disparage "r"
21630         alternative with "!".
21631         (absneg splitter with memory operands): Remove.
21632         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
21633         patterns and macroize using X87MODEF mode iterator.
21634         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
21635         Change predicate of op1 to register_operand.
21636         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
21637         for memory operands.
21638
21639 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
21640
21641         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
21642
21643 2008-01-07  Richard Guenther  <rguenther@suse.de>
21644
21645         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
21646         fields.
21647
21648 2008-01-07  Richard Guenther  <rguenther@suse.de>
21649
21650         PR tree-optimization/34683
21651         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
21652         VOPs of the needed size to save memory.  Use VEC_quick_push
21653         to save compile-time.
21654         (vdefs_to_vec): Likewise.
21655
21656 2008-01-07  Sa Liu  <saliu@de.ibm.com>
21657
21658         * config/spu/spu.md (divdf3): Genetate inline code for double
21659         division.  The implementation doesn't handle INF or NAN, therefore it
21660         only applies when -ffinite-math-only is given.
21661
21662 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
21663
21664         PR libstdc++/34680
21665         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
21666         * doc/cpp.texi ([Common Predefined Macros]): Document.
21667
21668 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
21669
21670         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
21671         order to use commutative addition instead of subtraction.
21672
21673 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21674             Mircea Namolaru  <namolaru@il.ibm.com>
21675             Vladimir Yanovsky  <yanov@il.ibm.com>
21676             Revital Eres  <eres@il.ibm.com>
21677
21678         PR tree-optimization/34263
21679         * tree-outof-ssa.c (process_single_block_loop_latch,
21680         contains_tree_r): New functions.
21681         (analyze_edges_for_bb): Call process_single_block_loop_latch
21682         function to empty single-basic-block latch block if possible.
21683
21684 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
21685
21686         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21687         for TARGET_RECIP.
21688         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
21689
21690 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
21691
21692         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
21693
21694 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
21695
21696         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
21697
21698 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
21699
21700         PR tree-optimization/34618
21701         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
21702         flag from T.
21703
21704 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
21705
21706         PR target/34673
21707         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
21708         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
21709         Update copyright year.
21710
21711         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
21712         Update copyright year.
21713         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
21714         using NR fixup.
21715
21716 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
21717
21718         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
21719         edge does not point to current bb before changing need_assert.
21720
21721 2008-01-04  Richard Guenther  <rguenther@suse.de>
21722
21723         PR middle-end/34029
21724         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
21725         for verifying purposes if they are is_gimple_min_invariant.
21726
21727 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
21728
21729         PR tree-optimization/34448
21730         PR tree-optimization/34465
21731         * gimplify.c (gimplify_init_constructor): Add new parameter
21732         notify_temp_creation.  Use it.
21733         (gimplify_modify_expr_rhs): Take volatiles into account when
21734         optimizing constructors.
21735         Do not optimize constructors if gimplify_init_constructor will dump to
21736         memory.
21737         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
21738         * gcc.c-torture/compile/pr34448.c: New.
21739
21740 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
21741
21742         PR gcov-profile/34609
21743         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
21744         return_slot if result is TREE_ADDRESSABLE.
21745
21746 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
21747
21748         * config/mips/mips.md (sqrt_condition): Tweak comment.
21749         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
21750
21751 2008-01-03  Tom Tromey  <tromey@redhat.com>
21752
21753         PR c/34457
21754         * c-common.c (c_type_hash): Handle VLAs.
21755
21756 2008-01-03  Jan Hubicka  <jh@suse.cz>
21757
21758         PR tree-optimization/31081
21759         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
21760         0 when inlining and not inlining to first basic block.
21761         (remap_decl): When var is initialized to 0, don't set default_def.
21762         (expand_call_inline): Set entry_bb.
21763         * tree-inline.h (copy_body_data): Add entry_bb.
21764
21765 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
21766
21767         PR c++/34619
21768         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
21769         before returning.
21770
21771         PR tree-optimization/29484
21772         * tree-inline.c (inline_forbidden_p_2): New function.
21773         (inline_forbidden_p): Disallow inlining if some static var
21774         has an address of a local LABEL_DECL in its initializer.
21775         * doc/extend.texi (Labels as Values): Document &&foo behaviour
21776         vs. inlining.
21777
21778 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
21779
21780         PR tree-optimization/34635
21781         * tree-data-ref.c (add_other_self_distances): Make sure that the
21782         evolution step is constant.
21783
21784 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
21785
21786         PR middle-end/34608
21787         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
21788
21789 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
21790
21791         * tree-sra.c (scalarize_init): Insert the generate_element_init
21792         statements after the generate_element_zero statements.
21793
21794 2008-01-02  Richard Guenther  <rguenther@suse.de>
21795
21796         PR middle-end/34093
21797         PR middle-end/31976
21798         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
21799         for very large number of operands instead of ICEing.
21800
21801 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
21802
21803         PR target/34013
21804         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
21805         while stack probing.
21806
21807 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
21808
21809         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
21810         in C++0x mode.
21811
21812 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
21813
21814         PR libmudflap/26442
21815         * tree-mudflap.c (mx_register_decls): Guard warning by
21816         !DECL_ARTIFICIAL check.
21817
21818 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
21819
21820         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
21821         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
21822         sse5_perm<mode>): Fix constraints.