1 2008-09-01 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/37305
4 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
5 the result of constant conversions.
6 (fold_gimple_assign): Likewise.
8 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
10 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
11 #ifdef ENABLE_CHECKING.
13 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
15 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
16 * sched-int.h (print_insn, print_pattern, print_value): Declare also
17 when !INSN_SCHEDULING.
19 2008-09-01 Andreas Schwab <schwab@suse.de>
21 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
23 2008-09-01 Paul Brook <paul@codesourcery.com>
25 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
27 2008-00-01 Jan Hubicka <jh@suse.cz>
29 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
31 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
32 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
33 * gimplify.c (gimplify_init_constructor): Add speed operand.
34 * tree-sra.c (decide_block_copy): Likewise.
35 * tree-inline.c (estimate_move_cost): Likewise.
36 * config/alpha/alpha.h (MOVE_RATIO): Update.
37 * config/frv/frv.c (MOVE_RATIO): Update.
38 * config/spu/spu.h (MOVE_RATIO): Update.
39 * config/sparc/sparc.h (MOVE_RATIO): Update.
40 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
41 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
42 * config/cris/cris.h (MOVE_RATIO): Update.
43 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
44 * config/arm/arm.h (MOVE_RATIO): Update.
45 * config/pa/pa.md: Update uses of MOVE_RATIO
46 * config/pa/pa.h (MOVE_RATIO): Update.
47 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
48 * config/h8300/h8300.h (MOVE_RATIO): Update.
49 * config/v850/v850.h (MOVE_RATIO): Update.
50 * config/bfin/bfin.h (MOVE_RATIO): Update.
52 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
53 Dmitry Melnik <dm@ispras.ru>
54 Dmitry Zhurikhin <zhur@ispras.ru>
55 Alexander Monakov <amonakov@ispras.ru>
56 Maxim Kuvyrkov <maxim@codesourcery.com>
58 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
59 sel-sched-dump.c, sel-sched-ir.c: New files.
60 * Makefile.in (OBJS-common): Add selective scheduling object
62 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
63 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
64 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
65 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
66 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
67 (make_forwarder_block): Update loop latch if we have redirected
69 * cfgloop.c (get_loop_body_in_custom_order): New function.
70 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
71 (CP_FALLTHRU_PREHEADERS): Likewise.
72 (get_loop_body_in_custom_order): Declare.
73 * cfgloopmanip.c (has_preds_from_loop): New.
74 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
75 Assert that the preheader edge will be fall thru when it is set.
76 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
77 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
78 fsel-sched-substitution, fselective-scheduling): New flags.
79 * cse.c (hash_rtx_cb): New.
81 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
82 sel_sched_insn_cnt): New counters.
83 * final.c (compute_alignments): Export. Free dominance info after loop_optimizer_finalize.
84 * genattr.c (main): Output maximal_insn_latency prototype.
85 * genautomata.c (output_default_latencies): New. Factor its code from ...
86 (output_internal_insn_latency_func): ... here.
87 (output_internal_maximal_insn_latency_func): New.
88 (output_maximal_insn_latency_func): New.
89 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
90 (struct hard_reg_set_iterator): New.
91 (hard_reg_set_iter_init, hard_reg_set_iter_set,
92 hard_reg_set_iter_next): New functions.
93 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
94 * lists.c (remove_free_INSN_LIST_node,
95 remove_free_EXPR_LIST_node): New functions.
96 * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
97 set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
98 (loop_optimizer_finalize): Do not verify flow info after reload.
99 * recog.c (validate_replace_rtx_1): New parameter simplify.
100 Default it to true. Update all uses. Factor out simplifying
102 (simplify_while_replacing): ... this new function.
103 (validate_replace_rtx_part,
104 validate_replace_rtx_part_nosimplify): New.
105 * recog.h (validate_replace_rtx_part,
106 validate_replace_rtx_part_nosimplify): Declare.
107 * rtl.c (rtx_equal_p_cb): New.
108 (rtx_equal_p): Use it.
109 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
110 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
111 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
112 * vecprim.h: Add a vector type for unsigned int.
113 * haifa-sched.c: Include vecprim.h and cfgloop.h.
114 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
115 ready_try, cycle_issued_insns, spec_info): Make global.
116 (readyp): Initialize.
117 (dfa_lookahead): New global variable.
118 (old_max_uid, old_last_basic_block): Remove.
119 (h_i_d): Make it a vector.
120 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
122 (after_recovery, adding_bb_to_current_region_p):
123 New variables to handle correct insertion of the recovery code.
124 (struct ready_list): Move declaration to sched-int.h.
125 (rgn_n_insns): Removed.
126 (rtx_vec_t): Move to sched-int.h.
127 (find_insn_reg_weight): Remove.
128 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
129 (haifa_init_h_i_d, haifa_finish_h_i_d):
130 New functions to initialize / finalize haifa instruction data.
131 (extend_h_i_d, init_h_i_d): Rewrite.
132 (unlink_other_notes): Move logic to add_to_note_list. Handle
134 (ready_lastpos, ready_element, ready_sort, reemit_notes,
135 find_fallthru_edge): Make global, remove static prototypes.
136 (max_issue): Make global. Add privileged_n and state parameters. Use
138 (extend_global, extend_all): Removed.
139 (init_before_recovery): Add new param. Fix the handling of the case
140 when we insert a recovery code before the EXIT which has a predecessor
141 with a fallthrough edge to it.
142 (create_recovery_block): Make global. Rename to
143 sched_create_recovery_block. Update.
144 (change_pattern): Rename to sched_change_pattern. Make global.
145 (speculate_insn): Rename to sched_speculate_insn. Make global.
146 Split haifa-specific functionality into ...
147 (haifa_change_pattern): New static function.
148 (sched_extend_bb): New static function.
149 (sched_init_bbs): New function.
150 (current_sched_info): Change type to struct haifa_sched_info.
151 (insn_cost): Adjust for selective scheduling.
152 (dep_cost_1): New function. Move logic from ...
153 (dep_cost): ... here.
154 (dep_cost): Use dep_cost_1.
155 (contributes_to_priority_p): Use sched_deps_info instead of
157 (priority): Adjust to work with selective scheduling. Process the
158 corner case when all dependencies don't contribute to priority.
159 (rank_for_schedule): Use ds_weak instead of dep_weak.
160 (advance_state): New function. Move logic from ...
161 (advance_one_cycle): ... here.
162 (add_to_note_list, concat_note_lists): New functions.
163 (rm_other_notes): Make static. Adjust for selective scheduling.
164 (remove_notes, restore_other_notes): New functions.
165 (move_insn): Add two arguments. Update assert. Don't call
167 (choose_ready): Remove lookahead variable, use dfa_lookahead.
168 Remove more_issue, max_points. Move the code to initialize
169 max_lookahead_tries to max_issue.
170 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
171 ready. Adjust use of move_insn. Call restore_other_notes.
173 (sched_init, sched_finish): Move Haifa-specific initialization/
175 (haifa_sched_init, haifa_sched_finish): ... respectively.
177 (setup_sched_dump): New function.
178 (haifa_init_only_bb): New static function.
179 (haifa_speculate_insn): New static function.
180 (try_ready): Use haifa_* instead of speculate_insn and
182 (extend_ready, extend_all): Remove.
183 (sched_extend_ready_list, sched_finish_ready_list): New functions.
184 (create_check_block_twin, add_to_speculative_block): Use
185 haifa_insns_init instead of extend_global. Update to use new
186 initialization functions. Change parameter. Factor out code from
187 create_check_block_twin to ...
188 (sched_create_recovery_edges) ... this new function.
190 (sched_scan_info): New.
191 (extend_bb): Use sched_scan_info.
192 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
193 static functions for walking through scheduling region.
194 (sched_luids): New vector variable to replace uid_to_luid.
195 (luids_extend_insn): New function.
196 (sched_max_luid): New variable.
197 (luids_init_insn): New function.
198 (sched_init_luids, sched_finish_luids): New functions.
199 (insn_luid): New debug function.
200 (sched_extend_target): New function.
201 (haifa_init_insn): New static function.
202 (sched_init_only_bb): New hook.
203 (sched_split_block): New hook.
204 (sched_split_block_1): New function.
205 (sched_create_empty_bb): New hook.
206 (sched_create_empty_bb_1): New function.
207 (common_sched_info, ready): New global variables.
208 (current_sched_info_var): Remove.
209 (move_block_after_check): Use common_sched_info.
210 (haifa_luid_for_non_insn): New static function.
211 (init_before_recovery): Use haifa_init_only_bb instead of
213 (increase_insn_priority): New.
214 * modulo-sched.c: (issue_rate): Remove static declaration.
215 (sms_sched_info): Change type to haifa_sched_info.
216 (sms_sched_deps_info, sms_common_sched_info): New variables.
217 (setup_sched_infos): New.
218 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
219 Do not call regstat_free_calls_crossed.
220 (sms_print_insn): Use const_rtx.
221 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
222 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
223 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
224 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
225 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
226 current_sched_info to use it.
227 (enum reg_pending_barrier_mode): Move to sched-int.h.
228 (h_d_i_d): New variable. Initialize to NULL.
229 ({true, output, anti, spec, forward}_dependency_cache): Initialize
231 (estimate_dep_weak): Remove static declaration.
232 (sched_has_condition_p): New function. Adjust users of
233 sched_get_condition to use it instead.
234 (conditions_mutex_p): Add arguments indicating which conditions are
236 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
237 argument to indicate whether returned condition is reversed. Do not
238 generate new rtx when condition should be reversed; indicate it by
239 setting new argument instead.
240 (add_dependence_list_and_free): Add deps parameter.
241 Update all users. Do not free dependence list when
242 deps context is readonly.
243 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
245 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
246 (remove_from_deps): New. Use the above functions.
247 (cur_insn, can_start_lhs_rhs_p): New static variables.
248 (add_or_update_back_dep_1): Initialize present_dep_type.
249 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
250 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
251 haifa_note_dep): New functions implementing dependence hooks for
253 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
254 note_dep): New functions.
255 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
257 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
258 (free_deps): Initialize deps->reg_last.
259 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
260 sched_analyze_insn): Update to use dependency hooks infrastructure
261 and readonly contexts.
262 (deps_analyze_insn): New function. Move part of logic from ...
263 (sched_analyze): ... here. Also move some logic to ...
264 (deps_start_bb): ... here. New function.
265 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
267 (sched_deps_init): New function. Move code from ...
268 (init_dependency_caches): ... here. Remove.
269 (init_deps_data_vector): New.
270 (sched_deps_finish): New function. Move code from ...
271 (free_dependency_caches): ... here. Remove.
272 (init_deps_global, finish_deps_global): Adjust for use with
273 selective scheduling.
274 (get_dep_weak): Move logic to ...
275 (get_dep_weak_1): New function.
276 (ds_merge): Move logic to ...
277 (ds_merge_1): New static function.
278 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
279 (ds_get_max_dep_weak): New function.
280 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
281 (n_insns): Rename to rgn_n_insns.
282 (debug_ebb_dependencies): New function.
283 (init_ready_list): Use it.
284 (begin_schedule_ready): Use sched_init_only_bb.
285 (ebb_print_insn): Indicate when an insn starts a new cycle.
286 (contributes_to_priority, compute_jump_reg_dependencies,
287 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
288 (add_block1): Remove to ebb_add_block.
289 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
290 (schedule_ebb): Initialize them. Use remove_notes instead of
291 rm_other_notes. Use haifa_local_init/finish.
292 (schedule_ebbs): Use haifa_sched_init/finish.
293 * sched-int.h: Include vecprim.h, remove rtl.h.
294 (struct ready_list): Delete declaration.
295 (sched_verbose_param, enum sched_pass_id_t,
296 bb_vec_t, insn_vec_t, rtx_vec_t): New.
297 (struct sched_scan_info_def): New structure.
298 (sched_scan_info, sched_scan, sched_init_bbs,
299 sched_init_luids, sched_finish_luids, sched_extend_target,
300 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
301 (struct common_sched_info_def): New.
302 (common_sched_info, haifa_common_sched_info,
303 sched_emulate_haifa_p): Declare.
305 (sched_luids): Declare.
306 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
307 (sched_max_luid, insn_luid): Declare.
308 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
309 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
310 print_insn, print_pattern, print_value, haifa_classify_insn,
311 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
312 setup_sched_dump, sched_init, sched_finish,
313 sel_insn_is_speculation_check): Export.
314 (struct ready_list): Move from haifa-sched.c.
315 (ready_try, ready, max_issue): Export.
316 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
317 sched_init_only_bb, sched_split_block, sched_split_block_1,
318 sched_create_empty_bb, sched_create_empty_bb_1,
319 sched_create_recovery_block, sched_create_recovery_edges): Export.
320 (enum reg_pending_barrier_mode): Export.
321 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
323 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
324 print_insn field. Move add_block and fix_recovery_cfg to
325 common_sched_info_def. Move compute_jump_reg_dependencies, use_cselib ...
326 (struct sched_deps_info_def): ... this new structure.
327 (sched_deps_info): Declare.
328 (struct spec_info_def): Remove weakness_cutoff, add
329 data_weakness_cutoff and control_weakness_cutoff.
330 (spec_info): Declare.
331 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
333 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
334 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
335 (current_sched_info): Change type to struct haifa_sched_info.
336 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
337 (h_d_i_d): New variable.
338 (HDID): New accessor macro.
339 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
340 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
342 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
343 (enum SCHED_FLAGS): Update for selective scheduler.
344 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
345 (init_dependency_caches, free_dependency_caches): Delete declarations.
346 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
347 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
348 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
349 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
350 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
352 (rm_other_notes): Delete declaration.
353 (schedule_block): Remove one argument.
354 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
355 ready_element, ready_lastpos, sched_extend_ready_list,
356 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
357 concat_note_lists): Export.
358 (struct region): Move from sched-rgn.h.
359 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
360 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
361 BLOCK_TO_BB, CONTAINING_RGN): Export.
362 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
363 (current_nr_blocks, current_blocks, target_bb): Likewise.
364 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
365 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
366 sched_rgn_local_init, extend_regions,
367 rgn_make_new_region_out_of_new_block, compute_priorities,
368 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
369 extend_rgns, deps_join rgn_setup_common_sched_info,
370 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
371 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
372 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
373 increase_insn_priority): Likewise.
374 * sched-rgn.c: Include sel-sched.h.
375 (ref_counts): New static variable. Use it ...
376 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
377 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
378 (sched_is_disabled_for_current_region_p): Delete static declaration.
379 (struct region): Move to sched-int.h.
380 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
381 ebb_head): Define and initialize.
382 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
383 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
384 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
386 (find_single_block_region): Add new argument to indicate that EBB
387 regions should be constructed.
388 (debug_live): Delete declaration.
389 (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
390 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
392 (init_regions): Delete declaration.
393 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
394 rgn_estimate_number_of_insns): New.
395 (too_large): Use estimate_number_of_insns.
396 (haifa_find_rgns): New. Move the code from ...
397 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
398 (free_trg_info): New.
399 (compute_trg_info): Allocate candidate tables here instead of ...
400 (init_ready_list): ... here.
401 (rgn_print_insn): Use const_rtx.
402 (contributes_to_priority, extend_regions): Delete static declaration.
403 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
404 (add_block1): Rename to rgn_add_block.
405 (debug_rgn_dependencies): Delete static qualifier.
406 (new_ready): Use sched_deps_info. Simplify.
407 (rgn_common_sched_info, rgn_const_sched_deps_info,
408 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
409 (region_sched_info): Rename to rgn_const_sched_info.
410 (deps_join): New, extracted from ...
411 (propagate_deps): ... here.
412 (compute_block_dependences, debug_dependencies): Update for selective
414 (free_rgn_deps, compute_priorities): New functions.
415 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
416 sched_rgn_compute_dependencies): New functions.
417 (schedule_region): Use them.
418 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
419 rgn_setup_common_sched_info, rgn_setup_sched_infos):
421 (schedule_insns): Call new functions that were split out.
422 (rgn_make_new_region_out_of_new_block): New.
423 (get_rgn_sched_max_insns_priority): New.
424 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
425 scheduling when appropriate.
426 * sched-vis.c: Include insn-attr.h.
427 (print_value, print_pattern): Make global.
428 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
429 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
430 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
431 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
432 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
433 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
434 hooks. Initialize them to 0.
435 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
436 * target.h (struct gcc_target): Add them. Rename gen_check field to
438 * flags.h (sel_sched_switch_set): Declare.
439 * opts.c (sel_sched_switch_set): New variable.
440 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
441 pipelining is disabled from command line.
442 (common_handle_option): Record whether selective scheduling is
443 requested from command line.
444 * doc/invoke.texi: Document new flags and parameters.
445 * doc/tm.texi: Document new target hooks.
446 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
447 (dfa_state_size): Do not declare locally.
448 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
449 * config/rs6000/rs6000.c (rs6000_init_sched_context,
450 rs6000_alloc_sched_context, rs6000_set_sched_context,
451 rs6000_free_sched_context): New functions.
452 (struct _rs6000_sched_context): New.
453 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
455 (rs6000_sched_finish): Do not run for selective scheduling.
457 2008-08-31 Jan Hubicka <jh@suse.cz>
459 * frv.c (frv_rtx_costs): Update forward declaration.
460 * spu.c (spu_rtx_costs): Likewise.
461 * pdp11.c: Include df.h
462 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
463 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
464 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
465 * iq2000.c (iq2000_address_cost): Add speed argument.
466 (iq2000_rtx_costs): Likewise.
467 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
468 update call of mn10300_address_cost.
469 * mcore.c: Include df.h
470 (mcore_rtx_costs): Update prototype.
471 * score3.c: Include df.h
472 (score3_rtx_costs): Remove speed argument.
473 * score7.c: Include df.h
474 (score7_address_cost): Remove speed argument.
475 * score-protos.h (score_address_cost): Update prototype.
476 * score.c: Include df.h
477 (score_rtx_costs): Update call of costs functions.
478 * v850.c (v850_rtx_costs): Add bool argument.
480 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
482 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
484 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
486 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
487 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
489 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
491 * mkmap-flat.awk: Add option pe_dll.
492 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
493 * config/i386/t-cygwin (SHLIB_LC): Add.
494 * config/i386/t-mingw32 (SHLIB_LC): Add.
495 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
496 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
497 (LINK_SPEC): Support libgcc_s.
498 (LIBGCC_SPEC): Support libgcc_s.
499 (LIBGCC_SONAME): New.
501 2008-08-31 Jan Hubicka <jh@suse.cz>
503 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
504 mistakely had old version of patch.
506 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
507 (ipcp_estimate_growth): New.
508 (ipcp_insert_stage): Use ipcp_estimate_growth.
509 * profile.c (branch_prob): When reading failed, do not consider
512 2008-08-31 Jan Hubicka <jh@suse.cz>
514 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
515 loop is optimized for speed.
517 2008-08-31 Richard Guenther <rguenther@suse.de>
520 * fold-const.c (fold_binary): Retain conversions in folding
523 2008-08-31 Jan Hubicka <jh@suse.cz>
525 * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
526 * predict.c (maybe_hot_frequency_p): Make inline.
527 (maybe_hot_count_p): Break out from ...
528 (maybe_hot_bb_p): ... this one.
529 (maybe_hot_edge_p): Simplify.
530 * basic-block.h (probably_cold_bb_p): Remove.
532 2008-08-31 Jakub Jelinek <jakub@redhat.com>
535 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
537 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
538 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
540 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
543 2008-08-31 Jan Hubicka <jh@suse.cz>
545 * predict.c (PROB_VERY_LIKELY): Make small enough so things
547 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
549 2008-08-31 Jakub Jelinek <jakub@redhat.com>
552 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
555 * dwarf2out.c (native_encode_initializer): Subtract min_index for
556 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
558 2008-08-31 Jan Hubicka <jh@suse.cz>
560 * sparc.h (BRANCH_COST): Fix macro definition.
561 * avr.c (avr_operand_rtx_cost): Add speed argument.
562 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
564 2008-08-31 Richard Guenther <rguenther@suse.de>
566 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
567 types instead of operands. Re-instantiate verifying of
568 binary expression operands.
570 2008-08-30 Jan Hubicka <jh@suse.cz>
572 * fwprop.c (should_replace_address): Add speed attribute.
573 (PR_OPTIMIZE_FOR_SPEED): New flag.
574 (propagate_rtx_1): Use it.
575 (propagate_rtx): Set it.
576 (try_fwprop_subst): Update call of rtx_costs.
577 (forward_propagate_and_simplify): LIkewise.
578 * hooks.c (hook_int_rtx_bool_0): New
579 (hook_bool_rtx_int_int_intp_false): Replace by ...
580 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
581 * hooks.h (hook_int_rtx_bool_0): New
582 (hook_bool_rtx_int_int_intp_false): Replace by ...
583 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
584 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
585 (prepare_cmp_insn): UPdate call of rtx_cost.
586 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
587 (reload_cse_simplify_operands): Update call of rtx_cost.
588 (reload_cse_move2add): call of rtx_cost.
589 * target.h (struct gcc_target): Update rtx_costs and address_costs.
590 * rtlanal.c (rtx_cost): Add speed argument.
591 (address_cost): Add speed argument
592 (default_address_cost): Likewise.
593 (insn_rtx_cost): Likewise.
594 * cfgloopanal.c (seq_cost): Add speed argument.
595 (target_reg_cost, target_spill_cost): Turn to array.
596 (init_set_costs): Update for speed.
597 (estimate_reg_pressure_cost): Add speed argument.
598 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
599 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
600 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
601 (seq_cost): Add speed argument.
602 (computation_cost): Add speed arugment.
603 (add_cost, multiply_by_const, get_address_cost): add speed argument.
604 (force_expr_to_var_cost): Update for profile info.
605 (force_var_cost): Likewise.
606 (split_address_cost): Likewise.
607 (ptr_difference_cost): Likewise.
608 (difference_cost): Likewise.
609 (get_computation_cost_at): Likewise.
610 (determine_iv_cost): Likewise.
611 (ivopts_global_cost_for_size): Likewise.
612 (rewrite_use_address): Likewise.
613 (tree_ssa_iv_optimize_loop): Initialize speed field.
614 * cse.c (optimize_this_for_speed_p): New static var.
615 (notreg_cost): Update call of rtx_cost.
616 (cse_extended_basic_block): set optimize_this_for_speed_p.
617 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
618 (noce_try_cmove_arith): Likewise.
619 (noce_try_sign_mask): LIkewise.
620 * expr.c (compress_float_constant): Update rtx_cost calls.
621 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
622 (addr_to_parts): Likewise.
623 (create_mem_ref): Likewise.
624 * dse.c (find_shift_sequence): Add speed argument.
625 (replace_read): Update call.
626 * calls.c (precompute_register_parameters): Update call of rtx_cost.
627 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
628 * neg_cost, shift_cost, shiftadd_cost,
629 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
630 mul_highpart_cost): Increase dimension.
631 (init_expmed): Initialize for both size and speed.
632 (expand_shift): Use profile.
633 (synth_mult): Use profile.
634 (choose_mult_variant): Use profile.
635 (expand_mult): Use profile.
636 (expand_mult_highpart_optab): Use profile.
637 (expand_mult_highpart): Use profile.
638 (expand_smod_pow2): Use profile.
639 (expand_divmod): Use profile.
640 * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
641 * loop-invariant.c (create_new_invariant): Use profile.
642 (gain_for_invariant): Add speed parameter.
643 (best_gain_for_invariant): Likewise.
644 (find_invariants_to_move): Likewise.
645 (move_single_loop_invariants): Set it.
646 * target-def.h (TARGET_RTX_COSTS): Use hook.
647 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
648 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
649 * output.h (default_address_cost): Update prototype.
650 * combine.c (optimize_this_for_speed_p): New static var.
651 (combine_validate_cost): Update call of rtx_cost.
652 (combine_instructions): Set optimize_this_for_speed_p.
653 (expand_compound_operation): Update call of rtx_cost.
654 (make_extraction):Update call of rtx_cost.
655 (force_to_mode):Update call of rtx_cost.
656 (distribute_and_simplify_rtx):Update call of rtx_cost.
657 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
658 (estimate_reg_pressure_cost): Update prototype.
659 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
660 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
662 * config/alpha/alpha.c (alpha_rtx_costs): Update.
663 (alpha_rtx_costs): Update.
664 * config/frv/frv.c (frv_rtx_costs): Update.
665 * config/s390/s390.c (s390_rtx_costs): Update.
666 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
667 (m32c_rtx_costs): Update.
668 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
669 (spu_rtx_costs): Update.
670 * config/sparc/sparc.c (sparc_rtx_costs): Update.
671 * config/m32r/m32r.c (m32r_rtx_costs): Update.
672 * config/i386/i386.c (:ix86_address_cost): Update.
673 (ix86_rtx_costs): Update.
674 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
675 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
676 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
677 * config/crx/crx.c (crx_address_cost): Update.
678 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
679 * config/stormy16/stormy16.c
680 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
681 * config/m68hc11/m68hc11.c
682 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
683 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
684 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
685 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
686 * config/ia64/ia64.c (ia64_rtx_costs): Update.
687 * config/m68k/m68k.c (m68k_rtx_costs): Update.
688 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
689 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
690 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
691 (mcore_rtx_costs): update.
692 * config/score/score3.c (score3_rtx_costs): Update.
693 * config/score/score7.c (score7_rtx_costs): Update.
694 * config/score/score3.h (score3_rtx_costs):Update.
695 * config/score/score7.h (score7_rtx_costs): Update.
696 * config/score/score.c (score_rtx_costs): Update.
697 * config/arm/arm.c (arm_address_cost): Update.
698 (arm_rtx_costs_1): Update.
699 (arm_rtx_costs_1): Update.
700 (arm_size_rtx_costs): Update.
701 (arm_size_rtx_costs): Update.
702 (arm_size_rtx_costs): Update.
703 (arm_xscale_rtx_costs): Update.
704 (arm_thumb_address_cost): Update.
705 * config/pa/pa.c (hppa_address_cost): Update.
706 * config/mips/mips.c (mips_rtx_costs): Update.
707 * config/vax/vax.c (vax_address_cost): Update.
708 * config/h8300/h8300.c (h8300_shift_costs): Update.
709 (h8300_rtx_costs): Update.
710 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
711 (v850_rtx_costs): Update.
712 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
714 (bfin_address_cost): Update.
715 (bfin_rtx_costs): Update.
716 * stmt.c (lshift_cheap_p): Update.
718 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
721 * expmed.c (extract_bit_field_1): Check the mode size to make
722 sure the vector modes have the same size.
724 2008-08-29 Michael Meissner <gnu@the-meissners.org>
726 * dojump.c (top level): Include basic-block.h to declare
727 optimize_insn_for_speed_p
729 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
731 * opts.h (CL_SAVE): New option class for marking options that are
732 target specific options usable in the target attribute.
733 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
735 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
736 can easily find the target specific options that are safe to use
737 in the attribute or pragma.
739 * attribs.c (decl_attributes): Change #pragma GCC option to
740 #pragma GCC target, and attribute((option(...))) to
741 attribute((target(...))).
743 * doc/extend.texi (target attribute): Change from option
744 attribute. Delete push/pop/reset.
745 (#pragma GCC target): Change from #pragma GCC option. Delete
747 (#pragma GCC push_options): Document new pragma.
748 (#pragma GCC pop_options): Document new pragma.
749 (#pragma GCC reset_options): Document new pragma.
751 * targhooks.c (default_target_option_valid_attribute_p): Add
752 warning about port not supporting target attributes.
753 (default_target_option_pragma_parse): New function, warn about
754 #pragma GCC target not being supported.
756 * targhooks.h (default_target_option_pragma_parse): Add
759 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
760 TI_CURRENT_OPTION_PRAGMA.
761 (current_target_pragma): Rename from current_option_pragma.
763 * target.h: (struct target_option): Delete booleans for changing
764 the optimization level on hot/cold functions. Change signature of
765 pragma_parse hook to take a second tree.
767 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
769 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
770 that the declaration is done at global scope.
772 * langhooks.c (add_builtin_function_common): Move most of the code
773 from add_builtin_function here, calling the hook passed in.
774 (add_builtin_function): Call add_builtin_function_common with
775 standard builtin hook.
776 (add_builtin_function_ext_scope): New function to add builtins to
779 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
781 (add_builtin_function_ext_scope): Add declaration.
783 * c-pragma.c (handle_pragma_target): Rename from
784 handle_pragma_option, #pragma GCC option is now #pragma GCC
785 target. Move warning about port not supporting target options to
786 default pragma parse hook. Remove push/pop/reset from this
788 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
789 (option_stack): Delete static variable.
790 (optimize_stack): Ditto.
791 (optons_stack): New stack of saved target and optimization
793 (handle_pragma_push_options): New function to handle pushing both
794 target and optimization options.
795 (handle_pragma_pop_options): New function to handle popping both
796 target and optimization options.
797 (handle_pragma_reset_options): New function to handle resetting
798 both target and optimization options to their initial state.
799 (init_pragma): Rename handle_pragma_option to
800 handle_pragma_target. Add support for push_options, pop_options,
801 and reset_options pragmas.
803 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
804 default_target_option_pragma_parse.
805 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
806 default_target_option_valid_attribute_p.
807 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
808 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
809 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
810 optimization level on hot/cold functions.
812 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
813 if the caller and callee have different optimization levels.
815 * c-common.c (handle_target_attribute): Rename from
816 handle_option_attribute, attribute((option(...))) is now
817 attribute((target(...))). Move warning if the port does not
818 support target attributes to the default hook.
819 (handle_hot_attribute): Delete code to change the optimization
820 level of hot functions.
821 (handle_cold_attribute): Ditto.
823 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
824 argument that is the binary tree options to use if there are no
825 arguments. Call ix86_valid_target_attribute_tree instead of
826 ix86_valid_option_attribute_tree.
827 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
828 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
829 ix86_pragma_option_parse.
831 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
832 Rename from ix86_valid_option_attribute_tree.
834 * config/i386/i386.c (ix86_add_new_builtins): New function to add
835 new builtins when the ISA changes.
836 (ix86_valid_target_attribute_tree): Rename from
837 ix86_valid_option_attribute_tree. Change callers. If the
838 function specified optimization options, use those as the starting
839 point before setting up the target attributes. If the
840 optimization options were changed in the course of setting the
841 target attributes, record the new optimization options.
842 (ix86_valid_target_attribute_tree_inner_p): Rename from
843 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
844 ix86_add_new_builtins if the ISA changed.
845 (ix86_valid_target_attribute_p): Rename from
846 ix86_valid_option_attribute_p. Change callers.
847 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
848 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
849 as delayed builtin functions.
850 (struct builtin_isa): New structure to record builtin functions
851 that should be delayed until the ISA for that function is used.
852 (ix86_builtins_isa): Change from int to struct to track builtin
853 functions we want to declare at some point.
854 (def_builtin): If the front end can delay defining the builtin
855 functions, don't create builtins for ISAs not part of the default
857 (def_builtin_const): Ditto.
858 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
859 __builtin_ia32_pcmov_v2di to be different builtin functions.
860 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
861 a structure instead of an int.
862 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
863 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
864 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
865 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
868 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
869 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
871 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
872 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
873 (LANG_HOOKS_INITIALIZER): Add
874 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
876 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
879 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
880 the reload address with the index register for SFmode
881 access with a displacement.
883 2008-08-30 Jan Hubicka <jh@suse.cz>
885 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
886 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
887 * dojump.c (do_jump): Likewise.
888 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
889 (note-if_info): Add BRANCH_COST.
890 (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
891 noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
892 noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
894 * expr.h (BRANCH_COST): Update default.
895 * predict.c (predictable_edge_p): New function.
896 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
897 Update BRANCH_COST call.
898 * basic-block.h (predictable_edge_p): Declare.
899 * config/alpha/alpha.h (BRANCH_COST): Update.
900 * config/frv/frv.h (BRANCH_COST): Update.
901 * config/s390/s390.h (BRANCH_COST): Update.
902 * config/spu/spu.h (BRANCH_COST): Update.
903 * config/sparc/sparc.h (BRANCH_COST): Update.
904 * config/m32r/m32r.h (BRANCH_COST): Update.
905 * config/i386/i386.h (BRANCH_COST): Update.
906 * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
907 * config/sh/sh.h (BRANCH_COST): Update.
908 * config/pdp11/pdp11.h (BRANCH_COST): Update.
909 * config/avr/avr.h (BRANCH_COST): Update.
910 * config/crx/crx.h (BRANCH_COST): Update.
911 * config/xtensa/xtensa.h (BRANCH_COST): Update.
912 * config/stormy16/stormy16.h (BRANCH_COST): Update.
913 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
914 * config/iq2000/iq2000.h (BRANCH_COST): Update.
915 * config/ia64/ia64.h (BRANCH_COST): Update.
916 * config/rs6000/rs6000.h (BRANCH_COST): Update.
917 * config/arc/arc.h (BRANCH_COST): Update.
918 * config/score/score.h (BRANCH_COST): Update.
919 * config/arm/arm.h (BRANCH_COST): Update.
920 * config/pa/pa.h (BRANCH_COST): Update.
921 * config/mips/mips.h (BRANCH_COST): Update.
922 * config/vax/vax.h (BRANCH_COST): Update.
923 * config/h8300/h8300.h (BRANCH_COST): Update.
924 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
925 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
926 * doc/tm.texi (BRANCH_COST): Update.
928 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
931 * config/arm/arm.c (arm_optimization_options): Set
932 flag_section_anchors to 2 instead of 1 to distinguish it from
933 -fsection-anchors given explicitely on the command line.
935 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
937 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
938 final insn of a split.
940 2008-08-30 Jan Hubicka <jh@suse.cz>
942 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
944 * final.c (compute_alignments): Use optimize_bb_for_size_p.
945 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
946 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
947 flag_gcse_after_reload_set): New static vars.
948 (common_handle_option): Enable those flags for profile-use.
949 (decode_options): Remove optimize_size flags that are handled
950 on higher granuality.
951 * tree-vectorizer.c (vectorize_loops): Use
952 optimize_loop_nest_for_speed_p.
953 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
954 * tree-predcom.c (tree_predictive_commoning): Use
955 optimize_loop_for_speed_p.
956 * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
957 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
958 * predict.c (optimize_loop_for_speed_p): Fix walk.
960 2008-08-30 Jan Hubicka <jh@suse.cz>
962 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
964 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
965 profile presence locally.
967 2008-08-29 Joseph Myers <joseph@codesourcery.com>
970 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
973 2008-08-29 Jan Hubicka <jh@suse.cz>
975 * tree-inline.c (insert_init_stmt): Insert sequence even when
978 2008-08-29 Jeff Law <law@redhat.com>
980 * mn10300.c (mn10300_secondary_reload_class): We need secondary
981 reloads for AM33-2 if IN is a pseudo with an equivalent memory
982 location and class is an FP register.
984 2008-08-29 Jan Hubicka <jh@suse.cz>
986 * see.c (see_merge_one_def_extension): Silence used uninitialized
988 * matrix-reorg.c (check_allocation_function): Likewise.
989 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
991 2008-08-29 Jakub Jelinek <jakub@redhat.com>
994 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
995 compute new & and | in type rather than TREE_TYPE (arg0).
997 * dwarf2out.c (fortran_common): Update comment.
998 (gen_variable_die): Swap com_die and var_die variables in Fortran
999 COMMON block handling code.
1001 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1003 * dwarf2out.c (gen_const_die): New function.
1004 (size_of_die, value_format, output_die): Output larger
1005 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1006 (native_encode_initializer): New function.
1007 (tree_add_const_value_attribute): Call it.
1008 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1010 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1011 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1012 TREE_THIS_VOLATILE to add_type_attribute.
1014 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
1016 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
1019 * dwarf2out.c (loc_by_reference): New function.
1020 (add_location_or_const_value_attribute): Use it.
1023 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
1024 as DW_TAG_variable children of DW_TAG_common_block rather than
1025 DW_TAG_member children. Put DW_AT_external to individual
1026 DW_TAG_variable DIEs, not to DW_TAG_common_block.
1028 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
1029 loc_descriptor_from_tree_1.
1033 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
1034 arguments to imported_module_or_decl.
1035 (debug_nothing_tree_tree): Removed.
1036 (debug_nothing_tree_tree_tree_bool): New prototype.
1037 * debug.c (do_nothing_debug_hooks): Adjust.
1038 (debug_nothing_tree_tree): Removed.
1039 (debug_nothing_tree_tree_tree_bool): New function.
1040 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
1041 (gen_variable_die): Put all common vars for the
1042 same COMMON block under one DW_TAG_common_block.
1043 (declare_in_namespace): Return new context_die, for Fortran
1044 return the module DIE instead of adding extra declarations into
1046 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
1047 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
1048 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
1050 (dwarf2out_global_decl): Don't skip Fortran global vars.
1051 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
1052 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
1053 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
1054 DW_TAG_imported_declaration as child of previous
1055 DW_TAG_imported_module.
1056 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
1057 * sdbout.c (sdb_debug_hooks): Likewise.
1058 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1060 2008-08-29 Jan Hubicka <jh@suse.cz>
1062 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
1064 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
1065 * ipa-cp.c (n_cloning_candidates): New static variable.
1066 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
1067 (ipcp_print_all_lattices): Improve debug output.
1068 (ipcp_cloning_candidate_p): New function.
1069 (ipcp_initialize_node_lattices): Use it.
1070 (ipcp_init_stage): Do only analyzis here; prettier debug output.
1071 (ipcp_propagate_stage): Prettier debug output.
1072 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
1073 (ipcp_print_all_structures): Remove.
1074 (ipcp_need_redirect_p): Test !n_cloning_candidates.
1075 (ipcp_insert_stage): Prettier debug output; call
1076 cgraph_remove_unreachable_nodes before propagating.
1077 (pass_ipa_cp): Schedule function removal pass.
1078 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
1080 (cgraph_maybe_hot_edge_p): Move to ...
1081 * predict.c (cgraph_maybe_hot_edge_p) ... here.
1082 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
1083 (common_handle_option): Set them; enable ipa-cp when profiling.
1084 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
1085 (ipa_print_all_jump_functions): Likewise.
1086 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
1087 (ipa_print_node_params, ipa_print_all_params): New.
1088 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
1089 ipa_print_all_param_flags): Remove.
1090 (ipa_print_node_params, ipa_print_all_params): New.
1092 2008-08-29 Bob Wilson <bob.wilson@acm.org>
1094 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
1095 change from 2008-04-03.
1096 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
1098 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
1102 * ira-color.c (push_allocnos_to_stack): Truncate
1103 removed_splay_allocno_vec.
1105 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
1108 * ira-color (ira_fast_allocation): Don't assign hard registers to
1111 2008-08-29 Jan Hubicka <jh@suse.cz>
1114 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
1115 for cold internal loops.
1117 2008-08-29 Richard Guenther <rguenther@suse.de>
1119 * tree-ssa-structalias.c (create_variable_info_for): Do not
1120 create fields for heap vars or vars with a noalias state.
1121 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
1124 2008-08-29 Richard Guenther <rguenther@suse.de>
1126 * common.opt (ftree-store-ccp): Mark as preserved for
1127 backward compatibility.
1128 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
1129 * tree-pass.h (pass_store_ccp): Remove.
1130 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
1131 (first_vdef): Remove declaration.
1132 (get_value_loaded_by): Likewise.
1133 * tree-ssa-ccp.c (do_store_ccp): Remove.
1134 (get_default_value): Simplify as do_store_ccp is always false
1135 now. Do not initialize mem_ref.
1136 (set_value_varying): Likewise.
1137 (canonicalize_float_value): Likewise.
1138 (set_lattice_value): Likewise.
1139 (likely_value): Likewise.
1140 (surely_varying_stmt_p): Likewise.
1141 (ccp_initialize): Likewise.
1142 (ccp_lattice_meet): Likewise.
1143 (ccp_visit_phi_node): Likewise.
1144 (ccp_fold): Likewise.
1145 (evaluate_stmt): Likewise.
1146 (visit_assignment): Likewise.
1147 (ccp_visit_stmt): Likewise.
1148 (execute_ssa_ccp): Fold into ...
1149 (do_ssa_ccp): ... this.
1150 (do_ssa_store_ccp): Remove.
1151 (gate_store_ccp): Likewise.
1152 (pass_store_ccp): Likewise.
1153 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
1155 * tree-ssa-propagate.c (first_vdef): Remove.
1156 (get_value_loaded_by): Likewise.
1157 (replace_vuses_in): Likewise.
1158 (substitute_and_fold): Do not call replace_vuses_in.
1159 * opts.c (decode_options): Do not set flag_tree_store_ccp.
1161 2008-08-29 Richard Guenther <rguenther@suse.de>
1164 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
1165 PARAM_NOALIAS tags with is_heapvar.
1166 * tree-ssa-operands.c (access_can_touch_variable): Offset
1167 based tests do not apply for heapvars. Fix offset test.
1169 2008-08-29 Jan Hubicka <jh@suse.cz>
1171 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
1172 (-fipa-cp-clone): Enabled by default at -O3.
1173 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
1174 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
1176 2008-08-29 Jan Hubicka <jh@suse.cz>
1178 * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
1180 * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
1182 * gimple.c (giple_copy_call_skip_args): New function.
1183 (giple_copy_call_skip_args): Declare.
1185 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
1186 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
1187 (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
1188 (ipcp_create_replace_map): Improve debug output.
1189 (ipcp_need_redirect_p): Return false when not clonning.
1190 (ipcp_update_callgraph): Skip args.
1191 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
1193 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
1194 (save_inline_function_body): Update call of tree_function_versioning.
1195 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
1196 * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
1197 (tree_function_versioning): Likewise.
1198 * tree-inline.h (tree_function_versioning): Update prototype.
1200 2008-08-29 Jan Hubicka <jh@suse.cz>
1202 * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
1203 * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
1204 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
1205 * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
1206 * value-prof.c (gimple_divmod_fixed_value_transform,
1207 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
1208 gimple_stringops_transform): Use optimize_bb_for_size_p.
1209 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
1210 * final.c (compute_alignments): Use optimize_function_for_size_p.
1211 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
1212 (fold_builtin_strcpy, fold_builtin_fputs): Use
1213 optimize_function_for_size_p.
1214 * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
1215 * recog.c (relax_delay_slots): Likewise.
1216 * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
1217 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
1218 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
1219 optimize_function_for_size_p.
1220 (cgraph_decide_inlining_of_small_function): Use
1221 optimize_function_for_size_p.
1222 * global.c (find_reg): Use optimize_function_for_size_p.
1223 * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
1224 flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
1225 flag_prefetch_loop_arrays. Those can work it out from profile.
1226 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
1227 optimize_loop_for_speed_p.
1228 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
1230 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
1231 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
1232 * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
1233 * local-alloc.c (block_alloc): Pass BB pointer.
1234 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
1235 * gcse.c (gcse_main): Use optimize_function_for_size_p.
1236 * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
1237 (decide_peel_completely): Likewise.
1238 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
1239 optimize_loop_for_size_p.
1240 (vect_enhance_data_refs_alignment): Likewise.
1241 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
1242 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
1243 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
1244 (try_crossjump_bb): Use optimize_bb_for_size_p.
1245 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
1246 optimize_loop_for_speed_p.
1247 * bb-reorder.c (find_traces_1_round): Likewise.
1248 (copy_bb): Use optimize_bb_for_speed_p.
1249 (duplicate_computed_gotos): Likewise.
1250 * basic-block.h (optimize_loop_nest_for_size_p,
1251 optimize_loop_nest_for_speed_p): New.
1252 * stmt.c (expand_case): Use optimize_insn_for_size_p.
1254 2008-08-29 Tristan Gingold <gingold@adacore.com>
1256 * gcov.c (main): Call expandargv.
1258 2008-08-29 Jan Hubicka <jh@suse.cz>
1260 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
1262 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1264 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
1265 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
1267 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
1269 2008-08-29 Jan Hubicka <jh@suse.cz>
1271 * tree-pass.h (pass_strip_predict_hints): Declare.
1272 * predict.c (strip_builtin_expect): Rename to ...
1273 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
1274 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
1275 (tree_estimate_probability): Do not strip builtin_expect.
1276 (pass_strip_predict_hints): New pass.
1277 * tree-inline.c (expand_call_inline): When inlining cold function, predict
1279 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
1281 2008-08-29 Richard Guenther <rguenther@suse.de>
1283 PR tree-optimization/37207
1284 * tree-vrp.c (extract_range_from_binary_expr): Also try
1285 to constant fold if only one of the operands is a constant.
1287 2008-08-29 Nick Clifton <nickc@redhat.com>
1289 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
1290 the same way as SYMBOL_REFs.
1292 2008-08-28 Bob Wilson <bob.wilson@acm.org>
1294 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
1296 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
1298 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
1299 * config/mips/mips.md (branch_likely): Remove const. Fix
1301 (define_delay for type "branch"): Change to only apply for branch
1302 with likely variant.
1303 (define_delay for type "branch" and "branch_likely" no). New delay
1305 (equality_op): New code iterator.
1306 (bbv, bbinv): New code attributes.
1307 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
1310 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1311 Andrew Pinski <pinskia@gcc.gnu.org>
1314 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
1316 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
1318 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
1319 rule that a symbolic constant must be defined and >= 0 for the
1320 corresponding facility to be present at compile-time.
1321 * gthr-posix.c: Likewise.
1323 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
1325 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
1326 * config/mips/mips.md (D): New mode attribute.
1327 (mulsi3, muldi3): Merge it into ...
1328 (mul<mode>3): ... new template. Use _mul3 ending for 3-op
1330 (muldi3_mul3): New pattern.
1331 (mulsi3_mult3): Rename to mulsi3_mul3.
1333 2008-08-28 Jan Hubicka <jh@suse.cz>
1335 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
1337 * predict.c (always_optimize_for_size_p): Rename to ...
1338 (optimize_function_for_size): ... this one; make extern.
1339 (optimize_function_for_speed_p): New.
1340 (optimize_bb_for_size_p, optimize_bb_for_size_p,
1341 optimize_edge_for_size_p,optimize_edge_for_size_p,
1342 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
1343 * basic-block.h (optimize_function_for_size_p,
1344 optimize_function_for_speed_p): Declare.
1345 * i386.md (optimize_size checks): Replace them by appropriate
1347 (standard_80387_constant_p, ix86_compute_frame_layout,
1348 ix86_expand_epilogue, ix86_decompose_address,
1349 print_operand, emit_i387_cw_initialization,
1350 inline_memory_move_cost, ix86_pad_returns,
1351 ix86_reorg): Replace optimize_size checks.
1353 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
1355 * rtl.h (simplify_subreg_regno): Declare.
1356 * rtlanal.c (simplify_subreg_regno): New function, split out from...
1357 * simplify-rtx.c (simplify_subreg): ...here.
1358 * reload.c (find_reloads): Use simplify_subreg_regno instead of
1359 subreg_offset_representable_p.
1361 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1364 * c-typeck.c (convert_for_assignment): Give a note describing what
1365 was passed and what was expected.
1367 2008-08-28 Joey Ye <joey.ye@intel.com>
1369 * doc/extend.texi: Document AVX built-in functions.
1370 * doc/invoke.texi: Document -mavx.
1372 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
1373 Joey Ye <joey.ye@intel.com>
1374 Xuepeng Guo <xuepeng.guo@intel.com>
1376 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
1378 * config/i386/cpuid.h (bit_FMA): New.
1379 (bit_XSAVE): Likewise.
1380 (bit_OSXSAVE): Likewise.
1381 (bit_AVX): Likewise.
1383 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
1384 define. Use ASM_OUTPUT_AVX_PREFIX.
1386 * config/i386/gmmintrin.h: New.
1388 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
1389 (OPTION_MASK_ISA_AVX_SET): New.
1390 (OPTION_MASK_ISA_FMA_SET): Likewise.
1391 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
1392 (OPTION_MASK_ISA_FMA_SET): Likewise.
1393 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
1394 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
1395 (pta_flags): Add PTA_AVX and PTA_FMA.
1396 (override_options): Handle PTA_AVX and PTA_FMA.
1397 (init_cumulative_args): Handle warn_avx.
1398 (classify_argument): Return 0 for COImode and OImode. Return
1399 1 and X86_64_AVX_CLASS for 256bit vector types.
1400 (examine_argument): Handle X86_64_AVX_CLASS.
1401 (construct_container): Likewise.
1402 (function_arg_advance_32): Pass OImode and 256bit vector types
1404 (function_arg_advance_64): Take a new argument to indicate if a
1405 parameter is named. Handle 256bit vector types. Return
1406 immediately for unnamed 256bit vector mode parameters.
1407 (function_arg_advance): Updated.
1408 (function_arg_32): Add comments for TImode. Handle OImode
1409 and 256bit vector types.
1410 (function_arg_64): Take a new argument to indicate if a
1411 parameter is named. Handle 256bit vector types. Return NULL
1412 for unnamed 256bit vector mode parameters.
1413 (function_arg): Updated.
1414 (setup_incoming_varargs_64): Support
1415 AVX encoding for *sse_prologue_save_insn.
1416 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
1417 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
1418 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
1419 enabled, otherwise return -3.
1420 (standard_sse_constant_opcode): Handle AVX and 256bit vector
1422 (print_reg): Support AVX registers. Handle 'x' and 't'.
1423 Handle 'd' to duplicate the operand.
1424 (print_operand): Likewise. Also support AVX vector compare
1426 (output_387_binary_op): Support AVX.
1427 (output_fp_compare): Likewise.
1428 (ix86_expand_vector_move_misalign): Likewise.
1429 (ix86_attr_length_vex_default): New.
1430 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
1431 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
1432 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
1433 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
1434 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
1435 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
1436 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
1437 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
1438 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
1439 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
1440 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
1441 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
1442 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
1443 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
1444 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
1445 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
1446 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
1447 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
1448 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
1449 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
1450 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
1451 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
1452 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
1453 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
1454 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
1455 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
1456 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
1457 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
1458 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
1459 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
1460 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
1461 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
1462 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
1463 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
1464 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1465 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1466 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
1467 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
1468 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
1469 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
1470 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
1471 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
1472 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
1473 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
1474 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
1475 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
1476 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
1477 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
1478 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
1479 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
1480 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
1481 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
1482 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
1483 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
1484 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
1485 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
1486 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
1487 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
1488 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
1489 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
1490 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
1491 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
1492 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
1493 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
1494 and IX86_BUILTIN_MOVMSKPS256,
1495 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
1496 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
1497 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
1498 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
1499 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
1500 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
1501 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
1502 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
1503 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
1504 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
1505 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
1506 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
1507 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
1508 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
1509 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
1510 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
1511 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
1512 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
1513 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
1514 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
1515 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
1516 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
1517 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
1518 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
1519 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
1520 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
1521 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
1522 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
1523 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
1524 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
1525 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
1526 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
1527 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
1528 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
1529 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
1530 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
1531 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
1532 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
1533 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
1534 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
1535 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
1536 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
1537 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
1538 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
1539 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
1540 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
1541 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
1542 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
1543 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
1544 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
1545 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
1546 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
1547 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
1548 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
1549 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
1550 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
1551 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
1552 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
1554 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
1555 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
1556 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
1557 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
1558 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
1559 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
1560 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
1561 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
1562 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
1563 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
1564 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
1565 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
1566 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
1567 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
1568 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
1569 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
1570 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
1571 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
1572 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
1573 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
1574 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
1575 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
1576 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
1577 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
1578 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
1579 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
1580 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
1581 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
1582 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
1583 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
1584 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
1585 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
1586 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
1587 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
1588 IX86_BUILTIN_MOVMSKPS256.
1589 (ix86_init_mmx_sse_builtins): Support AVX builtins.
1590 (ix86_expand_args_builtin): Likewise.
1591 (ix86_expand_special_args_builtin): Likewise.
1592 (ix86_hard_regno_mode_ok): Handle AVX modes.
1593 (ix86_expand_vector_init_duplicate): Likewise.
1594 (ix86_expand_vector_init_one_nonzero): Likewise.
1595 (ix86_expand_vector_init_one_var): Likewise.
1596 (ix86_expand_vector_init_concat): Likewise.
1597 (ix86_expand_vector_init_general): Likewise.
1598 (ix86_expand_vector_set): Likewise.
1599 (ix86_vector_mode_supported_p): Likewise.
1600 (x86_extended_reg_mentioned_p): Check INSN_P before using
1603 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1604 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
1606 * config/i386/i386.h (TARGET_AVX): New.
1607 (TARGET_FMA): Likewise.
1608 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
1609 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
1610 (VALID_AVX256_REG_MODE): New.
1611 (AVX256_VEC_FLOAT_MODE_P): Likewise.
1612 (AVX_FLOAT_MODE_P): Likewise.
1613 (AVX128_VEC_FLOAT_MODE_P): Likewise.
1614 (AVX256_VEC_FLOAT_MODE_P): Likewise.
1615 (AVX_VEC_FLOAT_MODE_P): Likewise.
1616 (ASM_OUTPUT_AVX_PREFIX): Likewise.
1617 (ASM_OUTPUT_OPCODE): Likewise.
1618 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
1620 (SSE_REG_MODE_P): Allow 256bit vector modes.
1621 (ix86_args): Add a warn_avx field.
1623 * config/i386/i386.md (UNSPEC_PCMP): New.
1624 (UNSPEC_VPERMIL): Likewise.
1625 (UNSPEC_VPERMIL2): Likewise.
1626 (UNSPEC_VPERMIL2F128): Likewise.
1627 (UNSPEC_MASKLOAD): Likewise.
1628 (UNSPEC_MASKSTORE): Likewise.
1629 (UNSPEC_CAST): Likewise.
1630 (UNSPEC_VTESTP): Likewise.
1631 (UNSPECV_VZEROALL): Likewise.
1632 (UNSPECV_VZEROUPPER): Likewise.
1633 (XMM0_REG): Likewise.
1634 (XMM1_REG): Likewise.
1635 (XMM2_REG): Likewise.
1636 (XMM3_REG): Likewise.
1637 (XMM4_REG): Likewise.
1638 (XMM5_REG): Likewise.
1639 (XMM6_REG): Likewise.
1640 (XMM8_REG): Likewise.
1641 (XMM9_REG): Likewise.
1642 (XMM10_REG): Likewise.
1643 (XMM11_REG): Likewise.
1644 (XMM12_REG): Likewise.
1645 (XMM13_REG): Likewise.
1646 (XMM14_REG): Likewise.
1647 (XMM15_REG): Likewise.
1649 (prefix_vex_imm8): Likewise.
1650 (prefix_vex_w): Likewise.
1651 (length_vex): Likewise.
1654 (*avx_ashlti3): Likewise.
1655 (*avx_lshrti3): Likewise.
1656 (*avx_setcc<mode>): Likewise.
1657 (*fop_<mode>_comm_mixed_avx): Likewise.
1658 (*fop_<mode>_comm_avx): Likewise.
1659 (*fop_<mode>_1_mixed_avx): Likewise.
1660 (*fop_<mode>_1_avx): Likewise.
1661 (*avx_<code><mode>3): Likewise.
1662 (*avx_ieee_smin<mode>3): Likewise.
1663 (*avx_ieee_smax<mode>3): Likewise.
1664 (mode): Add OI, V8SF and V4DF.
1665 (length): Support VEX prefix.
1666 (*cmpfp_i_mixed): Set prefix attribute.
1667 (*cmpfp_i_sse): Likewise.
1668 (*cmpfp_iu_mixed): Likewise.
1669 (*cmpfp_iu_sse): Likewise.
1670 (*movsi_1): Support AVX.
1671 (*movdi_2): Likewise.
1672 (*movdi_1_rex64): Likewise.
1673 (*movti_internal): Likewise.
1674 (*movti_rex64): Likewise.
1675 (*movsf_1): Likewise.
1676 (*movdf_nointeger): Likewise.
1677 (*movdf_integer_rex64): Likewise.
1678 (*movtf_internal): Likewise.
1679 (zero_extendsidi2_32): Likewise.
1680 (zero_extendsidi2_rex64): Likewise.
1681 (*extendsfdf2_mixed): Likewise.
1682 (*extendsfdf2_sse): Likewise.
1683 (*truncdfsf_fast_mixed): Likewise.
1684 (*truncdfsf_fast_sse): Likewise.
1685 (*truncdfsf_mixed): Likewise.
1686 (fix_trunc<mode>di_sse): Likewise.
1687 (fix_trunc<mode>si_sse): Likewise.
1688 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1689 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1690 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1691 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1692 (*rcpsf2_sse): Likewise.
1693 (*rsqrtsf2_sse): Likewise.
1694 (*sqrt<mode>2_sse): Likewise.
1695 (sse4_1_round<mode>2): Likewise.
1696 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
1697 Support AVX. Set length attribute properly for AVX.
1699 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
1700 (VECTOR_MODES (FLOAT, 32)): Likewise.
1701 (VECTOR_MODE (INT, DI, 8)): Likewise.
1702 (VECTOR_MODE (INT, HI, 32)): Likewise.
1703 (VECTOR_MODE (INT, QI, 64)): Likewise.
1704 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
1705 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
1706 (VECTOR_MODE (INT, DI, 4)): Removed.
1707 (VECTOR_MODE (INT, SI, 8)): Likewise.
1708 (VECTOR_MODE (INT, HI, 16)): Likewise.
1709 (VECTOR_MODE (INT, QI, 32)): Likewise.
1710 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
1711 (INT_MODE (OI, 32)): Likewise.
1713 * config/i386/i386.opt (mavx): New.
1716 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
1718 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
1719 (*mov<mode>_internal_avx): New.
1720 (*movv2sf_internal_rex64_avx): Likewise.
1721 (*movv2sf_internal_avx): Likewise.
1723 * config/i386/predicates.md (const_4_to_5_operand): New.
1724 (const_6_to_7_operand): Likewise.
1725 (const_8_to_11_operand): Likewise.
1726 (const_12_to_15_operand): Likewise.
1727 (avx_comparison_float_operator): Likewise.
1729 * config/i386/sse.md (AVX256MODEI): New.
1730 (AVX256MODE): Likewise.
1731 (AVXMODEQI): Likewise.
1732 (AVXMODE): Likewise.
1733 (AVX256MODEF2P): Likewise.
1734 (AVX256MODE2P): Likewise.
1735 (AVX256MODE4P): Likewise.
1736 (AVX256MODE8P): Likewise.
1737 (AVXMODEF2P): Likewise.
1738 (AVXMODEF4P): Likewise.
1739 (AVXMODEDCVTDQ2PS): Likewise.
1740 (AVXMODEDCVTPS2DQ): Likewise.
1741 (avxvecmode): Likewise.
1742 (avxvecpsmode): Likewise.
1743 (avxhalfvecmode): Likewise.
1744 (avxscalarmode): Likewise.
1745 (avxcvtvecmode): Likewise.
1746 (avxpermvecmode): Likewise.
1747 (avxmodesuffixf2c): Likewise.
1748 (avxmodesuffixp): Likewise.
1749 (avxmodesuffixs): Likewise.
1750 (avxmodesuffix): Likewise.
1751 (vpermilbits): Likewise.
1752 (pinsrbits): Likewise.
1753 (mov<mode>): Likewise.
1754 (*mov<mode>_internal): Likewise.
1755 (push<mode>1): Likewise.
1756 (movmisalign<mode>): Likewise.
1757 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1758 (avx_movdqu<avxmodesuffix>): Likewise.
1759 (avx_lddqu<avxmodesuffix>): Likewise.
1760 (<plusminus_insn><mode>3): Likewise.
1761 (*avx_<plusminus_insn><mode>3): Likewise.
1762 (*avx_vm<plusminus_insn><mode>3): Likewise.
1763 (mul<mode>3): Likewise.
1764 (*avx_mul<mode>3): Likewise.
1765 (*avx_vmmul<mode>3): Likewise.
1766 (divv8sf3): Likewise.
1767 (divv4df3): Likewise.
1768 (avx_div<mode>3): Likewise.
1769 (*avx_div<mode>3): Likewise.
1770 (*avx_vmdiv<mode>3): Likewise.
1771 (avx_rcpv8sf2): Likewise.
1772 (*avx_vmrcpv4sf2): Likewise.
1773 (sqrtv8sf2): Likewise.
1774 (avx_sqrtv8sf2): Likewise.
1775 (*avx_vmsqrt<mode>2): Likewise.
1776 (rsqrtv8sf2): Likewise.
1777 (avx_rsqrtv8sf2): Likewise.
1778 (*avx_vmrsqrtv4sf2): Likewise.
1779 (<code><mode>3): Likewise.
1780 (*avx_<code><mode>3_finite): Likewise.
1781 (*avx_<code><mode>3): Likewise.
1782 (*avx_vm<code><mode>3): Likewise.
1783 (*avx_ieee_smin<mode>3): Likewise.
1784 (*avx_ieee_smax<mode>3): Likewise.
1785 (avx_addsubv8sf3): Likewise.
1786 (avx_addsubv4df3): Likewise.
1787 (*avx_addsubv4sf3): Likewise.
1788 (*avx_addsubv2df3): Likewise.
1789 (avx_h<plusminus_insn>v4df3): Likewise.
1790 (avx_h<plusminus_insn>v8sf3): Likewise.
1791 (*avx_h<plusminus_insn>v4sf3): Likewise.
1792 (*avx_h<plusminus_insn>v2df3): Likewise.
1793 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
1794 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
1795 (*avx_maskcmp<mode>3): Likewise.
1796 (avx_nand<mode>3): Likewise.
1797 (*avx_<code><mode>3): Likewise.
1798 (*avx_nand<mode>3): Likewise.
1799 (*avx_<code><mode>3): Likewise.
1800 (*avx_cvtsi2ss): Likewise.
1801 (*avx_cvtsi2ssq): Likewise.
1802 (*avx_cvtsi2sd): Likewise.
1803 (*avx_cvtsi2sdq): Likewise.
1804 (*avx_cvtsd2ss): Likewise.
1805 (avx_cvtss2sd): Likewise.
1806 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
1807 (avx_cvtps2dq<avxmodesuffix>): Likewise.
1808 (avx_cvttps2dq<avxmodesuffix>): Likewise.
1809 (*avx_cvtsi2sd): Likewise.
1810 (*avx_cvtsi2sdq): Likewise.
1811 (avx_cvtdq2pd256): Likewise.
1812 (avx_cvtpd2dq256): Likewise.
1813 (avx_cvttpd2dq256): Likewise.
1814 (*avx_cvtsd2ss): Likewise.
1815 (*avx_cvtss2sd): Likewise.
1816 (avx_cvtpd2ps256): Likewise.
1817 (avx_cvtps2pd256): Likewise.
1818 (*avx_movhlps): Likewise.
1819 (*avx_movlhps): Likewise.
1820 (avx_unpckhps256): Likewise.
1821 (*avx_unpckhps): Likewise.
1822 (avx_unpcklps256): Likewise.
1823 (*avx_unpcklps): Likewise.
1824 (avx_movshdup256): Likewise.
1825 (avx_movsldup256): Likewise.
1826 (avx_shufps256): Likewise.
1827 (avx_shufps256_1): Likewise.
1828 (*avx_shufps_<mode>): Likewise.
1829 (*avx_loadhps): Likewise.
1830 (*avx_storelps): Likewise.
1831 (*avx_loadlps): Likewise.
1832 (*avx_movss): Likewise.
1833 (*vec_dupv4sf_avx): Likewise.
1834 (*vec_concatv2sf_avx): Likewise.
1835 (*vec_concatv4sf_avx): Likewise.
1836 (*vec_setv4sf_0_avx): Likewise.
1837 (*vec_setv4sf_avx): Likewise.
1838 (*avx_insertps): Likewise.
1839 (avx_vextractf128<mode>): Likewise.
1840 (vec_extract_lo_<mode>): Likewise.
1841 (vec_extract_hi_<mode>): Likewise.
1842 (vec_extract_lo_<mode>): Likewise.
1843 (vec_extract_hi_<mode>): Likewise.
1844 (vec_extract_lo_v16hi): Likewise.
1845 (vec_extract_hi_v16hi): Likewise.
1846 (vec_extract_lo_v32qi): Likewise.
1847 (vec_extract_hi_v32qi): Likewise.
1848 (avx_unpckhpd256): Likewise.
1849 (*avx_unpckhpd): Likewise.
1850 (avx_movddup256): Likewise.
1851 (*avx_movddup): Likewise.
1852 (avx_unpcklpd256): Likewise.
1853 (*avx_unpcklpd): Likewise.
1854 (avx_shufpd256): Likewise.
1855 (avx_shufpd256_1): Likewise.
1856 (*avx_punpckhqdq): Likewise.
1857 (*avx_punpcklqdq): Likewise.
1858 (*avx_shufpd_<mode>): Likewise.
1859 (*avx_storehpd): Likewise.
1860 (*avx_loadhpd): Likewise.
1861 (*avx_loadlpd): Likewise.
1862 (*avx_movsd): Likewise.
1863 (*vec_concatv2df_avx): Likewise.
1864 (*avx_<plusminus_insn><mode>3): Likewise.
1865 (*avx_<plusminus_insn><mode>3): Likewise.
1866 (*avx_mulv8hi3): Likewise.
1867 (*avxv8hi3_highpart): Likewise.
1868 (*avx_umulv8hi3_highpart): Likewise.
1869 (*avx_umulv2siv2di3): Likewise.
1870 (*avx_mulv2siv2di3): Likewise.
1871 (*avx_pmaddwd): Likewise.
1872 (*avx_mulv4si3): Likewise.
1873 (*avx_ashr<mode>3): Likewise.
1874 (*avx_lshr<mode>3): Likewise.
1875 (*avx_ashl<mode>3): Likewise.
1876 (*avx_<code><mode>3): Likewise.
1877 (*avx_eq<mode>3): Likewise.
1878 (*avx_gt<mode>3): Likewise.
1879 (*avx_nand<mode>3): Likewise.
1880 (*avx_nand<mode>3): Likewise.
1881 (*avx_<code><mode>3): Likewise.
1882 (*avx_<code><mode>3): Likewise.
1883 (*avx_packsswb): Likewise.
1884 (*avx_packssdw): Likewise.
1885 (*avx_packuswb): Likewise.
1886 (*avx_punpckhbw): Likewise.
1887 (*avx_punpcklbw): Likewise.
1888 (*avx_punpckhwd): Likewise.
1889 (*avx_punpcklwd): Likewise.
1890 (*avx_punpckhdq): Likewise.
1891 (*avx_punpckldq): Likewise.
1892 (*avx_pinsr<avxmodesuffixs>): Likewise.
1893 (*avx_pinsrq): Likewise.
1894 (*avx_loadld): Likewise.
1895 (*vec_extractv2di_1_rex64_avx): Likewise.
1896 (*vec_extractv2di_1_avx): Likewise.
1897 (*vec_dupv2di_avx): Likewise.
1898 (*vec_concatv2si_avx): Likewise.
1899 (*vec_concatv4si_1_avx): Likewise.
1900 (*vec_concatv2di_avx): Likewise.
1901 (*vec_concatv2di_rex64_avx): Likewise.
1902 (*avx_uavgv16qi3): Likewise.
1903 (*avx_uavgv8hi3): Likewise.
1904 (*avx_psadbw): Likewise.
1905 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
1906 (*avx_phaddwv8hi3): Likewise.
1907 (*avx_phadddv4si3): Likewise.
1908 (*avx_phaddswv8hi3): Likewise.
1909 (*avx_phsubwv8hi3): Likewise.
1910 (*avx_phsubdv4si3): Likewise.
1911 (*avx_phsubswv8hi3): Likewise.
1912 (*avx_pmaddubsw128): Likewise.
1913 (*avx_pmulhrswv8hi3): Likewise.
1914 (*avx_pshufbv16qi3): Likewise.
1915 (*avx_psign<mode>3): Likewise.
1916 (*avx_palignrti): Likewise.
1917 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1918 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1919 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1920 (*avx_mpsadbw): Likewise.
1921 (*avx_packusdw): Likewise.
1922 (*avx_pblendvb): Likewise.
1923 (*avx_pblendw): Likewise.
1924 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1925 (avx_ptest256): Likewise.
1926 (avx_roundp<avxmodesuffixf2c>256): Likewise.
1927 (*avx_rounds<ssemodesuffixf2c>): Likewise.
1928 (*avx_aesenc): Likewise.
1929 (*avx_aesenclast): Likewise.
1930 (*avx_aesdec): Likewise.
1931 (*avx_aesdeclast): Likewise.
1932 (avx_vzeroupper): Likewise.
1933 (avx_vzeroupper_rex64): Likewise.
1934 (avx_vpermil<mode>): Likewise.
1935 (avx_vpermilvar<mode>3): Likewise.
1936 (avx_vpermil2<mode>3): Likewise.
1937 (avx_vperm2f128<mode>3): Likewise.
1938 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1939 (avx_vbroadcastss256): Likewise.
1940 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
1941 (avx_vinsertf128<mode>): Likewise.
1942 (vec_set_lo_<mode>): Likewise.
1943 (vec_set_hi_<mode>): Likewise.
1944 (vec_set_lo_<mode>): Likewise.
1945 (vec_set_hi_<mode>): Likewise.
1946 (vec_set_lo_v16hi): Likewise.
1947 (vec_set_hi_v16hi): Likewise.
1948 (vec_set_lo_v32qi): Likewise.
1949 (vec_set_hi_v32qi): Likewise.
1950 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1951 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
1952 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
1953 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
1954 (vec_init<mode>): Likewise.
1955 (*vec_concat<mode>_avx): Likewise.
1956 (blendbits): Support V8SF and V4DF.
1957 (sse2_movq128): Support AVX.
1958 (<sse>_movnt<mode>): Likewise.
1959 (sse2_movntv2di): Likewise.
1960 (sse_rcpv4sf2): Likewise.
1961 (sse_sqrtv4sf2): Likewise.
1962 (sse_rsqrtv4sf2): Likewise.
1963 (<sse>_comi): Likewise.
1964 (<sse>_ucomi): Likewise.
1965 (sse_cvtss2si): Likewise.
1966 (sse_cvtss2si_2): Likewise.
1967 (sse_cvtss2siq): Likewise.
1968 (sse_cvtss2siq_2): Likewise.
1969 (sse_cvttss2si): Likewise.
1970 (sse_cvttss2siq): Likewise.
1971 (sse2_cvtsd2si): Likewise.
1972 (sse2_cvtsd2si_2): Likewise.
1973 (sse2_cvtsd2siq): Likewise.
1974 (sse2_cvtsd2siq_2): Likewise.
1975 (sse2_cvttsd2si): Likewise.
1976 (sse2_cvttsd2siq): Likewise.
1977 (sse2_cvtdq2pd): Likewise.
1978 (*sse2_cvtpd2dq): Likewise.
1979 (*sse2_cvttpd2dq): Likewise.
1980 (*sse2_cvtpd2ps): Likewise.
1981 (sse2_cvtps2pd): Likewise.
1982 (sse3_movshdup): Likewise.
1983 (sse3_movsldup): Likewise.
1984 (sse_storehps): Likewise.
1985 (*sse4_1_extractps): Likewise.
1986 (sse2_storelpd): Likewise.
1987 (vec_dupv2df_sse3): Likewise.
1988 (*vec_concatv2df_sse3): Likewise.
1989 (*sse4_1_pextrb): Likewise.
1990 (*sse4_1_pextrb_memory): Likewise.
1991 (*sse2_pextrw): Likewise.
1992 (*sse4_1_pextrw_memory): Likewise.
1993 (*sse4_1_pextrd): Likewise.
1994 (*sse4_1_pextrq): Likewise.
1995 (sse2_pshufd_1): Likewise.
1996 (sse2_pshuflw_1): Likewise.
1997 (sse2_pshufhw_1): Likewise.
1998 (*sse2_storeq_rex64): Likewise.
1999 (*vec_dupv4si): Likewise.
2000 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2001 (sse2_pmovmskb): Likewise.
2002 (*sse2_maskmovdqu): Likewise.
2003 (*sse2_maskmovdqu_rex64): Likewise.
2004 (sse_ldmxcsr): Likewise.
2005 (sse_stmxcsr): Likewise.
2006 (abs<mode>2): Likewise.
2007 (sse4_1_movntdqa): Likewise.
2008 (sse4_1_phminposuw): Likewise.
2009 (sse4_1_extendv8qiv8hi2): Likewise.
2010 (*sse4_1_extendv8qiv8hi2): Likewise.
2011 (sse4_1_extendv4qiv4si2): Likewise.
2012 (*sse4_1_extendv4qiv4si2): Likewise.
2013 (sse4_1_extendv2qiv2di2): Likewise.
2014 (*sse4_1_extendv2qiv2di2): Likewise.
2015 (sse4_1_extendv4hiv4si2): Likewise.
2016 (*sse4_1_extendv4hiv4si2): Likewise.
2017 (sse4_1_extendv2hiv2di2): Likewise.
2018 (*sse4_1_extendv2hiv2di2): Likewise.
2019 (sse4_1_extendv2siv2di2): Likewise.
2020 (*sse4_1_extendv2siv2di2): Likewise.
2021 (sse4_1_zero_extendv8qiv8hi2): Likewise.
2022 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2023 (sse4_1_zero_extendv4qiv4si2): Likewise.
2024 (*sse4_1_zero_extendv4qiv4si2): Likewise.
2025 (sse4_1_zero_extendv2qiv2di2): Likewise.
2026 (*sse4_1_zero_extendv2qiv2di2): Likewise.
2027 (sse4_1_zero_extendv4hiv4si2): Likewise.
2028 (*sse4_1_zero_extendv4hiv4si2): Likewise.
2029 (sse4_1_zero_extendv2hiv2di2): Likewise.
2030 (*sse4_1_zero_extendv2hiv2di2): Likewise.
2031 (sse4_1_zero_extendv2siv2di2): Likewise.
2032 (*sse4_1_zero_extendv2siv2di2): Likewise.
2033 (sse4_1_ptest): Likewise.
2034 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
2035 (sse4_2_pcmpestri): Likewise.
2036 (sse4_2_pcmpestrm): Likewise.
2037 (sse4_2_pcmpistri): Likewise.
2038 (sse4_2_pcmpistrm): Likewise.
2040 (aeskeygenassist): Likewise.
2042 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
2044 * config/i386/predicates.md (vzeroall_operation): New.
2046 * config/i386/sse.md (avx_vzeroall): New.
2047 (*avx_vzeroall): Likewise.
2049 2008-08-28 Paul Brook <paul@codesourcery.com>
2050 Mark Shinwell <shinwell@codesourcery.com>
2051 Richard Earnshaw <richard.earnshaw@arm.com>
2053 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
2054 (TARGET_MIN_ANCHOR_OFFSET): New.
2055 (arm_override_options): Set correct anchor ranges for Thumb-1
2056 and Thumb-2 if required.
2057 (legitimize_pic_address): Handle case involving a TLS symbol
2058 reference with an addend.
2059 (arm_optimization_options): Enable section anchors at -O1 and
2061 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
2062 * config/arm/arm-protos.h (arm_optimization_options): New.
2064 2008-08-28 Nick Clifton <nickc@redhat.com>
2066 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
2067 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
2070 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
2071 * config/v850/v850.md (return): Remove frame size restriction.
2073 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
2075 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
2077 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
2079 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
2081 2008-08-28 Paul Brook <paul@codesourcery.com>
2083 * config/arm/vfp11.md: Update license notice.
2084 * config/arm/cortex-r4.md: Ditto.
2086 2008-08-28 Richard Guenther <rguenther@suse.de>
2088 PR tree-optimization/37207
2089 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
2092 2008-08-28 Dodji Seketeli <dodji@redhat.com>
2095 * tree.c (int_fits_type_p): Don't forget unsigned integers
2096 of type sizetype which higher end word equals -1.
2098 2008-08-28 Ira Rosen <irar@il.ibm.com>
2100 * target.h (struct vectorize): Add new target builtin.
2101 * tree-vectorizer.c (destroy_loop_vec_info): Call
2102 vect_free_slp_instance instead of vect_free_slp_node.
2103 * tree-vectorizer.h (enum slp_load_perm_type): New.
2104 (struct _slp_instance): Add new fields.
2105 (SLP_INSTANCE_LOAD_PERMUTATION): New.
2106 (SLP_INSTANCE_LOADS): New.
2107 (vect_free_slp_tree): Remove.
2108 (vect_free_slp_instance): Declare.
2109 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
2110 (vectorizable_load): Add argument.
2111 (vect_transform_slp_perm_load): New.
2112 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
2114 (vect_get_place_in_interleaving_chain): New function.
2115 (vect_free_slp_tree): Make static.
2116 (vect_free_slp_instance): New function.
2117 (vect_build_slp_tree): Add new arguments. Allow load permutations and
2118 collect the load location in the interleaving chain.
2119 (vect_supported_slp_permutation_p): New function.
2120 (vect_supported_load_permutation_p): Likewise.
2121 (vect_analyze_slp_instance): In case of loads permutation, call
2122 vect_supported_load_permutation_p to check that the permutation is
2124 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
2125 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
2126 (vect_create_mask_and_perm): New function.
2127 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
2128 (vectorizable_load): Add an argument. Don't keep the created vectors
2129 statements in the node if permutation is required. Call
2130 vect_transform_slp_perm_load to generate the permutation.
2131 (vect_transform_stmt): Add new argument. Call vectorizable_load with
2132 additional argument.
2133 (vect_schedule_slp_instance): In case of loads permutation, allocate
2134 vectorized statements structure for all the related SLP nodes. Call
2135 vect_transform_stmt with addditional argument.
2136 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
2137 * config/spu/spu.c (spu_builtin_vec_perm): New.
2138 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2139 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
2140 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
2141 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
2143 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
2145 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
2146 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
2147 __gthread_cond_signal, __gthread_cond_timedwait,
2148 __gthread_cond_timedwait_recursive): New functions.
2149 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
2151 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
2154 2008-08-28 Richard Guenther <rguenther@suse.de>
2157 * fold-const.c (maybe_canonicalize_comparison_1): Require
2158 undefined overflow only for canonicalizing A +- CST cmp CST.
2159 Make sure to not generate new constants that are not inside
2160 their TYPE_MIN/MAX_VALUE range.
2161 (maybe_canonicalize_comparison): Remove undefined overflow
2163 (fold_binary): Remove now duplicate folding.
2165 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
2167 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
2168 use not updated in the last change.
2170 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
2172 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
2173 (IRA_COVER_CLASSES): Add FPUL_REGS.
2175 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2178 * c-common.c (conversion_warning): Check for null operands.
2180 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2183 * c-decl.c (check_for_loop_decls): Improve error message. Give
2186 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2189 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
2190 (convert_for_assignment): Pass corrent OPT_W* parameter to
2191 WARN_FOR_ASSIGNMENT.
2193 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
2196 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
2198 2008-08-27 Paul Brook <paul@codesourcery.com>
2200 * config.gcc: Loosen checks for arm uclinux eabi targets.
2202 2008-08-27 Paul Brook <paul@codesourcery.com>
2204 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
2206 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2208 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
2210 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
2211 the enumerators of an ENUMERAL_TYPE.
2212 * dbxout.c (dbxout_type): Ditto.
2214 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
2217 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
2218 (fwprop_addr): Check that the loop_father is not the outer loop.
2220 2008-08-26 Paul Brook <paul@codesourcery.com>
2222 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
2223 Remove documentation entry for fmul type.
2224 Use fmuls to annotate single-precision multiplication patterns,
2225 fmuld to annotate double-precision multiplication patterns,
2226 fmacs to annotate single-precision multiply-accumulate patterns
2227 and fmacd to annotate double-precision multiply-accumulate patterns.
2228 * config/arm/vfp11.md: Update reservations accordingly.
2229 * config/arm/arm.md: Note that certain values of the "type"
2230 attribute are documented in vfp.md.
2231 * config/arm/arm1020e.md: Remove out of date duplicate comment.
2232 (v10_cvt): Use new fmul types.
2234 2008-08-26 Paul Brook <paul@codesourcery.com>
2236 * config/arm/vfp.md: Move pipeline description for VFP11 to...
2237 * config/arm/vfp11.md: ...here. New.
2238 * config/arm/arm.md: Include vfp11.md.
2240 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
2242 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
2243 parameter to inform call.
2245 2008-08-26 Jeff Law <law@redhat.com>
2247 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
2248 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
2249 preferred class when copying a constant into a partial word register.
2251 2008-08-26 Ben Elliston <bje@au.ibm.com>
2253 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
2254 * cp/typeck.c: Likewise.
2255 * cp/tree.c: Likewise.
2256 * gimple-low.c: Likewise.
2259 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
2261 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
2262 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
2264 * doc/passes.texi: Describe IRA.
2266 * doc/tm.texi (IRA_COVER_CLASSES,
2267 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
2269 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
2270 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
2271 -fira-propagate-cost, -fno-ira-share-save-slots,
2272 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
2274 * flags.h (ira_algorithm): New enumeration.
2275 (flag_ira_algorithm, flag_ira_verbose): New external variable
2278 * postreload.c (gate_handle_postreload): Don't do post reload
2279 optimizations unless the reload is completed.
2281 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
2284 * tree-pass.h (pass_ira): New external variable declaration.
2286 * reload.h: Add 2008 to the Copyright.
2288 * cfgloopanal.c: Include params.h.
2289 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
2292 * params.h (IRA_MAX_LOOPS_NUM): New macro.
2294 * toplev.c (ira.h): New include.
2295 (flag_ira_algorithm, flag_ira_verbose): New external variables.
2296 (backend_init_target): Call ira_init.
2297 (backend_init): Call ira_init_once.
2298 (finalize): Call finish_ira_once.
2300 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
2301 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
2304 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
2305 may_move_out_cost): New external variable declarations.
2306 (move_table): New typedef.
2308 * caller-save.c: Include headers output.h and ira.h.
2309 (no_caller_save_reg_set): New global variable.
2310 (save_slots_num, save_slots): New variables.
2311 (reg_save_code, reg_restore_code, add_stored_regs): Add
2313 (init_caller_save): Set up no_caller_save_reg_set.
2314 (init_save_areas): Reset save_slots_num.
2315 (saved_hard_reg): New structure.
2316 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
2317 (initiate_saved_hard_regs, new_saved_hard_reg,
2318 finish_saved_hard_regs, saved_hard_reg_compare_func): New
2320 (setup_save_areas): Add code for sharing stack slots.
2321 (all_blocks): New variable.
2322 (save_call_clobbered_regs): Process pseudo-register too.
2323 (mark_set_regs): Process pseudo-register too.
2324 (insert_one_insn): Put the insn after bb note in a empty basic
2325 block. Add insn check.
2327 * global.c (eliminable_regset): Make it external.
2328 (mark_elimination): Use DF_LR_IN for IRA.
2329 (pseudo_for_reload_consideration_p): New.
2330 (build_insn_chain): Make it external. Don't ignore spilled
2331 pseudos for IRA. Use pseudo_for_reload_consideration_p.
2332 (gate_handle_global_alloc): New function.
2333 (pass_global_alloc): Add the gate function.
2335 * opts.c (decode_options): Set up flag_ira. Print the warning for
2337 (common_handle_option): Process -fira-algorithm and -fira-verbose.
2339 * timevar.def (TV_IRA, TV_RELOAD): New passes.
2341 * regmove.c (regmove_optimize): Don't do replacement of output for
2344 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
2345 New external variable declarations.
2347 * local-alloc.c (update_equiv_regs): Make it external. Return
2348 true if jump label rebuilding should be done. Rescan new_insn for
2350 (gate_handle_local_alloc): New function.
2351 (pass_local_alloc): Add the gate function.
2353 * alias.c (value_addr_p, stack_addr_p): New functions.
2354 (nonoverlapping_memrefs_p): Use them for IRA.
2356 * common.opt (fira, fira-algorithm, fira-coalesce,
2357 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
2358 fira-verbose): New options.
2360 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
2361 move_cost, may_move_in_cost, may_move_out_cost): Make the
2363 (move_table): Remove typedef.
2364 (init_move_cost): Make it external.
2365 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
2368 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
2369 setup_reg_classes): New function prototypes.
2370 (eliminable_regset): New external variable declaration.
2371 (build_insn_chain, update_equiv_regs): New function prototypes.
2373 * Makefile.in (IRA_INT_H): New definition.
2374 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
2375 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
2376 (reload1.o, toplev.o): Add dependence on ira.h.
2377 (cfgloopanal.o): Add PARAMS_H.
2378 (caller-save.o): Add dependence on output.h and ira.h.
2379 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
2380 ira-emit.o, ira-lives.o): New entries.
2382 * passes.c (pass_ira): New pass.
2384 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
2386 * reload1.c (ira.h): Include the header.
2387 (changed_allocation_pseudos): New bitmap.
2388 (init_reload): Initiate the bitmap.
2389 (compute_use_by_pseudos): Permits spilled registers in FROM.
2390 (temp_pseudo_reg_arr): New variable.
2391 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
2392 IRA. Call alter_reg with the additional parameter. Don't clear
2393 spilled_pseudos for IRA. Restore original insn chain for IRA.
2394 Clear changed_allocation_pseudos at the end of reload.
2395 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
2396 (hard_regno_to_pseudo_regno): New variable.
2397 (count_pseudo): Check spilled pseudos. Set up
2398 hard_regno_to_pseudo_regno.
2399 (count_spilled_pseudo): Check spilled pseudos. Update
2400 hard_regno_to_pseudo_regno.
2401 (find_reg): Use better_spill_reload_regno_p. Check
2402 hard_regno_to_pseudo_regno.
2403 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
2405 (eliminate_regs_1): Use additional parameter for alter_reg.
2406 (finish_spills): Set up pseudo_previous_regs only for spilled
2407 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
2408 more arguments. Don't clear live_throughout and dead_or_set for
2409 spilled pseudos. Use additional parameter for alter_reg. Call
2410 mark_allocation_change. Set up changed_allocation_pseudos.
2411 Remove sanity check.
2412 (emit_input_reload_insns, delete_output_reload): Use additional
2413 parameter for alter_reg. Call mark_allocation_change.
2414 (substitute, gen_reload_chain_without_interm_reg_p): New
2416 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
2418 * testsuite/gcc.dg/20080410-1.c: New file.
2420 * config/s390/s390.h (IRA_COVER_CLASSES,
2421 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
2423 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
2425 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
2427 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2429 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
2431 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2433 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
2435 2008-08-24 Jeff Law <law@redhat.com>
2436 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
2437 when ignoring unavailable registers.
2439 2008-08-24 Jeff Law <law@redhat.com>
2440 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
2441 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
2442 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
2443 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
2445 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
2446 * ira-build.c (allocno_range_compare_func): Stabilize sort.
2448 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
2449 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
2450 * reload1.c (find_reg): Process registers in register allocation order.
2452 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2453 * toplev.c (backend_init_target): Move ira_init call from
2455 (lang_dependent_init_target): ...to here.
2457 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
2458 * ira.c (setup_class_subset_and_memory_move_costs): Don't
2459 calculate memory move costs for NO_REGS.
2461 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
2462 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
2463 STACK_REGS is defined.
2465 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2466 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
2468 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
2469 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
2471 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
2472 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
2473 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
2476 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
2477 Dorit Nuzman <dorit@il.ibm.com>
2479 * gcc/config/spu/spu.md (vec_extract_evenv4si,
2480 vec_extract_evenv4sf, vec_extract_evenv8hi,
2481 vec_extract_evenv16qi, vec_extract_oddv4si,
2482 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
2483 vec_interleave_highv4sf, vec_interleave_lowv4sf,
2484 vec_interleave_highv4si, vec_interleave_lowv4si,
2485 vec_interleave_highv8hi, vec_interleave_lowv8hi,
2486 vec_interleave_highv16qi, vec_interleave_lowv16qi,
2487 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
2489 2008-08-25 Janis Johnson <janis187@us.ibm.com>
2492 * config/rs6000/rs6000.c (optimization_options): Don't default to
2493 section anchors without toplevel reorder.
2495 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2497 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
2498 (mfc_end_critical_section): Likewise.
2500 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2502 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
2503 all type qualifiers from element type to vector type.
2505 2008-08-25 David Daney <ddaney@avtrex.com>
2507 * config/mips/mips.md (immediate_insn): Move up in file, fix
2508 comment typo, reformat.
2509 (fetchop_bit, atomic_hiqi_op memory_barrier,
2510 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
2511 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
2512 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
2513 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
2514 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
2515 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
2516 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
2517 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
2518 sync_old_nand<mode>, sync_new_nand<mode>,
2519 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
2520 test_and_set_12): Moved to sync.md.
2522 * config/mips/sync.md: New file.
2524 2008-08-25 Richard Henderson <rth@redhat.com>
2526 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
2527 (regsave): Likewise.
2528 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
2529 (output_cfi_directive): Likewise.
2530 (div_data_align): New.
2531 (output_cfi): Use it.
2533 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
2535 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
2536 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
2537 (TARGET_OCTEON): New macro.
2538 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
2539 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
2540 (ISA_HAS_POP): New macro.
2541 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2543 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
2545 * config/mips/mips.md (cpu): Add octeon.
2546 (type): Add pop attribute value.
2547 (popcount<mode>2): New pattern.
2548 * doc/invoke.texi (-march=@var{arch}): Add octeon.
2550 2008-08-24 Jan Hubicka <jh@suse.cz>
2552 * doc/invoke.texi (-fipa-cp-clone): New option.
2553 (-fipa-cp): Update docs.
2554 (--param ipcp-unit-growth):New.
2555 * ipa-cp.c: Include fibheap.h, params.h
2556 (ipcp_initialize_node_lattices): When not cloning, all externally
2557 visible functions are bottom.
2558 (ipcp_need_redirect_p): Accept clones.
2559 (ipcp_insert_stage): Use cost driven heuristics.
2560 (max_count, dead_nodes): New static vars.
2561 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
2562 ipcp_const_param_count): New functions.
2563 * common.opt (ipa-cp-clone): New command line option.
2564 * params.def (ipcp-unit-growth): New.
2566 2008-08-24 Jan Hubicka <jh@suse.cz>
2568 * tree-inline.c (tree_function_versioning): Look harder
2569 for referenced vars.
2571 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
2573 PR tree-optimization/37185
2574 * matrix-reorg.c (transform_access_sites): Update changed stmt.
2576 2008-08-23 Jan Hubicka <jh@suse.cz>
2578 * ipa-cp.c (ipcp_analyze_node): New function.
2579 (ipcp_update_cloned_node): Use it.
2580 (ipcp_init_stage): Likewise.
2581 * ipa-inline.c (function_insertion_hook_holder): New static var.
2582 (analyze_function): Break out from ....
2583 (inline_generate_summary): Here; register insertion hook.
2584 (cgraph_decide_inlining): Remove hook.
2585 (add_new_function): New function.
2587 2008-08-23 Jan Hubicka <jh@suse.cz>
2589 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
2591 2008-08-23 Jan Hubicka <jh@suse.cz>
2593 * ipa-cp.c (constant_val_insert): Remove.
2594 (ipcp_propagate_one_const): Remove.
2595 (ipcp_create_replace_map): Always insert replacements to the map.
2596 (ipcp_insert_stage): Do not try to insert statements by hand.
2597 * tree-inline.c (insert_init_stmt): Break out from ...
2598 (setup_one_parameter): ... here; allow NULL BB pointer.
2599 (tree_function_versioning): Use setup_one_parameter to process
2602 2008-08-23 Jan Hubicka <jh@suse.cz>
2604 * tree.c (decl_address_ip_invariant_p): New function.
2605 * tree.h (decl_address_ip_invariant_p): Declare.
2606 * gimple.c (strip_invariant_refs): Break out from ...
2607 (is_gimple_invariant_address): ... here
2608 (is_gimple_ip_invariant_address): New function.
2609 (is_gimple_ip_invariant): New function.
2610 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
2613 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
2614 (ipcp_lat_is_insertable): All constants are insertable.
2615 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
2616 IPA_CONST_VALUE_REF.
2617 (ipcp_initialize_node_lattices): Propagate all types of operands.
2618 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
2619 (ipcp_create_replace_map): Reformat.
2620 (ipcp_need_redirect_p): Simplify.
2621 (ipcp_insert_stage): Check that argument is used before clonning.
2622 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
2623 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
2624 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
2625 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
2626 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
2627 (jump_func_type): Remove IPA_CONST_VALUE_REF.
2628 * tree-inline.c (tree_function_versioning): Add variables referenced by
2631 2008-08-23 Jan Hubicka <jh@suse.cz>
2634 * i386.c (standard_80387_constant_p): Use optimize_size.
2636 2008-08-23 Ira Rosen <irar@il.ibm.com>
2638 PR tree-optimization/37161
2639 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
2640 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
2641 (vect_determine_vectorization_factor): Move the scalar type
2642 retrieval to vect_get_smallest_scalar_type.
2643 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
2644 scalar type. Remove redundant computation.
2645 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
2646 (vect_get_slp_defs): Take the type of RHS into account if
2647 necessary by calling vect_get_smallest_scalar_type. Call
2648 vect_get_constant_vectors with additional argument.
2650 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2653 * doc/invoke.texi (Wwrite-strings): Clarify description.
2655 2008-08-23 Ira Rosen <irar@il.ibm.com>
2657 PR tree-optimization/37174
2658 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
2659 def stmt is a part of the loop before accessing its stmt_vec_info.
2661 2008-08-22 Anatoly Sokolov <aesok@post.ru>
2664 * config/avr/avr.md (UNSPEC_SWAP): New constants.
2665 (*swap): New insn pattern.
2666 (*ashlqi3): Rename from ashlqi3 insn pattern.
2667 (ashlqi3): New expanders.
2668 (*lshrqi3): Rename from lshrqi3 insn pattern.
2669 (lshrqi3): New expanders.
2670 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
2671 lshrqi3_const5, lshrqi3_const6): New splitters.
2672 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
2673 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
2676 2008-08-22 Richard Guenther <rguenther@suse.de>
2678 PR tree-optimization/37078
2679 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
2680 [+INF, +INF] ranges.
2682 2008-08-22 Richard Guenther <rguenther@suse.de>
2684 PR tree-optimization/37143
2685 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
2686 a conversion statement instead of a copy.
2688 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
2691 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
2692 CCCmode, CCOmode and CCSmode destination modes.
2695 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
2696 from different units in a single alternative.
2697 (*vec_extractv2sf_1): Ditto.
2698 (*vec_extractv2si_0): Ditto.
2699 (*vec_extractv2si_1): Ditto.
2700 * config/i386/sse.md (sse2_storehpd): Ditto.
2701 (sse2_storelpd): Ditto.
2702 (sse2_loadhpd): Ditto.
2703 (sse2_loadlpd): Ditto.
2706 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
2707 (popcountsi2): Ditto.
2708 (clzdi2_abm): Ditto.
2709 (popcountdi2): Ditto.
2710 (clzhi2_abm): Ditto.
2711 (popcounthi2): Ditto.
2713 2008-08-22 Richard Guenther <rguenther@suse.de>
2717 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
2718 if the multiplication does not overflow.
2720 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
2722 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
2724 2008-08-21 Richard Henderson <rth@redhat.com>
2726 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
2727 spurrious comma from test.
2728 * configure: Rebuild.
2730 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2733 * builtins.c (fold_builtin_next_arg): Add warning about undefined
2736 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
2738 * c-tree.h (grokfield): New argument.
2739 * c-decl.c (grokfield): Handle new location argument.
2740 * c-parser.c (c_parser_struct_declaration): Pass location to
2743 2008-08-21 Richard Guenther <rguenther@suse.de>
2745 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
2747 2008-08-21 Jan Hubicka <jh@suse.cz>
2749 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
2750 (cgraph_add_function_insertion_hook,
2751 cgraph_remove_function_insertion_hook,
2752 cgraph_call_function_insertion_hooks): New functions.
2753 * cgraph.h (cgraph_add_function_insertion_hook,
2754 cgraph_remove_function_insertion_hook,
2755 cgraph_call_function_insertion_hooks): Declare.
2756 * ipa-reference.c (function_insertion_hook_holder): New variable.
2757 (check_operand, look_for_address_of): When checking late, do not care
2758 about module bitmaps.
2759 (add_new_function): New function.
2760 (generate_summary): Register hooks; zero module bitmaps.
2761 (propagate): Unregister hooks.
2762 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
2763 (add_new_function): New function.
2764 (generate_summary): Register hook.
2765 (propagate): Remove hook.
2767 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
2769 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
2770 * ipa-cp.c (ipcp_update_cloned_node): New function.
2771 (build_const_val): Handle functions correctly; bring type logic
2772 into sync with tree-inline.c
2773 (ipcp_init_stage): Take care of computing stuff needed by
2774 indirect inlining; update clones.
2775 (ipcp_generate_summary): Break out of ipcp_driver.
2776 (ipcp_driver): Do only execution and transformation.
2777 (pass_ipa_cp): Make IPA_PASS.
2778 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
2780 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
2781 ipcp, some info is already available.
2782 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
2783 * tree-inline.c (remap_ssa_name): Unshare expression.
2785 2008-08-21 Richard Guenther <rguenther@suse.de>
2787 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
2788 a PHI ask VN if it is already available.
2789 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
2790 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
2792 2008-08-21 Richard Guenther <rguenther@suse.de>
2795 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
2796 makes sure to produce a result of the correct type.
2798 2008-08-21 Jan Hubicka <jh@suse.cz>
2799 Backport from LTO branch:
2801 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
2802 Jan Hubicka <jh@suse.cz>
2805 (init_state, finish_state, set_function_state, generate_summary):
2807 (scan_stmt): Renamed from scan_function. Changed to keep state in
2808 local static vars rather than cgraph aux field.
2809 (propagate): Renamed from static_execute. Changed to keep state in
2810 local static vars rather than cgraph aux field.
2811 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
2812 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
2814 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2816 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
2817 * ipa-reference.c (init_function_info, generate_summary,
2818 propagate): New functions.
2819 (analyze_function): Call init_function_info.
2820 (static_execute): Stripped into generate_summary and propagate.
2821 (pass_ipa_reference): Made into ipa_opt_pass.
2823 2008-08-21 Richard Guenther <rguenther@suse.de>
2825 PR tree-optimization/37181
2826 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
2828 (extract_range_from_unary_expr): Likewise.
2830 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2832 * diagnostic.c (pedwarn_at): Rename as pedwarn.
2834 * toplev.h (pedwarn_at): Likewise.
2835 * builtins.c: Update all calls to pedwarn.
2836 * c-lex.c: Likewise.
2837 * toplev.c: Likewise.
2838 * c-tree.h: Likewise.
2839 * c-decl.c: Likewise.
2840 * c-errors.c: Likewise.
2841 * c-typeck.c: Likewise.
2842 * c-common.c: Likewise.
2843 * c-parser.c: Likewise.
2845 2008-08-20 Joseph Myers <joseph@codesourcery.com>
2848 * config/sparc/sparc.c (function_arg_slotno): Handle structure
2849 with MODE_VECTOR_INT mode.
2851 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2854 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
2855 initialized outside the current module.
2856 (warn_uninitialized_var): Ignore left-hand side when walking the
2857 trees. Ignore address expressions. Examine VUSE operands in gimple
2858 statements with a variable declaration on the right-hand side.
2860 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2863 * rtlanal.c (subreg_offset_representable_p): Revert last change.
2865 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2868 * c-common.c (conversion_warning): Do not warn if applying bit-and
2869 operator to unsigned constant that fits in the target type.
2871 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2874 * c-common.c (conversion_warning): Do not warn for artificial
2877 2008-08-20 Richard Guenther <rguenther@suse.de>
2879 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
2880 (extract_range_from_binary_expr): Fall back to constant propagation.
2881 (extract_range_from_unary_expr): Likewise.
2883 2008-08-20 Richard Guenther <rguenther@suse.de>
2885 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
2886 with TREE_THIS_VOLATILE on shared nodes.
2887 (fold_stmt_r): Likewise.
2889 2008-08-20 Jakub Jelinek <jakub@redhat.com>
2892 * c-parser.c (c_parser_attributes): For keywords use canonical
2893 spelling for attr_name.
2895 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2897 * value-prof.c (check_counter): Revert wrong call to error.
2899 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2901 * profile.c: Update calls to inform.
2902 * value-prof.c: Update calls to inform.
2904 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2906 * diagnostic.c (inform): Add an explicit location_t parameter.
2907 * toplev.h (inform): Update declaration.
2908 * builtins.c: Update all calls to inform.
2909 * c-common.c: Likewise.
2910 * c-decl.c: Likewise.
2911 * c-opts.c: Likewise.
2912 * c-pch.c: Likewise.
2913 * c-pragma.c: Likewise.
2914 * c-typeck.c: Likewise.
2915 * coverage.c: Likewise.
2917 * toplev.c: Likewise.
2918 * tree-cfg.c: Likewise.
2919 * tree-ssa.c: Likewise.
2921 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
2924 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
2925 V2DI mode, for SSE4.1, use movq instead of vector set if the
2926 second element is zero and inter-unit moves are OK.
2928 2008-08-20 Richard Guenther <rguenther@suse.de>
2930 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
2931 properly handle conversion/copy chains after tuplification.
2933 2008-08-20 Richard Guenther <rguenther@suse.de>
2935 * passes.c (init_optimization_passes): Move the second
2936 forwprop pass before alias computation. Remove the second
2937 DCE pass. Remove the first dominator and phi copy/const
2940 2008-08-20 Nick Clifton <nickc@redhat.com>
2942 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
2943 support of this feature. Do not assume that a sufficiently new
2944 assembler will support the feature regardless of the target type.
2945 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
2946 * configure: Regenerate.
2948 2008-08-20 Richard Guenther <rguenther@suse.de>
2950 * tree-vrp.c (found_in_subgraph): Remove.
2951 (live): New global static.
2952 (live_on_edge): New function.
2953 (blocks_visited): Remove.
2954 (register_edge_assert_for_2): Use live_on_edge.
2955 (find_conditional_asserts): Remove code dealing with
2956 found_in_subgraph. Do not walk the CFG.
2957 (find_switch_asserts): Likewise.
2958 (find_assert_locations_1): Renamed from find_assert_locations.
2959 Move finding assert locations for conditional and switch
2960 statements first. Update live bitmap. Do not walk the CFG.
2961 (find_assert_locations): New function.
2962 (insert_range_assertions): Remove entry of CFG walk.
2963 Adjust call to find_assert_locations.
2964 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
2965 that only can appear because of fake exit edges but assert we
2966 never try to insert on those.
2967 (fini_pre): Do not remove fake exit edges here...
2968 (execute_pre): ...but here, before committing edge inserts.
2970 2008-08-19 Richard Guenther <rguenther@suse.de>
2972 * passes.c (init_optimization_passes): Exchange store-ccp
2975 2008-08-19 Rafael Espindola <espindola@google.com>
2977 * varasm.c (weak_decls): Move earlier in the file.
2978 (assemble_external): Add weak decls to the weak_decls list.
2979 (declare_weak): Don't add decls to the weak_decls list.
2981 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
2984 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
2985 before (sse2_shufpd_<mode>).
2987 2008-08-19 Jakub Jelinek <jakub@redhat.com>
2990 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
2991 * tree.c (block_nonartificial_location): Likewise.
2993 2008-08-19 Richard Guenther <rguenther@suse.de>
2995 PR tree-optimization/35972
2996 PR tree-optimization/23094
2997 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
2999 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3000 handle MISALIGNED_INDIRECT_REF.
3001 (get_ref_from_reference_ops): New helper.
3002 (vn_reference_lookup_pieces): Walk the use-def chain using the
3003 alias-oracle if requested.
3004 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3005 walking the use-def chain.
3006 (compute_avail): But not here.
3007 (create_component_ref_by_pieces_1): Properly handle
3008 MISALIGNED_INDIRECT_REF.
3009 (do_regular_insertion): Handle fully redundant
3010 expressions after PHI-translation also for SSA_NAME values, not
3011 only constants. Correctly use edoubleprime for that.
3013 2008-08-19 Ira Rosen <irar@il.ibm.com>
3015 * tree-vectorizer.c (supportable_widening_operation): Support
3016 multi-step conversion, return the number of steps in such conversion
3017 and the required intermediate types.
3018 (supportable_narrowing_operation): Likewise.
3019 * tree-vectorizer.h (vect_pow2): New function.
3020 (supportable_widening_operation): Change argument types.
3021 (supportable_narrowing_operation): Likewise.
3022 (vectorizable_type_promotion): Add an argument.
3023 (vectorizable_type_demotion): Likewise.
3024 * tree-vect-analyze.c (vect_analyze_operations): Call
3025 vectorizable_type_promotion and vectorizable_type_demotion with
3026 additional argument.
3027 (vect_get_and_check_slp_defs): Detect patterns.
3028 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
3030 (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
3031 vect_build_slp_tree with correct arguments. Calculate unrolling factor
3032 according to the smallest type in the loop.
3033 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
3034 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
3035 supportable_widening_operation with correct arguments.
3036 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
3037 operands lists according to the number of vector statements in left
3038 or right node, if exists.
3039 (vect_gen_widened_results_half): Remove unused argument.
3040 (vectorizable_conversion): Call supportable_widening_operation,
3041 supportable_narrowing_operation, and vect_gen_widened_results_half
3042 with correct arguments.
3043 (vectorizable_assignment): Change documentation, support multiple
3045 (vectorizable_operation): Likewise.
3046 (vect_get_loop_based_defs): New function.
3047 (vect_create_vectorized_demotion_stmts): Likewise.
3048 (vectorizable_type_demotion): Support loop-aware SLP and general
3049 multi-step conversion. Call vect_get_loop_based_defs and
3050 vect_create_vectorized_demotion_stmts for transformation.
3051 (vect_create_vectorized_promotion_stmts): New function.
3052 (vectorizable_type_promotion): Support loop-aware SLP and general
3053 multi-step conversion. Call vect_create_vectorized_promotion_stmts
3055 (vectorizable_store): Change documentation, support multiple
3057 (vectorizable_load): Likewise.
3058 (vect_transform_stmt): Pass SLP_NODE to
3059 vectorizable_type_promotion and vectorizable_type_demotion.
3060 (vect_schedule_slp_instance): Move here the calculation of number
3061 of vectorized statements for each node from...
3062 (vect_schedule_slp): ... here.
3063 (vect_transform_loop): Call vect_schedule_slp without the last
3066 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
3069 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
3070 to == in assert statement.
3071 (vectorizable_reduction): Fix typo.
3073 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3076 * value-prof.c (check_counter): Dereference pointer to overall
3077 count when printing it.
3079 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3081 * profile.h: Really add it.
3083 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
3085 * mcf.c: Really add it.
3087 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
3088 Vinodha Ramasamy <vinodha@google.com>
3090 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
3092 * value-prof.c (check_counter): Fix the counter if
3093 flag_profile_correction is true.
3094 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3095 tree_mod_subtract_transform):
3096 Follow check_counter parameter change.
3097 * common.opt (fprofile-correction): New option.
3099 * profile.h: Likewise.
3100 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
3101 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
3102 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
3104 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
3105 flag_profile_correction is set.
3107 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
3109 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
3111 2008-08-18 Tomas Bily <tbily@suse.cz>
3113 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
3114 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
3116 * tree-data-ref.c (split_constant_offset_1): Likewise.
3117 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
3118 * tree-sra.c (sra_walk_expr): Likewise.
3119 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
3120 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3121 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
3122 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
3124 * gimple.c (gimple_assign_unary_nop_p): Likewise.
3125 * tree-vect-transform.c (vectorizable_type_demotion)
3126 (vectorizable_type_promotion): Likewise.
3127 * tree-inline.c (expand_call_inline):
3128 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3129 (forward_propagate_addr_expr_1, forward_propagate_comparison)
3130 (tree_ssa_forward_propagate_single_use_vars): Likewise.
3131 * expr.c (expand_expr_real_1): Likewise.
3132 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
3133 (gimple_assign_unary_useless_conversion_p): Likewise.
3134 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3135 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
3136 * fold-const.c (fold_unary): Likewise.
3137 * tree.h (CONVERT_EXPR_P): Likewise.
3138 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
3139 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3141 (register_edge_assert_for_2, extract_range_from_unary_expr)
3142 (register_edge_assert_for_1): Likewise.
3144 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3146 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
3147 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
3148 (enum real_value_const): Delete.
3149 (get_real_const): Delete.
3150 * real.c (get_real_const): Delete.
3151 (dconst_e_ptr): Define.
3152 (dconst_third_ptr): Define.
3153 (dconst_sqrt2_ptr): Define.
3154 * builtins.c: Update all callers.
3156 2008-08-18 Richard Guenther <rguenther@suse.de>
3158 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
3159 statement iterator after statement removal.
3161 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
3163 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
3164 (detect_processor_freebsd): Likewise.
3165 (host_detect_local_cpu): Call newly added functions for FreeBSD.
3167 2008-08-18 Richard Guenther <rguenther@suse.de>
3169 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
3170 and loads have the correct types.
3172 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3175 * c-opts.c (cpp_opts): Remove static.
3176 * c-parser.c (cpp_opts): Declare it extern.
3177 (disable_extension_diagnostics): Handle cpp options.
3178 (enable_extension_diagnostics): Likewise.
3180 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3182 * diagnostics.c (permerror_at): Rename as permerror.
3183 (permerror): Delete.
3184 * toplev.h: Likewise.
3186 2008-08-18 Richard Guenther <rguenther@suse.de>
3188 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
3189 sdse1 and addressables2 passes. Replace dce1 with cddce1.
3190 Move call_cdce before build_alias. Move copyrename2,
3191 cunrolli and ccp2 beafore build_alias. Re-add addressable2
3192 right after final inlining.
3193 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
3194 (pass_build_cfg): But instead via TODO_dump_func.
3196 2008-08-18 Richard Guenther <rguenther@suse.de>
3198 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
3200 (scalarize_init): If we failed to generate some initializers
3201 do not generate zeros for not instantiated members. Instead
3202 rely on the copy out.
3203 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
3204 about missing flow-sensitive alias info only if we have
3207 2008-08-17 Nick Clifton <nickc@redhat.com>
3209 * doc/extend.texi (Function Attributes): Fix typo in description
3210 if hot function attribute.
3212 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
3213 Richard Sandiford <rdsandiford@googlemail.com>
3215 * doc/install.texi (--with-mips-plt): Document.
3216 * doc/invoke.texi (-mplt, -mno-plt): Document.
3217 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
3218 and handle ${with_mips_plt}.
3219 * config/mips/mips.opt (mplt): New option.
3220 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
3221 (TARGET_ABICALLS_PIC2): Likewise.
3222 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
3223 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
3224 (ASM_SPEC): Use !mabi=* instead of !mabi*.
3225 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
3226 to decide whether to output ".option picX" directives.
3227 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
3228 Pass -call_nonpic rather than -KPIC for -mplt.
3229 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
3230 on the command line. Also remove it when -mabi=64 is used without
3232 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
3233 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
3234 TARGET_ABICALLS_PIC0.
3235 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
3237 (mips16_build_function_stub): Only output ".option pic" directives
3238 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
3239 (mips16_build_call_stub): Fix comment and remove redundant
3240 ".set at"/"set .noat" directives.
3241 (mips_function_rodata_section): Use the default behaviour for
3242 TARGET_ABSOLUTE_ABICALLS.
3243 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
3244 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
3245 (mips_restore_gp): Do nothing if the current function doesn't use
3247 (mips_expand_prologue): Only save $gp if the current function uses it.
3248 Use a normal move for TARGET_ABICALLS_PIC0.
3249 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
3251 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
3253 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
3254 of function when handling GLOBAL_POINTER_REGNUM.
3256 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
3259 * common.opt (-fstack-check): Do not declare the variable here.
3260 (-fstack-check=): New option variant.
3261 * doc/invoke.texi (Code Gen Options): Document it.
3262 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
3263 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
3264 (STACK_CHECK_STATIC_BUILTIN): New macro.
3265 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
3266 * opts.c: Include expr.h.
3267 (common_handle_option) <OPT_fold_stack_check_>: New case.
3268 <OPT_fstack_check>: Likewise.
3269 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
3270 consistently in the test for variable-sized types. Adjust for
3271 new behaviour of flag_stack_check.
3272 * explow.c: Include except.h.
3273 (allocate_dynamic_stack_space): Do not take into account
3274 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
3275 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
3276 for variable-sized parameters. Treat all parameters whose size is
3277 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
3278 stack checking is enabled.
3279 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
3280 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
3281 if generic stack checking is enabled.
3282 (expand_function_end): Adjust for new behaviour of flag_stack_check.
3283 * reload1.c (reload): Likewise.
3284 * stmt.c (expand_decl): Assert that all automatic variables have
3285 fixed size at this point and remove dead code.
3286 * flags.h (stack_check_type): New enumeration type.
3287 (flag_stack_check): Declare.
3288 * toplev.c (flag_stack_check): New global variable.
3289 * Makefile.in (opts.o): Add dependency on EXPR_H.
3290 (explow.o): Add dependency on except.h.
3292 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
3294 * config/avr/avr.c (avr_override_options): Reduce value of
3295 PARAM_INLINE_CALL_COST.
3297 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
3299 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
3300 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
3301 lieu of TYPE_MODE (type) throughout.
3303 2008-08-15 Joseph Myers <joseph@codesourcery.com>
3305 * config/arm/arm.c (add_minipool_backward_ref): Check for
3306 8-byte-aligned entries in second case of forcing insertion after a
3307 particular entry. Change third case to avoid inserting
3308 non-8-byte-aligned entries before 8-byte-aligned ones.
3310 2008-08-15 Richard Guenther <rguenther@suse.de>
3312 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
3313 strip components for unknown size accesses.
3315 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
3317 * config/s390/2097.md New file.
3318 * config/s390/s390.md ("z10prop" attribute): Define none,
3319 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
3320 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
3321 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
3322 possible values and apply them to insns as appropriate.
3323 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
3324 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
3325 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
3326 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
3328 ("bfp" mode attribute): Removed. Every occurence replaced
3330 * config/s390/s390.c (struct "z10_cost"): Updated entries.
3331 * config/s390/2084.md (insn_reservation "x_itof"): Updated
3334 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3337 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
3340 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
3342 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
3343 additional argument. Support reduction when duplication is needed due
3344 to data-types of different sizes in the loop.
3345 (get_initial_def_for_induction): Fix printout.
3346 (vect_get_vec_def_for_stmt_copy): Support case where the
3347 vec_stmt_for_operand is a phi node.
3348 (vectorizable_reduction): Support reduction when duplication is needed
3349 due to data-types of different sizes in the loop.
3350 (vectorizable_call): Remove restriction to not vectorize in case we
3351 have data-types of different sizes in the loop.
3352 (vectorizable_conversion): Likewise.
3353 (vectorizable_operation): Likewise.
3354 (vectorizable_type_demotion): Likewise.
3355 (vectorizable_type_promotion): Likewise.
3356 (vectorizable_induction): Add restriction to not vectorize in case
3357 we have data-types of different sizes in the loop.
3359 2008-08-14 Christophe Saout <christophe@saout.de>
3360 Uros Bizjak <ubizjak@gmail.com>
3363 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
3364 (*vec_concatv2di_rex64_sse4_1): Ditto.
3365 (*vec_concatv2di_rex64_sse): Ditto.
3367 2008-08-14 Jakub Jelinek <jakub@redhat.com>
3370 * fold-const.c (fold_widened_comparison): Do not allow
3371 sign changes that change the result even if shorter type
3372 is wider than arg1_unw's type.
3374 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
3376 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
3377 Skip if the multilib testing specifies -march that does not
3378 agree with the one specified in the testcase.
3380 2008-08-13 Joseph Myers <joseph@codesourcery.com>
3382 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
3383 zero extend SImode values being converted to TFmode before passing
3386 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3388 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3389 __PPU__ when targeting the Cell/B.E. PPU processor.
3391 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
3393 * gimple.h (gimple_call_set_chain): Accept SSA variables.
3394 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
3395 Rematerialize the static chain, if any.
3396 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
3399 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
3401 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
3402 (new_loc_descr): Likewise.
3403 (add_loc_descr): Likewise.
3404 (size_of_loc_descr): Likewise.
3405 (size_of_locs): Likewise.
3406 (output_loc_operands): Likewise.
3407 (output_loc_sequence): Likewise.
3408 (new_reg_loc_descr): New.
3409 (build_cfa_loc): Use it.
3410 (build_cfa_aligned_loc): Likewise.
3411 (one_reg_loc_descriptor): Likewise.
3412 (based_loc_descr): Likewise.
3414 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3417 * doc/invoke.texi (Wmain): Update.
3418 * c-decl.c (start_decl): warn_main is only 0 or 1.
3419 (start_function): Likewise. Fix formatting.
3420 (finish_function): Delete redundant warning.
3421 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
3422 * c-opts (c_common_handle_option): -Wall only has effect if
3423 warn_main is uninitialized. OPT_Wmain is automatically
3424 handled. -pedantic also enables Wmain.
3425 (c_common_post_options): Handle all logic for Wmain here.
3426 * c-common.c (warn_main): Delete.
3427 (check_main_parameter_types): Make pedwarns conditional on
3429 * c-common.h (warn_main): Delete.
3431 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
3434 * expr.c (emit_group_store): Allocate stack temp with the
3435 largest alignment when copying from register to stack.
3437 2008-08-13 Richard Guenther <rguenther@suse.de>
3439 * tree.h (maybe_fold_offset_to_address): Declare.
3440 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
3441 (ccp_fold): Handle pointer conversions the same as fold_stmt.
3442 Likewise for POINTER_PLUS_EXPR.
3443 (maybe_fold_offset_to_reference): Enable disabled code.
3444 (maybe_fold_offset_to_address): New function.
3445 (fold_stmt_r): Use it.
3446 (fold_gimple_assign): Likewise.
3447 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
3448 (gimplify_expr): Likewise.
3450 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3452 * toplev.h (pedwarn_at): Fix declaration.
3454 2008-08-13 Joseph Myers <joseph@codesourcery.com>
3456 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3457 LINK_SPEC): Use %R in -Y P argument.
3459 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3462 * diagnostic.c (pedwarn_at): New.
3463 * toplev.h (pedwarn_at): Declare.
3464 * c-tree.h (build_enumerator): Update declaration.
3465 * c-decl.c (finish_enum): Update comment.
3466 (build_enumerator): Take a location parameter. Give a pedwarn but do
3467 not perform any conversion.
3468 * c-parser.c (c_parser_enum_specifier): Set correct location for
3471 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3474 * c-common.c (conversion_warning): Use a switch. Ignore boolean
3475 expressions except for conversions to signed:1 bitfields. Handle
3476 COND_EXPR with constant operands.
3478 2008-08-13 Richard Guenther <rguenther@suse.de>
3480 PR tree-optimization/15255
3481 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
3482 (struct oecount_s): New struct and VEC types.
3484 (oecount_hash): New function.
3485 (oecount_eq): Likewise.
3486 (oecount_cmp): Likewise.
3487 (zero_one_operation): New function.
3488 (build_and_add_sum): Likewise.
3489 (undistribute_ops_list): Perform un-distribution of multiplication
3490 and division on the chain of summands.
3491 (should_break_up_subtract): Also break up subtracts for factors.
3492 (reassociate_bb): Delete dead visited statements.
3493 Call undistribute_ops_list. Re-sort and optimize if it did something.
3494 * passes.c (init_optimization_passes): Move DSE before
3496 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
3499 2008-08-12 Janis Johnson <janis187@us.ibm.com>
3501 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
3503 * doc/invoke.texi: Revert unintended checkin.
3505 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
3508 * gcc.c (include_spec_function): Tweak call to find_a_file.
3510 2008-08-12 Jakub Jelinek <jakub@redhat.com>
3513 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
3514 and TRUTH_ORIF_EXPR.
3515 * dojump.c (do_jump): Likewise.
3517 PR tree-optimization/37084
3518 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
3519 if id->regimplify, don't assume stmt is a cast assignment.
3521 2008-08-12 Anatoly Sokolov <aesok@post.ru>
3523 * final.c (final_scan_insn): Use app_enable/app_disable functions.
3525 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3528 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
3531 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3533 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
3534 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
3536 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
3537 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
3538 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
3539 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
3540 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
3542 * doc/tm.texi (Storage Layout): Remove documentation for
3543 TARGET_FLOAT_FORMAT.
3545 * simplify-rtx.c (simplify_binary_operation_1): Replace
3546 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
3548 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3550 * real.h (struct real_format): New member has_sign_dependent_rounding.
3551 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
3552 spu_single_format, ieee_double_format, mips_double_format,
3553 motorola_double_format, ieee_extended_motorola_format,
3554 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
3555 ieee_extended_intel_96_round_53_format, ibm_extended_format,
3556 mips_extended_format, ieee_quad_format, mips_quad_format,
3557 vax_f_format, vax_d_format, vax_g_format): Initialize it.
3558 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
3560 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
3561 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
3562 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
3563 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
3564 (ROUND_TOWARDS_ZERO): Likewise.
3566 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
3567 (FLOAT_MODE_FORMAT): New macro.
3568 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
3569 (MODE_COMPOSITE_P): ... this new macro.
3570 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
3571 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
3572 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
3574 * flags.h: Include "real.h".
3576 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
3577 REAL_MODE_FORMAT_COMPOSITE_P.
3578 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
3580 * doc/tm.texi (Storage Layout): Remove documentation of
3581 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
3582 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
3583 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
3584 they only apply to libgcc2.a.
3586 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3588 * config/spu/float_disf.c: New file.
3589 * config/spu/float_unsdisf.c: New file.
3590 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
3591 (LIB2FUNCS_EXCLUDE): Define.
3593 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3594 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3596 * real.h (struct real_format): New member round_towards_zero.
3597 * real.c (round_for_format): Respect fmt->round_towards_zero.
3598 (ieee_single_format, mips_single_format, motorola_single_format,
3599 spu_single_format, ieee_double_format, mips_double_format,
3600 motorola_double_format, ieee_extended_motorola_format,
3601 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
3602 ieee_extended_intel_96_round_53_format, ibm_extended_format,
3603 mips_extended_format, ieee_quad_format, mips_quad_format,
3604 vax_f_format, vax_d_format, vax_g_format): Initialize it.
3605 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
3607 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
3608 real_format to choose rounding mode when calling MPFR functions.
3609 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
3610 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
3612 * real.h (real_to_decimal_for_mode): Add prototype.
3613 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
3614 Respect target rounding mode when generating decimal representation.
3615 (real_to_decimal): New stub for backwards compatibility.
3616 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
3617 real_to_decimal_for_mode instead of real_to_decimal.
3619 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
3621 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3622 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3624 * real.c (spu_single_format): New variable.
3625 * real.h (spu_single_format): Declare.
3627 * config/spu/spu.c (spu_override_options): Install SFmode format.
3628 (spu_split_immediate): Use integer mode to operate on pieces of
3629 floating-point values in all cases.
3631 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
3632 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
3633 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
3635 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3637 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
3639 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3641 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
3643 2008-08-12 Jakub Jelinek <jakub@redhat.com>
3646 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
3647 on the VAR_DECL instead of TYPE_READONLY on its type.
3649 2008-08-12 Ira Rosen <irar@il.ibm.com>
3651 * tree-vectorizer.c: Depend on langhooks.h.
3652 (supportable_widening_operation): Add two arguments. Support double
3654 (supportable_narrowing_operation): Likewise.
3655 * tree-vectorizer.h (supportable_widening_operation): Add two
3657 (supportable_narrowing_operation): Likewise.
3658 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
3659 supportable_widening_operation with correct arguments.
3660 * tree-vect-transform.c (vectorizable_conversion): Likewise.
3661 (vectorizable_type_demotion): Support double type conversions.
3662 (vectorizable_type_promotion): Likewise.
3663 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
3665 2008-08-11 Michael Matz <matz@suse.de>
3667 * i386/i386.c (override_options): Move initialisation from
3668 flag_schedule_insns_after_reload to here from ...
3669 (optimization_options): ... here.
3671 2008-08-11 Jakub Jelinek <jakub@redhat.com>
3673 PR rtl-optimization/36998
3674 * dwarf2out.c (compute_barrier_args_size_1,
3675 compute_barrier_args_size): Temporarily remove assertions.
3677 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3680 * tree-ssa.c (struct walk_data): Add new flag
3681 warn_possibly_uninitialized.
3682 (warn_uninitialized_var): Use it.
3683 (warn_uninitialized_vars): New.
3684 (execute_early_warn_uninitialized): Call it.
3685 (execute_late_warn_uninitialized): Likewise.
3687 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
3690 * reload1.c (gen_reload): Guard calls to get_secondary_mem
3693 2008-08-09 Jan Hubicka <jh@suse.cz>
3696 * optabs.c (maybe_emit_unop_insn): Remove produced code if
3698 (expand_fix): Be prepared for expansion to fail.
3699 (expand_sfix_optab): Remove instructions if expansion failed.
3701 2008-08-09 Anatoly Sokolov <aesok@post.ru>
3703 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
3705 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
3706 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3708 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3710 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
3711 mips/t-libgcc-mips16 to tmake_file.
3712 * config/mips/mips-protos.h (mips_call_type): New enum.
3713 (mips_pic_base_register, mips_got_load): Declare.
3714 (mips_restore_gp): Take an rtx argument.
3715 (mips_use_pic_fn_addr_reg_p): Declare.
3716 (mips_expand_call): Replace the sibcall_p argument with
3717 a mips_call_type argument. Add a lazy_p parameter.
3718 (mips_split_call): Declare.
3719 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
3720 (MIPS16_PIC_TEMP): Likewise.
3721 (reg_class): Delete M16_NA_REGS.
3722 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3723 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
3724 (mips_split_hi_p): Declare.
3725 * config/mips/mips.c (mips_split_hi_p): New array.
3726 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
3727 (mips_got_symbol_type_p): New function.
3728 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
3729 (mips16_stub_function_p): New function.
3730 (mips16_local_function_p): Likewise.
3731 (mips_use_pic_fn_addr_reg_p): Likewise.
3732 (mips_cannot_force_const_mem): Return false for HIGHs.
3733 Extend CONST_INT and symbolic handling to MIPS16, using
3734 mips_symbol_insns to check that the base symbol type is a
3735 legitimate constant. Reject GOT-based constants if
3736 TARGET_MIPS16_PCREL_LOADS.
3737 (mips_const_insns): Check targetm.cannot_force_const_mem when
3738 decomposing a symbolic base and a large offset.
3739 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
3740 When calling a function that needs $25 from MIPS16 code,
3741 move the target address into $25 separately and add a USE
3743 (mips16_gp_pseudo_reg): Insert the initializer immediately
3744 before the first real insn.
3745 (mips_pic_base_register, mips_got_load): New functions.
3746 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
3747 parameter to LOW_OUT. Say that it can be any valid SET_SRC
3748 when splitting a load-address operation. Split SYMBOL_GOT_DISP
3749 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
3750 (mips_call_tls_get_addr): Update the call to mips_expand_call,
3751 also passing NULL_RTX rather than const0_rtx as the aux argument.
3752 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
3753 instead of TARGET_EXPLICIT_RELOCS.
3754 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
3755 (mips_load_call_address): Replace the sibcall_p argument with
3756 a mips_call_type argument. Use mips_got_load.
3757 (mips16_local_alias): New structure.
3758 (mips16_local_aliases): New variable.
3759 (mips16_local_aliases_hash): New function.
3760 (mips16_local_aliases_eq): Likewise.
3761 (mips16_local_alias): Likewise.
3762 (mips16_stub_function): Likewise.
3763 (mips16_build_function_stub): Create a local alias for the target
3764 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
3765 .cpload directive and an R_MIPS_NONE relocation for the target
3766 function, then load the alias rather than the function itself.
3767 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
3768 (mips16_copy_fpr_return_value): Use mips16_stub_function and
3769 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
3770 (mips16_build_call_stub): Replace the FN parameter with an
3771 FN_PTR parameter. Force the address into a register if it
3772 isn't a call_insn_operand; don't rely on the caller to do this.
3773 If a call to a locally-defined and locally-binding MIPS16
3774 function must be made indirectly, redirect the call to the
3775 function's local alias. Use mips16_stub_function_p,
3776 mips16_stub_function, mips_expand_call and use_reg.
3777 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
3778 Use explicit %hi and %lo accesses where possible.
3779 Use MIPS_CALL to generate the correct code form of a
3780 jal instruction. Add clobbers of $18 instead of uses.
3781 Update the call to mips_emit_call_insn.
3782 (mips_expand_call): Replace the SIBCALL_P argument with a
3783 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
3784 Take a LAZY_P parameter. Call mips16_build_call_stub first,
3785 allowing it to modify the call address. Update the calls to
3786 mips_load_call_address and mips_emit_call_insn.
3787 (mips_split_call): New function.
3788 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
3789 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
3790 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
3791 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
3792 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
3794 (mips_cprestore_slot): New function.
3795 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
3796 and use mips_cprestore_slot.
3797 (mips_output_function_prologue): Handle TARGET_MIPS16 for
3799 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
3800 then use a copygp_mips16 instruction to set up $28.
3801 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
3802 (mips16_lay_out_constants): Call split_all_insns_noflow.
3803 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
3804 false if TARGET_MIPS16.
3805 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
3806 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
3807 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
3808 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
3809 MIPS16 code. Allow MIPS16 o32 PIC.
3810 (mips_override_options): Allow MIPS16 o32 PIC.
3811 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
3812 after reload if TARGET_USE_GOT.
3813 (UNSPEC_COPYGP): New constant.
3814 (length): Use a default length of 8 for MIPS16 GOT loads.
3815 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
3816 (*got_page<mode>): Check mips_split_hi_p.
3817 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
3818 (unspec_got<mode>, unspec_call<mode>): New expanders.
3819 (load_got<mode>, load_call<mode>): Remove the length attributes.
3820 Use a got attribute instead of a type attribute.
3821 (copygp_mips16): New insn.
3822 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
3823 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
3824 (sibcall, sibcall_value, call, call_value): Update the calls
3825 to mips_expand_call.
3826 (call_internal, call_value_internal): Use mips_split_call.
3827 (call_value_multiple_internal): Likewise.
3828 (call_split): Move after call_internal (the insn it is split from).
3829 (call_internal_direct, call_value_internal_direct): Turn into
3830 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
3831 (call_direct_split, call_value_direct_split): New patterns.
3832 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
3833 and use M16_REGS instead of M16_NA_REGS.
3834 * config/mips/predicates.md (const_call_insn_operand): Replace
3835 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
3836 mips_use_pic_fn_addr_reg_p check.
3837 (move_operand): Reject HIGHs if mips_split_hi_p.
3838 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
3839 (__mips16_floatunsisf): Inline __mips16_floatsisf.
3840 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
3841 * config/mips/libgcc-mips16.ver: New file.
3842 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
3843 $(srcdir)/config/mips/libgcc-mips16.ver.
3845 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3847 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
3848 (mips_unspec_address, mips_unspec_offset_high): Likewise.
3849 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
3850 (mips16_cfun_returns_in_fpr_p): Likewise.
3852 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3854 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
3855 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
3856 rather than 4 to PC.
3858 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3860 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
3861 (FUNCTION_PROFILER): Save the static chain pointer into $2
3862 beforehand and restore it aftewards.
3863 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
3864 address directly into $25 and call the function through $25;
3865 do not clobber $3. Pad the DImode version to cover the space
3866 left by the deleted $25 <- $3 move.
3867 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
3868 the removal of the $25 <- $3 move.
3869 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
3870 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
3872 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
3873 Daniel Jacobowitz <dan@codesourcery.com>
3875 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
3876 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
3877 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
3878 * config/mips/mips.c (mips_start_function_definition): New function.
3879 (mips_end_function_definition): Likewise.
3880 (mips_output_function_prologue): Use mips_start_function_definition.
3881 (mips_output_function_epilogue): Use mips_end_function_definition.
3882 (build_mips16_function_stub): Use mips_start_function_definition
3883 and mips_end_function_definition.
3884 (build_mips16_call_stub): Likewise.
3886 2008-08-09 Richard Guenther <rguenther@suse.de>
3888 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
3889 * gimple.h (gimple_call_fn): Adjust comment.
3890 (gimple_call_set_fndecl): New function.
3891 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
3892 longer having bare FUNCTION_DECL operand.
3893 (gimple_call_return_type): Likewise.
3894 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
3896 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
3897 (gimple_mod_pow2): Likewise.
3898 (gimple_mod_subtract): Likewise.
3899 (gimple_ic): Likewise.
3900 (gimple_stringop_fixed_value): Likewise.
3901 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
3902 longer having bare FUNCTION_DECL operand.
3903 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
3904 * omp-low.c (optimize_omp_library_calls): Likewise.
3905 * cgraphunit.c (update_call_expr): Likewise.
3906 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3907 (execute_convert_to_rsqrt): Likewise.
3908 * cfgexpand.c (gimple_to_tree): Simplify.
3909 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
3910 bare FUNCTION_DECL operand.
3911 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
3912 (convert_gimple_call): Use gimple_call_fndecl.
3913 * c-common.c (c_warn_unused_result): Likewise.
3915 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3918 * c-typeck.c (digest_init): Call verify_sequence_points from here.
3919 (c_finish_return): Likewise.
3920 (c_start_case): Likewise.
3921 * c-common.c (warn_for_collisions_1): Use explicit location in
3923 * c-parser.c (c_parser_condition): New. Call
3924 verify_sequence_points.
3925 (c_parser_paren_condition): Call c_parser_condition.
3926 (c_parser_for_statement): Call c_parser_condition.
3928 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3931 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
3932 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
3933 Moved from diagnostic.h
3934 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
3936 (emit_diagnostic): New.
3937 (warning0, pedwarn0): Delete.
3938 (warning, warning_at, pedwarn, permerror): Return bool.
3939 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
3940 Moved to diagnostic.c.
3941 (struct diagnostic_context): Use correct type for
3942 classify_diagnostic.
3943 (diagnostic_report_diagnostic): Update declaration.
3944 (emit_diagnostic): Declare.
3945 * errors.c (warning): Return bool.
3946 * errors.h (warning): Update declaration.
3947 * toplev.h (warning0, pedwarn0): Delete.
3948 (warning, warning_at, pedwarn, permerror): Return bool.
3949 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
3950 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
3951 inform. Update all calls.
3952 (diagnose_mismatched_decls): Check return value of warning/pedwarn
3953 before giving informative note.
3954 (implicit_decl_warning): Likewise.
3955 * c-typeck.c (build_function_call): Likewise.
3956 * tree-sssa.c (warn_uninit): Likewise.
3957 * builtins.c (gimplify_va_arg_expr): Likewise.
3959 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3962 * doc/invoke.texi (-Wextra): Move warning from here...
3963 (-Wuninitialized): ... to here.
3965 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3968 * flags.h (set_Wunused): Delete
3969 * toplev.c (process_options): Handle Wunused flags here.
3970 * opts.c (maybe_warn_unused_parameter): Delete.
3971 (common_handle_option): Replace set_Wunused by warn_unused.
3972 (set_Wextra): Do not handle Wunused-parameter here.
3973 (set_Wunused): Delete.
3974 * c-opts.c (c_common_handle_option): Replace set_Wunused by
3976 * common.opt (Wunused): Add Var and Init.
3977 (Wunused-function): Likewise.
3978 (Wunused-label): Likewise.
3979 (Wunused-parameter): Likewise.
3980 (Wunused-value): Likewise.
3981 (Wunused-variable): Likewise.
3983 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
3985 * doc/invoke.texi: Add cpu_type power7.
3986 * config.in (HAVE_AS_VSX): New.
3987 * config.gcc: Add cpu_type power7.
3988 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
3990 * configure: Regenerate.
3991 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
3993 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
3994 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
3995 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
3997 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
3999 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4000 type to vectorize.builtin_conversion.
4001 (vectorizable_conversion): Likewise.
4002 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4003 integral type as input.
4004 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4006 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4007 and ALTIVEC_BUILTIN_VCTSXS.
4008 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4011 2008-08-08 Richard Guenther <rguenther@suse.de>
4013 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
4014 (surely_varying_stmt_p): Calls are varying only if they are
4015 non-builtin and not indirect or have no result.
4016 (ccp_fold): Re-instantiate code before the tuples merge.
4018 2008-08-08 Richard Guenther <rguenther@suse.de>
4020 PR tree-optimization/37056
4021 * gimple.h (gimple_assign_rhs_class): New helper function.
4022 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
4023 unary operations properly.
4025 2008-08-07 Jan Hubicka <jh@suse.cz>
4027 * i386.h (ix86_size_cost): Declare.
4028 (ix86_cur_cost): New function macro.
4029 * i386.md (peepholes expanding size and splitters): Predicate by
4030 optimize_insn_for_speed_p.
4031 (peepholes reduce size and splitters): Predicate by
4032 optimize_insn_for_size_p.
4033 * i386.c (ix86_size_cost): Rename from ...
4034 (size_cost): This one.
4035 (override_options): Update.
4036 (decide_alg): Likewise.
4037 (ix86_expand_clear): Use RTL profile.
4038 (ix86_pad_returns): Use RTL profile.
4040 2008-08-07 Jan Hubicka <jh@suse.cz>
4042 * recog.c (split_all_insns): Set RTL profile
4043 (peephole2_optimize): Likewise.
4044 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4045 * combine.c (combine_instructions): Likewise.
4047 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4049 * c-common.c (c_common_reswords): Also warn about keyword "bool".
4051 2008-08-07 Bob Wilson <bob.wilson@acm.org>
4053 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
4054 value in a6 after the set_frame_ptr insn.
4056 2008-08-07 Richard Henderson <rth@redhat.com>
4059 * gcc.c (cpp_options): Pass along -g*.
4061 2008-08-07 Joseph Myers <joseph@codesourcery.com>
4063 * config/arm/arm.c (output_move_neon): Update comment describing
4064 big-endian vector layout.
4065 (arm_assemble_integer): Do not handle big-endian NEON vectors
4067 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
4068 neon_vget_lane<mode>_sext_internal,
4069 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
4070 element indices for big-endian.
4072 2008-08-07 Richard Henderson <rth@redhat.com>
4074 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
4075 * configure, config.in: Rebuild.
4076 * debug.h (dwarf2out_do_cfi_asm): Declare.
4077 * c-cppbuiltin.c (c_cpp_builtins): Use it.
4078 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
4079 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
4080 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
4082 2008-08-07 Joseph Myers <joseph@codesourcery.com>
4084 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4085 movv2si_internal): Combine into mov<mode>_internal.
4086 (movv2si_internal_2): Remove.
4088 2008-08-07 Jan Hubicka <jh@suse.cz>
4091 * i386.md (single stringop patterns): Enable unconditionally.
4093 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
4096 * config/i386/emmintrin.h (_mm_move_epi64): Use
4097 __builtin_ia32_movq128.
4099 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
4100 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
4102 * config/i386/sse.md (sse2_movq128): New.
4104 * doc/extend.texi: Document __builtin_ia32_movq128.
4106 2008-08-07 Richard Guenther <rguenther@suse.de>
4109 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
4110 pointers can access anything.
4112 2008-08-06 Jan Hubicka <jh@suse.cz>
4114 * optabs.c (emit_unop_insn): Break out to ...
4115 (maybe_emit_unop_insn): ... this one.
4116 (expand_sfix_optab): Use maybe variant.
4117 * optabs.h (maybe_emit_unop_insn): Declare.
4119 * i386.md (mov0 patterns): Enable by default.
4120 (FP conversion expanders): Disable expansion of code expanding
4121 sequences when instruction should be optimized for size.
4122 (single strinop patterns): Enable when optimizing for size.
4123 (string expanders): Disable expanding of code expanding sequences
4124 when optimizning instruction for size.
4125 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
4127 (ix86_fp_comparison_sahf_cost): Likewise.
4128 (ix86_expand_branch): Likewise.
4129 (ix86_expand_ashl_const): Likewise.
4130 (ix86_split_ashl): Likewise.
4131 (ix86_expand_strlen): Likewise.
4132 (ix86_emit_fp_unordered_jump): Likewie.
4134 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4136 * c-common.c: Fix typo.
4137 (c_common_reswords): Activate more C++ keyword warnings.
4139 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
4141 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4144 * diagnostic.c (permerror_at): New.
4145 * toplev.h (permerror_at): Declare.
4147 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
4148 Ira Rosen <irar@il.ibm.com>
4150 * tree-vect-transform.c (vect_model_simple_cost): Return
4151 immediately if stmt is pure SLP.
4152 (vect_model_store_cost): Ditto.
4153 (vect_model_load_cost): Ditto.
4154 (vectorizable_store): Remove PURE_SLP check before call
4155 to vect_model_store_cost.
4156 (vect_model_store_cost): When checking whether stmt describe
4157 strided access, add a check that it is not slp_node.
4159 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4162 * c-common.c (warn_for_sign_compare): New. Handle separately the
4163 case that 'constant' is zero.
4164 * c-typeck.c (build_binary_op): Move code to c-common.c
4166 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4168 * config/alpha/alpha.c (alpha_preferred_reload_class,
4169 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
4170 alpha_output_mi_thunk_osf): Avoid C++ keywords.
4171 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
4172 * config/arm/arm.md: Likewise.
4173 * config/avr/avr-protos.h (preferred_reload_class,
4174 test_hard_reg_class, avr_simplify_comparison_p,
4175 out_shift_with_cnt, class_max_nregs): Likewise.
4176 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
4177 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
4178 preferred_reload_class, test_hard_reg_class): Likewise.
4179 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
4180 bfin_memory_move_cost, bfin_secondary_reload,
4181 bfin_output_mi_thunk): Likewise.
4182 * config/crx/crx.c (crx_secondary_reload_class,
4183 crx_memory_move_cost): Likewise.
4184 * config/frv/frv-protos.h (frv_secondary_reload_class,
4185 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
4186 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
4187 frv_secondary_reload_class, frv_class_likely_spilled_p,
4188 frv_class_max_nregs): Likewise.
4189 * config/h8300/h8300.c (h8300_classify_operand,
4190 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
4192 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
4193 * config/ia64/ia64.c (ia64_preferred_reload_class,
4194 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
4195 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
4196 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
4198 * config/m68hc11/m68hc11.c (preferred_reload_class,
4199 m68hc11_memory_move_cost): Likewise.
4200 * config/mcore/mcore.c (mcore_secondary_reload_class,
4201 mcore_reload_class): Likewise.
4202 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
4203 mips_class_max_nregs, mips_cannot_change_mode_class,
4204 mips_preferred_reload_class, mips_secondary_reload_class,
4205 mips_output_mi_thunk): Likewise.
4206 * config/mmix/mmix.c (mmix_preferred_reload_class,
4207 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
4209 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4211 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
4212 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
4213 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4214 * config/rs6000/rs6000.c (paired_expand_vector_init,
4215 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
4216 compare_section_name, rs6000_memory_move_cost): Likewise.
4217 * config/s390/s390.c (s390_emit_compare_and_swap,
4218 s390_preferred_reload_class, s390_secondary_reload,
4219 legitimize_pic_address, legitimize_tls_address,
4220 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
4221 s390_class_max_nregs): Likewise.
4222 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4223 * config/s390/s390.md: Likewise.
4224 * config/score/score-protos.h (score_secondary_reload_class,
4225 score_preferred_reload_class): Likewise.
4226 * config/score/score.c (score_preferred_reload_class,
4227 score_secondary_reload_class): Likewise.
4228 * config/score/score3.c (score3_output_mi_thunk,
4229 score3_preferred_reload_class, score3_secondary_reload_class,
4230 score3_hard_regno_mode_ok): Likewise.
4231 * config/score/score3.h (score3_preferred_reload_class,
4232 score3_secondary_reload_class): Likewise.
4233 * config/score/score7.c (score7_output_mi_thunk,
4234 score7_preferred_reload_class, score7_secondary_reload_class,
4235 score7_hard_regno_mode_ok): Likewise.
4236 * config/score/score7.h (score7_preferred_reload_class,
4237 score7_secondary_reload_class): Likewise.
4238 * config/sh/sh.c (prepare_move_operands, output_far_jump,
4239 output_branchy_insn, add_constant, gen_block_redirect,
4240 sh_insn_length_adjustment, sh_cannot_change_mode_class,
4241 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
4243 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4244 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
4245 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
4246 xstormy16_preferred_reload_class): Likewise.
4247 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
4248 xtensa_expand_atomic, override_options,
4249 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
4251 * reorg.c (try_merge_delay_insns): Likewise.
4252 * tree.c (merge_dllimport_decl_attributes): Likewise.
4254 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
4256 2008-08-06 Michael Matz <matz@suse.de>
4258 * Makefile.in (write_entries_to_file): Quote words.
4259 * gengtype.c: (read_input_line): Skip over leading white-space.
4261 2008-08-06 Marc Gauthier <marc@tensilica.com>
4263 * config.gcc: Match more processor names for Xtensa.
4264 * configure.ac: Likewise.
4265 * doc/install.texi (Specific): Likewise.
4266 * configure: Regenerate.
4268 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4270 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
4271 * calls.c (avoid_likely_spilled_reg): Likewise.
4272 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
4273 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
4274 * config/i386/i386.c (ix86_expand_special_args_builtin,
4275 ix86_secondary_reload): Likewise.
4276 * except.c (struct eh_region, gen_eh_region_catch,
4277 remove_unreachable_regions, duplicate_eh_regions,
4278 assign_filter_values, build_post_landing_pads,
4279 sjlj_find_directly_reachable_regions, remove_eh_handler,
4280 reachable_next_level, foreach_reachable_handler,
4281 can_throw_internal_1, can_throw_external_1,
4282 collect_one_action_chain): Likewise.
4283 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
4284 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
4285 * function.c (update_temp_slot_address, instantiate_new_reg,
4286 instantiate_virtual_regs_in_rtx,
4287 instantiate_virtual_regs_in_insn): Likewise.
4288 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
4289 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
4290 gimplify_cleanup_point_expr): Likewise.
4291 * ipa-cp.c (ipcp_lattice_changed): Likewise.
4292 * passes.c (next_pass_1): Likewise.
4293 * print-tree.c (print_node_brief, print_node): Likewise.
4294 * profile.c (branch_prob): Likewise.
4295 * tree-dump.c (dump_register): Likewise.
4296 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
4298 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
4299 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
4300 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
4301 copy_arguments_for_versioning, copy_static_chain): Likewise.
4302 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
4303 add_new_name_mapping, register_new_name_mapping): Likewise.
4304 * tree-mudflap.c (mf_xform_derefs): Likewise.
4305 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
4306 get_init_expr, combine_chains): Likewise.
4307 * tree-pretty-print.c (dump_generic_node): Likewise.
4308 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
4309 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
4310 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
4311 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
4313 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
4316 * calls.c (expand_call): Use the biggest preferred stack
4319 2008-08-06 Michael Matz <matz@suse.de>
4322 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
4323 for reused reload, instead of overwriting them.
4325 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
4328 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
4329 for incoming stack boundary.
4331 * function.c (assign_parm_find_entry_rtl): Update
4332 parm_stack_boundary.
4334 * function.h (rtl_data): Add parm_stack_boundary.
4336 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
4337 parm_stack_boundary for incoming stack boundary.
4339 2008-08-06 Joseph Myers <joseph@codesourcery.com>
4341 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
4342 for unrepresentable subregs or treat them as equal to other regs
4343 or subregs with the same register number.
4345 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
4348 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
4351 2008-08-06 Jan Hubicka <jh@suse.cz>
4353 * predict.c (maybe_hot_frequency_p): When profile is absent, all
4354 frequencies might be hot.
4356 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
4358 * reload.c (find_reloads): Force constants into literal pool
4359 also if they are wrapped in a SUBREG.
4361 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4364 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
4365 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
4366 Don't allow predicated instructions for data speculation.
4367 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
4370 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4372 * haifa-sched.c (extend_global): Split to extend_global_data and
4373 extend_region_data. Update all uses.
4374 (extend_all): Rename to extend_block_data.
4376 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4378 * sched-rgn.c (new_ready): Check if instruction can be
4379 speculatively scheduled before attempting speculation.
4380 (debug_rgn_dependencies): Remove wrongful assert.
4382 2008-08-05 Bob Wilson <bob.wilson@acm.org>
4384 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
4386 2008-08-05 Bob Wilson <bob.wilson@acm.org>
4388 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
4389 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
4390 va_size, and type_size.
4392 2008-08-04 Jason Merrill <jason@redhat.com>
4395 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
4396 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
4398 2008-08-05 Richard Henderson <rth@redhat.com>
4400 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
4401 * configure: Rebuild.
4403 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
4406 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
4407 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
4410 2008-08-05 Richard Henderson <rth@redhat.com>
4412 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
4413 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
4414 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
4415 * common.opt (fdwarf2-cfi-asm): New.
4416 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
4417 * config.in, configure: Rebuild.
4418 * dwarf2asm.c (dw2_asm_output_data_raw): New.
4419 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
4420 (dw2_force_const_mem): Externalize.
4421 * dwarf2asm.h: Update.
4422 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
4423 generate a real label.
4424 (output_cfi_directive): New.
4425 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
4426 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
4427 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
4429 (dwarf2out_end_epilogue): Emit .cfi_endproc.
4430 (output_loc_operands_raw, output_loc_sequence_raw): New.
4431 (output_cfa_loc_raw): New.
4433 2008-08-05 Paul Brook <paul@codesourcery.com>
4435 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
4436 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
4437 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
4438 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
4439 * config/arm/arm.h (TARGET_VFPD32): Define.
4440 (TARGET_VFP3): Use TARGET_VFPD32.
4441 (fputype): Add FPUTYPE_VFP3D16.
4442 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
4443 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
4444 * config/arm/arm-cores.def: Add cortex-r4f.
4445 * config/arm/arm-tune.md: Regenerate.
4447 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4449 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
4450 Reword some comments throughout the file.
4452 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
4453 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
4454 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
4455 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
4457 (MFC_START_ENABLE): Remove PPU-only define.
4458 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
4459 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
4461 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
4462 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
4463 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
4464 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
4465 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
4466 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
4467 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
4469 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
4470 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
4471 (mfc_sdcrt, mfc_sdcrtst): Likewise.
4472 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
4474 (spu_read_machine_status): Fix typo.
4476 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4478 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
4479 SUBREG of multi-word hard register.
4480 * config/spu/spu.c (valid_subreg): Likewise.
4481 (adjust_operand): Handle SUBREGs of multi-word hard registers.
4483 2008-08-04 Richard Guenther <rguenther@suse.de>
4485 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
4486 the candidate with the stripped base if that base is different
4487 from the original base even for offset zero.
4489 2008-08-04 Richard Guenther <rguenther@suse.de>
4492 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
4493 check for no_overflow.
4495 2008-08-04 Richard Guenther <rguenther@suse.de>
4497 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
4499 2008-08-04 Paul Brook <paul@codesourcery.com>
4501 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
4502 (arm_order_regs_for_local_alloc): New function.
4503 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
4505 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
4507 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
4510 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
4511 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
4512 (ix86_expand_epilogue): Likewise.
4514 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
4516 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
4519 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
4521 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
4522 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
4523 (*movv2sf_internal_rex64): Ditto.
4525 2008-08-03 Jan Hubicka <jh@suse.cz>
4527 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
4528 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
4529 * expmed.c (expand_smod_pow2): Likewise.
4531 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
4534 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
4535 alternative 0 of operand 1.
4536 (*vec_concatv2di_rex64_sse): Ditto.
4537 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
4539 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
4540 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
4541 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
4542 (*movv2sf_internal_rex64): Ditto.
4544 2008-08-02 Richard Guenther <rguenther@suse.de>
4547 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
4548 (ssedoublesizemode): New mode attribute.
4549 (sse_shufps): Call gen_sse_shufps_v4sf.
4550 (sse_shufps_1): Macroize.
4551 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
4552 (sse2_shufpd_1): Macroize.
4553 (vec_extract_odd, vec_extract_even): New expanders.
4554 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
4555 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
4556 * i386.c (ix86_expand_vector_init_one_nonzero): Call
4557 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
4558 (ix86_expand_vector_set): Likewise.
4559 (ix86_expand_reduc_v4sf): Likewise.
4561 2008-08-01 Doug Kwan <dougkwan@google.com>
4563 * matrix-reorg.c: Re-enable all code.
4564 (struct malloc_call_data): Change CALL_STMT to gimple type.
4565 (collect_data_for_malloc_call): Tuplify.
4566 (struct access_site_info): Change STMT to gimple type.
4567 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
4568 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
4569 (struct free_info): Change STMT to gimple type.
4570 (struct matrix_access_phi_node): Change PHI to gimple type.
4571 (get_inner_of_cast_expr): Remove.
4572 (may_flatten_matrices_1): Tuplify.
4573 (may_flatten_matrices): Ditto.
4574 (mark_min_matrix_escape_level): Ditto.
4575 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
4576 (ssa_accessed_in_call_rhs): New
4577 (ssa_accessed_in_assign_rhs): New
4578 (record_access_alloc_site_info): Tuplify.
4579 (add_allocation_site): Ditto.
4580 (analyze_matrix_allocation_site): Ditto.
4581 (analyze_transpose): Ditto.
4582 (get_index_from_offset): Ditto.
4583 (update_type_size): Ditto.
4584 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
4585 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
4586 (analyze_accesses_for_phi_node): Tuplify.
4587 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
4588 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
4589 (analyze_matrix_accesses): Tuplify.
4590 (check_var_data): New call-back type for check_var_notmodified_p.
4591 (check_var_notmodified_p): Tuplify and use call-back struct to
4592 return statement found.
4593 (can_calculate_expr_before_stmt): Factor out statement related code
4595 (can_calculate_stmt_before_stmt): New.
4596 (check_allocation_function): Tuplify.
4597 (find_sites_in_func): Ditto.
4598 (record_all_accesses_in_func): Ditto.
4599 (transform_access_sites): Ditto.
4600 (transform_allocation_sites): Ditto.
4601 (matrix_reorg): Re-enable.
4602 (gate_matrix_reorg): Re-enable.
4604 2008-08-01 Jakub Jelinek <jakub@redhat.com>
4606 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
4607 for labels for which it hasn't been set yet. If it has been set,
4608 stop walking insns and continue with next worklist item.
4609 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
4610 if the only BARRIER is at the very end of a function.
4612 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
4614 * cfgexpand.c (expand_stack_alignment): Assert that
4615 stack_realign_drap and drap_rtx must match.
4617 * function.c (instantiate_new_reg): If DRAP is used to realign
4618 stack, replace virtual_incoming_args_rtx with internal arg
4621 2008-08-01 Richard Guenther <rguenther@suse.de>
4623 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
4624 loop information only if we initialized it.
4625 (execute_pre): Call fini_pre with in_fre.
4626 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
4627 if we do not unroll because we hit max-completely-peeled-insns.
4628 Use our estimation for consistency, do allow shrinking.
4630 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
4632 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
4633 with MIN_STACK_BOUNDARY.
4634 (ix86_update_stack_boundary): Likewise.
4635 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
4638 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
4639 (MIN_STACK_BOUNDARY): This.
4641 2008-08-01 Richard Guenther <rguenther@suse.de>
4644 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
4646 2008-08-01 Richard Guenther <rguenther@suse.de>
4648 PR tree-optimization/36988
4649 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
4650 do not matter if that doesn't change volatile qualification.
4652 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
4654 * configure.ac: Do not generate libada-mk. Do not subst
4656 * libada-mk.in: Remove.
4657 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
4658 * configure: Regenerate.
4660 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
4662 * tree-pass.h: Added comment about not dumping passes with name
4663 starting with star in struct opt_pass.
4664 * passes.c (register_dump_files_1): Don't do dump for a pass with
4665 name starting with star.
4666 * doc/passes.texi (Pass manager): Mention pass names and special
4667 meaning of star prefix to avoid dump.
4669 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
4671 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
4673 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
4674 (ISA_MIPS64R2): New macro.
4675 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
4676 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
4677 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
4678 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
4679 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
4680 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
4681 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
4682 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
4683 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
4684 Move up to keep list alphabetically sorted.
4685 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
4686 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
4688 * doc/invoke.texi (MIPS Options): Add -mips64r2.
4689 (-march=@var{arch}): Add mips64r2.
4691 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
4693 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
4695 2008-07-31 Steve Ellcey <sje@cup.hp.com>
4697 * expr.c (expand_assignment): Check for complete type.
4699 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
4702 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
4704 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
4705 for stack alignment.
4707 * function.h (rtl_data): Add stack_realign_tried. Update comments.
4709 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4711 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
4712 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
4714 2008-07-31 Jakub Jelinek <jakub@redhat.com>
4716 PR rtl-optimization/36419
4717 * dwarf2out.c (barrier_args_size): New variable.
4718 (compute_barrier_args_size, compute_barrier_args_size_1): New
4720 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
4721 if not called yet in the current function, use barrier_args_size
4722 array to find the new args_size value.
4723 (dwarf2out_frame_debug): Free and clear barrier_args_size.
4725 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
4728 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
4731 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
4734 * dwarf2out.c (dwarf2out_args_size_adjust): New.
4735 (dwarf2out_stack_adjust): Use it.
4736 (dwarf2out_frame_debug_expr): Likewise.
4738 2008-07-31 Richard Guenther <rguenther@suse.de>
4740 PR tree-optimization/36978
4741 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
4742 the generated condition.
4744 2008-07-31 Richard Guenther <rguenther@suse.de>
4746 * passes.c (init_optimization_passes): Always call
4747 pass_early_warn_uninitialized.
4748 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
4749 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
4750 * doc/passes.texi (Warn for uninitialized variables): Adjust.
4752 2008-07-31 Jakub Jelinek <jakub@redhat.com>
4755 * builtins.c (maybe_emit_free_warning): New function.
4756 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
4757 maybe_emit_free_warning for BUILT_IN_FREE.
4760 * dwarf2out.c (get_context_die): New function.
4761 (force_decl_die, force_type_die): Use it.
4762 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
4763 returns NULL, force generation of DW_TAG_typedef and put that into
4766 PR preprocessor/36649
4767 * c-pch.c (c_common_read_pch): Save and restore
4768 line_table->trace_includes across PCH restore.
4770 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
4773 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
4775 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
4778 * final.c (call_from_call_insn): Handle COND_EXEC.
4780 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
4782 * builtins.c (std_gimplify_va_arg_expr): Replace
4783 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
4784 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4786 2008-07-30 Joey Ye <joey.ye@intel.com>
4787 H.J. Lu <hongjiu.lu@intel.com>
4789 * builtins.c (expand_builtin_setjmp_receiver): Replace
4790 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
4791 (expand_builtin_apply_args_1): Likewise.
4792 (expand_builtin_longjmp): Need DRAP for stack alignment.
4793 (expand_builtin_apply): Likewise.
4795 * caller-save.c (setup_save_areas): Call assign_stack_local_1
4796 instead of assign_stack_local to allow alignment reduction.
4798 * calls.c (emit_call_1): Need DRAP for stack alignment if
4800 (expand_call): Replace virtual_incoming_args_rtx with
4801 crtl->args.internal_arg_pointer.
4802 * stmt.c (expand_nl_goto_receiver): Likewise.
4804 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
4805 alignment and store to stack_alignment_estimated and
4806 max_used_stack_slot_alignment.
4807 (expand_one_var): Likewise.
4808 (expand_stack_alignment): New function.
4809 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
4810 and stack_alignment_estimated fields in rtl_data. Call
4811 expand_stack_alignment at end.
4813 * defaults.h (INCOMING_STACK_BOUNDARY): New.
4814 (MAX_STACK_ALIGNMENT): Likewise.
4815 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
4816 (SUPPORTS_STACK_ALIGNMENT): Likewise.
4818 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
4819 stack alignment when generating virtual registers.
4821 * function.c (assign_stack_local): Renamed to ...
4822 (assign_stack_local_1): This. Add a parameter to indicate
4823 if it is OK to reduce alignment.
4824 (assign_stack_local): Use it.
4825 (instantiate_new_reg): Instantiate virtual incoming args rtx
4826 to vDRAP if stack realignment and DRAP is needed.
4827 (assign_parms): Collect parameter/return type alignment and
4828 contribute to stack_alignment_estimated.
4829 (locate_and_pad_parm): Likewise.
4830 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
4831 with crtl->args.internal_arg_pointer.
4833 * function.h (rtl_data): Add new field drap_reg,
4834 max_used_stack_slot_alignment, stack_alignment_estimated,
4835 stack_realign_needed, need_drap, stack_realign_processed and
4836 stack_realign_finalized.
4837 (stack_realign_fp): New macro.
4838 (stack_realign_drap): Likewise.
4840 * global.c (compute_regsets): Frame pointer is needed when
4841 stack is realigned. Can eliminate frame pointer when stack is
4842 realigned and dynamic realigned argument pointer isn't used.
4844 * reload1.c (update_eliminables): Frame pointer is needed
4845 when stack is realigned.
4846 (init_elim_table): Can eliminate frame pointer when stack is
4847 realigned and dynamic realigned argument pointer isn't used.
4849 * rtl.h (assign_stack_local_1): Declare new funtion.
4851 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
4852 (TARGET_GET_DRAP_RTX): Likewise.
4853 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
4854 TARGET_GET_DRAP_RTX.
4856 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
4858 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
4859 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
4861 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
4862 H.J. Lu <hongjiu.lu@intel.com>
4864 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
4865 vdrap_reg, stack_realign and drap_reg_saved.
4866 (add_cfi): Don't allow redefining CFA when DRAP is used.
4867 (reg_save): Handle stack alignment.
4868 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
4869 alignment. Don't generate DWARF information for (set fp sp)
4871 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
4873 (int_loc_descriptor): Move prototype forward. Also define if
4874 DWARF2_UNWIND_INFO is true.
4875 (output_cfa_loc): Handle DW_CFA_expression.
4876 (build_cfa_aligned_loc): New.
4877 (based_loc_descr): Update assert for stack realign. For local
4878 variables, use sp+offset when stack is aligned without drap and
4879 fp+offset when stack is aligned with drap. For arguments, use
4880 cfa+offset when drap is used to align stack.
4882 2008-07-30 Joey Ye <joey.ye@intel.com>
4883 H.J. Lu <hongjiu.lu@intel.com>
4885 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
4887 (ix86_gen_andsp): New.
4888 (ix86_user_incoming_stack_boundary): Likewise.
4889 (ix86_default_incoming_stack_boundary): Likewise.
4890 (ix86_incoming_stack_boundary): Likewise.
4891 (ix86_can_eliminate): Likewise.
4892 (find_drap_reg): Likewise.
4893 (ix86_update_stack_boundary): Likewise.
4894 (ix86_get_drap_rtx): Likewise.
4895 (ix86_finalize_stack_realign_flags): Likewise.
4896 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
4897 (TARGET_GET_DRAP_RTX): Likewise.
4898 (override_options): Overide option value for new options.
4899 (ix86_function_ok_for_sibcall): Remove check for
4900 force_align_arg_pointer.
4901 (ix86_handle_cconv_attribute): Likewise.
4902 (ix86_function_regparm): Likewise.
4903 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
4904 (ix86_va_start): Replace virtual_incoming_args_rtx with
4905 crtl->args.internal_arg_pointer.
4906 (ix86_select_alt_pic_regnum): Check DRAP register.
4907 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
4908 (ix86_compute_frame_layout): Compute frame layout wrt stack
4910 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
4911 (ix86_expand_prologue): Decide if stack realignment is needed
4912 and generate prologue code accordingly.
4913 (ix86_expand_epilogue): Generate epilogue code wrt stack
4914 realignment is really needed or not.
4916 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
4917 (ABI_STACK_BOUNDARY): Likewise.
4918 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
4919 (STACK_REALIGN_DEFAULT): Likewise.
4920 (INCOMING_STACK_BOUNDARY): Likewise.
4921 (MAX_STACK_ALIGNMENT): Likewise.
4922 (ix86_incoming_stack_boundary): Likewise.
4923 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
4924 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
4925 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
4926 (machine_function): Remove force_align_arg_pointer.
4928 * config/i386/i386.md (BX_REG): New.
4929 (R13_REG): Likewise.
4931 * config/i386/i386.opt (mforce_drap): New.
4932 (mincoming-stack-boundary): Likewise.
4933 (mstackrealign): Add Init(-1).
4935 * config/i386/i386-protos.h (ix86_can_eliminate): New
4937 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
4939 * doc/extend.texi: Update force_align_arg_pointer.
4941 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
4944 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
4945 (INCOMING_STACK_BOUNDARY): Likewise.
4946 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
4947 (TARGET_GET_DRAP_RTX): Likewise.
4949 2008-07-30 Andreas Schwab <schwab@suse.de>
4951 PR rtl-optimization/36929
4952 * dse.c (replace_inc_dec): Use emit_insn_before instead of
4953 add_insn_before and fix argument order.
4954 (replace_inc_dec_mem): Handle NULL rtx.
4956 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
4958 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
4960 (arm_compute_initial_elimination_offset): Use it.
4961 (arm_compute_save_reg_mask): Include static chain save slot when
4962 calculating alignment.
4963 (arm_get_frame_offsets): Ditto.
4964 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
4965 that we can use to decrement the stack when the stack decrement
4966 could be too big for an immediate value in a single insn.
4967 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
4969 2008-07-30 Richard Guenther <rguenther@suse.de>
4971 PR tree-optimization/36967
4972 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
4973 Release defs of statements we remove.
4975 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
4977 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
4978 instead of NULL_RTVEC.
4980 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
4984 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
4987 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
4989 * final.c (call_from_call_insn): New.
4990 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
4992 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
4994 * configure.ac: Substitute ADA_CFLAGS.
4995 * configure: Regenerate.
4996 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
4997 * Makefile.in: Remove mention of X_* variables.
4998 * config/pa/x-ada-hpux10: Remove.
4999 * config/pa/x-ada: Remove.
5001 * doc/fragments.texi: Update.
5003 2008-07-30 Olivier Hainque <hainque@adacore.com>
5005 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5006 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5007 __dso_handle explicitly here.
5009 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5012 * c-typeck.c (build_binary_op): Encapsulate code into...
5013 * c-common.c (shorten_binary_op): ...this new function.
5014 (conversion_warning): Use the new function. Handle non-negative
5015 constant in bitwise-and.
5016 * c-common.h (shorten_binary_op): Declare.
5018 2008-07-30 Olivier Hainque <hainque@adacore.com>
5020 * scan.c (make_sstring_space): Add explicit conversions of
5021 allocator's return value.
5022 * fix-header.c (recognized_function): Likewise.
5024 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5026 * doc/cpp.texi: Update to GFDL 1.2.
5027 * doc/gcc.texi: Do not list GPL as Invariant Section.
5028 * doc/gccint.texi: Likewise. Update copyright years.
5029 * doc/install.texi: Update copyright years.
5031 2008-07-30 Alan Modra <amodra@bigpond.net.au>
5034 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
5035 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
5037 2008-07-29 Jan Hubicka <jh@suse.cz>
5039 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
5040 (grokdeclarator): Likewise.
5041 * langhooks.c (lhd_warn_unused_global_decl): Use
5042 DECL_DECLARED_INLINE_P.
5043 * print-tree.c (print_node): Remove DECL_INLINE check.
5045 2008-07-29 Richard Guenther <rguenther@suse.de>
5047 PR tree-optimization/36945
5048 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
5049 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
5050 Record invariant addresses un-decomposed.
5051 (copy_reference_ops_from_call): Record reference call
5052 arguments properly. Simplify.
5053 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
5054 helper split out from ...
5055 (create_component_ref_by_pieces): ... here. Simplify.
5056 Prepare for recursive invocation for call arguments.
5057 (create_expression_by_pieces): Adjust call to
5058 create_component_ref_by_pieces.
5059 (compute_avail): Process operand 2 of reference ops.
5061 2008-07-29 Richard Guenther <rguenther@suse.de>
5063 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
5065 2008-07-29 Jakub Jelinek <jakub@redhat.com>
5067 * c-format.c (check_format_types): Revert unwanted checkin.
5069 2008-07-29 Jan Hubicka <jh@suse.cz>
5071 * flags.h (flag_really_no_inline): Remove.
5072 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
5073 * toplev.c (flag_really_no_inline): Remove.
5074 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
5075 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
5076 (cgraph_decide_inlining_incrementally): Likewise.
5077 (compute_inline_parameters): Likewise.
5078 * opts.c (decode_options): Simplify.
5079 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
5080 * common.opt (finline): Initialize to 1.
5081 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
5083 2008-07-29 Jan Hubicka <jh@suse.cz>
5085 * predict.c (always_optimize_for_size_p): New function.
5086 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5087 optimize_edge_for_size_p, optimize_edge_for_speed_p,
5088 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
5090 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
5091 * function.c (prepare_function_start): Set default profile.
5092 * function.h (rtl_data): Add maybe_hot_insn_p.
5093 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
5094 (construct_exit_block): Likewise.
5095 (tree_expand_cfg): Likewise.
5097 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
5098 optimize_edge_for_size_p, optimize_edge_for_speed_p,
5099 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
5100 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
5103 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5106 * c-decl.c (merge_decls): Merge USED flags.
5108 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
5110 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
5111 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
5112 next_stack, lab_false and lab_over trees.
5114 2008-07-28 Richard Guenther <rguenther@suse.de>
5116 PR tree-optimization/36957
5117 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
5118 (useless_type_conversion_p): Remove.
5119 (types_compatible_p): Remove.
5120 * gimple.h (tree_ssa_useless_type_conversion): Declare.
5121 (useless_type_conversion_p): Declare.
5122 (types_compatible_p): Declare.
5123 (gimple_expr_type): Return the base type only if it is
5124 trivially convertible to the subtype.
5126 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
5128 * configure.ac: Use the m4_do macro to concatenate the warnings into
5129 one string in ACX_PROG_CC_WARNING_OPTS,
5130 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
5131 * configure: Regenerate.
5133 2008-07-28 Richard Guenther <rguenther@suse.de>
5135 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
5136 (insert_fake_stores): Remove.
5137 (realify_fake_stores): Likewise.
5138 (execute_pre): Remove dead code.
5139 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
5140 (find_func_aliases): Deal with it here instead.
5141 Re-enable gcc_unreachable call.
5143 2008-07-28 Richard Guenther <rguenther@suse.de>
5145 Merge from gimple-tuples-branch.
5147 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
5148 * gimple.def: New file.
5149 * gsstruct.def: Likewise.
5150 * gimple-iterator.c: Likewise.
5151 * gimple-pretty-print.c: Likewise.
5152 * tree-gimple.c: Removed. Merged into ...
5153 * gimple.c: ... here. New file.
5154 * tree-gimple.h: Removed. Merged into ...
5155 * gimple.h: ... here. New file.
5157 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
5158 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
5159 --enable-checking=gimple flag.
5160 * config.in: Likewise.
5161 * configure: Regenerated.
5163 * tree-ssa-operands.h: Tuplified.
5164 * tree-vrp.c: Likewise.
5165 * tree-loop-linear.c: Likewise.
5166 * tree-into-ssa.c: Likewise.
5167 * tree-ssa-loop-im.c: Likewise.
5168 * tree-dump.c: Likewise.
5169 * tree-complex.c: Likewise.
5170 * cgraphbuild.c: Likewise.
5171 * tree-ssa-threadupdate.c: Likewise.
5172 * tree-ssa-loop-niter.c: Likewise.
5173 * tree-pretty-print.c: Likewise.
5174 * tracer.c: Likewise.
5175 * gengtype.c: Likewise.
5176 * tree-loop-distribution.c: Likewise.
5177 * tree-ssa-loop-unswitch.c: Likewise.
5178 * cgraph.c: Likewise.
5179 * cgraph.h: Likewise.
5180 * tree-ssa-loop-manip.c: Likewise.
5181 * value-prof.c: Likewise.
5182 * tree-ssa-loop-ch.c: Likewise.
5183 * tree-tailcall.c: Likewise.
5184 * value-prof.h: Likewise.
5187 * tree-pass.h: Likewise.
5188 * ipa-cp.c: Likewise.
5189 * tree-scalar-evolution.c: Likewise.
5190 * tree-scalar-evolution.h: Likewise.
5191 * target.h: Likewise.
5192 * lambda-mat.c: Likewise.
5193 * tree-phinodes.c: Likewise.
5194 * diagnostic.h: Likewise.
5195 * builtins.c: Likewise.
5196 * tree-ssa-alias-warnings.c: Likewise.
5197 * cfghooks.c: Likewise.
5198 * fold-const.c: Likewise.
5199 * cfghooks.h: Likewise.
5200 * omp-low.c: Likewise.
5201 * tree-ssa-dse.c: Likewise.
5202 * ipa-reference.c: Likewise.
5203 * tree-ssa-uncprop.c: Likewise.
5204 * toplev.c: Likewise.
5205 * tree-gimple.c: Likewise.
5206 * tree-gimple.h: Likewise.
5207 * tree-chrec.c: Likewise.
5208 * tree-chrec.h: Likewise.
5209 * tree-ssa-sccvn.c: Likewise.
5210 * tree-ssa-sccvn.h: Likewise.
5211 * cgraphunit.c: Likewise.
5212 * tree-ssa-copyrename.c: Likewise.
5213 * tree-ssa-ccp.c: Likewise.
5214 * tree-ssa-loop-ivopts.c: Likewise.
5215 * tree-nomudflap.c: Likewise.
5216 * tree-call-cdce.c: Likewise.
5217 * ipa-pure-const.c: Likewise.
5218 * c-format.c: Likewise.
5219 * tree-stdarg.c: Likewise.
5220 * tree-ssa-math-opts.c: Likewise.
5221 * tree-ssa-dom.c: Likewise.
5222 * tree-nrv.c: Likewise.
5223 * tree-ssa-propagate.c: Likewise.
5224 * ipa-utils.c: Likewise.
5225 * tree-ssa-propagate.h: Likewise.
5226 * tree-ssa-alias.c: Likewise.
5227 * gimple-low.c: Likewise.
5228 * tree-ssa-sink.c: Likewise.
5229 * ipa-inline.c: Likewise.
5230 * c-semantics.c: Likewise.
5231 * dwarf2out.c: Likewise.
5233 * tree-ssa-loop-ivcanon.c: Likewise.
5234 * predict.c: Likewise.
5235 * tree-ssa-loop.c: Likewise.
5236 * tree-parloops.c: Likewise.
5237 * tree-ssa-address.c: Likewise.
5238 * tree-ssa-ifcombine.c: Likewise.
5239 * matrix-reorg.c: Likewise.
5240 * c-decl.c: Likewise.
5241 * tree-eh.c: Likewise.
5242 * c-pretty-print.c: Likewise.
5243 * lambda-trans.c: Likewise.
5244 * function.c: Likewise.
5245 * langhooks.c: Likewise.
5246 * ebitmap.h: Likewise.
5247 * tree-vectorizer.c: Likewise.
5248 * function.h: Likewise.
5249 * langhooks.h: Likewise.
5250 * tree-vectorizer.h: Likewise.
5251 * ipa-type-escape.c: Likewise.
5252 * ipa-type-escape.h: Likewise.
5253 * domwalk.c: Likewise.
5254 * tree-if-conv.c: Likewise.
5255 * profile.c: Likewise.
5256 * domwalk.h: Likewise.
5257 * tree-data-ref.c: Likewise.
5258 * tree-data-ref.h: Likewise.
5259 * tree-flow-inline.h: Likewise.
5260 * tree-affine.c: Likewise.
5261 * tree-vect-analyze.c: Likewise.
5262 * c-typeck.c: Likewise.
5263 * gimplify.c: Likewise.
5264 * coretypes.h: Likewise.
5265 * tree-ssa-phiopt.c: Likewise.
5266 * calls.c: Likewise.
5267 * tree-ssa-coalesce.c: Likewise.
5268 * tree.def: Likewise.
5269 * tree-dfa.c: Likewise.
5270 * except.c: Likewise.
5271 * except.h: Likewise.
5272 * cfgexpand.c: Likewise.
5273 * tree-cfgcleanup.c: Likewise.
5274 * tree-ssa-pre.c: Likewise.
5275 * tree-ssa-live.c: Likewise.
5276 * tree-sra.c: Likewise.
5277 * tree-ssa-live.h: Likewise.
5278 * tree-predcom.c: Likewise.
5279 * lambda.h: Likewise.
5280 * tree-mudflap.c: Likewise.
5281 * ipa-prop.c: Likewise.
5282 * print-tree.c: Likewise.
5283 * tree-ssa-copy.c: Likewise.
5284 * ipa-prop.h: Likewise.
5285 * tree-ssa-forwprop.c: Likewise.
5286 * ggc-page.c: Likewise.
5287 * c-omp.c: Likewise.
5288 * tree-ssa-dce.c: Likewise.
5289 * tree-vect-patterns.c: Likewise.
5290 * tree-ssa-ter.c: Likewise.
5291 * tree-nested.c: Likewise.
5292 * tree-ssa.c: Likewise.
5293 * lambda-code.c: Likewise.
5294 * tree-ssa-loop-prefetch.c: Likewise.
5295 * tree-inline.c: Likewise.
5296 * tree-inline.h: Likewise.
5297 * tree-iterator.c: Likewise.
5298 * tree-optimize.c: Likewise.
5299 * tree-ssa-phiprop.c: Likewise.
5300 * tree-vect-transform.c: Likewise.
5301 * tree-object-size.c: Likewise.
5302 * tree-outof-ssa.c: Likewise.
5303 * cfgloop.c: Likewise.
5304 * system.h: Likewise.
5305 * tree-profile.c: Likewise.
5306 * cfgloop.h: Likewise.
5307 * c-gimplify.c: Likewise.
5308 * c-common.c: Likewise.
5309 * tree-vect-generic.c: Likewise.
5310 * tree-flow.h: Likewise.
5311 * c-common.h: Likewise.
5312 * basic-block.h: Likewise.
5313 * tree-ssa-structalias.c: Likewise.
5314 * tree-switch-conversion.c: Likewise.
5315 * tree-ssa-structalias.h: Likewise.
5316 * tree-cfg.c: Likewise.
5317 * passes.c: Likewise.
5318 * ipa-struct-reorg.c: Likewise.
5319 * ipa-struct-reorg.h: Likewise.
5320 * tree-ssa-reassoc.c: Likewise.
5321 * cfgrtl.c: Likewise.
5322 * varpool.c: Likewise.
5324 * tree-ssanames.c: Likewise.
5325 * tree-ssa-threadedge.c: Likewise.
5326 * langhooks-def.h: Likewise.
5327 * tree-ssa-operands.c: Likewise.
5328 * config/alpha/alpha.c: Likewise.
5329 * config/frv/frv.c: Likewise.
5330 * config/s390/s390.c: Likewise.
5331 * config/m32c/m32c.c: Likewise.
5332 * config/m32c/m32c-protos.h: Likewise.
5333 * config/spu/spu.c: Likewise.
5334 * config/sparc/sparc.c: Likewise.
5335 * config/i386/i386.c: Likewise.
5336 * config/sh/sh.c: Likewise.
5337 * config/xtensa/xtensa.c: Likewise.
5338 * config/stormy16/stormy16.c: Likewise.
5339 * config/ia64/ia64.c: Likewise.
5340 * config/rs6000/rs6000.c: Likewise.
5341 * config/pa/pa.c: Likewise.
5342 * config/mips/mips.c: Likewise.
5344 2008-07-28 Simon Baldwin <simonb@google.com>
5346 * c-pragma.c (handle_pragma_message): New function.
5347 (init_pragma): Register handle_pragma_message.
5348 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
5351 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
5353 PR tree-optimization/35252
5354 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
5355 REALPART_EXPR to be considered as same load operation.
5357 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
5359 PR tree-optimization/36830
5360 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
5361 (expressions_equal_p): Return false if only one operand is null.
5363 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
5365 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
5366 version requirements.
5368 2008-07-26 Olivier Hainque <hainque@adacore.com>
5370 * collect2.c (symkind): New enum. Symbol kinds we care about.
5371 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
5372 code and head comment accordingly.
5373 (scan_prog_file): Use symkind names instead of bare integers.
5375 2008-07-25 Jan Hubicka <jh@suse.cz>
5377 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
5379 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
5380 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
5381 * dojump.c (clear_pending_stack_adjust): Likewise.
5382 * print-tree.c (print_node): Ignore DECL_INLINE.
5383 * tree-inline.c (inlinable_function_p): Likewise.
5385 2008-07-25 Michael Meissner <gnu@the-meissners.org>
5387 * doc/extend.texi (hot attribute): Document that the hot attribute
5388 turns on -O3 for some ports.
5389 (cold attribute): Document that the cold attribute turns on -Os
5392 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
5393 reflect function specific option support.
5395 * target.h (struct target_option_hooks): Add fields to say whether
5396 the cold attribute implies -Os and the hot attribute implies -O3.
5398 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
5399 By default, do not turn on -Os for cold functions.
5400 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
5401 not turn on -O3 for hot functions.
5403 * c-common.c (handle_hot_attribute): Use target hook to determine
5404 if hot functions should enable -O3.
5405 (handle_cold_attribute): Use target hook to determine if cold
5406 functions should enable -Os.
5408 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
5409 (override_options): Move disable scheduling to
5410 optimization_options.
5411 (optimization_options): Disable scheduling here, not
5413 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5414 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5416 * config/ia64/ia64.c (ia64_override_options): Move setting
5417 scheduling flags to ia64_optimization_options.
5418 (ia64_optimization_options): Disable scheduling options here, and
5419 not in ia64_override_options.
5420 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5421 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
5423 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
5426 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
5428 2008-07-25 Martin Jambor <mjambor@suse.cz>
5430 PR tree-optimization/36926
5431 * ipa-prop.c (ipa_analyze_call_uses): Call
5432 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
5434 2008-07-25 Joseph Myers <joseph@codesourcery.com>
5436 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5437 movv2si_internal): Add mem = reg alternative.
5439 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
5442 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
5443 DEFAULT_PCC_STRUCT_RETURN to 127.
5445 2008-07-24 Jan Hubicka <jh@suse.cz>
5447 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
5448 (build_cgraph_edges): Likewise.
5449 * cgraph.c (cgraph_node): Do not update assembler hash.
5450 (cgraph_remove_node): Drop non-unit-at-a-time code.
5451 * tree-pass.h (pass_O0_always_inline): Remove.
5452 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
5453 * toplev.c (process_options): Flag unit-at-a-time does not imply
5455 * cgraphunit.c: Update comments.
5456 (decide_is_function_needed): Drop non-unit-at-a-time mode.
5457 (cgraph_assemble_pending_functions): Remove.
5458 (cgraph_reset_node): Drop non-unit-at-a-time code.
5459 (cgraph_finalize_function): Likewise.
5460 (cgraph_analyze_function): Likewise.
5461 (cgraph_finalize_compilation_unit): Likewise.
5462 (cgraph_expand_function): Likewise.
5463 (cgraph_optimize): Likesise.
5464 (save_inline_function_body): Likewise.
5465 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
5466 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
5467 * ipa-inline.c: Update comments.
5468 (enum inlining_mode): remove INLINE_SPEED.
5469 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
5470 (cgraph_mark_inline_edge): Likewise.
5471 (try_inline): Likewise.
5472 (cgraph_decide_inlining_incrementally): Likewise.
5473 (cgraph_gate_inlining): Remove.
5474 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
5475 (cgraph_gate_early_inlining): Likewise.
5476 (gate_inline_passes): Remove.
5477 (pass_inline_parameters, pass_ipa_inline): Remove gates.
5478 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
5479 pass_O0_always_inline): Remove.
5480 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
5481 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
5482 * opts.c (no_unit_at_a_time_default): Remove.
5483 (decode_options): Remove flag_unit_at_a_time reset and warning.
5484 * opts.h (no_unit_at_a_time_default): Remove.
5485 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
5486 early in GNU dialect.
5487 (merge_decls): Update comment; drop unit-at-a-time check.
5488 (finish_decl): Likewise.
5489 (grok_declaration): Remove flag_inline_trees code.
5490 (finish_functions): Return on function returning non-void on all
5492 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
5493 * cfgexpand.c (expand_one_static_var): Remove.
5494 (expand_one_var): Remove expand_one_static_var call.
5495 (expand_used_vars_for_block): Remove flag_unit_a_time check.
5496 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
5497 and flag_unit_at_a-time compatibility checks.
5498 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
5499 * tree-inline.c (flag_inline_trees): Remove.
5500 (inlinable_function_p): Don't check it.
5501 (expand_call_inline): Remove non-unit-at-a-time code.
5502 * tree-inline.h (flag_inline_trees): Remove.
5503 * tree-optimize.c (execute_early_local_optimizations): Remove
5504 unit-at-a-time checks.
5505 (tree_rest_of_compilation): Likewise.
5506 * combine.c (setup_incoming_promotions): Likewise.
5507 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
5508 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
5509 * passes.c (pass_inline_parameters): Update comments; remove
5510 O0_alwaysinline pass.
5511 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
5512 (execute_one_pass): Likewise.
5513 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
5514 (ix86_function_sseregparm): Likewise.
5515 * arm.c (arm_function_in_section_p): Likewise.
5516 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
5517 * varpool.c: Update comments.
5518 (decide_is_variable_needed): Remove unit-at-a-time checks.
5519 (varpool_finalize_decl): Likewise.
5521 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
5523 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
5525 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
5527 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
5529 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
5530 imp symbol extension.
5532 2008-07-23 Ian Lance Taylor <iant@google.com>
5534 * tree-vrp.c (infer_value_range): Ignore asm statements when
5535 looking for memory accesses for -fdelete-null-pointer-checks.
5537 2008-07-24 Ben Elliston <bje@au.ibm.com>
5539 * config/spu/spu-c.c (__vector_keyword): New variable.
5540 (vector_keyword): Likewise.
5541 (spu_categorize_keyword): New function.
5542 (spu_macro_to_expand): Likewise.
5543 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
5544 compiling an ISO C dialect.
5546 2008-07-24 Ben Elliston <bje@au.ibm.com>
5548 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
5551 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5553 * configure: Regenerate.
5554 * configure.ac: Require texinfo 4.7.
5555 * doc/install.texi: Document texinfo 4.7 requirement.
5557 2008-07-23 Martin Jambor <mjambor@suse.cz>
5559 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
5560 rather than for DECL_SAVED_TREE.
5561 * ipa-prop.c: Include diagnostic.h.
5562 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
5564 (ipa_detect_param_modifications): Function rewritten from scratch.
5565 (ipa_compute_jump_functions): Changed accesses to modification flags.
5566 (ipa_free_node_params_substructures): Update flags destruction.
5567 (ipa_node_duplication_hook): Update flags duplication.
5568 (ipa_print_all_params_modified): Updated flag access.
5569 * ipa-prop.h (struct ipa_param_flags): New structure.
5570 (struct ipa_node_params): New field modification_analysis_done,
5571 modified_flags changed into param_flags.
5572 (ipa_is_ith_param_modified): Changed to use new flags.
5573 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
5575 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
5576 ipa-cp.c and split into two functions.
5577 (ipa_print_node_jump_functions): New function.
5578 (compute_scalar_jump_functions): New function.
5579 (type_like_member_ptr_p): New function.
5580 (compute_pass_through_member_ptrs): New function.
5581 (fill_member_ptr_cst_jump_function): New function.
5582 (determine_cst_member_ptr): New function.
5583 (compute_cst_member_ptr_arguments): New function.
5584 (ipa_compute_jump_functions): Complete rewrite.
5585 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
5586 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
5587 (struct ipa_member_ptr_cst): New structure.
5588 (union jump_func_value): New field member_cst.
5589 * ipa-cp.c (ipcp_lat_is_insertable): New function.
5590 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
5591 jump function types.
5592 (ipcp_print_all_lattices): Slight fprintf rearrangement.
5593 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
5594 instead of ipcp_print_all_jump_functions.
5595 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
5596 only for replacable scalars.
5598 * doc/invoke.texi (Optimize options): Add description of
5599 -findirect-inlining.
5600 * common.opt (flag_indirect_inlining): New flag.
5601 * opts.c (decode_options): Set flag_indirect_inlining when
5604 * ipa-inline.c: Include ipa-prop.h.
5605 (inline_indirect_intraprocedural_analysis): New function.
5606 (inline_generate_summary): Allocate parameter and argument info
5607 structures, call inline_indirect_intraprocedural_analysis on each
5608 node when doing indirect inlining and deallocate indirect inlining
5609 data structures in the end.
5610 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
5611 (free_all_ipa_structures_after_iinln): New function.
5612 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
5614 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
5616 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
5617 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
5618 of computing the frequency separately.
5619 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
5620 of computing the frequency separately.
5621 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
5622 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
5623 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
5624 (ipa_get_stmt_member_ptr_load_param): New function.
5625 (ipa_is_ssa_with_stmt_def): New function.
5626 (ipa_note_param_call): New function.
5627 (ipa_analyze_call_uses): New function.
5628 (ipa_analyze_stmt_uses): New function.
5629 (ipa_analyze_params_uses): New function.
5630 (ipa_free_node_params_substructures): Also free the param_calls linked
5632 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
5633 (ipa_print_node_param_flags): New function.
5634 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
5635 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
5636 * ipa-prop.h (struct ipa_param_flags): New field called.
5637 (struct ipa_param_call_note): New structure.
5638 (struct ipa_node_params): New fields param_calls and
5640 (ipa_is_ith_param_called): New function.
5641 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5642 ipa_analyze_params_uses and dump parameter flags.
5644 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
5645 ipa_propagate_indirect_call_infos if performing indirect inlining,
5646 pass a new parameter new_edges to it.
5647 (add_new_edges_to_heap): New fucntion.
5648 (cgraph_decide_inlining_of_small_functions): New vector
5649 new_indirect_edges for newly found indirect edges , call
5650 ipa_propagate_indirect_call_infos after inlining.
5651 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
5652 inlining if performing indirect inlining. Call
5653 free_all_ipa_structures_after_iinln when doing so too.
5654 (inline_generate_summary): Do not call
5655 free_all_ipa_structures_after_iinln here.
5656 * ipa-prop.c (update_jump_functions_after_inlining): New function.
5657 (print_edge_addition_message): New function.
5658 (update_call_notes_after_inlining): New function.
5659 (propagate_info_to_inlined_callees): New function.
5660 (ipa_propagate_indirect_call_infos): New function.
5661 * ipa-prop.h: Include cgraph.h
5662 (struct ipa_param_call_note): Fields reordered, new field processed.
5663 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
5665 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
5666 rediscovered call statements.
5667 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
5668 (dump_cgraph_node): Dump also the indirect_call flag.
5669 (cgraph_clone_edge): Copy also the indirect_call flag.
5670 * tree-inline.c (copy_bb): Do not check for fndecls from call
5671 expressions, check for edge availability when moving clones.
5672 (get_indirect_callee_fndecl): New function.
5673 (expand_call_inline): If callee declaration is not apprent from
5674 the statement, try calling get_indirect_callee_fndecl. Do not
5675 issue warnings or call sorry when not inlinings an indirect edge.
5676 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
5678 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
5679 bit more frandly to matching.
5680 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
5681 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
5682 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
5684 2008-07-23 Michael Meissner <gnu@the-meissners.org>
5687 * opth-gen.awk: Suppress function specific features when building
5689 * optc-gen.awk: Ditto.
5691 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5694 * diagnostic.c (pedwarn): Add opt parameter.
5696 * c-tree.h (pedwarn_init): Add opt parameter.
5697 (pedwarn_c90): Likewise.
5698 (pedwarn_c99): Likewise.
5699 * c-errors.c (pedwarn_c99): Likewise.
5700 (pedwarn_c90): Likewise.
5701 * toplev.h (pedwarn): Update declaration.
5702 (pedwarn0): Declare.
5703 * c-lex.c: All calls to pedwarn changed.
5704 * builtins.c: All calls to pedwarn changed.
5705 * toplev.c: All calls to pedwarn changed.
5706 * c-decl.c: All calls to pedwarn changed.
5707 * c-typeck.c: All calls to pedwarn changed.
5708 * c-common.c: All calls to pedwarn changed.
5709 * c-parser.c: All calls to pedwarn changed.
5711 2008-07-23 Michael Meissner <gnu@the-meissners.org>
5712 Karthik Kumar <karthikkumar@gmail.com>
5714 * attribs.c (file scope): Include c-common.h.
5715 (decl_attributes): Add support for #pragma GCC optimize and
5718 * targhooks.c (default_can_inline_p): New function that is the
5719 default for the TARGET_CAN_INLINE_P target hook.
5721 * targhooks.h (default_can_inline_p): Add declaration.
5723 * tree.c (cl_optimization_node): New static tree for building
5724 OPTIMIZATION_NODE tree.
5725 (cl_target_option_node): New static tree for building
5726 TARGET_OPTION_NODE tree.
5727 (cl_option_hash_table): New hash table for hashing
5728 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5729 (cl_option_hash_hash): New function to provide the hash value for
5730 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5731 (cl_option_hash_eq): New function to provide an equality test for
5732 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
5733 (tree_code_size): Add support for OPTIMIZATION_NODE and
5734 TARGET_OPTION_NODE trees.
5735 (tree_code_structure): Add support for OPTIMIZATION_NODE and
5736 TARGET_OPTION_NODE trees.
5737 (build_optimization_node): Build a tree that has all of the
5738 current optimization options.
5739 (build_target_option_node): Build a tree that has the target
5740 options that might be changed on a per function basis.
5742 * tree.h (file scope): Include options.h.
5743 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
5744 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
5745 (TREE_OPTIMIZATION): Ditto.
5746 (TREE_TARGET_SPECIFIC): Ditto.
5747 (struct tree_function_decl): Add fields for remembering the
5748 current optimization options and target specific options.
5749 (struct tree_optimization_option): New tree variant that remembers
5750 the optimization options.
5751 (struct tree_target_option): New tree variant that remembers the
5752 target specific flags that might change for compiling a particular
5754 (union tree_node): Include tree_optimization_option and
5755 tree_target_option fields.
5756 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
5757 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
5758 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
5759 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
5760 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
5761 optimization and target options.
5762 (optimization_default_node): New macro to refer to global_trees
5764 (optimization_current_node): Ditto.
5765 (optimization_cold_node): Ditto.
5766 (optimization_hot_node): Ditto.
5767 (target_option_default_node): Ditto.
5768 (target_option_current_node): Ditto.
5769 (current_option_pragma): Ditto.
5770 (current_optimize_pragma): Ditto.
5772 * target.h (struct gcc_target): Add valid_option_attribute_p,
5773 target_option_save, target_option_restore, target_option_print,
5774 target_option_pragma_parse, and can_inline_p hooks.
5776 * toplev.h (parse_optimize_options): Add declaration.
5777 (fast_math_flags_struct_set_p): Ditto.
5779 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
5780 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
5783 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
5784 tree_can_inline_p hook to see if one function can inline another.
5785 (cgraph_decide_inlining): Ditto.
5786 (cgraph_decide_inlining_incrementally): Ditto.
5788 * opts.c (decode_options): Add support for running multiple times
5789 to allow functions with different target or optimization options
5790 than was specified on the command line.
5791 (fast_math_flags_struct_set_p): New function that is similar to
5792 fast_math_flags_set_p, except it uses the values in the
5793 cl_optimization structure instead of global variables.
5795 * optc-gen.awk: Add support for TargetSave to allow a back end to
5796 declare new fields that need to be saved when using function
5797 specific options. Include flags.h and target.h in the options.c
5798 source. Add support for Save to indicate which options can be set
5799 for individual functions. Generate cl_optimize_save,
5800 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
5801 cl_target_option_restore, cl_target_option_print functions to
5802 allow functions to use different optimization or target options.
5804 * opt-functions.awk (var_type_struct): Return the type used for
5805 storing the field in a structure.
5807 * opth-gen.awk: Add support for TargetSave to allow a back end to
5808 declare new fields that need to be saved when using function
5809 specific options. Add support for Save to indicate which options
5810 can be set for individual functions. Only generate one extern for
5811 Mask fields. Generate cl_optimization and cl_target_option
5812 structures to remember optimization and target options.
5814 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
5815 collecting new tree nodes.
5816 (TS_TARGET_OPTION): Ditto.
5818 * c-decl.c (merge_decls): Merge function specific target and
5819 optimization options.
5821 * function.c (invoke_set_current_function_hook): If the function
5822 uses different optimization options, change the global variables
5825 * coretypes.h (struct cl_optimization): Add forward reference.
5826 (struct cl_target_option): Ditto.
5828 * c-pragma.c (option_stack): New static vector to remember the
5829 current #pragma GCC option stack.
5830 (handle_pragma_option): New function to support #pragma GCC option
5831 to change target options.
5832 (optimize_stack): New static vector to remember the current
5833 #pragma GCC optimize stack.
5834 (handle_pragma_optimize): New function to support #pragma GCC
5835 optimize to change optimization options.
5836 (init_pragma): Add support for #pragma GCC optimize and #pragma
5839 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
5840 optimization options.
5841 (TARGET_OPTION_NODE): New tree code for remembering certain target
5844 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
5845 TARGET_OPTION_NODE trees.
5847 * common.opt (-O): Add Optimization flag.
5849 (-fmath-errno): Ditto.
5850 (-falign-functions): Add UInteger flag to make sure flag gets full
5851 int in cl_optimization structure.
5852 (-falign-jumps): Ditto.
5853 (-falign-labels): Ditto.
5854 (-falign-loops): Ditto.
5855 (-fsched-stalled-insns): Ditto.
5856 (-fsched-stalled-insns-dep): Ditto.
5858 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
5860 (TARGET_OPTION_SAVE): Ditto.
5861 (TARGET_OPTION_RESTORE): Ditto.
5862 (TARGET_OPTION_PRINT): Ditto.
5863 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
5864 (TARGET_CAN_INLINE_P): Ditto.
5865 (TARGET_INITIALIZER): Add new hooks.
5867 * tree-inline.c (tree_can_inline_p): New function to determine
5868 whether one function can inline another. Check if the functions
5869 use compatible optimization options, and also call the backend
5872 * tree-inline.h (tree_can_inline_p): Add declaration.
5874 * c-common.c (c_common_attribute): Add support for option and
5875 optimize attributes.
5876 (handle_option_attribute): Add support for the option attribute to
5877 allow the user to specify different target options for compiling a
5879 (handle_optimize_attribute): Add support for the optimize
5880 attribute to allow the user to specify different optimization
5881 options for compiling a specific function.
5882 (handle_hot_attribute): Turn on -O3 optimization for this one
5883 function if it isn't the default optimization level.
5884 (handle_cold_attribute): Turn on -Os optimization for this one
5885 function if it insn't the default optimization.
5886 (const_char_p): New const char * typedef.
5887 (optimize_args): New static vector to remember the optimization
5889 (parse_optimize_options): New function to set up the optimization
5890 arguments from either the optimize attribute or #pragma GCC optimize.
5892 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
5893 (builtin_define_std): Ditto.
5895 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
5896 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
5897 (x86_64-*-*): Ditto.
5899 * Makefile.in (TREE_H): Add options.h.
5900 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
5902 * doc/extend.texi (option attribute): Document new attribute.
5903 (optimize attribute): Ditto.
5904 (hot attribute): Document hot attribute sets -O3.
5905 (cold attribute): Document cold attribute sets -Os.
5906 (#pragma GCC option): Document new pragma.
5907 (#pragma GCC optimize): Ditto.
5909 * doc/options.texi (TargetSave): Document TargetSave syntax.
5910 (UInteger): Document UInteger must be used for certain flags.
5911 (Save): Document Save option to create target specific options
5912 that can be saved/restored on a function specific context.
5914 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
5915 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
5917 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
5918 (TARGET_OPTION_SAVE): Ditto.
5919 (TARGET_OPTION_RESTORE): Ditto.
5920 (TARGET_OPTION_PRINT): Ditto.
5921 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
5922 (TARGET_CAN_INLINE_P): Ditto.
5924 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
5926 (-mfpmath=both): Ditto.
5928 2008-07-23 Michael Meissner <gnu@the-meissners.org>
5929 Karthik Kumar <karthikkumar@gmail.com>
5931 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
5932 (TARGET_POPCNT): Ditto.
5933 (TARGET_SAHF): Ditto.
5934 (TARGET_AES): Ditto.
5935 (TARGET_PCLMUL): Ditto.
5936 (TARGET_CMPXCHG16B): Ditto.
5937 (TARGET_RECIP): Move switch into target_flags.
5938 (TARGET_FUSED_MADD): Ditto.
5939 (ix86_arch_features): Make an unsigned char type.
5940 (ix86_tune_features): Ditto.
5941 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
5942 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
5943 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
5945 * config/i386/i386.opt (arch): New TargetSave field to define
5946 fields that need to be saved for function specific option support.
5949 (branch_cost): Ditto.
5950 (ix86_isa_flags_explicit): Ditto.
5951 (tune_defaulted): Ditto.
5952 (arch_specified): Ditto.
5953 (-m128-long-double): Add Save flag to save option for target
5954 specific option support.
5956 (-maccumulate-outgoing-args): Ditto.
5957 (-malign-double): Ditto.
5958 (-malign-stringops): Ditto.
5959 (-mfancy-math-387): Ditto.
5960 (-mhard-float): Ditto.
5962 (-minline-all-stringops): Ditto.
5963 (-minline-stringops-dynamically): Ditto.
5964 (-mms-bitfields): Ditto.
5965 (-mno-align-stringops): Ditto.
5966 (-mno-fancy-math-387): Ditto.
5967 (-mno-push-args): Ditto.
5968 (-mno-red-zone): Ditto.
5969 (-mpush-args): Ditto.
5970 (-mred-zone): Ditto.
5972 (-msseregparm): Ditto.
5973 (-mstack-arg-probe): Ditto.
5988 (-mrecip): Move flag into target_flags.
5990 (-mno-fused-madd): Ditto.
5991 (-mfused-madd): Ditto.
5992 (-mabm): Move flag into ix86_isa_flags.
5999 * config/i386/i386-c.c: New file for #pragma support.
6000 (ix86_target_macros_internal): New function to #define or #undef
6001 target macros based when the user uses the #pragma GCC option to
6002 change target options.
6003 (ix86_pragma_option_parse): New function to add #pragma GCC option
6005 (ix86_target_macros): Move defining the target macros here from
6006 TARGET_CPU_CPP_BUILTINS in i386.h.
6007 (ix86_register_pragmas): Register the #pragma GCC option hook. If
6008 defined, initialize any subtarget #pragmas.
6010 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6011 REGISTER_TARGET_PRAGMAS.
6013 * config/i386/t-i386: New file for x86 dependencies.
6014 (i386.o): Make dependencies mirror the include files used.
6015 (i386-c.o): New file, add dependencies.
6017 * config/i386/i386-protos.h (override_options): Add bool argument.
6018 (ix86_valid_option_attribute_tree): Add declaration.
6019 (ix86_target_macros): Ditto.
6020 (ix86_register_macros): Ditto.
6022 * config/i386/i386.c (ix86_tune_features): Move initialization of
6023 the target masks to initial_ix86_tune_features to allow functions
6024 to have different target options. Make type unsigned char,
6025 instead of unsigned int.
6026 (initial_ix86_tune_features): New static vector to hold processor
6027 masks for the tune variables.
6028 (ix86_arch_features): Move initialization of the target masks to
6029 initial_ix86_arch_features to allow functions to have different
6030 target options. Make type unsigned char, instead of unsigned int.
6031 (initial_ix86_arch_features): New static vector to hold processor
6032 masks for the arch variables.
6033 (enum ix86_function_specific_strings): New enum to describe the
6034 string options used for attribute((option(...))).
6035 (ix86_target_string): New function to return a string that
6036 describes the target options.
6037 (ix86_debug_options): New function to print the current options in
6039 (ix86_function_specific_save): New function hook to save the
6040 function specific global variables in the cl_target_option structure.
6041 (ix86_function_specific_restore): New function hook to restore the
6042 function specific variables from the cl_target_option structure to
6043 the global variables.
6044 (ix86_function_specific_print): New function hook to print the
6045 target specific options in the cl_target_option structure.
6046 (ix86_valid_option_attribute_p): New function hook to validate
6047 attribute((option(...))) arguments.
6048 (ix86_valid_option_attribute_tree): New function that is common
6049 code between attribute((option(...))) and #pragma GCC option
6050 support that parses the options and returns a tree holding the options.
6051 (ix86_valid_option_attribute_inner_p): New helper function for
6052 ix86_valid_option_attribute_tree.
6053 (ix86_can_inline_p): New function hook to decide if one function
6054 can inline another on a target specific basis.
6055 (ix86_set_current_function); New function hook to switch target
6056 options if the user used attribute((option(...))) or #pragma GCC
6058 (ix86_tune_defaulted): Move to static file scope from
6060 (ix86_arch_specified): Ditto.
6061 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
6063 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
6064 (OPTION_MASK_ISA_ABM_SET): Ditto.
6065 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
6066 (OPTION_MASK_ISA_CX16_SET): Ditto.
6067 (OPTION_MASK_ISA_SAHF_SET): Ditto.
6068 (OPTION_MASK_ISA_AES_UNSET): Ditto.
6069 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
6070 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
6071 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
6072 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
6073 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
6074 (struct ptt): Move to static file scope from override_options.
6075 (processor_target_table): Ditto.
6077 (ix86_handle_option): Add support for options that are now isa options.
6078 (override_options): Add support for declaring functions that
6079 support different target options than were specified on the
6080 command line. Move struct ptt, processor_target_table, cpu_names,
6081 ix86_tune_defaulted, ix86_arch_specified to static file scope.
6082 Add bool argument. Fix up error messages so the appropriate error
6083 is given for either command line or attribute.
6084 (ix86_previous_fndecl): New static to remember previous function
6085 declaration to see if we need to change target options.
6086 (ix86_builtins_isa): New array to record the ISA of each builtin
6088 (def_builtin): Always create the builtin function, even if the
6089 current ISA doesn't support it.
6090 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
6091 tests for those builtins.
6092 (ix86_init_builtins): Remove TARGET_MMX test for calling
6093 ix86_init_mmx_sse_builtins.
6094 (ix86_expand_builtin): If the current ISA doesn't support a given
6095 builtin, signal an error.
6096 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
6097 (TARGET_SET_CURRENT_FUNCTION): Ditto.
6098 (TARGET_OPTION_SAVE): Ditto.
6099 (TARGET_OPTION_RESTORE): Ditto.
6100 (TARGET_OPTION_PRINT): Ditto.
6101 (TARGET_CAN_INLINE_P): Ditto.
6103 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
6105 * c-typeck.c (build_external_ref): Don't call assemble_external.
6106 * final.c (output_operand): Call assemble_external.
6108 2008-07-21 DJ Delorie <dj@redhat.com>
6110 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
6111 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6113 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6115 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
6116 original insn and splitter contents into ...
6117 ("*div<mode>3_fast"): ... this new pattern. Enable only if
6118 flag_unsafe_math_optimizations. Add dummy scratch register.
6119 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
6120 !flag_unsafe_math_optimizations. Returns number with next
6121 highest magnitude if this is still less or equal to the true
6122 quotient in magnitude.
6124 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
6126 * Makefile.in: Replace toplev.h with TOPLEV_H.
6127 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
6128 * c-lex.c (fe_file_change): Don't set in_system_header.
6129 * c-parser.c (c_token): Remove in_system_header.
6130 (c_lex_one_token): Don't set in_system_header.
6131 (c_parser_set_source_position_from_token): Don't set in_system_header.
6132 * diagnostic.c (diagnostic_report_diagnostic): Use location from
6135 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
6136 * flags.h (in_system_header): Remove.
6137 * function.c (saved_in_system_header): Remove.
6138 (push_cfun): Don't set in_system_header.
6139 (pop_cfun): Don't set in_system_header.
6140 (push_struct_function): Don't set in_system_header.
6141 * input.h (expanded_location): Add sysp.
6142 (in_system_header_at): New.
6143 (in_system_header): New.
6144 * toplev.c (in_system_header): Remove.
6145 * toplev.h: Include input.h
6147 * tree-cfg.c (execute_warn_function_return): Call warning_at.
6148 * tree-ssa.c (warn_uninit): Call warning_at.
6149 (warn_uninitialized_var): Update calls to warn_uninit.
6150 (warn_uninitialized_phi): Update calls to warn_uninit.
6151 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
6152 (expand_location): Initialize xloc.sysp.
6153 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
6154 (tree_decl_with_vis): Remove in_system_header_flag.
6156 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
6159 * recog.c (asm_operand_ok): Change the order of the extra
6160 memory constraint checks.
6162 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
6165 * tree-switch-conversion.c (build_one_array): Call
6166 varpool_mark_needed_node and varpool_finalize_decl
6167 instead of assemble_variable.
6169 2008-07-19 Jan Hubicka <jh@suse.cz>
6171 * cgraph.c (cgraph_add_new_function): Do early local passes.
6172 * tree-nrv.c (gate_pass_return_slot): New gate.
6173 (pass_nrv): Add the gate.
6174 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
6176 (coalesce_ssa_name): Coalesce SSA names.
6177 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
6178 not optimizing so unused user vars remains visible.
6179 * common.opt (flag_tree_ter): Always enable by default.
6180 * tree-ssa-ter.c: Include flags.h
6181 (is_replaceable_p): Check that locations match; when aliasing is missing
6182 be conservative about loads.
6183 * tree-optimize.c (gate_init_datastructures): Remove.
6184 (pass_init_datastructures): New.
6185 * passes.c: Reorder passes so we always go into SSA.
6187 2008-07-19 Jan Hubicka <jh@suse.cz>
6189 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
6190 * doc/invoke.texi (--combine): Likewise.
6191 (-finline-functions-called-once): Update levels when enabled.
6192 (-funit-at-a-time): Document new behaviour.
6193 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
6194 -fno-section-anchors when disabled explicitly.
6195 (inline params): They are not ignored now.
6196 (precompiled headers): Remove unit-at-a-time as being incompatible.
6197 * opts.c (decode_options): Handle unit-at-a-time as alias;
6198 imply -fno-section-anchors when toplevel reorder is disabled
6200 * common.opt (ftoplevel-reorder): Set default value to 2.
6201 (funit-at-a-time): Set default value to 1.
6202 * config/rs6000/rs6000.c (optimization_options): Set section anchors
6205 2008-07-19 Jan Hubicka <jh@suse.cz>
6207 * builtins.c (expand_builtin_int_roundingfn,
6208 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
6211 2008-07-19 Richard Guenther <rguenther@suse.de>
6214 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
6215 * tree-ssa-sccvn.c (get_constant_value_id): New function.
6216 * tree-ssa-pre.c (get_expr_value_id): For newly created
6217 constant value-ids make sure to add the expression to its
6220 2008-07-19 Jakub Jelinek <jakub@redhat.com>
6223 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
6224 return value of the builtin is ignored.
6226 2008-07-19 Olivier Hainque <hainque@adacore.com>
6228 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
6229 bits, a C conformant malloc implementation has to provide.
6230 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
6232 2008-07-19 Joseph Myers <joseph@codesourcery.com>
6236 * reload.c (find_reloads_subreg_address): Only reload address if
6237 reloaded == 0, not for reloaded != 1.
6240 2008-07-16 Joseph Myers <joseph@codesourcery.com>
6241 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6242 (m32c_legitimate_address_p): Handle "++rii" addresses created by
6243 m32c_legitimize_reload_address.
6245 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
6246 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6247 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6249 2008-07-19 Olivier Hainque <hainque@adacore.com>
6251 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
6252 argument, saying whether nested array are to be collapsed
6253 into a single array type DIE with multiple subscripts.
6254 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
6255 issues, centralize the nested array types collapsing control and
6256 disable the transformation for Ada.
6258 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
6261 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
6263 (x86_64_shift_adj_2): New expander.
6264 (x86_64_shift_adj_3): Ditto.
6265 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
6266 to split TImode operands.
6267 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
6268 (ix86_split_lshr): Ditto.
6270 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
6272 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
6273 and __CHAR32_TYPE__.
6274 * c-typeck.c (digest_init): Support char16_t and char32_t.
6275 (set_nonincremental_init_from_string): Idem.
6277 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
6280 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
6281 PREFERRED_STACK_BOUNDARY.
6282 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6284 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
6287 * function.c (locate_and_pad_parm): Cap boundary earlier.
6289 2008-07-17 Julian Brown <julian@codesourcery.com>
6291 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
6292 no-op for targets which don't use DLLs.
6294 2008-07-17 Martin Jambor <mjambor@suse.cz>
6296 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
6297 that nodes are relevant by examining the node->analyzed flag.
6298 (ipcp_init_stage): Check which nodes are relevant, assert that the
6299 relevant ones are also required.
6300 (ipcp_propagate_stage): Check on the side arrays are properly
6302 (ipcp_print_all_jump_functions): Make sure not to touch any node
6303 that is not analyzed or an edge that does not have a corresponding
6304 entry in the on-the-side vectors.
6305 (ipcp_function_scale_print): Likewise.
6306 (ipcp_update_callgraph): Check that the node is relevant.
6307 (ipcp_insert_stage): Check that the node is relevant. Check there is
6308 an info for every node and edge.
6309 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
6310 (ipa_print_all_tree_maps): Likewise and a new variable info.
6311 (ipa_print_all_params_modified): Likewise.
6312 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
6314 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
6317 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
6319 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
6321 PR rtl-optimization/36753
6322 * fwprop.c (use_killed_between): Don't shortcut
6323 single-definition global registers.
6325 2008-07-16 Jan Hubicka <jh@suse.cz>
6327 * cgraph.h (varpool_empty_needed_queue): Declare.
6328 * cgraphunit.c (output_in_order): Mark all variables as needed;
6330 * varpool.c (varpool_assemble_node): Update debug queue.
6331 (varpool_assemble_pending_decls): Don't do it here.
6332 (varpool_empty_needed_queue): New function.
6334 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6336 * recog.c (peephole2_optimize): Fix formatting.
6338 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6340 * c-pch.c (get_ident): Avoid C++ keywords.
6341 * combine-stack-adj.c (single_set_for_csa): Likewise.
6342 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
6343 output_asm_insn): Likewise.
6344 * reload.c (push_secondary_reload, find_reusable_reload,
6345 push_reload, combine_reloads, find_reloads,
6346 debug_reload_to_stream): Likewise.
6347 * reload.h (struct reload): Likewise.
6348 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
6349 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
6350 emit_output_reload_insns): Likewise.
6351 * targhooks.c (default_secondary_reload): Likewise.
6352 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
6354 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6356 * recog.c (validate_change_1, validate_change,
6357 validate_unshare_change, validate_replace_rtx_1, struct
6358 funny_match, constrain_operands, peephole2_optimize): Avoid C++
6360 * reload.c (push_secondary_reload, secondary_reload_class,
6361 scratch_reload_class, find_valid_class, find_reusable_reload,
6362 push_reload, find_dummy_reload, find_reloads_address_1,
6363 find_reloads_address_part, find_equiv_reg): Likewise.
6364 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
6365 choose_reload_regs): Likewise.
6366 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
6368 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
6369 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
6370 * sched-rgn.c (concat_INSN_LIST): Likewise.
6371 * stor-layout.c (mode_for_size, mode_for_size_tree,
6372 smallest_mode_for_size): Likewise.
6374 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6376 * cfg.c (dump_reg_info): Avoid C++ keywords.
6377 * dwarf2asm.c (dw2_force_const_mem,
6378 dw2_asm_output_encoded_addr_rtx): Likewise.
6379 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
6380 * expmed.c (expand_shift): Likewise.
6381 * global.c (find_reg): Likewise.
6382 * graph.c (draw_edge): Likewise.
6383 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
6384 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
6385 widen_clz, widen_bswap, expand_parity, expand_unop,
6386 emit_cmp_and_jump_insn_1): Likewise.
6387 * postreload.c (reload_cse_simplify_operands): Likewise.
6388 * ra.h (add_neighbor): Likewise.
6389 * reg-stack.c (remove_regno_note, change_stack): Likewise.
6390 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
6391 record_reg_classes, copy_cost, record_address_regs,
6392 invalid_mode_change_p): Likewise.
6393 * regrename.c (regrename_optimize, scan_rtx_reg,
6394 dump_def_use_chain, find_oldest_value_reg,
6395 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
6397 2008-07-16 David Edelsohn <edelsohn@gnu.org>
6399 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
6400 MASK_POWERPC64 for power4 in previous commit.
6402 2008-07-16 Olivier Hainque <hainque@adacore.com>
6404 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
6405 instead of bare conversion to cast const-ness away.
6407 2008-07-16 Anatoly Sokolov <aesok@post.ru>
6409 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
6410 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
6411 * config/xtensa/xtensa.c (xtensa_function_value): New function.
6412 (TARGET_FUNCTION_VALUE): Define.
6414 2008-07-16 David Edelsohn <edelsohn@gnu.org>
6416 * config/rs6000/rs6000.c (processor_target_table): Add
6417 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
6419 2008-07-16 Joseph Myers <joseph@codesourcery.com>
6422 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
6423 (m32c_legitimate_address_p): Handle "++rii" addresses created by
6424 m32c_legitimize_reload_address.
6426 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
6428 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
6429 DECL_IN_SYSTEM_HEADER in sync.
6431 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
6433 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
6434 * tree-ssa-pre.c (pre_expr_eq): Ditto
6435 (get_constant_for_value_id): Take a type as an argument.
6436 (fully_constant_expression): Pass in type.
6437 (find_or_generate_expression): Short circuit constant case.
6438 (create_expression_by_pieces): Remove special casing of
6440 (do_regular_insertion): Short circuit constant case.
6441 (do_partial_partial_insertion): Ditto.
6443 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
6446 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
6448 2008-07-15 Bob Wilson <bob.wilson@acm.org>
6450 * config/xtensa/libgcc-xtensa.ver: New file.
6451 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
6453 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6455 * df-problems.c (df_set_note): Avoid C++ keywords.
6456 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
6457 * dse.c (record_store, remove_useless_values): Likewise.
6458 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
6459 gen_reg_rtx_offset, operand_subword, change_address_1,
6460 change_address, adjust_address_1, offset_address,
6461 widen_memory_access, emit_copy_of_insn_after): Likewise.
6462 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
6463 * fwprop.c (should_replace_address, propagate_rtx_1,
6464 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
6466 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
6467 gcse_emit_move_after, update_ld_motion_stores): Likewise.
6468 * lcm.c (compute_insert_delete, pre_edge_lcm,
6469 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
6470 * lower-subreg.c (resolve_reg_notes): Likewise.
6471 * mode-switching.c (optimize_mode_switching): Likewise.
6473 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6475 * bt-load.c (add_btr_def, migrate_btr_def,
6476 branch_target_load_optimize): Avoid C++ keywords.
6477 * caller-save.c (insert_restore, insert_save, insert_one_insn):
6479 * combine.c (subst, simplify_set, make_extraction,
6480 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
6481 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
6482 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
6484 2008-07-15 Richard Guenther <rguenther@suse.de>
6487 * c-common.c (strict_aliasing_warning): Do not warn for
6488 TYPE_REF_CAN_ALIAS_ALL pointers.
6489 (c_common_get_alias_set): may_alias types are not special.
6490 * tree.c (build_pointer_type_for_mode): Look up the may_alias
6491 attribute and set can_ref_all accordingly.
6492 (build_reference_type_for_mode): Likewise.
6493 * doc/extend.texi (may_alias): Clarify.
6495 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
6498 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
6499 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
6501 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
6504 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
6505 gcc_assert, instead call output_operand_lossage.
6507 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
6509 * builtins.c (std_canonical_va_list): Treat structure based
6512 2008-07-15 Ben Elliston <bje@au.ibm.com>
6514 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
6516 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
6518 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
6521 2008-07-14 Jan Hubicka <jh@suse.cz>
6523 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
6524 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
6525 fix predicates and constraints.
6526 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
6527 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
6529 2008-07-14 Doug Kwan <dougkwan@google.com>
6531 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
6532 additional option file arm/eabi.opt.
6533 * config/arm/eabi.h (File): New configuration file for EABI targets.
6534 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
6535 SUBSUBTARGET_EXTRA_SPECS.
6536 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
6537 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
6538 from STARTFILE_SPEC so that it can be referenced in an override.
6539 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
6540 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
6541 can be referenced in an override.
6542 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
6543 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
6544 so that it can be referenced in an override.
6545 (LINK_SPEC): Use BPABI_LINK_SPEC.
6546 * config/arm/eabi.opt (File): New.
6548 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6550 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
6551 (FIXED_VALUE_H): New variable.
6552 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
6553 input.h, fixed-value.h.
6554 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
6555 (BASIC_BLOCK_H): Use $(BITMAP_H).
6556 (FUNCTION_H): Add varray.h.
6557 (IPA_REFERENCE_H): Use $(BITMAP_H).
6558 (CGRAPH_H): Add $(BASIC_BLOCK_H).
6559 (DF_H): Use $(BITMAP_H).
6560 (GGC_H): Add statistics.h.
6562 (INSN_ATTR_H): Use it.
6563 (SYSTEM_H): Add safe-ctype.h, filenames.h.
6565 (SYMTAB_H): Add $(OBSTACK_H).
6566 (CPP_INTERNAL_H): New.
6567 (TREE_DUMP_H): Add tree-pass.h.
6568 (TREE_FLOW_H): Use $(BITMAP_H)
6569 (PRETTY_PRINT_H): Use $(INPUT_H).
6570 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
6573 (many object files): Fix lots of header dependencies throughout.
6575 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6577 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
6579 (s-gtyp-input): Use them to write tmp-gi.list.
6580 (echo_to_gi.list): Remove.
6582 2008-07-14 Richard Guenther <rguenther@suse.de>
6584 * tree-ssa-sccvn.c (pre_info): Remove.
6585 (switch_to_PRE_table): Likewise.
6586 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
6587 (set_hashtable_value_ids): Do not create value-ids for the
6589 (run_scc_vn): Remove double test. Remove bogus special-case
6590 in value-number printing.
6591 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
6592 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
6594 * tree-flow-inline.h (get_value_handle): Remove.
6595 * tree-flow.h (get_value_handle): Remove.
6597 2008-07-14 Martin Jambor <mjambor@suse.cz>
6599 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
6600 in which we generate arithmetics is not a subrange.
6602 2008-07-14 Martin Jambor <mjambor@suse.cz>
6604 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
6606 2008-07-14 Richard Guenther <rguenther@suse.de>
6608 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
6610 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
6613 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
6614 reload for symbol refs moved to r0 with -fPIC.
6615 (legitimize_pic_address): Use the target register as temporary
6617 (emit_symbolic_move): Adjust comment.
6618 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
6621 2008-07-14 Ben Elliston <bje@au.ibm.com>
6623 * c-common.h (C_CPP_HASHNODE): New macro.
6624 * coretypes.h (struct cpp_token): Forward declare.
6625 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6626 the context-sensitive keyword method.
6627 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
6628 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
6629 expand_bool_pixel): New.
6630 (altivec_categorize_keyword): New function.
6631 (init_vector_keywords): New function.
6632 (rs6000_macro_to_expand): Likewise.
6633 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
6634 compiling an ISO C dialect.
6636 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
6638 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
6639 (create_expression_by_pieces): Fix typo.
6640 (do_regular_insertion): Use debug counter here too.
6642 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
6645 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
6646 CONST_OK_FOR_LETTER_P. All port-local users changed.
6647 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
6648 implement Kp matching power-of-two.
6649 (CONSTRAINT_LEN): Define to match.
6650 * config/cris/cris.md: Replace all use of constraint K with Kc.
6651 ("*btst*): Use Kp for operand 0 of last alternative.
6653 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6656 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
6659 2008-07-13 Jan Hubicka <jh@suse.cz>
6661 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
6664 2008-07-13 Richard Guenther <rguenther@suse.de>
6667 * langhooks.c (lhd_print_error_function): Deal with recursive
6670 2008-07-12 Jan Hubicka <jh@suse.cz>
6672 * cgraph.c (assembler_name_hash): New static var.
6673 (hash_node_by_assembler_name, eq_assembler_name): New.
6674 (cgraph_node_for_asm): Use hashtable.
6675 (cgraph_remove_node): Maintain hashtable.
6676 (change_decl_assembler_name): Sanity check that names are not changing
6677 after aliasing was processed.
6678 * cgraph.h (varpoon_node): Add next GGC marker.
6679 * tree.c (decl_assembler_name_equal): Constify.
6680 (decl_assembler_name_hash): New.
6681 * tree.h (decl_assembler_name_equal): Constify.
6682 (decl_assembler_name_hash): Update.
6684 2008-07-12 David Daney <ddaney@avtrex.com>
6686 * config/mips/driver-native.c (host_detect_local_cpu): Handle
6689 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6691 * doc/md.texi: Document the MIPS "v" constraint.
6692 * config/mips/mips.h (reg_class): Revert last change.
6693 (REG_CLASS_NAMES): Likewise.
6694 (REG_CLASS_CONTENTS): Likewise.
6695 * config/mips/mips.c (mips_regno_to_class): Likewise.
6696 * config/mips/constraints.md (v): Likewise, but add documentation.
6697 Add a comment to say that this constraint should not be used in
6700 2008-07-11 DJ Delorie <dj@redhat.com>
6702 * config/h8300/h8300.md (length): Fix branch offset limit.
6704 2008-07-11 Anatoly Sokolov <aesok@post.ru>
6706 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
6707 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
6708 (avr_hard_regno_scratch_ok): New function.
6709 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
6710 * config/avr/avr.md (all peepholes that request a scratch register):
6711 Remove avr_peep2_scratch_safe use.
6713 2008-07-11 Tom Tromey <tromey@redhat.com>
6714 Ian Lance Taylor <iant@google.com>
6716 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
6717 (struct c_common_resword): Define.
6718 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
6719 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
6720 (c_common_reswords, num_c_common_reswords): Declare.
6721 * c-common.c (c_common_reswords): New global const array.
6722 (num_c_common_reswords): New const int.
6723 * c-parser.c (struct resword, reswords): Don't define.
6724 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
6725 (c_parse_init): Clarify mask code. Use c_common_reswords rather
6726 than reswords. If warning about C++ keywords, give them a special
6728 (c_lex_one_token): Warn about C++ keywords. Call
6729 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
6730 (c_parser_external_declaration): Look for RID_xxx rather than
6731 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
6732 (c_parser_statement_after_labels): Likewise.
6733 (c_parser_objc_class_instance_variables): Likewise.
6734 (c_parser_objc_class_declaration): Likewise.
6735 (c_parser_objc_try_catch_statement): Likewise.
6736 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
6737 (declspecs_add_type): Likewise.
6739 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
6741 * ggc-page.c (alloc_page):
6742 Substituting xmalloc, xcalloc with
6743 XNEWVEC and XCNEWVAR macros which add the
6746 2008-07-11 Richard Guenther <rguenther@suse.de>
6748 PR tree-optimization/36765
6749 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
6750 aliases from HEAP vars to SMTs.
6752 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6754 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
6755 * configure.ac (loose_warn): Move -Wc++-compat from here...
6756 (strict_warn): ...to here.
6757 * configure: Regenerate.
6759 2008-07-10 Joseph Myers <joseph@codesourcery.com>
6761 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
6762 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
6763 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
6764 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
6765 excluding more specific h8300-*-* and sh-*-* targets.
6767 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
6769 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
6771 (execute_pre): Call loop_optimizer_finalize in early exit.
6773 2008-07-10 Jakub Jelinek <jakub@redhat.com>
6776 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
6777 uids in the bitmap, not just VAR_DECL uids.
6779 PR rtl-optimization/36419
6780 * combine-stack-adj.c (adjust_frame_related_expr): New function.
6781 (combine_stack_adjustments_for_block): Call it if needed. Delete
6783 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
6784 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
6785 prologue sp adjustment.
6787 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
6790 * opts.c (print_ignored_options): Report postponed diagnostics for
6791 unknown -Wno-* options as warnings, not errors.
6792 (postpone_unknown_option_error): Renamed to...
6793 (postpone_unknown_option_warning): ... this.
6795 2008-07-09 Doug Kwan <dougkwan@google.com>
6798 2008-07-08 Doug Kwan <dougkwan@google.com>
6800 * config/arm/arm.opt (mandroid): New option.
6801 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
6802 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
6804 (CC1PLUS_SPEC): Same.
6806 (STARTFILE_SPEC): Same.
6807 (ENDFILE_SPEC): Same.
6808 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
6811 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
6814 * config/mips/mips.h (reg_class): Remove V1_REG.
6815 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6816 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
6818 (mips_get_tp): New function.
6819 (mips_legitimize_tls_address): Use it.
6820 * config/mips/constraints.md (v): Delete.
6821 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
6822 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
6823 After reload, split into a move and ...
6824 (*tls_get_tp_<mode>_split): ...this new instruction.
6826 2008-07-09 David Daney <ddaney@avtrex.com>
6828 * config/mips/driver-native.c: Include coretypes.h and tm.h.
6830 2008-07-09 Jakub Jelinek <jakub@redhat.com>
6832 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
6833 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
6835 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
6836 htab_delete should be called. Don't free c.
6837 (lookup_tmp_var): Create temp_htab lazily.
6838 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
6839 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
6841 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
6842 lower_omp_ordered, lower_omp_critical, lower_omp_for,
6843 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
6844 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
6845 * tree-sra.c (generate_element_init): Likewise.
6846 * tree-mudflap.c (execute_mudflap_function_ops,
6847 execute_mudflap_function_decls): Likewise.
6848 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
6849 * tree-gimple.h (struct gimplify_ctx): New type.
6850 (push_gimplify_context): Adjust prototype.
6852 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
6854 * tree-ssa-pre.c (phi_translate_1): Update placement of
6857 2008-07-09 Anatoly Sokolov <aesok@post.ru>
6859 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
6860 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
6861 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
6862 * targhooks.c (default_hard_regno_scratch_ok): New function.
6863 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
6864 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
6865 * recog.c: Include "target.h".
6866 (peep2_find_free_register): Add check for global regs. Add target
6868 * Makefile.in (recog.o): Depend on target.h.
6870 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
6872 * config/sh/sh.c (sh_canonical_va_list_type): New.
6873 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
6875 2008-07-09 Raksit Ashok <raksit@google.com>
6877 * doc/invoke.texi (Option Summary): Mention new option
6878 -Wdisallowed-function-list=...
6879 (Warning Options): Document -Wdisallowed-function-list=...
6880 * common.opt (Wdisallowed-function-list=): New flag.
6881 * flags.h (warn_disallowed_functions): External definition of new
6882 boolean warning flag.
6883 (warn_if_disallowed_function_p): Declare new function.
6884 * opts.c (warning_disallowed_functions): New static variable.
6885 (warn_disallowed_functions): New boolean warning flag.
6886 (warn_if_disallowed_function_p): New function.
6887 (add_comma_separated_to_vector): Rename
6888 add_instrument_functions_exclude_list to this.
6889 (common_handle_option): Handle new option. Rename calls to
6890 add_instrument_functions_exclude_list into calls to
6891 add_comma_separated_to_vector.
6892 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
6893 based on flag warn_disallowed_functions.
6895 2008-07-09 Christian Bruel <christian.bruel@st.com>
6897 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
6898 instead of get_attr_length.
6900 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6902 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
6904 * genemit.c (gen_insn): Likewise.
6905 * gengtype.c (note_def_vec): Likewise.
6906 * gengtype.h (note_def_vec): Likewise.
6907 * genoutput.c (struct data, output_insn_data, process_template,
6908 gen_expand, gen_split, note_constraint): Likewise.
6909 * genrecog.c (new_decision, add_to_sequence, factor_tests,
6910 make_insn_sequence): Likewise.
6911 * gensupport.c (record_insn_name): Likewise.
6913 2008-07-08 Doug Kwan <dougkwan@google.com>
6915 * config/arm/arm.opt (mandroid): New option.
6916 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
6917 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
6919 (CC1PLUS_SPEC): Same.
6921 (STARTFILE_SPEC): Same.
6922 (ENDFILE_SPEC): Same.
6923 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
6926 2008-07-08 Raksit Ashok <raksit@google.com>
6928 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
6929 (set_storage_via_setmem): Fix expected_align parameter.
6930 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
6931 missing from the list.
6932 * doc/md.texi (movmem): Explicitly state that expected alignment is
6933 to be expressed in bytes.
6934 (setmem): Explicitly state that expected alignment is to be expressed
6937 2008-07-08 Joseph Myers <joseph@codesourcery.com>
6939 * reload.c (find_reloads_subreg_address): Do not require validity
6940 of address in original mode before reloading address.
6942 2008-07-07 Tianwei Sheng <tianweis@google.com>
6944 * df-core.c (df_remove_problem): Adjust the access to avoid out of
6945 bounds array access.
6947 2008-07-08 Jakub Jelinek <jakub@redhat.com>
6949 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
6951 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
6953 Fix PR tree-optimization/23455
6954 Fix PR tree-optimization/35286
6955 Fix PR tree-optimization/35287
6956 * Makefile.in (OBJS-common): Remove tree-vn.o.
6957 (tree-vn.o): Remove.
6958 * dbgcnt.def: Add treepre_insert debug counter.
6959 * gcc/tree-flow.h (add_to_value): Updated for other changes.
6960 (debug_value_expressions): Ditto.
6961 (print_value_expressions): Ditto.
6962 * tree-pretty-print.c (dump_generic_node): Updated for
6963 VALUE_HANDLE removal.
6964 * tree-ssa-dom.c (record_equality): Ditto.
6965 (cprop_operand): Ditto.
6966 (lookup_avail_expr): Ditto.
6967 * tree-ssa-threadedge.c
6968 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
6969 (simplify_control_stmt_condition): Ditto.
6970 * tree.c (tree_code_size): Ditto.
6971 (tree_node_structure): Ditto.
6972 (iterative_hash_expr): Ditto.
6974 * tree.h (VALUE_HANDLE_ID): Ditto.
6975 (VALUE_HANDLE_EXPR_SET): Ditto.
6976 (struct tree_value_handle): Ditto.
6977 (union tree_node): Ditto.
6978 * treestruct.def: Ditto.
6979 * tree-vn.c: Removed.
6980 * tree-ssa-pre.c: Rewritten entirely.
6981 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
6982 (constant_value_ids): Ditto.
6983 (vn_nary_op_t): Moved to header.
6985 (vn_reference_op_t): Ditto
6986 (vn_reference_t): Ditto.
6987 (next_value_id): New variable.
6988 (VN_INFO): Add an assert.
6989 (vn_constant_eq): New function.
6990 (vn_constant_hash): Ditto.
6991 (get_or_alloc_constant_value_id): Ditto.
6992 (value_id_constant_p): Ditto.
6993 (vn_reference_compute_hash): De-staticify.
6994 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
6995 Disable some code with a FIXME. Remove VALUE_HANDLE use.
6996 (valueize_refs): Update opcode if it changes from ssa name to constant.
6997 (vn_reference_lookup_1): Add new argument.
6998 (vn_reference_lookup): Ditto.
6999 (vn_reference_lookup_pieces): New function.
7000 (vn_reference_insert): Add return type. Modify to deal with value ids.
7001 (vn_reference_insert_pieces): New function.
7002 (vn_nary_op_compute_hash): De-staticify.
7003 (vn_nary_op_eq): Ditto.
7004 (vn_nary_op_lookup_pieces): New function.
7005 (vn_nary_op_lookup): Add new argument.
7006 (vn_nary_op_insert_pieces): New function.
7007 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7008 (vn_phi_insert): Ditto.
7009 (visit_unary_op): Update for callee changes.
7010 (visit_binary_op): Ditto.
7011 (visit_reference_op_load): Ditto.
7012 (visit_reference_op_store): Ditto.
7013 (init_scc_vn): Init next_value_id, constant_to_value_id and
7015 (free_scc_vn): Free them.
7016 (set_hashtable_value_ids): New function.
7017 (run_scc_vn): Use it.
7018 (get_max_value_id): New function.
7019 (get_next_value_id): Ditto.
7020 (expressions_equal_p): Moved from tree-vn.c
7021 (sort_vuses): Ditto.
7022 (sort_vuses_heap): Ditto.
7023 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
7025 * tree.c (iterative_hash_hashval_t): Made non-static
7026 * tree.h (iterative_hash_hashval_t): Declare it.
7028 2008-07-08 Martin Jambor <mjambor@suse.cz>
7030 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
7031 instead of ipa_create_node_params.
7032 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
7033 ipa_check_create_edge_args, free them with
7034 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
7036 * ipa-prop.c: Include flags.h and tree-inline.h.
7037 (ipa_node_params_vector): New variable.
7038 (ipa_edge_args_vector): New variable.
7039 (edge_removal_hook_holder): New variable.
7040 (node_removal_hook_holder): New variable.
7041 (edge_duplication_hook_holder): New variable.
7042 (node_duplication_hook_holder): New variable.
7043 (ipa_detect_param_modifications): Check for presence of modified flags.
7044 (ipa_compute_jump_functions): Check for presence of jump functions.
7045 (ipa_free_edge_args_substructures): New function.
7046 (ipa_create_node_params): Removed.
7047 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
7048 (ipa_free_node_params_substructures): New function.
7049 (ipa_free_all_node_params): Changed to deallocate the on-the-side
7051 (ipa_edge_removal_hook): New function.
7052 (ipa_node_removal_hook): New function.
7053 (duplicate_array): New function.
7054 (ipa_edge_duplication_hook): New function.
7055 (ipa_node_duplication_hook): New function.
7056 (ipa_register_cgraph_hooks): New function.
7057 (ipa_unregister_cgraph_hooks): New function.
7058 (free_all_ipa_structures_after_ipa_cp): New function.
7060 * ipa-prop.h: Include vec.h.
7061 (ipa_node_params_t): New typedef with vector types for it.
7062 (ipa_edge_args_t): New typedef with vector types for it.
7063 (IPA_NODE_REF): Changed to access an on-the-side vector.
7064 (IPA_EDGE_REF): Changed to access an on-the-side vector.
7065 (ipa_check_create_node_params): New function.
7066 (ipa_check_create_edge_args): New function.
7068 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
7071 2008-07-07 Tom Tromey <tromey@redhat.com>
7073 * configure, config.in: Rebuilt.
7074 * configure.ac: Don't check for scandir or alphasort.
7076 2008-07-07 Joseph Myers <joseph@codesourcery.com>
7078 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
7079 types immediately after creating them.
7081 2008-07-07 Joseph Myers <joseph@codesourcery.com>
7083 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
7085 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
7087 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
7088 dump_constraint_graph.
7089 (dump_constraint_edge): New function.
7090 (dump_constraint_graph): New function.
7091 (debug_constraint_graph): New function.
7092 (dump_constraint): Removed useless comparison.
7093 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
7094 (dump_constraint_graph): Declare.
7095 (debug_constraint_graph): Declare.
7096 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
7098 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
7100 * config/i386/i386.c (is_va_list_char_pointer): New.
7101 (ix86_va_start): Replace compare with ms_va_list_type_node
7102 by is_va_list_char_pointer.
7103 (ix86_gimplify_va_arg): Likewise.
7105 2008-07-07 Martin Jambor <mjambor@suse.cz>
7107 * cgraph.c (cgraph_edge_max_uid): New variable.
7108 (struct cgraph_edge_hook_list): New type.
7109 (struct cgraph_node_hook_list): New type.
7110 (struct cgraph_2edge_hook_list): New type.
7111 (struct cgraph_2node_hook_list): New type.
7112 (first_cgraph_edge_removal_hook): New variable.
7113 (first_cgraph_node_removal_hook): New variable.
7114 (first_cgraph_edge_duplicated_hook): New variable.
7115 (first_cgraph_node_duplicated_hook): New variable.
7116 (cgraph_add_edge_removal_hook): New function.
7117 (cgraph_remove_edge_removal_hook): New function.
7118 (cgraph_call_edge_removal_hooks): New function.
7119 (cgraph_add_node_removal_hook): New function.
7120 (cgraph_remove_node_removal_hook): New function.
7121 (cgraph_call_node_removal_hooks): New function.
7122 (cgraph_add_edge_duplication_hook): New function.
7123 (cgraph_remove_edge_duplication_hook): New function.
7124 (cgraph_call_edge_duplication_hooks): New function.
7125 (cgraph_add_node_duplication_hook): New function.
7126 (cgraph_remove_node_duplication_hook): New function.
7127 (cgraph_call_node_duplication_hooks): New function.
7128 (cgraph_create_edge): Assign to edge uid.
7129 (cgraph_remove_edge): Call edge removal hooks.
7130 (cgraph_node_remove_callees): Call edge removal hooks.
7131 (cgraph_node_remove_callers): Call edge removal hooks.
7132 (cgraph_remove_node): Call node removal hooks.
7133 (cgraph_clone_edge): Call edge duplication hooks.
7134 (cgraph_clone_node): Call node duplication hooks.
7136 * cgraph.h (cgraph_edge): New field uid.
7137 (cgraph_edge_hook): New type.
7138 (cgraph_node_hook): New type.
7139 (cgraph_2edge_hook): New type.
7140 (cgraph_2node_hook): New type.
7142 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
7144 * config.in: Regenerate.
7146 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
7148 * gcc.c (print_sysroot): New.
7149 (option_map, display_help, process_command): Handle the
7150 -print-sysroot option.
7151 (main): Print the sysroot if requested.
7152 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
7154 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7157 * unwind-pe.h (size_of_encoded_value): add attribute unused.
7159 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
7161 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
7162 (assign_parm_setup_block_p): Also check mode of entry_parm.
7164 2008-07-07 Richard Guenther <rguenther@suse.de>
7166 * tree-ssa-structalias.h (set_used_smts): Remove.
7167 * tree-ssa-structalias.c (used_smts): Likewise.
7168 (set_used_smts): Likewise.
7169 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
7170 call to set_used_smts.
7172 2008-07-07 Richard Guenther <rguenther@suse.de>
7174 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
7175 (new_var_info): Set it to false.
7176 (solution_set_add): Correctly handle pointers outside a var and
7178 (type_safe): Treat variables with is_full_var properly.
7179 (do_sd_constraint): Likewise.
7180 (do_ds_constraint): Likewise.
7181 (process_constraint): Remove zeroing offset for !use_field_sensitive.
7182 (get_constraint_for_ptr_offset): New function.
7183 (get_constraint_for_component_ref): For addresses at least include
7184 the last field of the variable. Handle is_full_vars properly.
7185 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
7186 (handle_ptr_arith): Remove.
7187 (find_func_aliases): Simplify assignment handling.
7188 (create_function_info_for): For parameter and result varinfos set
7190 (create_variable_info_for): Set is_full_var flag whenever we
7191 just created a single varinfo for a decl.
7192 (init_alias_vars): Initialize use_field_sensitive from
7193 max-fields-for-field-sensitive parameter.
7195 2008-07-07 Richard Guenther <rguenther@suse.de>
7197 PR tree-optimization/36713
7198 * tree-flow-inline.h (is_call_used): New function.
7199 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
7200 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7201 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
7203 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7205 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
7207 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
7209 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
7211 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
7212 Nathan Sidwell <nathan@codesourcery.com>
7214 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
7215 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
7217 * config/m68k/t-linux: New.
7218 * doc/install.texi: Document m68k-*-linux is now multilibbed by
7221 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
7223 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
7224 * config/m68k/m68k-devices.def: Remove multilibs that only differ
7227 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7229 * gcc.c (execute): Fix -Wc++-compat warning.
7231 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
7234 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
7235 constant for little endian.
7237 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
7239 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
7240 mips_base_mips16 instead of TARGET_MIPS16.
7241 (mips_base_mips16): Declare.
7242 * config/mips/mips.c (mips_base_mips16): Make global.
7243 (was_mips16_p): Remove GTY marker.
7244 (was_mips16_pch_p): New variable.
7245 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
7246 (mips_override_options): Force to non-MIPS16 mode initially.
7247 Do not complain about MIPS16 PIC incompatibilities here.
7248 Only allow -mgpopt if -mexplicit-relocs is in force for
7251 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
7253 * configure.ac: Check for caddr_t, define to char * if not defined.
7254 * configure: Regenerate.
7255 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
7256 (mmap_gt_pch_use_address): Likewise.
7257 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
7259 2008-07-06 Richard Guenther <rguenther@suse.de>
7261 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
7262 (new_var_info): Deal with it.
7263 (solution_set_add): Likewise.
7264 (bitpos_of_field): Make signed, fix.
7265 (struct fieldoff): Remove type and decl fields. Make size field
7266 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
7268 (fieldoff_compare): Deal with it.
7269 (push_fields_onto_fieldstack): Remove has_union argument, glob
7270 adjacent non-pointer fields together.
7271 (create_function_info_for): Do not set has_union.
7272 (create_variable_info_for): Simplify.
7274 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
7276 * config.gcc (extra_headers): Add cross-stdarg.h for target
7277 x86_64-*-* and i?86-*-*.
7278 * config/i386/cross-stdarg.h: New.
7279 * builtins.c (std_fn_abi_va_list): New.
7280 (std_canonical_va_list_type): New.
7281 (stabilize_va_list): Replace va_list_type_node use by
7282 mtarget.canonical_va_list_type.
7283 (gimplify_va_arg_expr): Likewise.
7284 (expand_builtin_va_copy): Replace va_list_type_node use by
7285 mtarget.fn_abi_va_list.
7286 * tree-sra.c (is_va_list_type): New helper.
7287 (decl_can_be_decomposed_p): Replace
7288 va_list_type_node use by is_va_list_type.
7289 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
7290 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7291 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
7292 * config/i386/i386-protos.h (ix86_get_valist_type): New.
7293 (ix86_enum_va_list): New.
7294 * config/i386/i386.c (sysv_va_list_type_node): New.
7295 (ms_va_list_type_node): New.
7296 (ix86_function_type_abi): Remove sorry.
7297 (ix86_build_builtin_va_list_abi): New.
7298 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
7300 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
7301 (ix86_init_builtins_va_builtins_abi): New.
7302 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
7304 (ix86_handle_abi_attribute): New.
7305 (attribute_spec): Add sysv_abi and ms_abi.
7306 (ix86_fn_abi_va_list): New.
7307 (ix86_canonical_va_list_type): New.
7308 (ix86_enum_va_list): New.
7309 (TARGET_FN_ABI_VA_LIST): New.
7310 (TARGET_CANONICAL_VA_LIST_TYPE): New.
7311 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
7312 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
7313 (TARGET_CANONICAL_VA_LIST_TYPE): New.
7314 (TARGET_ENUM_VA_LIST): New.
7315 * expr.h (std_fn_abi_va_list): New.
7316 (std_canonical_va_list_type): New.
7317 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
7318 (TARGET_CANONICAL_VA_LIST_TYPE): New.
7319 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
7320 TARGET_CANONICAL_VA_LIST_TYPE.
7321 * target.h (struct gcc_target): Add fn_abi_va_list hook
7322 and canonical_va_list_type hook.
7324 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
7326 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
7327 integral and pointer types.
7329 2008-07-04 Roger Sayle <roger@eyesopen.com>
7331 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
7332 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
7334 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
7337 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
7339 2008-07-04 Jakub Jelinek <jakub@redhat.com>
7341 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
7342 build_gimple_modify_stmt.
7343 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
7344 gimple operand. Use fold_build* instead of build*.
7346 2008-07-04 Richard Guenther <rguenther@suse.de>
7348 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
7349 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
7350 properly to compute the reachability set if we do field-sensitive PTA.
7351 * invoke.texi (max-fields-for-field-sensitive): Document default.
7352 * opts.c (decode_options): Set max-fields-for-field-sensitive to
7353 100 for optimize >= 2.
7355 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7357 * ggc-zone.c (lookup_page_table_if_allocated,
7358 set_page_table_entry, zone_find_object_size, alloc_small_page,
7359 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
7360 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
7361 -Wc++-compat and/or -Wcast-qual warnings.
7363 2008-07-04 Alan Modra <amodra@bigpond.net.au>
7366 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
7367 pic_offset_table_rtx to be marked as used here.
7368 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
7369 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
7370 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
7371 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
7374 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7376 * alloc-pool.c (hash_descriptor, eq_descriptor,
7377 alloc_pool_descriptor): Fix -Wc++-compat warnings.
7378 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
7380 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
7381 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
7382 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
7383 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
7386 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
7388 * tree-flow.h (loop_only_exit_p): Declare.
7389 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
7390 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
7391 the number of iterations if it is constant. Otherwise, if this is the
7392 only possible exit of the loop, use the conservative estimate on the
7393 number of iterations of the entire loop if available.
7395 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
7397 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
7398 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
7399 Add synchronization functions.
7400 * config/sync.c: New file.
7401 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
7402 (LIBGCC_SYNC_CFLAGS): Likewise.
7404 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
7407 * config/i386/i386.md (mode): Add TF to "mode" attribute.
7408 (*pushtf_sse): New insn pattern.
7409 (pushtf splitters): New splitters.
7411 2008-07-03 Michael Meissner <gnu@the-meissners.org>
7414 * predict.c (build_predict_expr): Use void_type_node for the tree
7415 type, instead of NULL_TREE.
7417 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
7419 * config/i386/i386.c (contains_aligned_value_p): Return true
7421 (ix86_data_alignment): Align TCmode to 128bits.
7422 (ix86_local_alignment): Likewise.
7424 2008-07-03 Andrew Haley <aph@redhat.com>
7427 * vec.h (VEC_TA): New.
7428 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
7429 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
7430 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
7431 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
7432 (C_COMMON_FIXED_TYPES): Remove first arg.
7433 (C_COMMON_FIXED_MODE_TYPES): Likewise.
7434 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
7435 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
7436 not to use empty macro arguments.
7438 2008-07-02 Joseph Myers <joseph@codesourcery.com>
7440 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
7441 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
7442 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
7443 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
7444 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
7445 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
7446 config/ia64/crtn.asm, config/m68hc11/larith.asm,
7447 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
7448 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
7449 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
7450 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
7451 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
7452 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
7453 config/rs6000/e500crtres64gpr.asm,
7454 config/rs6000/e500crtres64gprctr.asm,
7455 config/rs6000/e500crtrest32gpr.asm,
7456 config/rs6000/e500crtrest64gpr.asm,
7457 config/rs6000/e500crtresx32gpr.asm,
7458 config/rs6000/e500crtresx64gpr.asm,
7459 config/rs6000/e500crtsav32gpr.asm,
7460 config/rs6000/e500crtsav64gpr.asm,
7461 config/rs6000/e500crtsav64gprctr.asm,
7462 config/rs6000/e500crtsavg32gpr.asm,
7463 config/rs6000/e500crtsavg64gpr.asm,
7464 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
7465 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
7466 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
7467 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
7468 config/sparc/sol2-cn.asm: Remove .file directives.
7470 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
7472 * resource.c (mark_referenced_resources): Look inside
7473 UNSPEC_VOLATILEs and ASM_INPUTs.
7475 2008-07-02 Ian Lance Taylor <iant@google.com>
7477 * rtlanal.c (add_reg_note): New function.
7478 * rtl.h (add_reg_note): Declare.
7479 * auto-inc-dec.c (attempt_change): Use add_reg_note.
7480 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
7481 * builtins.c (expand_builtin_longjmp): Likewise.
7482 (expand_builtin_nonlocal_goto): Likewise.
7483 * calls.c (emit_call_1, expand_call): Likewise.
7484 * cfgexpand.c (add_reg_br_prob_note): Likewise.
7485 * cfglayout.c (fixup_reorder_chain): Likewise.
7486 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7487 (commit_one_edge_insertion): Likewise.
7488 * combine.c (move_deaths, distribute_notes): Likewise.
7489 * df-problems.c (df_set_note): Likewise.
7490 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
7491 (set_unique_reg_note): Likewise.
7492 (emit_copy_of_insn_after): Likewise.
7493 * expr.c (expand_expr_real): Likewise.
7494 * gcse.c (add_label_notes): Likewise.
7495 * haifa-sched.c (create_check_block_twin): Likewise.
7496 * jump.c (mark_jump_label_1): Likewise.
7497 * loop-doloop.c (add_test, doloop_modify): Likewise.
7498 * loop-unswitch.c (compare_and_jump_seq): Likewise.
7499 * lower-subreg.c (move_eh_region_note): Likewise.
7500 * optabs.c (emit_libcall_block): Likewise.
7501 * predict.c (predict_insn): Likewise.
7502 (combine_predictions_for_insn): Likewise.
7503 * recog.c (peephole2_optimize): Likewise.
7504 * regmove.c (try_auto_increment): Likewise.
7505 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
7506 * reload.c (find_reloads): Likewise.
7507 * reload1.c (fixup_eh_region_note): Likewise.
7508 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
7509 * reorg.c (delete_prior_computation): Likewise.
7510 (delete_computation, dbr_schedule): Likewise.
7511 * config/pa/pa.c (legitimize_pic_address): Likewise.
7512 * config/sh/sh.c (sh_reorg): Likewise.
7514 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
7517 * config/libgcc-glibc.ver: Add %exclude.
7518 * config/m32r/libgcc-glibc.ver: Likwise.
7519 * config/s390/libgcc-glibc.ver: Likwise.
7520 * config/sh/libgcc-glibc.ver: Likwise.
7521 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
7523 * config/i386/libgcc-glibc.ver: New.
7525 * config/i386/libgcc-x86_64-glibc.ver: Removed.
7527 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
7529 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
7530 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
7531 i[34567]86-*-linux*, x86_64-*-linux*. Add
7532 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
7533 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
7534 x86_64-*-linux*. Add i386/t-linux to tmake_file for
7535 i[34567]86-*-linux*, x86_64-*-linux*.
7537 * libgcc-std.ver: Add empty GCC_4.4.0.
7539 * mkmap-symver.awk: Support multiple versions per symbol.
7541 * config/i386/i386.c (ix86_init_builtins): Always define
7542 __builtin_fabsq and __builtin_copysignq with fallbacks.
7543 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
7544 and __builtin_copysignq if SSE2 isn't available.
7546 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
7547 (LIBGCC2_TF_CEXT): Likwise.
7550 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
7552 * config/i386/sfp-machine.h: Moved to libgcc.
7554 * config/i386/sfp-machine.h: New.
7555 * config/i386/t-linux: Likwise.
7557 * config/i386/t-darwin: Remove softfp_wrap_start and
7559 * config/i386/t-darwin64: Likewise.
7561 * config/i386/t-fprules-softfp64: Renamed to ...
7562 * config/i386/t-fprules-softfp: This.
7564 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
7565 and softfp_wrap_end.
7567 2008-07-02 Jason Merrill <jason@redhat.com>
7569 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
7571 * tree.c (ctor_to_list): New fn.
7572 * tree.h: Declare it.
7573 (CONSTRUCTOR_ELT): New macro.
7574 (CONSTRUCTOR_NELTS): New macro.
7576 2008-07-02 Richard Guenther <rguenther@suse.de>
7578 * tree-ssa-structalias.c (struct variable_info): Reorder
7579 to fill padding on 64bit hosts. Make collapsed_to an int.
7580 (get_varinfo_fc): Deal with that.
7581 (new_var_info): Likewise.
7582 (collapse_rest_of_var): Likewise.
7584 2008-07-02 Joshua Sumali <jsumali@redhat.com>
7586 * doc/install.texi (--enable-java-home): Document.
7587 (--enable-aot-compile-rpm): Likewise.
7588 (--with-arch-directory): Likewise.
7589 (--with-os-directory): Likewise.
7590 (--with-origin-name): Likewise.
7591 (--with-arch-suffix): Likewise.
7592 (--with-jvm-root-dir): Likewise.
7593 (--with-jvm-jar-dir): Likewise.
7594 (--with-python-dir): Likewise.
7596 2008-07-02 Richard Guenther <rguenther@suse.de>
7598 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
7599 from decls explicitly. Merge operand checking from tuples.
7601 2008-07-02 Martin Jambor <mjambor@suse.cz>
7603 * tree-switch-conversion.c: Included timevar.h which I forgot before.
7605 2008-07-02 Martin Jambor <mjambor@suse.cz>
7607 * tree-switch-conversion.c: Included timevar.h
7608 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
7610 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
7612 2008-07-02 Martin Jambor <mjambor@suse.cz>
7614 * tree-switch-conversion.c: Corrected various comments and
7616 (build_constructors): Fixed minor formatting mistakes.
7618 * invoke.texi (Optimize Options): Corrected the
7619 switch-conversion-max-branch-ratio parameter.
7621 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
7623 * final.c (asm_insn_count): Return zero for an empty asm body.
7625 2008-07-02 Richard Guenther <rguenther@suse.de>
7627 * bitmap.h (bitmap_set_bit): Return bool.
7628 (bitmap_clear_bit): Likewise.
7629 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
7630 write to the bitmap if it would.
7631 (bitmap_clear_bit): Likewise.
7632 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
7633 bitmap_set_bit return value.
7634 (add_pred_graph_edge): Likewise.
7635 (add_graph_edge): Likewise.
7636 (do_sd_constraint): Likewise.
7637 (do_ds_constraint): Likewise.
7639 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7641 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
7642 Fix -Wc++-compat and/or -Wcast-qual warnings.
7643 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
7644 gen_regparm_prefix): Likewise.
7645 * vmsdbgout.c (write_modbeg, lookup_filename,
7646 vmsdbgout_source_line, vmsdbgout_init): Likewise.
7648 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
7650 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
7651 defaults.h definition apply.
7653 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
7655 * function.c (assign_parm_remove_parallels): New.
7656 (assign_parm_setup_block_p): Do not return true for non-BLKmode
7658 (assign_parm_setup_block): Do not handle them.
7659 (assign_parm_setup_reg, assign_parm_setup_stack): Call
7660 assign_parm_remove_parallels.
7662 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
7664 * c-typeck.c (convert_for_assignment): Use
7665 vector_targets_convertible_p.
7666 * c-common.c (vector_targets_convertible_p): New.
7667 * c-common.h (vector_targets_convertible_p): New prototype.
7668 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
7669 opaque_p_V2SI_type_node.
7671 2008-07-01 Steve Ellcey <sje@cup.hp.com>
7673 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
7676 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
7678 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
7679 TFmode constants via two element DImode vector for hosts with
7680 HOST_BITS_PER_WIDE_INT < 64.
7681 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
7682 also for HOST_BITS_PER_WIDE_INT < 64.
7684 2008-07-01 Richard Guenther <rguenther@suse.de>
7686 PR tree-optimization/36666
7687 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
7688 (get_constraint_exp_from_ssa_var): Split into ...
7689 (get_constraint_exp_for_temp): ... this ...
7690 (get_constraint_for_ssa_var): ... and that.
7691 Return constraint expressions for all touched sub-fields
7692 if the results address is not taken.
7693 (process_constraint): Remove assertion that aggregate
7694 assignments do not happen at this place.
7695 (get_constraint_for_component_ref): Add address_p argument.
7696 Return constraint expressions for all touched sub-fields
7697 if the results address is not taken.
7698 (do_deref): Use get_constraint_exp_for_temp.
7699 (get_constraint_for_1): Rename from ...
7700 (get_constraint_for): ... this. Add the old function as wrapper.
7701 (do_structure_copy): Use get_constraint_for_1.
7703 2008-07-01 Martin Jambor <mjambor@suse.cz>
7705 * Makefile.in (tree-switch-conversion.o): Add.
7706 (OBJS-common): Add tree-swtch-conversion.o.
7707 * passes.c (init_optimization_passes): Add pass_convert_switch.
7708 * tree-pass.h: (pass_convert_switch): Add.
7709 * tree-switch-conversion.c: New file.
7710 * gcc.dg/tree-ssa/cswtch.c: New testcase.
7711 * common.opt (ftree-cswtch): New option.
7712 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
7713 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
7714 * opts.c (decode_options): Set flag_tree_switch_conversion when
7715 optimization level is >= 2.
7716 * doc/invoke.texi (Optimize Options): Added description of
7717 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
7719 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7721 * config/darwin-driver.c (darwin_default_min_version): Fix
7722 -Wc++-compat warnings.
7724 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
7726 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
7729 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
7731 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
7733 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
7735 PR rtl-optimization/34744
7736 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
7737 (df_scan_free_internal): Free data structures not
7738 allocated in storage pools.
7739 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
7740 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
7741 df_scan_free_mws_vec.
7742 * dse.c (dse_step6): Free offset_map_p and offset_map_n
7745 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
7747 * config/i386/i386.c (contains_aligned_value_p): Return true
7749 (ix86_function_arg_boundary): Return its natural boundary
7751 (return_in_memory_32): Don't check TDmode.
7752 (ix86_split_to_parts): Support splitting into 4 parts and
7753 support TFmode for 32bit target.
7754 (ix86_split_long_move): Support splitting into 4 parts.
7755 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
7757 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
7758 (ix86_init_builtins): Here.
7759 (ix86_scalar_mode_supported_p): Always return true for TFmode.
7760 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
7761 'q' and 'w', respectively.
7763 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
7765 (movtf_internal): Likewise.
7766 (<code>tf2): Likewise.
7767 (*absnegtf2_sse): Likewise.
7768 (copysign<mode>3): Likewise.
7769 (copysign<mode>3_const): Likewise.
7770 (copysign<mode>3_var): Likewise.
7771 (define_split UNSPEC_COPYSIGN): Likewise.
7772 * config/i386/sse.md (*nandtf3): Likewise.
7773 (<code>tf3): Likewise.
7774 (*<code>tf3): Likewise.
7776 2008-06-30 Joey Ye <joey.ye@intel.com>
7777 H.J. Lu <hongjiu.lu@intel.com>
7779 * global.c (compute_regsets): Set frame_pointer_needed here.
7780 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
7782 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7784 * doc/install.texi (specific): Expand Windows build notes.
7786 2008-06-30 Ira Rosen <irar@il.ibm.com>
7788 PR tree-optimization/36648
7789 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
7790 number of prolog iterations by step. Fix the comment.
7792 2008-06-30 Richard Guenther <rguenther@suse.de>
7795 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
7796 handle calls from ECF_MALLOC functions.
7797 (handle_pure_call): ECF_MALLOC functions do not return
7799 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
7801 2008-06-29 Andreas Schwab <schwab@suse.de>
7803 * config/m68k/m68k.c (print_operand): Always print a float
7805 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
7806 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
7809 * config/rs6000/x-linux64: Remove never used file.
7811 2008-06-29 Richard Guenther <rguenther@suse.de>
7813 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
7815 (struct alias_info): Move ...
7816 * tree-ssa-alias.c: ... here.
7817 (update_alias_info): Declare.
7818 (compute_may_aliases): Call it.
7819 (update_alias_info): New function.
7820 * tree-ssa-structalias.c (update_alias_info): Move ...
7821 * tree-ssa-alias.c (update_alias_info_1): ... here.
7822 * tree-ssa-structalias.c (process_constraint_1): Remove
7823 unused from_call argument. Rename to ...
7824 (process_constraint): ... this. Delete old wrapper.
7825 (make_constraint_to): Adjust callers.
7826 (handle_const_call): Likewise.
7827 (handle_pure_call): Likewise.
7828 (init_base_vars): Likewise.
7829 (handle_lhs_call): Likewise. Remove unnecessary constraint.
7830 (find_func_aliases): We don't need structure copies for
7832 (make_constraint_from_anything): Remove.
7833 (create_variable_info_for): For globals make constraints
7834 from escaped, not from anything.
7835 (compute_points_to_sets): Do not call update_alias_info.
7836 (ipa_pta_execute): Use make_constraint_from.
7838 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7840 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
7841 (bitmap.o-warn, dominance.o-warn): New.
7842 * configure.ac (cxx_compat_warn): Delete.
7843 (loose_warn): Add -Wcast-qual and -Wc++-compat.
7844 * system.h: Remove #pragma diagnostic for -Wcast-qual and
7846 * configure: Regenerate.
7848 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
7851 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7853 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
7854 * df-scan.c (df_notes_rescan): Likewise.
7855 * ggc-page.c (set_page_table_entry): Likewise.
7856 * intl.c (gcc_gettext_width): Likewise.
7857 * varasm.c (get_unnamed_section, get_noswitch_section,
7858 get_section): Likewise.
7860 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
7862 * regrename.c (build_def_use): Don't copy RTX.
7864 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
7866 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
7867 (Type Attributes): Fix nesting of @table and @subsection. Adjust
7868 punctuation. Use @ref instead of @xref.
7869 (Function Names): Remove stray @display/@end display.
7870 (C++ Attributes): Use @ref instead of @xref.
7871 (Deprecated Features): Fix punctuation around @xref.
7872 (Backwards Compatibility): Likewise.
7873 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
7875 2008-06-28 Joseph Myers <joseph@codesourcery.com>
7877 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
7878 constants for E500 double.
7880 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7882 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
7883 element type of const_vector.
7885 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
7887 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
7888 Remove FLAGS_REG clobber from expander pattern.
7889 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
7890 (anddi3, andsi3, andhi3, andqi3): Ditto.
7891 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
7892 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
7893 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
7894 (ashlsi3, ashlhi3, ashlqi3): Ditto.
7895 (ashrsi3, ashrhi3, ashrqi3): Ditto.
7896 (lshrsi3, lshrhi3, lshrqi3): Ditto.
7897 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
7898 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
7900 2008-06-28 Richard Guenther <rguenther@suse.de>
7902 * tree-ssa-structalias.c (callused_id, var_callused,
7903 callused_tree): Add.
7904 (handle_pure_call): New function.
7905 (find_func_aliases): Call it.
7906 (find_what_p_points_to): Handle the call-used set.
7907 (clobber_what_escaped): Likewise.
7908 (compute_call_used_vars): New function.
7909 (init_base_vars): Init the call-used variable.
7910 (do_sd_constraint): Do not propagate the solution from CALLUSED
7911 but use CALLUSED as a placeholder.
7912 (solve_graph): Likewise.
7913 * tree-flow-inline.h (gimple_call_used_vars): New function.
7914 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
7915 (compute_call_used_vars): Declare.
7916 * tree-ssa-alias.c (set_initial_properties): Call
7917 compute_call_used_vars.
7918 (reset_alias_info): Clear call-used variables.
7919 (add_call_clobber_ops): Assert we are not called for const/pure
7920 functions. Remove handling of them.
7921 (add_call_read_ops): Handle pure functions by adding the
7922 call-used set of variables as VUSEs.
7923 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
7924 (delete_tree_ssa): Free it.
7925 * tree-dfa.c (remove_referenced_var): Clear the var from the
7928 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
7930 * tree.c (build_varargs_function_type_list): New.
7931 (build_function_type_list_1): New.
7932 (build_function_type_list): Use build_function_type_list_1.
7933 * tree.h (build_varargs_function_type_list): New.
7935 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7938 * config/spu/spu.c (spu_builtin_splats): Do not generate
7939 invalid CONST_VECTOR expressions.
7940 (spu_expand_vector_init): Likewise.
7942 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
7944 * optabs.c (libfunc_decls): New variable.
7945 (libfunc_decl_hash, libfunc_decl_eq): New functions.
7946 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
7947 for the same function twice.
7949 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
7951 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
7952 ix86_expand_binary_operator directly.
7953 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
7955 (*ashrti3_1): Ditto.
7956 (*lshrti3_1): Ditto.
7957 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
7958 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
7959 using only one splitter. Conditionaly execute splitter before or
7960 after peephole2 pass.
7961 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
7962 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
7963 Use only one alternative in asm template.
7964 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
7966 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
7967 "J" operand constraint for operand 2.
7968 (*ashldi3_cconly_rex64): Ditto.
7969 (*ashrdi3_cmp_rex64): Ditto.
7970 (*ashrdi3_cconly_rex64): Ditto.
7971 (*lshrdi3_cmp_rex64): Ditto.
7972 (*lshrdi3_cconly_rex64): Ditto.
7973 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
7974 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
7975 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
7978 2008-06-27 Jakub Jelinek <jakub@redhat.com>
7980 * gimplify.c (omp_is_private): Don't return true if decl is not
7981 already private on #pragma omp for or #pragma omp parallel for.
7984 * tree-cfg.c (struct move_stmt_d): Replace block field with
7985 orig_block and new_block fields.
7986 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
7987 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
7988 (move_block_to_fn): Replace vars_map and new_label_map arguments
7989 with struct move_stmt_d pointer.
7990 (replace_block_vars_by_duplicates): New function.
7991 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
7992 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
7993 all subblocks of ORIG_BLOCK to the new function. Call
7994 replace_block_vars_by_duplicates.
7995 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
7996 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
7997 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
7998 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
7999 (expand_omp): Temporarily set input_location to the location of
8000 region's controlling stmt.
8001 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8002 BIND_EXPR, push ctx->block_vars and gimplification vars into
8003 the BIND_EXPR and its block's BLOCK_VARS instead of directly
8005 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8006 there are any BLOCK_VARS.
8007 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8008 OMP_PARALLEL or OMP_TASK stmt.
8009 (lower_omp): Save and restore input_location around the lower_omp_1
8012 2008-06-27 Richard Guenther <rguenther@suse.de>
8014 PR tree-optimization/36400
8015 PR tree-optimization/36373
8016 PR tree-optimization/36344
8017 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
8018 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
8019 (update_alias_info): Remove call clobbering code.
8020 (make_constraint_to): New helper function.
8021 (make_escape_constraint): Likewise.
8022 (handle_rhs_call): Use it on all pointer containing arguments.
8023 Also mark the static chain escaped.
8024 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
8025 instead of ANYTHING.
8026 (make_constraint_from): New helper split out from ...
8027 (make_constraint_from_anything): ... here.
8028 (find_func_aliases): Add constraints for escape sites.
8029 (intra_create_variable_infos): Make constraints from NONLOCAL
8031 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
8033 (clobber_what_p_points_to): Remove.
8034 (clobber_what_escaped): New function.
8035 (init_base_vars): Init NONLOCAL and ESCAPED.
8036 (do_sd_constraint): Do not propagate the solution from ESCAPED
8037 but use ESCAPED as a placeholder.
8038 (solve_graph): Likewise.
8039 * tree-flow.h (clobber_what_p_points_to): Remove.
8040 (clobber_what_escaped): Declare.
8041 * tree-ssa-alias.c (set_initial_properties): Call it.
8042 Remove code clobbering escaped pointers.
8044 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
8046 * function.c (allocate_struct_function): Only allocate a unique
8047 funcdef_no if the decl is nonzero.
8049 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
8051 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
8052 * config/mips/mips.c (mips_split_const_insns): New function.
8053 * config/mips/mips.md (move_type): New attribute.
8054 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
8055 (dword_mode): New attribute.
8056 (type): Avoid long line. Map "move_type"s to "type"s,
8057 choosing "multi" for doubleword moves if appropriate.
8058 Swap MTC/MFC comments to match their declaration order.
8059 (extended_mips16): Default to "yes" if "move_type" is "sll0",
8060 "type" is "branch" or "jal" is "direct".
8061 (length): Handle "extended_mips16" first. Make the default
8062 "0" for "ghost" instructions. Set the length from "move_type".
8063 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
8064 of "type", with "sll0" for the register alternative. Remove the
8065 "extended_mips16" attribute.
8066 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
8067 of "type", with "shift_shift" for the register alternative.
8068 Remove the "length" attribute.
8069 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
8070 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
8071 of "type", with "andi" for the register alternative.
8072 (*zero_extendqihi2): Likewise.
8073 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
8074 of "andi" instead of a "type" of "arith".
8075 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
8077 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
8078 (mov_<store>r, *mov<mode>_ra): Likewise.
8079 (extendsidi2): Use "move_type" instead of "type", with "move"
8080 for the register alternative.
8081 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
8082 of "type", with "signext" for the register alternative.
8083 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
8084 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
8085 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
8086 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
8087 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
8088 (unnamed branch insn): Likewise.
8089 (*movdi_gp32_fp64): Fold into...
8090 (*movdi_32bit): ...here.
8091 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
8092 (*movdf_hardfloat): ...this new pattern.
8093 (*movdf_softfloat): Remove redundant FPR alternatives.
8094 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
8095 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
8096 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
8097 the "move" attribute.
8098 (*movdi_32bit): Use "move_type" instead of "type" and remove the
8099 "length" attribute. Use "fpload" and "fpstore" instead of "load"
8100 and "store" for COP loads and stores.
8101 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
8102 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
8103 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
8104 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
8105 (*movtf_mips16, *movv2sf): Likewise.
8106 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
8107 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
8108 (mfhc1<mode>): Use "move_type" instead of "move".
8109 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
8110 (loadgp_blockage): Remove the "length" attribute.
8111 (blockage, set_got_version, update_got_version): Likewise.
8112 (call_internal): Remove the "extended_mips16" attribute.
8113 (call_value_internal, call_value_multiple_internal): Likewise.
8114 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
8116 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
8117 the "length" attribute.
8119 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8121 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
8122 -Wcast-qual warnings.
8123 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
8124 handle_pragma_pop_macro): Likewise.
8125 * collect2.c (resolve_lib_name): Likewise.
8126 * config/arc/arc.c (arc_init): Likewise.
8127 * config/arm/arm.c (neon_builtin_compare,
8128 locate_neon_builtin_icode): Likewise.
8129 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
8130 * config/bfin/bfin.c (bfin_init_machine_status,
8131 bfin_optimize_loop): Likewise.
8132 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8133 * config/cris/cris.c (cris_init_expanders): Likewise.
8134 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
8135 * config/darwin.c (machopic_indirection_eq,
8136 machopic_indirection_name, machopic_output_indirection): Likewise.
8137 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
8138 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
8139 frv_optimize_membar): Likewise.
8140 * config/i386/cygwin.h (mingw_scan,
8141 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
8142 * config/i386/cygwin1.c (mingw_scan): Likewise.
8143 * config/i386/i386.c (machopic_output_stub): Likewise.
8144 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
8145 i386_pe_unique_section): Likewise.
8146 * config/ia64/ia64.c (ia64_init_machine_status,
8147 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
8149 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
8150 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
8151 * config/m68k/m68k.c (m68k_handle_option,
8152 m68k_sched_md_init_global): Likewise.
8153 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
8154 mcore_unique_section): Likewise.
8155 * config/mips/mips.c (mips_block_move_straight,
8156 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
8158 * config/mmix/mmix.c (mmix_init_machine_status,
8159 mmix_encode_section_info): Likewise.
8160 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
8161 * config/rs6000/rs6000.c (rs6000_init_machine_status,
8162 print_operand_address, output_toc, redefine_groups,
8163 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
8164 * config/s390/s390.c (s390_init_machine_status): Likewise.
8165 * config/score/score.c (score_block_move_straight,
8166 score_block_move_loop_body): Likewise.
8167 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8168 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8169 * emit-rtl.c (find_auto_inc): Likewise.
8170 * gcc.c (translate_options, process_command): Likewise.
8171 * reorg.c (dbr_schedule): Likewise.
8172 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
8173 * xcoffout.c (xcoffout_declare_function): Likewise.
8175 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
8177 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
8178 ipa-pta working again.
8180 2008-06-27 David Edelsohn <edelsohn@gnu.org>
8182 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
8185 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
8187 * config.gcc (powerpc*-*-*): Add new core e500mc.
8188 * config/rs6000/e500mc.md: New file.
8189 * config/rs6000/rs6000.c (processor_costs): Add new costs for
8191 (rs6000_override_options): Add e500mc case to
8192 processor_target_table. Altivec and Spe options not allowed
8193 with e500mc. Add isel instruction to e500mc by
8194 default. Initialize rs6000_cost for e500mc.
8195 (rs6000_issue_rate): Set issue rate for e500mc.
8196 * config/rs6000/rs6000.h (processor_type): Add
8197 PROCESSOR_PPCE500MC.
8198 (ASM_CPU_SPEC): Add e500mc.
8199 Set TARGET_ISEL to rs6000_isel.
8200 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
8201 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
8202 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
8204 * doc/invoke.texi: Add e500mc to list of cpus.
8206 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8209 * c-lex.c (lex_charconst): Initialize unsignedp.
8211 2008-06-27 Olivier Hainque <hainque@adacore.com>
8213 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
8214 documented assumptions.
8216 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
8218 * dwarf2out.c: Remove trailing white spaces. Break long line
8221 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
8223 * libfuncs.h (LTI_synchronize): New libfunc_index.
8224 (synchronize_libfunc): Declare.
8225 * builtins.c (expand_builtin_synchronize): Consider using
8226 synchronize_libfunc before falling back on an asm blockage.
8227 * config/mips/mips.c: Include libfuncs.h
8228 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
8230 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
8232 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
8233 parameter. Copy stack_reg to r11 where appropriate.
8234 (no_global_regs_above): Add gpr parameter.
8235 (rs6000_stack_info): Only add padding for SPE save area if we
8236 are saving SPE GPRs and CR.
8237 (saveres_routine_syms): New variable.
8238 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
8240 (rs6000_savres_routine_sym): New function.
8241 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
8243 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
8244 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
8245 Tweak FPR out-of-line saving.
8246 (rs6000_make_savres_rtx): New function.
8247 (rs6000_use_multiple_p): New function.
8248 (rs6000_savres_strategy): New function.
8249 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
8250 out-of-line if appropriate.
8251 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
8252 if we are optimizing for size.
8253 (GP_SAVE_INLINE): Define.
8254 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
8255 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
8256 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
8257 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
8258 (*save_fpregs_<mode>): Add use of r11.
8259 (*restore_gpregs_<mode>): New insn.
8260 (*return_and_restore_gpregs_<mode>): New insn.
8261 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
8263 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
8264 (*restore_gpregs_spe): New insn.
8265 (*return_and_restore_gpregs_spe): New insn.
8266 * config/rs6000/predicates.md (save_world_operation): Fix check.
8268 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
8270 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
8271 this point, so assert that.
8273 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
8275 * cfganal.c: Include vec.h and vecprim.h.
8276 (compute_idf): Import from...
8277 * tree-into-ssa (compute_idf): ...here.
8278 * basic-block.h (compute_idf): Export.
8280 2008-06-26 Joseph Myers <joseph@codesourcery.com>
8282 * c-decl.c (merge_decls): Use !current_function_decl to check for
8283 extern declaration of C99 inline function being at file scope.
8285 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
8287 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
8289 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8291 * alias.c (record_alias_subset, init_alias_analysis): Fix
8292 -Wc++-compat and/or -Wcast-qual warnings.
8293 * attribs.c (lookup_attribute_spec): Likewise.
8294 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
8295 copy_bb, connect_traces,
8296 find_rarely_executed_basic_blocks_and_cr): Likewise.
8297 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
8298 note_btr_set, migrate_btr_defs): Likewise.
8299 * builtins.c (result_vector, expand_builtin_memcpy,
8300 expand_builtin_mempcpy_args, expand_builtin_strncpy,
8301 builtin_memset_read_str, expand_builtin_printf,
8302 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
8304 * caller-save.c (mark_set_regs): Likewise.
8305 * calls.c (expand_call, emit_library_call_value_1): Likewise.
8306 * cgraph.c (cgraph_edge): Likewise.
8307 * combine.c (likely_spilled_retval_1): Likewise.
8308 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
8309 htab_counts_entry_del, get_coverage_counts): Likewise.
8310 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
8311 new_cselib_val): Likewise.
8312 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
8313 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
8315 * df-core.c (df_compact_blocks): Likewise.
8316 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
8317 * df-scan.c (df_grow_reg_info, df_ref_create,
8318 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
8319 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
8320 df_record_entry_block_defs, df_record_exit_block_uses,
8321 df_bb_verify): Likewise.
8322 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
8323 DF_REF_EXTRACT_MODE_CONST): New.
8324 * dominance.c (get_immediate_dominator, get_dominated_by,
8325 nearest_common_dominator, root_of_dom_tree,
8326 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
8327 -Wc++-compat and/or -Wcast-qual warnings.
8328 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
8329 record_store, replace_read, check_mem_read_rtx, scan_insn,
8330 dse_step1, dse_record_singleton_alias_set): Likewise.
8331 * dwarf2asm.c (dw2_force_const_mem): Likewise.
8333 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8335 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
8336 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
8337 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
8338 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
8339 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
8340 add_ranges_num, add_ranges_by_labels, file_info_cmp,
8341 file_name_acquire, output_file_names, add_const_value_attribute,
8342 premark_used_types_helper, file_table_eq, file_table_hash,
8343 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
8344 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
8345 -Wcast-qual warnings.
8346 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
8347 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
8348 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
8349 gen_reg_rtx, start_sequence, init_emit): Likewise.
8350 * et-forest.c (et_new_occ, et_new_tree): Likewise.
8351 * except.c (init_eh_for_function, gen_eh_region,
8352 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
8353 arh_to_landing_pad, arh_to_label, add_action_record,
8354 add_call_site, switch_to_exception_section): Likewise.
8355 * expmed.c (synth_mult): Likewise.
8356 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
8357 store_expr): Likewise.
8358 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
8360 * function.c (assign_stack_temp_for_type,
8361 allocate_struct_function, match_asm_constraints_1): Likewise.
8362 * gcov-io.c (gcov_allocate): Likewise.
8363 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
8364 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
8365 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
8366 record_one_set, insert_expr_in_table, insert_set_in_table,
8367 dump_hash_table, compute_hash_table_work, alloc_hash_table,
8368 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
8369 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
8370 -Wcast-qual warnings.
8372 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8374 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
8375 -Wcast-qual warnings.
8376 * gcc.c (process_command): Likewise.
8377 * genattrtab.c (oballoc): Use XOBNEW.
8378 (oballocvec): Define.
8379 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
8380 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
8381 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
8382 -Wc++-compat and/or -Wcast-qual warnings.
8383 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
8384 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
8385 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
8386 gen_presence_absence_set, gen_automaton, gen_regexp_el,
8387 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
8388 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
8389 add_excls, process_presence_absence_names,
8390 process_presence_absence_patterns, add_presence_absence,
8391 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
8392 get_free_state, add_arc, get_free_automata_list_el,
8393 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
8394 transform_3, cache_presence, create_ainsns, create_automata,
8395 create_state_ainsn_table, dfa_insn_code_enlarge,
8396 output_trans_func, output_min_issue_delay_func,
8397 output_dead_lock_func, output_reset_func,
8398 output_get_cpu_unit_code_func, output_dfa_start_func,
8399 expand_automata): Likewise.
8400 * genextract.c (gen_insn): Likewise.
8401 * gengtype-lex.l: Likewise.
8402 * gengtype.c (read_input_list, adjust_field_type,
8403 process_gc_options): Likewise.
8404 * genoutput.c (note_constraint): Likewise.
8405 * genpreds.c (mangle, add_constraint): Likewise.
8406 * genrecog.c (process_define_predicate, new_decision,
8407 add_to_sequence): Likewise.
8408 * gensupport.c (record_insn_name): Likewise.
8410 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8412 * config/i386/driver-i386.c (detect_caches_amd,
8413 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
8414 and/or -Wcast-qual warnings.
8415 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
8416 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
8417 gt_pch_save): Likewise.
8418 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
8419 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
8420 * global.c (compute_regsets): Likewise.
8421 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
8422 finish_graph_dump_file): Likewise.
8423 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
8424 unlink_bb_notes): Likewise.
8425 * integrate.c (get_hard_reg_initial_val): Likewise.
8426 * ipa-prop.c (ipa_push_func_to_list): Likewise.
8427 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
8428 * local-alloc.c (update_equiv_regs): Likewise.
8429 * loop-invariant.c (check_invariant_table_size,
8430 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
8432 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
8433 altered_reg_used, mark_altered): Likewise.
8434 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
8435 insert_var_expansion_initialization,
8436 combine_var_copies_in_loop_exit, apply_opt_in_copies,
8437 release_var_copies): Likewise.
8438 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
8439 analyze_matrix_decl, add_allocation_site, analyze_transpose,
8440 analyze_accesses_for_phi_node, check_var_notmodified_p,
8441 check_allocation_function, find_sites_in_func,
8442 record_all_accesses_in_func, transform_access_sites,
8443 transform_allocation_sites): Likewise.
8444 * omp-low.c (new_omp_region, create_omp_child_function_name,
8445 check_omp_nesting_restrictions, check_combined_parallel,
8446 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
8447 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
8448 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
8449 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
8451 * opts-common.c (prune_options): Likewise.
8452 * opts.c (add_input_filename, print_filtered_help,
8453 get_option_state): Likewise.
8454 * params.c (add_params): Likewise.
8455 * passes.c (set_pass_for_id, next_pass_1,
8456 do_per_function_toporder, pass_fini_dump_file): Likewise.
8457 * postreload.c (reload_cse_simplify_operands): Likewise.
8458 * predict.c (tree_predicted_by_p, tree_predict_edge,
8459 clear_bb_predictions, combine_predictions_for_bb): Likewise.
8461 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8463 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
8465 * recog.c (check_asm_operands, validate_change_1): Likewise.
8466 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
8467 subst_asm_stack_regs): Likewise.
8468 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
8469 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
8470 * regmove.c (reg_is_remote_constant_p): Likewise.
8471 * regrename.c (regrename_optimize, scan_rtx_reg,
8472 kill_clobbered_value, kill_set_value, kill_autoinc_value):
8474 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
8475 regstat_compute_calls_crossed): Likewise.
8476 * reload1.c (init_reload, new_insn_chain,
8477 has_nonexceptional_receiver, reload, copy_reloads,
8478 calculate_needs_all_insns, init_elim_table): Likewise.
8479 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
8480 * rtl.c (shallow_copy_rtx_stat): Likewise.
8481 * rtlanal.c (parms_set): Likewise.
8482 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
8483 sbitmap_resize, sbitmap_vector_alloc): Likewise.
8484 * sched-ebb.c (earliest_block_with_similiar_load,
8485 add_deps_for_risky_insns): Likewise.
8486 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
8487 schedule_region): Likewise.
8488 * see.c (eq_descriptor_pre_extension,
8489 hash_descriptor_pre_extension, hash_del_pre_extension,
8490 eq_descriptor_properties, hash_descriptor_properties,
8491 hash_del_properties, see_seek_pre_extension_expr,
8492 see_initialize_data_structures, see_print_register_properties,
8493 see_print_pre_extension_expr, see_delete_merged_def_extension,
8494 see_delete_unmerged_def_extension, see_emit_use_extension,
8495 see_pre_delete_extension, see_map_extension, see_commit_changes,
8496 see_analyze_merged_def_local_prop,
8497 see_analyze_merged_def_local_prop,
8498 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
8499 see_set_prop_merged_def, see_set_prop_unmerged_def,
8500 see_set_prop_unmerged_use, see_print_one_extension,
8501 see_merge_one_use_extension, see_merge_one_def_extension,
8502 see_store_reference_and_extension, see_update_uses_relevancy,
8503 see_update_defs_relevancy): Likewise.
8504 * statistics.c (hash_statistics_hash, hash_statistics_eq,
8505 hash_statistics_free, curr_statistics_hash): Likewise.
8506 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
8507 expand_asm_operands, expand_return, case_bit_test_cmp,
8508 expand_case): Likewise.
8509 * stor-layout.c (start_record_layout): Likewise.
8510 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
8511 gt_pch_save_stringpool): Likewise.
8512 * tree-data-ref.c (hash_stmt_vertex_info,
8513 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
8514 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
8516 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
8519 * config/i386/i386.md : Change constraints of HImode and QImode
8520 immediate operands from "i" to "n". Change SImode "ni" constraint to
8521 "i" and SImode "rmi" constraint to "g". Remove all constraints
8522 from const0_operand and const1_operand predicated operands.
8523 (i): Change QImode and HImode attribute from "i" to "n".
8524 (*subqi_2): Change HImode operands to QImode.
8527 2008-06-25 Olivier Hainque <hainque@adacore.com>
8529 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
8532 2008-06-25 Richard Guenther <rguenther@suse.de>
8534 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
8535 not overflow the result type.
8537 2008-06-25 Richard Guenther <rguenther@suse.de>
8539 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
8540 (vn_lookup): Likewise.
8542 2008-06-25 Richard Guenther <rguenther@suse.de>
8544 PR tree-optimization/35518
8545 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
8546 * tree-sra.c (instantiate_element): Use fold_build3 to build
8548 (try_instantiate_multiple_fields): Likewise.
8550 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
8552 * config/rs6000/rs6000.md: Change all string instruction's clobber to
8555 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
8557 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
8558 use_backchain_to_restore_sp to true
8559 if the offset of the link register save area would go over the 32k - 1
8560 offset limit of the load
8563 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
8565 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
8566 anchor for the type-punning blurb. Cross-reference "Structures
8567 unions enumerations and bit-fields implementation". Provide a
8568 cast-through-pointer example. Make final sentence self-contained.
8569 * doc/implement-c.texi (Structures unions enumerations and
8570 bit-fields implementation): Cross-reference the type-punning blurb
8571 in the -fstrict-aliasing documentation.
8573 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
8576 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
8577 the memory instead of the memory itself for the save area.
8579 2008-06-24 Olivier Hainque <hainque@adacore.com>
8580 Nicolas Roche <roche@adacore.com>
8582 * gengtype.c (srcdir_len): size_t instead of int.
8583 (get_file_realbasename): New function. For F a filename, the real
8584 basename of F, with all the path components stripped.
8585 (get_file_srcdir_relative_path): New function. For F a filename, the
8586 relative path to F from $(srcdir).
8587 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
8588 get_file_realbasename. Adjust the head comment.
8589 (get_prefix_langdir_index): New function. For F a filename, return the
8590 lang_dir_names[] relative index of the language directory that is
8592 (get_file_langdir): For F a filename, return the name of the language
8593 directory where F is located.
8594 (get_file_gtfilename): New function. The gt- output file name for an
8596 (get_output_file_with_visibility): Replace in-line computations with
8597 uses of get_file_gtfilename and get_prefix_langdir_index.
8598 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
8600 2008-06-24 Jakub Jelinek <jakub@redhat.com>
8602 PR tree-optimization/36504
8603 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
8604 references without base address.
8606 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
8609 * calls.c (expand_call): Increase alignment for recursive functions.
8611 2008-06-23 Anatoly Sokolov <aesok@post.ru>
8613 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
8614 (TARGET_FUNCTION_VALUE): New define.
8615 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
8616 * config/avr/avr.h (FUNCTION_VALUE): Remove.
8618 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
8620 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
8621 (fmod<mode>3): Ditto.
8622 (remainderxf3): Ditto.
8623 (remainder<mode>3): Ditto.
8625 2008-06-23 Jakub Jelinek <jakub@redhat.com>
8628 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
8629 REG is a hard register.
8631 PR tree-optimization/36508
8632 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
8633 499, don't check it at all in release compilers.
8635 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
8637 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
8638 together with SSE_TARGET_MATH to disable insn pattern.
8639 (*fop_<MODEF:mode>_2_i387): Ditto.
8640 (*fop_<MODEF:mode>_3_i387): Ditto.
8642 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
8644 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
8646 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8649 * gimplify.c (gimplify_asm_expr): Check the return code of
8650 parse_output_constraint call, set function return and is_inout
8653 2008-06-22 Ian Lance Taylor <iant@google.com>
8655 * c-lex.c (narrowest_unsigned_type): Change itk to int.
8656 (narrowest_signed_type): Likewise.
8657 * c-typeck.c (c_common_type): Change local variable mclass to enum
8659 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
8660 tcc_comparison, not the tree code itself.
8661 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
8662 (c_expand_expr): Cast modifier to enum expand_modifier.
8663 * c-common.h (C_RID_CODE): Add casts.
8664 (C_SET_RID_CODE): Define.
8665 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
8666 (c_lex_one_token): Add cast to avoid warning.
8667 (c_parser_objc_type_name): Rename local typename to type_name.
8668 (check_no_duplicate_clause): Change code parameter to enum
8670 (c_parser_omp_var_list_parens): Change kind parameter to enum
8672 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
8673 c_parser_omp_list_var_parens.
8674 (c_parser_omp_threadprivate): Likewise.
8675 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
8676 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
8677 * c-format.c (NO_FMT): Define.
8678 (printf_length_specs): Use NO_FMT.
8679 (asm_fprintf_length_specs): Likewise.
8680 (gcc_diag_length_specs): Likewise.
8681 (scanf_length_specs): Likewise.
8682 (strfmon_length_specs): Likewise.
8683 (gcc_gfc_length_specs): Likewise.
8684 (printf_flag_specs): Change 0 to STD_C89.
8685 (asm_fprintf_flag_specs): Likewise.
8686 (gcc_diag_flag_specs): Likewise.
8687 (gcc_cxxdiag_flag_specs): Likewise.
8688 (scanf_flag_specs): Likewise.
8689 (strftime_flag_specs): Likewise.
8690 (strfmon_flag_specs): Likewise.
8691 (print_char_table): Likewise.
8692 (asm_fprintf_char_table): Likewise.
8693 (gcc_diag_char_table): Likewise.
8694 (gcc_tdiag_char_table): Likewise.
8695 (gcc_cdiag_char_table): Likewise.
8696 (gcc_cxxdiag_char_table): Likewise.
8697 (gcc_gfc_char_table): Likewise.
8698 (scan_char_table): Likewise.
8699 (time_char_table): Likewis.
8700 (monetary_char_table): Likewise.
8701 * c-format.h (BADLEN): Likewise.
8703 2008-06-21 Ian Lance Taylor <iant@google.com>
8705 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
8706 Define END_OF_BASE_TREE_CODES around inclusion.
8707 * tree.c (tree_code_type): New global array.
8708 (tree_code_length, tree_code_name): Likewise.
8709 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
8711 (all-tree.def, s-alltree): New targets.
8712 (gencheck.h, s-gencheck): Remove.
8713 (tree.o): Depend upon all-tree.def.
8714 (build/gencheck.o): Remove gencheck.h dependency.
8715 (mostlyclean): Don't remove gencheck.h.
8716 * c-common.h (enum c_tree_code): Remove.
8717 * c-lang.c (tree_code_type): Remove.
8718 (tree_code_length, tree_code_name): Remove.
8719 * gencheck.c (tree_codes): Include all-tree.def, rather than
8720 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
8722 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
8724 * cp/cp-tree.h (enum cplus_tree_code): Remove.
8725 (operator_name_info): Size to MAX_TREE_CODES.
8726 (assignment_operator_name_info): Likewise.
8727 * cp/cp-lang.c (tree_code_type): Remove.
8728 (tree_code_length, tree_code_name): Remove.
8729 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
8730 (assignment_operator_name_info): Likewise.
8731 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
8733 * cp/mangle.c (write_expression): Likewise.
8734 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
8735 * fortran/f95-lang.c (tree_code_type): Remove.
8736 (tree_code_length, tree_code_name): Remove.
8737 * java/java-tree.h (enum java_tree_code): Remove.
8738 * java/lang.c (tree_code_type): Remove.
8739 (tree_code_length, tree_code_name): Remove.
8740 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
8741 * objc/objc-act.h (enum objc_tree_code): Remove.
8742 * objc/objc-lang.c (tree_code_type): Remove.
8743 (tree_code_length, tree_code_name): Remove.
8744 * objcp/objcp-lang.c (tree_code_type): Remove.
8745 (tree_code_length, tree_code_name): Remove.
8746 * ada/ada-tree.h (enum gnat_tree_code): Remove.
8747 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
8748 * ada/misc.c (tree_code_type): Remove.
8749 (tree_code_length, tree_code_name): Remove.
8751 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
8753 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
8754 the grand_bitmap_obstack.
8756 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8758 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
8759 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
8760 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
8761 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
8762 move_stmt_r, new_label_mapper): Likewise.
8763 * tree-complex.c (cvc_lookup): Likewise.
8764 * tree-dfa.c (create_function_ann): Likewise.
8765 * tree-dump.c (dump_register): Likewise.
8766 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
8767 find_phi_replacement_condition): Likewise.
8768 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
8769 tree_function_versioning): Likewise.
8770 * tree-into-ssa.c (cmp_dfsnum): Likewise.
8771 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
8772 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
8773 get_nonlocal_debug_decl, convert_nonlocal_reference,
8774 convert_nonlocal_omp_clauses, get_local_debug_decl,
8775 convert_local_reference, convert_local_omp_clauses,
8776 convert_nl_goto_reference, convert_nl_goto_receiver,
8777 convert_tramp_reference, convert_call_expr): Likewise.
8778 * tree-outof-ssa.c (contains_tree_r): Likewise.
8779 * tree-parloops.c (reduction_phi, initialize_reductions,
8780 eliminate_local_variables_1, add_field_for_reduction,
8781 add_field_for_name, create_phi_for_local_result,
8782 create_call_for_reduction_1, create_loads_for_reductions,
8783 create_stores_for_reduction, create_loads_and_stores_for_name):
8785 * tree-phinodes.c (allocate_phi_node): Likewise.
8786 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
8787 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
8788 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
8789 * tree-ssa-coalesce.c (compare_pairs): Likewise.
8790 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
8791 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
8792 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
8793 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
8794 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
8795 vn_nary_op_insert): Likewise.
8796 * tree-ssa.c (redirect_edge_var_map_add,
8797 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
8798 * tree-vectorizer.c (vectorize_loops): Likewise.
8799 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
8800 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
8801 tree_cons_stat, build1_stat, build_variant_type_copy,
8802 decl_init_priority_lookup, decl_fini_priority_lookup,
8803 decl_priority_info, decl_restrict_base_lookup,
8804 decl_restrict_base_insert, decl_debug_expr_lookup,
8805 decl_debug_expr_insert, decl_value_expr_lookup,
8806 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
8807 type_hash_add, get_file_function_name, tree_check_failed,
8808 tree_not_check_failed, tree_range_check_failed,
8809 omp_clause_range_check_failed, build_omp_clause,
8810 build_vl_exp_stat): Likewise.
8811 * value-prof.c (gimple_histogram_value,
8812 gimple_duplicate_stmt_histograms): Likewise.
8813 * var-tracking.c (attrs_list_insert, attrs_list_copy,
8814 unshare_variable, variable_union_info_cmp_pos, variable_union,
8815 dataflow_set_different_1, dataflow_set_different_2,
8816 vt_find_locations, variable_was_changed, set_variable_part,
8817 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
8818 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
8819 section_entry_hash, object_block_entry_eq,
8820 object_block_entry_hash, create_block_symbol,
8821 initialize_cold_section_name, default_function_rodata_section,
8822 strip_reg_name, set_user_assembler_name, const_desc_eq,
8823 build_constant_desc, output_constant_def, lookup_constant_def,
8824 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
8825 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
8826 default_internal_label): Likewise.
8827 * varray.c (varray_init, varray_grow): Likewise.
8828 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
8830 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
8832 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
8833 operators for "test" insn. Macroize insn using SWI mode macro.
8834 (*jcc_fused_2): Ditto.
8835 (*jcc_fused_3): Macroize insn using SWI mode macro.
8836 (*jcc_fused_4): Ditto.
8838 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
8840 * tree-ssa-pre.c: Fix typo in comment.
8841 (init_antic, fini_antic): Add explicit funtions for
8842 initializing and deinitializing ANTIC and AVAIL sets.
8843 (create_expression_by_pieces): Fix typo in comment.
8844 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
8845 (execute_pre): Eventually dump details about ANTIC_IN.
8847 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8849 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
8850 * gcc.c (translate_options, init_spec, store_arg, read_specs,
8851 add_to_obstack, file_at_path, find_a_file, execute,
8852 add_preprocessor_option, add_assembler_option, add_linker_option,
8853 process_command, insert_wrapper, do_option_spec, do_self_spec,
8854 spec_path, do_spec_1, is_directory, main, used_arg,
8855 getenv_spec_function): Likewise.
8856 * tlink.c (symbol_hash_lookup, file_hash_lookup,
8857 demangled_hash_lookup, symbol_push, file_push, frob_extension):
8860 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
8862 * doc/rtl.texi: Updated subreg section.
8864 2008-06-19 Jakub Jelinek <jakub@redhat.com>
8867 * cgraphunit.c (cgraph_process_new_functions): Don't clear
8868 node->needed and node->reachable.
8869 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
8870 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
8871 (expand_task_call): Don't call expand_task_copyfn.
8872 (expand_task_copyfn): Renamed to...
8873 (finalize_task_copyfn): ... this.
8875 2008-06-19 Jan Hubicka <jh@suse.cz>
8877 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
8878 clobbering framepointer.
8880 2008-06-19 Jan Hubicka <jh@suse.cz>
8882 * tree-optimize.c (execute_early_local_optimizations): Set
8883 cgraph_state only at first invocation.
8885 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8887 * system.h (-Wc++-compat): Activate as a warning, no an error.
8889 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
8891 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
8892 instead of "#" in insn asm template.
8893 (*jcc_fused_2): Ditto.
8895 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
8897 * config/i386/i386.h (ix86_tune_indices)
8898 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
8899 (TARGET_FUSE_CMP_AND_BRANCH): New define.
8900 * config/i386/i386.md (*jcc_fused_1): New insn pattern
8901 (*jcc_fused_2): Ditto.
8902 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
8903 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
8904 (print operand): Handle 'E' and 'e' code.
8906 2008-06-19 Anatoly Sokolov <aesok@post.ru>
8908 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
8909 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8910 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8912 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
8914 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
8916 (cgraph_expand_function): Use local copy of decl.
8917 (cgraph_expand_all_functions): Remove redundant initialization of
8919 (cgraph_optimize): Reword internal_error message.
8921 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
8923 * arm-protos.h (arm_return_in_memory): Remove public
8924 arm_return_in_memory() prototype.
8925 * arm.c (arm_return_in_memory): Add static prototype, add target
8926 hook macro, change definition and comments.
8927 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
8929 2008-06-19 Ben Elliston <bje@au.ibm.com>
8931 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
8932 real.c: Remove references to IEEE 754R.
8933 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
8934 * doc/libgcc.texi (Decimal float library routines): Likewise.
8936 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8938 * targhooks.h (struct gcc_target): New member unwind_word_mode.
8939 (default_unwind_word_mode): Add prototype.
8940 * targhooks.c (default_unwind_word_mode): New function.
8941 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
8942 instead of word_mode.
8943 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
8944 (TARGET_INITIALIZER): Use it.
8946 * c-common.c (handle_mode_attribute): Support "unwind_word"
8948 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
8950 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
8951 word_mode to access SjLj_Function_Context member "data".
8952 (sjlj_emit_dispatch_table): Likewise. Also, perform type
8953 conversion from targetm.eh_return_filter_mode () to
8954 targetm.unwind_word_mode () if they differ.
8956 * builtin-types.def (BT_UNWINDWORD): New primitive type.
8957 (BT_FN_UNWINDWORD_PTR): New function type.
8958 (BT_FN_WORD_PTR): Remove.
8959 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
8960 * except.c (expand_builtin_extend_pointer): Convert pointer to
8961 targetm.unwind_word_mode () instead of word_mode.
8963 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
8964 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
8965 (spu_unwind_word_mode): New function.
8966 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
8967 (TARGET_UNWIND_WORD_MODE): Define.
8968 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
8970 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8972 * config/spu/spu.c (reg_align): Remove.
8973 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
8974 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
8975 (spu_split_store): Likewise.
8977 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
8979 * gcc/tree-vn.c: Fix typo in comment.
8981 2008-06-18 Jan Hubicka <jh@suse.cz>
8983 * cgraphunit.c (cgraph_optimize): Output debug info when doing
8984 toplevel reorder too.
8986 2008-06-18 Jan Hubicka <jh@suse.cz>
8988 * c-opts.c (c_common_post_options): PCH is not compatible with
8990 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
8991 -fno-toplevel-reorder by default now.
8993 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8995 PR documentation/30739
8996 * doc/install.texi (Prerequisites): Document dependency on awk.
8998 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
8999 Ian Lance Taylor <iant@google.com>
9001 PR rtl-optimization/35604
9002 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9003 only want to change jump destinations, not eventual label comparisons.
9005 2008-06-16 Jan Hubicka <jh@suse.cz>
9007 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9009 (cgraph_analyze_function): Likewise.
9011 2008-06-16 Jan Hubicka <jh@suse.cz>
9013 * cgraph.h (cgraph_mark_if_needed): New function.
9014 * cgraphunit.c (cgraph_mark_if_needed): New function.
9015 * c-decl.c (duplicate_decl): Use it.
9017 2008-06-16 Jan Hubicka <jh@suse.cz>
9019 * cgraph.c (cgraph_add_new_function): When in expansion state, do
9022 2008-06-16 Jan Hubicka <jh@suse.cz>
9024 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
9026 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
9027 Kazu Hirata <kazu@codesourcery.com>
9028 Maxim Kuvyrkov <maxim@codesourcery.com
9030 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
9031 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
9032 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
9033 EXTRA_SPEC_FUNCTIONS.
9034 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
9035 (DRIVER_SELF_SPECS): Adjust.
9036 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
9037 * config/mips/st.h, config/mips/t-st: New.
9038 * config/mips/driver-native.c, config/mips/x-native: New.
9039 * doc/invoke.texi (MIPS): Document 'native' value for -march and
9042 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9044 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
9046 (ISA_HAS_FP_CONDMOVE): New macro.
9047 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
9048 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
9049 (ISA_HAS_NMADD3_NMSUB3): New macro.
9050 * config/mips/mips.c (mips_rtx_costs): Update.
9051 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
9052 compiling for ST Loongson 2E/2F.
9053 (madd<mode>): Rename to madd4<mode>. Update.
9054 (madd3<mode>): New pattern.
9055 (msub<mode>): Rename to msub4<mode>. Update.
9056 (msub3<mode>): New pattern.
9057 (nmadd<mode>): Rename to nmadd4<mode>. Update.
9058 (nmadd3<mode>): New pattern.
9059 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
9060 (nmadd3<mode>_fastmath): New pattern.
9061 (nmsub<mode>): Rename to nmsub4<mode>. Update.
9062 (nmsub3<mode>): New pattern.
9063 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
9064 (nmsub3<mode>_fastmath): New pattern.
9065 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
9067 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
9069 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
9070 (DF_REF_INSN_INFO): New.
9071 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
9072 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
9073 with a NULL DF_REF_INSN_INFO.
9074 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
9076 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
9077 DF_INSN_INFO_EQ_USES): New.
9078 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
9079 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
9080 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
9081 * df-core.c: Update comment for above changes.
9082 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
9083 DF_INSN_UID_* macros.
9084 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
9085 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
9086 insn rtx. Update all callers.
9087 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
9088 df_ref_create_structure, df_insn_refs_collect): Likewise.
9089 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
9090 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
9091 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
9092 macros to access the insn refs.
9093 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
9094 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
9095 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
9096 for accessing the refs.
9097 (try_fwprop_subst): Likewise.
9098 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
9099 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
9100 for accessing the refs.
9101 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
9102 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
9103 to look at the insn refs.
9104 (record_uses): Likewise.
9105 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
9107 (mark_artificial_uses): Don't mark_insn for artificial refs.
9108 (mark_reg_rependencies): Likewise.
9110 * doc/rtl.texi: Remove documentation of ADDRESSOF.
9112 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9114 * configure: Regenerate.
9116 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9118 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
9119 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9120 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9122 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9124 * config/avr/avr.c (avr_mcu_t): Add attiny167.
9125 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9126 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9128 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
9130 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
9131 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9132 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9134 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
9136 * tree-ssa-sccvn.c: Fix format of comments.
9138 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
9140 * cgraph.c: Remove unneeded forward declarations of eq_node()
9143 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
9145 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
9147 (see_update_relevancy): Likewise.
9148 * fwprop.c (try_fwprop_subst): Likewise.
9149 * rtlanal.c (noop_move_p): Likewise.
9150 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
9151 notes to non-existing libcall blocks.
9152 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
9154 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
9155 (dead_libcall_p): Remove.
9156 (delete_trivially_dead_insns): Don't use it.
9157 * web.c (union_defs): Remove comment about keeping nops.
9158 * gcse.c (hash_scan_insn): Don't take libcall pointers.
9159 (compute_hash_table_work): Don't track libcall notes.
9160 (do_local_cprop): Don't take libcall pointers. Don't update
9162 (adjust_libcall_notes): Deleted.
9163 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
9164 ever have existed in the first place).
9165 (replace_store_insn): Don't try to remove libcall notes.
9166 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
9167 (resolve_reg_notes): Don't call them.
9168 (resolve_simple_move): Likewise.
9169 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
9170 Don't remove REG_RETVAL notes.
9171 * emit-rtl.c (try_split): Don't update libcall notes.
9172 (emit_copy_of_insn_after): Dito.
9173 * cselib.c (cselib_current_insn_in_libcall): Remove.
9174 (cselib_process_insn): Don't set/clear it.
9175 (new_elt_loc_list): Don't record it.
9176 (cselib_init): Don't initialize it.
9177 * cselib.c (struct elt_loc_list): Remove in_libcall field.
9178 * loop-invariant.c (find_invariant_insn): Don't look for libcall
9180 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
9181 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
9182 (init_deps): Don't initialize it.
9183 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
9184 * combine.c (delete_noop_moves): Don't update libcall notes.
9185 (can_combine_p): Remove now pointless #if 0 block.
9186 (try_combine): Remove another obsolete #if 0 block.
9187 (distribute_notes): Don't distribute libcall notes.
9188 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
9189 * dce.c (libcall_dead_p): Remove.
9190 (delete_unmarked_insns): Don't handle libcall blocks.
9191 (preserve_libcall_for_dce): Remove.
9192 (prescan_insns_for_dce): Don't special-case libcall block insns.
9193 * reload1 (reload): Don't handle libcall notes.
9194 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
9197 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
9199 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
9200 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9201 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9203 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
9205 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
9206 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
9207 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9209 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9211 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
9213 2008-06-16 Ira Rosen <irar@il.ibm.com>
9215 PR tree-optimization/36493
9216 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
9217 the arguments list. Use VECTYPE to create vector pointer.
9218 (vectorizable_store): Fail if accesses through a pointer to vectype
9219 do not alias the original memory reference operands.
9220 Call vect_create_data_ref_ptr without the removed argument.
9221 (vectorizable_load): Likewise.
9222 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
9225 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
9228 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
9231 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9233 * config/mips/loongson2ef.md: New file.
9234 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9235 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9236 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9237 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
9238 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
9240 (loongson2ef.md): New include.
9241 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
9242 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
9243 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
9244 (loongson_gt_<mode>, loongson_extract_halfword)
9245 (loongson_insert_halfword_0, loongson_insert_halfword_2)
9246 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
9247 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
9248 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
9249 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
9250 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
9251 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
9252 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
9253 (vec_interleave_low<mode>): Define type attribute.
9254 * config/mips/mips.c (mips_ls2): New static variable.
9255 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
9256 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
9257 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
9258 Implement target scheduling hooks.
9259 (mips_multipass_dfa_lookahead): Update to handle tuning for
9261 (mips_sched_init): Initialize data for Loongson scheduling.
9262 (mips_ls2_variable_issue): New static function.
9263 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
9265 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
9266 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
9267 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
9268 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
9269 Handle ST Loongson 2E/2F cores.
9270 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
9272 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9274 * omp-low.c (extract_omp_for_data): Fix comment typo.
9277 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9279 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
9280 FIXME note about gcc/config.guess.
9281 * doc/options.texi (Option file format): Remove non-ASCII bytes.
9282 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
9283 * doc/cppopts.texi: Likewise.
9284 * doc/extend.texi: Likewise.
9285 * doc/gcc.texi: Likewise.
9286 * doc/gccint.texi: Likewise.
9287 * doc/gcov.texi: Likewise.
9288 * doc/gty.texi: Likewise.
9289 * doc/hostconfig.texi: Likewise.
9290 * doc/install.texi: Likewise.
9291 * doc/invoke.texi: Likewise.
9292 * doc/loop.texi: Likewise.
9293 * doc/makefile.texi: Likewise.
9294 * doc/md.texi: Likewise.
9295 * doc/passes.texi: Likewise.
9296 * doc/tm.texi: Likewise.
9297 * doc/tree-ssa.texi: Likewise.
9298 * doc/trouble.texi: Likewise.
9300 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
9301 Nathan Sidwell <nathan@codesourcery.com>
9302 Maxim Kuvyrkov <maxim@codesourcery.com>
9303 Richard Sandiford <rdsandiford@googlemail.com>
9305 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
9306 * config/mips/mips-protos.h (mips_expand_vector_init): New.
9307 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
9309 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
9310 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
9311 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
9313 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
9314 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
9315 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
9316 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
9317 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
9318 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
9319 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
9320 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
9321 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
9322 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
9323 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
9324 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
9325 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
9326 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
9327 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
9328 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
9329 (mips_builtins): Add Loongson builtins.
9330 (mips_loongson_2ef_bdesc): New.
9331 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
9332 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
9333 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
9334 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
9336 (mips_expand_vector_init): New.
9337 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
9338 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
9340 * config/mips/mips.md: Add unspec numbers for Loongson
9341 builtins. Include loongson.md.
9342 (MOVE64): Include Loongson vector modes.
9343 (SPLITF): Include Loongson vector modes.
9344 (HALFMODE): Handle Loongson vector modes.
9345 * config/mips/loongson.md: New.
9346 * config/mips/loongson.h: New.
9347 * config.gcc: Add loongson.h header for mips*-*-* targets.
9348 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
9350 2008-06-14 Joseph Myers <joseph@codesourcery.com>
9352 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
9353 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
9354 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
9355 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
9356 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
9357 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
9358 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
9359 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
9360 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
9361 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
9362 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
9363 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
9364 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
9365 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
9366 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
9367 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
9368 Remove use_fixproto=yes.
9369 (ia64*-*-hpux*): Remove comment about using fixproto.
9370 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
9372 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9374 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
9376 * configure: Regenerate.
9378 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
9381 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
9382 before evaluating it.
9384 2008-06-13 Jakub Jelinek <jakub@redhat.com>
9387 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
9388 nested inline functions.
9389 (start_decl, start_function): Don't invert DECL_EXTERNAL
9390 for nested inline functions.
9392 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
9394 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
9395 splits that must be made for correctness.
9397 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
9399 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
9400 (AVAIL_NON_MIPS16): Likewise.
9401 (mips_builtin_description): Replace target_flags with a predicate.
9402 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
9403 (dspr2_32): New availability predicates.
9404 (MIPS_BUILTIN): New macro.
9405 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
9406 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
9407 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
9408 Replace the TARGET_FLAGS parameters with AVAIL parameters.
9409 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
9410 (mips_dsp_32only_bdesc): Merge into...
9411 (mips_builtins): ...this new array.
9412 (mips_bdesc_map, mips_bdesc_arrays): Delete.
9413 (mips_init_builtins): Update after above changes.
9414 (mips_expand_builtin_1): Merge into...
9415 (mips_expand_builtin): ...here and update after above changes.
9417 2008-06-12 Paul Brook <paul@codesourcery.com>
9419 * longlong.h (__arm__): Define count_leading_zeros.
9420 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
9421 (clzsi2, clzdi2): New functions.
9422 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
9423 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
9424 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
9425 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
9426 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
9427 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
9428 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
9429 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
9430 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
9431 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
9433 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
9435 * config/m68k/m68k.c (m68k_tune_flags): New.
9436 (override_options): Compute m68k_tune_flags.
9437 (MULL_COST, MULW_COST): Update for various variants of CFV2.
9438 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
9440 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9443 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
9445 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
9447 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
9448 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
9450 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
9452 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
9453 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
9455 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9458 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
9461 2008-06-12 Richard Guenther <rguenther@suse.de>
9463 PR tree-optimization/36345
9464 * tree-flow.h (struct ptr_info_def): Align escape_mask,
9465 add memory_tag_needed flag.
9466 (may_alias_p): Declare.
9467 * tree-ssa-alias.c (may_alias_p): Export.
9468 (set_initial_properties): Use memory_tag_needed flag.
9469 (update_reference_counts): Likewise.
9470 (reset_alias_info): Reset memory_tag_needed flag.
9471 (create_name_tags): Check memory_tag_needed flag.
9472 (dump_points_to_info_for): Dump it.
9473 * tree-ssa-structalias.c (struct variable_info): Remove
9474 directly_dereferenced flag.
9475 (new_var_info): Do not initialize it.
9476 (process_constraint_1): Do not set it.
9477 (update_alias_info): Set is_dereferenced flag.
9478 (set_uids_in_ptset): Use may_alias_p.
9479 (set_used_smts): Check memory_tag_needed flag.
9480 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
9481 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
9482 memory_tag_needed flag.
9483 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
9486 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
9488 * config/i386/i386.c (ix86_compute_frame_layout): Disable
9489 red zone for w64 abi.
9490 (ix86_expand_prologue): Likewise.
9491 (ix86_force_to_memory): Likewise.
9492 (ix86_free_from_memory): Likewise.
9494 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
9497 * config/rs6000/rs6000.c (rs6000_override_options): Set
9498 rs6000_isel conditionally to the absence of comand line override.
9499 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9500 Remove duplicate rs6000_isel setting.
9501 * config/rs6000/eabispe.h: Ditto.
9503 2008-06-11 Richard Guenther <rguenther@suse.de>
9505 * alias.c (get_alias_set): Use the element alias-set for arrays.
9506 (record_component_aliases): For arrays and vectors do nothing.
9507 * c-common.c (strict_aliasing_warning): Handle the cases
9508 of alias set zero explicitly.
9509 * Makefile.in (dfp.o-warn): Add -Wno-error.
9511 2008-06-11 Joseph Myers <joseph@codesourcery.com>
9513 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
9515 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
9516 tune_32 tune_64 to supported_defaults. Allow values not
9517 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
9518 x86_64. Do not override cpu_32 or cpu_64 values from target name.
9519 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
9520 with_cpu_64 to generic for 64-bit-supporting configurations, not
9521 with_cpu. Remove FIXMEs.
9522 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
9523 --with-arch-64, --with-tune-32, --with-tune-64): Document.
9524 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
9525 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
9526 arch_32 and arch_64.
9528 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
9529 Olivier Hainque <hainque@adacore.com>
9531 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
9532 Use DECL_SIZE_UNIT to retrieve the size of the field.
9534 2008-06-11 Joseph Myers <joseph@codesourcery.com>
9536 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
9537 with function calls after declarations. Lay out
9538 neon_float_type_node before further use.
9540 2008-06-11 Richard Guenther <rguenther@suse.de>
9542 * tree-flow.h (may_point_to_global_var): Declare.
9543 * tree-ssa-alias.c (may_point_to_global_var): New function.
9544 * tree-ssa-sink.c (is_hidden_global_store): Use it.
9546 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
9548 * configure.ac: Teach that fido supports .debug_line.
9549 * configure: Regenerate.
9551 2008-06-10 Tom Tromey <tromey@redhat.com>
9553 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
9556 2008-06-10 Joseph Myers <joseph@codesourcery.com>
9558 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
9559 (encode_decimal64, decode_decimal64, encode_decimal128,
9560 decode_decimal128): Reverse order of 32-bit parts of value if host
9561 and target endianness differ.
9563 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
9565 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
9566 Avoid division by 0.
9567 (tree_mod_pow2_value_transform): Likewise.
9568 (tree_ic_transform): Likewise.
9569 (tree_stringops_transform): Likewise.
9570 (tree_mod_subtract_transform): Likewise.
9571 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
9572 (copy_edges_for_bb): Likewise.
9573 (initialize_cfun): Likewise.
9575 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
9577 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
9578 nonmemory_operand. Add "N" operand constraint.
9580 (*jcc_btdi_mask_rex64): New instruction and split pattern.
9581 (*jcc_btsi_mask): Ditto.
9582 (*jcc_btsi_mask_1): Ditto.
9584 2008-06-10 Joseph Myers <joseph@codesourcery.com>
9586 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
9587 TYPE_CANONICAL for copied element type.
9589 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
9592 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
9593 Add m_CORE2 and m_GENERIC.
9594 * config/i386/predicates.md (bt_comparison_operator): New predicate.
9595 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
9597 (*jcc_btdi_rex64): New instruction and split pattern.
9599 (*jcc_btsi_1): Ditto.
9600 (*btsq): Fix Intel asm dialect operand order.
9604 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
9607 * simplify-rtx.c (simplify_subreg): Add check for shift count
9610 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
9612 * doc/md.texi: Synchronize with later constraints.md change.
9613 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
9614 with a C implementation.
9615 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
9617 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
9618 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
9619 when moving to and from MD_REGNUM.
9620 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
9621 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
9622 Handle byte and halfword moves.
9623 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
9625 * config/mips/constraints.md (h): Turn into NO_REGS.
9626 (l, x): Update documentation.
9627 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
9628 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
9629 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
9630 (HILO): New mode iterator.
9632 (any_div): New code iterator.
9633 (u): Extend code attribute to div and udiv.
9634 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
9635 d_operand in the splitters. Remove redundant CONST_INT checks.
9636 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
9637 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
9638 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
9639 accordingly, using normal moves instead of unspecs to move LO into
9640 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
9641 (<u>mulsidi3): Handle expansion in C code.
9642 (<u>mulsidi3_32bit_internal): Rename to...
9643 (<u>mulsidi3_32bit): ...this.
9644 (<u>mulsidi3_32bit_r4000): Fix insn separator.
9645 (*<u>mulsidi3_64bit): Rename to...
9646 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
9647 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
9648 to set LO and HI to the multiplication result. Use a normal move
9649 for MFLO and an unspec for MFHI.
9650 (*<u>mulsidi3_64bit_parts): Replace with...
9651 (<u>mulsidi3_64bit_hilo): ...this new instruction.
9652 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
9653 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
9654 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
9655 instead of HI. Split the instruction into a separate multiplication
9656 and MFHI if !TARGET_FIX_R4000.
9657 (<su>muldi3_highpart): Likewise.
9658 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
9659 and the "=h" clobber.
9660 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
9661 (<u>mulditi3): New expander.
9662 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
9663 (madsi): Remove "=h" clobber.
9664 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
9665 Force the modulus result to be a GPR and split the instruction into
9666 a division followed by an MFHI after reload.
9667 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
9668 (*lea_high64): Use d_operand in the define_peephole2. Likewise
9669 the MIPS16 HIGH define_split.
9670 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
9671 of acc<->gpr moves to "multi".
9672 (*movdi_64bit): Replace the single "x" alternative with
9673 alternatives for moving into and out of "a".
9674 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
9675 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
9676 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
9677 Use d_operand in the splitters. Remove redundant CONST_INT checks.
9678 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
9679 (movti): New expander.
9680 (*movti, *movti_mips16): New insns.
9681 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
9682 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
9683 (mthi<GPR:mode>_<HILO:mode>): Likewise.
9684 * config/mips/predicates.md (fpr_operand): Delete.
9685 (d_operand): New predicate.
9687 2008-06-09 Michael Meissner <michael.meissner@amd.com>
9689 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
9690 failure on some Bourne shells.
9691 (x86_64-*-*): Ditto.
9693 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
9695 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
9697 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
9699 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
9700 (sparc-sun-solaris2*): Likewise.
9702 2008-06-09 Arnaud Charlet <charlet@adacore.com
9704 * doc/install.texi: Update requirements to build the Ada compiler.
9706 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
9708 * df-scan.c (struct df_scan_problem_data): Remove the
9709 mw_link_pool alloc pool.
9710 (df_scan_free_internal): Don't free it.
9711 (df_scan_alloc): Don't allocate it.
9712 * df.h (struct df_link): Update comment.
9714 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
9716 * except.h: Correct checks for when SJLJ exceptions must be used.
9718 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9720 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
9723 2008-06-08 Joseph Myers <joseph@codesourcery.com>
9725 PR tree-optimization/36218
9726 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
9727 configure for the build system.
9728 (BUILD_LDFLAGS): Define.
9729 * configure: Regenerate.
9730 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
9732 2008-07-08 Anatoly Sokolov <aesok@post.ru>
9735 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
9736 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
9737 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
9739 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
9741 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
9743 2008-06-07 Joseph Myers <joseph@codesourcery.com>
9745 * config.gcc (Obsolete configurations): Remove list of
9747 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
9748 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
9749 targets matched by those patterns.
9750 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
9751 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
9752 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
9753 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
9754 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9755 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
9756 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
9757 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
9758 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
9759 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
9760 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
9761 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
9762 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
9763 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
9764 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
9765 Make code for Solaris 7 and greater unconditional for Solaris.
9766 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
9767 Remove --with-* handling.
9768 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
9769 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
9770 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
9771 LINK_OS_WINDISS_SPEC): Remove.
9772 * config/rs6000/sysv4.opt (mwindiss): Remove.
9773 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
9774 * configure: Regenerate.
9775 * doc/cpp.texi: Don't mention BeOS.
9776 * doc/extend.texi (interrupt): Don't mention MS1.
9777 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
9778 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
9779 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
9780 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
9781 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
9783 * doc/invoke.texi (MT Options): Remove.
9784 (-mwindiss): Remove.
9785 (CRIS Options): Remove cris-axis-aout references.
9786 (HPPA Options): Don't mention hppa1.1-*-pro.
9787 * doc/md.texi: (MorphoTech family): Remove.
9788 * libgcc2.c: Don't handle UWIN.
9789 * config/alpha/t-unicosmk: Remove.
9790 * config/alpha/unicosmk.h: Remove.
9791 * config/arm/kaos-arm.h: Remove.
9792 * config/arm/kaos-strongarm.h: Remove.
9793 * config/arm/strongarm-coff.h: Remove.
9794 * config/arm/strongarm-elf.h: Remove.
9795 * config/arm/strongarm-pe.h: Remove.
9796 * config/arm/t-strongarm-pe: Remove.
9797 * config/arm/t-xscale-coff: Remove.
9798 * config/arm/t-xscale-elf: Remove.
9799 * config/arm/xscale-coff.h: Remove.
9800 * config/arm/xscale-elf.h: Remove.
9801 * config/chorus.h: Remove.
9802 * config/cris/aout.h: Remove.
9803 * config/cris/aout.opt: Remove.
9804 * config/cris/t-aout: Remove.
9805 * config/i386/beos-elf.h: Remove.
9806 * config/i386/kaos-i386.h: Remove.
9807 * config/i386/ptx4-i.h: Remove.
9808 * config/i386/sco5.h: Remove.
9809 * config/i386/sco5.opt: Remove.
9810 * config/i386/sysv4-cpp.h: Remove.
9811 * config/i386/sysv5.h: Remove.
9812 * config/i386/t-beos: Remove.
9813 * config/i386/t-sco5: Remove.
9814 * config/i386/t-uwin: Remove.
9815 * config/i386/uwin.asm: Remove.
9816 * config/i386/uwin.h: Remove.
9817 * config/kaos.h: Remove.
9818 * config/mips/windiss.h: Remove.
9819 * config/mt: Remove directory.
9820 * config/pa/pa-osf.h: Remove.
9821 * config/pa/pa-pro-end.h: Remove.
9822 * config/pa/t-pro: Remove.
9823 * config/ptx4.h: Remove.
9824 * config/rs6000/beos.h: Remove.
9825 * config/rs6000/kaos-ppc.h: Remove.
9826 * config/rs6000/t-beos: Remove.
9827 * config/rs6000/windiss.h: Remove.
9828 * config/sh/kaos-sh.h: Remove.
9829 * config/sol2-6.h: Remove.
9830 * config/sparc/sol26-sld.h: Remove.
9831 * config/sparc/sysv4-only.h: Remove.
9832 * config/vax/bsd.h: Remove.
9833 * config/vax/t-memfuncs: Remove.
9834 * config/vax/ultrix.h: Remove.
9835 * config/vax/vaxv.h: Remove.
9836 * config/windiss.h: Remove.
9838 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
9840 PR rtl-optimization/36438
9841 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
9842 for vector shifts with constant scalar shift operands.
9844 2008-06-06 Sandip Matte <sandip@rmicorp.com>
9846 * doc/invoke.texi: Document -march=xlr.
9847 * config/mips/xlr.md: New file.
9848 * config/mips/mips.md: Include it.
9850 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
9851 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
9852 (mips_rtx_cost_data): Likewise.
9854 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
9856 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
9857 PRE_INC and PRE_DEC cases.
9859 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9861 PR rtl-optimization/36419
9862 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
9863 the emitting jump insn.
9866 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
9867 is not bool, boolify the whole *expr_p and convert to the desired type.
9869 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9871 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
9872 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
9873 Add omp_private_outer_ref hook, add another argument to
9874 omp_clause_default_ctor hook.
9875 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
9876 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
9877 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
9878 hook_tree_tree_tree_tree_null.
9879 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
9880 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
9881 * hooks.c (hook_tree_tree_tree_tree_null): New function.
9882 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
9883 * tree.def (OMP_TASK): New tree code.
9884 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
9885 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
9886 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
9887 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
9888 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
9889 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
9890 OMP_CLAUSE_COLLAPSE_EXPR): Define.
9891 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
9892 (OMP_DIRECTIVE_P): Add OMP_TASK.
9893 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
9894 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
9895 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
9896 and OMP_CLAUSE_UNTIED entries.
9897 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
9899 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
9900 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
9901 * tree-pretty-print.c (dump_omp_clause): Handle
9902 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
9903 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
9904 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
9905 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
9906 warning about unsigned iterators. Change decl/init/cond/incr
9907 arguments to TREE_VECs, check arguments for all collapsed loops.
9908 (c_finish_omp_taskwait): New function.
9909 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
9911 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
9912 default_function_array_conversion on init. Add par_clauses argument.
9913 If decl is present in parallel's lastprivate clause, change it to
9914 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
9915 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
9916 collapse count in clauses.
9917 (c_parser_omp_for, c_parser_omp_parallel): Adjust
9918 c_parser_omp_for_loop callers.
9919 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
9920 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
9921 (c_parser_omp_clause_name): Handle collapse and untied clauses.
9922 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
9924 (c_parser_omp_clause_schedule): Handle schedule(auto).
9925 Include correct location in the error message.
9926 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
9927 and PRAGMA_OMP_CLAUSE_UNTIED.
9928 (OMP_TASK_CLAUSE_MASK): Define.
9929 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
9930 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
9931 * tree-nested.c (convert_nonlocal_omp_clauses,
9932 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
9933 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
9934 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
9935 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
9937 (conver_nonlocal_reference, convert_local_reference,
9938 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
9939 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
9940 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
9941 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
9942 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
9943 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
9944 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
9945 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
9946 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
9948 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
9949 * c-common.h (c_finish_omp_taskwait): New prototype.
9950 * gimple-low.c (lower_stmt): Handle OMP_TASK.
9951 * tree-parloops.c (create_parallel_loop): Create 1 entry
9952 vectors for OMP_FOR_{INIT,COND,INCR}.
9953 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9954 (make_edges): Handle OMP_TASK.
9955 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
9956 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
9957 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
9958 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
9959 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
9960 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
9961 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
9962 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
9963 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
9964 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
9965 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
9966 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
9967 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
9968 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
9969 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
9970 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
9971 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
9972 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
9973 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
9974 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
9975 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
9976 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
9977 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
9978 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
9979 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
9980 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
9981 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
9982 original iterator is present in lastprivate clause or if
9983 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
9984 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
9985 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
9986 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
9987 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
9988 if it is set, lookup var in outer contexts too. Handle
9989 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
9990 to be implicitly determined firstprivate for task regions.
9991 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
9992 if it is set, lookup var in outer contexts too. Set
9993 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
9994 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
9995 OMP_CLAUSE_UNTIED. Take region_type as last argument
9996 instead of in_parallel and in_combined_parallel.
9997 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
9999 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10000 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
10001 (new_omp_context): Set default_kind to
10002 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10003 (omp_region_type): New enum.
10004 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10005 fields, add region_type.
10006 (new_omp_context): Take region_type as argument instead of is_parallel
10007 and is_combined_parallel.
10008 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10009 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10010 ctx->is_combined_parallel checks.
10011 (gimplify_omp_task): New function.
10012 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10014 * omp-low.c (extract_omp_for_data): Use schedule(static)
10015 for schedule(auto). Handle pointer and unsigned iterators.
10016 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
10017 Add loops argument. Extract data for collapsed OMP_FOR loops.
10018 (expand_parallel_call): Assert sched_kind isn't auto,
10019 map runtime schedule to index 3.
10020 (struct omp_for_data_loop): New type.
10021 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
10022 Add loop, loops, collapse and iter_type fields.
10023 (workshare_safe_to_combine_p): Disallow combined for if
10024 iter_type is unsigned long long. Don't combine collapse > 1 loops
10025 unless all bounds and steps are constant. Adjust extract_omp_for_data
10027 (expand_omp_for_generic): Handle pointer, unsigned and long long
10028 iterators. Handle collapsed OMP_FOR loops. Adjust
10029 for struct omp_for_data changes. If libgomp function doesn't return
10030 boolean_type_node, add comparison of the return value with 0.
10031 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
10032 pointer, unsigned and long long iterators. Adjust for struct
10033 omp_for_data changes.
10034 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
10035 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
10036 unsigned long long. Allocate loops array, pass it to
10037 extract_omp_for_data. For collapse > 1 loops use always
10038 expand_omp_for_generic.
10039 (omp_context): Add sfield_map and srecord_type fields.
10040 (is_task_ctx, lookup_sfield): New functions.
10041 (use_pointer_for_field): Use is_task_ctx helper. Change first
10042 argument's type from const_tree to tree. Clarify comment.
10043 In OMP_TASK disallow copy-in/out sharing.
10044 (build_sender_ref): Call lookup_sfield instead of lookup_field.
10045 (install_var_field): Add mask argument. Populate both record_type
10046 and srecord_type if needed.
10047 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
10049 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
10050 and DECL_FIELD_OFFSET.
10051 (scan_sharing_clauses): Adjust install_var_field callers. For
10052 firstprivate clauses on explicit tasks allocate the var by value in
10053 record_type unconditionally, rather than by reference.
10054 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
10055 Use is_taskreg_ctx instead of is_parallel_ctx.
10056 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10057 (create_omp_child_function_name): Add task_copy argument, use
10058 *_omp_cpyfn* names if it is true.
10059 (create_omp_child_function): Add task_copy argument, if true create
10060 *_omp_cpyfn* helper function.
10061 (scan_omp_parallel): Adjust create_omp_child_function callers.
10062 Rename parallel_nesting_level to taskreg_nesting_level.
10063 (scan_omp_task): New function.
10064 (lower_rec_input_clauses): Don't run constructors for firstprivate
10065 explicit task vars which are initialized by *_omp_cpyfn*.
10066 Pass outer var ref to omp_clause_default_ctor hook if
10067 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
10068 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
10069 OMP_CLAUSE_REDUCTION_INIT.
10070 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
10071 avoid duplicate setting of fields. Handle
10072 OMP_CLAUSE_PRIVATE_OUTER_REF.
10073 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
10074 copy-out if TREE_READONLY, only copy-in.
10075 (expand_task_copyfn): New function.
10076 (expand_task_call): New function.
10077 (struct omp_taskcopy_context): New type.
10078 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
10080 (lower_omp_parallel): Rename to...
10081 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
10082 Call create_task_copyfn if srecord_type is needed. Adjust
10084 (task_shared_vars): New variable.
10085 (check_omp_nesting_restrictions): Warn if work-sharing,
10086 barrier, master or ordered region is closely nested inside OMP_TASK.
10087 Add warnings for barrier if closely nested inside of work-sharing,
10088 ordered, or master region.
10089 (scan_omp_1): Call check_omp_nesting_restrictions even for
10090 GOMP_barrier calls. Rename parallel_nesting_level to
10091 taskreg_nesting_level. Handle OMP_TASK.
10092 (lower_lastprivate_clauses): Even if some lastprivate is found on a
10093 work-sharing construct, continue looking for them on parent parallel
10095 (lower_omp_for_lastprivate): Add lastprivate clauses
10096 to the beginning of dlist rather than end. Adjust for struct
10097 omp_for_data changes.
10098 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
10099 not after it. Handle collapsed OMP_FOR loops, adjust for
10100 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
10101 (get_ws_args_for): Adjust extract_omp_for_data caller.
10102 (scan_omp_for): Handle collapsed OMP_FOR
10103 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10104 (lower_omp_single_simple): If libgomp function doesn't return
10105 boolean_type_node, add comparison of the return value with 0.
10106 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
10107 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
10108 (parallel_nesting_level): Rename to...
10109 (taskreg_nesting_level): ... this.
10110 (is_taskreg_ctx): New function.
10111 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
10112 of is_parallel_ctx.
10113 (execute_lower_omp): Rename parallel_nesting_level to
10114 taskreg_nesting_level.
10115 (expand_omp_parallel): Rename to...
10116 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
10117 Call omp_task_call for OMP_TASK regions.
10118 (expand_omp): Adjust caller, handle OMP_TASK.
10119 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
10121 * bitmap.c (bitmap_default_obstack_depth): New variable.
10122 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
10123 if argument is NULL and bitmap_default_obstack is already initialized.
10124 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
10126 * matrix-reorg.c (matrix_reorg): Likewise.
10128 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
10130 * config/i386/i386.md (*indirect_jump): Macroize using P
10131 mode iterator. Remove !TARGET_64BIT from insn constraints.
10132 (*tablejump_1): Ditto.
10133 (*indirect_jump_rex64): Remove insn pattern.
10134 (*tablejump_1_rex64): Ditto.
10135 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
10136 and eh_return_si insn patterns.
10138 2008-06-06 Richard Guenther <rguenther@suse.de>
10140 * tree-ssa-structalias.c (merge_smts_into): Remove.
10141 (find_what_p_points_to): Do not bother to compute the
10142 points-to set for pt_anything pointers.
10143 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
10144 for pt_anything pointers is ok.
10146 2008-06-06 Jan Hubicka <jh@suse.cz>
10148 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
10150 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10152 * cgraph.c: Fix typos in comments.
10153 (cgraph_availability_names): Fix string typo.
10154 * fold-const.c: Fix typos in comments.
10155 (fold_binary): Fix typo in warning.
10156 * genautomata.c: Fix typos in comments.
10157 (check_presence_pattern_sets): Fix typo in local variable.
10158 (output_description): Fix typo in output.
10159 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
10160 * hwint.h: Likewise.
10161 * matrix-reorg.c (check_allocation_function): Likewise.
10162 * omega.c (smooth_weird_equations): Likewise.
10163 * auto-inc-dec.c: Fix typos in comments.
10164 * bb-reorder.c: Likewise.
10165 * builtins.c: Likewise.
10166 * c-common.c: Likewise.
10167 * c-cppbuiltin.c: Likewise.
10168 * c-parser.c: Likewise.
10169 * c-pretty-print.c: Likewise.
10170 * cfgcleanup.c: Likewise.
10171 * cfgexpand.c: Likewise.
10172 * cfghooks.c: Likewise.
10173 * cfglayout.c: Likewise.
10174 * cfgloopmanip.c: Likewise.
10175 * cgraphunit.c: Likewise.
10176 * coverage.c: Likewise.
10177 * dbxout.c: Likewise.
10178 * df-byte-scan.c: Likewise.
10179 * df-core.c: Likewise.
10180 * df-problems.c: Likewise.
10181 * df-scan.c: Likewise.
10183 * dominance.c: Likewise.
10184 * domwalk.c: Likewise.
10186 * dwarf2out.c: Likewise.
10187 * emit-rtl.c: Likewise.
10188 * et-forest.c: Likewise.
10189 * function.c: Likewise.
10190 * function.h: Likewise.
10192 * gcov-io.c: Likewise.
10193 * gcov.c: Likewise.
10194 * gcse.c: Likewise.
10195 * genattrtab.c: Likewise.
10196 * ggc-page.c: Likewise.
10197 * gimplify.c: Likewise.
10198 * gthr-lynx.h: Likewise.
10199 * haifa-sched.c: Likewise.
10200 * ipa-cp.c: Likewise.
10201 * ipa-inline.c: Likewise.
10202 * ipa-prop.h: Likewise.
10203 * ipa-pure-const.c: Likewise.
10204 * ipa-struct-reorg.c: Likewise.
10205 * ipa-struct-reorg.h: Likewise.
10206 * ipa-type-escape.c: Likewise.
10208 * loop-doloop.c: Likewise.
10209 * mips-tfile.c: Likewise.
10210 * mkmap-flat.awk: Likewise.
10211 * mkmap-symver.awk: Likewise.
10212 * modulo-sched.c: Likewise.
10213 * omp-low.c: Likewise.
10214 * optabs.c: Likewise.
10215 * optabs.h: Likewise.
10216 * opts.c: Likewise.
10217 * passes.c: Likewise.
10218 * postreload-gcse.c: Likewise.
10219 * postreload.c: Likewise.
10220 * predict.c: Likewise.
10221 * pretty-print.h: Likewise.
10222 * profile.c: Likewise.
10223 * protoize.c: Likewise.
10224 * ra-conflict.c: Likewise.
10225 * real.c: Likewise.
10226 * recog.c: Likewise.
10227 * regclass.c: Likewise.
10228 * regs.h: Likewise.
10229 * reload.c: Likewise.
10230 * rtl-error.c: Likewise.
10231 * rtlanal.c: Likewise.
10232 * scan.h: Likewise.
10233 * sched-rgn.c: Likewise.
10235 * stmt.c: Likewise.
10236 * target.h: Likewise.
10237 * tree-dfa.c: Likewise.
10238 * tree-eh.c: Likewise.
10239 * tree-flow-inline.h: Likewise.
10240 * tree-inline.c: Likewise.
10241 * tree-into-ssa.c: Likewise.
10242 * tree-loop-distribution.c: Likewise.
10243 * tree-nested.c: Likewise.
10244 * tree-parloops.c: Likewise.
10245 * tree-pass.h: Likewise.
10246 * tree-pretty-print.c: Likewise.
10247 * tree-profile.c: Likewise.
10248 * tree-scalar-evolution.c: Likewise.
10249 * tree-sra.c: Likewise.
10250 * tree-ssa-alias-warnings.c: Likewise.
10251 * tree-ssa-ccp.c: Likewise.
10252 * tree-ssa-coalesce.c: Likewise.
10253 * tree-ssa-dom.c: Likewise.
10254 * tree-ssa-dse.c: Likewise.
10255 * tree-ssa-forwprop.c: Likewise.
10256 * tree-ssa-live.c: Likewise.
10257 * tree-ssa-live.h: Likewise.
10258 * tree-ssa-loop-im.c: Likewise.
10259 * tree-ssa-loop-ivopts.c: Likewise.
10260 * tree-ssa-loop-niter.c: Likewise.
10261 * tree-ssa-loop-prefetch.c: Likewise.
10262 * tree-ssa-phiopt.c: Likewise.
10263 * tree-ssa-phiprop.c: Likewise.
10264 * tree-ssa-sccvn.c: Likewise.
10265 * tree-ssa-ter.c: Likewise.
10266 * tree-ssa-threadupdate.c: Likewise.
10267 * tree-ssa.c: Likewise.
10268 * tree-vect-analyze.c: Likewise.
10269 * tree-vect-transform.c: Likewise.
10270 * tree-vectorizer.c: Likewise.
10271 * tree-vn.c: Likewise.
10272 * tree-vrp.c: Likewise.
10273 * tree.c: Likewise.
10274 * tree.def: Likewise.
10275 * tree.h: Likewise.
10276 * unwind-dw2-fde.c: Likewise.
10277 * unwind.inc: Likewise.
10278 * value-prof.c: Likewise.
10279 * vmsdbgout.c: Likewise.
10281 2008-06-05 David Edelsohn <edelsohn@gnu.org>
10283 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
10284 always place FP constants in the TOC for TARGET_POWERPC64.
10285 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
10287 2008-06-05 Joseph Myers <joseph@codesourcery.com>
10289 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
10290 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
10291 enable for TARGET_E500_DOUBLE.
10292 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
10293 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
10294 floating-point modes like integer modes for E500 double.
10295 (rs6000_legitimate_offset_address_p): Likewise.
10296 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
10297 addressing for DDmode for E500 double.
10298 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
10299 modes as using 64-bits of registers for E500 double.
10300 (spe_build_register_parallel): Do not handle DDmode or TDmode.
10301 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
10302 specially for E500 double.
10303 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
10304 TDmode for E500 double.
10305 (rs6000_gimplify_va_arg): Only handle SDmode in registers
10306 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
10307 (rs6000_split_multireg_move): Do not handle TDmode specially for
10309 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
10310 using 64-bit registers for E500 double.
10311 (emit_frame_save): Do not handle DDmode specially for E500 double.
10312 (gen_frame_mem_offset): Likewise.
10313 (rs6000_function_value): Do not call spe_build_register_parallel
10314 for DDmode or TDmode.
10315 (rs6000_libcall_value): Likewise.
10316 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
10317 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
10320 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
10322 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
10325 2008-06-04 Junjie Gu <jgu@tensilica.com>
10327 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
10328 comparison for frame pointers.
10330 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
10333 * config/avr/avr.h (PUSH_ROUNDING): Remove.
10335 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
10338 * builtins.c (expand_builtin_signbit): Don't take lowpart when
10339 register is already smaller or equal to required mode.
10341 2008-06-04 Xinliang David Li <davidxl@google.com>
10343 * tree-call-cdce.c: New file.
10344 (cond_dead_built_in_calls): New static variable.
10345 (input_domain): New struct.
10346 (check_pow): New function.
10347 (check_builtin_call): Ditto.
10348 (check_target_format): Ditto.
10349 (is_call_dce_candidate): Ditto.
10350 (gen_one_condition): Ditto.
10351 (gen_conditions_for_domain): Ditto.
10352 (get_domain): Ditto.
10353 (gen_conditions_for_pow_cst_base): Ditto.
10354 (gen_conditions_for_pow_int_base): Ditto.
10355 (gen_conditions_for_pow): Ditto.
10356 (get_no_error_domain): Ditto.
10357 (gen_shrink_wrap_conditions): Ditto.
10358 (shrink_wrap_one_built_in_call): Ditto.
10359 (shink_wrap_conditional_dead_built_in_calls): Ditto.
10360 (tree_call_cdce): Ditto.
10361 (gate_call_cdce): Ditto.
10362 (pass_call_cdce): New gimple pass.
10363 * passes.c: (init_optimization_passes): New pass.
10364 * tree-pass.h: New pass declaration.
10365 * opts.c (decode_options): New flag setting.
10366 * common.opt: Add -ftree-builtin-call-dce flag.
10367 * Makefile.in: Add new source file.
10368 * tempvar.def: New tv_id.
10369 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
10371 2008-06-04 Richard Guenther <rguenther@suse.de>
10373 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
10374 (is_call_clobbered): Always check var_ann->call_clobbered.
10375 (mark_call_clobbered): Always set var_ann->call_clobbered.
10376 (clear_call_clobbered): Always clear var_ann->call_clobbered.
10377 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
10378 (reset_alias_info): Clear call clobbering info on MTAGs and
10380 (set_pt_anything): Set pt_global_mem.
10381 (create_tag_raw): Adjust comment.
10382 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
10384 2008-06-04 Joseph Myers <joseph@codesourcery.com>
10385 Maxim Kuvyrkov <maxim@codesourcery.com>
10387 * config/m68k/m68k.opt (mxgot): New option.
10388 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
10389 (m68k_output_addr_const_extra): New.
10390 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
10391 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
10392 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
10393 * doc/invoke.texi (M680x0 Options): Document -mxgot.
10395 2008-06-04 Richard Guenther <rguenther@suse.de>
10397 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
10398 negative or non-representable offsets.
10400 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
10402 * config/i386/i386.c (ix86_gen_leave): New.
10403 (ix86_gen_pop1): Likewise.
10404 (ix86_gen_add3): Likewise.
10405 (ix86_gen_sub3): Likewise.
10406 (ix86_gen_sub3_carry): Likewise.
10407 (ix86_gen_one_cmpl2): Likewise.
10408 (ix86_gen_monitor): Likewise.
10409 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
10410 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10411 ix86_gen_one_cmpl2 and ix86_gen_monitor.
10412 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
10413 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
10414 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
10415 (ix86_expand_epilogue): Updated.
10416 (print_operand): Handle integer register operand for 'z'.
10417 (ix86_expand_strlensi_unroll_1): Likewise.
10418 (ix86_expand_strlen): Likewise.
10419 (ix86_expand_builtin): Likewise.
10420 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
10421 mov{q}/mov{l} and add{q}/add{l}.
10423 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
10425 * config/i386/i386.md (P): New mode iterator.
10426 (SFmode push_operand splitter): Macroize DImode and SImode pushes
10427 using P mode iterator.
10428 (DFmode push_operand splitter): Ditto.
10429 (XFmode push_operand splitter): Ditto.
10430 (DFmode float_extend SFmode push_operand splitter): Ditto.
10431 (XFmode float_extend SFmode push_operand splitter): Do not generate
10432 SImode pushes for 64bit target. Macroize Dimode and SImode
10433 pushes using P mode iterator.
10434 (XFmode float_extend DFmode push_operand splitter): Ditto.
10436 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
10438 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
10439 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
10440 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
10441 return type to int.
10442 (ix86_call_abi_override): Remove check for call_used_regs.
10444 2008-06-03 Richard Guenther <rguenther@suse.de>
10446 * tree-ssa-structalias.c (find_func_aliases): Add constraints
10447 for the lhs of calls if the return type contains pointers.
10449 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
10451 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
10452 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
10453 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
10454 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
10455 of cfun and DEFAULT_ABI to deceide abi mode.
10456 (DEFAULT_ABI): New.
10457 (REG_PARM_STACK_SPACE): Removed.
10458 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
10459 (STACK_BOUNDARY): Use default target to deceide stack boundary.
10460 * config/i386/i386-protos.h (ix86_cfun_abi): New.
10461 (ix86_function_abi): Likewise.
10462 (ix86_function_type_abi): Likewise.
10463 (ix86_call_abi_override): Likewise.
10464 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
10465 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
10466 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
10467 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
10469 (X86_64_REGPARM_MAX): New.
10470 (X86_64_SSE_REGPARM_MAX): New.
10471 (X64_REGPARM_MAX): New.
10472 (X64_SSE_REGPARM_MAX): New.
10473 (X86_32_REGPARM_MAX): New.
10474 (X86_32_SSE_REGPARM_MAX): New.
10475 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
10476 (ix86_function_regparm): Handle user calling abi.
10477 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
10478 by DEFAULT_ABI versus SYSV_ABI check.
10479 (ix86_reg_parm_stack_space): New.
10480 (ix86_function_type_abi): New.
10481 (ix86_call_abi_override): New.
10482 (ix86_function_abi): New.
10483 (ix86_cfun_abi): New.
10484 (init_cumulative_args): Call abi specific initialization.
10485 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
10486 (function_arg_64): Extend SSE_REGPARM_MAX check.
10487 (function_arg (): Remove TARGET_64BIT_MS_ABI.
10488 (ix86_pass_by_reference): Likewise.
10489 (ix86_function_value_regno_p): Likewise.
10490 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
10491 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
10492 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
10493 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
10494 (setup_incoming_varargs_64): Adjust regparm for call abi.
10495 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
10496 (ix86_va_start): Likewise.
10497 (ix86_gimplify_va_arg): Likewise.
10498 (ix86_expand_prologue): Likewise.
10499 (output_pic_addr_const): Likewise.
10500 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
10501 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
10502 (x86_output_mi_thunk): Likewise.
10503 (x86_function_profiler): Likewise.
10504 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
10505 (SYSV_ABI, MS_ABI): New constants.
10506 (DEFAULT_ABI): New.
10507 (init_regs): Add prototype of function in regclass.c file.
10508 (OVERRIDE_ABI_FORMAT): New.
10509 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
10510 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
10511 (OUTGOING_REG_PARM_STACK_SPACE): New.
10512 (ix86_reg_parm_stack_space): New prototype.
10513 (CUMULATIVE_ARGS): Add call_abi member.
10514 (machine_function): Add call_abi member.
10515 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
10516 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
10518 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
10521 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
10522 (avr_builtin_setjmp_frame_value): New function.
10523 * config/avr/avr.md (nonlocal_goto_receiver): Define.
10524 (nonlocal_goto): Define.
10526 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
10528 * config/mips/mips.c (mips_emit_loadgp): Return early if
10529 there is nothing do to, otherwise emit a blockage if
10530 !TARGET_EXPLICIT_RELOCS || crtl->profile.
10531 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
10533 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10535 * configure.ac: Drop unneeded backslash ending up in config.in.
10536 * acinclude.m4: Likewise.
10537 * config.in: Regenerate.
10539 2008-05-26 Jan Hubicka <jh@suse.cz>
10541 * predict.c (maybe_hot_frequency_p): Break out of...
10542 (maybe_hot_bb_p): ... here.
10543 (maybe_hot_edge_p): New.
10544 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
10545 * basic-block.h (maybe_hot_edge_p): Declare.
10547 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
10549 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
10550 (*cmpfp_<mode>_cc): Ditto.
10551 (*fp_jcc_8<mode>_387): Ditto.
10552 (*fop_<MODEF:mode>_2_i387): Ditto.
10553 (*fop_<MODEF:mode>_3_i387): Ditto.
10554 (*fop_xf_2_i387): Ditto.
10555 (*fop_xf_3_i387): Ditto.
10557 2008-06-02 Tomas Bily <tbily@suse.cz>
10559 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
10561 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10563 * config/mips/mips.c (mips_valid_offset_p): New function.
10564 (mips_valid_lo_sum_p): Likewise.
10565 (mips_classify_address): Use them.
10566 (mips_force_address): New function.
10567 (mips_legitimize_address): Use it.
10568 * config/mips/mips.md (MOVE128): New mode iterator.
10569 (movtf): Require TARGET_64BIT. Remove empty strings.
10570 (*movtf_internal): Rename to...
10571 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
10572 of "R" and use {,fp}{load,store} attributes instead of "multi".
10573 Use a separate define_split.
10574 (*movtf_mips16): New pattern.
10576 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10578 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
10579 * config/mips/mips.c (mips_expand_before_return): New function.
10580 (mips_expand_epilogue): Call it.
10581 * config/mips/mips.md (return): Turn into a define_expand.
10582 (*return): New insn.
10584 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
10586 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
10587 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
10588 functions. Do not emit uses and clobbers of CONCATs; individually
10589 use and clobber their operands.
10590 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
10591 gen_clobber, emit_use and gen_use.
10592 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
10593 (expand_builtin_return): Likewise.
10594 * cfgbuild.c (count_basic_blocks): Likewise.
10595 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
10596 * explow.c (emit_stack_restore): Likewise.
10597 * expmed.c (extract_bit_field_1): Likewise.
10598 * expr.c (convert_move, emit_move_complex_parts): Likewise.
10599 (emit_move_multi_word, store_constructor): Likewise.
10600 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
10601 (thread_prologue_and_epilogue_insns): Likewise.
10602 * lower-subreg.c (resolve_simple_move): Likewise.
10603 * optabs.c (widen_operand, expand_binop): Likewise.
10604 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
10605 * reload.c (find_reloads): Likewise.
10606 * reload1.c (eliminate_regs_in_insn): Likewise.
10607 * stmt.c (expand_nl_goto_receiver): Likewise.
10608 * config/alpha/alpha.md (builtin_longjmp): Likewise.
10609 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
10610 * config/arm/arm.c (arm_load_pic_register): Likewise.
10611 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
10612 * config/arm/arm.md (untyped_return): Likewise.
10613 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
10614 * config/avr/avr.c (expand_prologue): Likewise.
10615 * config/bfin/bfin.c (do_unlink): Likewise.
10616 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
10617 * config/cris/cris.c (cris_expand_prologue): Likewise.
10618 * config/darwin.c (machopic_indirect_data_reference): Likewise.
10619 (machopic_legitimize_pic_address): Likewise.
10620 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
10621 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
10622 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
10623 (ix86_expand_convert_uns_didf_sse): Likewise.
10624 (ix86_expand_vector_init_general): Likewise.
10625 * config/ia64/ia64.md (eh_epilogue): Likewise.
10626 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
10627 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
10628 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
10629 (config/iq2000/iq2000.c): Likewise.
10630 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10631 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10632 (builtin_longjmp): Likewise.
10633 * config/mn10300/mn10300.md (call, call_value): Likewise.
10634 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
10635 * config/pdp11/pdp11.md (abshi2): Likewise.
10636 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
10637 * config/s390/s390.c (s390_emit_prologue): Likewise.
10638 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
10639 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
10640 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
10641 * config/sh/sh.c (prepare_move_operands): Likewise.
10642 (output_stack_adjust, sh_expand_epilogue): Likewise.
10643 (sh_set_return_address, sh_expand_t_scc): Likewise.
10644 * config/sparc/sparc.c (load_pic_register): Likewise.
10645 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
10646 * config/spu/spu.c (spu_expand_epilogue): Likewise.
10647 * config/v850/v850.c (expand_epilogue): Likewise.
10649 2008-05-31 Anatoly Sokolov <aesok@post.ru>
10651 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
10652 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
10653 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
10654 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
10655 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
10656 stack pointer register.
10657 (output_movhi): Remove code for interrupt specific writing to the
10658 stack pointer register.
10660 2008-05-31 Richard Guenther <rguenther@suse.de>
10662 PR tree-optimization/34244
10663 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
10664 (tree_expr_nonzero_warnv_p): Likewise.
10665 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
10666 ssa_name_nonnegative_p.
10667 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
10668 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
10669 not tree_expr_nonzero_warnv_p.
10671 PR tree-optimization/36262
10673 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
10675 PR tree-optimization/34244
10676 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
10677 (record_numbers_of_iterations): New function.
10678 (execute_vrp): Cache the numbers of iterations of loops.
10679 * tree-scalar-evolution.c (scev_reset_except_niters):
10681 (scev_reset): Use scev_reset_except_niters.
10682 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
10684 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
10686 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10687 __WORKAROUND_RETS when appropriate.
10689 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
10691 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
10692 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
10694 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
10695 *fop_df_comm_sse insn patterns using MODEF mode iterator.
10696 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
10697 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
10698 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
10699 *fop_df_1_mixed insn patterns using MODEF mode iterator.
10700 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
10701 *fop_df_1_sse insn patterns using MODEF mode iterator.
10702 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
10703 *fop_df_1_i387 insn patterns using MODEF mode iterator.
10704 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
10705 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
10706 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
10707 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
10708 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
10709 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
10710 (*fop_xf_4_i387): Use <MODE> for mode attribute.
10711 (*fop_xf_5_i387): Ditto.
10712 (*fop_xf_6_i387): Ditto.
10714 2008-05-30 Richard Guenther <rguenther@suse.de>
10716 * builtins.c (build_string_literal): Avoid generating
10717 a non-gimple_val result.
10719 2008-05-30 DJ Delorie <dj@redhat.com>
10721 * exec-tool.in: Use an environment variable (private) instead of a
10722 file (shared) as a semaphore, so as to not break parallel builds.
10724 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
10726 * optabs.c (maybe_encapsulate_block): Remove.
10727 (emit_libcall_block): Adjust accordingly.
10728 * optabs.h (maybe_encapsulate_block): Remove prototype.
10730 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
10731 Don't use maybe_encapsulate_block.
10733 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
10735 * config/rs6000/rs6000.c (rs6000_legitimize_address,
10736 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
10737 rtx is a SYMBOL_REF before calling get_pool_constant.
10739 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
10741 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
10743 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
10745 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
10746 rather than OS names to choose INO_T_EQ definition.
10747 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
10748 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
10750 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
10753 * config/darwin-f.c: New.
10754 * config/t-darwin: Added rule to build darwin-f.o.
10755 * config.gcc: Defined new variable, fortran_target_objs.
10756 (*-*-darwin*): Set fortran_target_objs.
10757 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
10758 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
10759 * configure: Regenerated.
10761 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
10764 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
10765 canonical type if needed.
10767 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
10769 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
10771 2008-05-29 Richard Guenther <rguenther@suse.de>
10773 PR tree-optimization/36343
10774 PR tree-optimization/36346
10775 PR tree-optimization/36347
10776 * tree-flow.h (clobber_what_p_points_to): Declare.
10777 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
10778 pointed-to variable is dereferenced is irrelevant to whether
10779 the pointer can access the pointed-to variable.
10780 (clobber_what_p_points_to): New function.
10781 * tree-ssa-alias.c (set_initial_properties): Use it.
10782 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
10783 call clobber check for NMTs.
10785 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
10787 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
10788 for printing gcov_type.
10790 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
10792 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
10793 and the eh region information.
10794 * value-prof.c (gimple_move_stmt_histograms): New function.
10795 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
10797 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
10799 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
10801 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
10803 * value-prof.c (tree_ic_transform): Print counts.
10804 * tree-profile.c (tree_gen_ic_func_profiler):
10805 Clear __gcov_indreict_call_callee variable to avoid misattribution
10808 2008-05-28 Rafael Espindola <espindola@google.com>
10810 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
10813 2008-05-28 Richard Guenther <rguenther@suse.de>
10815 PR tree-optimization/36339
10816 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
10817 and clobbering code out of the loop.
10819 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
10821 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
10824 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
10825 s390_contiguous_bitmask_p, s390_symref_operand_p,
10826 s390_check_symref_alignment, s390_reload_larl_operand,
10827 s390_reload_symref_address): New functions.
10828 (s390_branch_condition_mnemonic): Support compare and branch
10830 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
10831 and 'W' constraints.
10832 (s390_secondary_reload): Add secondary reloads for unaligned
10833 symbol refs or symbol refs to floating point or QI/TI mode
10835 (legitimate_address_p): Accept symbol references as addresses.
10836 (s390_expand_insv): Use rotate and insert selected bits
10837 instruction for insv when building for z10.
10838 (print_operand_address): Handle symbol ref addresses.
10839 (print_operand): Output modifier 'c' added for signed byte values.
10840 (s390_encode_section_info): Mark symbol refs with
10841 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
10843 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
10844 (length attribute): RRF, RRR have 4 byte length.
10845 (FPALL, INTALL): New mode iterators added.
10846 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
10847 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
10848 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
10849 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
10850 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
10851 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
10852 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
10853 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
10855 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
10856 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
10857 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
10858 reload<INTALL:mode><P:mode>_toreg_z10,
10859 reload<FPALL:mode><P:mode>_tomem_z10,
10860 reload<FPALL:mode><P:mode>_toreg_z10,
10861 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
10862 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
10863 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
10864 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
10866 (movmem, clrmem, cmpmem): New splitters added.
10868 * config/s390/predicates.md (larl_operand): Use
10869 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
10870 SYMBOL_REF_ALIGN1_P.
10871 (s390_signed_integer_comparison,
10872 s390_unsigned_integer_comparison): New predicates.
10874 * config/s390/s390-protos.h (s390_check_symref_alignment,
10875 s390_contiguous_bitmask_p, s390_reload_larl_operand,
10876 s390_reload_symref_address,
10877 s390_compare_and_branch_condition_mask): Prototypes added.
10879 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
10880 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
10881 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
10883 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
10885 * config/s390/s390.c (z10_cost): New cost function for z10.
10886 (s390_handle_arch_option, override_options): Support -march=z10 switch.
10887 (s390_issue_rate): Adjust issue rate for z10.
10888 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
10889 (processor_flags): Add PF_Z10.
10890 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
10891 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
10892 * gcc/config.gcc: Add z10.
10894 2008-05-28 Richard Guenther <rguenther@suse.de>
10896 PR tree-optimization/36291
10897 * tree-flow. h (struct gimple_df): Remove var_anns member.
10898 * tree-flow-inline.h (gimple_var_anns): Remove.
10899 (var_ann): Simplify.
10900 * tree-dfa.c (create_var_ann): Simplify.
10901 (remove_referenced_var): Clear alias info from var_anns of globals.
10902 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
10903 (delete_tree_ssa): Clear alias info from var_anns of globals.
10904 Do not free var_anns.
10905 (var_ann_eq): Remove.
10906 (var_ann_hash): Likewise.
10908 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
10910 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
10911 and loongson2f entries.
10912 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
10913 * config/mips/mips.h (processor_type): Add Loongson-2E
10914 and Loongson-2F entries.
10915 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
10916 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
10917 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
10918 * doc/invoke.texi (MIPS Options): Document loongson2e
10919 and loongson2f processor names.
10921 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
10925 * config/i386/i386.c (ix86_function_arg_boundary): Use
10926 alignment of canonical type.
10927 (ix86_expand_vector_move): Check unaligned memory access for
10930 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
10932 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
10933 Moved to the front of file.
10935 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
10936 H.J. Lu <hongjiu.lu@intel.com>
10938 * dwarf2out.c (current_fde): New.
10940 (lookup_cfa:): Likewise.
10941 (dwarf2out_end_epilogue): Likewise.
10942 (dwarf2out_note_section_used): Likewise.
10944 2008-05-27 Michael Matz <matz@suse.de>
10947 * c.opt (Wenum-compare): New warning option.
10948 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
10950 2008-05-27 Michael Matz <matz@suse.de>
10952 PR middle-end/36326
10953 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
10955 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
10956 into memory as tail calls.
10958 2008-05-27 Richard Guenther <rguenther@suse.de>
10960 PR tree-optimization/36339
10961 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
10962 pointers cause all addressable variables to be call clobbered.
10964 2008-05-27 Richard Guenther <rguenther@suse.de>
10966 PR tree-optimization/36245
10967 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
10969 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
10971 * config/s390/s390.md: Replace all occurences of the 'm'
10972 constraint with 'RT'.
10974 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
10976 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
10978 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
10980 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
10981 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
10982 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
10984 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
10986 * reload.c: (find_reloads): Skip alternatives according to the
10987 "enabled" attribute. Constify the constraint variable.
10988 * recog.c (get_attr_enabled): Add default implementation.
10989 (extract_insn): Set the alternative_enabled_p array
10990 in the recog_data struct.
10991 (preprocess_constraints, constrain_operands): Skip
10992 alternatives according to the "enabled" attribute
10993 * recog.h (struct recog_data): New field alternative_enabled_p.
10994 (skip_alternative): New inline function.
10995 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
10996 (record_reg_classes): Skip alternative according to the
10997 "enabled" attribute.
10999 * doc/md.texi: Add documention for the "enabled" attribute.
11001 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
11003 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11004 * postreload.c (reload_cse_simplify_operands): Replace 'm'
11005 constraint with TARGET_MEM_CONSTRAINT.
11006 * recog.c (asm_operand_ok, preprocess_constraints,
11007 constrain_operands): Likewise.
11008 * regclass.c (record_reg_classes): Likewise.
11009 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11010 * reload1.c (maybe_fix_stack_asms): Likewise.
11011 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11012 * recog.h: Adjust comment.
11013 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
11014 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
11015 * doc/md.texi: Add a note to description of 'm' constraint.
11016 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
11018 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
11020 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
11021 that the bitfield is of integral type before testing its precision.
11023 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
11024 Sa Liu <saliu@de.ibm.com>
11026 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
11027 __modti3, __udivti3, __umodti3 and __udivmodti4.
11028 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
11029 that implement TImode mul and div functions.
11030 * config/spu/multi3.c: New. Implement __multi3.
11031 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
11032 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
11035 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
11037 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
11038 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
11039 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
11040 tls_sysv_suffix): New mode and mode attribute iterators.
11041 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
11042 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
11043 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
11044 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
11045 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
11048 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
11050 PR tree-optimization/36329
11051 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
11052 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
11053 * cgraphbuild.c (initialize_inline_failed): Use the latter
11054 macro in lieu of the former.
11055 * ipa-inline.c (cgraph_mark_inline): Likewise.
11056 (cgraph_decide_inlining_of_small_function): Likewise.
11057 (cgraph_decide_inlining): Likewise.
11058 (cgraph_decide_inlining_incrementally): Likewise.
11060 2008-05-26 Tristan Gingold <gingold@adacore.com>
11061 Anatoly Sokolov <aesok@post.ru>
11063 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
11064 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
11065 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
11066 optimization for 'avr6' architecture.
11068 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
11071 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
11073 2008-05-26 Richard Guenther <rguenther@suse.de>
11075 * tree-ssa-sccvn.c (expr_has_constants): Declare.
11076 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
11078 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
11080 PR middle-end/36253
11081 * caller-save.c (insert_restore): Verify alignment of spill space.
11082 (insert_save): Likewise.
11083 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
11084 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
11085 (STACK_SLOT_ALIGNMENT): Likewise.
11086 * function.c (LOCAL_ALIGNMENT): Removed.
11087 (get_stack_local_alignment): New.
11088 (assign_stack_local): Use it. Set alignment on stack slot.
11089 (assign_stack_temp_for_type): Use get_stack_local_alignment.
11090 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
11091 (STACK_SLOT_ALIGNMENT): New.
11092 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
11093 stack slot in XFmode.
11095 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
11097 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
11100 * config/i386/i386.md (allocate_stack_worker_64): Make sure
11101 argument operand in rax isn't removed.
11103 2008-05-26 Richard Guenther <rguenther@suse.de>
11105 PR middle-end/36300
11106 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
11107 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
11109 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11112 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
11114 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
11116 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
11117 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
11119 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
11121 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
11122 build a trampoline if we don't want one.
11123 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
11124 return zero for nested functions if we don't want a trampoline.
11126 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11128 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
11130 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
11133 * c.opt: Removed undocumented option '-lang-fortran'.
11134 * c-common.h: Removed global variable 'lang_fortran'.
11135 * c-opts.c (c_common_handle_option): Removed code to handle
11136 option '-lang-fortran'. Updated includes.
11137 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
11138 definition of '__GFORTRAN__'.
11139 (define__GNUC__): Reimplemented to use BASEVER and
11140 cpp_define_formatted.
11141 (builtin_define_with_value_n): Removed.
11142 * c-incpath.h: Renamed to ...
11143 * incpath.h: ... this.
11144 * c-incpath.c: Renamed to ...
11145 * incpath.c: ... this. Updated includes.
11146 * fix-header.c: Updated includes.
11147 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
11148 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
11149 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
11151 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
11153 * tree.h: Update the table of flags used on tree nodes.
11154 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
11155 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
11156 (FORCED_LABEL): Add access check.
11157 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
11158 (ASM_INPUT_P): Likewise.
11159 (ASM_VOLATILE_P): Likewise.
11160 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
11161 (OMP_SECTION_LAST): Access private_flag directly.
11162 (OMP_RETURN_NOWAIT): Likewise.
11163 (OMP_PARALLEL_COMBINED): Likewise.
11164 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
11165 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
11166 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
11167 deprecated_flag directly.
11169 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
11171 * final.c (frame_pointer_needed): Removed.
11172 * flags.h (frame_pointer_needed): Likewise.
11174 * function.h (rtl_data): Add frame_pointer_needed.
11175 (frame_pointer_needed): New.
11177 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
11179 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
11181 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
11183 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
11186 2008-05-25 Alan Modra <amodra@bigpond.net.au>
11188 * c-common.c (strip_array_types): Move function to..
11190 (get_inner_array_type): Delete.
11191 * c-common.h (strip_array_types): Move declaration to..
11193 (get_inner_array_type): Delete.
11194 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
11195 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
11196 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11197 * config/pa/pa.c (emit_move_sequence): Likewise.
11199 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
11201 * config/i386/i386.md (*sse_prologue_save_insn): Set length
11204 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
11206 * function.c: Include target hook for nonlocal_goto frame value.
11208 2008-05-24 Richard Guenther <rguenther@suse.de>
11210 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
11211 variable can be only accessed through a pointer or a union.
11213 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11215 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
11216 * doc/extend.texi: Likewise.
11218 2008-05-23 DJ Delorie <dj@redhat.com>
11220 * config/m32c/jump.md (untyped_call): Add.
11222 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
11223 for A24 to PSImode.
11224 (m32c_address_cost): Detail costs for indirect offsets.
11226 2008-05-23 Rafael Espindola <espindola@google.com>
11228 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
11229 if a node is a SUBREG.
11230 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
11233 2008-05-23 Paul Brook <paul@codesourcery.com>
11234 Carlos O'Donell <carlos@codesourcery.com>
11236 * doc/extend.texi: Clarify use of __attribute__((naked)).
11237 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11238 * target.h (gcc_target): Add allocate_stack_slots_for_args.
11239 * function.c (use_register_for_decl): Use
11240 targetm.calls.allocate_stack_slots_for_args.
11241 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
11242 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
11243 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
11245 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
11247 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
11249 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
11251 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
11252 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
11253 is only rounded once.
11255 2008-05-23 Richard Guenther <rguenther@suse.de>
11257 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
11259 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
11260 Jakub Jelinek <jakub@redhat.com>
11263 * configure.ac: Handle --enable-cld.
11264 * configure: Regenerated.
11265 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
11266 * config/i386/i386.h (struct machine_function): Add needs_cld field.
11267 (ix86_current_function_needs_cld): New define.
11268 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
11269 (cld): New isns pattern.
11270 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
11271 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
11272 * config/i386/i386.opt (mcld): New option.
11273 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
11274 TARGET_CLD and ix86_current_function_needs_cld.
11275 (override_options): Use -mcld by default for 32-bit code if
11278 * doc/install.texi (Options specification): Document --enable-cld.
11279 * doc/invoke.texi (Machine Dependent Options)
11280 [i386 and x86-64 Options]: Add -mcld option.
11281 (Intel 386 and AMD x86-64 Options): Document -mcld option.
11283 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
11284 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
11285 (return_in_memory_64): Likewise.
11286 (return_in_memory_ms_64): Likewise.
11288 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11290 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
11291 * builtins.c (fold_builtin_fpclassify): New.
11292 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
11293 * builtins.def (BUILT_IN_FPCLASSIFY): New.
11294 * c-common.c (handle_type_generic_attribute): Adjust to accept
11295 fixed arguments before an elipsis.
11296 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
11297 * doc/extend.texi: Document __builtin_fpclassify.
11299 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
11301 * omp-low.c (gate_expand_omp_ssa): Remove.
11302 (pass_expand_omp_ssa): Remove.
11303 (gate_expand_omp): Do not check for flag_openmp_ssa.
11304 * common.opt (-fopenmp-ssa): Remove.
11305 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
11307 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
11309 * config/sh/sh.opt (mfixed-range): New option.
11310 * config/sh/sh-protos.h (sh_fix_range): Declare.
11311 * config/sh/sh.c (sh_fix_range): New function.
11312 * config/sh/sh.h (sh_fixed_range_str): Declare.
11313 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
11315 * doc/invoke.texi (SH Options): Document -mfixed-range.
11317 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
11319 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
11320 it before the redeclaration.
11322 2008-05-22 Anatoly Sokolov <aesok@post.ru>
11324 * config/avr/avr.c (get_sequence_length): Add new function.
11325 (expand_prologue, expand_epilogue): Remove duplicate code.
11327 2008-05-22 Rafael Espindola <espindola@google.com>
11329 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
11332 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
11334 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
11335 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
11337 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
11338 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
11339 (vect_update_misalignment_for_peel): Likewise.
11340 (vector_alignment_reachable_p): Likewise.
11341 * tree-vect-transform.c (vectorizable_load): Likewise.
11342 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
11343 (get_vectype_for_scalar_type): Pass mode of scalar_type
11344 to UNITS_PER_SIMD_WORD.
11346 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
11347 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11348 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11349 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11350 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11352 2008-05-22 Ira Rosen <irar@il.ibm.com>
11354 PR tree-optimization/36293
11355 * tree-vect-transform.c (vect_transform_strided_load): Don't check
11356 if the first load must be skipped because of a gap.
11358 2008-05-22 Richard Guenther <rguenther@suse.de>
11360 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
11361 more cases of offset disambiguation that is possible if
11362 strict-aliasing rules apply.
11363 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
11364 for basic offset and type-based disambiguation.
11366 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11368 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
11369 ix86_expand_vector_set on V16QImode for SSE4.1.
11371 2008-05-21 Tom Tromey <tromey@redhat.com>
11373 * c.opt (Wimport): Mark as undocumented.
11374 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
11376 (Warning Options): Likewise.
11377 * doc/cppopts.texi: Don't mention -Wimport.
11379 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
11381 PR tree-optimization/36287
11382 PR tree-optimization/36286
11383 * lambda-code.c (build_access_matrix): Do not use the loop->num
11384 for computing the number of induction variables: use the loop depth
11387 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
11390 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
11391 option -f(no-)leading-underscore.
11393 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11395 * config/i386/i386.c (ix86_expand_vector_init_general): Use
11396 GET_MODE_NUNITS (mode).
11398 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
11400 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
11401 (-mmulhw): Add 464 to description.
11402 (-mdlmzb): Likewise.
11403 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
11404 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
11406 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
11407 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
11408 * config/rs6000/rs6000.md: Update comments for 464.
11410 2008-05-21 Janis Johnson <janis187@us.ibm.com>
11412 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
11414 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11416 * config/i386/sse.md (vec_extractv4sf): Removed.
11417 (vec_extractv2df): Likewise.
11418 (vec_extractv2di): Likewise.
11419 (vec_extractv4si): Likewise.
11420 (vec_extractv8hi): Likewise.
11421 (vec_extractv16qi): Likewise.
11422 (vec_extract<mode>): New.
11424 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11426 * config/i386/sse.md (vec_setv4sf): Removed.
11427 (vec_setv2df): Likewise.
11428 (vec_setv2di): Likewise.
11429 (vec_setv4si): Likewise.
11430 (vec_setv8hi): Likewise.
11431 (vec_setv16qi): Likewise.
11432 (vec_set<mode>): New.
11434 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11436 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
11437 goto for vec_concat and vec_interleave.
11439 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
11441 * config/i386/sse.md (vec_initv4sf): Removed.
11442 (vec_initv2df): Likewise.
11443 (vec_initv2di): Likewise.
11444 (vec_initv4si): Likewise.
11445 (vec_initv8hi): Likewise.
11446 (vec_initv16qi): Likewise.
11447 (vec_init<mode>): New.
11449 2008-05-21 Joseph Myers <joseph@codesourcery.com>
11451 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
11453 2008-05-21 Tom Tromey <tromey@redhat.com>
11455 * ggc-zone.c (lookup_page_table_if_allocated): New function.
11456 (zone_find_object_offset): Likewise.
11457 (gt_ggc_m_S): Likewise.
11458 (highest_bit): Likewise.
11459 * ggc-page.c (gt_ggc_m_S): New function.
11460 * stringpool.c (string_stack): Remove.
11461 (init_stringpool): Update.
11462 (ggc_alloc_string): Use ggc_alloc.
11463 (maybe_delete_ident): New function.
11464 (ggc_purge_stringpool): Likewise.
11465 (gt_ggc_m_S): Remove.
11466 * ggc-common.c (ggc_protect_identifiers): New global.
11467 (ggc_mark_roots): Call ggc_purge_stringpool. Use
11468 ggc_protect_identifiers.
11469 * ggc.h (ggc_protect_identifiers): Declare.
11470 (gt_ggc_m_S): Update.
11471 (ggc_purge_stringpool): Declare.
11472 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
11473 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
11475 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
11477 2008-05-21 David S. Miller <davem@davemloft.net>
11479 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
11482 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
11484 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
11487 2008-05-20 David Daney <ddaney@avtrex.com>
11489 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
11490 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
11491 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11492 UNSPEC_UPDATE_GOT_VERSION): Renumber.
11493 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
11494 (atomic_hiqi_op): New define_code_iterator.
11495 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
11496 mips_expand_compare_and_swap_12.
11497 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
11498 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
11499 (sync_<optab><mode>, sync_old_<optab><mode>,
11500 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
11501 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
11502 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
11503 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
11504 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
11505 (test_and_set_12): New insn.
11506 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
11507 sync_new_<optab><mode>, sync_old_nand<mode>,
11508 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
11509 clobber to operand 0 for SI and DI mode insns.
11510 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
11511 mips_gen_fn_4): New typedefs.
11512 (mips_gen_fn_ptrs): Define new union type.
11513 (mips_expand_compare_and_swap_12): Remove declaration.
11514 (mips_expand_atomic_qihi): Declare function.
11515 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
11516 (mips_expand_atomic_qihi): ... this. Use new generator function
11518 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
11519 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
11520 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
11521 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
11522 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
11523 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
11524 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
11525 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
11526 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
11527 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
11530 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
11532 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
11535 2008-05-20 Anatoly Sokolov <aesok@post.ru>
11537 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
11538 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
11539 (avr_attribute_table): Add 'OS_main' function attribute.
11540 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
11541 functions with 'OS_main' attribute.
11543 2008-05-20 Richard Guenther <rguenther@suse.de>
11545 PR tree-optimization/35204
11546 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
11547 helper, split out from ...
11548 (DFS): ... here. Make the DFS walk non-recursive.
11550 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
11551 Jan Sjodin <jan.sjodin@amd.com>
11553 PR tree-optimization/36181
11554 * tree-parloops.c (loop_has_vector_phi_nodes): New.
11555 (parallelize_loops): Don't parallelize when the loop has vector
11558 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
11559 Sebastian Pop <sebastian.pop@amd.com>
11561 * tree-loop-linear.c (gather_interchange_stats): Look in the access
11562 matrix, and never look at the tree representation of the memory
11564 (linear_transform_loops): Computes parameters and access matrices.
11565 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
11567 (access_matrix_get_index_for_parameter): New.
11568 * tree-data-ref.h (struct access_matrix): New.
11569 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
11570 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
11571 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
11572 am_vector_index_for_loop): New.
11573 (struct data_reference): Add field access_matrix.
11574 (DR_ACCESS_MATRIX): New.
11575 (compute_data_dependences_for_loop): Update declaration.
11576 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
11577 * lambda.h (lambda_vector_vec_p): Declared.
11578 * lambda-code.c: Depend on pointer-set.h.
11579 (lambda_collect_parameters_from_af, lambda_collect_parameters,
11580 av_for_af_base, av_for_af, build_access_matrix,
11581 lambda_compute_access_matrices): New.
11582 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
11584 2008-05-20 Joseph Myers <joseph@codesourcery.com>
11586 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
11587 $SOURCEDIR/include.
11589 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
11590 Sebastian Pop <sebastian.pop@amd.com>
11592 PR tree-optimization/36206
11593 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
11595 (instantiate_scev_1): Rename flags to fold_conversions.
11596 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
11597 outeside instantiation_loop.
11598 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
11599 (evolution_function_is_affine_or_constant_p): Removed.
11600 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
11602 (analyze_siv_subscript): Pass in the loop nest number.
11603 Call evolution_function_is_affine_in_loop instead of
11604 evolution_function_is_affine_p.
11605 (analyze_overlapping_iterations): Pass in the loop nest number.
11607 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
11608 Sebastian Pop <sebastian.pop@amd.com>
11610 PR tree-optimization/36206
11611 * tree-chrec.h (chrec_fold_op): New.
11612 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
11615 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
11617 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
11619 (remove_duplicates): Do not set inode on non-inode systems.
11622 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
11624 * config.gcc (tm_file): Update comments about relative pathnames.
11626 2008-05-20 Richard Guenther <rguenther@suse.de>
11628 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
11629 * tree-ssa-sccvn.c (process_scc): Likewise.
11630 * tree-ssa-sink.c (execute_sink_code): Likewise.
11631 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
11632 * tree-vrp.c (process_assert_insertions): Likewise.
11633 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
11634 (perform_tree_ssa_dce): Likewise.
11635 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
11636 (dump_dominator_optimization_stats): Likewise.
11637 * tree-vectorizer.c (vectorize_loops): Likewise.
11639 2008-05-20 Richard Guenther <rguenther@suse.de>
11641 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
11643 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
11645 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
11646 (ix86_i386elf_return_in_memory): Likewise.
11647 (ix86_i386interix_return_in_memory): Likewise.
11648 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
11649 (SUBTARGET_RETURN_IN_MEMORY): New.
11650 * config/i386/i386elf.h: Likewise.
11651 * config/i386/ptx4-i.h: Likewise.
11652 * config/i386/sol2-10.h: Likewise.
11653 * config/i386/sysv4.h: Likewise.
11654 * config/i386/vx-common.h: Likewise.
11655 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
11656 * config/i386/i386.c (ix86_return_in_memory): Made static and
11657 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
11658 (ix86_i386elf_return_in_memory): Removed.
11659 (ix86_i386interix_return_in_memory): Removed.
11660 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
11661 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
11663 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
11665 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
11667 2008-05-19 Xinliang David Li <davidxl@google.com>
11669 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
11671 * common.opt: Ditto.
11672 * doc/invoke.texi: Ditto.
11674 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
11676 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
11677 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
11679 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
11681 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
11682 sizes of operand array from 8/4 to 4/2.
11683 (ix86_expand_vector_init_general): Change size of operand array
11684 from 32 to 16. Remove op0, op1 and half_mode.
11686 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
11688 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
11689 (ix86_expand_vector_init_interleave): Likewise.
11690 (ix86_expand_vector_init_general): Use them. Assert
11691 word_mode == SImode when n_words == 4.
11693 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
11695 * config/i386/i386.c (ix86_secondary_reload): New static function.
11696 (TARGET_SECONDARY_RELOAD): New define.
11697 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
11698 * config/i386/i386.md (reload_outqi): Remove.
11700 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11702 PR middle-end/35509
11703 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
11704 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
11705 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
11706 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
11707 (fold_builtin_1): Likewise.
11708 * builtins.def (BUILT_IN_ISINF_SIGN): New.
11709 c-common.c (check_builtin_function_arguments): Handle
11710 BUILT_IN_ISINF_SIGN.
11711 * doc/extend.texi: Document __builtin_isinf_sign.
11712 * fold-const.c (operand_equal_p): Handle COND_EXPR.
11714 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
11716 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
11717 EH cleanup at the end of the pass, search for those that have been
11718 turned into forwarder blocks and do the cleanup on their successor.
11720 2008-05-18 Richard Guenther <rguenther@suse.de>
11722 * tree-cfg.c (verify_gimple_expr): Allow conversions from
11723 pointers to sizetype and vice versa.
11725 2008-05-18 Xinliang David Li <davidxl@google.com>
11727 * gcc/tree-ssa-dce.c: Coding style fix.
11728 (check_pow): Documentation comment.
11729 (check_log): Documenation comment. Coding style fix.
11730 (is_unnecessary_except_errno_call): Ditto.
11731 (gen_conditions_for_pow): Ditto.
11732 (gen_conditions_for_log): Ditto.
11733 (gen_shrink_wrap_conditions): Ditto.
11734 (shrink_wrap_one_built_in_calls): Ditto.
11735 * gcc/doc/invoke.texi: Better documentation string.
11736 * ChangeLog: Fix wrong change log entries from
11737 May 17 checkin on function call DCE.
11739 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
11741 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
11743 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
11745 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
11746 * df-problems.c (simulation routines): Fixed block comment to
11747 properly say how to add forwards scanning functions.
11749 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
11751 * tree-inline.c (setup_one_parameter): Remove dead code.
11753 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
11755 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
11756 a BIT_AND_EXPR only for an INTEGER_TYPE.
11758 2008-05-17 Xinliang David Li <davidxl@google.com>
11760 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
11761 (check_pow, check_log, is_unnecessary_except_errno_call): New
11762 functions to check for eliminating math functions that are pure
11763 except for setting errno.
11764 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
11765 general condition expressions for shrink-wrapping pow/log calls.
11766 (gen_shrink_wrap_conditions): Ditto.
11767 (shrink_wrap_one_built_in_call): Ditto.
11768 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
11769 (mark_operand_necessary): If debugging, output if OP is necessary.
11770 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
11772 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
11774 * gcc/common.opt: New user flag -ftree-builtin-dce.
11775 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
11777 2008-05-16 David S. Miller <davem@davemloft.net>
11779 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
11780 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
11782 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
11785 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
11787 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11789 * ifcvt.c (dead_or_predicable): Rename
11790 df_simulate_one_insn_backwards to df_simulate_one_insn.
11791 * recog.c (peephole2_optimize): Ditto.
11792 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
11794 * df.h: Rename df_simulate_one_insn_backwards to
11795 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
11796 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
11797 scanning of defs and uses.
11798 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
11799 (df_simulate_one_insn_forwards): Removed.
11801 2008-05-16 Doug Kwan <dougkwan@google.com>
11803 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
11805 (real_from_string): Handle NaNs and Inf as approriate.
11807 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
11809 * doc/gty.texi (Source Files Containing Type Information): Note
11810 that headers should appear first in the gtfiles list.
11812 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11814 * tree.def (COND_EXEC): Properly documented this code.
11816 2008-05-16 Diego Novillo <dnovillo@google.com>
11818 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
11819 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
11822 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11824 * tree-ssa-dse (max_stmt_uid): Removed.
11825 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
11826 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
11827 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
11828 * function.h (cfun.last_stmt_uid): New field.
11829 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
11830 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
11832 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
11833 (create_stmt_ann): Initialize the ann->uid field.
11834 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
11836 * tree-flow.h (renumber_gimple_stmt_uids): New function.
11838 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
11840 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
11841 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
11842 (init_empty_tree_cfg): Call it.
11844 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11846 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
11849 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
11851 * doc/invoke.text (-fdump-tree-*-verbose): New option.
11852 * tree-dump.c (dump_options): New verbose option.
11853 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
11855 * tree-pass.h (TDF_VERBOSE): New dump flag.
11856 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
11857 (tree-flow.h): Added include.
11858 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
11860 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
11862 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
11864 From Jie Zhang <jie.zhang@analog.com>
11865 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11866 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
11867 mcpu=bf561-none and mcpu=bf561-0.2.
11868 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11869 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
11870 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11871 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
11872 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
11873 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
11874 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
11876 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
11877 (cputype_selected): Remove.
11878 (bfin_handle_option): Don't use cputype_selected.
11879 (override_options): When no mcpu option, enable all workarounds.
11880 Don't use bfin_workarounds.
11881 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
11883 (DEFAULT_CPU_TYPE): Don't define.
11885 2008-05-16 Richard Guenther <rguenther@suse.de>
11887 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
11888 on deletion of the last stmt.
11890 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
11892 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
11893 V8HImode for SSE2 and V16QImode for SSE4.1.
11895 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
11897 * cgraph.h (compute_inline_parameters): Made public.
11898 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
11899 variable_generate_summary, function_write_summary,
11900 variable_write_summary, variable_read_summary. Added generate_summary,
11901 write_summary, read_summary.
11902 * cgraphunit.c (cgraph_process_new_functions): Changed call from
11903 pass_ipa_inline.function_generate_summary, to
11904 compute_inline_parameters.
11905 * ipa-inline.c (compute_inline_parameters): Made public and added
11907 (compute_inline_parameters_for_current): New function.
11908 (pass_inline_param): Now calls compute_inline_parameters_for_current.
11909 (inline_generate_summary): Removed parameter and made to loop over
11911 (pass_ipa_inline): Updated for new IPA_PASS structure.
11912 * passes.c (execute_ipa_summary_passes): Now is called once per
11913 pass rather than once per node*pass.
11915 2008-05-15 Anatoly Sokolov <aesok@post.ru>
11917 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
11918 avr_have_mul_p, avr_asm_only_p): Remove variables.
11919 (avr_override_options): Remove initialization of removed variables.
11920 (avr_file_start): Convert removed variables to fields of
11921 'struct base_arch_s *avr_current_arch'.
11922 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
11923 (AVR_HAVE_MUL): (Ditto.).
11924 (AVR_HAVE_MOVW): (Ditto.).
11925 (AVR_HAVE_LPMX): (Ditto.).
11926 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
11927 avr_asm_only_p): Remove declaration.
11929 2008-05-15 Diego Novillo <dnovillo@google.com>
11931 * config/arm/arm.c (arm_return_in_memory): Fix return type.
11932 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
11934 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
11936 PR middle-end/36194
11937 * combine.c (check_conversion): Rename back to check_promoted_subreg.
11938 Don't call record_truncated_value from here.
11939 (record_truncated_value): Turn it into a for_each_rtx callback.
11940 (record_truncated_values): New function.
11941 (combine_instructions): Call note_uses with record_truncated_values.
11942 Change name of check_conversion to check_promoted_subreg.
11944 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11946 * doc/sourcebuild.texi: Document support for torture tests.
11948 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
11950 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
11951 to alternative 4 of operand 2.
11953 2008-05-15 Richard Guenther <rguenther@suse.de>
11955 * tree-pass.h (current_pass): Declare.
11956 (get_pass_for_id): Likewise.
11957 * passes.c (passes_by_id, passes_by_id_size): New globals.
11958 (set_pass_for_id): New function.
11959 (get_pass_for_id): Likewise.
11960 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
11961 (execute_function_todo): Flush per function statistics.
11962 * toplev.c (compile_file): Init statistics.
11963 (general_init): Do early statistics initialization.
11964 (finalize): Finish statistics.
11965 * statistics.h (statistics_early_init): Declare.
11966 (statistics_init): Likewise.
11967 (statistics_fini): Likewise.
11968 (statistics_fini_pass): Likewise.
11969 (statistics_counter_event): Likewise.
11970 (statistics_histogram_event): Likewise.
11971 * statistics.c: New file.
11972 * Makefile.in (OBJS-common): Add statistics.o.
11973 (statistics.o): Add dependencies.
11974 * doc/invoke.texi (-fdump-statistics): Document.
11976 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
11977 (insert): Likewise.
11978 (execute_pre): Use statistics_counter_event.
11979 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
11980 (substitute_and_fold): Increment it. Use statistics_counter_event.
11982 2008-05-15 Diego Novillo <dnovillo@google.com>
11984 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
11986 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
11987 * tree-ssa-alias.c (new_type_alias): Remove references to
11988 sub-variables from comment.
11989 * tree-ssa-operands.c (swap_tree_operands): Likewise.
11991 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
11993 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
11994 attribute to 1 only for insertps alternative.
11996 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
11998 * config/bfin/bfin.md (loadbytes): New pattern.
11999 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12000 (bfin_init_builtins): Initialize it.
12001 (bdesc_1arg): Add it.
12003 2008-05-15 Sa Liu <saliu@de.ibm.com>
12005 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12006 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12007 * testsuite/lib/target-supports.exp: Add
12008 check_effective_target_fortran_integer_16.
12010 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
12012 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12013 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
12014 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
12015 (TARGET_RETURN_IN_MEMORY): Define.
12017 2008-05-15 Richard Guenther <rguenther@suse.de>
12019 PR middle-end/36244
12020 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
12021 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
12022 represent unmodifiable vars.
12024 2008-05-15 Richard Guenther <rguenther@suse.de>
12026 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
12027 INDIRECT_REF and TARGET_MEM_REF.
12028 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12031 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
12032 H.J. Lu <hongjiu.lu@intel.com>
12034 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
12035 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
12036 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
12037 insn alternatives. Add missing alternatives.
12038 (*vec_concatv2di_rex64_sse4_1): Likewise.
12039 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
12040 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
12041 Require TARGET_SSE.
12043 2008-05-15 Richard Guenther <rguenther@suse.de>
12045 PR tree-optimization/36009
12046 PR tree-optimization/36204
12047 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
12048 (determine_invariantness_stmt): Record the loop a store is
12049 always executed in.
12050 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
12053 2008-05-15 Richard Guenther <rguenther@suse.de>
12055 PR tree-optimization/34330
12056 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
12057 through the pointer will alias the SMT.
12059 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
12061 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
12063 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
12065 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
12067 2008-05-14 Michael Meissner <michael.meissner@amd.com>
12068 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12070 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
12071 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
12072 (vashl_optab): New optab for vector/vector shifts.
12073 (vashr_optab): Ditto.
12074 (vlshr_optab): Ditto.
12075 (vrotl_optab): Ditto.
12076 (vrotr_optab): Ditto.
12077 (optab_subtype): New enum for optab_for_tree_code call.
12078 (optab_for_tree_code): Add enum optab_subtype argument.
12080 * optabs.c (optab_for_tree_code): Take an additional argument to
12081 distinguish between a vector shift by a scalar and vector shift by
12082 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
12083 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
12084 vector shift by a vector.
12085 (expand_widen_pattern_expr): Pass additional argument to
12086 optab_for_tree_code.
12088 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
12089 vrotl_optab, vrotr_optab.
12091 * expr.c (expand_expr_real_1): Update calls to
12092 optab_for_tree_code to distinguish between vector shifted by a
12093 scalar and vector shifted by a vector.
12094 * tree-vectorizer.c (supportable_widening_operation): Ditto.
12095 (supportable_narrowing_operation): Ditto.
12096 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
12097 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
12098 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
12099 (vect_create_epilog_for_reduction): Ditto.
12100 (vectorizable_reduction): Ditto.
12101 (vectorizable_operation): Ditto.
12102 (vect_strided_store_supported): Ditto.
12103 (vect_strided_load_supported): Ditto.
12104 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12105 * expmed.c (expand_shift): Ditto.
12107 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
12109 (ashr@var{m}3): Ditto.
12110 (vashl@var{m}3): Document new vector/vector shift standard name.
12111 (vashr@var{m}3): Ditto.
12112 (vlshr@var{m}3): Ditto.
12113 (vrotl@var{m}3): Ditto.
12114 (vrotr@var{m}3): Ditto.
12116 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
12117 (PPERM_INVERT): Ditto.
12118 (PPERM_REVERSE): Ditto.
12119 (PPERM_REV_INV): Ditto.
12120 (PPERM_ZERO): Ditto.
12121 (PPERM_ONES): Ditto.
12122 (PPERM_SIGN): Ditto.
12123 (PPERM_INV_SIGN): Ditto.
12124 (PPERM_SRC1): Ditto.
12125 (PPERM_SRC2): Ditto.
12127 * config/i386/sse.md (mulv2di3): Add SSE5 support.
12128 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
12129 allows a memory operand to be the value being added, and split it
12130 to improve vectorization.
12131 (sse5_pmacsdqh_mem): Ditto.
12132 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
12133 (sse5_mulv2div2di3_high): Ditto.
12134 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
12135 (vec_pack_trunc_v4si): Ditto.
12136 (vec_pack_trunc_v2di): Ditto.
12137 (sse5_pcmov_<mode>): Remove code that tried to use use
12138 andps/andnps instead of pcmov.
12139 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
12140 pmacsdqh instructions.
12141 (vec_widen_smult_lo_v4si): Ditto.
12143 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
12144 (PPERM_INVERT): Ditto.
12145 (PPERM_REVERSE): Ditto.
12146 (PPERM_REV_INV): Ditto.
12147 (PPERM_ZERO): Ditto.
12148 (PPERM_ONES): Ditto.
12149 (PPERM_SIGN): Ditto.
12150 (PPERM_INV_SIGN): Ditto.
12151 (PPERM_SRC1): Ditto.
12152 (PPERM_SRC2): Ditto.
12153 (ix86_expand_sse_movcc): Move the SSE5 test after the if
12155 (ix86_expand_int_vcond): If SSE5 generate all possible integer
12157 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
12158 says ignore whether the last reference is a memory operand.
12160 2008-05-14 Michael Meissner <michael.meissner@amd.com>
12161 Paolo Bonzini <bonzini at gnu dot org>
12163 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
12166 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
12167 (vlshr<mode>3): Rename from vlshr<mode>3.
12168 (vashr<mode>3): Rename from vashr<mode>3.
12169 (mulv4sf3): Change the names of vector shift patterns.
12173 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
12176 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
12201 * config/spu/spu.md (v): New iterator macro to add v for vector types.
12202 (floatunssidf2_internal): Change vector/vector shift names.
12203 (floatunsdidf2_internal): Ditto.
12210 (vashl<mode>3): Rename from ashl<mode>3.
12211 (vashr<mode>3): Rename from ashr<mode>3.
12212 (vlshr<mode>3): Rename from lshr<mode>3.
12213 (vrotl<mode>3): Rename from rotl<mode>3.
12215 2008-05-14 Michael Meissner <michael.meissner@amd.com>
12218 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
12219 multiply gives the wrong value when doing widening multiplies.
12220 (vec_widen_smult_lo_v4si): Ditto.
12222 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
12224 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
12225 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
12226 emit_library_call_value.
12227 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
12228 * tree.h (ECF_LIBCALL_BLOCK): Removed.
12229 * calls.c (initialize_argument_information, precompute_arguments,
12230 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
12231 (precompute_arguments): Removed flags parameter.
12232 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
12234 2008-05-14 Richard Guenther <rguenther@suse.de>
12236 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
12237 Make sure to register the store if the use is a PHI_NODE.
12239 2008-05-14 Olivier Hainque <hainque@adacore.com>
12241 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
12242 memory if the component is to be referenced in BLKmode according
12243 to get_inner_reference.
12245 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
12247 * calls.c (emit_library_call_value_1): Restore code clearing
12248 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
12250 2008-05-14 Olivier Hainque <hainque@adacore.com>
12251 Nicolas Roche <roche@adacore.com>
12253 * configure.ac: Add support for a "gcc_subdir" variable in
12254 config-lang.in, to denote a subdirectory where the language/GCC
12255 integration files are to be found.
12256 * configure: Regenerate.
12258 2008-05-14 Ira Rosen <irar@il.ibm.com>
12260 PR tree-optimization/36098
12261 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
12262 value for the first load in the group in case of a gap.
12263 (vect_build_slp_tree): Check that there are no gaps in loads.
12265 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
12267 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
12268 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
12269 expand_copysign_bit, ): Change call to emit_no_conflict_block to
12270 emit_insn and remove unneeded code to construct extra args.
12271 (emit_no_conflict_block): Removed.
12272 * optabls.h: (emit_no_conflict_block): Removed.
12273 * cse.c (cse_extended_basic_block): Remove search for
12274 REG_NO_CONFLICT note.
12275 * global.c: Removed incorrect comment added in revision 117.
12276 * expr.c (convert_move): Change call to emit_no_conflict_block to
12278 * recog.c: Change comments so that they do not mention
12280 * local_alloc.c (combine_regs): Removed last parameter.
12281 (no_conflict_p): Removed.
12282 (block_alloc): Removed note, no_conflict_combined_regno and set
12283 local vars. Removed all code to process REG_NO_CONFLICT blocks.
12284 (combine_regs): Removed already_dead and code to look for
12285 REG_NO_CONFLICT notes.
12286 * lower_subreg (remove_retval_note): Removed code to look for
12287 REG_NO_CONFLICT block.
12288 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
12289 (resolve_clobber): Remove code to process libcalls that have
12290 REG_NO_CONFLICT notes.
12291 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
12293 * combine.c (can_combine_p, distribute_notes): Removed
12294 REG_NO_CONFLICT case.
12295 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
12297 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
12298 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
12300 * reg-notes.def (NO_CONFLICT): Removed.
12302 2008-05-14 David S. Miller <davem@davemloft.net>
12304 * config/sparc/sparc.c (sparc_profile_hook): If
12305 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
12306 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
12307 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12309 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
12311 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
12313 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
12316 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
12317 and op1 expansion before vector concat to have less live pseudos.
12319 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
12321 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
12322 ix86_expand_vector_set if supported.
12324 2008-05-13 Diego Novillo <dnovillo@google.com>
12325 Kenneth Zadeck <zadeck@naturalbridge.com>
12327 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
12329 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
12330 phinodes_print_statistics, init_ssanames, fini_ssanames,
12331 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
12332 release_ssa_name, release_defs, replace_ssa_name_symbol,
12333 ssanames_print_statistics): Move ...
12334 * tree-flow.h: ... here.
12335 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
12336 Use FN instead of cfun.
12337 (make_ssa_name_fn): Rename from make_ssa_name.
12338 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
12339 * tree-flow-inline.h (make_ssa_name): Move from
12340 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
12341 * omp-low.c (expand_omp_parallel):
12342 * tree-flow-inline.h (redirect_edge_var_map_result):
12343 * tree-ssa.c (init_tree_ssa): Add argument FN.
12344 Use it instead of cfun. Update all users.
12346 2008-05-13 Tom Tromey <tromey@redhat.com>
12348 PR preprocessor/22168:
12349 * doc/cpp.texi (Top): Update menu.
12350 (Alternatives to Wrapper #ifndef): New node.
12351 (Other Directives): Document deprecation.
12352 (Obsolete Features): Remove menu.
12353 (Assertions): Merge node into Obsolete Features.
12354 (Obsolete once-only headers): Move earlier; rename to Alternatives
12355 to Wrapper #ifndef.
12356 * doc/cppopts.texi: Update.
12357 * c.opt (Wdeprecated): Enable for C and ObjC.
12358 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
12359 (C++ Dialect Options): Move -Wno-deprecated from here to...
12360 (Warning Options): ... here.
12362 2008-05-13 Richard Guenther <rguenther@suse.de>
12364 PR middle-end/36227
12365 * fold-const.c (fold_sign_changed_comparison): Do not allow
12366 changes in pointer-ness.
12368 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
12371 * config/sh/sh.c (sh_expand_prologue): Don't clear
12372 RTX_FRAME_RELATED_P for push insns.
12374 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
12376 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
12378 2008-05-12 Anatoly Sokolov <aesok@post.ru>
12380 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
12381 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
12382 Use 'machine->is_leaf' instead of 'leaf_func_p'.
12384 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
12386 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
12387 (*vec_concatv4sf_sse): This.
12388 (*sse2_concatv2si): Renamed to ...
12389 (*vec_concatv2si_sse2): This.
12390 (*sse1_concatv2si): Renamed to ...
12391 (*vec_concatv2si_sse): This.
12392 (*vec_concatv2di_rex): Renamed to ...
12393 (*vec_concatv2di_rex64): This.
12394 (*vec_concatv2si_sse4_1): New.
12395 (*vec_concatv2di_rex64_sse4_1): Likewise.
12397 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
12399 PR rtl-optimization/36111
12400 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
12401 that was created for swappable operands.
12403 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
12406 * Makefile.in: Substitute GNATMAKE and GNATBIND.
12407 * configure.ac: Add call to ACX_PROG_GNAT.
12409 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
12411 * optc-gen.awk: Fix comment typo.
12413 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
12415 * pretty-print.c (pp_integer_with_precision): Use
12416 HOST_LONG_LONG_FORMAT.
12418 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
12420 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
12422 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
12424 * config/i386/i386.c (bdesc_ptest): Removed.
12425 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
12426 (bdesc_args): Add __builtin_ia32_ptestz128,
12427 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
12428 (ix86_init_mmx_sse_builtins): Updated.
12429 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
12430 (ix86_expand_builtin): Updated.
12432 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
12434 * tree-cfg.c (valid_fixed_convert_types_p): New function.
12435 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
12437 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
12439 * value-prof.c (interesting_stringop_to_profile): Do not
12440 return early for BUILT_IN_MEMPCPY.
12442 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
12444 * calls.c (expand_call): Don't use callgraph to increase
12445 preferred_stack_boundary.
12447 * cgraph.h (cgraph_rtl_info): Use unsigned on
12448 preferred_incoming_stack_boundary.
12450 * final.c (rest_of_clean_state): Use unsigned on
12451 preferred_stack_boundary.
12453 2008-05-09 Tom Tromey <tromey@redhat.com>
12455 PR preprocessor/22231:
12456 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
12459 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
12461 PR tree-optimization/36129
12462 * tree-ssa-ccp.c: Include value-prof.h.
12463 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
12464 built-in function was folded to a constant.
12465 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
12467 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
12468 Sebastian Pop <sebastian.pop@amd.com>
12470 * tree-scalar-evolution.c: Document instantiate_scev.
12471 (instantiate_parameters_1): Renamed instantiate_scev_1.
12472 Don't use the same loop for instantiation_loop and evolution_loop.
12473 (instantiate_scev): New.
12474 (instantiate_parameters): Moved...
12475 (resolve_mixers): Update call to instantiate_scev_1 to pass the
12476 same loop twice. Maintains the semantics for this function.
12477 * tree-scalar-evolution.h (instantiate_scev): Declare.
12478 (instantiate_parameters): ...here. Now static inline.
12479 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
12480 instead of resolve_mixers.
12482 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
12484 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
12486 2008-05-09 Tomas Bily <tbily@suse.cz>
12488 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
12489 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
12490 * tree-ssa-structalias.c (get_constraint_for): Likewise.
12491 * c-common.c (c_common_truthvalue_conversion): Likewise.
12492 * tree-object-size.c (compute_object_offset): Likewise.
12493 * tree-inline.c (estimate_num_insns_1): Likewise.
12494 * varasm.c (const_hash_1, compare_constant, copy_constant)
12495 (compute_reloc_for_constant, output_addressed_constants)
12496 (initializer_constant_valid_p): Likewise.
12497 * c-omp.c (check_omp_for_incr_expr): Likewise.
12498 * gimplify.c (gimplify_expr): Likewise.
12499 * c-typeck.c (c_finish_return): Likewise.
12500 * tree-vectorizer.c (supportable_widening_operation)
12501 (supportable_narrowing_operation): Likewise.
12502 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
12503 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
12504 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
12505 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
12506 (descr_info_loc): Likewise.
12507 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
12508 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
12509 (fold_unary): Likewise.
12510 * builtins.c (get_pointer_alignment): Likewise.
12511 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
12512 (instantiate_parameters_1): Likewise.
12513 * tree.c (expr_align, stabilize_reference): Likewise.
12514 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
12515 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
12516 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
12517 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12518 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
12519 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
12521 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
12522 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
12523 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
12524 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
12525 (forward_propagate_comparison)
12526 (tree_ssa_forward_propagate_single_use_vars): Likewise.
12527 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
12528 * emit-rtl.c (component_ref_for_mem_expr)
12529 (set_mem_attributes_minus_bitpos): Likewise.
12530 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
12531 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
12533 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
12534 (build_function_call, pointer_diff, build_compound_expr)
12535 (c_finish_return): Likewise.
12536 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
12537 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
12539 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
12540 * expr.c (is_aligning_offset): Likewise.
12541 * tree-ssa-alias.c (is_escape_site): Likewise.
12542 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
12543 (check_all_va_list_escapes): Likewise.
12544 * tree-ssa-loop-ivopts.c (determine_base_object)
12545 (determine_common_wider_type): Likewise.
12546 * dojump.c (do_jump): Likewise.
12547 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
12548 * tree-gimple.c (is_gimple_cast): Likewise.
12549 * fold-const.c (decode_field_reference, )
12550 (fold_sign_changed_comparison, fold_unary, fold_comparison)
12551 (fold_binary): Likewise.
12552 * tree-ssa-alias-warnings.c (find_alias_site_helper)
12553 (already_warned_in_frontend_p): Likewise.
12554 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
12555 * tree.c (really_constant_p, get_unwidened): Likewise.
12556 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
12557 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
12558 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
12560 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
12562 (CONVERT_EXPR_P): Define.
12563 (CASE_CONVERT): Define.
12565 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
12567 PR middle-end/36117
12568 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
12569 (delete_unmarked_insns): When deleting a call, call
12570 delete_unreachable_blocks.
12571 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
12572 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
12574 2008-05-08 Richard Guenther <rguenther@suse.de>
12576 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
12577 (-ftree-salias): Likewise.
12578 (salias-max-implicit-fields): Remove param documentation.
12579 (salias-max-array-elements): Likewise.
12580 * tree-pass.h (pass_create_structure_vars): Remove.
12581 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
12582 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
12583 * tree-ssa-alias.c (create_structure_vars): Remove.
12584 (gate_structure_vars): Likewise.
12585 (pass_create_structure_vars): Likewise.
12586 (gate_build_alias): Likewise.
12587 (pass_build_alias): Adjust to run always and dump the function.
12588 * common.opt (ftree-salias): Hide.
12589 * passes.c (init_optimization_passes): Remove
12590 pass_create_structure_vars, adjust comment.
12591 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
12592 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
12593 * opts.c (decode_options): Do not set flag_tree_salias.
12594 (common_handle_option): Add OPT_ftree_salias to the backward
12595 compatibility section.
12597 2008-05-08 Richard Guenther <rguenther@suse.de>
12599 * tree-flow-inline.h (var_can_have_subvars): Move ...
12600 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
12601 * tree-flow.h (var_can_have_subvars): Remove.
12602 (push_fields_onto_fieldstack): Remove.
12603 (sort_fieldstack): Likewise.
12604 (struct fieldoff): Move ...
12605 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
12606 alias_set and base_for_components fields.
12607 (sort_fieldstack): Make static.
12608 (push_fields_onto_fieldstack): Likewise. Remove code that
12609 handles anything but RECORD_TYPEs. Remove alias_set and
12610 base_for_components handling.
12611 (create_variable_info_for): Adjust.
12613 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
12615 * common.opt (Wframe-larger-than=): Shorten the help message
12617 * doc/invoke.texi (Wframe-larger-than=): Add more description.
12619 2008-05-08 Rafael Espindola <espindola@google.com>
12621 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
12623 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
12624 trap and that both operands are gimple values.
12625 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
12626 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
12629 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
12631 * read-rtl.c (join_c_conditions): Return the first string if the
12632 two strings are equal.
12634 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
12636 * gensupport.h (pred_data): Add a "num_codes" field.
12637 (add_predicate_code): Declare.
12638 * gensupport.c (add_predicate_code): New function.
12639 (std_pred_table): Add an "allows_const_p" field.
12640 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
12641 Remove the (incomplete) list of such codes from the codes field.
12642 (init_predicate_table): Use add_predicate_code. Add all
12643 RTX_CONST_OBJs if allows_const_p is true.
12644 * genrecog.c (process_define_predicate): Use add_predicate_code.
12646 2008-05-08 David Daney <ddaney@avtrex.com>
12647 Richard Sandiford <rsandifo@nildram.co.uk>
12649 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
12650 special case of constant zero operands.
12651 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
12652 old and new values. Special case constant zero values.
12653 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
12655 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
12656 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
12658 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
12661 * simplify-rtx.c (simplify_plus_minus): Create CONST of
12662 similar RTX_CONST_OBJ before CONST_INT.
12664 2008-05-08 Steve Ellcey <sje@cup.hp.com>
12666 * stmt.c (expand_stack_restore): Change sa mode if needed.
12668 2008-05-08 Richard Guenther <rguenther@suse.de>
12670 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
12671 return type to bool.
12672 (ix86_sol10_return_in_memory): Likewise.
12673 (ix86_i386elf_return_in_memory): Likewise.
12674 (ix86_i386interix_return_in_memory): Likewise.
12675 * config/i386/i386.c (ix86_return_in_memory): Likewise.
12676 (ix86_sol10_return_in_memory): Likewise.
12677 (ix86_i386elf_return_in_memory): Likewise.
12678 (ix86_i386interix_return_in_memory): Likewise.
12680 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
12683 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
12685 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
12686 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
12689 2008-05-08 Richard Guenther <rguenther@suse.de>
12691 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
12692 * tree-data-ref.h (struct dr_alias): Remove subvars field.
12693 (DR_SUBVARS): Remove.
12694 * tree-dfa.c (dump_subvars_for): Remove.
12695 (debug_subvars_for): Likewise.
12696 (dump_variable): Do not dump subvars.
12697 (remove_referenced_var): Do not remove subvars.
12698 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
12699 (lookup_subvars_for_var): Remove.
12700 (get_subvars_for_var): Likewise.
12701 (get_subvars_at): Likewise.
12702 (get_first_overlapping_subvar): Likewise.
12703 (overlap_subvar): Likewise.
12704 * tree-flow.h (subvar_t): Remove.
12705 (struct var_ann_d): Remove subvars field.
12706 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
12707 argument. Remove special handling of SFTs.
12708 (compute_tag_properties): Likewise.
12709 (set_initial_properties): Likewise.
12710 (compute_call_clobbered): Likewise.
12711 (count_mem_refs): Likewise.
12712 (compute_memory_partitions): Likewise.
12713 (compute_flow_insensitive_aliasing): Likewise.
12714 (setup_pointers_and_addressables): Likewise.
12715 (new_type_alias): Likewise.
12716 (struct used_part): Remove.
12717 (used_portions): Likewise.
12718 (struct used_part_map): Likewise.
12719 (used_part_map_eq): Likewise.
12720 (used_part_map_hash): Likewise.
12721 (free_used_part_map): Likewise.
12722 (up_lookup): Likewise.
12723 (up_insert): Likewise.
12724 (get_or_create_used_part_for): Likewise.
12725 (create_sft): Likewise.
12726 (create_overlap_variables_for): Likewise.
12727 (find_used_portions): Likewise.
12728 (create_structure_vars): Likewise.
12729 * tree.def (STRUCT_FIELD_TAG): Remove.
12730 * tree.h (MTAG_P): Adjust.
12731 (struct tree_memory_tag): Remove base_for_components and
12732 unpartitionable flags.
12733 (struct tree_struct_field_tag): Remove.
12734 (SFT_PARENT_VAR): Likewise.
12735 (SFT_OFFSET): Likewise.
12736 (SFT_SIZE): Likewise.
12737 (SFT_NONADDRESSABLE_P): Likewise.
12738 (SFT_ALIAS_SET): Likewise.
12739 (SFT_UNPARTITIONABLE_P): Likewise.
12740 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
12741 (union tree_node): Remove sft field.
12742 * alias.c (get_alias_set): Remove special handling of SFTs.
12743 * print-tree.c (print_node): Remove handling of SFTs.
12744 * tree-dump.c (dequeue_and_dump): Likewise.
12745 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
12746 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
12747 * tree-predcom.c (set_alias_info): Do not set subvars.
12748 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
12749 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
12750 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
12751 (add_vars_for_offset): Remove.
12752 (add_virtual_operand): Remove special handling of SFTs.
12753 (add_call_clobber_ops): Likewise.
12754 (add_call_read_ops): Likewise.
12755 (get_asm_expr_operands): Likewise.
12756 (get_modify_stmt_operands): Likewise.
12757 (get_expr_operands): Likewise.
12758 (add_to_addressable_set): Likewise.
12759 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
12760 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
12761 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
12762 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
12763 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
12764 (tree_node_structure): Likewise.
12765 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
12767 (find_what_p_points_to): Likewise.
12769 2008-05-08 Sa Liu <saliu@de.ibm.com>
12771 * config/spu/spu.md: Fixed subti3 pattern.
12773 2008-05-08 Richard Guenther <rguenther@suse.de>
12775 PR middle-end/36154
12776 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12777 sure to create a representative for trailing arrays for PTA.
12779 2008-05-08 Richard Guenther <rguenther@suse.de>
12781 PR middle-end/36172
12782 * fold-const.c (operand_equal_p): Two objects which types
12783 differ in pointerness are not equal.
12785 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
12787 * calls.c (compute_argument_block_size): Add argument tree fndecl.
12788 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
12789 (emit_library_call_value_1): Add new variable fndecl initialized by
12790 NULL_TREE. It should be the decl type of orgfun, but this information
12791 seems not to be available here, so it uses the default calling abi.
12792 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
12793 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
12794 by TARGET_RETURN_IN_MEMORY.
12795 * config/i386/i386-interix.h: Likewise.
12796 * config/i386/i386.h: Likewise.
12797 * config/i386/i386elf.h: Likewise.
12798 * config/i386/ptx4-i.h: Likewise.
12799 * config/i386/sol2-10.h: Likewise.
12800 * config/i386/sysv4.h: Likewise.
12801 * config/i386/vx-common.h: Likewise.
12802 * config/cris/cris.h: Removed #if 0 clause.
12803 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
12804 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
12806 (ix86_sol10_return_in_memory): Likewise.
12807 (ix86_i386elf_return_in_memory): New.
12808 (ix86_i386interix_return_in_memory): New.
12809 * config/mt/mt-protos.h (mt_return_in_memory): New.
12810 * config/mt/mt.c: Likewise.
12811 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
12812 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
12813 * config/bfin/bfin.h: Likewise.
12814 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
12816 * config/bfin/bfin.c: Likewise.
12817 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
12818 * config/alpha/unicosmk.h: Likewise.
12819 * config/i386/cygming.h: Likewise.
12820 * config/iq2000/iq2000.h: Likewise.
12821 * config/mips/mips.h: Likewise.
12822 * config/mn10300/mn10300.h: Likewise.
12823 * config/rs6000/rs6000.h: Likewise.
12824 * config/score/score.h: Likewise.
12825 * config/spu/spu.h: Likewise.
12826 * config/v850/v850.h: Likewise.
12827 * defaults.h: Likewise.
12828 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
12829 * expr.c (emit_block_move): Adjust use of
12830 OUTGOING_REG_PARM_STACK_SPACE.
12831 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
12832 OUTGOING_REG_PARM_STACK_SPACE.
12833 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
12835 2008-05-08 Jakub Jelinek <jakub@redhat.com>
12837 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
12838 on OMP_RETURN for OMP_FOR.
12841 * dwarf2out.c (dw_expand_expr, common_check): Removed.
12842 (fortran_common): New function.
12843 (gen_variable_die): Call fortran_common instead of common_check,
12844 adjust for it returning tree instead of rtx. Formatting.
12846 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
12850 * see.c (see_copy_insn): Copy new pure const attributes for new call.
12851 * c-decl.c (merge_decls): Ditto.
12852 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
12853 to RTL_CONST_OR_PURE_CALL_P.
12854 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
12855 Initialized DECL_LOOPING_CONST_PURE.
12856 (process_call_operands): Set tree_side_effects properly.
12857 * tree.h (TREE_READONLY_DECL_P): Removed.
12858 (DECL_IS_PURE): Renamed to DECL_PURE_P.
12859 (DECL_LOOPING_OR_CONST_P): New macro.
12860 (struct tree_function_decl): Added looping_const_or_pure_p.
12861 (ECF_*) Renumbered.
12862 (ECF_LOOPING_OR_CONST_P): New macro.
12863 * rtlanal.c (pure_const_p): Removed.
12864 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
12865 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
12866 to RTL_CONST_CALL_P.
12867 * ipa-pure-const.c (pure_const_state_e): Added looping field.
12868 (check_decl, check_tree, check_call, scan_function): Initialize
12870 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
12871 (static_execute): Set looping true for recursive functions.
12872 Undo setting state to IPA_NEITHER for recursive functions.
12873 * cse.c (cse_insn):
12874 * ifcvt.c (noce_can_store_speculate_p): Changed
12875 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
12876 RTL_CONST_OR_PURE_CALL_P.
12877 * dse.c (scan_insn): Ditto.
12878 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
12879 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
12880 RTL_CONST_OR_PURE_CALL_P.
12881 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
12882 pure_call_p to RTL_CONST_CALL_P.
12883 * gimplify.c (gimplify_call_expr): Clear side effects for
12884 non-looping pure and constant calls.
12885 * calls.c (emit_call_1): Set rtl flags from ecf flags.
12886 (flags_from_decl_or_type): Set ecf flags from decl flags.
12887 (initialize_argument_information): Turn off
12888 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
12889 Change const to pure if callee_copies is true rather than just
12891 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
12892 way of marking pure calls.
12893 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
12894 Remove hack that was supposed to fix pr7335 and remove old
12895 way of marking pure calls.
12896 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
12897 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
12898 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
12899 RTL_CONST_OR_PURE_CALL_P.
12900 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
12901 * loop-invariant.c (find_exits, find_invariant_bb): Changed
12902 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
12903 * sched-deps.c (schedule_analyze): Ditto.
12904 * rtl.h (struct rtx_def): Use call field, unchanging field, and
12905 return_val field of calls to represent pure and const function info.
12906 (CONST_OR_PURE_CALL_P): Deleted macro.
12907 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
12908 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
12909 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
12911 * tree-optimize.c (execute_fixup_cfg): Added test for
12912 ECF_LOOPING_CONST_OR_PURE.
12913 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
12915 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
12916 effects for looping pure or const calls.
12917 (verify_gimple_expr): Added verification code.
12918 * config/alpha/alpha.c (alpha_legitimize_address,
12919 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
12921 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
12922 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
12923 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
12924 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
12925 RTL_CONST_OR_PURE_CALL_P.
12926 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
12927 and const calls to be deleted.
12929 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
12932 * config/i386/mmx.md (mmx_subv2sf3): New expander.
12933 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
12934 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
12935 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
12936 to handle nonimmediate operands.
12937 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
12938 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
12939 to handle nonimmediate operands.
12940 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
12941 (mmx_pmulhrwv4hi3): New expander. Use
12942 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12943 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
12944 (sse2_umulv1siv1di3): New expander. Use
12945 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12946 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
12947 (mmx_eq<mode>3): New expander. Use
12948 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12949 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
12950 (mmx_uavgv8qi3): New expander. Use
12951 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12952 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
12953 (mmx_uavgv4hi3): New expander. Use
12954 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12956 * config/i386/sse.md
12957 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
12958 to handle nonimmediate operands.
12959 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
12960 to handle nonimmediate operands.
12961 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
12962 to handle nonimmediate operands.
12963 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
12964 to handle nonimmediate operands.
12965 (sse2_unpckhpd_exp): New expander. Use
12966 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12967 (sse2_unpcklpd_exp): New expander. Use
12968 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12969 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
12970 to handle nonimmediate operands.
12971 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
12972 to handle nonimmediate operands.
12973 (*sse2_<plusminus_insn><mode>3): Rename from
12974 sse2_<plusminus_insn><mode>3 insn pattern.
12975 (sse2_<plusminus_insn><mode>3): New expander. Use
12976 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12977 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
12978 (sse2_umulv2siv2di3): New expander. Use
12979 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12980 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
12981 (sse4_1_mulv2siv2di3): New expander. Use
12982 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12983 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
12984 (sse2_pmaddwd): New expander. Use
12985 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12986 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
12987 (sse2_eq<mode>3): New expander. Use
12988 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12989 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
12990 (sse4_1_eqv2di3): New expander. Use
12991 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12992 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
12993 (sse2_uavgv16qi3): New expander. Use
12994 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12995 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
12996 (sse2_uavgv16qi3): New expander. Use
12997 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
12998 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
12999 (sse2_uavgv8hi3): New expander. Use
13000 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13001 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13002 (ssse3_pmulhrswv8hi3): New expander. Use
13003 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13004 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13005 (ssse3_pmulhrswv4hi3): New expander. Use
13006 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13008 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13009 (<sse>_vmmul<mode>3): Ditto.
13010 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13012 (ssse3_pmaddubsw128): Use register_operand for operand 1.
13013 (ssse3_pmaddubsw): Ditto.
13015 * config/i386/i386.c (struct_builtin_description)
13016 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
13017 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
13018 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
13019 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
13020 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
13021 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
13022 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
13023 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
13024 (ix86_fixup_binary_operands): Assert that src1
13025 and src2 must have the same mode when swapped.
13026 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
13027 and ix86_binary_operator_ok. Do not force operands in registers
13030 2008-05-07 Jan Hubicka <jh@suse.cz>
13032 * cgraph.c (dump_cgraph_node): Update.
13033 * cgraph.h (cgraph_local_info): Break out inline summary.
13034 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
13036 * ipa-inline (inline_summary): New accestor function.
13037 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
13038 cgraph_decide_inlining, compute_inline_parameters): Update.
13039 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
13041 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13043 Cleanup ColdFire scheduling support and add V4 pipeline model.
13045 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
13046 (define_attr cpu): Add cfv4 value.
13047 (define_attr type, define_attr type1): Merge into a single 'type'
13048 attribute. Update all uses.
13049 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
13050 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
13052 (define_attr opx_mem, define_attr opy_mem): Remove.
13053 (define_attr op_mem): Clean up, update comment.
13054 (define_attr size): Use specific values instead of general int.
13055 (define_attr guess, define_attr split): Remove. Update all uses.
13056 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
13057 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
13058 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
13059 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
13060 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
13061 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
13062 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
13063 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
13064 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
13065 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
13066 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
13067 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
13068 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
13069 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
13070 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
13071 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
13072 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
13073 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
13074 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
13075 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
13076 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
13077 Update or set attributes.
13078 (stack_tie): New fake instruction.
13080 * config/m68k/m68k.h (TUNE_CFV4): New macro.
13081 (m68k_sched_attr_size): Update declaration.
13082 (m68k_sched_attr_type2): Remove.
13083 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
13084 Declare new bypass predicates.
13086 * config/m68k/m68k.c (m68k_sched_issue_rate,
13087 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
13089 (TARGET_SCHED_ISSUE_RATE,
13090 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
13091 (override_options): Handle scheduling for ColdFire V4 core.
13092 (m68k_expand_prologue): Emit stack_tie.
13093 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
13094 'OP_TYPE_FPN'. Update all uses.
13095 (sched_guess_p): Remove.
13096 (sched_address_type): Handle symbolic addresses.
13097 (sched_get_operand): New static function.
13098 (sched_operand_type): Merge into sched_attr_op_type.
13099 (sched_attr_op_type): Handle FP registers, handle quick constants,
13101 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
13102 (m68k_sched_attr_size): Update. Move logic to ...
13103 (sched_get_attr_size_int): New static function.
13104 (sched_get_opxy_mem_type): New static function.
13105 (m68k_sched_attr_op_mem): Update.
13106 (m68k_sched_attr_type2): Remove.
13107 (sched_cfv4_bypass_data): New static variable.
13108 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
13109 (m68k_sched_issue_rate): Implement scheduler hook.
13110 (struct _sched_ib: enabled_p): New field.
13111 (m68k_sched_variable_issue): Update. Handle V4.
13112 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
13113 sched_dump_class_func_t, sched_dump_split_class,
13114 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
13115 sched_dump_dfa_class, m68k_sched_dump): Remove.
13116 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
13118 (m68k_sched_init_global): Remove statisctics dumping, introduce
13119 sanity check that all instructions have pipeline reservations. Handle
13121 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
13122 Handle ColdFire V4 core.
13123 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
13124 New static functions.
13125 (m68k_sched_address_bypass_p): New bypass predicate.
13126 (sched_get_indexed_address_scale): New static function.
13127 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
13129 * cf.md: Update comments.
13130 (define_attr type2): Remove. Use 'type' attribute instead.
13132 (cf_ib): Rename to cfv123_ib. Update all uses.
13133 (cf_oep): Rename to cfv123_oep. Update all uses.
13134 (cf_chr): Rename to cfv123_chr. Update all uses.
13135 (cf_mem): Rename to cfv123_mem. Update all uses.
13136 (cf_mac): Move to more appropriate place.
13137 (cfv123_guess): New automaton and cpu_unit.
13138 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
13139 Update uses of 'size' attribute. Handle before reload scheduling.
13140 (cfv123_guess): New dummy reservation for unhandled instructions.
13141 (cfv4_*): Pipeline description of ColdFire V4 core.
13142 (ignore): New reservation to handle 'ignore' type.
13144 2008-05-07 Ian Lance Taylor <iant@google.com>
13146 PR middle-end/36013
13147 * gimplify.c (find_single_pointer_decl_1): Don't look through
13149 (find_single_pointer_decl): Adjust comments.
13151 2008-05-07 Jakub Jelinek <jakub@redhat.com>
13153 PR middle-end/36137
13154 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
13155 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
13157 PR middle-end/36106
13158 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
13159 integral type rather than floating point, then VIEW_CONVERT_EXPR
13160 to the floating point type.
13162 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
13164 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
13165 TFmode op0 to register.
13167 2008-05-07 Alan Modra <amodra@bigpond.net.au>
13169 * c-decl.c (grokdeclarator): Comment typo.
13171 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
13173 * tree-flow.h: Remove prototype for computed_goto_p.
13174 * tree-cfg.c (computed_goto_p): Make static.
13176 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
13179 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
13180 (contains_aligned_value_p): This. Handle _Decimal128.
13181 (ix86_function_arg_boundary): Only align _Decimal128 to its
13182 natural boundary and handle it properly.
13184 2008-05-06 Martin Jambor <mjambor@suse.cz>
13186 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
13187 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
13188 (ipcp_method_set_orig_node): Removed.
13189 (ipcp_cval_get_cvalue_type): Removed.
13190 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
13191 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
13192 (ipcp_cval_set_cvalue_type): Removed.
13193 (ipcp_cval_get_cvalue): Removed.
13194 (ipcp_cval_set_cvalue): Removed.
13195 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
13196 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
13197 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
13198 (ipcp_cval_meet): Renamed to ipa_lattice_meet
13199 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
13200 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
13201 (ipcp_get_ith_lattice): Changed parameters.
13202 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
13203 (ipcp_lattice_from_jfunc): Changed parameters.
13204 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
13205 (ipcp_method_cval_print): Added temporary variable info.
13206 (ipcp_redirect): Removed already unused local variable caller.
13207 (ipcp_redirect): New temporary variable orig_callee_info
13208 (ipcp_redirect): Removed newly unused local variable callee.
13209 (ipcp_redirect): Removed (a bit confusing) local variable type.
13210 (ipcp_insert_stage): Added local variable info.
13211 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
13213 (ipcp_formal_create): Removed.
13214 (ipcp_method_cval_set): Removed.
13215 (ipcp_propagate_stage): Renamed lattice variables.
13216 (ipcp_method_cval_set_cvalue_type): Removed.
13217 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
13218 (ipcp_print_all_lattices): Changed printed strings to refer to
13219 lattices rather than cvals.
13220 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
13221 (ipcp_propagate_const): Changed formal parameters.
13222 (build_const_val): Changed formal parameters.
13223 (ipcp_insert_stage): Removed useless variable cvalue
13224 (build_const_val): Changed formal parameters.
13225 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
13226 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
13227 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
13228 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
13229 (ipcp_print_func_profile_counts): Changed string from "method" to
13231 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
13232 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
13233 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
13234 (ipcp_structures_print): Renamed to ipcp_print_all_structures
13235 (ipcp_profile_print): Renamed to ipcp_print_profile_data
13236 (ipcp_lat_is_const): Changed parameters and made inline.
13237 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
13238 (ipcp_redirect): Renamed to ipcp_need_redirect_p
13239 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
13240 the predicate condition directly
13241 (ipcp_propagate_stage): Added local variable args. Removed local
13242 variable callee. (Both are mere code simplifications.)
13243 (ipcp_method_dont_insert_const): Renamed to
13244 ipcp_node_not_modifiable_p.
13245 (ipcp_node_not_modifiable_p): Made inline.
13246 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
13247 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
13248 (ipcp_print_all_lattices): Removed variable cvalue
13249 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
13252 2008-05-06 Olivier Hainque <hainque@adacore.com>
13254 * tree-sra.c (try_instantiate_multiple_fields): Early return
13255 if field has POINTER_TYPE.
13257 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
13259 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
13260 by using 'q' specifier for instruction.
13261 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
13263 2008-05-06 Anatoly Sokolov <aesok@post.ru>
13265 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
13266 Change mode of zero_extract from QImode to HImode.
13267 (sign bit tests peepholes): (Ditto.).
13269 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
13271 * config/i386/mmx.md: Remove double backslashes from asm templates.
13272 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
13273 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
13274 to handle nonimmediate operands.
13275 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
13276 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
13277 to handle nonimmediate operands.
13278 (*mmx_<code>v2sf3_finite): New insn pattern.
13279 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
13280 (mmx_<code>v2sf3): New expander. Use
13281 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13282 (mmx_<plusminus_insn><mode>3): New expander. Use
13283 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13284 (*mmx_<plusminus_insn><mode>3): New insn pattern.
13285 (mmx_add<mode>3): Removed.
13286 (mmx_ssadd<mode>3): Ditto.
13287 (mmx_usadd<mode>3): Ditto.
13288 (mmx_sub<mode>3): Ditto.
13289 (mmx_sssub<mode>3): Ditto.
13290 (mmx_ussub<mode>3): Ditto.
13291 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
13292 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
13293 to handle nonimmediate operands.
13294 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
13296 (mmx_smulv4hi3_highpart): New expander. Use
13297 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13298 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
13300 (mmx_umulv4hi3_highpart): New expander. Use
13301 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13302 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
13303 (mmx_<code>v4hi3): New expander. Use
13304 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13305 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
13306 (mmx_<code>v8qi3): New expander. Use
13307 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13308 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
13309 (mmx_<code><mode>3): New expander. Use
13310 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13312 2008-05-05 Jan Hubicka <jh@suse.cz>
13314 PR tree-optimization/36118
13315 * passes.c (pass_init_dump_file): Fix dump header.
13317 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
13319 PR middle-end/36141
13320 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
13321 VCE for function decls.
13323 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
13325 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
13327 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
13329 * config/i386/i386.md (sat_plusminus): New.
13330 (plusminus_insn): Likewise.
13331 (plusminus_mnemonic): Likewise.
13333 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
13334 (*<addsub><mode>3_cc_overflow): Renamed to ...
13335 (*<plusminus_insn><mode>3_cc_overflow): This.
13336 (*<addsub>si3_zext_cc_overflow): Renamed to ...
13337 (*<plusminus_insn>si3_zext_cc_overflow): This.
13339 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
13340 (<plusminus_insn><mode>3): This.
13341 (*<addsub><mode>3): Renamed to ...
13342 (*<plusminus_insn><mode>3): This.
13343 (<sse>_vm<addsub><mode>3): Renamed to ...
13344 (<sse>_vm<plusminus_insn><mode>3): This.
13345 (sse3_h<addsub>v4sf3): Renamed to ...
13346 (sse3_h<plusminus_insn>v4sf3): This.
13347 (sse3_h<addsub>v2df3): Renamed to ...
13348 (sse3_h<plusminus_insn>v2df3): This.
13349 (<plusminus_insn><mode>3): New.
13350 (*<plusminus_insn><mode>3): Likewise.
13351 (sse2_<plusminus_insn><mode>3): Likewise.
13352 (add<mode>): Removed.
13353 (*add<mode>3): Likewise.
13354 (sse2_ssadd<mode>3): Likewise.
13355 (sse2_usadd<mode>3): Likewise.
13356 (sub<mode>3): Likewise.
13357 (*sub<mode>3): Likewise.
13358 (sse2_sssub<mode>3): Likewise.
13359 (sse2_ussub<mode>3): Likewise.
13361 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
13363 * gthr-single.h: Add in required interface elements as per gthr.h.
13364 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
13365 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
13366 Generalize UNUSED macro.
13367 (__gthread_once): Add.
13368 (__gthread_key_create): Add.
13369 (__gthread_key_delete): Add.
13370 (__gthread_getspecific): Add.
13371 (__gthread_setspecific): Add.
13373 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
13375 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
13376 the same size types for the indirect reference on the rhs, then
13379 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
13381 * config/i386/i386.md
13382 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
13383 one insn template instead of template series.
13384 (*xordi_1_rex64): Ditto.
13385 (*xordi_2_rex64): Ditto.
13387 2008-05-05 Ira Rosen <irar@il.ibm.com>
13389 PR tree-optimization/36119
13390 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
13393 2008-06-04 Jan Hubicka <jh@suse.cz>
13395 tree-optimization/36100
13396 * tree-pass.h (pass_O0_always_inline): Declare.
13397 * ipa-inline.c (inline_transform): Remove dead code.
13398 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
13399 pass_O0_always_inline): New.
13400 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
13402 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
13404 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
13405 mnemonic in this_param move for TARGET_64BIT.
13407 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
13409 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
13410 (*strmovsi_rex_1): Ditto.
13411 (*strsetsi_1): Ditto.
13412 (*strsetsi_rex_1): Ditto.
13414 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
13415 adddicc expanders using SWI mode iterator.
13417 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
13420 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
13423 2008-05-04 David S. Miller <davem@davemloft.net>
13425 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
13426 (sparc*-*-linux*): Use linux.h in tm_file.
13427 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
13428 compiler defaulting to 32-bit.
13429 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
13431 * config/sparc/linux.h: Remove definitions now obtained
13432 properly from linux.h
13433 * config/sparc/linux64.h: Likewise.
13434 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
13435 don't want this setting for 32-bit builds in a biarch compiler.
13436 * doc/install.texi: Add sparc-linux to list of targets
13437 supporting --enable-targets=all.
13439 2008-05-03 Andrew Pinski <pinskia@gmail.com>
13441 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
13443 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
13445 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
13446 after V4SI_FTYPE_V8HI.
13447 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
13448 case V4SI_FTYPE_V2DF.
13450 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
13452 * doc/invoke.texi (max-flow-memory-locations): Removed.
13453 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
13455 2008-05-03 Richard Guenther <rguenther@suse.de>
13457 PR middle-end/34973
13458 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
13460 2008-05-02 David S. Miller <davem@davemloft.net>
13462 * config.gcc (need_64bit_hwint): Document libcpp dependency.
13464 2008-05-02 Simon Baldwin <simonb@google.com>
13467 * c-common.h (warn_array_subscript_range): Removed.
13468 * c-common.c (warn_array_subscript_range): Ditto.
13469 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
13470 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
13472 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
13474 * config/i386/i386.c (ix86_special_builtin_type): New.
13475 (bdesc_special_args): Likewise.
13476 (ix86_expand_special_args_builtin): Likewise.
13477 (ix86_init_mmx_sse_builtins): Updated.
13478 (ix86_expand_builtin): Updated.
13479 (ix86_expand_store_builtin): Removed.
13480 (ix86_expand_unop_builtin): Likewise.
13482 * config/i386/mm3dnow.h (__v2sf): Moved to ...
13483 * config/i386/mmintrin.h (__v2sf): Here.
13485 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
13487 (_mm_loadl_pi): Likewise.
13488 (_mm_storeh_pi): Replace __v2si with __v2sf.
13489 (_mm_storel_pi): Likewise.
13491 * doc/extend.texi: Correct __builtin_ia32_loadhps,
13492 __builtin_ia32_loadlps, __builtin_ia32_storehps,
13493 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
13494 __builtin_ia32_loadlpd.
13496 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
13498 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
13499 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
13500 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
13501 (ix86_init_mmx_sse_builtins): Updated.
13502 (ix86_expand_args_builtin): Likewise.
13503 (ix86_expand_builtin): Likewise.
13504 (ix86_expand_unop1_builtin): Renamed to ...
13505 (ix86_expand_unop_vec_merge_builtin): This.
13507 2008-05-01 Jan Hubicka <jh@suse.cz>
13510 * ipa-inline.c (inline_generate_summary): Make static.
13511 (inline_transform): Do not call inlining at -O0; make static.
13512 * passes.c (execute_todo): Add sanity check.
13513 (execute_one_ipa_transform_pass): Execute proper flags.
13515 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
13517 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
13518 (DECL_NONADDRESSABLE_P): Likewise.
13519 * alias.c (record_component_aliases): Fix comment.
13521 2008-05-01 Simon Baldwin <simonb@google.com>
13523 * c-common.h (warn_array_subscript_range): New function.
13524 * c-common.c (warn_array_subscript_range): Ditto.
13525 * tree-vrp.c (check_array_ref): Corrected code to agree with
13526 comment, ignoring only arrays of size 0 or size 1.
13527 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
13529 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
13531 * config/i386/i386.c (ix86_builtin_type): Replace
13532 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
13533 (bdesc_args): Updated.
13534 (ix86_init_mmx_sse_builtins): Likewise.
13535 (ix86_expand_args_builtin): Likewise.
13537 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
13540 * doc/extend.texi: Correct __builtin_ia32_palignr.
13542 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
13545 * config/i386/i386.c (bdesc_crc32): Removed.
13546 (ix86_expand_crc32): Likewise.
13547 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
13548 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
13549 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
13550 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
13551 UINT_FTYPE_UINT_UCHAR.
13552 (bdesc_args): Updated. Add crc32 builtins.
13553 (ix86_init_mmx_sse_builtins): Updated.
13554 (ix86_expand_args_builtin): Updated to support subreg.
13556 * doc/extend.texi: Correct __builtin_ia32_crc32di.
13558 2008-05-01 Jan Hubicka <jh@suse.cz>
13560 * tree-pass.h (opt_pass): Add IPA_PASS.
13561 (varpool_node, cgraph_node): Forward declare.
13562 (ipa_opt_pass): Define.
13563 (pass_ipa_inline): Turn into ipa_opt_pass.
13564 (pass_apply_inline): Remove.
13565 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
13566 (apply_inline): Turn into ....
13567 (inline_transform): ... this one.
13568 (inline_generate_summary): New function.
13569 (pass_apply_inline): Remove.
13570 * function.h (ipa_opt_pass): Forward declare structure; typedef;
13572 (struct function): Add ipa_transforms_to_apply.
13573 * passes.c (register_one_dump_file): Work on IPA_PASS.
13574 (init_optimization_passes): Remove pass_inline_parameters and
13576 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
13577 (execute_one_pass) ... here; apply transforms when possible.
13578 (add_ipa_transform_pass, execute_ipa_summary_asses,
13579 execute_one_ipa_transform_pass): New.
13580 (execute_ipa_pass_list): Update for IPA_PASS type.
13582 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
13584 * config/i386/i386.c (ix86_builtin_type): Add
13585 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
13586 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
13587 (bdesc_args): Add SSE4a builtins.
13588 (ix86_init_mmx_sse_builtins): Updated.
13589 (ix86_expand_args_builtin): Likewise.
13590 (ix86_expand_builtin): Likewise.
13592 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
13594 * config/i386/i386.c (ix86_builtin_type): Add
13595 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
13596 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
13597 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
13598 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
13599 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
13600 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
13601 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
13602 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
13603 and DI_FTYPE_DI_DI_INT.
13604 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
13605 (ix86_init_mmx_sse_builtins): Updated.
13606 (ix86_expand_args_builtin): Likewise.
13607 (ix86_expand_builtin): Likewise.
13608 (ix86_expand_binop_imm_builtin): Removed.
13610 * doc/extend.texi: Correct __builtin_ia32_palignr128.
13612 2008-04-30 Richard Guenther <rguenther@suse.de>
13614 PR tree-optimization/32921
13615 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
13617 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
13619 * config/arm/arm.c (arm_unwind_emit): Use
13620 crtl->all_throwers_are_sibcalls instead of
13621 cfun->all_throwers_are_sibcalls.
13622 (arm_output_fn_unwind): Likewise.
13623 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
13624 instead of cfun->uses_pic_offset_table.
13625 (frv_expand_prologue): Likewise.
13626 (frv_frame_pointer_required): Likewise.
13627 (frv_expand_fdpic_call): Likewise.
13628 (frv_emit_movsi): Likewise.
13629 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
13630 cfun->returns_pcc_struct instead of
13631 current_function_returns_pcc_struct.
13632 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
13633 instead of cfun->calls_eh_return.
13634 (m32c_pushm_popm): Likewise.
13635 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
13636 "extern" declaration.
13638 2008-04-30 Richard Guenther <rguenther@suse.de>
13640 PR tree-optimization/21636
13641 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
13643 (evaluate_stmt): Print the likely value.
13644 (ccp_visit_stmt): Avoid excessive vertical spacing.
13646 2008-04-30 Rafael Espindola <espindola@google.com>
13648 * builtins.c (fold_call_expr): Return realret.
13649 * tree-ssa-threadedge.c
13650 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
13651 __builtin_object_size.
13653 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
13655 * gcc.c (wrapper_string): New variable.
13656 (insert_wrapper): New function.
13657 (execute): New option -wrapper.
13658 * doc/invoke.texi (Overall Options): New driver option -wrapper.
13660 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
13662 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
13663 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
13664 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
13666 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
13667 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
13668 config/rs6000/e500crtres64gprctr.asm,
13669 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
13670 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
13671 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
13672 config/rs6000/e500crtsav64gprctr.asm,
13673 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
13674 config/rs6000/e500crtsavg64gprctr.asm: New files.
13675 * config/rs6000/t-ppccomm: Add build rules for new files.
13676 (LIB2FUNCS_STATIC_EXTRA): Add new files.
13677 * config/rs6000/t-netbsd: Add build rules for new files.
13678 (LIB2FUNCS_STATIC_EXTRA): New variable.
13679 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
13680 (CRTSAVRES_DEFAULT_SPEC): Likewise.
13681 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
13683 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
13685 * config/i386/i386.c (ix86_builtin_type): Add
13686 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
13687 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
13688 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
13689 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
13690 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
13691 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
13692 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
13693 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
13694 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
13695 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
13696 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
13697 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
13698 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
13699 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
13700 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
13701 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
13702 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
13703 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
13704 V1DI_FTYPE_V2SI_V2SI.
13705 (bdesc_2arg): Moved to ...
13706 (bdesc_args): Here.
13707 (ix86_init_mmx_sse_builtins): Updated.
13708 (ix86_expand_args_builtin): Updated. Take a pointer
13709 to const struct builtin_description. Handle comparison
13711 (ix86_expand_sse_compare): Take a new argument for swapping operands.
13712 (ix86_expand_builtin): Updated.
13714 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
13715 (ssse3_pmaddubsw128): This.
13716 (ssse3_pmaddubswv4hi3): Renamed to ...
13717 (ssse3_pmaddubsw): This.
13719 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
13720 (__builtin_ia32_packssdw128): Likewise.
13721 (__builtin_ia32_packuswb128): Likewise.
13722 (__builtin_ia32_pmaddubsw): Likewise.
13723 (__builtin_ia32_pmaddubsw128): Likewise.
13725 2008-04-30 Richard Guenther <rguenther@suse.de>
13727 PR tree-optimization/14847
13728 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
13729 (recognize_bits_test): Use it.
13730 (recognize_single_bit_test): Likewise.
13732 2008-04-30 Martin Jambor <mjambor@suse.cz>
13734 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
13735 instead of setting number of formal parameters to zero.
13736 (ipcp_init_stage): Do not set the number of actual parameters to zero
13738 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
13739 which are called with variable number of arguments.
13740 (ipcp_insert_stage): Explicitely skipping all nodes which are
13741 called with variable number of arguments.
13742 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
13743 number of parameters.
13745 * ipa-prop.h (struct ipa_node_params): Added flag
13746 called_with_var_arguments
13747 (ipa_set_param_count): Added. Changed sole setter to use it.
13748 (ipa_get_param_count): Added. All readers of param_count
13749 converted to use it instead.
13750 (ipa_set_called_with_variable_arg): Added.
13751 (ipa_is_called_with_var_arguments): Added.
13752 (ipa_get_ith_param): Added. All readers of param_decls converted
13754 (ipa_set_cs_argument_count): Added, sole writer to argument_count
13756 (ipa_get_cs_argument_count): Added, all readers of argument_count
13758 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
13761 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
13762 (struct ipcp_lattice): Renamed cval_type to type
13763 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
13765 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
13766 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
13767 (ipcp_insert_stage): Changed the type of variable cvalue to tree
13768 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
13769 (build_const_val): Changed the type of parameter cvalue to tree
13770 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
13771 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
13773 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
13776 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
13777 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
13778 (ipa_add_method): Renamed to ipa_push_func_to_list
13779 (ipa_remove_method): Renamed to ipa_pop_func_from_list
13780 (ipa_callsite_param_count): Removed.
13781 (ipa_callsite_param_count_set): Removed.
13782 (ipa_callsite_param): Removed.
13783 (ipa_callsite_callee): Removed.
13784 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
13785 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
13786 (ipa_method_formal_count): Removed.
13787 (ipa_method_formal_count_set): Removed.
13788 (ipa_method_get_tree): Removed.
13789 (ipa_method_tree_map_create): Removed.
13790 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
13791 (ipa_create_param_decls_array): Creates the array itself
13792 (ipa_create_param_decls_array): Temporary variable info instead of
13793 a few dereferences.
13794 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
13795 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
13796 (get_type): Removed.
13797 (ipa_jf_get_info_type): Removed.
13798 (ipa_node_create): Renamed to ipa_create_node_params
13799 (ipa_free): Renamed to ipa_free_all_node_params
13800 (ipa_nodes_create): Renamed to ipa_create_all_node_params
13801 (ipa_edges_create): Renamed to ipa_create_all_edge_args
13802 (ipa_edges_free): Renamed to ipa_free_all_edge_args
13803 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
13804 (ipa_free_all_node_params): Deallocation to jump_functions moved to
13805 ipa_free_all_edge_args
13806 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
13807 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
13808 (ipa_create_methodlist_node): Removed.
13809 (ipa_methodlist_method): Removed.
13810 (ipa_methodlist_method_set): Removed.
13811 (ipa_methodlist_next_method): Removed.
13812 (ipa_methodlist_next_method_set): Removed.
13813 (ipa_method_is_modified): Removed.
13814 (ipa_method_modify_create): Removed.
13815 (ipa_method_modify_init): Temporary variable info instead of a few
13817 (ipa_detect_param_modifications): Temporary variable info instead of
13818 a few dereferences.
13819 (ipa_compute_jump_functions): Temporary variable info instead of
13820 a few dereferences.
13821 (ipa_method_modify_set): Removed.
13822 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
13823 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
13824 than craph_node as the first parameter.
13825 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
13826 (ipa_method_modify_init): Removed.
13827 (ipa_compute_jump_functions): Added a temp variable instead of
13828 repeatadly dereferencing the cgraph_edge.aux pointer
13829 (ipa_callsite_param_set_type): Removed.
13830 (ipa_compute_jump_functions): i renamed to index and moved to
13832 (ipa_callsite_param_set_info_type_formal): Removed.
13833 (ipa_callsite_param_set_info_type): Removed.
13834 (ipa_callsite_param_map_create): Removed.
13835 (ipa_callsite_tree): Removed.
13836 (ipa_callsite_caller): Removed.
13837 (ipa_pop_func_from_list): return_method removed to return_func
13839 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
13840 prefixed all values with IPA_. Changed all users.
13841 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
13842 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
13843 and FORMAL_IPATYPE IPA_PASS_THROUGH.
13844 (union parameter_info): Renamed to jump_func_value.
13845 (union jump_func_value): Renamed value to constant
13846 (struct ipa_jump_func): Renamed info_type to value
13847 (struct ipa_node): Renamed to ipa_node_params
13848 (struct ipa_node_params): Renamed ipa_arg_num to param_count
13849 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
13850 (struct ipa_node_params): Renamed ipa_mod to modified_flags
13851 (struct ipa_edge): Renamed to ipa_edge_args
13852 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
13853 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
13854 (struct ipa_methodlist): Renamed to ipa_func_list
13855 (struct ipa_func_list): method_p renamed to node, next_method
13857 (ipa_methodlist_p): Removed, switched all users to struct pointer
13858 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
13860 2008-04-30 Alan Modra <amodra@bigpond.net.au>
13862 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
13863 (rs6000_emit_epilogue): Use backchain to restore only when we
13864 have a large frame. Make use of frame pointer to restore if we
13865 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
13867 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
13869 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
13870 Add mode to zero_extract.
13871 (sign bit tests peepholes): (Ditto.).
13873 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
13875 * config/i386/i386.c (ix86_builtins): Replace Prescott New
13876 Instructions in comments with SSE3.
13877 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
13878 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
13879 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
13880 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
13881 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
13882 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
13883 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
13884 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
13885 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
13886 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
13887 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
13888 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
13889 (bdesc_sse_args): Renamed to ...
13890 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
13891 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
13892 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
13893 IX86_BUILTIN_FABSQ.
13894 (bdesc_1arg): Moved to ...
13895 (bdesc_args): Here.
13896 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
13897 Instructions in comments with SSE3.
13898 (ix86_expand_sse_operands_builtin): Renamed to ...
13899 (ix86_expand_args_builtin): This. Updated.
13900 (ix86_expand_unop1_builtin): Update comments.
13901 (ix86_expand_builtin): Updated.
13903 2008-04-29 Richard Guenther <rguenther@suse.de>
13905 PR tree-optimization/36078
13906 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
13907 Update virtual SSA form after cleaning up the CFG.
13909 2008-04-29 Richard Guenther <rguenther@suse.de>
13911 PR middle-end/15255
13912 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
13914 2008-04-29 Richard Guenther <rguenther@suse.de>
13916 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
13917 (compute_may_aliases): Do not call finalize_ref_all_pointers.
13918 (compute_flow_insensitive_aliasing): Do not treat
13919 PTR_IS_REF_ALL pointers special.
13920 (get_smt_for): Likewise.
13921 (may_alias_p): Re-structure.
13922 (is_escape_site): A ref-all pointer conversion is not an escape site.
13923 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
13924 PTR_IS_REF_ALL pointers special.
13925 * tree-ssa-structalias.h (struct alias_info): Remove
13926 ref_all_symbol_mem_tag field.
13927 (PTR_IS_REF_ALL): Remove.
13929 2008-04-29 Richard Guenther <rguenther@suse.de>
13931 PR middle-end/36077
13932 * fold-const.c (extract_muldiv_1): In combining division constants
13933 make sure to never overflow.
13935 2008-04-29 Nick Clifton <nickc@redhat.com>
13937 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
13939 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13942 * optc-gen.awk: Work around HP-UX/IA awk bug.
13944 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
13946 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
13949 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
13952 * config/i386/i386.md
13953 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
13954 Change operand 1 predicate to nonimmediate_operand.
13956 2008-04-28 Jakub Jelinek <jakub@redhat.com>
13959 * dwarf2out.c (struct die_struct): Mark as chain_circular through
13961 * gengtype.c (walk_type, write_func_for_structure): Handle
13963 * doc/gty.texi: Document chain_circular.
13965 2008-04-28 Richard Guenther <rguenther@suse.de>
13967 PR tree-optimization/36066
13968 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
13971 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
13974 * config/i386/i386.md
13975 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
13976 Use match_scratch instead of match_operand for operands 3 and 4.
13978 2008-04-27 Richard Guenther <rguenther@suse.de>
13980 PR tree-optimization/18754
13981 PR tree-optimization/34223
13982 * tree-pass.h (pass_complete_unrolli): Declare.
13983 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
13984 loop size before and after unconditionally of UL_NO_GROWTH in effect.
13985 Rewrite loop into loop closed SSA form if it is not already.
13986 (tree_unroll_loops_completely): Re-structure to iterate over
13987 innermost loops with intermediate CFG cleanups.
13988 Unroll outermost loops only if requested or the code does not grow
13990 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
13991 loops are available.
13992 (tree_vectorize): Instead do so here.
13993 (tree_complete_unroll): Also unroll outermost loops.
13994 (tree_complete_unroll_inner): New function.
13995 (gate_tree_complete_unroll_inner): Likewise.
13996 (pass_complete_unrolli): New pass.
13997 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
13998 uses outside of the loop.
13999 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14000 form if it is available.
14001 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14002 * passes.c (init_optimization_passes): Schedule complete inner
14003 loop unrolling pass before the first CCP pass after final inlining.
14005 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
14007 * targhooks.h (default_emutls_var_fields,
14008 default_emutls_var_init): Declare.
14009 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14010 * target.h (struct gcc_target): Add struct emutls member.
14011 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14012 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14013 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
14014 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
14015 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
14016 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
14017 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
14018 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
14019 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
14020 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
14021 emit debug information.
14022 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
14023 * varasm.c: Include targhooks.h.
14024 (emutls_object_section, emutls_tmpl_section): New.
14025 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
14026 (EMUTLS_SEPARATOR): New.
14027 (prefix_name): New.
14028 (get_emutls_object_name): New.
14029 (default_emutls_var_fields): New, broken out of ...
14030 (get_emutls_object_type): ... here. Adjust to use target hooks.
14031 (get_emutls_init_templ_addr): Adjust to use target hooks.
14032 (emutls_decl): Adjust to use target hooks.
14033 (emutls_finish): Likewise.
14034 (default_emutls_var_init): New, broken out of ...
14035 (assemble_variable): ... here. Adjust to use target hooks.
14036 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
14037 SECCAT_EMUTLS_TMPL.
14038 * c-common.c (handle_section_attribute): Prevent overriding
14039 sections for emulated tls with special sections.
14040 * config/i386/i386.c (x86_64_elf_select_section): Add
14041 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
14042 (x86_64_elf_unique_section): Likewise.
14043 * config/vxworks.c: Include tree.h.
14044 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
14045 (vxworks_override_options): Set TLS scheme.
14046 * doc/tm.texi (Emulated TLS): New node.
14048 2008-04-26 Simon Baldwin <simonb@google.com>
14051 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
14052 with propagated string constants.
14054 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
14056 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
14057 constraint for operand 2 when operand 0 is memory operand.
14058 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
14059 operand 0 is memory operand.
14060 (fix_trunc<mode>_i387_with_temp): Ditto.
14061 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
14062 operand 2 when operand 1 is memory operand.
14063 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
14064 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
14065 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
14066 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
14067 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
14068 operands 2,3 and 4 when operand 1 is memory operand.
14069 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
14071 (fistdi2_floor_with_temp): Ditto.
14072 (fist<mode>2_floor_with_temp): Ditto.
14073 (fistdi2_ceil_with_temp): Ditto.
14074 (fist<mode>2_ceil_with_temp): Ditto.
14075 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
14077 2008-04-26 David Daney <ddaney@avtrex.com>
14079 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
14081 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
14082 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14083 UNSPEC_UPDATE_GOT_VERSION): Renumber.
14084 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
14085 (compare_and_swap_12): New insn.
14086 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
14087 * config/mips/mips.c (mips_force_binary): New function.
14088 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
14089 (mips_expand_compare_and_swap_12): New function.
14090 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
14092 2008-04-25 Jan Hubicka <jh@suse.cz>
14095 * cfgexpand.c (pass_expand): Turn into RTL pass.
14096 * passes.c (execute_one_pass): Do pass typechecking after execution.
14097 * tree-pass.h (pass_expand): Turn into RTL pass.
14099 * function.h (struct rtl_data): Move here fields
14100 accesses_prior_frames, calls_eh_return, saves_all_registers,
14101 has_nonlocal_goto, has_asm_statement, is_thunk,
14102 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
14103 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
14104 arg_pointer_save_area_init from struct function; turn into bool.
14105 (struct function): Move
14106 calls_eh_return, saves_all_registers, has_nonlocal_goto,
14107 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
14108 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
14109 tail_call_emit, arg_pointer_save_area_init
14110 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
14111 (current_function_returns_struct, current_function_returns_pcc_struct,
14112 current_function_calls_setjmp, current_function_calls_alloca,
14113 current_function_accesses_prior_frames,
14114 current_function_calls_eh_return, current_function_is_thunk,
14115 current_function_stdarg, current_function_profile,
14116 current_function_limit_stack, current_function_uses_pic_offset_table,
14117 current_function_uses_const_pool, current_function_has_nonlocal_label,
14118 current_function_saves_all_registers,
14119 current_function_has_nonlocal_goto,
14120 current_function_has_asm_statement): Remove accesor macros.
14121 * ra-conflict.c (global_conflicts): Update.
14122 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
14123 (suitable_for_tail_call_opt_p): Update.
14124 * builtins.c (expand_builtin_return_addr): Update.
14125 (expand_builtin_setjmp_setup): Update.
14126 (expand_builtin_nonlocal_goto): Update.
14127 * final.c (final_start_function): Update.
14128 (profile_function): Update.
14129 (leaf_function_p): Update.
14130 (only_leaf_regs_used): Update.
14131 * df-scan.c (df_get_exit_block_use_set): Update.
14132 * dojump.c (clear_pending_stack_adjust): Update.
14133 * tree-stdarg.c (gate_optimize_stdarg): Update.
14134 * gimple-low.c (lower_function_body): Update.
14135 * global.c (compute_regsets): Update.
14136 (global_alloc): Update.
14137 * dwarf2out.c (dwarf2out_begin_prologue): Update.
14138 * expr.c (expand_assignment): Update.
14139 * dse.c (dse_step0): Update.
14140 (dse_step1): Update.
14141 * c-decl.c (store_parm_decls): Update.
14142 * local-alloc.c (combine_regs): Update.
14143 (find_free_reg): Update.
14144 * function.c (assign_parms_augmented_arg_list): Update.
14145 (assign_parm_find_data_types): Update.
14146 (assign_parms): Update.
14147 (allocate_struct_function): Update.
14148 (expand_function_start): Update.
14149 (expand_function_end): Update.
14150 (get_arg_pointer_save_area): Update.
14151 (thread_prologue_and_epilogue_insns): Update.
14152 (rest_of_match_asm_constraints): Update.
14153 * stor-layout.c (variable_size): Update.
14154 * gcse.c (gcse_main): Update.
14155 (bypass_jumps): Update.
14156 * gimplify.c (gimplify_function_tree): Update.
14157 * calls.c (emit_call_1): Update.
14158 (expand_call): Update.
14159 * bt-load.c (compute_defs_uses_and_gen): Update.
14160 * except.c (sjlj_assign_call_site_values): Update.
14161 (sjlj_emit_function_enter): Update.
14162 (can_throw_external): Update.
14163 (set_nothrow_function_flags): Update.
14164 (expand_builtin_unwind_init): Update.
14165 (expand_eh_return): Update.
14166 (convert_to_eh_region_ranges): Update.
14167 (output_function_exception_table): Update.
14168 * emit-rtl.c (gen_tmp_stack_mem): Update.
14169 * cfgexpand.c (expand_used_vars): Update.
14170 (tree_expand_cfg): Update.
14171 * cfgcleanup.c (rest_of_handle_jump): Update.
14172 * explow.c (allocate_dynamic_stack_space): Update.
14173 * varasm.c (assemble_start_function): Update.
14174 (force_const_mem): Update.
14175 (mark_constant_pool): Update.
14176 * tree-optimize.c (tree_rest_of_compilation): Update.
14177 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
14178 * tree-cfg.c (notice_special_calls): Update.
14179 (is_ctrl_altering_stmt): Update.
14180 (tree_can_make_abnormal_goto): Update.
14181 (tree_purge_dead_abnormal_call_edges): Update.
14182 * config/alpha/predicates.md: Update.
14183 * config/alpha/alpha.c (alpha_sa_mask): Update.
14184 (alpha_sa_size): Update.
14185 (alpha_does_function_need_gp): Update.
14186 (alpha_expand_prologue): Update.
14187 (alpha_start_function): Update.
14188 (alpha_output_function_end_prologue): Update.
14189 (alpha_expand_epilogue): Update.
14190 * config/frv/frv.c (frv_stack_info): Update.
14191 (frv_expand_epilogue): Update.
14192 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
14193 (s390_register_info): Update.
14194 (s390_frame_info): Update.
14195 (s390_init_frame_layout): Update.
14196 (s390_can_eliminate): Update.
14197 (save_gprs): Update.
14198 * config/spu/spu.c (spu_split_immediate): Update.
14199 (need_to_save_reg): Update.
14200 (spu_expand_prologue): Update.
14201 (spu_expand_epilogue): Update.
14202 * config/sparc/sparc.md: Update.
14203 * config/sparc/sparc.c (eligible_for_return_delay): Update.
14204 (sparc_tls_got): Update.
14205 (legitimize_pic_address): Update.
14206 (sparc_emit_call_insn): Update.
14207 (sparc_expand_prologue): Update.
14208 (output_return): Update.
14209 (print_operand): Update.
14210 (sparc_function_ok_for_sibcall): Update.
14211 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
14212 * config/m32r/m32r.md: Update.
14213 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
14214 (m32r_compute_frame_size): Update.
14215 (m32r_expand_prologue): Update.
14216 (m32r_expand_epilogue): Update.
14217 (m32r_legitimize_pic_address): Update.
14218 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
14219 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14220 * config/i386/i386.c (ix86_frame_pointer_required): Update.
14221 (gen_push): Update.
14222 (ix86_save_reg): Update.
14223 (ix86_compute_frame_layout): Update.
14224 (ix86_expand_prologue): Update.
14225 (ix86_expand_epilogue): Update.
14226 * config/sh/sh.c (output_stack_adjust): Update.
14227 (calc_live_regs): Update.
14228 (sh5_schedule_saves): Update.
14229 (sh_expand_prologue): Update.
14230 (sh_expand_epilogue): Update.
14231 (sh_setup_incoming_varargs): Update.
14232 (sh_allocate_initial_value): Update.
14233 (sh_get_pr_initial_val): Update.
14234 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
14235 * config/sh/sh.md (label:): Update.
14236 * config/avr/avr.c (out_movhi_mr_r): Update.
14237 * config/crx/crx.h (enum): Update.
14238 * config/xtensa/xtensa.h (along): Update.
14239 * config/stormy16/stormy16.c Update.
14240 (xstormy16_compute_stack_layout): Update.
14241 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
14242 (fr30_expand_prologue): Update.
14243 * config/cris/cris.c (cris_conditional_register_usage): Update.
14244 (cris_reg_saved_in_regsave_area): Update.
14245 (cris_initial_frame_pointer_offset): Update.
14246 (cris_simple_epilogue): Update.
14247 (cris_expand_prologue): Update.
14248 (cris_expand_epilogue): Update.
14249 (cris_expand_pic_call_address): Update.
14250 (cris_asm_output_symbol_ref): Update.
14251 (cris_asm_output_label_ref): Update.
14252 * config/cris/cris.md Update.
14253 * config/iq2000/iq2000.c (compute_frame_size): Update.
14254 (iq2000_expand_epilogue): Update.
14255 * config/mt/mt.h (save_direction): Update.
14256 * config/mn10300/mn10300.c (mn10300_function_value): Update.
14257 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
14258 (ia64_secondary_reload_class): Update.
14259 * config/m68k/m68k.c (m68k_save_reg): Update.
14260 (m68k_expand_prologue): Update.
14261 (m68k_expand_epilogue): Update.
14262 (legitimize_pic_address): Update.
14263 * config/rs6000/rs6000.c (rs6000_got_register): Update.
14264 (first_reg_to_save): Update.
14265 (first_altivec_reg_to_save): Update.
14266 (compute_vrsave_mask): Update.
14267 (compute_save_world_info): Update.
14268 (rs6000_stack_info): Update.
14269 (spe_func_has_64bit_regs_p): Update.
14270 (rs6000_ra_ever_killed): Update.
14271 (rs6000_emit_eh_reg_restore): Update.
14272 (rs6000_emit_allocate_stack): Update.
14273 (rs6000_emit_prologue): Update.
14274 (rs6000_emit_epilogue): Update.
14275 (rs6000_output_function_epilogue): Update.
14276 (output_profile_hook): Update.
14277 (rs6000_elf_declare_function_name): Update.
14278 * config/rs6000/rs6000.h (rs6000_args): Update.
14279 * config/rs6000/rs6000.md: Update.
14280 * config/mcore/mcore.c (mcore_expand_prolog): Update.
14281 * config/arc/arc.c (arc_output_function_epilogue): Update.
14282 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
14283 * config/darwin.c (machopic_function_base_name): Update.
14284 * config/score/score3.c (score3_compute_frame_size): Update.
14287 (score3_epilogue): Update.
14288 * config/score/score7.c (score7_compute_frame_size): Update.
14289 (score7_prologue): Update.
14290 (score7_epilogue): Update.
14291 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
14292 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
14293 * config/arm/arm.c (use_return_insn): Update.
14294 (require_pic_register): Update.
14295 (arm_load_pic_register): Update.
14296 (arm_compute_save_reg0_reg12_mask): Update.
14297 (arm_compute_save_reg_mask): Update.
14298 (thumb1_compute_save_reg_mask): Update.
14299 (output_return_instruction): Update.
14300 (arm_output_function_prologue): Update.
14301 (arm_output_epilogue): Update.
14302 (arm_get_frame_offsets): Update.
14303 (arm_expand_prologue): Update.
14304 (thumb_pushpop): Update.
14305 (thumb_exit): Update.
14306 (thumb1_expand_prologue): Update.
14307 (thumb1_expand_epilogue): Update.
14308 (arm_unwind_emit): Update.
14309 (arm_output_fn_unwind): Update.
14310 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
14311 * config/arm/arm.md: Update.
14312 * config/pa/pa.md: Update.
14313 * config/pa/pa.c (legitimize_pic_address): Update.
14314 (compute_frame_size): Update.
14315 (hppa_expand_prologue): Update.
14316 (hppa_expand_epilogue): Update.
14317 (borx_reg_operand): Update.
14318 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
14319 (HARD_REGNO_RENAME_OK): Update.
14320 * config/mips/mips.c (mips_global_pointer): Update.
14321 (mips_save_reg_p): Update.
14322 (mips_compute_frame_info): Update.
14323 (mips_frame_pointer_required): Update.
14324 (mips_expand_prologue): Update.
14325 (mips_expand_epilogue): Update.
14326 (mips_can_use_return_insn): Update.
14327 (mips_reorg_process_insns): Update.
14328 * config/v850/v850.c (compute_register_save_size): Update.
14329 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
14330 * config/mmix/mmix.c (along): Update.
14331 (mmix_expand_epilogue): Update.
14332 * config/bfin/bfin.c (legitimize_pic_address): Update.
14333 (must_save_p): Update.
14334 (stack_frame_needed_p): Update.
14335 (add_to_reg): Update.
14336 (bfin_expand_prologue): Update.
14337 * stmt.c (expand_asm_operands): Update.
14338 * reload1.c (reload): Update.
14339 (init_elim_table): Update.
14341 2008-04-25 Bob Wilson <bob.wilson@acm.org>
14343 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
14345 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
14347 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
14348 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
14349 (mov<mode>): Removed.
14350 (*movv4sf_internal): Likewise.
14351 (*movv2df_internal): Likewise.
14353 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
14355 * config.gcc (crx-*-elf): Remove deprecation.
14357 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
14359 * config/i386/cygming-crtend.c (register_frame_ctor): Register
14360 __gcc_deregister_frame with atexit.
14361 (deregister_frame_dtor): Remove.
14363 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
14364 Nathan Sidwell <nathan@codesourcery.com>
14366 * config/rs6000/rs6000.opt (mspe): Remove Var property.
14368 * config/rs6000/rs6000.h (rs6000_spe): Declare.
14369 (rs6000_isel): Likewise.
14370 * config/rs6000/rs6000.c (rs6000_spe): New variable.
14371 (rs6000_isel): New variable.
14372 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
14374 2008-04-24 Jakub Jelinek <jakub@redhat.com>
14377 * c-common.c (handle_vector_size_attribute): Call
14378 lang_hooks.types.reconstruct_complex_type instead of
14379 reconstruct_complex_type.
14380 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
14381 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
14382 * langhooks.h (struct lang_hooks_for_types): Add
14383 reconstruct_complex_type hook.
14384 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
14385 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14387 2008-04-24 Richard Guenther <rguenther@suse.de>
14389 * c-common.h (check_builtin_function_arguments): Declare.
14390 * c-common.c (validate_nargs): New function.
14391 (check_builtin_function_arguments): Likewise.
14392 * c-typeck.c (build_function_call): Call
14393 check_builtin_function_arguments.
14394 * builtins.c (fold_builtin_classify): Remove error reporting code.
14395 (fold_builtin_unordered_cmp): Likewise.
14396 (fold_builtin_1): Likewise.
14397 (fold_builtin_n): Likewise.
14399 2008-04-24 Jakub Jelinek <jakub@redhat.com>
14401 PR tree-optimization/36008
14402 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
14403 the original op1, rather than delta by step.
14405 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
14406 Sebastian Pop <sebastian.pop@amd.com>
14408 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
14409 eliminate_local_variables_stmt, eliminate_local_variables,
14410 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
14411 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
14412 of code delimited by two edges in the CFG.
14413 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
14414 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
14415 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
14416 the case of parallelisation of reductions.
14417 (expr_invariant_in_region_p): New.
14419 * tree-flow.h (gather_blocks_in_sese_region): Declared.
14420 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
14422 2008-04-24 Ira Rosen <irar@il.ibm.com>
14423 Richard Guenther <rguenther@suse.de>
14425 PR tree-optimization/36034
14426 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
14427 incapable of dealing with loads with gaps.
14429 2008-04-24 Rafael Espindola <espindola@google.com>
14431 * tree-flow.h (vrp_evaluate_conditional): Change signature.
14432 * tree-ssa-propagate.c (fold_predicate_in): Update call to
14433 vrp_evaluate_conditional.
14434 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
14435 (vrp_evaluate_conditional): Split the cond argument.
14436 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
14437 (simplify_stmt_for_jump_threading): Update call to
14438 vrp_evaluate_conditional.
14440 2008-04-24 Ira Rosen <irar@il.ibm.com>
14442 PR tree-optimization/35982
14443 * tree-vect-analyze.c (vect_check_interleaving): Check that the
14444 interleaved data-refs are of the same type.
14446 2008-04-24 Danny Smith <dannysmith@users.net>
14448 * c-format.c (check_format_info_main): Use strncmp rather than a
14449 magic prefix to handle multichar length specs.
14450 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
14451 Don't prefix "I64" and "I32" with '\0'.
14453 2008-04-24 Jakub Jelinek <jakub@redhat.com>
14456 * config/i386/i386.c (init_cumulative_args): Don't pass anything
14457 in registers for -m32 only if stdarg_p (fntype).
14459 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
14461 PR rtl-optimization/36006
14462 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
14463 temp to op0 in order to avoid invalid rtx sharing.
14465 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
14467 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
14468 check TREE_INVARIANT.
14469 * tree-gimple.c (is_gimple_address): New.
14470 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
14471 * tree-gimple.h (is_gimple_address): New.
14472 * tree.h (decl_address_invariant_p): New.
14473 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
14474 (build_string): Likewise.
14475 (decl_address_invariant_p): New, from is_gimple_invariant_address.
14476 (tree_invariant_p_1): Likewise.
14477 (save_expr): Use it.
14478 (tree_invariant_p): New.
14479 (skip_simple_arithmetic): Use it.
14480 (stabilize_reference_1): Use it.
14481 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
14483 (build1_stat): Drop code to compute TREE_INVARIANT.
14484 (build2_stat): Drop code to compute TREE_INVARIANT.
14485 (build3_stat): Drop code to compute TREE_INVARIANT.
14486 (build4_stat): Drop code to compute TREE_INVARIANT.
14487 (build5_stat): Drop code to compute TREE_INVARIANT.
14488 (build7_stat): Drop code to compute TREE_INVARIANT.
14489 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
14490 * tree.h (struct tree_base): Remove invariant_flag.
14491 (TREE_INVARIANT): Remove.
14492 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
14493 (fold_builtin_expect): Check TREE_CONSTANT.
14494 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
14495 * c-tree.h (c_expr_to_decl): Drop third parameter.
14496 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
14497 (build_c_cast): Don't set TREE_INVARIANT.
14498 (pop_init_level): Don't set TREE_INVARIANT.
14499 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
14500 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
14502 (gimplify_init_constructor): Don't set TREE_INVARIANT.
14503 (gimplify_addr_expr): Adjust comment.
14504 * tree-mudflap.c (mf_build_string):
14505 * print-tree.c (print_node): Don't print TREE_INVARIANT.
14506 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
14507 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
14508 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
14509 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
14510 * langhooks.h (struct lang_hooks): Drop third parameter from
14513 2008-04-23 Richard Guenther <rguenther@suse.de>
14515 PR tree-optimization/27799
14516 PR tree-optimization/32921
14517 PR tree-optimization/32624
14518 * tree-ssa-structalias.c (merge_smts_into): Only merge the
14519 SMTs aliases and the tag itself into the solution.
14520 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
14521 merge the points-to solution back into the SMT aliases.
14522 (may_alias_p): Use alias_set_subset_of instead of
14523 aliases_conflict_p. A pointer which points to
14524 memory with alias set zero may access any variable.
14526 2008-04-23 Richard Guenther <rguenther@suse.de>
14528 * alias.c (alias_set_subset_of): Correctly handle asking
14529 if zero is a subset of an alias set with zero child.
14530 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
14531 (compute_flow_insensitive_aliasing): Correctly walk all
14532 pointers. Do not unnecessarily union sets.
14534 2008-04-23 Richard Guenther <rguenther@suse.de>
14536 PR middle-end/36021
14537 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
14539 2008-04-22 Tomas Bily <tbily@suse.cz>
14541 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
14543 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
14545 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14546 * tree-ssa-structalias.c (get_constraint_for): Likewise.
14547 * tree-inline.c (estimate_num_insns_1): Likewise.
14548 * varasm.c (const_hash_1, compare_constant, copy_constant)
14549 (compute_reloc_for_constant, output_addressed_constants): Likewise.
14550 * emit-rtl.c (component_ref_for_mem_expr)
14551 (set_mem_attributes_minus_bitpos): Likewise.
14552 * expr.c (highest_pow2_factor, expand_expr_real_1, )
14553 (is_aligning_offset): Likewise.
14554 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
14555 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
14556 * dojump.c (do_jump): Likewise.
14557 * builtins.c (get_pointer_alignment, get_memory_rtx)
14558 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
14559 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
14561 2008-04-23 Jakub Jelinek <jakub@redhat.com>
14563 PR rtl-optimization/36017
14564 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
14565 expanding the library call.
14567 2008-04-22 Ian Lance Taylor <iant@google.com>
14569 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
14570 than size_in_bytes.
14572 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
14574 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
14575 of LR/CTR moves for Power6.
14577 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
14579 PR middle-end/36003
14580 * passes.c (init_optimization_passes): Remove
14581 pass_fast_rtl_byte_dce.
14583 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
14586 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
14587 builtin functions to generate faster code.
14588 (_mm_cvtpu16_ps): Ditto.
14589 (_mm_cvtpi32x2_ps): Ditto.
14591 2008-04-22 Nick Clifton <nickc@redhat.com>
14593 * common.opt (ftree-loop-distribution): Add Optimization
14596 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
14597 (frv_expand_builtin_va_start): Likewise.
14599 * config/arm/arm.c (thumb_find_work_register): Fix location of
14600 argument register count.
14602 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14604 Support scheduling for ColdFire V1 and V3 microarchitecture.
14605 Improve scheduling of multiplication instructions.
14607 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
14608 (mac): New instruction attribute.
14609 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
14610 (m68k_sched_mac): New variable.
14611 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
14612 Handle cfv1 and cfv3.
14613 (max_insn_size): New static variable.
14614 (struct _sched_ib): New type.
14615 (sched_ib): New static variable.
14616 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
14617 to fields of 'struct _sched_ib sched_ib'. Update all uses.
14618 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
14620 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
14621 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
14622 new variables. Update.
14623 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14624 Add modeling of cfv3 instruction buffer. Update.
14625 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
14626 * config/m68k/m68k.h (TUNE_CFV3): New macro.
14627 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
14628 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
14629 a particular reservation applies to.
14630 (type2): Reorganize attribute values. Rename alu to alu_reg,
14631 alu_l to alu, move_l to omove. Join move to alu. Split mul
14632 to mul_l and mul_w.
14633 (cf_ib_*): Simplify description of instruction buffer.
14634 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
14635 (cf_mem): Split into cf_mem1 and cf_mem2.
14636 (cf_v2_move_??): Rename to cfv12_alu_??.
14637 (cf_v2_move_l_??): Rename to cfv12_omove_??.
14638 (cf_v2_mul_??): Remove reservations.
14639 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
14640 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
14641 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
14643 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
14644 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
14645 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
14646 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
14647 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
14648 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
14649 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
14650 expansions of the above reservations for instructions of sizes
14653 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14655 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
14657 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
14659 * coverage.c: Include tree-pass.h.
14660 (coverage_counter_alloc): Print da_file_name to the dump file.
14662 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
14664 * sbitmap.c (sbitmap_range_empty_p): New function.
14665 * sbitmap.h (sbitmap_range_empty_p): New function.
14666 * bitmap.h: Now includes obstack.h.
14668 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
14669 Kenneth Zadeck <zadeck@naturalbridge.com>
14671 * dbgcnt.def (ra_byte_scan): Added.
14672 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
14673 when the last hit happens for a counter.
14674 * timevar.def (TV_DF_BYTE_LR): New variable.
14675 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
14676 * passes.c (pass_fast_rtl_byte_dce): New pass.
14677 * fwprop.c (update_df): Added mode to call df_ref_create.
14678 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
14679 DF_REF_EXTRACT_OFFSET.
14680 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
14681 DF_BYTE_LR_OUT, df_byte_lr): New macro.
14683 (df_ref_extract): Added mode field.
14684 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
14685 DF_REF_EXTRACT_OFFSET.
14686 (DF_REF_EXTRACT_MODE): New macro.
14687 (df_byte_lr_bb_info): New structure.
14688 (df_print_byte_regset, df_compute_accessed_bytes,
14689 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
14690 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
14691 df_byte_lr_simulate_uses,
14692 df_byte_lr_simulate_artificial_refs_at_top,
14693 df_byte_lr_simulate_artificial_refs_at_end,
14694 df_compute_accessed_bytes): New function.
14695 (df_ref_create): Add parameter.
14696 (df_byte_lr_get_bb_info): New inline function.
14697 * df-scan.c (df_ref_record, df_uses_record,
14698 df_ref_create_structure): Added mode parameter.
14699 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
14700 df_defs_record, df_uses_record, df_get_conditional_uses,
14701 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
14702 df_entry_block_defs_collect, df_exit_block_uses_collect):
14703 Added mode parameter to calls to df_ref_record, df_uses_record,
14704 df_ref_create_structure.
14705 (df_ref_equal_p, df_ref_compare): Added test for modes.
14706 (df_ref_create_structure): Added code to set mode. Renamed
14707 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
14708 DF_REF_EXTRACT_OFFSET.
14709 * df-core.c (df_print_byte_regset): New function.
14710 * df-byte-scan.c: New file.
14711 * df-problems.c (df_rd_transfer_function): Removed unnecessary
14712 calls to BITMAP_FREE.
14713 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
14714 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
14715 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
14716 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
14717 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
14718 df_byte_lr_local_compute, df_byte_lr_init,
14719 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
14720 df_byte_lr_transfer_function, df_byte_lr_free,
14721 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
14722 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
14723 df_byte_lr_simulate_uses,
14724 df_byte_lr_simulate_artificial_refs_at_top,
14725 df_byte_lr_simulate_artificial_refs_at_end): New function.
14726 * dce.c (byte_dce_process_block): New function.
14727 (dce_process_block): au is now passed in rather than computed
14728 locally. Changed loops that look at artificial defs to not look
14729 for conditional or partial ones, because there never are any.
14730 (fast_dce): Now is able to drive byte_dce_process_block or
14731 dce_process_block depending on the kind of dce being done.
14732 (rest_of_handle_fast_dce): Add parameter to fast_dce.
14733 (rest_of_handle_fast_byte_dce): New function.
14734 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
14735 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
14737 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
14740 * gcc.h: Added fortran options that take arguments to
14741 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
14744 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
14746 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
14747 scalarization if on the LHS and not a full access.
14749 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14751 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
14753 2008-04-18 Rafael Espindola <espindola@google.com>
14755 * tree-vrp.c (find_case_label_index): Fix the binary search.
14756 (find_case_label_range): New.
14757 (vrp_visit_switch_stmt): Use find_case_label_range.
14758 (simplify_switch_using_ranges): Use find_case_label_range.
14760 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
14762 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
14763 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
14765 2008-04-18 Tom Tromey <tromey@redhat.com>
14768 * doc/cpp.texi (Implementation-defined behavior): Mention
14771 2008-04-18 Ian Lance Taylor <iant@google.com>
14773 * fold-const.c (pointer_may_wrap_p): New static function.
14774 (fold_comparison): Add another test for pointer overflow. Use
14775 pointer_may_wrap_p to disable some false positives.
14777 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
14779 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
14780 (fname_as_string): Match updated cpp_interpret_string prototype.
14781 (fix_string_type): Support char16_t* and char32_t*.
14782 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
14783 derivative) nodes. Register as builtin if C++0x.
14784 (c_parse_error): Support CPP_CHAR{16,32}.
14785 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
14786 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
14787 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
14788 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
14789 CTI_CHAR32_ARRAY_TYPE>: New elements.
14790 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
14791 char32_type_node, signed_char32_type_node, char16_array_type_node,
14792 char32_array_type_node): New defines.
14793 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
14794 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
14795 (lex_string): Support CPP_STRING{16,32}, match updated
14796 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
14797 (lex_charconst): Support CPP_CHAR{16,32}.
14798 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
14799 and CPP_STRING{16,32}.
14801 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
14804 * aclocal.m4: Regenerate.
14805 * configure: Regenerate.
14807 2008-04-18 Jan Hubicka <jh@suse.cz>
14809 * except.c (dw2_size_of_call_site_table,
14810 sjlj_size_of_call_site_table): Use vector API for call_site_record.
14812 * cgraphbuild.c (build_cgraph_edges): Update.
14813 * tree-pass.h: Update comment.
14814 * final.c (leaf_function_p): Update.
14815 (leaf_renumber_regs): Update.
14816 (rest_of_clean_state): Update.
14817 * omp-low.c (expand_omp_parallel): Update.
14818 * ipa-reference.c (analyze_function): Update.
14819 * reorg.c (find_end_label): Update.
14820 (optimize_skip): Update.
14821 (fill_simple_delay_slots): Update.
14822 (fill_simple_delay_slots): Update.
14823 (make_return_insns): Update.
14824 (dbr_schedule): Update.
14825 * gimple-low.c (record_vars_into): Update.
14826 * cfgbuild.c (make_edges): Update.
14827 * function.c (assign_stack_local): Update.
14828 (assign_parm_adjust_stack_rtl): Update.
14829 (locate_and_pad_parm): Update.
14830 (allocate_struct_function): Do not initialize stack_alignment_needed
14831 and preferred_stack_boundary here.
14832 (stack_protect_prologue): Update.
14833 (stack_protect_epilogue): Update.
14834 (expand_function_start): Initialize stack_alignment_needed,
14835 preferred_stack_boundary and max_jumptable_ents.
14836 (expand_function_end): Update.
14837 (free_after_compilation): Do not NULLify epilogue_delay_list.
14838 * function.h (struct rtl_data): Add stack_protect_guard,
14839 stack_alignment_needed,
14840 preferred_stack_boundary, epilogue_delay_list.
14841 (struct function): Remove value_histograms, stack_alignment_needed,
14842 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
14844 unexpanded_var_list, stack_protect_guard.
14845 (current_function_epilogue_delay_list): Remove.
14846 * ipa-type-escape.c (analyze_function): Update.
14847 * gimplify.c (pop_gimplify_context): Update comment.
14848 * calls.c (expand_call): Update.
14849 (emit_library_call_value_1): Update.
14850 * except.c (set_nothrow_function_flags): Update.
14851 * cfgexpand.c (get_decl_align_unit): Update.
14852 (create_stack_guard): Update.
14853 (estimated_stack_frame_size): Update.
14854 (expand_used_vars): Update.
14855 (tree_expand_cfg): Free histogram earliers, init expansion variables.
14856 * explow.c (allocate_dynamic_stack_space): Update.
14857 * tree-ssa-live.c (remove_unused_locals): Update.
14858 * varasm.c (mark_constant_pool): Update.
14859 * tree-inline.c (remap_decls): Update.
14860 (initialize_cfun): Update.
14861 (declare_return_variable): Update.
14862 (inline_forbidden_p): Update.
14863 (expand_call_inline): Update.
14864 (declare_inline_vars): Update.
14865 (tree_function_versioning): Update.
14866 * tree-flow.h (value_histograms): New.
14867 (VALUE_HISTOGRAMS): New macro.
14868 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
14870 * tree-cfg.c (set_bb_for_stmt): Update.
14871 (replace_by_duplicate_decl): Update.
14872 (move_block_to_fn): Update.
14873 (new_label_mapper): Update.
14874 (dump_function_to_file): Update.
14875 * ipa-struct-reorg.c (build_data_structure): Update.
14876 * cfgrtl.c (print_rtl_with_bb): Update.
14877 * reload1.c (reload): Update.
14879 * config/i386/i386.c (setup_incoming_varargs_64,
14880 ix86_compute_frame_layout): Update.
14881 * config/arc/arc.c (arc_output_function_epilogue): Update.
14883 2008-04-18 Marius Strobl <marius@FreeBSD.org>
14885 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
14886 for FreeBSD as well.
14887 * gthr-posix95.h: Likewise.
14889 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
14891 PR rtl-optimization/35838
14892 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
14893 out the byte offset of the first subreg.
14895 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
14897 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
14898 to split_ti instead of three separate calls with single member arrays.
14899 (subti3 splitter): Ditto.
14900 (adddi3 splitter): Ditto with split_di.
14901 (subdi3 splitter): Ditto.
14902 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
14903 two separate calls with single member arrays. Swap match_dup
14904 operands 1 and 2 to better fit into the array.
14905 (negdi2 splitter): Ditto with split_di.
14906 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
14907 two separate calls with single member arrays. Swap match_dup operands
14908 6 and 7 to better fit into the array.
14910 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
14912 * config/i386/i386.c (sse_builtin_type): New.
14913 (bdesc_sse_args): Likewise.
14914 (bdesc_sse_3arg): Removed.
14915 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
14916 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
14917 IX86_BUILTIN_ROUNDPS.
14918 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
14919 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
14920 IX86_BUILTIN_ROUNDPS.
14921 (ix86_expand_sse_4_operands_builtin): Removed.
14922 (ix86_expand_sse_operands_builtin): New.
14923 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
14924 and CODE_FOR_sse4_1_roundps.
14925 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
14926 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
14928 2008-04-17 Alan Modra <amodra@bigpond.net.au>
14931 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
14932 regs before frame pop when needed. If use_backchain_to_restore_sp
14933 then load backchain into a temp reg to restore vr and vrsave. Add
14934 code to restore vr after frame pop if possible.
14936 2008-04-17 Richard Guenther <rguenther@suse.de>
14938 * tree-vn.c (expressions_equal_p): Do not check type
14939 equality or compatibility before calling operand_equal_p.
14940 * fold-const.c (operand_equal_p): Check equivalence of
14941 integer constants before bailing out due to signedness or
14942 precision differences.
14943 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
14944 spurious differences in type qualification. Ignore types
14945 for COMPONENT_REFs at all.
14947 2008-04-17 Christian Bruel <christian.bruel@st.com>
14949 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
14950 msw_skip comparison.
14952 2008-04-16 Jakub Jelinek <jakub@redhat.com>
14955 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
14958 PR tree-optimization/35899
14959 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
14960 rather than TREE_OPERAND.
14962 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
14965 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
14966 temporary registers. Change operand predicate to general_operand.
14967 (remainderxf3): Ditto.
14969 2008-04-16 Richard Guenther <rguenther@suse.de>
14971 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
14972 * tree-affine.c (aff_combination_expand): Look through some
14975 2008-04-15 Doug Kwan <dougkwan@google.com>
14977 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
14979 * tree-pretty-print.c (dump_generic_node): Ditto.
14980 * final.c (output_addr_const): Ditto.
14981 * dwarf2out.c (output_cfi): Ditto.
14982 * c-pretty-print.c (pp_c_integer_constant): Ditto.
14983 * print-rtl.c (print_rtx): Ditto.
14984 * print-tree.c (print_node_brief, print_node): Ditto.
14985 * c-common.c (match_case_to_enum_1): Ditto.
14986 * sched-vis.c (print_value): Ditto.
14987 * config/i386/i386.c (print_operand): Cast to long unsigned int
14990 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
14991 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
14992 MS Windows VirtualProtect function.
14994 2008-04-15 Jan Hubicka <jh@suse.cz>
14996 * gengtype.c (write_root): Param_is argument is OK.
14997 * expr.c (expand_expr_real_1): Update call of get_exception_*.
14998 * function.h: Include varray.h
14999 (rtl_eh): New stucture based on except.c one.
15000 (call_site_record): New forward declaration and vector type.
15001 * calls.c (emit_call_1): Do not call
15002 note_current_region_may_contain_throw.
15003 * except.c (eh_status): Remove cur_region, try_region since they are
15005 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15006 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15007 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15008 Remove call_site_data_used, call_site_data_size.
15009 Turn call_site_record into vector in function.h.
15010 (note_current_region_may_contain_throw): Remove.
15011 (get_exception_pointer, get_exception_filter): Do not take struct
15012 function argument; update.
15013 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
15014 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
15015 build_post_landing_pads, dw2_build_landing_pads,
15016 sjlj_assign_call_site_values, sjlj_mark_call_sites,
15017 sjlj_emit_function_enter, sjlj_emit_function_enter,
15018 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
15019 sjlj_build_landing_pads, finish_eh_generation,
15020 remove_exception_handler_label, remove_eh_handler,
15021 maybe_remove_eh_handler, add_reachable_handler,
15022 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
15023 add_action_record, collect_one_action_chain, add_call_site,
15024 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
15025 sjlj_output_call_site_table, output_function_exception_table,
15026 * except.h (note_current_region_may_contain_throw): Remove
15027 (get_exception_pointer, get_exception_filter): Do not take struct
15029 * Makefile.in (GTFILES): Put varargs before struct function.
15031 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
15033 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
15034 punt for STRING_CST.
15035 (get_constraint_for): Deal with STRING_CST here instead.
15037 2008-04-15 Richard Guenther <rguenther@suse.de>
15039 * tree-ssa-propagate.c (substitute_and_fold): Substitute
15040 statements in a basic-block with a backward walk. Do not
15041 substitute into dead statements but instead remove those.
15043 2008-04-15 Richard Guenther <rguenther@suse.de>
15045 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
15046 to zero, thus disable creation of SFTs.
15048 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
15050 * tree-predcom.c (suitable_reference_p): Return false if the
15051 reference can throw.
15053 2008-04-15 Jakub Jelinek <jakub@redhat.com>
15056 * c-decl.c (finish_decl): If extern or static var has variable
15057 size, set TREE_TYPE (decl) to error_mark_node.
15059 2008-04-15 Rafael Espindola <espindola@google.com>
15061 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
15064 2008-04-15 Richard Guenther <rguenther@suse.de>
15066 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15067 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
15068 (visit_reference_op_load): Do walk vuse-vdef chains on
15069 vn_reference_lookup.
15070 (visit_reference_op_store): But do not here.
15071 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
15072 vn_reference_lookup.
15073 (vn_lookup_with_vuses): But do so here.
15075 2008-04-14 Ian Lance Taylor <iant@google.com>
15077 * fold-const.c (fold_overflow_warning): Remove assertion.
15079 2008-04-15 Ben Elliston <bje@au.ibm.com>
15081 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
15082 temp1 local variables.
15084 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
15087 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
15088 ".text.unlikely" section as executable.
15090 2008-04-14 James E. Wilson <wilson@tuliptree.org>
15092 * config/ia64/ia64.c (rtx_needs_barrier): Handle
15093 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
15094 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
15095 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
15096 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
15097 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
15098 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
15100 2008-04-14 Ian Lance Taylor <iant@google.com>
15102 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
15103 * fold-const.c (fold_comparison): If appropriate, test
15104 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
15105 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
15106 reassociating a pointer type.
15107 * doc/invoke.texi (Optimize Options): Document that
15108 -fstrict-overflow applies to pointer wraparound.
15110 2008-04-13 Jan Hubicka <jh@suse.cz>
15112 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
15114 2008-04-12 Andrew Pinski <pinskia@gmail.com>
15116 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
15117 we are going to "save the world".
15119 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
15121 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
15122 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
15123 operand 0 constraint, not "=".
15125 2008-04-11 James E. Wilson <wilson@tuliptree.org>
15127 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
15129 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
15131 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
15132 of size of positions_needed * CHAR_BIT.
15134 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
15136 PR middle-end/35897
15137 * dse.c (store_info): Change positions_needed to unsigned
15139 (lowpart_bitmask): New.
15140 (record_store): Cast to unsigned HOST_WIDE_INT for
15141 positions_needed. Assert width <= size of positions_needed *
15142 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
15143 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
15144 lowpart_bitmask to set mask.
15146 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
15148 * config/bfin/constraints.md: New file.
15149 * config/bfin/bfin.md: Include it.
15150 (adddi3): Use satisfies_constraint functions instead of the old macros.
15151 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
15152 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
15153 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
15154 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
15155 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
15156 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
15157 EXTRA_CONSTRAINT): Delete.
15158 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
15159 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
15161 * config/bfin/bfin.c: Include "tm-constrs.h".
15162 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
15163 Use satisfies_constraint functions instead of the old macros.
15164 * doc/md.texi (Blackfin Constraints): Update file name reference.
15166 2008-04-11 Richard Guenther <rguenther@suse.de>
15168 PR tree-optimization/35869
15169 * tree-vrp.c (execute_vrp): Move switch statement update after
15170 jump threading. Schedule another cfg cleanup run.
15172 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
15175 * attribs.c (decl_attributes): Return early on errorneous node.
15177 2008-04-10 Oleg Ryjkov <olegr@google.com>
15179 * tree.h (struct tree_base): Added a new flag default_def_flag.
15180 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
15182 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
15184 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
15186 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15189 * pa.md: Define mode iterator P. Define mode attribute dwc.
15190 (dcacheflush): Update pattern to use iterator P and attribute dwc.
15191 (icacheflush): Likewise.
15192 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
15193 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
15195 2008-04-11 Ben Elliston <bje@au.ibm.com>
15197 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
15199 2008-04-10 Rafael Espindola <espindola@google.com>
15201 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
15202 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
15203 (extract_range_from_expr): The same.
15205 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
15207 * config/mips/mips.md (GPR2): New mode iterator.
15208 (seq): Add comment.
15209 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
15210 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
15211 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
15212 Rewrite these to take two modes, the mode of comparison and the
15213 mode of the destination.
15214 * config/mips/mips.c (mips_expand_scc): Instead of having
15215 paradoxical subreg as destination, expand "narrowing" scc if mode
15216 of comparison is SI and target is requested in DI mode.
15217 (mips_emit_int_order_test): Update comment. Make mode of
15218 comparison match CMP0 rather than TARGET. When creating inverse
15219 target use mode of TARGET.
15221 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
15223 * gcov-dump.c (tag_summary): Only print summaries for the first
15224 GCOV_COUNTERS_SUMMABLE counters.
15226 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
15228 * config/i386/i386.md (absneg): New code iterator.
15229 (absnegprefix): New code attribute.
15230 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
15231 patterns using absneg code iterator.
15232 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
15233 using absneg code iterator.
15234 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
15235 *neg<mode>2 patterns using absneg code iterator.
15236 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15237 *negextendsfdf2 patterns using absneg code iterator.
15238 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
15239 *negextendsfxf2 patterns using absneg code iterator.
15240 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
15241 *negextendsfdf2 patterns using absneg code iterator.
15242 * config/i386/sse.md (<code><mode>2): Macroize expander from
15243 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
15245 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
15247 * config/s390/s390.h: Remove the remains of the recent search
15248 & replace action of current_function_outgoing_args_size.
15250 2008-04-10 Ira Rosen <irar@il.ibm.com>
15252 PR tree-optimization/35821
15253 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
15254 NEW_STMT_LIST is not NULL.
15256 2008-04-09 David Edelsohn <edelsohn@gnu.org>
15259 * toplev.c (process_options): Remove -ffunction-sections debugging
15262 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
15264 PR middle-end/PR28690
15265 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
15266 than gen_rtx_fmt_ee to perform more canonicalizations.
15268 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15271 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
15273 2008-04-09 Richard Guenther <rguenther@suse.de>
15275 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
15276 (dump_function_to_file): Dump function arguments with types.
15278 2008-04-08 Richard Guenther <rguenther@suse.de>
15280 * fold-const.c (fold_widened_comparison): Do not allow
15281 sign-changes that change the result.
15283 2008-04-08 Janis Johnson <janis187@us.ibm.com>
15286 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
15287 kinds of indirect references.
15289 2008-04-08 David Edelsohn <edelsohn@gnu.org>
15291 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
15292 GNU Fortran language string.
15294 2008-04-08 Rafael Espindola <espindola@google.com>
15296 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
15297 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
15298 * tree.h (tree_call_nonnegative_warnv_p): New.
15300 2008-04-08 Jan Hubicka <jh@suse.cz>
15302 * function.c (free_after_compilation): Clear out regno_reg_rtx
15305 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
15308 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
15310 PR middle-end/PR28690
15311 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
15312 same precedence as REG_POINTER and MEM_POINTER operands.
15314 2008-04-08 Richard Guenther <rguenther@suse.de>
15316 PR middle-end/35834
15317 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
15318 for adding index to base.
15320 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
15322 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
15323 (MINGW_ENABLE_EXECUTE_STACK): New.
15324 (IN_LIBGCC2): For libgcc include windows.h file for
15325 function declarations.
15327 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
15329 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
15330 and tem2 if tem1 is not a REG or MULT.
15332 2008-04-08 Jan Hubicka <jh@suse.cz>
15334 * function.h (incomming_args): Break out of struct function.
15335 (function_subsections): Break out of struct function.
15336 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
15337 return_rtx and hard_reg_initial_vals from struct function.
15338 Kill inl_max_label_num.
15339 (current_function_pops_args, current_function_args_info,
15340 current_function_args_size, current_function_args_size,
15341 current_function_pretend_args_size,
15342 current_function_outgoing_args_size,
15343 current_function_internal_arg_pointer, current_function_return_rtx):
15344 Kill compatibility accestor macros.
15345 * builtins.c (expand_builtin_apply_args_1): Update.
15346 (expand_builtin_next_arg): Update.
15347 * df-scan.c (df_get_call_refs): Update.
15348 * dbxout.c (dbxout_function_end): Update.
15349 * dwarf2out.c (dwarf2out_switch_text_section): Update.
15350 (output_line_info): Update.
15351 (secname_for_decl): Update.
15352 (dwarf2out_var_location): Update.
15353 * function.c (free_after_compilation): Update.
15354 (assign_parm_find_stack_rtl): Update.
15355 (assign_parms): Update.
15356 (expand_dummy_function_end): Update.
15357 (expand_function_end): Update.
15358 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
15359 (expand_call): Update.
15360 (emit_library_call_value_1): Update.
15361 (store_one_arg): Update.
15362 * varasm.c (initialize_cold_section_name): Update.
15363 (unlikely_text_section): Update.
15364 (unlikely_text_section_p): Update.
15365 (assemble_start_function): Update.
15366 (assemble_end_function): Update.
15367 (default_section_type_flags): Update.
15368 (switch_to_section): Update.
15369 * integrate.c (set_decl_abstract_flags): Update.
15370 (get_hard_reg_initial_val): Update.
15371 (has_hard_reg_initial_val): Update.
15372 (allocate_initial_values): Update.
15373 * resource.c (init_resource_info): Update.
15374 * config/alpha/alpha.c (NUM_ARGS): Update.
15375 (direct_return): Update.
15376 (alpha_va_start): Update.
15377 (alpha_sa_size): Update.
15378 (alpha_initial_elimination_offset): Update.
15379 (alpha_expand_prologue): Update.
15380 (alpha_start_function): Update.
15381 (alpha_expand_epilogue): Update.
15382 (unicosmk_initial_elimination_offset):
15383 * config/alpha/alpha.md (call expander): Update.
15384 * config/s390/s390.c (s390_register_info): Update.
15385 (s390_register_info): Update.
15386 (s390_frame_info): Update.
15387 (s390_initial_elimination_offset): Update.
15388 (s390_build_builtin_va_list): Update.
15389 (s390_va_start): Update.
15390 * config/spu/spu.c (direct_return): Update.
15391 (spu_expand_prologue): Update.
15392 (spu_initial_elimination_offset): Update.
15393 (spu_build_builtin_va_list): Update.
15394 (spu_va_start): Update.
15395 * config/sparc/sparc.c (sparc_init_modes): Update.
15396 (sparc_compute_frame_size): Update.
15397 (function_value): Update.
15398 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
15399 * config/i386/i386.md (return expander): Update.
15400 * config/i386/i386.c (ix86_va_start): Update.
15401 (ix86_can_use_return_insn_p): Update.
15402 (ix86_compute_frame_layout): Update.
15403 (ix86_expand_epilogue): Update.
15404 * config/sh/sh.c (output_stack_adjust): Update.
15405 (calc_live_regs): Update.
15406 (sh_expand_prologue): Update.
15407 (sh_builtin_saveregs): Update.
15408 (sh_va_start): Update.
15409 (initial_elimination_offset): Update.
15410 (sh_allocate_initial_value): Update.
15411 (sh_function_ok_for_sibcall): Update.
15412 (sh_get_pr_initial_val): Update.
15413 * config/sh/sh.md (return expander): Update.
15414 * config/avr/avr.c (frame_pointer_required_p): UPdate.
15415 * config/crx/crx.c (crx_compute_frame): UPdate.
15416 (crx_initial_elimination_offset): UPdate.
15417 * config/xtensa/xtensa.c (compute_frame_size): Update
15418 (xtensa_builtin_saveregs): Update.
15419 (xtensa_va_start): Update.
15420 (order_regs_for_local_alloc): Update.
15421 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
15422 (xstormy16_expand_builtin_va_start): Update.
15423 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
15424 * config/m68hc11/m68hc11.md (return expanders): Update.
15425 * config/m68hc11/m68hc11.c (expand_prologue): Update.
15426 (expand_epilogue): Update.
15427 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
15428 (cris_simple_epilogue): Update.
15429 (cris_expand_prologue): Update.
15430 (cris_expand_epilogue): Update.
15431 * config/iq2000/iq2000.c (iq2000_va_start): Update.
15432 (compute_frame_size): Update.
15433 * config/mt/mt.c (mt_compute_frame_size): Update.
15434 * config/mn10300/mn10300.c (expand_prologue): Update.
15435 (expand_epilogue): Update.
15436 (initial_offset): Update.
15437 (mn10300_builtin_saveregs):
15438 * config/mn10300/mn10300.md (return expander): Update.
15439 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15440 (ia64_initial_elimination_offset): Update.
15441 (ia64_initial_elimination_offset): Update.
15442 (ia64_expand_prologue): Update.
15443 * config/m68k/m68k.md (return expander): Update.
15444 * config/rs6000/rs6000.c (rs6000_va_start): Update.
15445 (rs6000_stack_info): Update.
15446 * config/mcore/mcore.c (layout_mcore_frame): Update.
15447 (mcore_expand_prolog): Update.
15448 * config/arc/arc.c (arc_compute_frame_size): Update.
15449 * config/score/score3.c (score3_compute_frame_size): Update.
15450 * config/score/score7.c (score7_compute_frame_size): Update.
15451 * config/arm/arm.c (use_return_insn): Update.
15452 (thumb_find_work_register): Update.
15453 (arm_compute_save_reg_mask): Update.
15454 (arm_output_function_prologue): Update.
15455 (arm_output_epilogue): Update.
15456 (arm_size_return_regs): Update.
15457 (arm_get_frame_offsets): Update.
15458 (arm_expand_prologue): Update.
15459 (thumb_exit): Update.
15460 (thumb_unexpanded_epilogue): Update.
15461 (thumb1_output_function_prologue): Update.
15462 * config/pa/pa.md (return expander): Update.
15463 * config/pa/pa.c (compute_frame_size): Update.
15464 (hppa_builtin_saveregs): Update.
15465 * config/mips/mips.c (mips_va_start): Update.
15466 (mips16_build_function_stub): Update.
15467 (mips_compute_frame_info): Update.
15468 (mips_restore_gp): Update.
15469 (mips_output_function_prologue): Update.
15470 (mips_expand_prologue): Update.
15471 * config/v850/v850.c (compute_frame_size): Update.
15472 (expand_prologue): * config/mmix/mmix.c (along): update.
15473 (mmix_initial_elimination_offset): update.
15474 (mmix_reorg): update.
15475 (mmix_use_simple_return): update.
15476 (mmix_expand_prologue): update.
15477 (mmix_expand_epilogue): Update.
15478 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
15479 (emit_link_insn): Update.
15481 2008-04-08 Anatoly Sokolov <aesok@post.ru>
15483 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
15484 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
15486 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
15489 2008-04-07 Jan Hubicka <jh@suse.cz>
15491 * function.h (rtl): Rename to x_rtl.
15492 (crtl): New define.
15493 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
15494 frame_offset, stack_check_probe_note, arg_pointer_save_area,
15495 used_temp_slots avail_temp_slots, temp_slot_level,
15496 nonlocal_goto_handler_labels): Update accesstors.
15497 (rtl): New global variable.
15498 (struct function): Move some fileds to rtl_data.
15499 (get_arg_pointer_save_area): Update prototype.
15500 * builtins.c (expand_builtin_setjmp_receiver): Update call of
15501 get_arg_pointer_save_area.
15502 * expr.c (init_expr): Update
15503 * function.c (get_frame_size): Update
15504 (assign_stack_local): Update
15505 (expand_function_end): Update.
15506 (get_art_pointer_save_area): Update
15508 * emit-rtl.c (rtl): Declare.
15509 (regno_reg_rtx): Declare.
15510 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
15512 (gen_reg_rtx): Update.
15513 * varasm.c (n_deferred_constatns): Update accestor.
15514 (init_varasm_status): Do not allocate varasm_status.
15515 (force_const_mem, get_pool_size, output_constant_pool): Update.
15516 * stmt.c (force_label_rtx): Do not use x_ prefixes.
15517 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
15518 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
15519 * sparc/sparc.h (INIT_EXPANDERS): Update.
15520 * ia64/ia64.h (INIT_EXPANDERS): Update.
15522 2008-04-07 James E. Wilson <wilson@tuliptree.org>
15524 * reload.c (push_secondary_reload): Add missing break to for loop.
15526 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
15528 PR middle-end/PR28690
15529 * rtlanal.c: Update copyright years.
15530 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
15531 as REG_POINTER and MEM_POINTER operands.
15532 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
15533 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
15534 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
15535 * gcse.c: Update copyright years.
15536 (pre_delete): Call gen_reg_rtx_and_attrs.
15537 (hoist_code): Likewise.
15538 (build_store_vectors): Likewise.
15539 (delete_store): Likewise.
15540 * loop-invariant.c (move_invariant_reg): Likewise.
15541 Update copyright years.
15543 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
15545 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
15546 control string instead of quoted.
15548 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
15550 * doc/rtl.texi: Rewrite of subreg section.
15552 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
15555 * config/i386/i386.c (legitimize_pic_address): Add treating
15556 of dllimport SYM_REF's.
15557 (legitimize_dllimport_symbol): Add prototype.
15559 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
15561 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
15562 reference in constructor with non self-referential type.
15564 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
15566 Removal of Return with Depressed Stack Pointer support
15567 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
15568 (ECF_SP_DEPRESSED): Likewise.
15569 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
15570 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
15571 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15572 (expand_call): Do not test ECF_SP_DEPRESSED.
15573 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15574 * function.c (keep_stack_depressed): Delete.
15575 (handle_epilogue_set): Likewise.
15576 (update_epilogue_consts): Likewise.
15577 (emit_equiv_load): Likewise.
15578 (thread_prologue_and_epilogue_insns): Remove support for Return with
15579 Depressed Stack Pointer.
15580 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
15582 2008-04-06 Richard Guenther <rguenther@suse.de>
15584 PR tree-optimization/35400
15585 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
15586 information from SSA_NAMEs.
15588 2008-04-06 Anatoly Sokolov <aesok@post.ru>
15590 * config/avr/avr.h (avr_mega_p): Remove declaration.
15591 (AVR_MEGA): Remove macro.
15592 * config/avr/avr.c (avr_mega_p): Remove variable.
15593 (avr_override_options): Remove inicializion of avr_mega_p.
15594 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
15595 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
15596 (avr_jump_mode): (Ditto.).
15597 (avr_output_progmem_section_asm_op): (Ditto.).
15598 (avr_asm_init_sections): (Ditto.).
15599 (avr_asm_init_sections): (Ditto.).
15600 (avr_rtx_costs): (Ditto.).
15601 * config/avr/avr.md: (Ditto.).
15602 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
15605 2008-04-06 Richard Guenther <rguenther@suse.de>
15607 PR tree-optimization/35842
15608 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
15609 is_gimple_invariant_address.
15611 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15613 * gcc.c (default_compilers): Sync Fortran extensions list with
15614 that in fortran/lang-specs.h.
15615 * doc/invoke.texi: Likewise.
15616 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
15617 * dwarf2out.c (gen_compile_unit_die): Likewise.
15619 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
15621 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
15623 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
15626 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
15627 attribute is used for nested functions.
15629 2008-04-05 Jan Hubicka <jh@suse.cz>
15631 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
15633 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
15635 (dump_files): Update.
15636 (enable_rtl_dump_file): Do not accept letter argument.
15637 * tree-pass.h (dump_file_info): Remove letter argument.
15638 * toplev.c (decode_d_option): Update -da handling.
15639 * toplev.h (enable_rtl_dump_file): Update prototype.
15640 * passes.c (register_one_dump_file): Do not accept IPA argument; work
15641 it out based on pass type.
15642 (register_dump_files_1): Likewise.
15643 (init_optimization_passes): Update register_one_dump_file calls.
15644 (execute_one_pass): Sanity check that IPA passes are called at IPA
15645 level and RTL passes at RTL level.
15646 (execute_pass_list): IPA pass can not be after or subpass of
15648 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
15649 disallov RTL subpasses of IPA subpasses.
15651 2008-04-05 Ben Elliston <bje@au.ibm.com>
15653 * tree-cfg.c (need_fake_edge_p): Return false for calls to
15654 builtins that return exactly once and do not throw. Cache call to
15657 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
15659 PR rtl-optimization/34916
15660 PR middle-end/35519
15661 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
15662 between instruction pairs.
15664 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
15666 * doc/invoke.texi: Document -mbitops for SH.
15667 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
15668 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
15669 * config/sh/sh.c (print_operand): Add %t operand code.
15670 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
15671 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
15672 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
15673 (extendqihi2): Likewise.
15674 (movqi_i): Likewise.
15675 (insv): Use bset, bclr and bst instructions for SH2A if possible.
15676 (extv): Use bld instruction for SH2A if possible.
15678 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
15679 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
15680 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
15681 (bset.b, bclr.b): Define peepholes.
15682 * config/sh/sh.opt (mbitops): New option.
15684 2008-04-04 Janis Johnson <janis187@us.ibm.com>
15687 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
15688 and view convert expression.
15690 2008-04-04 Jakub Jelinek <jakub@redhat.com>
15693 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
15695 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
15697 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
15699 * config/i386/cpuid.h (bit_AES): New.
15700 (bit_PCLMUL): Likewise.
15702 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
15703 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
15704 SSE2 if AES or PCLMUL is enabled.
15705 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
15706 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
15707 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
15708 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
15709 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
15710 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
15711 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
15712 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
15713 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
15714 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
15715 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
15716 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
15717 __builtin_ia32_aeskeygenassist128 and
15718 __builtin_ia32_pclmulqdq128.
15719 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
15720 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
15721 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
15723 * config/i386/i386.h (TARGET_AES): New.
15724 (TARGET_PCLMUL): Likewise.
15725 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
15727 * config/i386/i386.md (UNSPEC_AESENC): New.
15728 (UNSPEC_AESENCLAST): Likewise.
15729 (UNSPEC_AESDEC): Likewise.
15730 (UNSPEC_AESDECLAST): Likewise.
15731 (UNSPEC_AESIMC): Likewise.
15732 (UNSPEC_AESKEYGENASSIST): Likewise.
15733 (UNSPEC_PCLMUL): Likewise.
15735 * config/i386/i386.opt (maes): New.
15736 (mpclmul): Likewise.
15738 * config/i386/sse.md (aesenc): New pattern.
15739 (aesenclast): Likewise.
15740 (aesdec): Likewise.
15741 (aesdeclast): Likewise.
15742 (aesimc): Likewise.
15743 (aeskeygenassist): Likewise.
15744 (pclmulqdq): Likewise.
15746 * config/i386/wmmintrin.h: New.
15748 * doc/extend.texi: Document AES and PCLMUL built-in function.
15750 * doc/invoke.texi: Document -maes and -mpclmul.
15752 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
15754 * function.c (free_after_parsing): Replace with
15755 cxx_push_function_context from C++ front-end.
15756 (allocate_struct_function): Don't call langhook.
15757 * langhooks.h (struct lang_hooks_for_functions): Delete.
15758 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
15760 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
15761 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
15762 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
15763 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
15764 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
15765 remove LANG_HOOKS_FUNCTION_INITIALIZER.
15766 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
15768 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
15769 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
15771 2008-04-04 Jakub Jelinek <jakub@redhat.com>
15774 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
15777 2008-04-04 Richard Guenther <rguenther@suse.de>
15779 PR middle-end/35823
15780 * fold-const.c (optimize_minmax_comparison): Use the correct
15781 type for the constant in the simplified comparison.
15783 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
15785 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
15786 Pass L2 size as "--param l2-cache-size" to the compiler.
15787 (decode_l2_cache): New function to decode L2 cache parameters using
15788 0x8000006 extended cpuid function.
15789 (detect_caches_amd): Determine parameters of L2 cache using
15790 decode_l2_caches function.
15791 (decode_caches_intel): Decode L2 cache parameters.
15792 (detect_caches_intel): Determine L2 cache parameters using
15793 decode_caches_intel and decode_l2_caches functions.
15795 2008-04-03 Bob Wilson <bob.wilson@acm.org>
15797 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
15798 secondary input reload for subword loads from the constant pool.
15800 2008-04-03 Janis Johnson <janis187@us.ibm.com>
15803 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
15804 constants of the appropriate size for runtime calculations.
15807 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
15808 decimal-float literal constant zero.
15810 2008-04-03 Jakub Jelinek <jakub@redhat.com>
15813 * c-parser.c (c_parser_omp_atomic): Call
15814 default_function_array_conversion on the RHS.
15816 PR middle-end/35818
15817 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
15818 call is_variable_sized if decl has incomplete type.
15820 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
15822 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
15824 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
15826 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
15828 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
15829 (sgt<u>): Merge sgt and sgtu into new expander.
15830 (sgt, sgtu): Remove expanders.
15831 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
15832 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
15833 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
15834 *sgtu_<mode>_mips16 into new pattern.
15835 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
15836 (sge<u>): Merge sge and sgeu into new expander.
15837 (sge, sgeu): Remove expanders.
15838 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
15840 (*sge_<mode>, second *sge_<mode>): Remove patterns.
15841 (slt<u>): Merge slt and sltu into new expander.
15842 (slt, sltu): Remove expanders.
15843 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
15844 (*slt_<mode>, *sltu_<mode>): Remove patterns.
15845 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
15846 *sltu_<mode>_mips16 into new pattern.
15847 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
15848 (sle<u>): Merge sle and sleu into new expander.
15849 (sle, sleu): Remove expanders.
15850 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
15851 (*sle_<mode>, *sleu_<mode>): Remove patterns.
15852 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
15853 *sleu_<mode>_mips16 into new pattern.
15854 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
15856 2008-04-03 Jan Hubicka <jh@suse.cz>
15858 PR tree-optimization/35795
15859 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
15860 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15861 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15862 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
15863 * score/score3.c (score3_output_mi_thunk): Likewise.
15864 * score/score7.c (score7_output_mi_thunk): Likewise.
15865 * mips/mips.c (mips_output_mi_thunk): Likewise.
15867 2008-04-03 Richard Guenther <rguenther@suse.de>
15869 * tree-vrp.c (extract_range_from_unary_expr): Handle all
15870 conversions. Simplify code.
15872 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
15874 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
15876 2008-04-03 Tom Tromey <tromey@redhat.com>
15877 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15879 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
15880 * config/bfin/t-bfin-linux (generated_files): Add
15881 linux-sysroot-suffix.h.
15882 * doc/install.texi (Prerequisites): Require make 3.80.
15883 * doc/sourcebuild.texi (Front End Directory): Document new
15885 * Makefile.in (generated_files): New variable.
15886 (ALL_HOST_OBJS): New variable.
15887 ($(ALL_HOST_OBJS)): New target.
15889 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
15891 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
15892 (remap_block): Call id->transform_lang_insert_block instead
15894 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
15895 Set id.transform_lang_insert_block to NULL.
15896 (clone_body): Move to cp/optimize.c
15897 * tree-inline.h (struct copy_body_data): Change
15898 transform_lang_insert_block to function pointer.
15899 (copy_generic_body, copy_decl_no_change): Export.
15900 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
15901 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
15902 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
15904 * c-tree.h (insert_block): Kill.
15905 * c-decl.c (insert_block): Kill.
15907 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
15909 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15910 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
15911 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
15913 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
15914 argument, call {push,pop}_function_context from here.
15915 * c-parser.c: Use c_{push,pop}_function_context.
15917 * function.c (push_function_context_to): Move meat ...
15918 (push_function_context): ... here. Simplify.
15919 * function.c (pop_function_context_from): Move meat ...
15920 (pop_function_context): ... here. Simplify.
15921 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
15923 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15924 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
15925 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
15926 * tree.h (push_function_context_to, pop_function_context_from): Remove.
15928 2008-04-03 Ben Elliston <bje@au.ibm.com>
15930 * expmed.c (extract_force_align_mem_bit_field): Remove.
15932 2008-04-03 Richard Guenther <rguenther@suse.de>
15934 PR middle-end/35800
15935 * expr.h (try_casesi): Adjust prototype.
15936 * expr.c (try_casesi): Take fallback label as extra parameter.
15937 Use that for gen_casesi if default_label is NULL.
15938 * stmt.c (expand_case): Pass fallback label to try_casesi,
15939 make sure to fill gaps with a fallback label if default_label
15942 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
15945 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
15947 2008-04-03 Ben Elliston <bje@au.ibm.com>
15949 * expmed.c (extract_split_bit_field): Remove if (0) code.
15950 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
15951 (do_ds_constraint): Likewise.
15953 2008-04-02 Joseph Myers <joseph@codesourcery.com>
15955 * doc/cppopts.texi (-dU): Document.
15956 * c-common.h (flag_dump_macros): Update comment.
15957 * c-opts.c (handle_OPT_d): Handle -dU.
15958 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
15959 dump_queued_macros, cb_used_define, cb_used_undef): New.
15960 (init_pp_output): Handle -dU.
15961 (cb_line_change): Call dump_queued_macros.
15962 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
15964 2008-04-02 Anatoly Sokolov <aesok@post.ru>
15966 * config/avr/predicates.md (io_address_operand): New predicate.
15967 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
15968 * config/avr/avr.c (avr_io_address_p): Remove function.
15969 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
15970 'avr_io_address_p' function.
15971 (out_movhi_r_mr): (Ditto.).
15972 (out_movqi_mr_r): (Ditto.).
15973 (out_movhi_mr_r): (Ditto.).
15974 (avr_address_cost): (Ditto.).
15976 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
15978 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
15979 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
15980 in 32bit mode when XMM registers are available to avoid store
15982 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
15983 corresponding post-reload splitters.
15985 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
15987 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
15988 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
15989 __builtin_ia32_roundss.
15990 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
15991 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
15992 __builtin_ia32_roundss.
15993 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
15994 IX86_BUILTIN_SHUFPD here.
15996 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
15998 * config/i386/i386.md (plogic): New.
15999 (plogicprefix): Likewise.
16001 * config/i386/mmx.md (mmx_<code><mode>3): New.
16002 (mmx_and<mode>3): Removed.
16003 (mmx_ior<mode>3): Likewise.
16004 (mmx_xor<mode>3): Likewise.
16006 * config/i386/sse.md (<code><mode>3): New.
16007 (*<code><mode>3): Likewise.
16008 (*<code><mode>3): Likewise.
16009 (<code><mode>3): Likewise.
16010 (*sse_<code><mode>3): Likewise.
16011 (*sse2_<code><mode>3): Likewise.
16012 (<code>tf3): Likewise.
16013 (*<code>tf3): Likewise.
16014 (and<mode>3): Likewise.
16015 (*and<mode>3): Likewise.
16016 (ior<mode>3): Removed.
16017 (*ior<mode>3): Likewise.
16018 (xor<mode>3): Likewise.
16019 (*xor<mode>3): Likewise.
16020 (*and<mode>3): Likewise.
16021 (*ior<mode>3): Likewise.
16022 (*xor<mode>3): Likewise.
16023 (and<mode>3): Likewise.
16024 (*sse_and<mode>3): Likewise.
16025 (*sse2_and<mode>3): Likewise.
16026 (andtf3): Likewise.
16027 (*andtf3): Likewise.
16028 (ior<mode>3): Likewise.
16029 (*sse_ior<mode>3): Likewise.
16030 (*sse2_ior<mode>3): Likewise.
16031 (iortf3): Likewise.
16032 (*iortf3): Likewise.
16033 (xor<mode>3): Likewise.
16034 (*sse_xor<mode>3): Likewise.
16035 (*sse2_xor<mode>3): Likewise.
16036 (xortf3): Likewise.
16037 (*xortf3): Likewise.
16039 2008-04-02 Richard Guenther <rguenther@suse.de>
16041 PR tree-optimization/14495
16042 PR tree-optimization/34793
16043 * tree-vrp.c (struct switch_update): New structure.
16044 (to_remove_edges, to_update_switch_stmts): New VECs.
16045 (simplify_switch_using_ranges): New function. Remove not taken
16046 case labels and edges.
16047 (simplify_stmt_using_ranges): Call it.
16048 (identify_jump_threads): Mark edges we have queued for removal
16049 so we don't thread them.
16050 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
16052 * tree-cfg.c (group_case_labels): Deal with missing default label.
16053 (tree_verify_flow_info): Allow missing default label.
16054 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
16055 (emit_case_nodes): Likewise.
16056 (expand_case): Do not rely on the default label to be present.
16057 * expr.c (try_casesi): Deal with NULL default_label.
16058 (do_tablejump): Likewise.
16060 2008-04-02 Richard Guenther <rguenther@suse.de>
16062 PR tree-optimization/14495
16063 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
16064 SWITCH_EXPR here ...
16065 (vrp_visit_switch_stmt): ... but here (new function).
16066 (find_case_label_index): New helper function.
16067 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
16069 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16071 * fwprop.c: Fix ISO-C99ism.
16073 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16076 * Makefile.in (objdir): Set it here.
16077 * configure.ac: Not here. Find dynamic linker characteristics.
16078 * exec-tool.in: Use them.
16079 * aclocal.m4: Regenerate.
16080 * configure: Regenerate.
16082 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16084 * expr.c (expand_var): Delete it.
16085 * expr.h (expand_var): Delete prototype.
16086 * function.c (expand_function_start): Use expand_decl instead.
16087 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
16090 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
16092 PR rtl-optimization/35542
16093 * fwprop.c (forward_propagate_and_simplify): Replace
16094 loc_reg_mentioned_in_p with reg_mentioned_p.
16096 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
16098 PR rtl-optimization/35281
16099 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
16100 (propagate_rtx_1): Handle PR_HANDLE_MEM.
16101 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
16102 (varying_mem_p): Move above propagate_rtx.
16103 (all_uses_available_at): Do not check MEMs.
16105 2008-04-02 Rafael Espindola <espindola@google.com>
16107 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
16108 (register_edge_assert_for_2): Split the cond argument.
16109 (register_edge_assert_for_1): Adjust for the change in
16110 register_edge_assert_for_2.
16111 (register_edge_assert_for): Split the cond argument.
16112 (find_switch_asserts): Adjust for the change in
16113 register_edge_assert_for.
16115 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
16117 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
16118 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
16119 offsets for 64-bit mingw.
16120 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
16121 abi for x86_64-pc-mingw.
16123 2008-04-02 Richard Guenther <rguenther@suse.de>
16125 * tree-vrp.c (extract_range_from_assert): Make sure to not
16126 produce range min/max with TREE_OVERFOW set.
16127 If merging a anti-range and a range keep the anti-range if
16128 the range covers all values of the type.
16129 (register_edge_assert_for_2): Only allow sign-changing
16130 conversions in detecting canonical range checks. Also
16131 register an assert for the unsigned name if useful.
16133 PR tree-optimization/35787
16134 * tree-vrp.c (vrp_val_max): New function.
16135 (vrp_val_min): Likewise.
16136 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
16137 (vrp_val_is_min): Likewise.
16138 (supports_overflow_infinity): Use vrp_val_{min,max}.
16139 (negative_overflow_infinity): Likewise.
16140 (positive_overflow_infinity): Likewise.
16141 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
16142 (is_positive_overflow_infinity): Likewise.
16143 (is_overflow_infinity): Likewise.
16144 (avoid_overflow_infinity): Use vrp_val_{min,max} and
16145 vrp_val_is_{min,max}.
16146 (set_and_canonicalize_value_range): Canonicalize anti-ranges
16147 to ranges if possible. Avoid empty ranges.
16149 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16151 PR middle-end/35705
16152 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
16153 the expression is a function address.
16155 2008-04-01 George Helffrich <george@gcc.gnu.org>
16157 PR fortran/35154, fortran/23057
16158 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
16159 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
16160 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
16161 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
16163 (dbxout_syms): Check for COMMON-based symbol and wrap in
16164 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
16165 in bracket for efficiency.
16167 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
16168 using DW_TAG_common_block + member offset.
16169 (add_pubname_string): New function.
16170 (dw_expand_expr): New function to find block name and offset for
16172 (common_check): New function to check whether symbol in Fortran COMMON.
16173 (gen_variable_die): If COMMON, use DW_TAG_common_block.
16175 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
16178 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
16180 2008-04-02 Ben Elliston <bje@au.ibm.com>
16182 * config/v850/v850.md (casesi): Remove if (0) code.
16183 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16184 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16186 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
16188 * config/i386/i386.md (rex64suffix): New mode attribute.
16189 (floathi<mode>2): Disable expander for SSE math.
16190 (*floathi<mode>2_1): New insn insn_and_split pattern.
16191 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
16192 corresponding post-reload splitters.
16193 (*floathi<mode>2_i387): New macroized insn pattern.
16194 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
16195 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
16196 insn_and_split pattern.
16197 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
16198 New macroized instruction patterns and corresponding post-reload
16200 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
16201 and corresponding post-reload splitters.
16202 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
16203 New macroized instruction patterns.
16204 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
16205 macroized instruction patterns and corresponding post-reload splitters.
16206 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
16207 corresponding post-reload splitters.
16208 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
16209 New macroized instruction patterns.
16210 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
16211 corresponding post-reload splitters.
16212 (*floatsi<mode>2_i387): New macroized instruction patterns.
16214 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
16216 * config/i386/i386.md (smaxmin): New.
16217 (umaxmin): Likewise.
16218 (maxminiprefix): Likewise.
16219 (maxminfprefix): Likewise.
16220 (<code><mode>3): Likewise.
16221 (smin<mode>3): Removed.
16222 (smax<mode>3): Likewise.
16224 * config/i386/mmx.md (mmx_<code>v2sf3): New.
16225 (mmx_<code>v4hi3): Likewise.
16226 (mmx_<code>v8qi3): Likewise.
16227 (mmx_smaxv2sf3): Removed.
16228 (mmx_sminv2sf3): Likewise.
16229 (mmx_umaxv8qi3): Likewise.
16230 (mmx_smaxv4hi3): Likewise.
16231 (mmx_uminv8qi3): Likewise.
16232 (mmx_sminv4hi3): Likewise.
16234 * config/i386/sse.md (<addsub><mode>3): New.
16235 (*<addsub><mode>3): Likewise.
16236 (<sse>_vm<addsub><mode>3): Likewise.
16237 (<maxmin><mode>3): Likewise.
16238 (*<maxmin><mode>3_finite): Likewise.
16239 (*<maxmin><mode>3): Likewise.
16240 (<sse>_vm<maxmin><mode>3): Likewise.
16241 (sse3_h<addsub>v4sf3): Likewise.
16242 (sse3_h<addsub>v2df3): Likewise.
16243 (<maxmin>v16qi3): Likewise.
16244 (*<maxmin>v16qi3): Likewise.
16245 (<maxmin>v8hi3): Likewise.
16246 (*<maxmin>v8hi3): Likewise.
16247 (*sse4_1_<maxmin><mode>3): Likewise.
16248 (*sse4_1_<maxmin><mode>3): Likewise.
16249 (add<mode>3): Removed.
16250 (*add<mode>3): Likewise.
16251 (<sse>_vmadd<mode>3): Likewise.
16252 (sub<mode>3): Likewise.
16253 (*sub<mode>3): Likewise.
16254 (<sse>_vmsub<mode>3): Likewise.
16255 (smin<mode>3): Likewise.
16256 (*smin<mode>3_finite): Likewise.
16257 (*smin<mode>3): Likewise.
16258 (<sse>_vmsmin<mode>3): Likewise.
16259 (smax<mode>3): Likewise.
16260 (*smax<mode>3_finite): Likewise.
16261 (*smax<mode>3): Likewise.
16262 (<sse>_vmsmax<mode>3): Likewise.
16263 (sse3_haddv4sf3): Likewise.
16264 (sse3_haddv2df3): Likewise.
16265 (sse3_hsubv4sf3): Likewise.
16266 (sse3_hsubv2df3): Likewise.
16267 (umaxv16qi3): Likewise.
16268 (*umaxv16qi3): Likewise.
16269 (smaxv8hi3): Likewise.
16270 (*smaxv8hi3): Likewise.
16271 (*sse4_1_smax<mode>3): Likewise.
16272 (*sse4_1_umax<mode>3): Likewise.
16273 (uminv16qi3): Likewise.
16274 (*uminv16qi3): Likewise.
16275 (sminv8hi3): Likewise.
16276 (*sminv8hi3): Likewise.
16277 (*sse4_1_smin<mode>3): Likewise.
16278 (*sse4_1_umin<mode>3): Likewise.
16280 2008-04-01 Rafael Espindola <espindola@google.com>
16282 * tree-cfg.c (verify_expr): remove in_phi.
16283 (verify_stmt): Don't call walk_tree with verify_expr. Use
16284 is_gimple_min_invariant instead of is_gimple_val.
16286 2008-04-01 Joseph Myers <joseph@codesourcery.com>
16288 * doc/include/gpl_v3.texi: Update for manpage generation.
16289 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
16291 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
16292 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
16293 gpl_v3.texi instead of gpl.texi.
16296 2008-04-01 Jakub Jelinek <jakub@redhat.com>
16299 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
16301 2008-04-01 Rafael Espindola <espindola@google.com>
16303 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
16304 (extract_code_and_val_from_cond): Use
16305 extract_code_and_val_from_cond_with_ops.
16307 2008-04-01 Jan Hubicka <jh@suse.cz>
16309 * function.c (free_after_compilation): Free epilogue_delay_list.
16310 (prepare_function_start): Assert that previous compilation was freed.
16312 2008-04-01 Jan Hubicka <jh@suse.cz>
16313 Jim Wilson <wilson@tuliptree.org>
16314 Andreas Tobler <andreast@gcc.gnu.org>
16316 PR middle-end/35781
16317 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
16318 rtl.emit instead cfun->emit.
16319 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
16320 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
16322 2008-04-01 Ben Elliston <bje@au.ibm.com>
16324 * doc/c-tree.texi (Function Basics): Fix grammatical error.
16326 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
16328 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
16330 (fprofile-use): Add var flag_profile_use
16331 * coverage.c (coverage_begin_output): Do not open a gcno file for
16332 output only if -ftest-coverage is set.
16333 Do not add getpwd() to gcda file path.
16334 (build_gcov_info): Check the new flag
16335 flag_profile_datafile_relative_path.
16336 (coverage_init): Use profile_data_prefix.
16337 Read profile counter only if flag_profile_use is set.
16338 * opts.c (common_handle_option): New option fprofile-use=,
16339 fprofile-dir=, fprofile-generate=.
16340 * toplev.c (profile_data_prefix): New variable definition.
16341 * toplev.h (profile_data_prefix): New declaration.
16342 * doc/invoke.tex (Option Summary, Optimization Options):
16345 2008-03-31 James E. Wilson <wilson@tuliptree.org>
16347 * varasm.c (output_constant_pool_1): In LABEL_REF check,
16348 use tmp consistently.
16351 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
16352 * config/ia64/ia64.c (rtx_needs_barrier): Handle
16353 UNSPEC_FR_RECIP_APPROX_RES.
16354 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
16356 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
16359 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
16361 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
16363 PR middle-end/30186
16364 * fold-const.c (fold_indirect_ref_1): Support accessing non first
16365 element of the vector via a pointer.
16367 2008-03-31 Ian Lance Taylor <iant@google.com>
16369 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
16371 2008-03-31 Jan Hubicka <jh@suse.cz>
16373 * builtins.c (expand_builtin_setjmp_receiver): Update call of
16374 get_arg_pointer_save_area.
16375 * expr.c (init_expr): Just clear out rtl.expr.
16376 * function.c (free_after_compilation): Clear out whole RTL structure.
16377 (get_func_frame_size): Merge into ...
16378 (get_frame_size): ... this one.
16379 (assign_stack_local_1): Merge into ...
16380 (assign_stack_local): ... this one.
16381 (expand_function_end): Update call of get_arg_pointer_save_area.
16382 (get_art_pointer_save_area): Remove cfun argument.
16383 * function.h (emit_status): regno_pointer_align does not need length
16384 attribute. Move x_regno_reg_rtx to ...
16385 (regno_reg_rtx): ... new global array.
16386 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
16387 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
16388 apply_args_value, forced_labels, stack_pointer_delta):
16390 (struct varasm_status): Move here from varasm.c
16391 (struct rtl_data): New. Move here some fields from struct function.
16392 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16393 frame_offset, stack_check_probe_note, arg_pointer_save_area,
16394 used_temp_slots avail_temp_slots, temp_slot_level,
16395 nonlocal_goto_handler_labels): Update accesstors.
16396 (rtl): New global variable.
16397 (struct function): Move some fileds to rtl_data.
16398 (get_arg_pointer_save_area): Update prototype.
16399 * emit-rtl.c (rtl): Declare.
16400 (regno_reg_rtx): Declare.
16401 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16403 (gen_reg_rtx): Update.
16404 (init_virtual_regs): Do not tate emit_status argument.
16405 (init_emit): Do not allocate emit.
16406 * varasm.c (varasm_statuc): Move to function.h.
16407 (n_deferred_constatns): Update accestor.
16408 (init_varasm_status): Do not allocate varasm_status.
16409 (force_const_mem, get_pool_size, output_constant_pool): Update.
16410 * stmt.c (force_label_rtx): Do not use x_ prefixes.
16411 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16413 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
16415 PR rtl-optimization/35729
16416 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
16419 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
16422 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
16423 load/store if memory is unaligned.
16424 (*movti_rex64): Likewise.
16426 * config/i386/predicates.md (misaligned_operand): New.
16428 2008-03-31 Andrew Pinski <pinskia@gmail.com>
16431 * tree-ssa-phiopt.c (conditional_replacement): Return early for
16434 2008-03-31 Jan Beulich <jbeulich@novell.com>
16436 * config/ia64/constraints.md: Add 'j' constraint.
16437 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
16438 (movdi_internal): Likewise.
16440 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
16443 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
16445 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
16448 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
16449 proper error message for the third argument on blendpd and
16452 * config/i386/sse.md (blendbits): New.
16453 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
16455 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
16457 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
16459 2008-03-30 Richard Guenther <rguenther@suse.de>
16461 PR middle-end/31023
16462 * fold-const.c (fold_sign_changed_comparison): Do leave
16463 conversions to base-types alone.
16465 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
16467 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
16468 the link register if one altivec register is be saved.
16470 2008-03-30 Ben Elliston <bje@au.ibm.com>
16472 * final.c (final_scan_insn): Remove if (0) code.
16474 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
16476 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
16478 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
16480 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
16481 of V4SFmode to ix86_binary_operator_ok.
16483 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
16485 * config/i386/i386.c (override_options): Initialize
16486 ix86_veclib_handler to ix86_veclibabi_svml when
16487 -mveclibabi=svml is used.
16488 (ix86_veclibabi_svml): New function for SVML ABI style
16489 vectorization support.
16490 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
16492 2008-03-28 Rafael Espindola <espindola@google.com>
16494 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
16495 (tree_binary_nonnegative_warnv_p): Make it public.
16496 (tree_single_nonnegative_warnv_p): Make it public.
16497 (tree_invalid_nonnegative_warnv_p): Make it public.
16498 (tree_unary_nonzero_warnv_p): Make it public.
16499 (tree_binary_nonzero_warnv_p): Make it public
16500 (tree_single_nonzero_warnv_p): Make it public.
16501 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
16502 (extract_range_from_binary_expr): Split the expr argument.
16503 (extract_range_from_unary_expr): Split the expr argument.
16504 (extract_range_from_comparison): Split the expr argument.
16505 (extract_range_from_expr): Use the new aux functions.
16506 (vrp_evaluate_conditional_warnv): Use
16507 vrp_evaluate_conditional_warnv_with_ops.
16508 * tree.h (tree_unary_nonzero_warnv_p): Declare.
16509 (tree_binary_nonzero_warnv_p): Declare.
16510 (tree_single_nonzero_warnv_p): Declare.
16511 (tree_expr_nonzero_warnv_p): Declare.
16512 (tree_unary_nonnegative_warnv_p): Declare.
16513 (tree_binary_nonnegative_warnv_p): Declare.
16514 (tree_single_nonnegative_warnv_p): Declare.
16515 (tree_invalid_nonnegative_warnv_p): Declare.
16517 2008-03-28 Richard Guenther <rguenther@suse.de>
16519 PR tree-optimization/30317
16520 PR tree-optimization/30911
16521 PR tree-optimization/34793
16522 * tree-vrp.c (set_and_canonicalize_value_range): New function.
16523 (struct assert_locus_d): New member EXPR.
16524 (register_new_assert_for): Add EXPR parameter to support
16525 ASSERT_EXPR <name, expr OP limit>.
16526 (register_edge_assert_for_1): Adjust callers.
16527 (find_assert_locations): Likewise.
16528 (process_assert_insertions_for): Build condition from expression.
16529 (extract_range_from_assert): Handle ASSERT_EXPRs
16530 of the form ASSERT_EXPR <name, expr OP limit>.
16531 (register_edge_assert_for_2): New helper registering
16532 asserts for comparisons. Recognize range tests of the form
16533 (unsigned)i - CST1 OP CST2.
16534 (register_edge_assert_for_1): Use it.
16535 (register_edge_assert_for): Likewise.
16536 (needs_overflow_infinity): Integer sub-types
16537 do not need overflow infinities.
16538 (vrp_val_is_max): The extreme values of integer sub-types
16539 are those of the base type.
16540 (vrp_val_is_min): Likewise.
16541 * tree.def (ASSERT_EXPR): Document extra allowed conditional
16544 2008-03-28 Nick Clifton <nickc@redhat.com>
16547 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
16548 Return GENERAL_REGS for stack adjustment reloads.
16550 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
16553 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
16554 const_vector when all the vectors are constant.
16556 2008-03-27 Bob Wilson <bob.wilson@acm.org>
16558 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
16560 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
16561 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
16563 (s<code>_sf): Use new scc_sf attribute for opcode names.
16565 2008-03-27 Tom Tromey <tromey@redhat.com>
16567 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
16568 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
16569 config/spu/t-spu-elf, config/i386/t-interix,
16570 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
16571 config/i386/x-darwin, config/i386/x-mingw32,
16572 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
16573 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
16574 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
16575 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
16576 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
16577 config/rs6000/x-darwin, config/rs6000/t-rs6000,
16578 config/score/t-score-elf, config/arm/t-strongarm-pe,
16579 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
16580 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
16581 Revert automatic dependency patch.
16583 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
16586 * config/i386/i386.c (ix86_function_arg_boundary): Align
16587 decimal floating point to its natural boundary.
16589 2008-03-27 Richard Guenther <rguenther@suse.de>
16591 PR middle-end/35716
16592 * fold-const.c (fold_comparison): Restrict distinct decl
16593 comparison folding to VAR_DECLs and PARM_DECLs. Do not
16594 solely rely on operand_equal_p.
16596 2008-03-27 Richard Guenther <rguenther@suse.de>
16599 * c-common.c (handle_weak_attribute): Reject combination of
16602 2008-03-27 Richard Guenther <rguenther@suse.de>
16604 PR tree-optimization/32810
16605 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
16606 conversions from DECL_INITIAL.
16607 (fold_const_aggregate_ref): Likewise from constructor elements.
16609 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
16611 * tree-affine.h (aff_combination_expand): Declare.
16612 (get_inner_reference_aff): Likewise.
16613 * tree-affine.c (aff_combination_expand): Split out from
16614 tree_to_aff_combination_expand.
16615 (get_inner_reference_aff): New function.
16616 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
16617 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
16618 (struct lim_aux_data): sm_done field removed.
16619 (mem_ref_loc_p, mem_ref_locs_p): New types.
16620 (struct mem_ref): Added id, stored, accesses_in_loop,
16621 indep_loop, dep_loop, indep_ref, dep_ref fields.
16622 Removed is_stored, locs and next fields.
16623 (memory_accesses): New variable.
16624 (movement_possibility): Do not allow moving statements
16625 that store to memory.
16626 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
16628 (determine_max_movement): For statements with memory references,
16629 find the outermost loop in that the reference is independent.
16630 (move_computations_stmt): Mark the virtual operands for renaming.
16631 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
16632 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
16633 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
16634 add_vop_ref_mapping, create_vop_ref_mapping_loop,
16635 create_vop_ref_mapping, analyze_memory_references,
16636 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
16637 get_all_locs_in_loop, ref_always_accessed_p,
16638 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
16639 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
16640 store_motion_loop, store_motion): New functions.
16641 (struct vop_to_refs_elt): New type.
16642 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
16643 memref_hash, memref_eq, hoist_memory_references): Rewritten.
16644 (schedule_sm): Replaced by...
16645 (execute_sm): ... this.
16646 (determine_lsm_ref, hoist_memory_references,
16647 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
16648 find_more_ref_vops, free_mem_ref, free_mem_refs,
16649 determine_lsm_loop, determine_lsm): Removed.
16650 (tree_ssa_lim_finalize): Free data structures used by store motion.
16651 (tree_ssa_lim): Call analyze_memory_references. Use
16652 store_motion instead of determine_lsm.
16654 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
16656 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
16657 rename tmake_file to m68hc11/t-m68hc11.
16658 (mcore): Set inhibit_libc to true.
16659 * config.host (alpha*-dec-*vms*): Set extra_programs.
16660 (interix3*): Don't use host_xmake_file.
16661 * configure.ac: Let config.gcc override inhibit_libc.
16662 * configure: Regenerate.
16664 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
16665 * config/t-openbsd-thread: Remove commented out lines.
16667 * config/x-interix: Remove.
16669 * config/m68hc11/t-m68hc11-gas: Rename to...
16670 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
16672 * config/mcore/t-mcore: Remove T_CFLAGS.
16673 * config/mcore/t-mcore-pe: Likewise.
16675 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
16677 * configure.ac: Replace custom __GNU_SOURCE test with
16678 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
16679 * aclocal.m4: Regenerate.
16680 * configure: Regenerate.
16681 * config.in: Regenerate.
16683 2008-03-27 Richard Guenther <rguenther@suse.de>
16685 * fold-const.c (target.h): Include.
16686 (fold_comparison): Fold comparison of addresses of decls
16687 that bind locally or of constants. Consolidate address folding code.
16688 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
16689 results from fold_binary_to_constant.
16690 (compare_values_warnv): Likewise.
16692 2008-03-27 Andrew Pinski <pinskia@gmail.com>
16694 PR middle-end/35429
16695 * fold-const.c (fold_truthop): Check for integeral types when folding
16696 a == 0 && b == 0 and a != 0 || b != 0 .
16698 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
16700 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
16702 2008-03-26 Andreas Schwab <schwab@suse.de>
16704 * doc/invoke.texi: Fix use of @item vs. @itemx.
16706 2008-03-26 Tom Tromey <tromey@redhat.com>
16708 * Makefile.in (build/gensupport.o, build/print-rtl.o,
16709 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
16710 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
16711 build/gencodes.o, build/genconditions.o, build/genconfig.o,
16712 build/genconstants.o, build/genemit.o, build/genextract.o,
16713 build/genflags.o, build/genmddeps.o, build/genopinit.o,
16714 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
16717 2008-03-26 Richard Guenther <rguenther@suse.de>
16720 2008-03-26 Richard Guenther <rguenther@suse.de>
16722 * fold-const.c (target.h): Include.
16723 (fold_comparison): Fold comparison of addresses of two decls
16724 that bind locally. Consolidate address folding code.
16726 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16728 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
16729 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
16730 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
16731 dconstsqrt2, dconstthird, dconste and/or dconst10.
16732 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
16733 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
16734 dconstsqrt2, dconste): Delete.
16735 (init_emit_once): Likewise. Simplify initializing dconstm1.
16737 * real.c (get_real_const): New.
16738 * real.h (dconst3, dconst10, dconstm2, dconstthird,
16739 dconstsqrt2, dconste): Delete.
16740 (real_value_const, get_real_const): New.
16742 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
16744 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
16746 * config/i386/i386.c (ix86_function_arg_boundary): Check
16747 BIGGEST_ALIGNMENT instead of 128.
16748 (setup_incoming_varargs_64): Likewise.
16750 2008-03-26 Tom Tromey <tromey@redhat.com>
16752 * Makefile.in (DEPFILES): Add missing '/'.
16754 2008-03-26 Richard Guenther <rguenther@suse.de>
16756 * fold-const.c (target.h): Include.
16757 (fold_comparison): Fold comparison of addresses of two decls
16758 that bind locally. Consolidate address folding code.
16760 2008-03-26 Nick Clifton <nickc@redhat.com>
16763 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
16764 not allow INT+INT as a legitimate addressing mode.
16766 2008-03-26 Richard Guenther <rguenther@suse.de>
16768 * tree-flow.h (widen_bitfield): Remove declaration.
16769 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
16770 (widen_bitfield): Remove function.
16771 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
16774 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
16777 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
16780 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
16782 PR rtl-optimization/35232
16783 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
16784 (forget_old_reloads_1, forget_marked_reloads): Don't clear
16785 reg_reloaded_call_part_clobbered here.
16786 (reload_regs_reach_end_p): New function.
16787 (reload_reg_rtx_for_input): New variable.
16788 (reload_reg_rtx_for_output): Likewise.
16789 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
16790 when reassigning a pseudo register. Load reloadreg from
16791 reload_reg_rtx_for_input, moving the mode and register
16793 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
16794 instead of the original when deciding whether an input reload
16795 would be a no-op or whether an output reload can be deleted.
16796 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
16797 when setting up new_spill_reg_store. Load it from
16798 reload_reg_rtx_for_output, moving the mode and register
16800 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
16801 instead of the original when deciding whether an output reload
16802 would be a no-op. Do the same when modifying insn notes.
16803 Use rtx_equal_p instead of == to compare the registers.
16804 (inherit_piecemeal_p): Take a mode and two register numbers
16806 (emit_reload_insns): Clear new_spill_reg_store for every hard
16807 register in the reload register. Remove spill registers
16808 from reg_reloaded_valid before considering whether to record
16809 inheritance information for them. Use reload_reg_rtx_for_output
16810 instead of reg_rtx when recording output reloads. Use
16811 reload_reg_rtx_for_input instead of reg_rtx when recording
16812 input reloads. Set or clear reg_reloaded_call_part_clobbered
16813 at the same time as setting reg_reloaded_valid.
16814 (delete_output_reload): Add a new_reload_reg parameter and use it
16815 instead of rld[j].reg_rtx.
16816 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
16819 2008-03-25 Tom Tromey <tromey@redhat.com>
16821 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
16822 (build/genattr.o): Likewise.
16823 (build/genattrtab.o): Likewise.
16824 (build/gencodes.o): Likewise.
16825 (build/genconfig.o): Likewise.
16826 (build/genconstants.o): Likewise.
16827 (build/genemit.o): Likewise.
16828 (build/genextract.o): Likewise.
16829 (build/genflags.o): Likewise.
16831 2008-03-25 Bob Wilson <bob.wilson@acm.org>
16833 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
16834 instead of size_int for integer types.
16835 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
16836 to match type of MINUS_EXPR.
16838 2008-03-25 Tom Tromey <tromey@redhat.com>
16840 * configure: Rebuilt.
16841 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
16844 2008-03-25 Tom Tromey <tromey@redhat.com>
16846 * config/x-solaris (host-solaris.o): Update.
16847 * config/x-linux (host-linux.o): Update.
16848 * config/x-hpux (host-hpux.o): Update.
16849 * config/x-darwin (host-darwin.o): Update.
16850 * config/v850/t-v850e (v850-c.o): Update.
16851 * config/v850/t-v850 (v850-c.o): Update.
16852 * config/t-vxworks (vxworks.o): Update.
16853 * config/t-sol2 (sol2-c.o, sol2.o): Update.
16854 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
16855 * config/spu/t-spu-elf (spu-c.o): Update.
16857 * config/sh/t-symbian (sh-c.o): Update.
16858 (symbian.o): Update.
16859 * config/sh/t-sh (sh-c.o): Update.
16860 * config/score/t-score-elf (score7.o, score3.o): Update.
16861 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
16862 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
16863 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
16864 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
16865 (rs6000.o): Remove.
16866 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16867 * config/m32c/t-m32c (m32c-pragma.o): Update.
16868 * config/ia64/t-ia64 (ia64-c.o): Update.
16869 * config/i386/x-mingw32 (host-mingw32.o): Update.
16870 * config/i386/x-i386 (driver-i386.o): Update.
16871 * config/i386/x-darwin (host-i386-darwin.o): Update.
16872 * config/i386/x-cygwin (host-cygwin.o): Update.
16873 * config/i386/t-nwld (nwld.o): Update.
16874 * config/i386/t-netware (netware.o): Update.
16875 * config/i386/t-interix (winnt.o): Update.
16876 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
16877 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
16878 msformat-c.o): Update.
16879 * config/bfin/t-bfin-linux (generated_files): Add
16880 linux-sysroot-suffix.h.
16881 * config/arm/t-wince-pe (pe.o): Update.
16882 * config/arm/t-strongarm-pe (pe.o): Update.
16883 * config/arm/t-pe (pe.o): Update.
16884 * config/arm/t-arm (arm-c.o): Update.
16885 * doc/install.texi (Prerequisites): Require make 3.80.
16886 * Makefile.in: Remove .o targets.
16887 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
16888 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
16889 (simple_generated_h, simple_generated_c): Move earlier.
16890 (generated_files): New variable.
16891 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
16892 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
16893 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
16894 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
16895 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
16896 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
16897 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
16898 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
16899 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
16900 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
16901 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
16902 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
16904 (COMPILE.base, COMPILE): New variables.
16905 (%.o): New pattern rule.
16906 (ALL_HOST_OBJS): New variable.
16907 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
16908 (dummy-checksum.o, cc1-checksum.o): Remove.
16909 (DRIVER_SHLIB): New variable.
16910 (DRIVER_DEFINES): Use it.
16911 (gencondmd.c): Move out of build/.
16912 (s-conditions): Update.
16913 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
16914 (ALL_BUILD_OBJS): Likewise.
16915 (build/%.o): Use BUILDCOMPILE.
16916 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
16917 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
16918 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
16919 build/gencheck.o, build/gencodes.o, build/genconditions.o,
16920 build/genconfig.o, build/genconstants.o, build/genemit.o,
16921 build/genextract.o, build/genflags.o, build/genmddeps.o,
16922 build/genopinit.o, build/genoutput.o, build/genpeep.o,
16923 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
16924 build/gen-protos.o, build/scan.o, build/fix-header.o,
16925 build/scan-decls.o): Simplify.
16926 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
16927 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
16928 prefix.o, toplev.o): Reduce to variable setting.
16929 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
16930 ($(out_object_file), gcc-options.o): New targets.
16931 ($(ALL_HOST_OBJS)): New target. Include dependency files.
16932 * configure: Rebuilt.
16933 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
16934 * doc/sourcebuild.texi (Front End Directory): Document new variable.
16936 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
16938 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
16939 complain when we hit an error, return ERROR_MARK_NODE.
16941 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
16943 * config/sh/constraints.md (Pso, Psz): New constraints.
16944 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
16945 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
16947 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
16949 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
16950 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
16952 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
16954 * config/sh/sh.md (prefetch): Add condition for SH2A target.
16955 (prefetch_sh2a): New.
16957 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
16958 Naveen.H.S <naveen.hs@kpitcummins.com>
16960 * config/sh/constraints.md (I28): New constraint.
16961 * config/sh/sh.c (broken_move): Add support for movi20s.
16962 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
16964 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
16965 Jayant Sonar <Jayant.sonar@kpitcummins.com>
16966 Naveen.H.S <naveen.hs@kpitcummins.com>
16968 * config/sh/sh.c (SH_ATTRIBUTES): Define.
16969 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
16970 (print_operand): Handle resbank in %@ operand code.
16971 (sh_encode_section_info): New.
16972 (push_regs): Add conditions for resbank.
16973 (sh_expand_epilogue): Likewise.
16974 (sh_insert_attributes): Likewise.
16975 (sh_attribute_table): Likewise.
16976 (sh_handle_resbank_handler_attribute): New.
16977 (sh2a_handle_function_vector_handler_attribute): New.
16978 (sh2a_is_function_vector_call): New.
16979 (sh2a_get_function_vector_number): New.
16980 (sh2a_function_vector_p): New.
16981 (sh_cfun_resbank_handler_p): New.
16982 * config/sh/sh.md (calli): Emit jsr/n if possible.
16983 (calli_tbr_rel): New.
16984 (calli_pcrel): Emit jsr/n if possible.
16985 (return_i): Emit rts/n if possible.
16986 (call_valuei_tbr_rel): New.
16987 (call_valuei_pcrel): Add condition for SH2A target.
16988 (call_value): Likewise.
16989 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
16990 (sh2a_get_function_vector_number): Likewise.
16991 (sh2a_is_function_vector_call): Likewise.
16992 * doc/extend.texi: Document TBR relative addressing of SH2A.
16993 (resbank): Add description for SH2A.
16995 2008-03-24 Richard Guenther <rguenther@suse.de>
16998 * gimplify.c (gimplify_modify_expr): For frontend type-correct
16999 pointer assignments change conversions according to middle-end rules.
17000 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17001 * configure.ac: Include type checking in yes.
17002 * configure: Regenerate.
17004 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17006 * diagnostic.c (diagnostic_count_diagnostic): Delete.
17007 (diagnostic_report_diagnostic): Update. Handle ICEs here.
17009 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
17011 * gthr-vxworks.h (UNUSED): Define.
17013 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
17015 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
17017 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
17019 * doc/extend.texi (Function Attributes): Add missing comma in the
17020 example of the "alloc_size" attribute.
17022 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
17025 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
17027 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17030 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
17033 * stor-layout.c (update_alignment_for_field): Set minimum alignment
17034 of the underlying type of a MS bitfield layout to the natural
17035 alignment of the type.
17037 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
17039 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17040 to their natural alignment to avoid store forwarding stalls.
17042 2008-03-22 Richard Guenther <rguenther@suse.de>
17044 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
17045 For PHI nodes verify the address is invariant.
17046 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
17047 (get_symbol_constant_value): Use is_gimple_min_invariant.
17048 (maybe_fold_stmt_indirect): Likewise.
17050 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
17052 PR rtl-optimization/33927
17053 * Makefile.in (dse.o): Depend on $(TM_P_H).
17054 * expr.h (extract_low_bits): Declare.
17055 * expmed.c (extract_low_bits): New function.
17056 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
17057 * dse.c: Include tm_p.h.
17058 (find_shift_sequence): Remove the read_reg argument and return the
17059 read value. Emit the instructions instead of returning them.
17060 Iterate on new_mode rather than calculating it each time.
17061 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
17062 source to NEW_MODE and extract_low_bits to convert the shifted
17063 value to READ_MODE.
17064 (replace_read): Allow the load and store to have different mode
17065 classes. Use extract_low_bits when SHIFT == 0. Create the shift
17066 or extraction instructions before trying the replacement. Update
17067 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
17069 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
17071 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
17072 to their natural alignment to avoid store forwarding stalls.
17074 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17077 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
17078 encouraging but not allowing gprs for input;
17079 change the input constraint to !f#r.
17080 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
17082 change the output constraint to !f#r.
17084 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
17087 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
17088 corresponding post-reload splitters.
17089 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
17090 when x87 FP math is selected.
17091 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
17092 New function prototype.
17093 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
17094 unreachable function to ease macroization of insn patterns.
17096 2008-03-21 Martin Jambor <mjambor@suse.cz>
17098 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
17099 reference dumps if ddr is NULL or dependence is unknown.
17101 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
17103 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
17104 unsigned extension into account.
17105 (ATOMIC_COMPARE_AND_SWAP): Likewise.
17106 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
17107 Do computations on a scratch register.
17109 2008-03-21 Richard Guenther <rguenther@suse.de>
17111 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
17112 Use is_gimple_min_invariant instead of TREE_INVARIANT.
17113 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
17114 * tree-ssa-dom.c (record_equality): Likewise.
17115 * tree-inline.c (copy_body_r): Likewise.
17116 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
17119 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
17121 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
17122 as 'delete_unused' argument.
17124 2008-03-20 Richard Guenther <rguenther@suse.de>
17126 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
17127 special casing of constant qualifiers.
17128 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
17129 care about them in general.
17130 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
17131 regardless of their type.
17132 (fold_stmt_r): Forcefully fold *& if we end up with that.
17134 2008-03-20 Paul Brook <paul@codesourcery.com>
17136 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
17137 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
17139 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
17141 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
17142 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
17144 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
17146 * common.opt (Wmudflap): New option.
17147 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
17148 (mx_register_decls): Likewise.
17149 (mudflap_finish_file): Likewise.
17150 * doc/invoke.texi: Document -Wno-mudflap.
17152 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
17154 * c-format.c (replace_format_name_to_system_name): New.
17155 (cmp_attribs): New.
17156 (convert_format_name_to_system_name): New.
17157 (decode_format_attr): Add use of convert_format_name_to_system_name.
17158 (format_types_orig): Add gnu_ prefix to names.
17159 (check_format_info_main): Special treating of \0 escaped names for
17160 supporting multi-character format specifiers as I32, I64.
17161 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
17162 (gnu_target_overrides_format_attributes): New.
17163 * c-format.h: Add structure target_ovr_attr to hold
17164 system specific formatter names.
17165 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
17166 msformat-c.o file to c_target_objs and cxx_target_objs.
17167 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17168 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
17169 (TARGET_N_FORMAT_TYPES): New.
17170 * config/i386/msformat-c.c: New.
17171 * config/i386/t-cygming: Add build rule for msformat-c.o.
17172 * doc/extend.texi: Add new format names gnu_* and ms_* and
17174 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
17176 2008-03-20 Ira Rosen <irar@il.ibm.com>
17178 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
17179 optimizations turned on under -O3.
17180 (ftree-vectorize): Add that the flag is turned on with -O3.
17182 2008-03-20 Ben Elliston <bje@au.ibm.com>
17184 * regmove.c (try_auto_increment): Fix spelling error in comment.
17185 * final.c (final_scan_insn): Likewise.
17187 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
17190 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
17191 allocator preferences for "y" and "r" class registers.
17192 ("*mov<mode>_internal"): Ditto.
17193 ("*movv2sf_internal_rex64"): Ditto.
17194 ("*movv2sf_internal"): Ditto.
17196 2008-03-19 Michael Matz <matz@suse.de>
17198 PR middle-end/35616
17199 * calls.c (expand_call): Check overlap of arguments with call
17200 address for sibcalls.
17202 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
17205 * stor-layout.c (update_alignment_for_field): Set minimum alignment
17206 of the underlying type of a MS bitfield layout to the natural
17207 alignment of the type.
17209 2008-03-19 Jan Hubicka <jh@suse.cz>
17212 * toplev.c (decode_d_option): Handle all CPP flags.
17213 * tree-vrp.c: Update tree_pass descriptors.
17214 * regrename.c: Update tree_pass descriptors.
17215 * fwprop.c: Update tree_pass descriptors.
17216 * doc/invoke.texi: Remove documentation of dropped -d? flags.
17217 * tree-into-ssa.c: Update tree_pass descriptors.
17218 * tree-dump.c: Update tree_pass descriptors.
17219 * tree-complex.c: Update tree_pass descriptors.
17220 * tree-dump.h: Update tree_pass descriptors.
17221 * see.c: Update tree_pass descriptors.
17222 * cgraphbuild.c: Update tree_pass descriptors.
17223 * tracer.c: Update tree_pass descriptors.
17224 * tree-loop-distribution.c: Update tree_pass descriptors.
17225 * cgraph.c: Update tree_pass descriptors.
17226 * postreload-gcse.c: Update tree_pass descriptors.
17227 * postreload.c: Update tree_pass descriptors.
17228 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
17229 * tree-tailcall.c: Update tree_pass descriptors.
17230 * tree-pass.h (tree_opt_pass): Rename to ...
17231 (opt_pass) ... this one; add "type" field and remove letter field.
17232 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
17233 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
17234 all_lowering_passes): Update declaration.
17235 * ipa-cp.c: Update tree_pass descriptors.
17236 * final.c: Update tree_pass descriptors.
17237 * omp-low.c: Update tree_pass descriptors.
17238 * tree-ssa-dse.c: Update tree_pass descriptors.
17239 * ipa-reference.c: Update tree_pass descriptors.
17240 * tree-ssa-uncprop.c: Update tree_pass descriptors.
17241 * auto-inc-dec.c: Update tree_pass descriptors.
17242 * reorg.c: Update tree_pass descriptors.
17243 * cgraphunit.c: Update tree_pass descriptors.
17244 * tree-ssa-copyrename.c: Update tree_pass descriptors.
17245 * tree-ssa-ccp.c: Update tree_pass descriptors.
17246 * df-core.c: Update tree_pass descriptors.
17247 * mode-switching.c: Update tree_pass descriptors.
17248 * tree-nomudflap.c: Update tree_pass descriptors.
17249 * modulo-sched.c: Update tree_pass descriptors.
17250 * ipa-pure-const.c: Update tree_pass descriptors.
17251 * cse.c: Update tree_pass descriptors.
17252 * web.c: Update tree_pass descriptors.
17253 * tree-stdarg.c: Update tree_pass descriptors.
17254 * tree-ssa-math-opts.c: Update tree_pass descriptors.
17255 * tree-ssa-dom.c: Update tree_pass descriptors.
17256 * tree-nrv.c: Update tree_pass descriptors.
17257 * tree-ssa-alias.c: Update tree_pass descriptors.
17258 * loop-init.c: Update tree_pass descriptors.
17259 * gimple-low.c: Update tree_pass descriptors.
17260 * ipa-inline.c: Update tree_pass descriptors.
17261 * tree-ssa-sink.c: Update tree_pass descriptors.
17262 * global.c: Update tree_pass descriptors.
17263 * ifcvt.c: Update tree_pass descriptors.
17264 * jump.c: Update tree_pass descriptors.
17265 * predict.c: Update tree_pass descriptors.
17266 * tree-ssa-loop.c: Update tree_pass descriptors.
17267 * recog.c: Update tree_pass descriptors.
17268 * dse.c: Update tree_pass descriptors.
17269 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
17270 * tree-eh.c: Update tree_pass descriptors.
17271 * regmove.c: Update tree_pass descriptors.
17273 * function.c: Update tree_pass descriptors.
17274 * tree-vectorizer.c: Update tree_pass descriptors.
17275 * gcse.c: Update tree_pass descriptors.
17276 * ipa-type-escape.c: Update tree_pass descriptors.
17277 * tree-if-conv.c: Update tree_pass descriptors.
17278 * init-regs.c: Update tree_pass descriptors.
17279 * ipa.c: Update tree_pass descriptors.
17280 * tree-ssa-phiopt.c: Update tree_pass descriptors.
17281 * rtl-factoring.c: Update tree_pass descriptors.
17282 * lower-subreg.c: Update tree_pass descriptors.
17283 * bt-load.c: Update tree_pass descriptors.
17284 * tree-dfa.c: Update tree_pass descriptors.
17285 * except.c: Update tree_pass descriptors.
17286 * emit-rtl.c: Update tree_pass descriptors.
17287 * cfgexpand.c: Update tree_pass descriptors.
17288 * tree-cfgcleanup.c: Update tree_pass descriptors.
17289 * cfgcleanup.c: Update tree_pass descriptors.
17290 * tree-ssa-pre.c: Update tree_pass descriptors.
17291 * tree-sra.c: Update tree_pass descriptors.
17292 * tree-mudflap.c: Update tree_pass descriptors.
17293 * tree-ssa-copy.c: Update tree_pass descriptors.
17294 * cfglayout.c: Update tree_pass descriptors.
17295 * tree-ssa-forwprop.c: Update tree_pass descriptors.
17296 * tree-ssa-dce.c: Update tree_pass descriptors.
17297 * tree-ssa.c: Update tree_pass descriptors.
17298 * regclass.c: Update tree_pass descriptors.
17299 * integrate.c: Update tree_pass descriptors.
17300 * tree-optimize.c: Update tree_pass descriptors.
17301 * tree-ssa-phiprop.c: Update tree_pass descriptors.
17302 * tree-object-size.c: Update tree_pass descriptors.
17303 * combine.c: Update tree_pass descriptors.
17304 * tree-outof-ssa.c: Update tree_pass descriptors.
17305 * bb-reorder.c: Update tree_pass descriptors.
17306 * stack-ptr-mod.c: Update tree_pass descriptors.
17307 * var-tracking.c: Update tree_pass descriptors.
17308 * tree-profile.c: Update tree_pass descriptors.
17309 * tree-vect-generic.c: Update tree_pass descriptors.
17310 * reg-stack.c: Update tree_pass descriptors.
17311 * sched-rgn.c: Update tree_pass descriptors.
17312 * tree-ssa-structalias.c: Update tree_pass descriptors.
17313 * tree-cfg.c: Update tree_pass descriptors.
17314 * passes.c (current_pass): Update declaration.
17315 (finish_optimization_passes): Update.
17316 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
17317 (register_one_dump_file, register_dump_files_1, next_pass_1):
17319 (init_optimization_passes): Update handling of new types.
17320 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
17321 * ipa-struct-reorg.c: Update tree_pass descriptors.
17322 * tree-ssa-reassoc.c: Update tree_pass descriptors.
17323 * combine-stack-adj.c: Update tree_pass descriptors.
17324 * cfgrtl.c: Update tree_pass descriptors.
17325 * dce.c: Update tree_pass descriptors.
17326 * tree-ssanames.c: Update tree_pass descriptors.
17328 2008-03-19 Richard Guenther <rguenther@suse.de>
17330 PR middle-end/35609
17331 * tree-ssa.c (walk_data): New structure.
17332 (warn_uninitialized_var): If not always_executed warn with "maybe"
17334 (execute_early_warn_uninitialized): Compute post-dominators.
17335 Initialize always_executed before processing each basic block.
17337 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
17340 * config/i386/i386.c (x86_this_parameter): Calculate correct location
17341 of "this" pointer when "regparm = N" or "fastcall" is in effect.
17343 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17345 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
17347 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
17349 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
17351 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
17352 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
17353 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
17354 target after ignore has been set, and move there also the commputation
17355 of subtarget and original_target.
17356 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
17357 (LANG_HOOKS_INITIALIZER): Remove it.
17358 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
17360 2008-03-18 Richard Guenther <rguenther@suse.de>
17362 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
17363 found an expression with constants, note that in the VN for the lhs.
17364 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
17365 fold them to constants if possible. Run cleanup_cfg if done so.
17366 (execute_pre): Return todo.
17367 (do_pre): Likewise.
17368 (execute_fre): Likewise.
17369 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
17371 (get_prop_source_stmt): Look through pointer conversions.
17373 2008-03-18 Jan Hubicka <jh@suse.cz>
17375 * tree-pretty-print.c: Include predict.h.
17376 (dump_generic_node): Dump predictor.
17377 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
17378 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
17379 * gimple-low.c (lower_stmt): Likewise.
17380 * expr.c (expand_expr_real): Likewise.
17381 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
17383 (build_predict_expr, build_predict_expr): New.
17384 * predict.h (predictor_name, build_predict_expr): Update.
17385 * c-typeck.c (c_finish_bc_stmt): Add prediction.
17386 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
17387 * predict.def (PRED_CONTINUE): Update hitrate.
17388 * tree.def (PREDICT_EXPR): Define.
17389 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
17390 do not handle BIND_EXPR.
17391 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
17392 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
17393 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
17396 2008-03-18 Michael Matz <matz@suse.de>
17398 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
17400 2008-03-18 Richard Guenther <rguenther@suse.de>
17402 * tree-gimple.h (is_gimple_invariant_address): Declare.
17403 (is_gimple_constant): Likewise.
17404 * tree-gimple.c (is_gimple_constant): New function.
17405 (is_gimple_invariant_address): Likewise.
17406 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
17407 and is_gimple_invariant_address.
17408 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
17410 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
17411 an addressable base.
17413 2008-03-18 Jakub Jelinek <jakub@redhat.com>
17415 PR middle-end/35611
17416 * gimplify.c (gimplify_expr): Gimplify second operand of
17419 2008-03-17 Richard Guenther <rguenther@suse.de>
17421 PR tree-optimization/19637
17422 * fold-const.c (fold_unary): Remove restrictions of removing
17423 intermediate pointer-conversions (P2)(P1)P0.
17424 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
17425 conversion to void pointer.
17426 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
17428 2008-03-16 James E. Wilson <wilson@tuliptree.org>
17431 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
17432 emulated thread local variables.
17434 2008-03-16 Richard Guenther <rguenther@suse.de>
17436 PR middle-end/35607
17437 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
17438 expand TREE_INVARIANT operations that are not gimple invariant.
17440 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
17442 * doc/extend.texi (Alignment): Say that the ABI controls
17443 the __alignof__ for non-strict-alignment targets rather
17444 than being a recommendation.
17446 2008-03-15 Paul Brook <paul@codesourcery.com>
17448 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
17450 (arm_output_fn_unwind): Mark functions that can not be unwound.
17452 2008-03-15 Paul Brook <paul@codesourcery.com>
17454 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
17455 extension instructions.
17457 2008-03-15 Richard Guenther <rguenther@suse.de>
17459 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
17460 and fold constant aggregate refs.
17461 (fold_const_aggregate_ref): Handle string constants
17462 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
17463 (evaluate_stmt): Simplify now that ccp_fold folds constant
17466 2008-03-15 Paul Brook <paul@codesourcery.com>
17468 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
17469 (extzv): Use gen_extzv_t2.
17470 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
17472 2008-03-15 Richard Guenther <rguenther@suse.de>
17474 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
17475 (fold_const_aggregate_ref): Likewise.
17476 (get_value): Return NULL if we don't have any values.
17477 (ccp_finalize): Set const_val to NULL after freeing it.
17478 * tree-flow.h (get_symbol_constant_value): Declare.
17479 (fold_const_aggregate_ref): Likewise.
17480 * tree-ssa-sccvn.c (try_to_simplify): Use them.
17482 2008-03-15 Richard Guenther <rguenther@suse.de>
17484 PR middle-end/35593
17485 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
17486 to not produce negative array indices if not allowed. Add
17487 parameter to indicate that.
17488 (maybe_fold_offset_to_component_ref): Allow negative array
17489 indices only for the first member of a structure.
17490 (maybe_fold_offset_to_reference): Allow negative array indices.
17491 (maybe_fold_stmt_addition): Likewise.
17493 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
17494 Anatoly Sokolov <aesok@post.ru>
17496 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
17497 (avr_arch): Add ARCH_AVR6.
17498 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
17499 (initial_elimination_offset): Initialize and use 'avr_pc_size'
17500 instead of fixed value 2.
17501 (print_operand_address): Use gs() asm specifier instead of pm().
17502 (avr_assemble_integer): (Ditto.).
17503 (avr_output_addr_vec_elt): (Ditto.).
17504 (print_operand): Handle "!" code.
17505 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
17506 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
17507 (AVR_HAVE_EIJMP_EICALL): Define.
17508 (AVR_3_BYTE_PC): Redefine.
17509 (AVR_2_BYTE_PC): (Ditto.).
17510 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
17511 (LINK_SPEC): Add atmega2560 and atmega2561.
17512 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
17514 * config/avr/avr.md (call_insn): Use eicall instead of icall
17515 for 3 byte PC devices.
17516 (call_value_insn): (Ditto.).
17517 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
17518 (indirect_jump): Use only for for 2 byte PC devices.
17519 (*tablejump): (Ditto.).
17520 (*indirect_jump_avr6): Add insn.
17521 (*tablejump_rjmp): Don't use for 3 byte PC devices.
17522 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
17523 instead of ijmp for 3 byte PC devices.
17524 (__tablejump2__): (Ditto.).
17525 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
17526 (MULITLIB_DIRNAMES): (Ditto.).
17527 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
17529 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
17531 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
17532 "sse2_umulsidi3". Use V1DI mode for operand 0.
17533 ("mmx_psadbw"): Use V1DI mode for operand 0.
17534 * config/i386/i386-modes.def (V1SI): New vector mode.
17535 * config/i386/i386.c (struct builtin_description)
17536 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
17537 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
17538 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
17539 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
17540 v1di_ftype_v8qi_v8qi type.
17541 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
17543 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
17544 __builtin_ia32_pmuludq]: Fix the mode of return value.
17546 2008-03-15 Richard Guenther <rguenther@suse.de>
17548 PR middle-end/35595
17549 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
17552 2008-03-14 Bob Wilson <bob.wilson@acm.org>
17554 * doc/invoke.texi (Option Summary, Xtensa Options): Document
17555 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
17556 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
17557 unless TARGET_SERIALIZE_VOLATILE is enabled.
17558 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
17559 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
17560 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
17562 2008-03-14 Richard Guenther <rguenther@suse.de>
17564 PR tree-optimization/34172
17565 * tree-flow.h (refs_may_alias_p): Declare.
17566 (get_single_def_stmt): Likewise.
17567 (get_single_def_stmt_from_phi): Likewise.
17568 (get_single_def_stmt_with_phi): Likewise.
17569 * tree-dfa.c (refs_may_alias_p): New function.
17570 (get_single_def_stmt): Likewise.
17571 (get_single_def_stmt_from_phi): Likewise.
17572 (get_single_def_stmt_with_phi): Likewise.
17573 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
17574 (vn_reference_lookup_1): New helper function.
17575 (vn_reference_lookup): Walk the virtual use-def chain to
17576 continue searching for a match if the def does not alias the
17577 reference we are looking for.
17579 2008-03-14 David Edelsohn <edelsohn@gnu.org>
17581 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
17582 archive and Perzl. Update The Written Word listing.
17584 2008-03-14 Richard Guenther <rguenther@suse.de>
17586 PR tree-optimization/34043
17587 PR tree-optimization/33989
17588 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
17590 (bitmap_find_leader): Use extra argument to verify dominance
17591 relationship inside a basic-block.
17592 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
17593 (find_leader_in_sets): Adjust.
17594 (create_component_ref_by_pieces): Take extra argument for
17595 dominance check, handle lookup failures.
17596 (find_or_generate_expression): Likewise.
17597 (create_expression_by_pieces): Likewise.
17598 (insert_into_preds_of_block): Adjust.
17599 (create_value_expr_from): If asked for, verify all operands
17600 are in the blocks AVAIL_OUT set.
17601 (make_values_for_stmt): Check for SSA_NAMEs that are life
17602 over an abnormal edge.
17603 (compute_avail): Remove such check.
17604 (do_SCCVN_insertion): New function.
17605 (eliminate): If we do not find a leader suitable for replacement
17606 insert a replacement expression from SCCVN if available.
17607 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
17608 (struct vn_ssa_aux): Add needs_insertion flag.
17609 * tree-ssa-sccvn.c (may_insert): New global flag.
17610 (copy_reference_ops_from_ref): Value-number union member access
17611 based on its size, not type and member if insertion is allowed.
17612 (visit_reference_op_load): For a weak match from union type
17613 punning lookup a view-converted value and insert a SSA_NAME
17614 for that value if that is not found.
17615 (visit_use): Make dumps shorter. Do not disallow value numbering
17616 SSA_NAMEs that are life over an abnormal edge to constants.
17617 (free_scc_vn): Release inserted SSA_NAMEs.
17618 (run_scc_vn): New flag to specify whether insertion is allowed.
17619 Process SSA_NAMEs in forward order.
17620 * tree-ssa-loop-im.c (for_each_index): Handle invariant
17621 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
17622 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
17623 pointer type to/from integral types that do not change the
17624 precision to regular conversions.
17626 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
17628 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
17629 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
17630 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
17631 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
17632 input arguments and the mode of return value. Built-in functions
17633 that operate on whole 64-bit MMX register now use V1DI mode.
17635 2008-03-13 Alon Dayan <alond@il.ibm.com>
17636 Olga Golovanevsky <olga@il.ibm.com>
17638 PR tree-optimization/35041
17639 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
17640 to locate the right position in a statement.
17642 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
17646 * config/i386/xmmintrin.h: Change all static inline functions to
17647 extern inline and add __gnu_inline__ attribute.
17648 * config/i386/bmintrin.h: Ditto.
17649 * config/i386/smmintrin.h: Ditto.
17650 * config/i386/tmmintrin.h: Ditto.
17651 * config/i386/mmintrin-common.h: Ditto.
17652 * config/i386/ammintrin.h: Ditto.
17653 * config/i386/emmintrin.h: Ditto.
17654 * config/i386/pmmintrin.h: Ditto.
17655 * config/i386/mmintrin.h: Ditto.
17656 * config/i386/mm3dnow.h: Ditto.
17658 2008-03-13 Jakub Jelinek <jakub@redhat.com>
17660 PR middle-end/35185
17661 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
17662 (lower_omp_2): New function.
17663 (lower_omp_1, lower_omp): Rewritten.
17665 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
17668 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
17669 with the phrase "Microsoft Windows compilers".
17670 (Push/Pop Macro Pragmas): New subsection. Document
17671 #pragma push_macro and pragma pop_macro.
17673 2008-03-12 Paul Brook <paul@codesourcery.com>
17675 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
17677 2008-03-12 Paul Brook <paul@codesourcery.com>
17679 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
17680 (thumb2_alusi3_short): Exclude PLUS and MINUS.
17681 (thumb2_addsi_shortim): Rename ...
17682 (thumb2_addsi_short): ... to this. Allow register operands.
17683 (thumb2_subsi_short): New pattern.
17684 (thumb2_one_cmplsi2_short,
17685 thumb2_negsi2_short): New patterns and peepholes.
17687 2008-03-12 Paul Brook <paul@codesourcery.com>
17689 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
17691 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
17693 * config/i386/i386.md (int_cond): New code iterator.
17695 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
17696 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
17697 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
17698 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
17699 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
17700 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
17701 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
17702 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
17704 2008-03-12 Paul Brook <paul@codesourcery.com>
17706 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
17707 instead of {arm,thumb}_compute_save_reg_mask.
17708 (output_return_instruction): Ditto.
17709 (thumb_unexpanded_epilogue): Ditto.
17710 (thumb1_expand_prologue): Ditto.
17711 (thumb1_output_function_prologue): Ditto.
17712 (arm_set_return_address): Ditto.
17713 (thumb_set_return_address): Ditto.
17714 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
17715 regs to achieve stack alignment.
17716 (thumb1_compute_save_reg_mask): Fix compiler warning.
17717 (arm_output_epilogue): Use offsets->saved_regs_mask.
17718 Adjust stack pointer by poping call clobered registers.
17719 (arm_expand_prologue): Use offsets->saved_regs_mask.
17720 Adjust stack pointer by pushing extra registers.
17721 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
17723 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
17726 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
17727 conversion to the operands of a multiplication.
17729 2008-03-12 Richard Guenther <rguenther@suse.de>
17731 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
17732 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
17733 * timevar.def (TV_TREE_PHIPROP): Add.
17734 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
17735 pass description. Use TV_TREE_PHIPROP.
17736 * tree-ssa-forwprop.c: Remove phiprop code.
17738 2008-03-12 Jakub Jelinek <jakub@redhat.com>
17740 PR middle-end/35549
17741 * omp-low.c (maybe_lookup_decl): Constify first argument.
17742 (use_pointer_for_field): Change last argument from bool to
17743 omp_context *. Disallow shared copy-in/out in nested
17744 parallel if decl is shared in outer parallel too.
17745 (build_outer_var_ref, scan_sharing_clauses,
17746 lower_rec_input_clauses, lower_copyprivate_clauses,
17747 lower_send_clauses, lower_send_shared_vars): Adjust callers.
17749 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
17750 Ira Rosen <irar@il.ibm.com>
17752 * tree-vectorizer.c (free_stmt_vec_info): New function.
17753 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
17754 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
17755 * tree-vectorizer.h (free_stmt_vec_info): Declare.
17756 * tree-vect-transform.c (vectorizable_conversion): Free
17757 vec_oprnds0 if it was allocated.
17758 (vect_permute_store_chain): Remove unused VECs.
17759 (vectorizable_store): Free VECs that are allocated in the..
17761 (vect_transform_strided_load, vectorizable_load): Likewise.
17762 (vect_remove_stores): Simplify the code.
17763 (vect_transform_loop): Move code to vect_remove_stores().
17764 Call vect_remove_stores() and free_stmt_vec_info().
17766 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17768 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
17769 TARGET_HPUX. Revise comment.
17770 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
17771 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
17772 Use sr4 variant of `be' instruction when not generating PIC code.
17773 (attr_length_call): Adjust for above change.
17775 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
17777 * ipa-reference.c (static_execute): Remove module_statics_const and
17778 associated setting code.
17780 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
17783 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
17784 predicate for operand 1.
17785 (paritysi2_cmp): Use register_operand predicate for operand 2.
17786 Use earlyclobber modifier for operand 1. Remove support for
17788 (paritydi2_cmp): Use register_operand predicate for operand 3.
17789 Use earlyclobber modifier for operand 1. Remove support for
17792 2008-03-11 Paul Brook <paul@codesourcery.com>
17793 Vladimir Prus <vladimir@codesourcery.com>
17795 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
17796 (arm_compute_save_reg0_reg12_mask): Always
17797 check if register 11 must be saved. Always safe hard frame pointer
17798 when frame_pointer_needeed.
17799 (arm_compute_save_reg_mask): Save IP and PC
17800 only with apcs frames.
17801 (arm_output_epilogue): Adjust Thumb2 codepath to
17802 be also invoked and work for ARM non-apcs frames.
17803 (arm_expand_prologue): Don't bother saving IP
17804 for non-apcs frame, since it's not clobbered by
17805 prologue code. Implement non-apcs frame
17808 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
17810 PR rtl-optimization/35281
17811 * expr.c (convert_move): Use a new pseudo for the intermediate
17812 from_mode->word_mode result.
17814 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
17816 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
17817 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
17818 * toplev.c (compile_file): Don't call it.
17820 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
17822 PR middle-end/35526
17823 * expr.c (store_expr): Call emit_block_move if the mode
17824 of "temp" RTX is BLKmode.
17826 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
17827 Richard Guenther <rguenther@suse.de>
17829 PR tree-optimization/31358
17830 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
17831 the step with a NULL_TREE.
17832 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
17833 to sizetype if type is a pointer type.
17834 (add_candidate_1): Don't convert the base and step to
17835 the generic type if the orginal type is a pointer type.
17836 (add_iv_value_candidates): Use sizetype for the step
17837 if type is a pointer type.
17838 (cand_value_at): Likewise.
17839 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
17841 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
17842 Don't convert the tem affine to the type.
17843 (add_elt_to_tree): Use sizetype for the step if a pointer.
17844 Use POINTER_PLUS_EXPR for pointers.
17845 (aff_combination_to_tree): Use sizetype for the step if a
17848 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
17850 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
17851 Remove commutativity hint.
17853 2008-03-10 Jakub Jelinek <jakub@redhat.com>
17857 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
17858 errorneous type. Check that v is a VAR_DECL.
17860 PR middle-end/35099
17861 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
17863 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
17865 PR tree-optimization/35494
17866 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
17867 may be overriden at link and run time.
17869 2008-03-10 Richard Guenther <rguenther@suse.de>
17871 PR tree-optimization/34677
17872 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
17873 (poolify_tree): Likewise.
17874 (modify_expr_template): Likewise.
17875 (poolify_modify_stmt): Likewise.
17876 (insert_fake_stores): Handle all component-ref style stores
17877 in addition to INDIRECT_REF. Also handle complex types.
17878 Do not poolify the inserted load.
17879 (realify_fake_stores): Do not rebuild the tree but only
17880 make it a SSA_NAME copy.
17881 (init_pre): Remove initialzation of modify_expr_template.
17882 Do not allocate modify_expr_node_pool.
17883 (fini_pre): Do not free modify_expr_node_pool.
17885 2008-03-10 Paul Brook <paul@codesourcery.com>
17887 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
17888 to avoid conflicts.
17890 2008-03-10 Paul Brook <paul@codesourcery.com>
17891 Mark Shinwell <shinwell@codesourcery.com>
17893 * config/arm/cortex-r4.md: New.
17894 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
17896 * config/arm/arm.md: Include cortex-r4.md.
17897 (insn): Add smmls, sdiv and udiv values.
17898 (generic_sched): Don't use generic scheduling for Cortex-R4.
17899 (arm_issue_rate): New function.
17900 (TARGET_SCHED_ISSUE_RATE): Define.
17902 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
17904 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
17906 2008-03-10 Richard Guenther <rguenther@suse.de>
17908 * tree-ssa-pre.c (get_sccvn_value): Simplify.
17909 (compute_avail): Do not add stmt uses to AVAIL_OUT.
17911 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
17913 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
17914 Set default to true.
17916 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17918 * c.opt (Wsynth): Deprecate.
17919 * doc/invoke.texi (Option Summary, Warning Options): Document
17920 -Wno-format-contains-nul.
17922 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
17925 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
17926 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
17928 2008-03-09 Ira Rosen <irar@il.ibm.com>
17930 * config/rs6000/rs6000.c (builtin_description): Rename vector
17931 left shift operations.
17932 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
17933 (altivec_vsl<VI_char>): Rename to ...
17934 (ashl<mode>3): ... new name.
17935 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
17937 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
17939 2008-03-08 Richard Guenther <rguenther@suse.de>
17941 * coverage.h (tree_coverage_counter_addr): Declare.
17942 * coverage.c (tree_coverage_counter_addr): New function.
17943 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
17944 before using again.
17945 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
17946 (tree_gen_one_value_profiler): Likewise.
17947 (tree_gen_ic_profiler): Likewise.
17948 (tree_gen_average_profiler): Likewise.
17949 (tree_gen_ior_profiler): Likewise.
17951 2008-03-08 Richard Guenther <rguenther@suse.de>
17953 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
17954 (vn_binary_op_insert): Likewise.
17955 (vn_unary_op_lookup): Likewise.
17956 (vn_unary_op_insert): Likewise.
17957 (vn_nary_op_lookup): Declare.
17958 (vn_nary_op_insert): Likewise.
17959 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
17960 and binary hashes, use a single obstack for unary_op_pool
17961 and binary_op_pool.
17962 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
17963 a single struct vn_nary_op_s. Store tree code length and
17964 a variable number of operands.
17965 (struct vn_reference_op_struct): Remove unused op2.
17966 (vn_reference_op_eq): Do not compare op2.
17967 (vn_reference_op_compute_hash): Do not compute hash of op2.
17968 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
17969 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
17970 with vn_nary_op_compute_hash.
17971 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
17972 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
17974 (vn_unary_op_insert, vn_binary_op_insert): Replace with
17976 (visit_unary_op): Call nary functions.
17977 (visit_binary_op): Likewise.
17978 (process_scc): Adjust for struct vn_tables_s changes.
17979 (allocate_vn_table): Likewise.
17980 (free_vn_table): Likewise.
17981 * tree-vn.c (vn_add): Call nary functions.
17982 (vn_lookup): Likewise.
17984 2008-03-08 Jakub Jelinek <jakub@redhat.com>
17987 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
17988 wdst back after sync_compare_and_swapqhi_internal.
17990 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
17993 * config/i386/i386-modes.def (V1DI): New vector mode.
17994 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
17995 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
17996 (MMXMODE248): Ditto.
17997 (MMXMODE): Add V1DI mode.
17998 (mmxvecsize): Change DI mode to V1DI mode.
17999 ("mov<mode>): Use MMXMODEI8 mode iterator.
18000 ("*mov<mode>_internal_rex64"): Ditto.
18001 ("*mov<mode>_internal"): Ditto.
18002 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
18003 ("mmx_sub<mode>3"): Ditto.
18004 ("mmx_adddi3"): Remove insn pattern.
18005 ("mmx_subdi3"): Ditto.
18006 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18007 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18008 ("mmx_ashl<mode>3"): Ditto.
18009 ("mmx_lshrdi3"): Remove insn pattern.
18010 ("mmx_ashldi3"): Ditto.
18011 * config/i386/i386.c (classify_argument): Handle V1DImode.
18012 (function_arg_advance_32): Ditto.
18013 (function_arg_32): Ditto.
18014 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
18015 mmx_addv1di3 insn pattern.
18016 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
18017 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
18018 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
18019 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
18020 Remove definitions of built-in functions.
18021 (V1DI_type_node): New node.
18022 (v1di_ftype_v1di_int): Ditto.
18023 (v1di_ftype_v1di_v1di): Ditto.
18024 (v2si_ftype_v2si_si): Ditto.
18025 (v4hi_ftype_v4hi_di): Remove node.
18026 (v2si_ftype_v2si_di): Ditto.
18027 (ix86_init_mmx_sse_builtins): Handle V1DImode.
18028 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
18029 Redefine builtins using def_builtin_const with *_ftype_*_int node.
18030 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
18031 Add new builtins using def_builtin_const.
18032 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
18033 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
18034 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
18035 * config/i386/mmintrin.h (__v1di): New typedef.
18036 (_mm_add_si64): Cast arguments to __v1di type.
18037 (_mm_sub_si64): Ditto.
18038 (_mm_sll_pi16): Cast __count to __v4hi type.
18039 (_mm_sll_pi32): Cast __count to __v2si type.
18040 (_mm_sll_si64): Cast arguments to __v1di type.
18041 (_mm_srl_pi16): Cast __count to __v4hi type.
18042 (_mm_srl_pi32): Cast __count to __v2si type.
18043 (_mm_srl_si64): Cast arguments to __v1di type.
18044 (_mm_sra_pi16): Cast __count to __v4hi type.
18045 (_mm_sra_pi32): Cast __count to __v2si type.
18046 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
18047 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
18048 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
18049 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
18050 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
18051 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
18052 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
18053 (_mm_srai_pi32): Use __builtin_ia32_psradi.
18054 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
18055 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18056 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18057 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
18059 2008-03-07 Joseph Myers <joseph@codesourcery.com>
18061 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
18063 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
18066 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
18067 reg+const addressing for Altivec modes. Don't generate reg+reg
18068 addressing for TFmode or TDmode quantities.
18070 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
18072 * c-common.c (vector_types_convertible_p): Call langhook
18073 instead of comptypes.
18075 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
18078 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
18079 integral and scalar float variables which have a
18082 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
18084 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
18085 dwarf_register_span hook when emitting unwind information for
18086 register-to-memory saves.
18087 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
18088 (rs6000_frame_related): Remove call to spe_synthesize_frame.
18090 2008-03-06 Jakub Jelinek <jakub@redhat.com>
18092 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
18093 for the same VAR_DECL.
18095 2008-03-06 Tom Tromey <tromey@redhat.com>
18097 * treelang: Delete.
18098 * doc/standards.texi (Standards): Don't mention treelang.
18099 * doc/invoke.texi (Overall Options): Don't mention treelang.
18100 * doc/install.texi (Prerequisites): Don't mention bison or
18102 (Configuration): Don't mention treelang.
18103 (Building): Likewise.
18104 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
18106 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
18108 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
18109 word-extractions out of a multi-word object.
18111 2008-03-06 Richard Guenther <rguenther@suse.de>
18113 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
18114 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
18115 result type and precision.
18116 * expr.c (get_inner_reference): Set unsignedp based on the result
18117 type of BIT_FIELD_REF.
18118 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
18119 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
18120 (try_instantiate_multiple_fields): Likewise. Use the correct type
18122 (sra_build_assignment): Likewise.
18123 (sra_build_elt_assignment): Likewise.
18124 (sra_explode_bitfield_assignment): Likewise.
18125 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
18126 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
18127 set BIT_FIELD_REF_UNSIGNED.
18128 (vectorizable_load): Likewise.
18130 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
18132 * cse.c (cse_extended_basic_block): Invalidate artificial defs
18135 2008-03-06 Richard Guenther <rguenther@suse.de>
18137 * alias.c (struct alias_set_entry): Move has_zero_child field
18138 to pack with alias_set.
18140 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
18142 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18145 2008-03-05 Ian Lance Taylor <iant@google.com>
18147 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
18149 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
18151 * fwprop.c (update_df): Support width and offset parameters of
18153 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
18154 global_conflicts): Change DF_REF_EXTRACT to either
18155 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
18156 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18157 * df-scan.c (df_ref_record, df_defs_record,
18158 df_ref_create_structure, df_def_record_1, df_uses_record,
18159 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
18160 df_bb_refs_collect, df_entry_block_defs_collect,
18161 df_exit_block_uses_collect): Support new width and offset fields.
18162 (ref_extract_pool): New storage pool.
18163 (df_free_ref): New function.
18164 (df_reg_chain_unlink, df_free_collection_rec,
18165 df_sort_and_compress_refs): Call df_free_ref.
18166 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
18168 (df_ref_create_structure): Allocate df_ref_extract if offset and
18169 width fields are used.
18170 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
18171 (df_uses_record): Get offset and width from ZERO_EXTRACT
18173 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
18174 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
18175 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18176 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
18177 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
18178 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
18179 (df_ref_extract): New structure.
18180 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
18181 (df_ref_create): Add width and offset parameters.
18183 2008-03-05 Richard Guenther <rguenther@suse.de>
18185 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18186 Use ranges_overlap_p.
18187 (offset_overlaps_with_access): Rename
18188 to ranges_overlap_p and move ...
18189 * tree-flow-inline.h (ranges_overlap_p): ... here.
18191 * tree.h (get_inner_reference, handled_component_p): Update
18194 * tree.h (record_component_aliases, get_alias_set,
18195 alias_sets_conflict_p, alias_sets_must_conflict_p,
18196 objects_must_conflict_p): Move declarations ...
18197 * alias.h (record_component_aliases, get_alias_set,
18198 alias_sets_conflict_p, alias_sets_must_conflict_p,
18199 objects_must_conflict_p): ... here.
18200 Include coretypes.h.
18201 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
18203 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
18205 * cfg.c: Include tree-flow.h.
18206 (remove_edge_raw): Call redirect_edge_var_map_clear.
18207 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
18208 * tree-flow-inline.h (redirect_edge_var_map_def): New.
18209 (redirect_edge_var_map_result): New.
18210 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
18211 PENDING_STMT use with redirect_edge_var_map_*.
18212 * tree-ssa.c (edge_var_maps): New definition.
18213 (redirect_edge_var_map_add): New.
18214 (redirect_edge_var_map_clear): New.
18215 (redirect_edge_var_map_dup): New.
18216 (redirect_edge_var_map_vector): New.
18217 (redirect_edge_var_map_destroy): New.
18218 (ssa_redirect_edge): Replace PENDING_STMT use with
18219 redirect_edge_var_map_*.
18220 (flush_pending_stmts): Same.
18221 (delete_tree_ssa): Destroy edge var map.
18222 * tree-flow.h (struct _edge_var_map): New.
18223 Define edge_var_map vector type.
18224 Declare redirect_edge_var_map_* prototypes.
18225 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
18226 * tree-cfg.c (reinstall_phi_args): Replace
18227 PENDING_STMT use with redirect_edge_var_map_*.
18229 2008-03-05 Richard Guenther <rguenther@suse.de>
18231 PR tree-optimization/35472
18232 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
18233 whose single use_stmt has a overlapping set of loaded and
18234 stored symbols as that use_stmt might be a noop assignment then.
18236 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
18238 * gthr-rtems.h: Implement __gthread_mutex_destroy.
18240 2008-03-05 Richard Guenther <rguenther@suse.de>
18243 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
18244 should be constants.
18245 * tree-cfg.c (verify_expr): Verify it.
18246 * fold-const.c (fold_truthop): Remove code generating
18247 BIT_FIELD_REFs of structure bases.
18248 (fold_binary): Likewise.
18249 (fold_ternary): Position and size of BIT_FIELD_REFs are
18250 always host integers.
18251 (make_bit_field_ref): Remove.
18252 (optimize_bit_field_compare): Remove.
18253 (all_ones_mask_p): Remove.
18255 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
18258 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
18259 (split_block_and_df_analyze): New. Split basic block and rebuild
18261 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
18263 (split_pattern_seq): Likewise.
18264 (erase_matching_seqs): Likewise.
18265 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
18267 2008-03-04 Geoff Keating <geoffk@apple.com>
18269 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
18270 declaration and code.
18271 (tree_invalid_nonnegative_warnv_p): Likewise.
18273 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
18275 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
18276 examples. Truncate option-names then causing overfull hbox.
18278 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18281 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
18283 * configure: Rebuilt.
18285 2008-03-04 Rafael Espindola <espindola@google.com>
18287 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
18288 (tree_unary_nonnegative_warnv_p): New.
18289 (tree_binary_nonnegative_warnv_p): New.
18290 (tree_single_nonnegative_warnv_p): New.
18291 (tree_invalid_nonnegative_warnv_p): New.
18292 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
18294 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18297 * opts.c (handle_option): Postpone 'unknown option' errors only for
18300 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
18303 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
18306 2008-03-04 Rafael Espindola <espindola@google.com>
18308 * fold-const.c (tree_unary_nonzero_warnv_p): New.
18309 (tree_binary_nonzero_warnv_p): New.
18310 (tree_single_nonzero_warnv_p): New.
18311 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
18313 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
18315 PR middle-end/35456
18316 * fold-const.c (fold_cond_expr_with_comparison): Prevent
18317 transformations for modes that have signed zeros.
18318 * ifcvt.c (noce_try_abs): Ditto.
18320 2008-03-04 Joseph Myers <joseph@codesourcery.com>
18322 * config/i386/i386.c (override_options): Force
18323 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
18325 2008-03-04 Jan Hubicka <jh@suse.cz>
18328 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
18331 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
18333 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
18334 label to probe the stack.
18336 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
18338 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
18339 (__gthr_win32_mutex_destroy): Declare.
18340 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
18341 __gthr_win32_mutex_destroy.
18342 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
18344 2008-03-03 Jan Hubicka <jh@suse.cz>
18347 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
18348 aggressive on inlining cold calls.
18350 2008-03-03 Richard Guenther <rguenther@suse.de>
18352 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
18353 struct copies into the expression table.
18354 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
18355 (try_to_simplify): Likewise.
18356 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
18357 integral and pointer arguments which do not change the
18358 precision to NOP_EXPRs.
18359 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
18360 VIEW_CONVERT_EXPR case.
18362 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
18364 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
18365 defined in a loop at depth 0 is invariant.
18366 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
18367 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
18368 be called at loop depth 0.
18370 2008-03-02 Jakub Jelinek <jakub@redhat.com>
18373 * gcc.c (process_command): Update copyright notice dates.
18374 * gcov.c (print_version): Likewise.
18375 * gcov-dump.c (print_version): Likewise.
18376 * mips-tfile.c (main): Likewise.
18377 * mips-tdump.c (main): Likewise.
18379 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18382 * c-common.c (flag_permissive): Delete.
18383 (constant_expression_warnings): Check flags first.
18384 (constant_expression_error): New.
18385 * c-common.h (flag_permissive): Delete.
18386 (constant_expression_error): Declare.
18387 * flags.h (flag_permissive): Declare. Update description.
18388 * diagnostic.c (pedwarn): Update.
18390 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
18391 (permissive_error_kind): New.
18392 * toplev.c (flag_permissive): Define. Update description.
18393 * toplev.h (permissive_error_kind): Declare.
18394 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
18395 (pedwarn_c90): Use pedantic_warning_kind.
18396 * c-opts.c (c_common_post_options): flag_permissive does not affect
18397 flag_pedantic_errors.
18399 2008-03-02 Joseph Myers <joseph@codesourcery.com>
18401 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
18402 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
18403 __absvsi2, __absvDI2): Use unsigned arithmetic.
18405 2008-03-02 Andi Kleen <ak@suse.de>
18406 Richard Guenther <rguenther@suse.de>
18408 * struct-equiv.c: Remove file.
18409 * cfg_cleanup.c (condjump_equiv_p): Remove.
18410 * Makefile.in (OBJS-common): Remove struct-equiv.o.
18411 (struct-equiv.o): Remove rule.
18412 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
18413 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
18414 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
18416 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
18418 * ifcvt.c (noce_process_if_block): Try to handle only the then
18419 block if the else block exists but isn't suitable.
18421 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
18424 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
18425 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
18426 regression from previous patch.
18428 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
18431 * gthr.h: Add __gthread_mutex_destroy as a function that must be
18433 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
18434 * gthr-single.h (__gthread_mutex_destroy): Likewise.
18435 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
18436 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
18437 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
18438 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
18439 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
18440 (__gthread_mutex_destroy_function): Rename to
18441 __gthread_mutex_destroy.
18442 * gthr-dce.h (__gthread_mutex_destroy): Call
18443 pthread_mutex_destroy.
18444 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
18445 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
18446 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
18448 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
18450 * df-scan.c (df_ref_chain_change_bb): Simplify.
18451 (df_insn_change_bb): Add new_bb argument. Simplify. Call
18452 set_block_for_insn if there's any change.
18453 * df.h ((df_insn_change_bb): Fix prototype.
18454 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
18455 df_insn_change_bb, don't call set_block_for_insn.
18456 * emit-rtl.c (reorder_insns): Likewise.
18457 * haifa-sched.c (move_insn): Likewise.
18459 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
18461 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
18463 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
18465 * tree-flow-inline.h (next_readonly_imm_use): Return
18466 NULL_USE_OPERAND_P after the end.
18468 2008-03-01 Richard Guenther <rguenther@suse.de>
18470 PR tree-optimization/35411
18471 * tree-sra.c (sra_build_assignment): Split conversion to
18472 final type to a separate statement if we are not assigning
18475 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18477 * fold-const.c (fold_convertible_p): Correct the logic to follow
18478 that in fold_convert().
18480 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
18483 * tree-inline.c (build_duplicate_type): When we make a
18484 duplicate type, make it unique in the canonical types system.
18486 2008-02-29 Tom Tromey <tromey@redhat.com>
18488 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
18489 input_file_stack_history, input_file_stack_restored): Remove.
18490 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18491 * input.h (struct file_stack): Remove.
18492 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
18493 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
18495 * diagnostic.h (struct diagnostic_context) <last_module>: Change
18497 (diagnostic_last_module_changed): Add 'map' argument.
18498 (diagnostic_set_last_function): Likewise.
18499 * diagnostic.c (undiagnostic_report_current_module): Iterate using
18500 line map, not input_file_stack.
18501 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
18503 2008-02-29 Paul Brook <paul@codesourcery.com>
18505 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
18507 2008-02-29 Paul Brook <paul@codesourcery.com>
18509 * config/arm/ieee754-df.S (muldf3): Use RET macros.
18511 2008-02-29 Richard Guenther <rguenther@suse.de>
18513 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
18515 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
18516 value for comparing for a store match.
18517 (simplify_unary_expression): Do nothing for SSA_NAMEs.
18518 (try_to_simplify): Do not do a full-blown reference lookup.
18520 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
18522 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
18523 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
18525 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
18527 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
18529 * tree-loop-linear.c (try_interchange_loops): Compare memory access
18530 strides against cache sizes.
18532 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
18534 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
18537 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
18539 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
18540 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
18541 is smaller than the original promoted value.
18542 (simplify_subreg): If OP is a SUBREG, try to preserve its
18543 SUBREG_PROMOTED_VAR_P information.
18545 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
18547 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
18548 (VN_INFO_GET): Allocate new objects on the obstack.
18549 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
18550 for rpo_numbers_temp, for consistency.
18551 (free_scc_vn): Free the obstack.
18553 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
18555 * doc/invoke.texi: Document -ftree-loop-distribution.
18556 * tree-loop-distribution.c: New.
18557 * tree-pass.h (pass_loop_distribution): New.
18558 * graphds.h (struct graph): Add htab_t indices.
18559 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
18560 * tree-vectorizer.c (rename_variables_in_loop): Extern.
18561 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
18562 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
18563 * tree-data-ref.c (debug_data_dependence_relations): New.
18564 (dump_data_dependence_relation): Also print data references.
18565 (free_data_ref): Extern.
18566 (same_access_functions): Moved...
18567 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
18568 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
18569 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
18570 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
18571 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
18572 (stmts_from_loop): Skip LABEL_EXPR.
18573 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
18575 (build_rdg): Initialize rdg->indices htab.
18576 (free_rdg, stores_from_loop, ref_base_address,
18577 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
18578 have_similar_memory_accesses_1, ref_base_address_1,
18579 remove_similar_memory_refs): New.
18580 * tree-data-ref.h: Depend on tree-chrec.h.
18581 (debug_data_dependence_relations, free_data_ref): Declared.
18582 (same_access_functions): ... here.
18583 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
18585 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
18586 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
18587 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
18588 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
18589 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
18590 rdg_vertex_for_stmt): Declared.
18591 (struct rdg_edge): Add level.
18593 (free_rdg, stores_from_loop, remove_similar_memory_refs,
18594 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
18596 (rdg_has_similar_memory_accesses): New.
18597 * tree-vect-analyze.c: Remove unused static decls.
18598 * lambda.h (dependence_level): New.
18599 * common.opt (ftree-loop-distribution): New.
18600 * tree-flow.h (mark_virtual_ops_in_bb,
18601 slpeel_tree_duplicate_loop_to_edge_cfg,
18602 rename_variables_in_loop): Declared.
18603 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
18604 (OBJS-common): Add tree-loop-distribution.o.
18605 (tree-loop-distribution.o): New rule.
18606 * tree-cfg.c (mark_virtual_ops_in_bb): New.
18607 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
18608 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
18610 2008-02-28 Joseph Myers <joseph@codesourcery.com>
18613 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
18614 other than structures and unions.
18616 2008-02-28 Richard Guenther <rguenther@suse.de>
18619 2008-02-26 Richard Guenther <rguenther@suse.de>
18621 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
18622 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
18623 (lookup_decl_from_uid): Declare.
18624 (remove_decl_from_map): Likewise.
18625 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
18626 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
18627 (decl_for_uid_map): New global hashtable mapping DECL_UID
18629 (init_ttree): Allocate it.
18630 (insert_decl_to_uid_decl_map): New helper function.
18631 (make_node_stat): Insert new decls into the map.
18632 (copy_node_stat): Likewise.
18633 (lookup_decl_from_uid): New function.
18634 (remove_decl_from_map): Likewise.
18635 (print_decl_for_uid_map_statistics): New helper.
18636 (dump_tree_statistics): Call it.
18638 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
18639 (referenced_var_iterator): Adjust.
18640 (FOR_EACH_REFERENCED_VAR): Adjust.
18641 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
18642 (num_referenced_vars): Adjust.
18643 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
18644 (first_referenced_var): Remove.
18645 (end_referenced_vars_p): Likewise.
18646 (next_referenced_var): Likewise.
18647 (referenced_var_iterator_set): New helper function.
18648 * tree-dfa.c (referenced_var_lookup): Adjust.
18649 (referenced_var_check_and_insert): Likewise.
18650 (remove_referenced_var): Likewise.
18651 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
18652 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18653 (verify_call_clobbering): Likewise.
18654 (verify_memory_partitions): Likewise.
18655 (init_tree_ssa): Allocate bitmap instead of hashtable for
18657 (delete_tree_ssa): Adjust.
18658 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
18659 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18660 (compute_tag_properties): Likewise.
18661 (set_initial_properties): Likewise.
18662 (find_partition_for): Likewise.
18663 (update_reference_counts): Likewise.
18664 (dump_may_aliases_for): Likewise.
18665 * tree-ssa-operands.c (add_virtual_operand): Likewise.
18666 (add_call_clobber_ops): Likewise.
18667 (add_call_read_ops): Likewise.
18668 (get_asm_expr_operands): Likewise.
18669 * tree-into-ssa.c (dump_decl_set): Likewise.
18670 (update_ssa): Likewise.
18671 * tree-sra.c (scan_function): Likewise.
18672 (decide_instantiations): Likewise.
18673 (scalarize_parms): Likewise.
18674 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
18675 (dsa_named_for): Likewise.
18676 * tree-ssa-structalias.c (update_alias_info): Likewise.
18677 (merge_smts_into): Likewise.
18679 2008-02-27 David Daney <ddaney@avtrex.com>
18682 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
18683 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
18684 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
18685 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
18686 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
18688 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
18691 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
18692 (BUILT_IN_NEXTTOWARD): Remove.
18693 (BUILT_IN_NEXTTOWARDF): Ditto.
18694 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
18695 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
18697 2008-02-27 Tom Tromey <tromey@redhat.com>
18699 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
18700 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
18702 2008-02-27 Jan Beulich <jbeulich@novell.com>
18704 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
18705 update the respective field on newdecl.
18707 2008-02-27 Revital Eres <eres@il.ibm.com>
18709 PR rtl-optimization/34999
18710 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
18711 crossing edges that ends with a call insn.
18712 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
18713 call insn and clear the EDGE_CROSSING flag of the crossing edge
18714 when fixing fallthru edges.
18716 2008-02-27 Richard Guenther <rguenther@suse.de>
18718 PR middle-end/35390
18719 * fold-const.c (fold_unary): Return the correct argument,
18720 converted to the result type.
18722 2008-02-27 Richard Guenther <rguenther@suse.de>
18724 PR middle-end/34971
18725 * expr.c (expand_expr_real_1): Assert on rotates that operate
18727 * fold-const.c (fold_binary): Use the types precision, not the
18728 bitsize of the mode if folding rotate expressions. Build rotates
18729 only for full modes.
18731 2008-02-27 Jakub Jelinek <jakub@redhat.com>
18733 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
18734 and CPP_PRAGMA_EOL.
18735 * c-pragma.c (pragma_ns_name): New typedef.
18736 (registered_pp_pragmas): New variable.
18737 (c_pp_lookup_pragma): New function.
18738 (c_register_pragma_1): If flag_preprocess_only, do nothing
18739 for non-expanded pragmas, for expanded ones push pragma's
18740 namespace and name into registered_pp_pragmas vector.
18741 (c_invoke_pragma_handler): Register OpenMP pragmas even when
18742 flag_preprocess_only, don't register GCC pch_preprocess
18743 pragma if flag_preprocess_only.
18744 * c-opts.c (c_common_init): Call init_pragma even if
18745 flag_preprocess_only.
18746 * c-pragma.c (c_pp_lookup_pragma): New prototype.
18747 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
18748 cpp_register_pragma if flag_preprocess_only.
18750 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18753 * c-parser.c (c_parser_translation_unit): Warn for empty
18754 translation unit, not empty source file.
18756 2008-02-26 Paul Brook <paul@codesourcery.com>
18758 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
18759 operand for Thumb-2.
18760 * config/arm/arm.h (reg_class): Add CORE_REGS.
18761 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
18762 (BASE_REG_CLASS): Use CORE_REGS.
18763 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
18764 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
18765 (REGNO_OK_FOR_INDEX_P): Exclude SP.
18766 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
18767 ARM_REGNO_OK_FOR_INDEX_P.
18768 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
18769 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
18770 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
18771 (ldm/stm peepholes): Ditto.
18772 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
18773 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
18774 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
18775 * config/arm/constraints.md: Enable "k" constraint on ARM.
18777 2008-02-27 Ben Elliston <bje@au.ibm.com>
18779 * config/rs6000/rs6000.c: Annotate cache line size field in all
18780 instances of struct processor_costs.
18782 2008-02-26 David Edelsohn <edelsohn@gnu.org>
18784 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
18785 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
18786 jump_bypass): New counters.
18787 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
18788 * dce.c (gate_ud_dce): Same.
18789 (gate_fast_dce): Same.
18790 * dse.c (gate_dse1): New function.
18791 (gate_dse2): New function.
18792 (gate_dse): Merge results of new gate functions.
18793 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
18794 (gate_handle_jump_bypass): Add dbg_cnt.
18795 (gate_handle_gcse): Add dbg_cnt.
18796 * ifcvt.c (gate_handle_if_conversion): Same.
18797 (gate_handle_if_after_combine): Same.
18798 (gate_handle_if_after_reload): Same.
18799 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
18801 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
18803 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
18805 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
18807 2008-02-26 Jason Merrill <jason@redhat.com>
18810 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
18811 alone if it's the naming decl for the type's main variant.
18813 2008-02-26 Tom Tromey <tromey@redhat.com>
18815 * system.h (USE_MAPPED_LOCATION): Poison.
18816 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
18817 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
18818 (make_goto_expr_edges): Likewise.
18819 (remove_bb): Likewise.
18820 (execute_warn_function_return): Likewise.
18821 * basic-block.h (struct edge_def) <goto_locus>: Change type to
18823 * c-common.c (fname_decl): Remove old location code.
18824 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
18826 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
18828 (ASM_INPUT_SOURCE_LOCATION): Likewise.
18829 (gen_rtx_ASM_INPUT): Likewise.
18830 (gen_rtx_ASM_INPUT_loc): Likewise.
18831 (get_rtx_asm_OPERANDS): Remove.
18832 * cfglayout.c (insn_locators_alloc): Remove old location code.
18833 (set_curr_insn_source_location): Likewise.
18834 (curr_insn_locator): Likewise.
18835 * print-tree.c (print_node): Remove old location code.
18836 * tree-mudflap.c (mf_varname_tree): Remove old location code.
18837 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
18838 * cfgexpand.c (expand_gimple_cond_expr): Don't use
18839 location_from_locus.
18840 (construct_exit_block): Remove old location code.
18841 * emit-rtl.c (force_next_line_note): Remove old location code.
18842 * profile.c (branch_prob): Remove old location code.
18843 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
18844 LOC_LINE): Remove old-location variants.
18845 * langhooks.c (lhd_print_error_function): Remove old location
18847 * configure, config.in: Rebuilt.
18848 * configure.ac (--enable-mapped-location): Remove.
18849 * c-decl.c (c_init_decl_processing): Remove old location code.
18850 (finish_function): Likewise.
18851 * recog.c (decode_asm_operands): Remove old location code.
18852 * c-pch.c (c_common_read_pch): Remove old location code.
18853 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
18855 * gimple-low.c (lower_function_body): Remove old location code.
18856 * toplev.c (unknown_location): Remove.
18857 (push_srcloc): Remove old-location variant.
18858 (process_options): Remove old location code.
18859 (lang_dependent_init): Likewise.
18860 * input.h (UNKNOWN_LOCATION): Move definition.
18861 (location_t): Undeprecate.
18862 (source_locus): Remove.
18863 (location_from_locus): Remove.
18864 (struct location_s): Remove.
18865 Remove all old-location code.
18866 (input_line, input_filename): Remove.
18867 * final.c (final_scan_insn): Remove old location code.
18868 * diagnostic.c (diagnostic_build_prefix): Remove
18869 USE_MAPPED_LOCATION test.
18870 * tree.h (gimple_stmt) <locus>: Now a location_t.
18871 (tree_exp) <locus>: Likewise.
18872 (DECL_IS_BUILTIN): Remove old-location variant.
18873 (annotate_with_file_line, annotate_with_locus): Likewise.
18874 (expr_locus, set_expr_locus): Update.
18875 * tree.c (build1_stat): Remove old location code.
18876 (last_annotated_node): Remove.
18877 (annotate_with_file_line): Remove old-location variant.
18878 (annotate_with_locus): Likewise.
18879 (expr_location): Remove old location code.
18880 (set_expr_location): Likewise.
18881 (expr_has_location): Likewise.
18882 (expr_locus): Likewise.
18883 (set_expr_locus): Likewise.
18884 (expr_filename): Don't use location_from_locus.
18885 (expr_lineno): Likewise.
18886 * rtl-error.c (location_for_asm): Remove old location code.
18887 * c-lex.c (cb_line_change): Remove old location code.
18888 (fe_file_change): Likewise.
18889 (cb_def_pragma): Likewise.
18890 (c_lex_with_flags): Likewise.
18891 * gengtype.c (do_typedef): Don't special-case location types.
18892 (define_location_structures): Remove.
18893 (main): Don't call define_location_structures.
18894 * tree-pretty-print.c (dump_implicit_edges): Remove old location
18897 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18900 * builtins.def (BUILT_IN_STDARG_START): Remove.
18901 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
18902 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18903 * tree-inline.c (inline_forbidden_p_1): Likewise.
18905 2008-02-26 Richard Guenther <rguenther@suse.de>
18907 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
18908 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
18909 (lookup_decl_from_uid): Declare.
18910 (remove_decl_from_map): Likewise.
18911 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
18912 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
18913 (decl_for_uid_map): New global hashtable mapping DECL_UID
18915 (init_ttree): Allocate it.
18916 (insert_decl_to_uid_decl_map): New helper function.
18917 (make_node_stat): Insert new decls into the map.
18918 (copy_node_stat): Likewise.
18919 (lookup_decl_from_uid): New function.
18920 (remove_decl_from_map): Likewise.
18921 (print_decl_for_uid_map_statistics): New helper.
18922 (dump_tree_statistics): Call it.
18924 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
18925 (referenced_var_iterator): Adjust.
18926 (FOR_EACH_REFERENCED_VAR): Adjust.
18927 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
18928 (num_referenced_vars): Adjust.
18929 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
18930 (first_referenced_var): Remove.
18931 (end_referenced_vars_p): Likewise.
18932 (next_referenced_var): Likewise.
18933 (referenced_var_iterator_set): New helper function.
18934 * tree-dfa.c (referenced_var_lookup): Adjust.
18935 (referenced_var_check_and_insert): Likewise.
18936 (remove_referenced_var): Likewise.
18937 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
18938 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18939 (verify_call_clobbering): Likewise.
18940 (verify_memory_partitions): Likewise.
18941 (init_tree_ssa): Allocate bitmap instead of hashtable for
18943 (delete_tree_ssa): Adjust.
18944 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
18945 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
18946 (compute_tag_properties): Likewise.
18947 (set_initial_properties): Likewise.
18948 (find_partition_for): Likewise.
18949 (update_reference_counts): Likewise.
18950 (dump_may_aliases_for): Likewise.
18951 * tree-ssa-operands.c (add_virtual_operand): Likewise.
18952 (add_call_clobber_ops): Likewise.
18953 (add_call_read_ops): Likewise.
18954 (get_asm_expr_operands): Likewise.
18955 * tree-into-ssa.c (dump_decl_set): Likewise.
18956 (update_ssa): Likewise.
18957 * tree-sra.c (scan_function): Likewise.
18958 (decide_instantiations): Likewise.
18959 (scalarize_parms): Likewise.
18960 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
18961 (dsa_named_for): Likewise.
18962 * tree-ssa-structalias.c (update_alias_info): Likewise.
18963 (merge_smts_into): Likewise.
18965 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18968 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
18969 * c-opts.c (c_common_handle_option): Wall enables
18970 Wvolatile-register-var.
18971 * common.opt: Move Wvolatile-register-var to...
18974 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18976 * common.opt (Wlarger-than=): New.
18977 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
18979 * opts.c (common_handle_option): Handle -Wlarger-than=.
18980 * optc-gen.awk: Likewise.
18981 * opth-gen.awk: Likewise.
18982 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
18983 * tree-optimize.c (tree_rest_of_compilation): Likewise.
18985 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18987 * c-common.c (match_case_to_enum_1): Add appropriate
18988 OPT_W* parameter to warning.
18989 (c_do_switch_warnings): Likewise.
18990 * c-typeck.c (warning_init): Add one more parameter following
18991 'warning' function.
18992 (push_init_level): Update call to warning_init.
18993 (pop_init_level): Likewise.
18994 (add_pending_init): Likewise.
18995 (output_init_element: Likewise.
18997 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19000 * toplev.c (toplev_main): If there are warnings or error, print
19001 errors for ignored options.
19002 * opts.c (ignored_options): New static variable.
19003 (postpone_unknown_option_error): New.
19004 (print_ignored_options): New.
19005 (handle_option): Postpone errors for unknown -Wno-* options.
19006 * opts.h (print_ignored_options): Declare.
19008 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
19010 * config/mips/mips.md (loadgp_blockage, blockage): Change type
19013 2008-02-25 Richard Guenther <rguenther@suse.de>
19016 2008-02-25 Richard Guenther <rguenther@suse.de>
19018 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19019 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19020 (lookup_decl_from_uid): Declare.
19021 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19022 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19023 (decl_for_uid_map): New global hashtable mapping DECL_UID
19025 (init_ttree): Allocate it.
19026 (insert_decl_to_uid_decl_map): New helper function.
19027 (make_node_stat): Insert new decls into the map.
19028 (copy_node_stat): Likewise.
19029 (lookup_decl_from_uid): New function.
19030 (print_decl_for_uid_map_statistics): New helper.
19031 (dump_tree_statistics): Call it.
19033 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19034 (referenced_var_iterator): Adjust.
19035 (FOR_EACH_REFERENCED_VAR): Adjust.
19036 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19037 (num_referenced_vars): Adjust.
19038 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19039 (first_referenced_var): Remove.
19040 (end_referenced_vars_p): Likewise.
19041 (next_referenced_var): Likewise.
19042 (referenced_var_iterator_set): New helper function.
19043 * tree-dfa.c (referenced_var_lookup): Adjust.
19044 (referenced_var_check_and_insert): Likewise.
19045 (remove_referenced_var): Likewise.
19046 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19047 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19048 (verify_call_clobbering): Likewise.
19049 (verify_memory_partitions): Likewise.
19050 (init_tree_ssa): Allocate bitmap instead of hashtable for
19052 (delete_tree_ssa): Adjust.
19053 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19054 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19055 (compute_tag_properties): Likewise.
19056 (set_initial_properties): Likewise.
19057 (find_partition_for): Likewise.
19058 (update_reference_counts): Likewise.
19059 (dump_may_aliases_for): Likewise.
19060 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19061 (add_call_clobber_ops): Likewise.
19062 (add_call_read_ops): Likewise.
19063 (get_asm_expr_operands): Likewise.
19064 * tree-into-ssa.c (dump_decl_set): Likewise.
19065 (update_ssa): Likewise.
19066 * tree-sra.c (scan_function): Likewise.
19067 (decide_instantiations): Likewise.
19068 (scalarize_parms): Likewise.
19069 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19070 (dsa_named_for): Likewise.
19071 * tree-ssa-structalias.c (update_alias_info): Likewise.
19072 (merge_smts_into): Likewise.
19074 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
19077 * doc/invoke.texi (-fcx-limited-range): Document new option.
19078 * toplev.c (process_options): Handle -fcx-fortran-rules.
19079 * common.opt: Add documentation for -fcx-fortran-rules.
19081 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
19084 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
19085 actual behaviour and C99.
19087 2008-02-26 Ben Elliston <bje@au.ibm.com>
19089 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
19090 (ASM_CPU_POWER6_SPEC): Likewise.
19091 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
19092 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
19093 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
19095 2008-02-25 Richard Guenther <rguenther@suse.de>
19097 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19098 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19099 (lookup_decl_from_uid): Declare.
19100 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19101 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19102 (decl_for_uid_map): New global hashtable mapping DECL_UID
19104 (init_ttree): Allocate it.
19105 (insert_decl_to_uid_decl_map): New helper function.
19106 (make_node_stat): Insert new decls into the map.
19107 (copy_node_stat): Likewise.
19108 (lookup_decl_from_uid): New function.
19109 (print_decl_for_uid_map_statistics): New helper.
19110 (dump_tree_statistics): Call it.
19112 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19113 (referenced_var_iterator): Adjust.
19114 (FOR_EACH_REFERENCED_VAR): Adjust.
19115 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19116 (num_referenced_vars): Adjust.
19117 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19118 (first_referenced_var): Remove.
19119 (end_referenced_vars_p): Likewise.
19120 (next_referenced_var): Likewise.
19121 (referenced_var_iterator_set): New helper function.
19122 * tree-dfa.c (referenced_var_lookup): Adjust.
19123 (referenced_var_check_and_insert): Likewise.
19124 (remove_referenced_var): Likewise.
19125 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19126 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19127 (verify_call_clobbering): Likewise.
19128 (verify_memory_partitions): Likewise.
19129 (init_tree_ssa): Allocate bitmap instead of hashtable for
19131 (delete_tree_ssa): Adjust.
19132 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19133 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19134 (compute_tag_properties): Likewise.
19135 (set_initial_properties): Likewise.
19136 (find_partition_for): Likewise.
19137 (update_reference_counts): Likewise.
19138 (dump_may_aliases_for): Likewise.
19139 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19140 (add_call_clobber_ops): Likewise.
19141 (add_call_read_ops): Likewise.
19142 (get_asm_expr_operands): Likewise.
19143 * tree-into-ssa.c (dump_decl_set): Likewise.
19144 (update_ssa): Likewise.
19145 * tree-sra.c (scan_function): Likewise.
19146 (decide_instantiations): Likewise.
19147 (scalarize_parms): Likewise.
19148 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19149 (dsa_named_for): Likewise.
19150 * tree-ssa-structalias.c (update_alias_info): Likewise.
19151 (merge_smts_into): Likewise.
19153 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
19156 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
19157 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
19158 * alias.h (nonoverlapping_memrefs_p): Likewise.
19160 2008-02-25 Jan Beulich <jbeulich@novell.com>
19162 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
19163 * config/i386/netware-libgcc.exp: Add __bswap?i2,
19164 __emultls_get_address, __emultls_register_common,
19165 __floatundi?f, and _Unwind_GetIPInfo.
19166 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
19167 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
19168 (gen_regparm_prefix): Likewise.
19169 (i386_nlm_encode_section_info): Sync with
19170 config/i386/winnt.c:i386_pe_encode_section_info().
19171 (i386_nlm_maybe_mangle_decl_assembler_name): New.
19172 i386_nlm_mangle_decl_assembler_name): New.
19173 (netware_override_options): New.
19174 * config/i386/netware.h (netware_override_options): Declare.
19175 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
19176 (i386_nlm_mangle_decl_assembler_name): Declare.
19177 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
19179 2008-02-25 Ben Elliston <bje@au.ibm.com>
19182 * c-decl.c (grokdeclarator): Remove unused local variables
19183 `typedef_type' and `type_as_written'.
19185 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
19186 unused local variable `has_hot_blocks'.
19187 (fix_crossing_conditional_branches): Remove unused local variable
19190 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
19192 PR middle-end/19984
19193 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
19194 using DEF_C99_BUILTIN.
19195 (BUILT_IN_NANF): Ditto.
19196 (BUILT_IN_NANL): Ditto.
19198 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
19199 Revital Eres <eres@il.ibm.com>
19201 * modulo-sched.c (calculate_must_precede_follow): Address TODO
19202 regarding the order of two dependent insns in the same row.
19204 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
19206 * stor-layout.c (layout_decl): Do not bump the alignment of a
19207 bit-field to more than byte alignment if it is packed.
19209 2008-02-24 David Edelsohn <edelsohn@gnu.org>
19211 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
19214 2008-02-24 Diego Novillo <dnovillo@google.com>
19216 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
19219 * tree-vrp.c (vrp_evaluate_conditional): With
19220 -Wtype-limits, emit a warning when comparing against a
19221 constant outside the natural range of OP0's type.
19222 * c.opt (Wtype-limits): Move ...
19223 * common.opt (Wtype-limits): ... here.
19225 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
19227 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
19228 * config/rs6000/e300c2c3.md: New file.
19229 * config/rs6000/rs6000.c (processor_costs): Add new costs for
19231 (rs6000_override_options): Add e300c2 and e300c3 cases to
19232 processor_target_table. Do not allow usage of Altivec or Spe
19233 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
19234 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
19235 * config/rs6000/rs6000.h (processor_type): Add
19236 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
19237 (ASM_CPU_SPEC): Add e300c2 and e300c3.
19238 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
19239 and ppce300c3. Include e300c2c3.md.
19241 2008-02-23 David Edelsohn <edelsohn@gnu.org>
19243 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
19244 instead of TARGET_STRICT_ALIGN.
19246 2008-02-23 Joseph Myers <joseph@codesourcery.com>
19248 * explow.c (memory_address): Assert that the generated address is
19251 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19254 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
19255 * config/darwin-ppc-ldouble-patch.def: New file.
19256 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
19257 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
19258 SUBTARGET_INIT_BUILTINS if defined.
19259 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
19262 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
19265 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
19266 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
19268 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
19271 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
19272 file" warning condtional on -Winvalid-PCH.
19274 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
19276 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
19278 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
19282 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
19283 prevent reload from using MMX registers.
19284 (*mov<mode>_internal): Ditto.
19285 (*movv2sf_internal_rex64): Ditto.
19286 (*movv2sf_internal): Ditto.
19288 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19290 PR documentation/31569
19291 * doc/install.texi2html: Use makeinfo --no-number-sections.
19293 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
19295 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
19296 ensure that we can address an entire entity > 8 bytes. Don't
19297 generate reg+reg addressing for such data.
19299 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
19301 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
19302 strings when optimizing for size, unless the target cares about
19305 2008-02-22 Tom Tromey <tromey@redhat.com>
19307 * regclass.c (current_pass): Remove declaration.
19309 2008-02-22 Anatoly Sokolov <aesok@post.ru>
19311 * config/avr/libgcc.S (__RAMPZ__): Define.
19312 (__do_copy_data): Add for devices with 128KB code memory.
19314 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
19316 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
19318 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
19320 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
19322 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
19325 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19328 * c-typeck.c (build_binary_op): Warn about floating point
19329 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
19331 2008-02-21 Janis Johnson <janis187@us.ibm.com>
19334 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
19335 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
19337 (rs6000_override_options): Set altivec_abi as default, not override,
19338 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
19339 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
19340 is used; use new member spe_abi.
19341 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
19342 spe_abi and altivec_abi.
19344 2008-02-22 Tomas Bily <tbily@suse.cz>
19346 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
19348 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19351 * config.build (build_file_translate): Set to `CMD //c' only if
19353 * Makefile.in (build_file_translate): Improve comment.
19355 2008-02-21 Jan Hubicka <jh@suse.cz>
19357 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
19358 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
19359 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
19361 2008-02-21 Michael Matz <matz@suse.de>
19364 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
19366 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
19368 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
19369 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
19370 as insn constraint.
19371 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
19372 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
19373 SSE_VEC_FLOAT_MODE_P as insn constraint.
19374 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
19375 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
19376 sse4a_movntdf using MODEF mode iterator.
19377 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
19378 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
19379 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
19380 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
19381 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
19382 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
19383 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
19385 2008-02-21 Richard Guenther <rguenther@suse.de>
19387 * tree.def (PAREN_EXPR): New tree code.
19388 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
19390 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
19391 * expr.c (expand_expr_real_1): Likewise.
19392 * tree-inline.c (estimate_num_insns_1): Likewise.
19393 * tree-complex.c (expand_complex_move): Likewise.
19394 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
19397 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
19400 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
19402 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
19405 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
19407 * config/sh/sh.c (find_barrier): Don't go past
19408 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
19410 2008-02-20 DJ Delorie <dj@redhat.com>
19412 * config/h8300/h8300.md (insv): Force source operand to be a register.
19414 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
19415 as a jump, not as a plain insn.
19417 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
19419 * doc/invoke.texi (Warning Options): Add new option
19420 -Wframe-larger-than=.
19421 (-Wframe-larger-than): Document.
19423 * flags.h (warn_frame_larger_than, frame_larger_than_size):
19424 Add declarations for new option variables.
19426 * final.c (final_start_function): Check the frame size
19427 before emission and issue a Wframe-larger-than warning.
19429 * opts.c (warn_frame_larger_than, frame_larger_than_size):
19430 Add definitions for new option variables.
19431 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
19433 * common.opt (Wframe-larger-than=): New option.
19435 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
19437 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
19438 (<sse>_div<mode>3): Ditto.
19439 (<sse>_vmdiv<mode>3): Ditto.
19440 (<sse>_vmsqrt<mode>2): Ditto.
19441 (*smax<mode>3): Ditto.
19442 (sse5_frcz<mode>2): Ditto.
19443 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
19444 as insn constraint.
19446 2008-02-20 Richard Guenther <rguenther@suse.de>
19448 PR middle-end/35265
19449 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
19450 be happy with INTEGRAL_TYPE_P.
19452 2008-02-20 Richard Guenther <rguenther@suse.de>
19454 * fold-const.c (split_tree): Associate floatig-point expressions
19455 if flag_associative_math is set.
19457 2008-02-20 Richard Guenther <rguenther@suse.de>
19459 * tree.h (fold_real_zero_addition_p): Declare.
19460 * fold-const.c (fold_real_zero_addition_p): Export.
19461 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
19462 floating-point operations with zero and one.
19464 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
19466 * doc/install.texi: Correct references to CFLAGS, replacing them
19467 with BOOT_CFLAGS. Document flags used during bootstrap for
19470 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
19472 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
19473 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
19474 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
19476 (smin<mode>3): Ditto from similar patterns.
19477 (smax<mode>3): Ditto.
19478 (*ieee_smin<mode>3): Ditto.
19479 (*ieee_smax<mode>3): Ditto.
19480 * config/i386/sse.md (sse): New mode attribute.
19481 (mov<mode>): Macroize expander from movv4sf and movv2df using
19482 SSEMODEF2P mode iterator.
19483 (<sse>_movnt<mode>): Ditto from similar patterns. Use
19484 SSE_VEC_FLOAT_MODE_P as insn constraint.
19485 (storent<mode>): Ditto.
19486 (storent<mode>): Macroize expander from storentsf and storentdf using
19487 MODEF mode iterator.
19488 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
19489 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
19490 (abs<mode>2): Ditto from similar patterns.
19491 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
19492 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
19493 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
19494 (<sse>_vmsqrt<mode>2): Ditto.
19495 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
19496 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
19497 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
19498 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
19499 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
19500 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
19501 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
19503 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
19504 iterator and SSE_FLOAT_MODE_P as insn constraint.
19505 (<sse>_ucomi): Ditto from similar patterns.
19506 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
19507 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
19508 SSE_VEC_FLOAT_MODE_P as insn constraint.
19509 (vcond<mode>): Ditto from similar patterns.
19510 (and<mode>3, *and<mode>3): Ditto.
19511 (<sse>_nand<mode>3): Ditto.
19512 (ior<mode>3, *ior<mode>3): Ditto.
19513 (xor<mode>3, *xor<mode>3): Ditto.
19514 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
19515 iterator and SSE_FLOAT_MODE_P as insn constraint.
19516 (*nand<mode>3): Ditto from similar patterns.
19517 (*ior<mode>3): Ditto.
19518 (*xor<mode>3): Ditto.
19520 2008-02-20 Ira Rosen <irar@il.ibm.com>
19522 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
19523 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
19524 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
19526 2008-02-19 Jan Hubicka <jh@suse.cz>
19528 * predict.c (tree_bb_level_predictions): Remove variable next
19529 mistakely introduced by previous commit.
19531 2008-02-19 Jan Hubicka <jh@suse.cz>
19533 * predict.c (predict_paths_leading_to): Rewrite.
19534 (predict_paths_for_bb): New.
19535 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
19537 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19540 * Makefile.in (build_file_translate): New.
19541 (gcc-vers.texi): Use it for translating $(abs_srcdir).
19542 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
19543 * configure.ac (build_file_translate): Substitute it.
19544 * configure: Regenerate.
19546 2008-02-19 Jan Hubicka <jh@suse.cz>
19548 PR rtl-optimization/34408
19549 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
19552 2008-02-19 Jan Hubicka <jh@suse.cz>
19554 PR middle-end/28779
19555 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
19558 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
19561 * config/i386/i386-modes.def: Revert the last DI alignment
19562 change until Ada people can look into it.
19564 2008-02-19 Nick Clifton <nickc@redhat.com>
19566 * opts.c (print_specific_help): Fix typo in --help text.
19568 2008-02-19 Jakub Jelinek <jakub@redhat.com>
19571 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
19572 32-bit inline asm without asm alternatives for host GCC < 3.0.
19574 2008-02-19 Richard Guenther <rguenther@suse.de>
19576 PR tree-optimization/34989
19577 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
19578 Allow propagation to INDIRECT_REF if we can simplify only.
19580 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19582 * c-common.c (warn_for_collisions_1): Use appropriate option when
19585 2008-02-19 Nick Clifton <nickc@redhat.com>
19588 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
19589 (handle_options): Fix indentation.
19590 (print_filtered_help): If no language-specific options were
19591 displayed tell the user how to list all the options supported by
19592 the language's front-end.
19593 (print_specific_help): Fix indentation and remove duplicate line.
19594 (common_handle_option): Handle the -v option.
19595 For --help enable the display of undocumented options if the -v
19596 switch has been included on the command line.
19597 For --help= check for overlaps in the arguments between the option
19598 classes and the language names and issue a warning when they
19599 cannot be disambiguated.
19600 * c.opt (v): Pass on to the common option handler.
19602 2008-02-19 Revital Eres <eres@il.ibm.com>
19604 * modulo-sched.c (sms_schedule): Change dump message when
19605 create_ddg function fails.
19606 (try_scheduling_node_in_cycle): Rename row to cycle.
19607 (print_partial_schedule): Rename CYCLE to ROW.
19609 2008-02-19 Christian Bruel <christian.bruel@st.com>
19610 Zdenek Dvorak <ook@ucw.cz>
19612 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
19614 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
19617 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
19618 (*x86_movdicc_0_m1_se): Ditto.
19620 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
19622 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
19623 (CMPtype): Define as __gcc_CMPtype.
19624 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
19625 (CMPtype): Define as __gcc_CMPtype.
19627 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
19629 Support valgrind 3.3 for --enable-checking=valgrind.
19630 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
19632 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
19633 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
19634 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
19635 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
19636 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
19637 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
19638 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
19640 * ggc-zone.c: Similar.
19641 * ggc-page.c: Similar.
19643 2008-02-19 Paul Brook <paul@codesourcery.com>
19646 * config/arm/ieee754-df.S: Fix do_it typo.
19647 * config/arm/ieee754-sf.S: Fix do_it typo.
19649 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
19652 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
19653 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
19654 (OPTION_MASK_ISA_SSE_SET): Likewise.
19655 (OPTION_MASK_ISA_SSE2_SET): Likewise.
19656 (OPTION_MASK_ISA_SSE3_SET): Likewise.
19657 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
19658 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
19659 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
19660 (OPTION_MASK_ISA_SSE4_SET): Likewise.
19661 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
19662 (OPTION_MASK_ISA_SSE5_SET): Likewise.
19663 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
19664 (OPTION_MASK_ISA_MMX_UNSET): Updated.
19665 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
19666 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
19667 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
19668 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
19669 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
19670 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
19671 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
19672 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
19673 (OPTION_MASK_ISA_SSE4): Removed.
19674 (ix86_handle_option): Turn on bits in ix86_isa_flags and
19675 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
19676 (override_options): Don't turn on implied SSE/MMX bits in
19679 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
19681 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19684 2008-02-18 Joey Ye <joey.ye@intel.com>
19686 PR middle-end/34921
19687 * tree-nested.c (insert_field_into_struct): Set type alignment
19688 to field alignment if the former is less than the latter.
19690 2008-02-18 Jakub Jelinek <jakub@redhat.com>
19692 * BASE-VER: Set to 4.4.0.
19694 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19696 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
19697 * doc/cfg.texi: Likewise.
19698 * doc/extend.texi: Likewise.
19699 * doc/gty.texi: Likewise.
19700 * doc/invoke.texi: Likewise.
19701 * doc/loop.texi: Likewise.
19702 * doc/md.texi: Likewise.
19703 * doc/passes.texi: Likewise.
19704 * doc/rtl.texi: Likewise.
19705 * doc/sourcebuild.texi: Likewise.
19706 * doc/tm.texi: Likewise.
19707 * doc/tree-ssa.texi: Likewise.
19709 2008-02-17 Richard Guenther <rguenther@suse.de>
19711 PR middle-end/35227
19712 * tree-complex.c (init_parameter_lattice_values): Handle parameters
19713 without default definition.
19715 2008-02-17 Richard Guenther <rguenther@suse.de>
19717 PR tree-optimization/35231
19718 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
19721 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
19724 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
19725 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
19726 libgcc_cmp_return mode.
19728 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19731 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
19733 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
19735 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
19738 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19740 * doc/c-tree.texi: Use `@.' where appropriate.
19741 * doc/extend.texi: Likewise.
19742 * doc/install.texi: Likewise.
19743 * doc/invoke.texi: Likewise.
19744 * doc/loop.texi: Likewise.
19745 * doc/makefile.texi: Likewise.
19746 * doc/md.texi: Likewise.
19747 * doc/passes.texi: Likewise.
19748 * doc/standards.texi: Likewise.
19749 * doc/tm.texi: Likewise.
19751 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19753 PR middle-end/35196
19754 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
19756 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
19757 rather than in entry_bb.
19759 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
19761 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
19762 libgcc_cmp_return mode.
19764 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19766 PR middle-end/35130
19767 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
19768 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
19770 2008-02-15 Richard Guenther <rguenther@suse.de>
19771 Zdenek Dvorak <ook@ucw.cz>
19773 PR tree-optimization/35164
19774 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
19775 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
19776 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
19777 Only propagate addresses which do not have abnormal SSA_NAMEs
19780 2008-02-15 Joseph Myers <joseph@codesourcery.com>
19783 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
19785 2008-02-15 Jan Hubicka <jh@suse.cz>
19787 PR middle-end/35149
19788 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
19790 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
19792 PR middle-end/34621
19793 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
19794 when calculating alignment_pad.
19796 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
19798 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
19799 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
19800 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
19801 and STACK_BOUNDARY define.
19803 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
19805 PR preprocessor/35061
19806 * c-pragma.c (handle_pragma_pop_macro): Check that
19807 pushed_macro_table has been allocated.
19809 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
19811 PR middle-end/35136
19812 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
19813 (force_gimple_operand): Likewise.
19814 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
19815 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
19816 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
19817 (find_interesting_uses_address): Check addressability and alignment
19818 of the base expression only after substituting bases of IVs into it.
19820 2008-02-14 Michael Matz <matz@suse.de>
19823 * function.c (instantiate_virtual_regs_in_insn): Reload address
19824 before falling back to reloading the whole operand.
19826 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
19828 * config/s390/s390.c (s390_mainpool_start): Emit the pool
19829 before the first section switch note.
19831 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19833 * doc/bugreport.texi: Update copyright years.
19834 * doc/c-tree.texi: Likewise.
19835 * doc/cfg.texi: Likewise.
19836 * doc/cpp.texi: Likewise.
19837 * doc/cppinternals.texi: Likewise.
19838 * doc/fragments.texi: Likewise.
19839 * doc/frontends.texi: Likewise.
19840 * doc/gcc.texi: Likewise.
19841 * doc/gty.texi: Likewise.
19842 * doc/hostconfig.texi: Likewise.
19843 * doc/implement-c.texi: Likewise.
19844 * doc/libgcc.texi: Likewise.
19845 * doc/loop.texi: Likewise.
19846 * doc/makefile.texi: Likewise.
19847 * doc/options.texi: Likewise.
19848 * doc/passes.texi: Likewise.
19849 * doc/rtl.texi: Likewise.
19850 * doc/sourcebuild.texi: Likewise.
19851 * doc/standards.texi: Likewise.
19852 * doc/tree-ssa.texi: Likewise.
19853 * doc/trouble.texi: Likewise.
19855 * doc/extend.texi: Use @: or add comma where appropriate.
19856 * doc/invoke.texi: Likewise.
19857 * doc/tm.texi: Likewise.
19859 2008-02-14 Alan Modra <amodra@bigpond.net.au>
19862 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
19865 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
19867 * doc/md.texi (clz, ctz): Add reference.
19868 * doc/rtl.texi (clz, ctz): Likewise.
19870 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19873 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
19876 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
19878 * config/s390/s390.c (struct constant_pool): New field
19879 emit_pool_after added.
19880 (s390_mainpool_start): Set the emit_pool_after flag according
19881 to the section switch notes.
19882 (s390_mainpool_finish): Consider emit_pool_after when emitting
19883 the literal pool at the end of the function.
19884 (s390_chunkify_start): Force literal pool splits at section
19887 2008-02-13 Michael Matz <matz@suse.de>
19890 * var-tracking.c (clobber_variable_part): Correctly traverse the
19893 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19896 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
19897 Add -fdump-ipa-inline.
19898 * tree-dump.c (dump_files): Remove tree-inlined dump.
19899 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
19901 2008-02-12 Richard Guenther <rguenther@suse.de>
19903 PR tree-optimization/35171
19904 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
19907 2008-02-12 Richard Guenther <rguenther@suse.de>
19909 PR middle-end/35163
19910 * fold-const.c (fold_widened_comparison): Use get_unwidened in
19911 value-preserving mode. Disallow final truncation.
19913 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
19915 PR middle-end/35136
19916 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
19917 code from here to...
19918 (force_gimple_operand): ...here.
19920 2008-02-12 Jakub Jelinek <jakub@redhat.com>
19923 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
19924 non-compatible pointers.
19925 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
19926 different FIELD_DECLs, try harder by comparing field offsets, sizes
19929 PR inline-asm/35160
19930 * function.c (match_asm_constraints_1): Don't replace the same input
19933 2008-02-12 Anatoly Sokolov <aesok@post.ru>
19935 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
19936 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
19937 (expand_epilogue): Restore RAMPZ register.
19938 * config/avr/avr.md (RAMPZ_ADDR): New constant.
19940 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
19942 * config/i386/cygwin.asm: (__alloca): Correct calling
19943 convention and alignment.
19944 (__chkstk): Force 8 byte stack alignment.
19946 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
19947 Richard Guenther <rguenther@suse.de>
19949 PR tree-optimization/33992
19950 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
19951 the zero we compare against.
19953 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
19955 PR libfortran/35063
19956 * gthr-win32.h (__gthread_mutex_destroy_function): New function
19957 to CloseHandle after unlocking to prevent accumulation of handle
19960 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19962 PR middle_end/34150
19963 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
19964 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
19965 and update LABEL_NUSES during and after reload.
19967 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
19969 PR middle-end/34627
19970 * combine.c (simplify_if_then_else): Make sure the comparison is
19971 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
19973 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
19976 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
19977 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
19978 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
19979 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
19980 * tree.h (get_type_static_bounds): Likewise.
19982 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19984 * doc/invoke.texi (Option Summary, C++ Dialect Options)
19985 (Objective-C and Objective-C++ Dialect Options, Warning Options):
19986 Make -Wfoo language annotations match what the compiler outputs.
19988 2008-02-08 Sa Liu <saliu@de.ibm.com>
19990 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
19991 intrinsics spu_convts, spu_convtu, spu_convtf.
19993 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
19995 * doc/extend.texi (Function Attributes) <noinline>: Mention
19996 asm ("") as method to keep calls.
19998 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20001 * doc/options.texi (Options): Replace references to opts.sh with
20003 * opts-common.c: Likewise.
20004 * optc-gen.awk: Likewise.
20006 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
20008 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20010 2008-02-07 Richard Henderson <rth@redhat.com>
20013 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
20014 EXPR_LIST for the REG_EQUAL instead of a comparison with a
20017 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
20019 PR tree-optimization/35085
20020 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
20021 for operand entry oe2 in addition to operand entry oe3 in order to
20022 expose more opportunities for vectorizer sum reduction.
20024 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20027 * Makefile.in (LIBS): Remove $(GMPLIBS).
20028 (cc1-dummy, cc1): Add $(GMPLIBS).
20030 2008-02-06 Jan Hubicka <jh@suse.cz>
20033 * i386.md (moddf_integer): Do not produce partial memory stalls for
20034 targets where it hurts.
20036 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
20039 * optabs.c (expand_float): Do not check for decimal modes when
20040 expanding unsigned integer through signed conversion.
20042 2008-02-06 Nick Clifton <nickc@redhat.com>
20044 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
20045 inside the clobber with a match_operand and duplicated operand
20046 number in the constraint.
20047 (ineqbranchsi): Delete redundant comment.
20049 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
20051 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
20052 builtin_define ("__USE_INIT_FINI__").
20053 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
20055 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
20057 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20059 PR documentation/30330
20060 * doc/invoke.texi (C++ Dialect Options)
20061 (Objective-C and Objective-C++ Dialect Options, Warning Options):
20062 For each warning option -Wfoo that allows -Wno-foo, ensure both
20063 -Wfoo and -Wno-foo are listed in the option index. Fix index
20064 entry of -Wswitch-default, index -Wnormalized= including the
20065 `=', and -Wlarger-than-@var{len} including @var{len}.
20067 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
20069 * config/i386/i386.md (floatunssisf2): Use
20070 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
20071 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
20072 Macroize expander using MODEF mode iterator.
20074 2008-02-05 Diego Novillo <dnovillo@google.com>
20076 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
20079 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
20081 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20084 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
20086 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
20089 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
20090 to indicate if a message should be generated.
20091 (init_cumulative_args): Updated.
20092 (function_value_32): Likewise.
20094 2008-02-05 Joseph Myers <joseph@codesourcery.com>
20096 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
20098 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
20101 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
20102 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
20104 2008-02-04 Diego Novillo <dnovillo@google.com>
20106 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
20109 * tree-vrp.c (vrp_evaluate_conditional): With
20110 -Wtype-limits, emit a warning when comparing against a
20111 constant outside the natural range of OP0's type.
20113 2008-02-04 Richard Guenther <rguenther@suse.de>
20115 PR middle-end/33631
20116 * expr.c (count_type_elements): Give for unions instead of
20119 2008-02-04 Richard Guenther <rguenther@suse.de>
20121 PR middle-end/35043
20122 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
20123 to TYPE_DOMAINs base type instead of using bitsizetype here.
20125 2008-02-03 Jason Merrill <jason@redhat.com>
20127 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
20129 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20132 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
20133 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
20134 (RS/6000 and PowerPC Options): Fix typos and markup.
20135 * doc/passes.texi (Tree-SSA passes): Likewise.
20137 2008-02-02 Michael Matz <matz@suse.de>
20140 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
20141 from record_last_reg_set_info.
20142 (record_last_reg_set_info): Take an RTX argument, iterate over all
20143 constituent hardregs.
20144 (record_last_set_info, record_opr_changes): Change calls to
20145 new signature or to record_last_reg_set_info_regno.
20147 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
20149 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
20151 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
20153 PR rtl-optimization/34773
20154 * reg-notes.def (EQUAL): Mention significance of combination of
20155 REG_EQUAL and REG_RETVAL.
20156 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
20157 insn that has a REG_RETVAL.
20159 2008-02-01 Roger Sayle <roger@eyesopen.com>
20162 * configure.ac (--enable-fixed-point): Disable unless explicitly
20164 * configure: Regenerate.
20166 2008-02-01 Richard Guenther <rguenther@suse.de>
20169 * invoke.texi (-finline-limit): Remove no longer true parts
20170 of the documentation. Note that there is no default value.
20172 2008-02-01 Andrew Pinski <pinskia@gmail.com>
20173 Mark Mitchell <mark@codesourcery.com>
20174 Ben Elliston <bje@au.ibm.com>
20177 * doc/extend.texi (Other Builtins): Document.
20179 2008-01-31 Tom Browder <tom.browder@gmail.com>
20181 * doc/c-tree.texi (Types): Fix grammar.
20182 (Expression trees): Ditto.
20183 * doc/passes.texi (Tree-SSA passes): Ditto.
20185 * doc/configterms.texi (Configure Terms): Fix typo.
20186 * doc/cpp.texi (Common Predefined Macros): Ditto.
20187 * doc/md.texi (Machine Constraints): Ditto.
20189 * doc/makefile.texi (Makefile): Add comma.
20191 2008-01-31 Tom Browder <tom.browder@gmail.com>
20192 Gerald Pfeifer <gerald@pfeifer.com>
20194 * doc/sourcebuild.texi (Front End): Remove references to CVS
20195 and CVSROOT/modules.
20196 (Texinfo Manuals): Replace reference to CVS by one to SVN.
20197 (Back End): Remove reference to CVS.
20199 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
20202 * config/mips/mips.c (gen_load_const_gp): New function, taking a
20204 (mips16_gp_pseudo_reg): ...here.
20205 * config/mips/mips.md (load_const_gp): Replace with...
20206 (load_const_gp_<mode>): ...this :P-based insn.
20208 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20210 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
20211 options. Minor fixes.
20212 (-std): Move reference to standards closer to where language
20213 standards are first mentioned.
20215 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
20217 PR rtl-optimization/34995
20218 * reload.c (alternative_allows_const_pool_ref): Take an rtx
20219 parameter and return a bool. If the rtx parameter is nonnull,
20220 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
20221 (find_reloads): Update call accordingly. Pass the new operand
20222 if it needed no address reloads, otherwise pass null.
20224 2008-01-30 Richard Henderson <rth@redhat.com>
20227 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
20228 for unbounded arrays.
20230 2008-01-30 Silvius Rus <rus@google.com>
20232 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
20234 2008-01-30 Jan Hubicka <jh@suse.cz>
20237 * i386.c (init_cumulative_args): Use real function declaration when
20240 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
20242 PR rtl-optimization/34998
20243 * global.c (build_insn_chain): Treat non-subreg_lowpart
20244 SUBREGs of pseudos as clobbering all the words covered by the
20245 SUBREG, not just all the bytes.
20246 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
20247 original df_ref rather than an extract parameter.
20248 (global_conflicts): Update call accordingly.
20250 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
20252 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
20253 the overflow check to make it easier to read.
20254 (__fixtfdi): Change the type of the ll member in union
20255 long_double to UDItype_x.
20257 2008-01-30 Jakub Jelinek <jakub@redhat.com>
20259 PR middle-end/34969
20260 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
20261 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
20262 * tree-inline.c (fold_marked_statements): Call
20263 cgraph_update_edges_for_call_stmt if folding a call statement.
20264 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
20265 debug_generic_stmt calls, reset it back afterwards.
20268 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
20270 * c-typeck.c (build_external_ref): Don't pedwarn about
20271 static vars in current function's scope.
20273 2008-01-29 Joseph Myers <joseph@codesourcery.com>
20275 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
20277 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
20280 * ipa-struct-reorg.c: Fix spelling.
20281 * params.def: Ditto.
20283 2008-01-29 Richard Guenther <rguenther@suse.de>
20285 PR middle-end/35006
20286 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
20288 * tree-inline.c (remap_type): Increment remapping_type_depth
20289 around remapping types.
20290 (copy_body_r): Only add referenced variables if they are referenced
20291 from code, not types.
20293 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
20304 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
20305 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
20307 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
20310 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
20311 pointer for tiny stack.
20313 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
20315 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
20317 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
20319 * config/vx-common.h: Fix typo in comment.
20321 2008-01-28 Ian Lance Taylor <iant@google.com>
20325 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20326 coalesce pointers if they have different DECL_NO_TBAA_P values.
20327 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
20328 between variables with different DECL_NO_TBAA_P values.
20330 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
20333 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
20334 are not legitimate small data references on SPE targets.
20336 2008-01-28 David Daney <ddaney@avtrex.com>
20338 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
20340 2008-01-28 David Daney <ddaney@avtrex.com>
20342 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
20344 2008-01-27 Joseph Myers <joseph@codesourcery.com>
20346 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
20347 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
20348 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
20349 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
20350 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
20351 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
20352 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
20353 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
20355 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
20357 * basic-block.h (condjump_equiv_p): Fix comment.
20359 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
20361 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
20362 print_generic_stmt_indented): Fix comment.
20364 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
20366 * configure.ac (__stack_chk_fail): Add detecion for availability
20367 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
20368 * configure: Regenerate.
20370 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
20372 PR middle-end/34688
20373 * final.c (output_addr_const): Handle TRUNCATE.
20375 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
20378 * tree-ssa-loop-ivopts.c (comp_cost): New type.
20379 (zero_cost, infinite_cost): New constants.
20380 (struct cost_pair): Change type of cost to comp_cost.
20381 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
20382 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
20384 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
20385 split_address_cost, ptr_difference_cost, difference_cost,
20386 get_computation_cost_at, get_computation_cost,
20387 determine_use_iv_cost_generic, determine_use_iv_cost_address,
20388 determine_use_iv_cost_condition, determine_use_iv_costs,
20389 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
20390 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
20391 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
20392 Change type of cost to comp_cost.
20393 (determine_iv_cost): Increase cost of non-original ivs, instead
20394 of decreasing the cost of original ones.
20395 (get_address_cost): Indicate the complexity of the addressing mode
20397 (try_add_cand_for): Prefer using ivs not specific to some object.
20398 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
20400 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
20401 Janis Johnson <janis187@us.ibm.com>
20404 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
20405 (TARGET_INSTANTIATE_DECLS): Likewise.
20406 * target.h (expand_to_rtl_hook): New target hook.
20407 (instantiate_decls): Likewise.
20408 * function.c (instantiate_decl): Make non-static. Rename to...
20409 (instantiate_decl_rtl): ... this.
20410 (instantiate_expr): Use instantiate_decl_rtl.
20411 (instantiate_decls_1): Likewise.
20412 (instantiate_decls): Likewise.
20413 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
20414 * function.h (instantiate_decl_rtl): Add prototype.
20415 * cfgexpand.c (target.h): New include.
20416 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
20417 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
20418 (TARGET_INSTANTIATE_DECLS): Likewise.
20419 (TARGET_INITIALIZER): New target hooks added.
20420 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
20422 * config/rs6000/rs6000.c (tree-flow.h): New include.
20423 (machine_function): Add sdmode_stack_slot field.
20424 (rs6000_alloc_sdmode_stack_slot): New function.
20425 (rs6000_instantiate_decls): Likewise.
20426 (rs6000_secondary_memory_needed_rtx): Likewise.
20427 (rs6000_check_sdmode): Likewise.
20428 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
20429 (TARGET_INSTANTIATE_DECLS): Likewise.
20430 (rs6000_hard_regno_mode_ok): Allow SDmode.
20431 (num_insns_constant): Likewise. Handle _Decimal32 constants.
20432 (rs6000_emit_move): Handle SDmode.
20433 (function_arg_advance): Likewise.
20434 (function_arg): Likewise.
20435 (rs6000_gimplify_va_arg): Likewise. Add special handling of
20436 SDmode var args for 32-bit compiles.
20437 (rs6000_secondary_reload_class): Handle SDmode.
20438 (rs6000_output_function_epilogue): Likewise.
20439 (rs6000_function_value): Simplify if statement.
20440 (rs6000_libcall_value): Likewise.
20441 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
20442 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
20443 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
20444 (movsd_hardfloat): New define_insn.
20445 (movsd_softfloat): Likewise.
20446 (movsd_store): Likewise.
20447 (movsd_load): Likewise.
20448 (extendsddd2): Likewise.
20449 (extendsdtd2): Likewise.
20450 (truncddsd2): Likewise.
20451 (movdd_hardfloat64): Fixup comment.
20452 (UNSPEC_MOVSD_LOAD): New constant.
20453 (UNSPEC_MOVSD_STORE): Likewise.
20455 2008-01-26 Jakub Jelinek <jakub@redhat.com>
20458 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
20460 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
20461 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
20462 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
20463 and TRUTH_XOR_EXPR.
20465 2008-01-26 David Edelsohn <edelsohn@gnu.org>
20468 * config.gcc: Separate AIX 5.3 from AIX 6.1.
20469 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20470 __LONGDOUBLE128 too.
20471 * config/rs6000/aix61.h: New file.
20473 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
20475 PR rtl-optimization/34959
20476 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
20477 popcount and parity rtxes the same mode as their operand.
20478 Truncate or extend the result to the return value's mode
20481 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
20484 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
20485 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
20486 to GOT_VERSION_REGNUM.
20487 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
20488 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
20489 * config/mips/mips.c (mips_emit_call_insn): New function.
20490 (mips_call_tls_get_addr): Call mips_expand_call directly.
20491 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
20493 (mips16_build_call_stub): Likewise. Return the call insn or null.
20494 (mips_expand_call): Update the call to mips16_build_call_stub
20495 accordingly and a remove redundant condition. Assert that MIPS16
20496 stubs do not use lazy binding. Use mips_emit_call_insn and return
20498 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
20500 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
20501 (mips_avoid_hazard): Remove hazard_set handling.
20502 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
20503 (UNSPEC_RESTORE_GP): ...this.
20504 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
20505 (FAKE_CALL_REGNO): Rename to...
20506 (GOT_VERSION_REGNUM): ...this.
20507 (type): Add "ghost" value. Add an associated insn reservation.
20508 (hazard_set): Remove.
20509 (exception_receiver): Rename to...
20510 (restore_gp): ...this and update the unspec identifier accordingly.
20511 (exception_receiver, nonlocal_got_receiver): New expanders.
20512 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
20513 FAKE_CALL_REGNO. Remove hazard_set attribute.
20514 (set_got_version, update_got_version): New patterns.
20516 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
20519 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
20521 2008-01-25 Joseph Myers <joseph@codesourcery.com>
20524 * doc/install.texi2html: Generate gcc-vers.texi.
20526 2008-01-25 DJ Delorie <dj@redhat.com>
20528 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
20530 2008-01-25 Joseph Myers <joseph@codesourcery.com>
20532 * config/c4x: Remove directory.
20533 * config.gcc (crx-*, mt-*): Mark obsolete.
20534 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
20535 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
20536 sh-*-rtemscoff*): Remove cases.
20537 * defaults.h (C4X_FLOAT_FORMAT): Remove.
20538 * real.c (encode_c4x_single, decode_c4x_single,
20539 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
20540 c4x_extended_format): Remove.
20541 * real.h (c4x_single_format, c4x_extended_format): Remove.
20542 * doc/extend.texi (interrupt, naked): Remove mention of attributes
20544 (Pragmas): Remove comment about c4x pragmas.
20545 * doc/install.texi (c4x): Remove target-specific instructions.
20546 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
20547 * doc/md.texi (Machine Constraints): Remove C4x documentation.
20548 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
20549 refer to C4x source files as examples.
20550 (C4X_FLOAT_FORMAT): Remove documentation.
20552 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
20554 * config/bfin/bfin.c (override_options): Reorder tests so that
20555 flag_pic gets enabled for -msep-data.
20557 2008-01-25 Richard Guenther <rguenther@suse.de>
20559 PR middle-end/32244
20560 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
20561 to its bitfield precision if required.
20563 2008-01-25 Jakub Jelinek <jakub@redhat.com>
20565 PR middle-end/33880
20566 * tree-nested.c (walk_omp_for): New function.
20567 (convert_nonlocal_reference, convert_local_reference): Call
20568 walk_omp_for on OMP_FOR.
20569 (convert_call_expr): Call walk_body on OMP_FOR's
20570 OMP_FOR_PRE_INIT_BODY.
20572 2008-01-25 Richard Guenther <rguenther@suse.de>
20574 PR tree-optimization/34966
20575 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
20576 default defs and PHI_NODEs we have to insert after the
20577 defining statement.
20579 2008-01-24 Nick Clifton <nickc@redhat.com>
20581 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
20582 Provide a default definition.
20583 (LIBGCC2_UNITS_PER_WORD): Likewise.
20585 * config/stormy16/stormy16.c: Include df.h for the prototype
20586 for df_regs_ever_live_p.
20587 (xstormy16_expand_builtin_va_start): Convert the stack offset
20588 into a component_ref and then use POINTER_PLUS_EXPR to add it
20589 to the incoming_virtual_args_rtx.
20590 (xstormy16_gimplify_va_arg_expr): Rename to
20591 xstormy16_gimplify_va_arg_expr.
20592 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
20593 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
20594 xstormy16_gimplify_va_arg_expr.
20595 Fix up some formatting issues.
20597 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
20598 Move to predicates.md.
20599 (xs_hi_general_operand): Likewise.
20600 (xs_hi_nonmemory_operand): Likewise.
20601 * config/stormy16/predicates.md:
20602 (xstormy16_carry_plus_operand): New predicate.
20603 (xs_hi_general_operand): New predicate.
20604 (xs_hi_nonmemory_operand): New predicate.
20605 * config/stormy16/stormy16-protos.h:
20606 (xstormy16_carry_plus_operand): Delete prototype.
20607 (xs_hi_general_operand): Likewise.
20608 (xs_hi_nonmemory_operand): Likewise.
20610 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
20611 modifiers as they are no longer needed and they can trigger
20612 reload spill failures.
20614 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
20615 with a match_operand in order to help reload.
20617 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
20618 constraint with 'e' for the 8th alternative as this version of
20619 the mov.w instruction only accepts the lower 8 registers.
20621 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
20624 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
20625 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
20628 2008-01-25 Jakub Jelinek <jakub@redhat.com>
20630 PR middle-end/33333
20631 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
20633 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
20635 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
20637 (remove_structure): Update allocations list before removing structure.
20639 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
20641 * ipa-struct-reorg.c (is_safe_cond_expr,
20642 create_new_stmts_for_cond_expr): Use integer_zerop function,
20643 that recognize not only zero-pointer, but zero-integer too.
20645 2008-01-25 Ben Elliston <bje@au.ibm.com>
20648 * fixproto: Escape "." in sed expression that strips leading "./".
20650 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
20653 * gcc.c (SWITCH_OK): Removed.
20654 (SWITCH_LIVE): Changed to bit.
20655 (SWITCH_FALSE): Likewise.
20656 (SWITCH_IGNORE): Likewise.
20657 (switchstr): Change live_cond to unsigned int.
20658 (process_command): Replace SWITCH_OK with 0.
20659 (do_self_spec): Likewise.
20660 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
20661 (give_switch): Likewise.
20662 (used_arg): Likewise.
20663 (do_spec_1): Set the SWITCH_IGNORE bit.
20664 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
20665 bits. Set the SWITCH_LIVE bit.
20667 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
20669 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
20671 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
20673 PR tree-optimization/34472
20674 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
20675 parameter to a "bool *" and set *DATA to false if there is
20676 an unsafe access. Do not delete the structure here.
20677 (check_cond_exprs): Delete it here instead.
20678 (check_cond_exprs, exclude_cold_structs): Do not increase
20679 I when removing a structure.
20681 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
20684 * config/i386/i386.c (ix86_expand_vector_init): Consider only
20685 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
20687 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
20689 PR middle-end/34934
20690 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
20691 a fixed vector for stack.
20693 2008-01-24 Ben Elliston <bje@au.ibm.com>
20696 * doc/gcc.texi (Software development): Add a direntry for g++.
20698 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
20700 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
20701 stale and straggling -fforce-addr comments above.
20703 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
20705 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
20706 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
20708 2008-01-23 Michael Matz <matz@suse.de>
20711 * dwarf2out.c (force_type_die): Use modified_type_die instead of
20714 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
20716 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
20717 malloc result type.
20719 2008-01-23 Anatoly Sokolov <aesok@post.ru>
20721 * config/avr/avr.c (avr_current_arch): New variable.
20722 (avr_arch_types): Add 'avr31' and 'avr51' entries.
20723 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
20724 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
20725 (avr_override_options): Init 'avr_current_arch'.
20726 (base_arch_s): Move from here...
20727 * config/avr/avr.h (base_arch_s): ... here. Add new members
20728 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
20729 'mega' to 'have_jmp_call'.
20730 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
20731 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
20733 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
20735 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
20736 MULTILIB_MATCHES): Ditto.
20738 2008-01-23 Richard Guenther <rguenther@suse.de>
20740 PR middle-end/31529
20741 * cgraphunit.c (cgraph_reset_node): Always mark the node
20742 not reachable if it is not queued already.
20744 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
20746 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
20747 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
20748 (cputype_selected): New static variable.
20749 (bfin_handle_option): Set it if -mcpu is used.
20750 (override_option): Select default set of workarounds if no cpu type
20751 selected on the command line.
20752 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
20754 From Michael Frysinger <michael.frysinger@analog.com>
20755 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
20756 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
20758 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
20759 for bf547, bf523, bf524, and bf526.
20760 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
20762 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
20763 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
20764 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
20765 __ADSPBF547__ and __ADSPBF54x__ for bf547.
20766 * doc/invoke.texi (Blackfin Options): Document that
20767 -mcpu now accept bf547, bf523, bf524, and bf526.
20769 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
20771 PR rtl-optimization/34628
20772 * combine.c (try_combine): Stop and undo after the first combination
20773 if an autoincrement side-effect on the first insn has effectively
20776 2008-01-22 David Edelsohn <edelsohn@gnu.org>
20779 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
20780 Offset addresses are not valid for Altivec or paired float modes.
20782 2008-01-22 Jakub Jelinek <jakub@redhat.com>
20785 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
20786 if DECL_INITIAL (decl) is error_mark_node.
20789 * c-common.c (handle_vector_size_attribute): Only allow
20790 integral, scalar float and fixed point types. Handle OFFSET_TYPE
20791 the same way as pointer, array etc. types.
20792 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
20795 * tree.c (build_type_attribute_qual_variant): Call
20796 build_qualified_type if attributes are equal, but quals are not.
20798 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20801 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
20802 * flags.h (warn_strict_aliasing): Remove.
20803 (warn_strict_overflow): Remove.
20804 * opts.c (warn_strict_aliasing): Remove.
20805 (warn_strict_overflow): Remove.
20806 * c-opts.c (c_common_handle_option): -Wall only sets
20807 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
20808 (c_common_post_options): Give default values to -Wstrict-aliasing
20809 and -Wstrict-overflow if they are uninitialized.
20810 * common.opt (Wstrict-aliasing): Specify Var and Init.
20811 (Wstrict-overflow): Likewise.
20813 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
20815 PR rtl-optimization/26854
20816 PR rtl-optimization/34400
20817 PR rtl-optimization/34884
20818 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
20820 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
20821 (df_rd_bb_info.expanded_lr_out): Deleted
20822 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
20823 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
20824 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
20825 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
20826 Removed code to allocate, initialize or free expanded_lr_out.
20827 (df_rd_bb_local_compute_process_def): Restructured to make more
20829 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
20830 sets if the sets are being trimmed.
20832 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
20835 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
20836 (as_vers): Likewise.
20837 * configure: Regenerated.
20839 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20841 PR middle-end/33092
20842 * tree-pass.h (pass_build_alias): New pass.
20843 * tree-ssa-alias.c (gate_build_alias): New.
20844 (pass_build_alias): New.
20845 * passes.c (init_optimization_passes): Add pass_build_alias after
20846 pass_create_structure_vars.
20848 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
20850 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
20851 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
20852 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
20853 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
20854 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
20855 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
20856 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
20857 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
20858 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
20859 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
20860 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
20861 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
20862 * config/s390/s390.md (FP_ALL): New mode iterator.
20863 (_d): New mode attribute.
20864 ("*signbit<mode>2>"): Changed mode of first operand.
20865 ("isinf<mode>2"): Changed mode of first operand.
20866 ("*TDC_insn"): Adaptation for DFP modes.
20868 2008-01-22 Ben Elliston <bje@au.ibm.com>
20870 * tree.c (check_qualified_type): Improve function description.
20872 2008-01-21 Jason Merrill <jason@redhat.com>
20875 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
20876 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
20879 2008-01-21 DJ Delorie <dj@redhat.com>
20881 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
20884 2008-01-21 Richard Guenther <rguenther@suse.de>
20886 PR middle-end/34856
20887 * tree-cfg.c (verify_expr): Allow all invariant expressions
20888 instead of just constant class ones as reference argument.
20889 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
20890 like any other constant.
20891 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20893 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
20895 * regmove.c (fixup_match_1): Update call crossed frequencies.
20897 2008-01-21 Richard Guenther <rguenther@suse.de>
20900 * tree-inline.c (setup_one_parameter): Deal with mismatched
20901 types using a VIEW_CONVERT_EXPR.
20903 2008-01-21 Alon Dayan <alond@il.ibm.com>
20904 Olga Golovanevsky <olga@il.ibm.com>
20906 PR tree-optimization/34701
20907 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
20908 when the structure size is not a power of 2.
20910 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
20912 * doc/install.texi: Add doc for --enable-checking=df.
20914 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
20916 PR rtl-optimization/34808
20917 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
20919 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
20921 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
20924 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
20926 PR rtl-optimization/26854
20927 PR rtl-optimization/34400
20928 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
20930 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
20931 (df_rd_bb_info.expanded_lr_out): New.
20932 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
20933 * loop_iv.c (iv_analysis_loop_init): Ditto.
20934 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
20935 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
20936 Added code to allocate, initialize or free expanded_lr_out.
20937 (df_rd_bb_local_compute_process_def): Restructured to make
20938 more understandable.
20939 (df_rd_confluence_n): Add code to do nothing with fake edges and
20940 code to no apply invalidate_by_call sets if the sets are being trimmed.
20941 (df_lr_local_finalize): Renamed to df_lr_finalize.
20942 (df_live_local_finalize): Renamed to df_live_finalize.
20944 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
20947 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
20948 deciding whether to use reciprocal instructions.
20950 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
20952 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
20953 dwarf2out_note_section_used if cold_text_section is NULL.
20955 2008-01-19 Jakub Jelinek <jakub@redhat.com>
20957 PR gcov-profile/34610
20958 * tree-cfg.c (make_edges): Mark both outgoing edges from
20959 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
20960 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
20961 from OMP_FOR and OMP_CONTINUE outgoing edges.
20963 * tree-profile.c (tree_profiling): Return early if
20964 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
20966 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
20967 from cfun to child_cfun.
20968 * function.h (struct function): Add after_tree_profile bit.
20970 2008-01-19 Anatoly Sokolov <aesok@post.ru>
20972 * config/avr/avr.S (_exit): Disable interrupt.
20974 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
20975 Steven Bosscher <stevenb.gcc@gmail.com>
20977 PR rtl-optimization/26854
20978 PR rtl-optimization/34400
20979 * df-problems.c (df_live_scratch): New scratch bitmap.
20980 (df_live_alloc): Allocate df_live_scratch when doing df_live.
20981 (df_live_reset): Clear the proper bitmaps.
20982 (df_live_bb_local_compute): Only process the artificial defs once
20983 since the order is not important.
20984 (df_live_init): Init the df_live sets only with the variables
20985 found live by df_lr.
20986 (df_live_transfer_function): Use the df_lr sets to prune the
20987 df_live sets as they are being computed.
20988 (df_live_free): Free df_live_scratch.
20990 2008-01-18 Ian Lance Taylor <iant@google.com>
20992 * common.opt: Add fmerge-debug-strings.
20993 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
20994 flag_merge_debug_strings rather than flag_merge_constants.
20995 * doc/invoke.texi (Option Summary): Mention
20996 -fmerge-debug-strings.
20997 (Debugging Options): Document -fmerge-debug-strings.
20999 2008-01-18 Ian Lance Taylor <iant@google.com>
21002 * tree.h (DECL_IS_OPERATOR_NEW): Define.
21003 (struct tree_function_decl): Add new field operator_new_flag.
21004 * tree-inline.c (expand_call_inline): When inlining a call to
21005 operator new, force the return value to go into a variable, and
21006 set DECL_NO_TBAA_P on that variable.
21007 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21009 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
21012 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21013 DWARF2_DEBUGGING_INFO.
21014 (dwarf2out_note_section_used): Ditto. Add prototype.
21015 (have_multiple_function_sections, text_section_used,
21016 cold_text_section_used, *cold_text_sections): Move declarations
21019 2008-01-17 Bob Wilson <bob.wilson@acm.org>
21021 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
21022 field and add signal_ra.
21023 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
21024 assignments to frame state pc. Move end of stack check after
21025 MD_FALLBACK_FRAME_STATE_FOR.
21026 (uw_update_context_1): Use frame state signal_regs if set, instead
21027 of checking signal_frame flag.
21028 (uw_update_context): Use frame state signal_ra if set.
21029 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
21030 * config/xtensa/linux-unwind.h: New file.
21032 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
21034 * modulo-sched.c (get_sched_window): Fix comment typo.
21036 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
21038 PR tree-optimization/34648
21039 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
21041 2008-01-17 Anatoly Sokolov <aesok@post.ru>
21043 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
21044 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
21046 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
21048 PR rtl-optimization/34400
21049 * df-core.c (df_worklist_dataflow_overeager,
21050 df_worklist_dataflow_doublequeue): New functions.
21051 (df_worklist_dataflow): Two different worklist solvers.
21052 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
21055 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21058 * doc/invoke.texi: Document the dependence on pthread for fopenmp
21059 and ftree-parallelize-loops.
21061 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
21063 PR rtl-optimization/34826
21064 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
21066 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
21068 * global.c (find_reg): Mark the eh regs as used if necessary.
21069 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
21070 * ra.h (struct allocno): no_eh_reg field added. Changed
21071 no_stack_reg type to bitfield.
21073 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
21075 * tree.c (substitute_in_expr): Add missing 'break'.
21077 2008-01-17 Richard Guenther <rguenther@suse.de>
21079 PR tree-optimization/34825
21080 * tree-ssa-math-opts.c (is_division_by): Do not recognize
21081 x / x as division to handle.
21083 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21085 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
21086 "-pthread" is specified.
21087 * pa-hpux11.h (LIB_SPEC): Likewise.
21089 2008-01-16 Janis Johnson <janis187@us.ibm.com>
21090 Peter Bergner <bergner@vnet.ibm.com>
21092 PR rtl-optimization/33796
21093 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
21095 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21097 PR libgfortran/34699
21098 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
21100 * pa-hpux10.h (LINK_SPEC): Likewise.
21101 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
21103 2008-01-16 Richard Guenther <rguenther@suse.de>
21105 PR middle-end/32628
21106 * fold-const.c (fold_convert_const_int_from_int): Do not
21107 set overflow if that occured only because of a sign extension
21108 change when converting from/to a sizetype with the same
21109 precision and signedness.
21111 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
21114 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
21115 location address to the correct place. Update copyright year.
21117 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21119 * lambda-code.c (lambda_transform_legal_p): Handle the case of
21120 no dependences in the dependence_relations vector.
21122 2008-01-16 Jan Hubicka <jh@suse.cz>
21124 PR rtl-optimization/31396
21125 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
21126 * cfg.c (dump_reg_info): Print it.
21127 * regs.h (struct reg_info_t): add freq_calls_crossed.
21128 (REG_FREQ_CALLS_CROSSED): New macro.
21129 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
21130 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
21131 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
21132 regmove_optimize): Update call crossed frequencies.
21133 * local-alloc.c (struct qty): Add freq_calls_crossed.
21134 (alloc_qty): Copute freq_calls_crossed.
21135 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
21136 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
21137 * ra.h (struct allocno): Add freq_calls_crossed.
21139 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21141 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
21142 libgomp when compiling with ftree-parallelize-loops.
21143 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
21145 2008-01-16 Richard Guenther <rguenther@suse.de>
21147 PR tree-optimization/34769
21148 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
21149 * tree.c (int_cst_value): Instead make this function more
21150 permissive in what it accepts as valid input. Document this
21151 function always sign-extends the value.
21153 2008-01-16 Jakub Jelinek <jakub@redhat.com>
21154 Richard Guenther <rguenther@suse.de>
21157 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
21158 (gimple_fold_indirect_ref_rhs): ... this.
21159 (gimple_fold_indirect_ref): New function with foldings
21160 that preserve lvalueness.
21161 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
21162 * tree-flow.h (gimple_fold_indirect_ref): Declare.
21163 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
21164 to fold an INDIRECT_REF, fall back to the old use of
21165 fold_indirect_ref_1.
21167 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
21169 * tree-data-ref.c (subscript_dependence_tester_1): Call
21170 free_conflict_function.
21171 (compute_self_dependence): Same.
21173 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
21176 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
21177 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
21179 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
21180 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
21181 for DWARF2_UNWIND_INFO targets.
21183 2008-01-16 Richard Guenther <rguenther@suse.de>
21186 * c-typeck.c (common_pointer_type): Do not merge inconsistent
21187 type qualifiers for function types.
21189 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
21191 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
21192 loop_iterator li from previous commit.
21194 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
21196 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
21198 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
21200 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
21201 (parallelize_loops): Don't parallelize irreducible components.
21203 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21206 * c-opts (c_common_post_options): Do not enable CPP
21207 flag_pedantic_errors by default.
21209 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
21211 PR rtl-optimization/31944
21212 * cse.c (remove_pseudo_from_table): New function.
21213 (merge_equiv_classes): Use above function to remove pseudo-registers.
21214 (invalidate): Likewise.
21216 2008-01-13 Richard Guenther <rguenther@suse.de>
21218 PR middle-end/34601
21219 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
21220 instead of TYPE_MODE to deal with calls from expand_one_error_var.
21222 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
21224 * gcse.c (cprop_jump): Call validate_unshare_change instead of
21225 validate_change to unshare the source of the PC set.
21227 2008-01-12 Jan Hubicka <jh@suse.cz>
21229 PR middle-end/32135
21230 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
21231 references above array bounds. This might trigger bounds checks for
21232 pointers to arrays.
21234 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
21236 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
21237 new_replaceable_dependencies.
21239 2008-01-12 Doug Kwan <dougkwan@google.com>
21241 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
21242 instead of OPT_Wreturn_type in warning due to ignored return type
21244 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
21245 options included in -Wextra.
21246 * c.opt: New option -Wignored_qualifiers.
21247 * doc/invoke.texi (Warning Options, -Wextra): Add new option
21248 -Wignore_qualifiers.
21249 (-Wignored-qualifiers): Document.
21250 (-Wreturn-type): Remove description of functionality now handled
21251 by -Wignored-qualifiers.
21253 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
21256 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
21257 NOP_EXPR if it is between integral types with the same precision.
21259 2008-01-12 Jan Hubicka <jh@suse.cz>
21262 * invoke.texi (max-inline-recursive-depth): Fix default value.
21264 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
21266 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
21269 2008-01-11 Bob Wilson <bob.wilson@acm.org>
21271 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
21273 2008-01-11 James E. Wilson <wilson@specifix.com>
21276 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
21278 2008-01-11 Anatoly Sokolov <aesok@post.ru>
21280 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
21281 save/restore frame pointer register and don't use 'call-prologues'
21282 optimization in function with "OS_task" attribute.
21284 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
21286 PR middle-end/31309
21287 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
21288 when copying to memory.
21290 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
21292 PR rtl-optimization/30905
21293 * cfgcleanup.c: Include dce.h
21294 (crossjumps_occured): New global variable.
21295 (try_crossjump_bb): Exit loop after finding a fallthru edge.
21296 If something changed, set crossjumps_occured to true.
21297 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
21298 Don't add/remove fake edges to exit here...
21299 (cleanup_cfg): ...but do it here, when crossjumping.
21300 Run a fast DCE when successful crossjumps occured in the latest
21301 iteration of try_optimize_cfg.
21303 2008-01-11 Richard Guenther <rguenther@suse.de>
21305 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
21306 (struct vn_unary_op_s): Likewise.
21307 (vn_reference_insert): Free old reference on hash collision.
21309 2008-01-10 Raksit Ashok <raksit@google.com>
21311 PR rtl-optimization/27971
21312 * combine.c (find_split_point): Split PLUS expressions which are
21313 inside a MEM rtx, and whose first operand is complex.
21315 2008-01-10 DJ Delorie <dj@redhat.com>
21317 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
21318 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
21319 (m32c_hard_regno_ok): Call the underlying function.
21321 2008-01-10 Richard Guenther <rguenther@suse.de>
21323 PR middle-end/34683
21324 * tree-cfg.c (tree_merge_blocks): Do not go through the
21325 full-blown folding and stmt updating path if we just deal
21326 with virtual operands.
21327 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
21328 test for abnormal SSA_NAMEs.
21330 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
21332 PR middle-end/34641
21333 * reload.c (push_reload): Add assertions. All constants from
21334 reg_equiv_constant should have been used for replacing the respective
21336 (find_reloads_address): Invoke find_reloads_address_part for
21337 constant taken from the reg_equiv_constant array.
21339 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
21341 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
21342 field (valnum) the first in the struct. Replace bools with
21345 2008-01-10 Richard Guenther <rguenther@suse.de>
21347 PR tree-optimization/34651
21348 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
21349 types and ordering for masking and converting.
21351 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
21353 PR tree-optimization/34017
21354 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
21355 also for PHI_NODE expressions.
21357 2008-01-09 Jan Hubicka <jh@suse.cz>
21359 PR tree-optimization/34708
21360 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
21361 based on number of case labels.
21362 (init_inline_once): Remove switch_cost.
21363 * tree-inline.h (eni_weights_d): Remove switch_cost.
21365 2008-01-09 Richard Guenther <rguenther@suse.de>
21366 Andrew Pinski <andrew_pinski@playstation.sony.com>
21368 PR middle-end/30132
21369 * gimplify.c (gimplify_cond_expr): Do not create an addressable
21370 temporary if an rvalue is ok or an lvalue is not required.
21372 2008-01-09 Richard Guenther <rguenther@suse.de>
21374 PR middle-end/34458
21375 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
21376 adjust return type.
21378 2008-01-09 Richard Guenther <rguenther@suse.de>
21380 PR middle-end/34679
21381 * tree.c (host_integerp): Check for sizetype only if the
21382 type is an integer type.
21384 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
21387 * opts.c (decode_options): Disable inlining of functions called
21388 once if not in unit-at-a-time mode.
21390 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
21392 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
21394 2008-01-08 Richard Guenther <rguenther@suse.de>
21396 PR middle-end/31863
21397 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
21398 out early if the result will be unused.
21400 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
21405 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
21406 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21409 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
21411 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
21412 for vectorization tuned.
21414 2008-01-08 Richard Guenther <rguenther@suse.de>
21416 PR tree-optimization/34683
21417 * tree-ssa-operands.c (operand_build_cmp): Export.
21418 * tree-ssa-operands.h (operand_build_cmp): Declare.
21419 * tree-vn.c (vuses_compare): Remove.
21420 (sort_vuses): Use operand_build_cmp.
21421 (sort_vuses_heap): Likewise.
21422 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
21423 to re-use old VEC if available. Do not sort already sorted VUSEs.
21424 (vdefs_to_vec): Do not sort already sorted VDEFs.
21426 2008-01-08 Jakub Jelinek <jakub@redhat.com>
21428 PR middle-end/34694
21429 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
21431 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
21434 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
21435 limitations of reciprocal sequences on x86 targets.
21437 2008-01-08 Richard Guenther <rguenther@suse.de>
21439 PR tree-optimization/34683
21440 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
21442 2008-01-07 Jakub Jelinek <jakub@redhat.com>
21445 * config/darwin.c (darwin_mergeable_string_section): Don't use
21446 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
21448 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
21451 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
21452 negxf2. Macroize expander using X87MODEF mode iterator. Change
21453 predicates of op0 and op1 to register_operand.
21454 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
21455 expander using X87MODEF mode iterator. Change predicates of
21456 op0 and op1 to register_operand.
21457 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
21458 corresponding patterns and macroize using MODEF macro. Change
21459 predicates of op0 and op1 to register_operand and remove
21460 "m" constraint. Disparage "r" alternative with "!".
21461 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
21462 macroize using X87MODEF macro. Change predicates of op0 and op1
21463 to register_operand and remove "m" constraint. Disparage "r"
21464 alternative with "!".
21465 (absneg splitter with memory operands): Remove.
21466 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
21467 patterns and macroize using X87MODEF mode iterator.
21468 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
21469 Change predicate of op1 to register_operand.
21470 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
21471 for memory operands.
21473 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
21475 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
21477 2008-01-07 Richard Guenther <rguenther@suse.de>
21479 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
21482 2008-01-07 Richard Guenther <rguenther@suse.de>
21484 PR tree-optimization/34683
21485 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
21486 VOPs of the needed size to save memory. Use VEC_quick_push
21487 to save compile-time.
21488 (vdefs_to_vec): Likewise.
21490 2008-01-07 Sa Liu <saliu@de.ibm.com>
21492 * config/spu/spu.md (divdf3): Genetate inline code for double
21493 division. The implementation doesn't handle INF or NAN, therefore it
21494 only applies when -ffinite-math-only is given.
21496 2008-01-06 Paolo Carlini <pcarlini@suse.de>
21499 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
21500 * doc/cpp.texi ([Common Predefined Macros]): Document.
21502 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
21504 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
21505 order to use commutative addition instead of subtraction.
21507 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
21508 Mircea Namolaru <namolaru@il.ibm.com>
21509 Vladimir Yanovsky <yanov@il.ibm.com>
21510 Revital Eres <eres@il.ibm.com>
21512 PR tree-optimization/34263
21513 * tree-outof-ssa.c (process_single_block_loop_latch,
21514 contains_tree_r): New functions.
21515 (analyze_edges_for_bb): Call process_single_block_loop_latch
21516 function to empty single-basic-block latch block if possible.
21518 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
21520 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
21522 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
21524 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
21526 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
21528 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
21530 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
21532 2008-01-05 Jakub Jelinek <jakub@redhat.com>
21534 PR tree-optimization/34618
21535 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
21538 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
21541 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
21542 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
21543 Update copyright year.
21545 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
21546 Update copyright year.
21547 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
21550 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
21552 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
21553 edge does not point to current bb before changing need_assert.
21555 2008-01-04 Richard Guenther <rguenther@suse.de>
21557 PR middle-end/34029
21558 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
21559 for verifying purposes if they are is_gimple_min_invariant.
21561 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
21563 PR tree-optimization/34448
21564 PR tree-optimization/34465
21565 * gimplify.c (gimplify_init_constructor): Add new parameter
21566 notify_temp_creation. Use it.
21567 (gimplify_modify_expr_rhs): Take volatiles into account when
21568 optimizing constructors.
21569 Do not optimize constructors if gimplify_init_constructor will dump to
21571 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
21572 * gcc.c-torture/compile/pr34448.c: New.
21574 2008-01-04 Jakub Jelinek <jakub@redhat.com>
21576 PR gcov-profile/34609
21577 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
21578 return_slot if result is TREE_ADDRESSABLE.
21580 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
21582 * config/mips/mips.md (sqrt_condition): Tweak comment.
21583 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
21585 2008-01-03 Tom Tromey <tromey@redhat.com>
21588 * c-common.c (c_type_hash): Handle VLAs.
21590 2008-01-03 Jan Hubicka <jh@suse.cz>
21592 PR tree-optimization/31081
21593 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
21594 0 when inlining and not inlining to first basic block.
21595 (remap_decl): When var is initialized to 0, don't set default_def.
21596 (expand_call_inline): Set entry_bb.
21597 * tree-inline.h (copy_body_data): Add entry_bb.
21599 2008-01-03 Jakub Jelinek <jakub@redhat.com>
21602 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
21605 PR tree-optimization/29484
21606 * tree-inline.c (inline_forbidden_p_2): New function.
21607 (inline_forbidden_p): Disallow inlining if some static var
21608 has an address of a local LABEL_DECL in its initializer.
21609 * doc/extend.texi (Labels as Values): Document &&foo behaviour
21612 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
21614 PR tree-optimization/34635
21615 * tree-data-ref.c (add_other_self_distances): Make sure that the
21616 evolution step is constant.
21618 2008-01-03 Jakub Jelinek <jakub@redhat.com>
21620 PR middle-end/34608
21621 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
21623 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
21625 * tree-sra.c (scalarize_init): Insert the generate_element_init
21626 statements after the generate_element_zero statements.
21628 2008-01-02 Richard Guenther <rguenther@suse.de>
21630 PR middle-end/34093
21631 PR middle-end/31976
21632 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
21633 for very large number of operands instead of ICEing.
21635 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
21638 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
21639 while stack probing.
21641 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
21643 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
21646 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
21648 PR libmudflap/26442
21649 * tree-mudflap.c (mx_register_decls): Guard warning by
21650 !DECL_ARTIFICIAL check.
21652 2008-01-01 Jakub Jelinek <jakub@redhat.com>
21654 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
21655 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
21656 sse5_perm<mode>): Fix constraints.