Enable dumping of alias graphs.
[official-gcc/Ramakrishna.git] / gcc / ChangeLog
blobdf2129678bc385fe96e26d1edf243d610ec56619
1 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
3         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4         barrier.
5         * emit-rtl.c (prev_nonnote_insn_bb): New function.
6         * rtl.h (prev_nonnote_insn_bb): Declare it.
8 2009-09-03  Diego Novillo  <dnovillo@google.com>
10         * cgraph.c (cgraph_node_for_decl): New.
11         * cgraph.h (cgraph_node_for_decl): Declare.
12         * tree.c (host_integerp): Return 0 if T is NULL.
14 2009-09-03  Diego Novillo  <dnovillo@google.com>
16         * tree.h (struct alias_pair): Move from varasm.c.
17         (alias_pairs): Likewise.
18         (TYPE_MAXVAL): Define.
19         (TYPE_MINVAL): Define.
20         (iterative_hash_host_wide_int): Declare.
21         (remove_unreachable_alias_pairs): Declare.
22         * tree-pass.h (pass_ipa_free_lang_data): Declare.
23         * diagnostic.c (default_diagnostic_starter): Make extern.
24         (default_diagnostic_finalizer): Make extern.
25         * diagnostic.h (default_diagnostic_starter): Declare.
26         (default_diagnostic_finalizer): Declare.
27         (default_tree_printer): Declare.
28         * toplev.c (default_tree_printer): Make extern.
30 2009-09-03  Richard Guenther  <rguenther@suse.de>
31             Diego Novillo  <dnovillo@google.com>
33         * cgraph.c (cgraph_add_new_function): Remove gimplification.
34         * cgraphunit.c (cgraph_expand_function): Do not emit
35         associated thunks from here.
36         (cgraph_emit_thunks): New.
37         (cgraph_optimize): Call it.
38         Return if any IPA pass finds an error.
39         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
40         by thunks.
42 2009-09-03  Simon Baldwin  <simonb@google.com>
43             Rafael Espindola  <espindola@google.com>
44             Richard Guenther  <rguenther@suse.de>
45             Doug Kwan  <dougkwan@google.com>
46             Diego Novillo  <dnovillo@google.com>
48         * tree.c: Include tree-pass.h, langhooks-def.h,
49         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
50         (free_lang_data_in_type): New.
51         (need_assembler_name_p): New.
52         (free_lang_data_in_block): New.
53         (free_lang_data_in_decl): New.
54         (struct free_lang_data_d): New.
55         (add_tree_to_fld_list): New.
56         (find_decls_types_r): New.
57         (get_eh_types_for_runtime): New.
58         (find_decls_types_in_eh_region): New.
59         (find_decls_types_in_node): New.
60         (find_decls_types_in_var): New.
61         (free_lang_data_in_cgraph): New.
62         (free_lang_data): New.
63         (gate_free_lang_data): New.
64         (pass_ipa_free_lang_data): New.
66 2009-09-03  Diego Novillo  <dnovillo@google.com>
68         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
69         * langhooks.h (struct lang_hooks): Add field free_lang_data.
70         (lang_hooks): Remove const qualifier.
71         * ipa.c (cgraph_remove_unreachable_nodes): Call
72         remove_unreachable_alias_pairs.
73         * except.c (add_type_for_runtime): Check if TYPE has
74         already been converted.
75         (lookup_type_for_runtime): Likewise.
76         (check_handled): Handle converted types.
77         * varasm.c (remove_unreachable_alias_pairs): New.
78         * gimple.c: Include demangle.h.
79         (gimple_decl_printable_name): New.
80         (gimple_fold_obj_type_ref): New.
81         * gimple.h (gimple_decl_printable_name): Declare.
82         (gimple_fold_obj_type_ref): Declare.
83         * passes.c (init_optimization_passes): Add pass
84         pass_ipa_free_lang_data.
85         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
86         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
88 2009-09-03  Diego Novillo  <dnovillo@google.com>
90         * c-lang.c (lang_hooks): Remove const qualifier.
92 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
94         * doc/install.texi (*-*-freebsd*): Update target information.
96 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
98         * hard-reg-set.h (call_fixed_regs): Remove.
99         * reginfo.c (call_fixed_regs): Remove.
100         (init_reg_sets_1): Remove initialization of call_fixed_regs.
101         (globalize_reg): Don't use call_fixed_regs.
102         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
103         call_fixed_regs.
105 2009-09-01  Michael Matz  <matz@suse.de>
107         * expr.h (emit_storent_insn, expand_expr_real_1,
108         expand_expr_real_2): Declare.
109         * expr.c (emit_storent_insn, expand_expr_real_1,
110         expand_expr_real_2): Export.
111         (store_expr): Setting and evaluating dont_return_target is
112         useless.
113         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
114         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
115         * except.c (expand_resx_expr): Rename to ...
116         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
117         * except.h (expand_resx_stmt): Declare.
118         * stmt.c: Add include gimple.h
119         (expand_asm_expr): Rename to ...
120         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
121         (expand_case): Rewrite to take gimple statement.
122         * tree.h (expand_asm_stmt): Declare.
123         (expand_case): Change prototype.
124         * Makefile.in (stmt.o): Depend on gimple.h.
125         * builtins.c (expand_builtin_synchronize): Build gimple asm
126         statement, not an ASM_EXPR.
127         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
128         gimple_to_tree, release_stmt_tree): Remove.
129         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
130         ggc_free, but hold comparison code and operands separately.
131         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
132         (expand_call_stmt, expand_gimple_stmt_1,
133         expand_gimple_stmt): New helpers.
134         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
135         release_stmt_tree.  Call expand_gimple_stmt instead.
136         (expand_gimple_basic_block): Ditto.
138         * calls.c (emit_call_1): Don't look at EH regions here, make
139         fntree parameter useless.
140         (expand_call): New local rettype for TREE_TYPE(exp), use it
141         throughout.  Remove local p, use addr instead.
142         Don't look at EH regions here.
144 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
146         * doc/invoke.texi (-fsched-pressure): Document it.
147         (-fsched-reg-pressure-heuristic): Remove it.
148         
149         * reload.c (ira.h): Include.
150         (find_reloads): Add choosing reload on number of small spilled
151         classes.
152         
153         * haifa-sched.c (ira.h): Include.
154         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
155         saved_reg_pressure, curr_reg_live, saved_reg_live,
156         region_ref_regs): New variables.
157         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
158         initiate_reg_pressure_info, setup_ref_regs,
159         initiate_bb_reg_pressure_info, save_reg_pressure,
160         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
161         functions.
162         (setup_insn_reg_pressure_info): New function.
163         (rank_for_schedule): Add pressure checking and insn issue time.
164         Remove comparison of insn reg weights.
165         (ready_sort): Set insn reg pressure info.
166         (update_register_pressure, setup_insn_max_reg_pressure,
167         update_reg_and_insn_max_reg_pressure,
168         sched_setup_bb_reg_pressure_info): New functions.
169         (schedule_insn): Add code for printing and updating reg pressure
170         info.
171         (find_set_reg_weight, find_insn_reg_weight): Remove.
172         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
173         (debug_ready_list): Print reg pressure info.
174         (schedule_block): Ditto.  Check insn issue time.
175         (sched_init): Set up sched_pressure_p.  Allocate and set up some
176         reg pressure related info.
177         (sched_finish): Free some reg pressure related info.
178         (fix_tick_ready): Make insn always ready if pressure_p.
179         (init_h_i_d): Don't call find_insn_reg_weight.
180         (haifa_finish_h_i_d): Free insn reg pressure info.
181         
182         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
183         ira_memory_move_cost, ira_class_hard_regs,
184         ira_class_hard_regs_num, ira_no_alloc_regs,
185         ira_available_class_regs, ira_reg_class_cover_size,
186         ira_reg_class_cover, ira_class_translate): Move to ira.h.
188         * ira-lives.c (single_reg_class): Check mode to find how many
189         registers are necessary for operand.
190         (ira_implicitly_set_insn_hard_regs): New.
192         * common.opt (fsched-pressure): New options.
193         (fsched-reg-pressure-heuristic): Remove.
195         * ira.c (setup_eliminable_regset): Rename to
196         ira_setup_eliminable_regset.  Make it external.
197         (expand_reg_info): Pass cover class to setup_reg_classes.
198         (ira): Call resize_reg_info instead of allocate_reg_info.
200         * sched-deps.c: Include ira.h.
201         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
202         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
203         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
204         mark_insn_hard_regno_birth, mark_insn_reg_birth,
205         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
206         mark_insn_reg_store, mark_insn_reg_clobber,
207         setup_insn_reg_pressure_info): New.
208         (sched_analyze_1): Update implicit_reg_pending_uses.
209         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
210         Use them to create dependencies.  Set insn reg uses and pressure
211         info.  Process reg_pending_uses in one place.
212         (free_deps): Free implicit sets.
213         (remove_from_deps): Remove implicit sets if necessary.  Check
214         implicit sets when clearing reg_last_in_use.
215         (init_deps_global): Clear implicit_reg_pending_clobbers and
216         implicit_reg_pending_uses.
217         
218         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
219         ira_memory_move_cost, ira_class_hard_regs,
220         ira_class_hard_regs_num, ira_no_alloc_regs,
221         ira_available_class_regs, ira_reg_class_cover_size,
222         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
223         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
224         ira_implicitly_set_insn_hard_regs): New prototypes.
225         
226         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
227         cost_elements_num): New variables.
228         (allocno_costs, total_costs): Rename to costs and
229         total_allocno_costs.
230         (COSTS_OF_ALLOCNO): Rename to COSTS.
231         (allocno_pref): Rename to pref.
232         (allocno_pref_buffer): Rename to pref_buffer.
233         (common_classes): Rename to regno_cover_class.
234         (COST_INDEX): New.
235         (record_reg_classes): Set allocno attributes only if allocno_p.
236         (record_address_regs): Ditto.  Use COST_INDEX instead of
237         ALLOCNO_NUM.
238         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
239         and COSTS_OF_ALLOCNO.
240         (print_costs): Rename to print_allocno_costs.
241         (print_pseudo_costs): New.
242         (process_bb_node_for_costs): Split into 2 functions with new
243         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
244         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
245         new parameter dump_file.  Use cost_elements_num instead of
246         ira_allocnos_num.  Make one iteration if preferred classes were
247         already calculated for scheduler.  Make 2 versions of code
248         depending on allocno_p.
249         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
250         regno_cover_class and COSTS instead of common_classes and
251         COSTS_OF_ALLOCNO.
252         (init_costs, finish_costs): New.
253         (ira_costs): Set up allocno_p and cost_elements_num.  Call
254         init_costs and finish_costs.
255         (ira_set_pseudo_classes): New.
257         * rtl.h (allocate_reg_info): Remove.
258         (resize_reg_info): Change return type.
259         (reg_cover_class): New.
260         (setup_reg_classes): Add new parameter.
261         
262         * sched-int.h (struct deps_reg): New member implicit_sets.
263         (sched_pressure_p, sched_regno_cover_class): New external
264         definitions.
265         (INCREASE_BITS): New macro.
266         (struct reg_pressure_data, struct reg_use_data): New.
267         (struct _haifa_insn_data): Remove reg_weight.  Add members
268         reg_pressure, reg_use_list, reg_set_list, and
269         reg_pressure_excess_cost_change.
270         (struct deps): New member implicit_sets.
271         (pressure_p): New variable.
272         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
273         (struct reg_pressure_data, struct reg_use_data): New.
274         (INSN_REG_WEIGHT): Remove.
275         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
276         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New
277         macros.
278         (sched_init_region_reg_pressure_info,
279         sched_setup_bb_reg_pressure_info): New prototypes.
280         
281         * reginfo.c (struct reg_pref): New member coverclass.
282         (reg_cover_class): New function.
283         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
284         (reg_info_size): New variable.
285         (allocate_reg_info): Make static.  Setup reg_info_size.
286         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
287         (setup_reg_classes): Add a new parameter.  Setup cover class too.
289         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to the
290         dependencies.
292         * sched-rgn.c (deps_join): Set up implicit_sets.
293         (schedule_region): Set up region and basic blocks pressure
294         relative info.
295         
296         * passes.c (init_optimization_passes): Move
297         pass_subregs_of_mode_init before pass_sched.
298         
299 2009-09-02  Martin Jambor  <mjambor@suse.cz>
301         * tree-sra.c (struct access): New field grp_hint.
302         (dump_access): Dump grp_hint.
303         (sort_and_splice_var_accesses): Set grp_hint if a group is read
304         multiple times.
305         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
306         those which have been specifically read and somehow written to.
307         (propagate_subacesses_accross_link): Set grp_hint of right child and
308         also possibly of the left child.
310 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
312         * tree-object-size.c (addr_object_size): Always use object_size_type
313         0 or 2 when determining the pointer pointed object size.
315 2009-09-02  Richard Guenther  <rguenther@suse.de>
317         Revert
318         2009-08-31  Richard Guenther  <rguenther@suse.de>
320         * builtins.c (fold_builtin_memory_op): Use the alias oracle
321         to query if the memory regions for memmove overlap.
322         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
323         asserts on pointers, instead deal with odd trees.
324         (ptr_derefs_may_alias_p): Likewise.
325         (refs_may_alias_p_1): Constructor bases also never alias.
327 2009-08-01  Christian Bruel  <christian.bruel@st.com>
329         Revert:
330         2009-07-31  Christian Bruel  <christian.bruel@st.com>
331         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
332         
333 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
335         * doc/invoke.texi (-fvar-tracking-assignments): New.
336         (-fvar-tracking-assignments-toggle): New.
337         (-fdump-final-insns=file): Mark filename as optional.
338         (--param min-nondebug-insn-uid): New.
339         (-gdwarf-@{version}): Mention version 4.
340         * opts.c (common_handle_option): Accept it.
341         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
342         * regrename.c (regrename_optimize): Drop last.  Don't count debug
343         insns as uses.  Don't reject change because of debug insn.
344         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
345         from the chain starter, and check for inexact matches in
346         DEBUG_INSNS.
347         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
348         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
349         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
350         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
351         * doc/gimple.texi (is_gimple_debug): New.
352         (gimple_debug_bind_p): New.
353         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
354         * doc/install.texi (bootstrap-debug): More details.
355         (bootstrap-debug-big, bootstrap-debug-lean): Document.
356         (bootstrap-debug-lib): More details.
357         (bootstrap-debug-ckovw): Update.
358         (bootstrap-time): New.
359         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
360         (insert_phi_nodes_for): Insert debug stmts.
361         (rewrite_stmt): Take iterator.  Insert debug stmts.
362         (rewrite_enter_block): Adjust.
363         (maybe_replace_use_in_debug_stmt): New.
364         (rewrite_update_stmt): Use it.
365         (mark_use_interesting): Return early for debug stmts.
366         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
367         stmts before replacing stmt.
368         (move_computations_stmt): Likewise.
369         * ira-conflicts.c (add_copies): Skip debug insns.
370         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
371         (regstat_bb_compute_ri): Skip debug insns.
372         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
373         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
374         check_loop_closed_ssa_stmt): Skip debug stmts.
375         * tree-tailcall.c (find_tail_calls): Likewise.
376         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
377         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
378         (build_var_debug_value_stat): Declare.
379         (build_var_debug_value): Define.
380         (target_for_debug_bind): Declare.
381         * reload.c (find_equiv_reg): Skip debug insns.
382         * rtlanal.c (reg_used_between_p): Skip debug insns.
383         (side_effects_p): Likewise.
384         (canonicalize_condition): Likewise.
385         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug 
386         insns never depend on debug insns.
387         (create_ddg_dep_no_link): Likewise.
388         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
389         Don't add inter-loop dependencies for debug insns.
390         (build_intra_loop_deps): Likewise.
391         (create_ddg): Count debug insns.
392         * ddg.h (struct ddg::num_debug): New.
393         (num_backargs): Pair up with previous int field.
394         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
395         -fcompare-debug-second.
396         * final.c (get_attr_length_1): Skip debug insns.
397         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
398         * gcc.c (invoke_as): Call compare-debug-dump-opt.
399         (driver_self_specs): Map -fdump-final-insns to
400         -fdump-final-insns=..
401         (get_local_tick): New.
402         (compare_debug_dump_opt_spec_function): Test for . argument and
403         compute output name.  Compute temp output spec without flag name.
404         Compute -frandom-seed.
405         (OPT): Undef after use.
406         * cfgloopanal.c (num_loop_insns): Skip debug insns.
407         (average_num_loop_insns): Likewise.
408         * params.h (MIN_NONDEBUG_INSN_UID): New.
409         * gimple.def (GIMPLE_DEBUG): New.
410         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
411         * auto-inc-dec.c (merge_in_block): Skip debug insns.
412         (merge_in_block): Fix whitespace.
413         * toplev.c (flag_var_tracking): Update comment.
414         (flag_var_tracking_assignments): New.
415         (flag_var_tracking_assignments_toggle): New.
416         (process_options): Don't open final insns dump file if we're not
417         going to write to it.  Compute defaults for var_tracking.
418         * df-scan.c (df_insn_rescan_debug_internal): New.
419         (df_uses_record): Handle debug insns.
420         * haifa-sched.c (ready): Initialize n_debug.
421         (contributes_to_priority): Skip debug insns.
422         (dep_list_size): New.
423         (priority): Use it.
424         (rank_for_schedule): Likewise.  Schedule debug insns as soon as 
425         they're ready.  Disregard previous debug insns to make decisions.
426         (queue_insn): Never queue debug insns.
427         (ready_add, ready_remove_first, ready_remove): Count debug insns.
428         (schedule_insn): Don't reject debug insns because of issue rate.
429         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
430         (queue_to_ready): Skip and discount debug insns.
431         (choose_ready): Let debug insns through.
432         (schedule_block): Check boundary debug insns.  Discount debug
433         insns, schedule them early.  Adjust whitespace.
434         (set_priorities): Check for boundary debug insns.
435         (add_jump_dependencies): Use dep_list_size.
436         (prev_non_location_insn): New.
437         (check_cfg): Use it.
438         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
439         stmts.
440         (remove_unused_ivs): Reset debug stmts.
441         * modulo-sched.c (const_iteration_count): Skip debug insns.
442         (res_MII): Discount debug insns.
443         (loop_single_full_bb_p): Skip debug insns.
444         (sms_schedule): Likewise.
445         (sms_schedule_by_order): Likewise.
446         (ps_has_conflicts): Likewise.
447         * caller-save.c (refmarker_fn): New.
448         (save_call_clobbered_regs): Replace regs with saved mem in
449         debug insns.
450         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
451         Call refmarker_fn mark for hardregnos.
452         (mark_reg_as_referenced): New.
453         (replace_reg_with_saved_mem): New.
454         * ipa-pure-const.c (check_stmt): Skip debug stmts.
455         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
456         searching back.
457         (cse_extended_basic_block): Skip debug insns.
458         (count_reg_usage): Likewise.
459         (is_dead_reg): New, split out of...
460         (set_live_p): ... here.
461         (insn_live_p): Use it for debug insns.
462         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
463         (execute_optimize_stdarg): Likewise.
464         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
465         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
466         changes in debug stmts as changes.
467         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
468         (moveup_expr): Don't move across debug insns.  Don't move
469         debug insn if it would create a bookkeeping block.
470         (moveup_expr_cached): Don't use cache for debug insns that
471         are heads of blocks.
472         (compute_av_set_inside_bb): Skip debug insns.
473         (sel_rank_for_schedule): Schedule debug insns first.  Remove
474         dead code.
475         (block_valid_for_bookkeeping_p); Support lax searches.
476         (create_block_for_bookkeeping): Adjust block numbers when
477         encountering debug-only blocks.
478         (find_place_for_bookkeeping): Deal with debug-only blocks.
479         (generate_bookkeeping_insn): Accept no place to insert.
480         (remove_temp_moveop_nops): New argument full_tidying.
481         (prepare_place_to_insert): Deal with debug insns.
482         (advance_state_on_fence): Debug insns don't start cycles.
483         (update_boundaries): Take fence as argument.  Deal with
484         debug insns.
485         (schedule_expr_on_boundary): No full_tidying on debug insns.
486         (fill_insns): Deal with debug insns.
487         (track_scheduled_insns_and_blocks): Don't count debug insns.
488         (need_nop_to_preserve_insn_bb): New, split out of...
489         (remove_insn_from_stream): ... this.
490         (fur_orig_expr_not_found): Skip debug insns.
491         * rtl.def (VALUE): Move up.
492         (DEBUG_INSN): New.
493         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug
494         stmts.
495         (nearest_common_dominator_of_uses): Take debug_stmts argument.
496         Set it if debug stmts are found.
497         (statement_sink_location): Skip debug stmts.  Propagate
498         moving defs into debug stmts.
499         * ifcvt.c (first_active_insn): Skip debug insns.
500         (last_active_insns): Likewise.
501         (cond_exec_process_insns): Likewise.
502         (noce_process_if_block): Likewise.
503         (check_cond_move_block): Likewise.
504         (cond_move_convert_if_block): Likewise.
505         (block_jumps_and_fallthru_p): Likewise.
506         (dead_or_predicable): Likewise.
507         * dwarf2out.c (debug_str_hash_forced): New.
508         (find_AT_string): Add comment.
509         (gen_label_for_indirect_string): New.
510         (get_debug_string_label): New.
511         (AT_string_form): Use it.
512         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
513         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
514         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
515         several operations that cannot be represented with DWARF opcodes.
516         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
517         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
518         (dwarf2out_var_location): Take during-call mark into account.
519         (output_indirect_string): Update comment.  Output if there are
520         label and references.
521         (prune_indirect_string): New.
522         (prune_unused_types): Call it if debug_str_hash_forced.
523         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
524         (dw_long_long_const): Remove.
525         (struct dw_val_struct): Change val_long_long type to rtx.
526         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
527         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
528         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
529         component instead of HOST_BITS_PER_LONG.
530         (output_loc_operands): Likewise.   For const8* assert
531         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
532         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
533         rather than HOST_BITS_PER_LONG is >= 64.
534         (add_AT_long_long): Remove val_hi and val_lo arguments, add
535         val_const_double.
536         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
537         HOST_BITS_PER_LONG for dw_val_class_long_long.
538         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
539         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
540         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
541         DW_OP_stack_value.
542         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
543         Handle DW_OP_implicit_value.
544         (extract_int): Move prototype earlier.
545         (mem_loc_descriptor): For SUBREG punt if inner
546         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
547         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
548         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
549         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
550         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
551         instead of Pmode size.
552         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
553         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
554         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
555         (concat_loc_descriptor, concatn_loc_descriptor,
556         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
557         (add_location_or_const_value_attribute): Likewise.  For single
558         location loc_lists attempt to use add_const_value_attribute
559         for constant decls.  Add DW_AT_const_value even if
560         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
561         in its expression.
562         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
563         (control_flow_insn_p): Likewise.
564         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug
565         stmt.
566         (separate_decls_in_region_debug_bind): New.
567         (separate_decls_in_region): Process debug bind stmts afterwards.
568         * recog.c (verify_changes): Handle debug insns.
569         (extract_insn): Likewise.
570         (peephole2_optimize): Skip debug insns.
571         * dse.c (scan_insn): Skip debug insns.
572         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
573         Pass it on.
574         (setup_id_for_insn): Handle debug insns.
575         (maybe_tidy_empty_bb): Adjust whitespace.
576         (tidy_control_flow): Skip debug insns.
577         (sel_remove_insn): Adjust for debug insns.
578         (sel_estimate_number_of_insns): Skip debug insns.
579         (create_insn_rtx_from_pattern): Handle debug insns.
580         (create_copy_of_insn_rtx): Likewise.
581         * sel-sched-.h (sel_bb_end): Declare.
582         (sel_bb_empty_or_nop_p): New.
583         (get_all_loop_exits): Use it.
584         (_eligible_successor_edge_p): Likewise.
585         (return_nop_to_pool): Adjust.
586         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
587         * ira-lives.c (process_bb_node_lives): Skip debug insns.
588         * gimple-pretty-print.c (dump_gimple_debug): New.
589         (dump_gimple_stmt): Use it.
590         (dump_bb_header): Skip gimple debug stmts.
591         * regmove.c (optimize_reg_copy_1): Discount debug insns.
592         (fixup_match_2): Likewise.
593         (regmove_backward_pass): Likewise.  Simplify combined
594         replacement.  Handle debug insns.
595         * function.c (instantiate_virtual_regs): Handle debug insns.
596         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
597         * print-rtl.h: Include cselib.h.
598         (print_rtx): Print VALUEs.  Split out and recurse for
599         VAR_LOCATIONs.
600         * df.h (df_inns_rescan_debug_internal): Declare.
601         * gcse.c (alloc_hash_table): Estimate n_insns.
602         (cprop_insn): Don't regard debug insns as changes.
603         (bypass_conditional_jumps): Skip debug insns.
604         (one_pre_gcse_pass): Adjust.
605         (one_code_hoisting_pass): Likewise.
606         (compute_ld_motion_mems): Skip debug insns.
607         (one_cprop_pass): Adjust.
608         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
609         (if_convertible_stmt_p): Handle debug stmts.
610         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
611         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
612         * ira-build.c (create_bb_allocnos): Skip debug insns.
613         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
614         (has_single_use): Likewise.
615         (single_imm_use): Likewise.
616         (num_imm_uses): Likewise.
617         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
618         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
619         (create_outofssa_var_map): Likewise.
620         * lower-subreg.c (adjust_decomposed_uses): New.
621         (resolve_debug): New.
622         (decompose_multiword_subregs): Use it.
623         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
624         * emit-rtl.c: Include params.h.
625         (cur_debug_insn_uid): Define.
626         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
627         (copy_rtx_if_shared_1): Handle debug insns.
628         (reset_used_flags): Likewise.
629         (set_used_flags): LIkewise.
630         (get_max_insn_count): New.
631         (next_nondebug_insn): New.
632         (prev_nondebug_insn): New.
633         (make_debug_insn_raw): New.
634         (emit_insn_before_noloc): Handle debug insns.
635         (emit_jump_insn_before_noloc): Likewise.
636         (emit_call_insn_before_noloc): Likewise.
637         (emit_debug_insn_before_noloc): New.
638         (emit_insn_after_noloc): Handle debug insns.
639         (emit_jump_insn_after_noloc): Likewise.
640         (emit_call_insn_after_noloc): Likewise.
641         (emit_debug_insn_after_noloc): Likewise.
642         (emit_insn_after): Take loc from earlier non-debug insn.
643         (emit_jump_insn_after): Likewise.
644         (emit_call_insn_after): Likewise.
645         (emit_debug_insn_after_setloc): New.
646         (emit_debug_insn_after): New.
647         (emit_insn_before): Take loc from later non-debug insn.
648         (emit_jump_insn_before): Likewise.
649         (emit_call_insn_before): Likewise.
650         (emit_debug_insn_before_setloc): New.
651         (emit_debug_insn_before): New.
652         (emit_insn): Handle debug insns.
653         (emit_debug_insn): New.
654         (emit_jump_insn): Handle debug insns.
655         (emit_call_insn): Likewise.
656         (emit): Likewise.
657         (init_emit): Take min-nondebug-insn-uid into account.
658         Initialize cur_debug_insn_uid.
659         (emit_copy_of_insn_after): Handle debug insns.
660         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
661         location of single rhs in place.
662         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
663         (floor_sdiv_adjust): New.
664         (cell_sdiv_adjust): New.
665         (cell_udiv_adjust): New.
666         (round_sdiv_adjust): New.
667         (round_udiv_adjust): New.
668         (wrap_constant): Moved from cselib.
669         (unwrap_constant): New.
670         (expand_debug_expr): New.
671         (expand_debug_locations): New.
672         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
673         debug bind stmts.
674         (gimple_expand_cfg): Expand debug locations.
675         * cselib.c: Include tree-pass.h.
676         (struct expand_value_data): New.
677         (cselib_record_sets_hook): New.
678         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
679         (cselib_clear_table): Move, and implemnet in terms of...
680         (cselib_reset_table_with_next_value): ... this.
681         (cselib_get_next_unknown_value): New.
682         (discard_useless_locs): Don't discard preserved values.
683         (cselib_preserve_value): New.
684         (cselib_preserved_value_p): New.
685         (cselib_preserve_definitely): New.
686         (cselib_clear_preserve): New.
687         (cselib_preserve_only_values): New.
688         (new_cselib_val): Take rtx argument.  Dump it in details.
689         (cselib_lookup_mem): Adjust.
690         (expand_loc): Take regs_active in struct.  Adjust.  Silence
691         dumps unless details are requested.
692         (cselib_expand_value_rtx_cb): New.
693         (cselib_expand_value_rtx): Rename and reimplment in terms of...
694         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
695         without details.  Copy more subregs.  Try to resolve values
696         using a callback.  Wrap constants.
697         (cselib_subst_to_values): Adjust.
698         (cselib_log_lookup): New.
699         (cselib_lookup): Call it.
700         (cselib_invalidate_regno): Don't count preserved values as
701         useless.
702         (cselib_invalidate_mem): Likewise.
703         (cselib_record_set): Likewise.
704         (struct set): Renamed to cselib_set, moved to cselib.h.
705         (cselib_record_sets): Adjust.  Call hook.
706         (cselib_process_insn): Reset table when it would be cleared.
707         (dump_cselib_val): New.
708         (dump_cselib_table): New.
709         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
710         (remove_forwarder_block): Support moving debug stmts.
711         * cselib.h (cselib_record_sets_hook): Declare.
712         (cselib_expand_callback): New type.
713         (cselib_expand_value_rtx_cb): Declare.
714         (cselib_reset_table_with_next_value): Declare.
715         (cselib_get_next_unknown_value): Declare.
716         (cselib_preserve_value): Declare.
717         (cselib_preserved_value_p): Declare.
718         (cselib_preserve_only_values): Declare.
719         (dump_cselib_table): Declare.
720         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
721         (try_crossjump_to_edge): Likewise.
722         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
723         dominated blocks when debug stmts are present.
724         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
725         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
726         (set_var_live_on_entry): Likewise.
727         * loop-invariant.c (find_invariants_bb): Skip debug insns.
728         * cfglayout.c (curr_location, last_location): Make static.
729         (set_curr_insn_source_location): Don't avoid bouncing.
730         (get_curr_insn_source_location): New.
731         (get_curr_insn_block): New.
732         (duplicate_insn_chain): Handle debug insns.
733         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
734         into debug stmts.
735         * common.opt (fcompare-debug): Move to sort order.
736         (fdump-unnumbered-links): Likewise.
737         (fvar-tracking-assignments): New.
738         (fvar-tracking-assignments-toggle): New.
739         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
740         because of debug stmts.
741         (mark_stmt_if_obviously_necessary): Mark debug stmts.
742         (eliminate_unnecessary_stmts): Walk dominated blocks before
743         dominators.
744         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
745         * ira.c (memref_used_between_p): Skip debug insns.
746         (update_equiv_regs): Likewise.
747         * sched-deps.c (sd_lists_size): Accept empty list.
748         (sd_init_insn): Mark debug insns.
749         (sd_finish_insn): Unmark them.
750         (sd_add_dep): Reject non-debug deps on debug insns.
751         (fixup_sched_groups): Give debug insns group treatment.
752         Skip debug insns.
753         (sched_analyze_reg): Don't mark debug insns for sched before call.
754         (sched_analyze_2): Handle debug insns.
755         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
756         insns.
757         (deps_analyze_insn): Handle debug insns.
758         (deps_start_bb): Skip debug insns.
759         (init_deps): Initialize last_debug_insn.
760         * tree-ssa.c (target_for_debug_bind): New.
761         (find_released_ssa_name): New.
762         (propagate_var_def_into_debug_stmts): New.
763         (propagate_defs_into_debug_stmts): New.
764         (verify_ssa): Skip debug bind stmts without values.
765         (warn_uninialized_vars): Skip debug stmts.
766         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
767         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
768         (rtx_equal_p): Likewise.
769         * ira-costs.c (scan_one_insn): Skip debug insns.
770         (process_bb_node_for_hard_reg_moves): Likewise.
771         * rtl.h (DEBUG_INSN_P): New.
772         (NONDEBUG_INSN_P): New.
773         (MAY_HAVE_DEBUG_INSNS): New.
774         (INSN_P): Accept debug insns.
775         (RTX_FRAME_RELATED_P): Likewise.
776         (INSN_DELETED_P): Likewise
777         (PAT_VAR_LOCATION_DECL): New.
778         (PAT_VAR_LOCATION_LOC): New.
779         (PAT_VAR_OCATION_STATUS): New.
780         (NOTE_VAR_LOCATION_DECL): Reimplement.
781         (NOTE_VAR_LOCATION_LOC): Likewise.
782         (NOTE_VAR_LOCATION_STATUS): Likewise.
783         (INSN_VAR_LOCATION): New.
784         (INSN_VAR_LOCATION_DECL): New.
785         (INSN_VAR_LOCATION_LOC): New.
786         (INSN_VAR_LOCATION_STATUS): New.
787         (gen_rtx_UNKNOWN_VAR_LOC): New.
788         (VAR_LOC_UNKNOWN_P): New.
789         (NOTE_DURING_CALL_P): New.
790         (SCHED_GROUP_P): Accept debug insns.
791         (emit_debug_insn_before): Declare.
792         (emit_debug_insn_before_noloc): Declare.
793         (emit_debug_insn_beore_setloc): Declare.
794         (emit_debug_insn_after): Declare.
795         (emit_debug_insn_after_noloc): Declare.
796         (emit_debug_insn_after_setloc): Declare.
797         (emit_debug_insn): Declare.
798         (make_debug_insn_raw): Declare.
799         (prev_nondebug_insn): Declare.
800         (next_nondebug_insn): Declare.
801         (delegitimize_mem_from_attrs): Declare.
802         (get_max_insn_count): Declare.
803         (wrap_constant): Declare.
804         (unwrap_constant): Declare.
805         (get_curr_insn_source_location): Declare.
806         (get_curr_insn_block): Declare.
807         * tree-inline.c (insert_debug_decl_map): New.
808         (processing_debug_stmt): New.
809         (remap_decl): Don't create new mappings in debug stmts.
810         (remap_gimple_op_r): Don't add references in debug stmts.
811         (copy_tree_body_r): Likewise.
812         (remap_gimple_stmt): Handle debug bind stmts.
813         (copy_bb): Skip debug stmts.
814         (copy_edges_for_bb): Likewise.
815         (copy_debug_stmt): New.
816         (copy_debug_stmts): New.
817         (copy_body): Copy debug stmts at the end.
818         (insert_init_debug_bind): New.
819         (insert_init_stmt): Take id.  Skip and emit debug stmts.
820         (setup_one_parameter): Remap variable earlier, register debug
821         mapping.
822         (estimate_num_insns): Skip debug stmts.
823         (expand_call_inline): Preserve debug_map.
824         (optimize_inline_calls): Check for no debug_stmts left-overs.
825         (unsave_expr_now): Preserve debug_map.
826         (copy_gimple_seq_and_replace_locals): Likewise.
827         (tree_function_versioning): Check for no debug_stmts left-overs.
828         Init and destroy debug_map as needed.  Split edges unconditionally.
829         (build_duplicate_type): Init and destroy debug_map as needed.
830         * tree-inline.h: Include gimple.h instead of pointer-set.h.
831         (struct copy_body_data): Add debug_stmts and debug_map.
832         * sched-int.h (struct ready_list): Add n_debug.
833         (struct deps): Add last_debug_insn.
834         (DEBUG_INSN_SCHED_P): New.
835         (BOUNDARY_DEBUG_INSN_P): New.
836         (SCHEDULE_DEBUG_INSN_P): New.
837         (sd_iterator_cond): Accept empty list.
838         * combine.c (create_log_links): Skip debug insns.
839         (combine_instructions): Likewise.
840         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
841         return value is always unshared.
842         (struct rtx_subst_pair): New.
843         (auto_adjust_pair): New.
844         (propagate_for_debug_subst): New.
845         (propagate_for_debug): New.
846         (try_combine): Skip debug insns.  Propagate removed defs into
847         debug insns.
848         (next_nonnote_nondebug_insn): New.
849         (distribute_notes): Use it.  Skip debug insns.
850         (distribute_links): Skip debug insns.
851         * tree-outof-ssa.c (set_location_for_edge): Likewise.
852         * resource.c (mark_target_live_regs): Likewise.
853         * var-tracking.c: Include cselib.h and target.h.
854         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
855         MO_VAL_SET.
856         (micro_operation_type_name): New.
857         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
858         (struct micro_operation_def): Update comments.
859         (decl_or_value): New type.  Use instead of decls.
860         (struct emit_note_data_def): Add vars.
861         (struct attrs_def): Use decl_or_value.
862         (struct variable_tracking_info_def): Add permp, flooded.
863         (struct location_chain_def): Update comment.
864         (struct variable_part_def): Use decl_or_value.
865         (struct variable_def): Make var_part a variable length array.
866         (valvar_pool): New.
867         (scratch_regs): New.
868         (cselib_hook_called): New.
869         (dv_is_decl_p): New.
870         (dv_is_value_p): New.
871         (dv_as_decl): New.
872         (dv_as_value): New.
873         (dv_as_opaque): New.
874         (dv_onepart_p): New.
875         (dv_pool): New.
876         (IS_DECL_CODE): New.
877         (check_value_is_not_decl): New.
878         (dv_from_decl): New.
879         (dv_from_value): New.
880         (dv_htab_hash): New.
881         (variable_htab_hash): Use it.
882         (variable_htab_eq): Support values.
883         (variable_htab_free): Free from the right pool.
884         (attrs_list_member, attrs_list_insert): Use decl_or_value.
885         (attrs_list_union): Adjust.
886         (attrs_list_mpdv_union): New.
887         (tie_break_pointers): New.
888         (canon_value_cmp): New.
889         (unshare_variable): Return possibly-modified slot.
890         (vars_copy_1): Adjust.
891         (var_reg_decl_set): Adjust.  Split out of...
892         (var_reg_set): ... this.
893         (get_init_value): Adjust.
894         (var_reg_delete_and_set): Adjust.
895         (var_reg_delete): Adjust.
896         (var_regno_delete): Adjust.
897         (var_mem_decl_set): Split out of...
898         (var_mem_set): ... this.
899         (var_mem_delete_and_set): Adjust.
900         (var_mem_delete): Adjust.
901         (val_store): New.
902         (val_reset): New.
903         (val_resolve): New.
904         (variable_union): Adjust.  Speed up merge of 1-part vars.
905         (variable_canonicalize): Use unshared slot.
906         (VALUED_RECURSED_INTO): New.
907         (find_loc_in_1pdv): New.
908         (struct dfset_merge): New.
909         (insert_into_intersection): New.
910         (intersect_loc_chains): New.
911         (loc_cmp): New.
912         (canonicalize_loc_order_check): New.
913         (canonicalize_values_mark): New.
914         (canonicalize_values_star): New.
915         (variable_merge_over_cur): New.
916         (variable_merge_over_src): New.
917         (dataflow_set_merge): New.
918         (dataflow_set_equiv_regs): New.
919         (remove_duplicate_values): New.
920         (struct dfset_post_merge): New.
921         (variable_post_merge_new_vals): New.
922         (variable_post_merge_perm_vals): New.
923         (dataflow_post_merge_adjust): New.
924         (find_mem_expr_in_1pdv): New.
925         (dataflow_set_preserve_mem_locs): New.
926         (dataflow_set_remove_mem_locs): New.
927         (dataflow_set_clear_at_call): New.
928         (onepart_variable_different_p): New.
929         (variable_different_p): Use it.
930         (dataflow_set_different_1): Adjust.  Make detailed dump
931         more verbose.
932         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
933         if not needed.
934         (track_loc_p): Pass it true.
935         (struct count_use_info): New.
936         (find_use_val): New.
937         (replace_expr_with_values): New.
938         (log_op_type): New.
939         (use_type): New, partially split out of...
940         (count_uses): ... this.  Count new micro-ops.
941         (count_uses_1): Adjust.
942         (count_stores): Adjust.
943         (count_with_sets): New.
944         (VAL_NEEDS_RESOLUTION): New.
945         (VAL_HOLDS_TRACK_EXPR): New.
946         (VAL_EXPR_IS_COPIED): New.
947         (VAL_EXPR_IS_CLOBBERED): New.
948         (add_uses): Adjust.  Generate new micro-ops.
949         (add_uses_1): Adjust.
950         (add_stores): Generate new micro-ops.
951         (add_with_sets): New.
952         (find_src_status): Adjust.
953         (find_src_set_src): Adjust.
954         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
955         Handle new micro-ops.  Canonicalize value equivalances.
956         (vt_find_locations): Compute total size of hash tables for
957         dumping.  Perform merge for var-tracking-assignments.  Don't
958         disregard single-block loops.
959         (dump_attrs_list): Handle decl_or_value.
960         (dump_variable): Take variable.  Deal with decl_or_value.
961         (dump_variable_slot): New.
962         (dump_vars): Use it.
963         (dump_dataflow_sets): Adjust.
964         (set_slot_part): New, extended to support one-part variables
965         after splitting out of...
966         (set_variable_part): ... this.
967         (clobber_slot_part): New, split out of...
968         (clobber_variable_part): ... this.
969         (delete_slot_part): New, split out of...
970         (delete_variable_part): .... this.
971         (check_wrap_constant): New.
972         (vt_expand_loc_callback): New.
973         (vt_expand_loc): New.
974         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
975         EMIT_NOTE_AFTER_CALL_INSN.
976         (emit_notes_for_differences_1): Adjust.  Handle values.
977         (emit_notes_for_differences_2): Likewise.
978         (emit_notes_for_differences): Adjust.
979         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN
980         notes.  Adjust.  Handle new micro-ops.
981         (vt_add_function_parameters): Adjust.  Create and bind values.
982         (vt_initialize): Adjust.  Initialize scratch_regs and
983         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
984         operations.  Move some code to count_with_sets and add_with_sets.
985         (delete_debug_insns): New.
986         (vt_debug_insns_local): New.
987         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
988         cselib.
989         (var_tracking_main): If var-tracking-assignments is enabled
990         but var-tracking isn't, delete debug insns and leave.  Likewise
991         if we exceed limits or fail the stack adjustments tests, and
992         after all var-tracking processing.
993         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
994         (dataflow_set): Add traversed_vars.
995         (value_chain, const_value_chain): New typedefs.
996         (value_chain_pool, value_chains): New variables.
997         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
998         add_value_chains, add_cselib_value_chains, remove_value_chain,
999         remove_value_chains, remove_cselib_value_chains): New functions.
1000         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
1001         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
1002         static inlines.
1003         (shared_hash_find_slot_unshare, shared_hash_find_slot,
1004         shared_hash_find_slot_noinsert, shared_hash_find): Update.
1005         (dst_can_be_shared): New variable.
1006         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
1007         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
1008         different from set->vars, look up slot again instead of using the
1009         passed in slot.
1010         (dataflow_set_init): Initialize traversed_vars.
1011         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
1012         lookup if set->vars is shared.  Don't keep slot cleared before
1013         calling unshare_variable.  Unshare set->vars if needed.  Adjust
1014         unshare_variable callers.  Clear dst_can_be_shared if needed.
1015         Even ->refcount == 1 vars must be unshared if set->vars is shared
1016         and var needs to be modified.
1017         (dataflow_set_union): Set traversed_vars during canonicalization.
1018         (VALUE_CHANGED, DECL_CHANGED): Define.
1019         (set_dv_changed, dv_changed_p): New static inlines.     
1020         (track_expr_p): Clear DECL_CHANGED.
1021         (dump_dataflow_sets): Set it.
1022         (variable_was_changed): Call set_dv_changed.
1023         (emit_note_insn_var_location): Likewise.
1024         (changed_variables_stack): New variable.
1025         (check_changed_vars_1, check_changed_vars_2): New functions.
1026         (emit_notes_for_changes): Do nothing if changed_variables is
1027         empty.  Traverse changed_variables with check_changed_vars_1,
1028         call check_changed_vars_2 on each changed_variables_stack entry.
1029         (emit_notes_in_bb): Add SET argument.  Just clear it at the
1030         beginning, use it instead of local &set, don't destroy it at the
1031         end.
1032         (vt_emit_notes): Call dataflow_set_clear early on all
1033         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
1034         computed set, dataflow_set_clear also VTI(bb)->in when we are
1035         done with the basic block.  Initialize changed_variables_stack,
1036         free it afterwards.  If ENABLE_CHECKING verify that after noting
1037         differences to an empty set value_chains hash table is empty.
1038         (vt_initialize): Initialize value_chains and value_chain_pool.
1039         (vt_finalize): Delete value_chains htab, free value_chain_pool.
1040         (variable_tracking_main): Call dump_dataflow_sets before calling
1041         vt_emit_notes, not after it.
1042         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
1043         (propagate_var_def_into_debug_stmts): Declare.
1044         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
1045         (df_set_note): Reject debug insns.
1046         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
1047         add notes to debug insns.
1048         (df_note_bb_compute): Adjust.  Likewise.
1049         (df_simulate_uses): Skip debug insns.
1050         (df_simulate_initialize_backwards): Likewise.
1051         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
1052         (subst_stack_regs_pat): Reject debug insns.
1053         (convert_regs_1): Handle debug insns.
1054         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
1055         (print-rtl.o): Depend on cselib.h.
1056         (cselib.o): Depend on TREE_PASS_H.
1057         (var-tracking.o): Depend on cselib.h and TARGET_H.
1058         * sched-rgn.c (rgn_estimate_number_of_insns): Discount
1059         debug insns.
1060         (init_ready_list): Skip boundary debug insns.
1061         (add_branch_dependences): Skip debug insns.
1062         (free_block_dependencies): Check for blocks with only debug
1063         insns.
1064         (compute_priorities): Likewise.
1065         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
1066         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
1067         all callers.
1068         (gimple_build_debug_bind_stat): New.
1069         (empty_body_p): Skip debug stmts.
1070         (gimple_has_side_effects): Likewise.
1071         (gimple_rhs_has_side_effects): Likewise.
1072         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
1073         (gimple_build_debug_bind_stat): Declare.
1074         (gimple_build_debug_bind): Define.
1075         (is_gimple_debug): New.
1076         (gimple_debug_bind_p): New.
1077         (gimple_debug_bind_get_var): New.
1078         (gimple_debug_bind_get_value): New.
1079         (gimple_debug_bind_get_value_ptr): New.
1080         (gimple_debug_bind_set_var): New.
1081         (gimple_debug_bind_set_value): New.
1082         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
1083         (gimple_debug_bind_reset_value): New.
1084         (gimple_debug_bind_has_value_p): New.
1085         (gsi_next_nondebug): New.
1086         (gsi_prev_nondebug): New.
1087         (gsi_start_nondebug_bb): New.
1088         (gsi_last_nondebug_bb): New.
1089         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
1090         (print_insn): Handle DEBUG_INSN.
1091         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
1092         of first insn prevail.
1093         (first_stmt): Skip debug stmts.
1094         (first_non_label_stmt): Likewise.
1095         (last_stmt): Likewise.
1096         (has_zero_uses_1): New.
1097         (single_imm_use_1): New.
1098         (verify_gimple_debug): New.
1099         (verify_types_in_gimple_stmt): Handle debug stmts.
1100         (verify_stmt): Likewise.
1101         (debug_loop_num): Skip debug stmts.
1102         (remove_edge_and_dominated_blocks): Remove dominators last.
1103         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into
1104         debug stmts.
1105         (linearize_expr): Likewise.
1106         * config/i386/i386.c (ix86_delegitimize_address): Call
1107         default implementation.
1108         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug
1109         insns.
1110         (group_barrier_needed): Skip debug insns.
1111         (emit_insn_group_barriers): Likewise.
1112         (emit_all_insn_group_barriers): Likewise.
1113         (ia64_variable_issue): Handle debug insns.
1114         (ia64_dfa_new_cycle): Likewise.
1115         (final_emit_insn_group_barriers): Skip debug insns.
1116         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
1117         def cfa without frame.
1118         (process_set): Likewise.
1119         (process_for_unwind_directive): Pass frame on.
1120         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
1121         (rs6000_delegitimize_address): New.
1122         (rs6000_debug_adjust_cost): Handle debug insns.
1123         (is_microcoded_insn): Likewise.
1124         (is_cracked_insn): Likewise.
1125         (is_nonpipeline_insn): Likewise.
1126         (insn_must_be_first_in_group): Likewise.
1127         (insn_must_be_last_in_group): Likewise.
1128         (force_new_group): Likewise.
1129         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
1130         contains only debug insns.
1131         (rtl_merge_blocks): Skip debug insns.
1132         (purge_dead_edges): Likewise.
1133         (rtl_block_ends_with_call_p): Skip debug insns.
1134         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
1135         (mark_reg_dependencies): Skip debug insns.
1136         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
1137         * tree-ssanames.c (release_ssa_name): Propagate def into
1138         debug stmts.
1139         * tree-ssa-threadedge.c
1140         (record_temporary_equivalences_from_stmts): Skip debug stmts.
1141         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
1142         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
1143         (copyprop_hardreg_forward_1): Handle debug insns.
1144         * reload1.c (reload): Skip debug insns.  Replace unassigned
1145         pseudos in debug insns with their equivalences.
1146         (eliminate_regs_in_insn): Skip debug insns.
1147         (emit_input_reload_insns): Skip debug insns at first, adjust
1148         them later.
1149         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
1150         (get_indirect_ref_operands): Pass opf_no_vops on.
1151         (get_expr_operands): Likewise.  Skip debug stmts.
1152         (parse_ssa_operands): Scan debug insns with opf_no_vops.
1154 2009-09-01  Richard Henderson  <rth@redhat.com>
1156         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate 
1157         stmt_ends_pp_p statements at least once.
1158         * tree-vrp.c (vrp_initialize): Likewise.
1159         (vrp_visit_stmt): Be prepared for non-interesting stmts.
1161 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
1163         PR bootstrap/41205
1164         Fix AIX bootstrap after PR debug/30161
1165         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
1166         that is a GNU extension.
1167         (tmpl_value_parm_die_table): Move the definition of this global
1168         outside #ifdef DWARF2_DEBUGGING_INFO region.
1170 2009-09-01  Richard Guenther  <rguenther@suse.de>
1172         * tree.c (tree_expr_size): New function.
1173         * tree.h (tree_expr_size): Declare.
1174         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
1175         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
1176         * langhooks.c (lhd_expr_size): Remove.
1177         * langhooks.h (struct lang_hooks): Remove expr_size.
1178         * explow.c (expr_size): Use tree_expr_size.
1179         (int_expr_size): Likewise.
1180         * langhooks-def.h (lhd_expr_size): Remove.
1181         (LANG_HOOKS_EXPR_SIZE): Likewise.
1182         (LANG_HOOKS_INITIALIZER): Adjust.
1184 2009-09-01  Richard Guenther  <rguenther@suse.de>
1186         * tree-flow.h (mark_addressable): Move declaration ...
1187         * tree.h (mark_addressable): ... here.
1188         * stmt.c (expand_asm_operands): Use mark_addressable, not
1189         lang_hooks.mark_addressable.
1190         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1191         LANG_HOOKS_MARK_ADDRESSABLE.
1192         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
1193         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1195 2009-08-31  Chris Demetriou  <cgd@google.com>
1197         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
1198         vectorize if not TARGET_SSE2.
1200 2009-08-31  DJ Delorie  <dj@redhat.com>
1202         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
1203         registers if no coprocessor is enabled.
1205 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
1207         PR debug/30161
1208         * cgraph.h (cgraph_get_node): Declare ...
1209         * cgraph.c (cgraph_get_node): ... new function.
1210         * dwarf2out.c (gen_generic_params_dies,
1211         generic_parameter_die, tree_add_const_value_attribute_for_decl,
1212         make_ith_pack_parameter_name,
1213         append_entry_to_tmpl_value_parm_die_table,
1214         gen_remaining_tmpl_value_param_die_attribute): New functions.
1215         (gen_subprogram_die): Generate debug info for template parameters
1216         if debug info level is higher than DINFO_LEVEL_TERSE.
1217         Use tree_add_const_value_attribute_for_decl instead of
1218         tree_add_const_value_attribute.
1219         (gen_const_die): Use tree_add_const_value_attribute_for_decl
1220         instead of tree_add_const_value_attribute.
1221         (gen_struct_or_union_type_die): Generate debug
1222         info for template parameters if debug info level is higher than
1223         DINFO_LEVEL_TERSE.
1224         (tree_add_const_value_attribute): Handle integral and pointer
1225         constants. Update comment.
1226         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
1227         (dwarf_attr_name): Support DW_AT_GNU_template_name.
1228         (reference_to_unused): Fix thinko. Remove redundant predicates from
1229         tests.
1230         (tree_add_const_value_attribute): Make this work for constant
1231         expressions only.
1232         tree_add_const_value_attribute_for_decl is to be used for variable
1233         DECLs now.
1234         (add_location_or_const_value_attribute): Use
1235         tree_add_const_value_attribute_for_decl now.
1236         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
1237         DW_TAG_template_value_param DIEs after function DIEs have been
1238         emitted.
1239         * langhooks.h (lang_hooks_for_types): Add
1240         get_argument_pack_elems.
1241         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
1242         (lang_hooks): Added get_innermost_generic_parms,
1243         get_innermost_generic_args.
1244         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
1245         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
1246         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
1247         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
1249 2009-08-31  DJ Delorie  <dj@redhat.com>
1251         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
1252         it once we start generating the prologue or epilogue.
1253         (mep_call_saves_register): If the frame is locked, re-use
1254         cached values.
1255         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
1256         (mep_expand_prologue): Call it.
1257         (mep_expand_epilogue): Likewise.
1258         (mep_start_function): Use the same logic as mep_expand_prologue.
1259         (mep_pass_by_reference): Make logic more readable.
1260         (mep_return_in_memory): Zero-sized objects are passed in memory.
1261         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
1264 2009-08-31  Richard Guenther  <rguenther@suse.de>
1266         * builtins.c (fold_builtin_memory_op): Use the alias oracle
1267         to query if the memory regions for memmove overlap.
1268         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
1269         asserts on pointers, instead deal with odd trees.
1270         (ptr_derefs_may_alias_p): Likewise.
1271         (refs_may_alias_p_1): Constructor bases also never alias.
1273 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1275         * doc/install.texi (Final install): Adjust reference on where to
1276         order printed manuals.
1278 2009-08-30  Olivier Hainque  <hainque@adacore.com>
1280         * dwarf2out.c (switch_to_frame_table_section): Move
1281         definition prior to first use.
1283 2009-08-30  Richard Guenther  <rguenther@suse.de>
1285         PR tree-optimization/41186
1286         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
1287         (ao_ref_init_from_ptr_and_size): New function.
1288         (ref_maybe_used_by_call_p_1): Be more precise tracking
1289         used ranges for builtin functions.
1290         (ref_maybe_used_by_call_p): Adjust.
1291         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
1292         ranges for builtin functions.
1293         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
1295 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
1297         PR target/41081
1298         * fwprop.c (get_reg_use_in): Delete.
1299         (free_load_extend): New function.
1300         (forward_propagate_subreg): Use it.
1302 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1304         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
1306 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
1308         PR/41184
1309         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
1310         padding.
1312 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
1314         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
1315         fini or fini_array section.
1317 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1319         * graphite-dependences.c (graphite_legal_transform_bb): Call
1320         pbb_remove_duplicate_pdrs.
1321         * graphite-poly.c (can_collapse_pdr): Removed.
1322         (pdr_find_duplicate): Removed.
1323         (can_collapse_pdrs): New.
1324         (pbb_remove_duplicate_pdrs): New.
1325         (new_poly_dr): Do not look for duplicates.
1326         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1327         (PBB_PDR_DUPLICATES_REMOVED): New.
1328         (pbb_remove_duplicate_pdrs): Declared.
1330 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1332         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1333         the strides by multiplying by PDR_NB_REFS.
1334         * graphite-poly.c (can_collapse_pdr): New.
1335         (pdr_find_duplicate): New.
1336         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
1337         Initialize PDR_NB_REFS.
1338         * graphite-poly.h (struct poly_dr): Add field nb_refs.
1339         (PDR_NB_REFS): New.
1340         (new_poly_dr): Number of subscripts is a graphite_dim_t.
1342 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1344         PR middle-end/40965
1345         * graphite-poly.c (apply_poly_transforms): Remove legality test before
1346         any transform.
1348 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1350         * graphite-dependences.c (pddr_original_scattering): Return NULL
1351         for read-read dependence relations.
1352         * graphite-poly.h (enum poly_dr_type): Fix comment.
1353         (pdr_read_p): New.
1354         (pdr_write_p): New.
1355         (pdr_may_write_p): New.
1357 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1359         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1360         (struct poly_dr): Same.
1361         (new_poly_dr): Same.
1362         * graphite-poly.c (new_poly_dr): Same.
1363         * graphite-dependences.c (dot_deps): Disable call to system.
1365 2009-08-28  Cary Coutant  <ccoutant@google.com>
1367         PR debug/41063
1368         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
1369         struct/union/enum types local to a function.
1371 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1372             Sebastian Pop  <sebastian.pop@amd.com>
1374         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1375         pbb_strip_mine_time_depth.  Changed the implementation so that
1376         transformation is expressed as a transformation on
1377         time (scatttering) dimensions.  Also, ensures that the 2d+1
1378         scheduling format is preserved.
1379         (pbb_strip_mine_profitable_p): Profitability is based on the
1380         iteration number of a given time (scattering) dimension,
1381         and not on a original loop depth dimension.
1382         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1383         (pbb_do_strip_mine): Call psct_dynamic_dim.
1384         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1385         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1386         (pbb_nb_dynamic_scattering_transform): New.
1387         (psct_dynamic_dim): New.
1389 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1391         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1392         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1393         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1394         * graphite-interchange.c (build_linearized_memory_access): Same.
1395         (memory_stride_in_loop): Same.
1397 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1399         * graphite-dependences.c (pddr_original_scattering): New.
1400         (graphite_legal_transform_dr): Call pddr_original_scattering.
1401         (dot_deps_1): New.
1402         (dot_deps): New.
1403         * graphite-dependences.h (dot_deps): Declared.
1404         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1405         (print_pdr): Print PDR_ID.
1406         * graphite-poly.h (struct poly_dr): Add field id.
1407         (PDR_ID): New.
1408         (pbb_index): New.
1409         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1411 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1413         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1414         not delete the original dependence relation.
1416 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1418         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1419         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1420         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1421         (free_poly_ddr): New.
1422         (pddr_is_empty): New.
1423         (dependence_polyhedron_1): Now returns a poly_ddr_p.
1424         (dependence_polyhedron): Same.  Remove useless gcc_assert.
1425         Remove fprintfs.
1426         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1427         (graphite_carried_dependence_level_k): Call pddr_is_empty.
1428         * graphite-dependences.h (enum poly_dependence_kind): New.
1429         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
1430         (PDRP_SOURCE): Renamed PDDR_SOURCE.
1431         (PDRP_SINK): Renamed PDDR_SINK.
1432         (PDRP_DDP): Renamed PDDR_DDP.
1433         (PDDR_KIND): New.
1434         (free_poly_ddr): Declared.
1435         * graphite-poly.c (new_scop): Use the new hash function names.
1436         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1437         into original_pddrs.
1438         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1440 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1442         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1443         bounds with LT_EXPR to make niter analysis more precise on code
1444         generated by Graphite.
1446 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1448         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1449         (graphite_legal_transform_bb): Same.
1450         (poly_drs_may_alias_p): Same.
1452 2009-08-28  Richard Guenther  <rguenther@suse.de>
1454         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
1456 2009-08-28  Jan Beulich  <jbeulich@novell.com>
1458         * config/i386/netware.c: Include langhooks.h.
1459         (i386_nlm_encode_section_info): Simplify.
1460         (netware_override_options): Delete.
1461         * config/i386/netware.h (netware_override_options): Delete
1462         declaration.
1463         (OVERRIDE_OPTIONS): Delete definition.
1464         (SUBTARGET_OVERRIDE_OPTIONS): Define.
1465         (ASM_COMMENT_START): Define.
1466         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1468 2009-08-28  Jan Beulich  <jbeulich@novell.com>
1470         * configure.ac: For in-tree ld, do a plain version check to
1471         determine whether comdat groups are supported.
1472         * configure: Regenerate.
1474 2009-08-28  Olivier Hainque  <hainque@adacore.com>
1476         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
1477         always defined.  Reflect definition or absence of such for
1478         COLLECT_EXPORT_LIST.  Readability helper.
1479         (scanfilter): New enum, to help control what symbols
1480         are to be considered or ignored by scan_prog_file.
1481         (enum pass): Rename as "scanpass", moved together with scanfilter
1482         prior to scan_prog_file's prototype.
1483         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
1484         Group prototype with the scanpass/scanfilter definitions, factorize
1485         head comments for the several implementations at the prototype.
1486         (main): Reorganize the first pass link control to let AIX
1487         drag only the needed frame tables in executables.  Prevent
1488         frame tables collection during the scan aimed at static ctors.
1489         Pre-link and scan for frame tables later to compensate.
1490         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
1491         A C statement to issue assembly directives that create a reference
1492         to the given DWARF table identifier label from the current function
1493         section.
1494         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
1495         to differentiate first time section entry.  Only emit a .data
1496         tables start identifier label the first time around.
1497         (switch_to_frame_table_section): New function.  Helper for
1498         output_call_frame_info to switch possibly BACK into the eh_frame
1499         or the debug_frame section depending on FOR_EH.
1500         (output_call_frame_info): Use helper to first enter the proper
1501         frame section.
1502         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
1503         emit a link to the frame table start label from each function
1504         section.
1505         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
1506         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
1507         * config/rs6000/rs6000-protos.h: Declare it.
1508         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
1510 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1512         * config/sh/sh.c (split_branches): Check the result of
1513         next_active_insn.
1515 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
1517         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
1518         using -pthread -fopenmp
1520 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
1522         * doc/service.texi (service directory): Update URL.
1524 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
1526         PR rtl-optimization/40861
1527         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
1528         extract word from a multi-word subreg for negative byte positions.
1530 2009-08-27  Tristan Gingold  <gingold@adacore.com>
1531             Douglas B Rupp  <rupp@gnat.com>
1533         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
1534         (SECTION_VMS_OVERLAY): Define.
1535         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
1536         attribute.
1537         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
1538         for common_object.
1539         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
1540         common_object declarations.
1541         (ia64_section_type_flags): Set section flag for common_object.
1542         * config/ia64/ia64-protos.h
1543         (ia64_vms_output_aligned_decl_common): Declare.
1544         (ia64_vms_elf_asm_named_section): Declare.
1546 2009-08-27  Michael Matz  <matz@suse.de>
1548         * expr.c (expand_expr_real_2): New function taking exploded
1549         unary or binary expression, split out from ...
1550         (expand_expr_real_1): ... here.  Move over all unary/binary
1551         switch parts to above function, in particular these codes:
1552         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
1553         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
1554         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
1555         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
1556         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
1557         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
1558         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
1559         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
1560         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
1561         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
1562         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
1563         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
1564         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
1565         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
1566         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
1567         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
1568         VEC_PACK_FIX_TRUNC_EXPR.
1569         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
1570         full expression.
1572 2009-08-27  Richard Guenther  <rguenther@suse.de>
1574         * gengtype.c (main): Handle uint64_t.
1575         * ipa-utils.c (get_base_var): Indent properly.
1576         * tree-ssa-live.c (debug_scope_block): New function.
1577         * tree-flow.h (debug_scope_block): Declare.
1578         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
1579         * basic-block.h (enum profile_status): Rename to
1580         enum profile_status_d.
1581         (x_profile_status): Adjust type.
1583 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
1585         PR debug/41170
1586         * dwarf2out.c (get_context_die): Declare this static function.
1587         (gen_type_die_with_usage): Make sure a DIE is a generated for
1588         the context of a typedef.
1590 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
1592         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
1593         switch.
1595 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1597         * config/mips/mips-protos.h (mips_output_sync): Declare.
1598         (mips_sync_loop_insns): Likewise.
1599         (mips_output_sync_loop): Replace first two parameters with an rtx.
1600         * config/mips/mips.c (mips_multi_member): New structure.
1601         (mips_multi_members): New variable.
1602         (mips_multi_start): New function.
1603         (mips_multi_add): Likewise.
1604         (mips_multi_add_insn): Likewise.
1605         (mips_multi_add_label): Likewise.
1606         (mips_multi_last_index): Likewise.
1607         (mips_multi_copy_insn): Likewise.
1608         (mips_multi_set_operand): Likewise.
1609         (mips_multi_write): Likewise.
1610         (mips_print_operand_punctuation): Remove '%|' and '%-'.
1611         (mips_init_print_operand_punct): Update accordingly.
1612         (mips_start_ll_sc_sync_block): New function.
1613         (mips_end_ll_sc_sync_block): Likewise.
1614         (mips_output_sync): Likewise.
1615         (mips_sync_insn1_template): Likewise.
1616         (mips_sync_insn2_template): Likewise.
1617         (mips_get_sync_operand): Likewise.
1618         (mips_process_sync_loop): Likewise.
1619         (mips_output_sync_loop): Use mips_process_sync_loop.
1620         (mips_sync_loop_insns): New function.
1621         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
1622         (MIPS_COMPARE_AND_SWAP_12): Likewise.
1623         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
1624         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
1625         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
1626         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
1627         (MIPS_SYNC_OLD_OP_12): Likewise.
1628         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
1629         (MIPS_SYNC_NEW_OP_12): Likewise.
1630         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
1631         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
1632         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
1633         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
1634         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
1635         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
1636         * config/mips/mips.md (sync_mem): New attribute.
1637         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
1638         (sync_exclusive_mask, sync_required_oldval): Likewise.
1639         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
1640         (sync_release_barrier): Likewise.
1641         (length): Handle sync loops.
1642         (sync): Use mips_output_sync.
1643         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
1644         (sync_compare_and_swap<mode>): Set the new sync_* attributes
1645         and use mips_output_sync_loop.
1646         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
1647         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1648         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
1649         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
1650         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
1651         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
1652         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
1653         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
1654         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
1656 2009-08-26  Richard Guenther  <rguenther@suse.de>
1658         PR middle-end/41163
1659         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
1660         the types to not match.
1661         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
1662         verification.
1663         * tree-ssa.c (useless_type_conversion_p): Conversions to
1664         pointers to unprototyped functions are useless.
1666 2009-08-26  Richard Guenther  <rguenther@suse.de>
1668         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
1669         whole-program condition, prepare to be called for non-globals.
1670         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
1671         params build a representative with known type and track its fields.
1673 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
1675         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
1676         clearing by a taken branch.
1677         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
1678         effectively after bbro pass.
1679         (sync_nand<mode>): Ditto.
1680         (sync_old_<fetchop_name><mode>): Ditto.
1681         (sync_old_nand<mode>): Ditto.
1682         (sync_new_<fetchop_name><mode>): Dito.
1683         (sync_new_nand<mode>): Ditto.
1684         (sync_compare_and_swap<mode>_1): Ditto.
1685         (*sync_compare_and_swap<mode>): Ditto.
1686         (sync_lock_test_and_set<mode>_1): Ditto.
1687         ("sync_lock_test_and_set<mode>): Ditto.
1689 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
1691         * hwint.h (HOST_LONG_FORMAT): New macro
1692         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
1693         Use HOST_PTR_PRINTF.
1694         * system.h (HOST_PTR_PRINTF): Resurrect old macro
1695         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
1696         (HOST_PTR_PRINTF): Document.
1698 2009-08-25 Jan Hubicka  <jh@suse.cz>
1700         * config/i386/bmmintrin.h: Replace by #error.
1702         Revert:
1703         Michael Meissner  <michael.meissner@amd.com>
1704         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1705         Tony Linthicum  <tony.linthicum@amd.com>
1707         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
1708         (TARGET_ROUND): New macro for the round/ptest instructions which
1709         are shared between SSE4.1 and SSE5.
1710         (OPTION_MASK_ISA_ROUND): Ditto.
1711         (OPTION_ISA_ROUND): Ditto.
1712         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
1713         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
1715         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
1716         (-mfused-madd): New switch to give users control over whether the
1717         compiler optimizes to use the multiply/add SSE5 instructions.
1719         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
1720         (ix86_handle_option): Turn off 3dnow if -msse5.
1721         (override_options): Add SSE5 support.
1722         (print_operand): %Y prints comparison codes for SSE5 com/pcom
1723         instructions.
1724         (ix86_expand_sse_movcc): Add SSE5 support.
1725         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
1726         vector type to the next largest size.
1727         (ix86_expand_sse5_pack): New function to use pperm to pack a
1728         vector type to the next smallest size.
1729         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
1730         (IX86_BUILTIN_FMADDSD): Ditto.
1731         (IX86_BUILTIN_FMADDPS): Ditto.
1732         (IX86_BUILTIN_FMADDPD): Ditto.
1733         (IX86_BUILTIN_FMSUBSS): Ditto.
1734         (IX86_BUILTIN_FMSUBSD): Ditto.
1735         (IX86_BUILTIN_FMSUBPS): Ditto.
1736         (IX86_BUILTIN_FMSUBPD): Ditto.
1737         (IX86_BUILTIN_FNMADDSS): Ditto.
1738         (IX86_BUILTIN_FNMADDSD): Ditto.
1739         (IX86_BUILTIN_FNMADDPS): Ditto.
1740         (IX86_BUILTIN_FNMADDPD): Ditto.
1741         (IX86_BUILTIN_FNMSUBSS): Ditto.
1742         (IX86_BUILTIN_FNMSUBSD): Ditto.
1743         (IX86_BUILTIN_FNMSUBPS): Ditto.
1744         (IX86_BUILTIN_FNMSUBPD): Ditto.
1745         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
1746         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
1747         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
1748         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
1749         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
1750         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
1751         (IX86_BUILTIN_PPERM): Ditto.
1752         (IX86_BUILTIN_PERMPS): Ditto.
1753         (IX86_BUILTIN_PERMPD): Ditto.
1754         (IX86_BUILTIN_PMACSSWW): Ditto.
1755         (IX86_BUILTIN_PMACSWW): Ditto.
1756         (IX86_BUILTIN_PMACSSWD): Ditto.
1757         (IX86_BUILTIN_PMACSWD): Ditto.
1758         (IX86_BUILTIN_PMACSSDD): Ditto.
1759         (IX86_BUILTIN_PMACSDD): Ditto.
1760         (IX86_BUILTIN_PMACSSDQL): Ditto.
1761         (IX86_BUILTIN_PMACSSDQH): Ditto.
1762         (IX86_BUILTIN_PMACSDQL): Ditto.
1763         (IX86_BUILTIN_PMACSDQH): Ditto.
1764         (IX86_BUILTIN_PMADCSSWD): Ditto.
1765         (IX86_BUILTIN_PMADCSWD): Ditto.
1766         (IX86_BUILTIN_PHADDBW): Ditto.
1767         (IX86_BUILTIN_PHADDBD): Ditto.
1768         (IX86_BUILTIN_PHADDBQ): Ditto.
1769         (IX86_BUILTIN_PHADDWD): Ditto.
1770         (IX86_BUILTIN_PHADDWQ): Ditto.
1771         (IX86_BUILTIN_PHADDDQ): Ditto.
1772         (IX86_BUILTIN_PHADDUBW): Ditto.
1773         (IX86_BUILTIN_PHADDUBD): Ditto.
1774         (IX86_BUILTIN_PHADDUBQ): Ditto.
1775         (IX86_BUILTIN_PHADDUWD): Ditto.
1776         (IX86_BUILTIN_PHADDUWQ): Ditto.
1777         (IX86_BUILTIN_PHADDUDQ): Ditto.
1778         (IX86_BUILTIN_PHSUBBW): Ditto.
1779         (IX86_BUILTIN_PHSUBWD): Ditto.
1780         (IX86_BUILTIN_PHSUBDQ): Ditto.
1781         (IX86_BUILTIN_PROTB): Ditto.
1782         (IX86_BUILTIN_PROTW): Ditto.
1783         (IX86_BUILTIN_PROTD): Ditto.
1784         (IX86_BUILTIN_PROTQ): Ditto.
1785         (IX86_BUILTIN_PROTB_IMM): Ditto.
1786         (IX86_BUILTIN_PROTW_IMM): Ditto.
1787         (IX86_BUILTIN_PROTD_IMM): Ditto.
1788         (IX86_BUILTIN_PROTQ_IMM): Ditto.
1789         (IX86_BUILTIN_PSHLB): Ditto.
1790         (IX86_BUILTIN_PSHLW): Ditto.
1791         (IX86_BUILTIN_PSHLD): Ditto.
1792         (IX86_BUILTIN_PSHLQ): Ditto.
1793         (IX86_BUILTIN_PSHAB): Ditto.
1794         (IX86_BUILTIN_PSHAW): Ditto.
1795         (IX86_BUILTIN_PSHAD): Ditto.
1796         (IX86_BUILTIN_PSHAQ): Ditto.
1797         (IX86_BUILTIN_FRCZSS): Ditto.
1798         (IX86_BUILTIN_FRCZSD): Ditto.
1799         (IX86_BUILTIN_FRCZPS): Ditto.
1800         (IX86_BUILTIN_FRCZPD): Ditto.
1801         (IX86_BUILTIN_CVTPH2PS): Ditto.
1802         (IX86_BUILTIN_CVTPS2PH): Ditto.
1803         (IX86_BUILTIN_COMEQSS): Ditto.
1804         (IX86_BUILTIN_COMNESS): Ditto.
1805         (IX86_BUILTIN_COMLTSS): Ditto.
1806         (IX86_BUILTIN_COMLESS): Ditto.
1807         (IX86_BUILTIN_COMGTSS): Ditto.
1808         (IX86_BUILTIN_COMGESS): Ditto.
1809         (IX86_BUILTIN_COMUEQSS): Ditto.
1810         (IX86_BUILTIN_COMUNESS): Ditto.
1811         (IX86_BUILTIN_COMULTSS): Ditto.
1812         (IX86_BUILTIN_COMULESS): Ditto.
1813         (IX86_BUILTIN_COMUGTSS): Ditto.
1814         (IX86_BUILTIN_COMUGESS): Ditto.
1815         (IX86_BUILTIN_COMORDSS): Ditto.
1816         (IX86_BUILTIN_COMUNORDSS): Ditto.
1817         (IX86_BUILTIN_COMFALSESS): Ditto.
1818         (IX86_BUILTIN_COMTRUESS): Ditto.
1819         (IX86_BUILTIN_COMEQSD): Ditto.
1820         (IX86_BUILTIN_COMNESD): Ditto.
1821         (IX86_BUILTIN_COMLTSD): Ditto.
1822         (IX86_BUILTIN_COMLESD): Ditto.
1823         (IX86_BUILTIN_COMGTSD): Ditto.
1824         (IX86_BUILTIN_COMGESD): Ditto.
1825         (IX86_BUILTIN_COMUEQSD): Ditto.
1826         (IX86_BUILTIN_COMUNESD): Ditto.
1827         (IX86_BUILTIN_COMULTSD): Ditto.
1828         (IX86_BUILTIN_COMULESD): Ditto.
1829         (IX86_BUILTIN_COMUGTSD): Ditto.
1830         (IX86_BUILTIN_COMUGESD): Ditto.
1831         (IX86_BUILTIN_COMORDSD): Ditto.
1832         (IX86_BUILTIN_COMUNORDSD): Ditto.
1833         (IX86_BUILTIN_COMFALSESD): Ditto.
1834         (IX86_BUILTIN_COMTRUESD): Ditto.
1835         (IX86_BUILTIN_COMEQPS): Ditto.
1836         (IX86_BUILTIN_COMNEPS): Ditto.
1837         (IX86_BUILTIN_COMLTPS): Ditto.
1838         (IX86_BUILTIN_COMLEPS): Ditto.
1839         (IX86_BUILTIN_COMGTPS): Ditto.
1840         (IX86_BUILTIN_COMGEPS): Ditto.
1841         (IX86_BUILTIN_COMUEQPS): Ditto.
1842         (IX86_BUILTIN_COMUNEPS): Ditto.
1843         (IX86_BUILTIN_COMULTPS): Ditto.
1844         (IX86_BUILTIN_COMULEPS): Ditto.
1845         (IX86_BUILTIN_COMUGTPS): Ditto.
1846         (IX86_BUILTIN_COMUGEPS): Ditto.
1847         (IX86_BUILTIN_COMORDPS): Ditto.
1848         (IX86_BUILTIN_COMUNORDPS): Ditto.
1849         (IX86_BUILTIN_COMFALSEPS): Ditto.
1850         (IX86_BUILTIN_COMTRUEPS): Ditto.
1851         (IX86_BUILTIN_COMEQPD): Ditto.
1852         (IX86_BUILTIN_COMNEPD): Ditto.
1853         (IX86_BUILTIN_COMLTPD): Ditto.
1854         (IX86_BUILTIN_COMLEPD): Ditto.
1855         (IX86_BUILTIN_COMGTPD): Ditto.
1856         (IX86_BUILTIN_COMGEPD): Ditto.
1857         (IX86_BUILTIN_COMUEQPD): Ditto.
1858         (IX86_BUILTIN_COMUNEPD): Ditto.
1859         (IX86_BUILTIN_COMULTPD): Ditto.
1860         (IX86_BUILTIN_COMULEPD): Ditto.
1861         (IX86_BUILTIN_COMUGTPD): Ditto.
1862         (IX86_BUILTIN_COMUGEPD): Ditto.
1863         (IX86_BUILTIN_COMORDPD): Ditto.
1864         (IX86_BUILTIN_COMUNORDPD): Ditto.
1865         (IX86_BUILTIN_COMFALSEPD): Ditto.
1866         (IX86_BUILTIN_COMTRUEPD): Ditto.
1867         (IX86_BUILTIN_PCOMEQUB): Ditto.
1868         (IX86_BUILTIN_PCOMNEUB): Ditto.
1869         (IX86_BUILTIN_PCOMLTUB): Ditto.
1870         (IX86_BUILTIN_PCOMLEUB): Ditto.
1871         (IX86_BUILTIN_PCOMGTUB): Ditto.
1872         (IX86_BUILTIN_PCOMGEUB): Ditto.
1873         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
1874         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
1875         (IX86_BUILTIN_PCOMEQUW): Ditto.
1876         (IX86_BUILTIN_PCOMNEUW): Ditto.
1877         (IX86_BUILTIN_PCOMLTUW): Ditto.
1878         (IX86_BUILTIN_PCOMLEUW): Ditto.
1879         (IX86_BUILTIN_PCOMGTUW): Ditto.
1880         (IX86_BUILTIN_PCOMGEUW): Ditto.
1881         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
1882         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
1883         (IX86_BUILTIN_PCOMEQUD): Ditto.
1884         (IX86_BUILTIN_PCOMNEUD): Ditto.
1885         (IX86_BUILTIN_PCOMLTUD): Ditto.
1886         (IX86_BUILTIN_PCOMLEUD): Ditto.
1887         (IX86_BUILTIN_PCOMGTUD): Ditto.
1888         (IX86_BUILTIN_PCOMGEUD): Ditto.
1889         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
1890         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
1891         (IX86_BUILTIN_PCOMEQUQ): Ditto.
1892         (IX86_BUILTIN_PCOMNEUQ): Ditto.
1893         (IX86_BUILTIN_PCOMLTUQ): Ditto.
1894         (IX86_BUILTIN_PCOMLEUQ): Ditto.
1895         (IX86_BUILTIN_PCOMGTUQ): Ditto.
1896         (IX86_BUILTIN_PCOMGEUQ): Ditto.
1897         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
1898         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
1899         (IX86_BUILTIN_PCOMEQB): Ditto.
1900         (IX86_BUILTIN_PCOMNEB): Ditto.
1901         (IX86_BUILTIN_PCOMLTB): Ditto.
1902         (IX86_BUILTIN_PCOMLEB): Ditto.
1903         (IX86_BUILTIN_PCOMGTB): Ditto.
1904         (IX86_BUILTIN_PCOMGEB): Ditto.
1905         (IX86_BUILTIN_PCOMFALSEB): Ditto.
1906         (IX86_BUILTIN_PCOMTRUEB): Ditto.
1907         (IX86_BUILTIN_PCOMEQW): Ditto.
1908         (IX86_BUILTIN_PCOMNEW): Ditto.
1909         (IX86_BUILTIN_PCOMLTW): Ditto.
1910         (IX86_BUILTIN_PCOMLEW): Ditto.
1911         (IX86_BUILTIN_PCOMGTW): Ditto.
1912         (IX86_BUILTIN_PCOMGEW): Ditto.
1913         (IX86_BUILTIN_PCOMFALSEW): Ditto.
1914         (IX86_BUILTIN_PCOMTRUEW): Ditto.
1915         (IX86_BUILTIN_PCOMEQD): Ditto.
1916         (IX86_BUILTIN_PCOMNED): Ditto.
1917         (IX86_BUILTIN_PCOMLTD): Ditto.
1918         (IX86_BUILTIN_PCOMLED): Ditto.
1919         (IX86_BUILTIN_PCOMGTD): Ditto.
1920         (IX86_BUILTIN_PCOMGED): Ditto.
1921         (IX86_BUILTIN_PCOMFALSED): Ditto.
1922         (IX86_BUILTIN_PCOMTRUED): Ditto.
1923         (IX86_BUILTIN_PCOMEQQ): Ditto.
1924         (IX86_BUILTIN_PCOMNEQ): Ditto.
1925         (IX86_BUILTIN_PCOMLTQ): Ditto.
1926         (IX86_BUILTIN_PCOMLEQ): Ditto.
1927         (IX86_BUILTIN_PCOMGTQ): Ditto.
1928         (IX86_BUILTIN_PCOMGEQ): Ditto.
1929         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
1930         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
1931         (enum multi_arg_type): New enum for describing the various SSE5
1932         intrinsic argument types.
1933         (bdesc_multi_arg): New table for SSE5 intrinsics.
1934         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
1935         (ix86_expand_multi_arg_builtin): New function for creating SSE5
1936         intrinsics.
1937         (ix86_expand_builtin): Add SSE5 intrinsic support.
1938         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
1939         operand instructions.
1940         (ix86_expand_sse5_multiple_memory): New function to split the
1941         second memory reference from SSE5 instructions.
1942         (type_has_variadic_args_p): Delete in favor of stdarg_p.
1943         (ix86_return_pops_args): Use stdarg_p to determine if the function
1944         has variable arguments.
1945         (ix86_setup_incoming_varargs): Ditto.
1946         (x86_this_parameter): Ditto.
1948         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
1949         declaration.
1950         (ix86_expand_sse5_pack): Ditto.
1951         (ix86_sse5_valid_op_p): Ditto.
1952         (ix86_expand_sse5_multiple_memory): Ditto.
1954         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
1955         constant for SSE5 support.
1956         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
1957         (UNSPEC_SSE5_TRUEFALSE): Ditto.
1958         (UNSPEC_SSE5_PERMUTE): Ditto.
1959         (UNSPEC_SSE5_ASHIFT): Ditto.
1960         (UNSPEC_SSE5_LSHIFT): Ditto.
1961         (UNSPEC_FRCZ): Ditto.
1962         (UNSPEC_CVTPH2PS): Ditto.
1963         (UNSPEC_CVTPS2PH): Ditto.
1964         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
1965         (PCOM_TRUE): Ditto.
1966         (COM_FALSE_S): Ditto.
1967         (COM_FALSE_P): Ditto.
1968         (COM_TRUE_S): Ditto.
1969         (COM_TRUE_P): Ditto.
1970         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
1971         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
1972         types.
1973         (memory attribute): Ditto.
1974         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
1975         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
1976         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
1977         (floor<mode>2): Ditto.
1978         (ceil<mode>2): Ditto.
1979         (btrunc<mode>2): Ditto.
1980         (nearbyintdf2): Ditto.
1981         (nearbyintsf2): Ditto.
1982         (sse_setccsf): Disable if SSE5.
1983         (sse_setccdf): Ditto.
1984         (sse5_setcc<mode>): New support for SSE5 conditional move.
1985         (sse5_pcmov_<mode>): Ditto.
1987         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
1988         (SSEMODEF4): Ditto.
1989         (SSEMODEF2P): Ditto.
1990         (ssemodesuffixf4): New mode attribute for SSE5.
1991         (ssemodesuffixf2s): Ditto.
1992         (ssemodesuffixf2c): Ditto.
1993         (sserotatemax): Ditto.
1994         (ssescalarmode): Ditto.
1995         (sse_maskcmpv4sf3): Disable if SSE5.
1996         (sse_maskcmpv2df3): Ditto.
1997         (sse_vmmaskcmpv4sf3): Ditto.
1998         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
1999         (sse5_vmfmadd<mode>4): Ditto.
2000         (sse5_fmsub<mode>4): Ditto.
2001         (sse5_vmfmsub<mode>4): Ditto.
2002         (sse5_fnmadd<mode>4): Ditto.
2003         (sse5_vmfnmadd<mode>4): Ditto.
2004         (sse5_fnmsub<mode>4): Ditto.
2005         (sse5_vmfnmsub<mode>4): Ditto.
2006         (sse5i_fmadd<mode>4): Ditto.
2007         (sse5i_fmsub<mode>4): Ditto.
2008         (sse5i_fnmadd<mode>4): Ditto.
2009         (sse5i_fnmsub<mode>4): Ditto.
2010         (sse5i_vmfmadd<mode>4): Ditto.
2011         (sse5i_vmfmsub<mode>4): Ditto.
2012         (sse5i_vmfnmadd<mode>4): Ditto.
2013         (sse5i_vmfnmsub<mode>4): Ditto.
2014         (mulv16qi3): Add SSE5 support.
2015         (mulv4si3): Ditto.
2016         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
2017         (sse2_mulv4si3): Disable if SSE5.
2018         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
2019         (sse4_1_roundps): Ditto.
2020         (sse4_1_roundsd): Ditto.
2021         (sse4_1_roundss): Ditto.
2022         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
2023         be generated.
2024         (sse_maskcmpsf3): Ditto.
2025         (sse_vmmaskcmpv4sf3): Ditto.
2026         (sse2_maskcmpv2df3): Ditto.
2027         (sse2_maskcmpdf3): Ditto.
2028         (sse2_vmmaskcmpv2df3): Ditto.
2029         (sse2_eq<mode>3): Ditto.
2030         (sse2_gt<mode>3): Ditto.
2031         (sse5_pcmov_<mode>): Add SSE5 support.
2032         (vec_unpacku_hi_v16qi): Ditto.
2033         (vec_unpacks_hi_v16qi): Ditto.
2034         (vec_unpacku_lo_v16qi): Ditto.
2035         (vec_unpacks_lo_v16qi): Ditto.
2036         (vec_unpacku_hi_v8hi): Ditto.
2037         (vec_unpacks_hi_v8hi): Ditto.
2038         (vec_unpacku_lo_v8hi): Ditto.
2039         (vec_unpacks_lo_v8hi): Ditto.
2040         (vec_unpacku_hi_v4si): Ditto.
2041         (vec_unpacks_hi_v4si): Ditto.
2042         (vec_unpacku_lo_v4si): Ditto.
2043         (vec_unpacks_lo_v4si): Ditto.
2044         (sse5_pmacsww): New SSE5 intrinsic insn.
2045         (sse5_pmacssww): Ditto.
2046         (sse5_pmacsdd): Ditto.
2047         (sse5_pmacssdd): Ditto.
2048         (sse5_pmacssdql): Ditto.
2049         (sse5_pmacssdqh): Ditto.
2050         (sse5_pmacsdqh): Ditto.
2051         (sse5_pmacsswd): Ditto.
2052         (sse5_pmacswd): Ditto.
2053         (sse5_pmadcsswd): Ditto.
2054         (sse5_pmadcswd): Ditto.
2055         (sse5_pcmov_<move>): Conditional move support on SSE5.
2056         (sse5_phaddbw): New SSE5 intrinsic insn.
2057         (sse5_phaddbd): Ditto.
2058         (sse5_phaddbq): Ditto.
2059         (sse5_phaddwd): Ditto.
2060         (sse5_phaddwq): Ditto.
2061         (sse5_phadddq): Ditto.
2062         (sse5_phaddubw): Ditto.
2063         (sse5_phaddubd): Ditto.
2064         (sse5_phaddubq): Ditto.
2065         (sse5_phadduwd): Ditto.
2066         (sse5_phadduwq): Ditto.
2067         (sse5_phaddudq): Ditto.
2068         (sse5_phsubbw): Ditto.
2069         (sse5_phsubwd): Ditto.
2070         (sse5_phsubdq): Ditto.
2071         (sse5_pperm): Ditto.
2072         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
2073         (sse5_pperm_zero_v16qi_v8hi): Ditto.
2074         (sse5_pperm_sign_v8hi_v4si): Ditto.
2075         (sse5_pperm_zero_v8hi_v4si): Ditto.
2076         (sse5_pperm_sign_v4si_v2di): Ditto.
2077         (sse5_pperm_sign_v4si_v2di): Ditto.
2078         (sse5_pperm_pack_v2di_v4si): Ditto.
2079         (sse5_pperm_pack_v4si_v8hi): Ditto.
2080         (sse5_pperm_pack_v8hi_v16qi): Ditto.
2081         (sse5_perm<mode>): New SSE5 intrinsic insn.
2082         (rotl<mode>3): Ditto.
2083         (sse5_rotl<mode>3): Ditto.
2084         (sse5_ashl<mode>3): Ditto.
2085         (sse5_lshl<mode>3): Ditto.
2086         (sse5_frcz<mode>2): Ditto.
2087         (sse5s_frcz<mode>2): Ditto.
2088         (sse5_cvtph2ps): Ditto.
2089         (sse5_cvtps2ph): Ditto.
2090         (sse5_vmmaskcmp<mode>3): Ditto.
2091         (sse5_com_tf<mode>3): Ditto.
2092         (sse5_maskcmp<mode>3): Ditto.
2093         (sse5_maskcmp_uns<mode>3): Ditto.
2094         (sse5_maskcmp_uns2<mode>3): Ditto.
2095         (sse5_pcom_tf<mode>3): Ditto.
2097         * config/i386/predicates.md (sse5_comparison_float_operator):
2098         New predicate to match the comparison operators supported by
2099         the SSE5 com instruction.
2100         (ix86_comparison_int_operator): New predicate to match just the
2101         signed int comparisons.
2102         (ix86_comparison_uns_operator): New predicate to match just the
2103         unsigned int comparisons.
2105         * doc/invoke.texi (-msse5): Add documentation.
2106         (-mfused-madd): Ditto.
2108         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
2110         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
2111         mmintrin-common.h.
2112         (x86_64-*-*): Ditto.
2114         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
2116         * config/i386/bmmintrin.h: New file, provide common x86 compiler
2117         intrinisics for SSE5.
2119         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
2120         mmintrin-common.h.
2122         * config/i386/mmintrin-common.h: New file, to contain common
2123         instructions between SSE4.1 and SSE5.
2125         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
2126         FOREACH_FUNCTION_ARGS to iterate over the argument list.
2127         (gen_regparm_prefix): Ditto.
2129         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
2130         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
2131         prototype_p to determine if a function is prototyped.
2133 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
2135         * c-common.c (c_common_reswords) add the alignof keyword,
2136         with same RID as __alignof and __alignof__
2138 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
2140         * hooks.h (hook_bool_const_int_const_int_true): Declare.
2141         * hooks.c (hook_bool_const_int_const_int_true): New function.
2142         * target.h (struct gcc_target): Add can_eliminate field.
2143         * target-def.h (TARGET_CAN_ELIMINATE): Define.
2144         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
2145         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
2146         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
2147         (elim_table): Revise comment.
2148         * system.h (CAN_ELIMINATE): Poison.
2149         * defaults.h (CAN_ELIMINATE): Remove.
2150         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
2152         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
2153         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
2154         Define macro.
2155         (alpha_vms_can_eliminate): Declare as static, change return type to
2156         bool.
2157         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
2159         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
2160         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
2161         (arm_can_eliminate): New function.
2163         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
2164         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
2165         (avr_can_eliminate): Declare as static.
2166         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
2168         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
2169         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
2170         (bfin_can_eliminate): New function.
2172         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
2173         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
2174         (crx_can_eliminate): New function.
2176         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
2177         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
2178         (fr30_can_eliminate): New function.
2180         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
2181         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
2182         (frv_can_eliminate): New function.
2184         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
2185         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
2186         (h8300_can_eliminate): New function.
2188         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
2189         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
2190         (i386_can_eliminate): Declare as static, change return type to bool.
2191         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
2193         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
2194         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
2195         (ia64_can_eliminate): New function.
2197         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
2198         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
2199         (iq2000_can_eliminate): New function.
2201         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
2202         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
2203         (m32r_can_eliminate): New function.
2205         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
2206         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
2207         (m68hc11_can_eliminate): New function.
2209         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
2210         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
2211         (m68k_can_eliminate): New function.
2213         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
2214         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
2215         (mep_can_eliminate): New function.
2217         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
2218         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
2219         (mips_can_eliminate): New function.
2221         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
2222         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
2223         (rs6000_can_eliminate): New function.
2225         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
2226         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
2227         (s390_can_eliminate): Declare as static.
2228         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
2230         * config/score/score.h (CAN_ELIMINATE): Remove macro.
2231         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
2232         (score_can_eliminate): New function.
2234         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
2235         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
2236         (sparc_can_eliminate): Declare as static.
2237         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
2239         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
2240         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
2241         (xstormy16_can_eliminate): New function.
2243         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
2244         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
2245         (v850_can_eliminate): New function.
2247 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
2249         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
2250         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
2251         (*movdfcc_ext[1234]): Disable for IEEE mode.
2253 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
2255         * gimplify.c (prepare_gimple_addressable): New static function.
2256         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
2257         it addressable.
2258         (gimplify_addr_expr): Invoke it similarly on the operand instead of
2259         manually fiddling with it.
2261 2009-08-25  Michael Matz  <matz@suse.de>
2263         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
2264         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
2265         full expression.
2266         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
2267         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
2268         (do_jump): Split out code for simple binary comparisons into ...
2269         (do_jump_1): ... this, taking the individual operands and code.
2270         Change callers to helper function above accordingly.
2271         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
2272         comparisons.
2274 2009-08-25  Michael Matz  <matz@suse.de>
2276         * expr.h (struct separate_ops, sepops): New type for passing
2277         around an exploded simple expression.
2278         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
2279         Use this structure instead of expression tree.
2280         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
2281         expression, only its type.
2282         (expand_vec_cond_expr): Take type and individual operands instead
2283         of full expression.
2284         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
2285         expand_vec_shift_expr): Change prototype accordingly.
2286         * tree-vect-stmts.c (vectorizable_condition): Change call of
2287         expand_vec_cond_expr_p to pass only type.
2288         * expr.c (do_store_flags): Change prototype and implementation
2289         to take an exploded expression.
2290         (expand_expr_real_1): New local ops initialized with details
2291         of the full expression.  Use it instead of full
2292         expression in calls to do_store_flags, expand_vec_cond_expr,
2293         expand_widen_pattern_expr and expand_vec_shift_expr.
2295 2009-08-25  Michael Matz  <matz@suse.de>
2297         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
2298         treeop2 initialized with first three operands of the full expression.
2299         Substitute all TREE_OPERAND (exp, [012]) calls with them.
2301 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
2303         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
2304         (__gthread_objc_condition_allocate): Mark arguments as unused.
2305         (__gthread_objc_condition_deallocate): Likewise.
2306         (__gthread_objc_condition_wait): Likewise.
2307         (__gthread_objc_condition_broadcast): Likewise.
2308         (__gthread_objc_condition_signal): Likewise.
2309         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
2310         (__gthread_objc_thread_id): Likewise.
2312 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
2314         PR middle-end/41149
2315         * tree-pretty-print.c (print_call_name): Print the correct call name
2316         for procedure pointer components.
2318 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
2320         * config/ia64/ia64.c (ia64_promote_function_mode): Call
2321         default_promote_function_mode when not VMS.
2323 2009-08-24  Olivier Hainque  <hainque@adacore.com>
2325         * convert.c (convert_to_integer): Don't assume an input pointer is
2326         POINTER_SIZE wide.  Fetch from the type instead.
2328 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2330         * configure.ac (AC_PREREQ): Bump to 2.64.
2332 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
2334         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
2335         (process_command): Don't search standard_exec_prefix_1 and
2336         standard_exec_prefix_2.
2338 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2340         * config/arm/arm.c (output_return_instruction): Handle for
2341         unified syntax.
2343 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2345         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
2347 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2349         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
2350         (*arm_movdf_vfp): Likewise.
2352 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2354         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
2355         (vashr<mode>3): Rename from ashr<mode>3.
2356         (vlshr<mode>3): Rename from lshr<mode>3.
2358 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
2360         PR/40786
2361         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
2362         (check_format_info_main): Use scalar_identify_flag.
2363         (check_format_types): Check for scalar size identity if
2364         scalar_identify_flag is set.
2365         (printf_length_specs): Extend by new field.
2366         (asm_fprintf_length_specs): Likewise.
2367         (gcc_diag_length_specs): Likewise.
2368         (scanf_length_specs): Likewise.
2369         (strfmon_length_specs): Likewise.
2370         (gcc_gfc_length_specs): Likewise.
2371         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
2372         (ms_printf_flag_specs): Likewise.
2373         * c-format.h (format_length_info): Add new member scalar_identity_flag.
2375 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
2377         PR target/40718
2378         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
2379         (*call_value_pop_1): Ditto.
2380         (*sibcall_pop_1): New insn pattern.
2381         (*sibcall_value_pop_1): Ditto.
2383 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
2385         PR target/41081
2386         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
2387         ashrsi3_64): New.
2389 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
2391         PR target/41081
2392         * fwprop.c (try_fwprop_subst): Allow multiple sets.
2393         (get_reg_use_in): New function.
2394         (forward_propagate_subreg): Propagate through subreg of zero_extend
2395         or sign_extend.
2397 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2399         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
2400         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
2402 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2404         * configure.ac: Remove --with-datarootdir, --with-docdir,
2405         --with-htmldir switches.  No need to call AC_SUBST for
2406         datarootdir, docdir, htmldir any more.
2407         * configure: Regenerate.
2408         * doc/install.texi (Configuration): Document --datarootdir,
2409         --docdir, --htmldir, --pdfdir; update documentation for
2410         --infodir, --mandir.
2411         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
2412         M4 to 1.4.6.
2414         * aclocal.m4: Regenerate.
2415         * config.in: Regenerate.
2416         * configure: Regenerate.
2418 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
2419             Olivier Hainque  <hainque@adacore.com>
2421         * config/ia64/ia64.c: Include libfuncs.h.
2422         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
2423         (ia64_expand_call): Use reg 25 on VMS.
2424         (ia64_initialize_trampoline): Fix for VMS ABI.
2425         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
2426         (ia64_function_arg): Initialize reg 25 on VMS.
2427         Fix OpenVMS ABI issues for varargs.
2428         For OpenVMS, emit the Argument Information register set in the
2429         incoming/sibcall case as well.
2430         (ia64_arg_type): New function.
2431         (ia64_function_arg_advance): Keep track of cum->words.
2432         Fix OpenVMS ABI issues for varargs.
2433         (ia64_function_value): On VMS, promote mode of non-aggregate types.
2434         (ia64_override_options): Set flag_no_common on VMS.
2435         (ia64_init_builtins): Disable FWRITE builtin.
2436         (ia64_asm_output_external): Call DO_CRTL_NAMES.
2437         (ia64_vms_init_libfuncs): Add decc$ routines.
2438         (ia64_vms_valid_pointer_mode): New function.
2439         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
2440         (ia64_promote_function_mode): New function
2441         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
2442         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
2443         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
2444         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
2445         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2446         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
2447         Suppress trailing '#' if VALUE is numeric.
2448         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
2449         ia64_promote_function_mode.
2450         (TARGET_VALID_POINTER_MODE): Define.
2452 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2454         PR target/40671
2455         * config/rs6000/rs6000.c (rs6000_override_options): Use
2456         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
2458         PR target/41145
2459         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
2460         reporting of vector + decimal/boolean/complex error.
2462 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
2464         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
2465         __vector double TYPE_DECL.
2467 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
2469         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
2470         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
2471         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
2472         to pointer to enum machine_mode.  Update all callers as needed.
2474 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
2476         * config/alpha/alpha.md (exception_receiver): Emit alternative
2477         GP load sequence if flag_reorder_blocks_and_partition is set.
2478         (*exception_receiver_2): Also enable when
2479         flag_reorder_blocks_and_partition is set.
2481 2009-08-20  Matt Rice  <ratmice@gmail.com>
2482             Diego Novillo  <dnovillo@google.com>
2484         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
2485         tree-ssa-sccvn.h.
2487 2009-08-20  Richard Guenther  <rguenther@suse.de>
2489         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
2490         * c-tree.h (c_dup_lang_specific_decl): Remove.
2491         (struct lang_decl, struct lang_type): Move definitions ...
2492         * c-lang.h: ... here.  New file.
2493         * c-decl.c: Include c-lang.h.
2494         (c_dup_lang_specific_decl): Remove.
2495         * c-typeck.c: Include c-lang.h.
2496         * Makefile.in (c-decl.o): Add c-lang.h dependency.
2497         (c-typeck.o): Likewise.
2498         * c-config-lang.in (gtfiles): Add c-lang.h.
2499         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
2500         like c-tree.h.
2502 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
2504         * config/alpha/alpha.c (alpha_end_function): Do not clear
2505         crtl->emit structure and free insn locators if cfun->is_thunk is true,
2506         this is now handled in generic code.
2508 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
2510         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
2511         (s390_z10_fix_long_loop_prediction): New function.
2512         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
2513         (s390_reorg): Walk over the INSNs and invoke
2514         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
2516 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
2518         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
2519         "*brx_64bit", "*brx_31bit"): New patterns.
2520         * config/s390/s390.c ('E'): New output modifier.
2522 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2523             Richard Earnshaw  <richard.earnshaw@arm.com>
2525         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
2526         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
2528 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2530         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
2531         patterns.
2532         * pa.c (emit_move_sequence): Check if address of operand1 is valid
2533         for mode mode of operand0 when doing secondary reload for SAR.
2535 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
2537         PR middle-end/41123
2538         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
2539         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
2541 2009-08-19  Jason Merrill  <jason@redhat.com>
2543         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
2544         supported template depth in C++0x.
2546 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
2548         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
2549         free_after_compilation.
2550         * config/score/score7.c (score7_output_mi_thunk): Likewise.
2551         * config/score/score3.c (score3_output_mi_thunk): Likewise.
2552         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2553         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2554         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2555         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2556         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2558 2009-08-19  Ian Lance Taylor  <iant@google.com>
2560         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
2561         of (plus (mult (neg B) C) A).
2563 2009-08-18  Michael Matz  <matz@suse.de>
2565         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
2566         instead of comparing TYPE_MAIN_VARIANT for equality.
2567         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2568         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
2569         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
2570         * gimplify.c (goa_lhs_expr_p): Ditto and use
2571         STRIP_USELESS_TYPE_CONVERSION.
2573 2009-08-18  Michael Matz  <matz@suse.de>
2575         * tree-ssa-structalias.c (create_variable_info_for): Also mark
2576         first field in a struct.
2577         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
2579 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
2581         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
2582         locators before emit_insn is called.  Remove assert that
2583         cfun->is_thunk.
2584         (alpha_end_function): Clear crtl->emit structure and free insn
2585         locators if cfun->is_thunk is true.
2587 2009-08-18  Jason Merrill  <jason@redhat.com>
2589         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2590         type if available.
2591         * configure.ac: Test for it.
2592         * configure, config.in: Regenerate.
2593         * doc/install.texi: Document --enable-gnu-unique-object.
2595 2009-08-18  Richard Guenther  <rguenther@suse.de>
2597         PR middle-end/41094
2598         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
2599         pow(x,y*z) only if x is nonnegative.
2601 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
2603         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
2604         on jumps.
2606         PR target/40971
2607         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
2608         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
2610 2009-08-17  DJ Delorie  <dj@redhat.com>
2612         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
2613         * config/m32c/prologue.md (epilogue_freit): New.
2614         (fset_b): New.
2615         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
2616         (bank_switch_p): Likewise.
2617         (fast_interrupt_p): Likewise.
2618         (interrupt_p): Likewise.
2619         (m32c_conditional_register_usage): Round memregs size up.
2620         (need_to_save): We only need to save $a0 when we use ENTER.
2621         (interrupt_p): Check for fast_interrupt too.
2622         (bank_switch_p): New.
2623         (fast_interrupt_p): New.
2624         (m32c_attribute_table): Add bank_switch and fast_interrupt.
2625         (m32c_emit_prolog): Support bank switching and fast interrupts.
2626         * doc/extend.texi (Function Attributes): Add bank_switch and
2627         fast_interrupt.
2629 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
2631         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
2632         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
2634 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
2636         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
2637         (menu): Add IA-64/VMS Options.
2638         (IA-64/VMS Options): Likewise.
2640 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
2642         PR target/38599
2643         * config/mips/mips.md (*lwxs): Use :P for pointer values.
2645 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
2647         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
2648         (mips_pop_asm_switch): Likewise.
2649         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
2650         with...
2651         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2652         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
2653         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
2654         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
2655         instead of set_noreorder.
2656         (mips_output_function_prologue): Use the new functions.
2657         (mips_output_function_epilogue): Likewise.
2658         (mips_need_noat_wrapper_p): New function, split out from...
2659         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
2660         Use mips_push_asm_switch and mips_pop_asm_switch.
2661         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
2662         and mips_pop_asm_switch.
2663         (ASM_OUTPUT_REG_POP): Likewise.
2664         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
2665         Use mips_pop_asm_switch.
2666         (mips_asm_switch): New structure.
2667         (set_noreorder, set_nomacro): Replace with...
2668         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2669         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
2670         instead of set_nomacro.
2671         (fix_truncsfsi2_macro): Likewise.
2672         (cprestore): Likewise.
2673         (hazard): Use mips_noreorder instead of set_noreorder.
2674         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
2676 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
2678         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
2679         from prev_active_insn.
2681 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
2683         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
2684         * config/avr/avr.c (avr_override_options): Initialize
2685         avr_current_arch variable.
2686         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
2687         __AVR_HAVE_16BIT_SP__ according to the device type.
2688         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
2689         TARGET_TINY_STACK.
2690         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
2691         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
2693 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
2695         PR debug/37801
2696         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
2697         generating inlined subroutine die only. We shouldn't be
2698         called for anything else.
2699         (gen_block_die): Don't generate inline subroutine debug info for
2700         abstract blocks.
2702 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
2704         * graphite-poly.c (print_pbb): Print PBB index.
2706 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
2708         PR middle-end/40981
2709         * graphite-interchange.c (ppl_max_for_le): Moved...
2710         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2711         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
2712         ppl_Pointset_Powerset_C_Polyhedron_maximize.
2713         * graphite-ppl.h (ppl_max_for_le): Declared.
2715 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
2717         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
2718         supported on all platforms.
2719         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
2720         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
2721         * c-pragma.c: Likewise.
2722         * target-def.h (TARGET_INITIALIZER): Remove
2723         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2724         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2726 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
2728         * config/ia64/fde-vms.c: New file.
2729         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
2730         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
2731         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
2732         (uw_frame_state_for): Only register a personality routine if it is
2733         known to be compatible with our expectations.
2734         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
2735         Declare unw_table_entry stack variable and
2736         mod all calls to _Unwind_FindTableEntry to add arg.
2737         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
2738         (_Unwind_FindTableEntry): Add arg to prototype.
2740 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
2742         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
2743         field 'signal_pfs_loc'.
2744         (uw_frame_state_for): Remove duplicate code dealing with leaf
2745         procedures without unwind info.
2746         If in the frame after unwinding through a signal handler, restore
2747         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
2748         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
2749         'pfs_loc' to the AR.PFS location in the signal context; instead
2750         set 'signal_pfs_loc'.
2751         Manually generate the unwind info for the AR.PFS register.
2752         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
2753         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
2754         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
2755         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
2756         instead set 'signal_pfs_loc'.
2757         Remove code preventing the AR.PFS register from being restored
2758         from the signal context.
2760 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
2761             Tristan Gingold  <gingold@adacore.com>
2763         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
2764         * config/ia64/t-vms: New file.
2765         * config/ia64/vms64.h: New file.
2766         * config/ia64/vms.h: New file.
2767         * config/ia64/vms-crtinit.asm: New file.
2768         * config/ia64/vms_symvec_libgcc_s.opt: New file.
2769         * config/ia64/vms-unwind.h: New file.
2771 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
2773         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
2774         TFmode compares.
2776 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2778         PR middle-end/30789
2779         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
2780         Move declaration...
2781         * real.h (do_mpc_arg2): ... here.
2782         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
2783         and RDIV_EXPR.
2785 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
2787         * final.c (add_debug_prefix_map): Don't use GC memory for
2788         old_prefix and new_prefix.
2790 2009-08-14  Richard Guenther  <rguenther@suse.de>
2792         * ipa-prop.c (compute_complex_pass_through): If we cannot
2793         compute a non-varying offset for IPA_JF_ANCESTOR punt.
2795 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2797         * c-lex.c (c_lex_with_flags): Increase size of local variable
2798         to avoid memory clobber.
2800 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
2802         PR target/40934
2803         * config/i386/i386.c (ix86_fp_comparison_strategy):
2804         Only enable/disable sahf at function granularity.
2806 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
2808         PR rtl-optimization/41064
2809         * reload1.c (reload_as_needed): Don't call extract_insn
2810         for known invalid replacements after calling
2811         validate_replace_rtx_group and verify_changes.
2813 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
2815         PR target/41019
2816         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
2817         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
2818         ix86_expand_fp_vcond.
2819         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
2820         Assert that operation is supported by ix86_expand_int_vcond.
2821         (vcondu<SSEMODE124C8:mode>): Ditto.
2823 2009-08-13  DJ Delorie  <dj@redhat.com>
2825         * config/i386/djgpp-stdint.h: New.
2826         * config.gcc (djgpp): Use it.
2828 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2830         * config/sh/sh.c (sh_override_options): When flag_exceptions or
2831         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
2833 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2835         * tree-ssa-loop-prefetch.c
2836         (prune_ref_by_group_reuse): Enhance probabilistic analysis
2837         for long-stride pruning.
2838         (compute_miss_rate): New function to compute the probability
2839         that two memory references access different cache lines.
2841 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
2843         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
2845 2009-08-13  Richard Guenther  <rguenther@suse.de>
2847         PR middle-end/41047
2848         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
2849         use the constant pointer type.
2850         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
2851         of CV qualifiers on the target pointer type.
2852         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
2853         conversion check before restrict check.
2855 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2857         PR target/41029
2858         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
2860 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2862         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
2864 2009-08-12  Richard Guenther  <rguenther@suse.de>
2866         PR tree-optimization/41011
2867         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
2868         and reference constructing.
2870 2009-08-12  Xinliang David Li  <davidxl@google.com>
2872         PR tree-optimization/41012
2873         * tree-flow.h : New external interface.
2874         * gimple-low.c (check_call_arg): Change to public function.
2875         Remove argument mismatch check in lowering.
2876         * tree-inline.h (tree_can_inline_p): Interface change.
2877         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
2878         into this function.
2879         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
2880         Call change to tree_can_inline_p function.
2881         (cgraph_decide_inlining_incrementally): Ditto.
2883 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2885         PR tree-optimization/41031
2886         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
2887         on the partition variable rather than promote_mode on the source
2888         type.  Assert that the partition variable's type has the same
2889         mode as the source value's.
2891 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
2893         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
2894         for for_return == 2.
2895         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
2896         comments.
2897         * calls.c (expand_call): Fix typo.
2898         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
2899         and PARM_DECL.
2900         * stmt.c (expand_value_return): Use promote_function_mode to copy out
2901         of pseudo.
2902         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
2903         * config/cris/cris.c (cris_promote_function_mode): Likewise.
2904         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
2905         * config/pa/pa.c (pa_promote_function_mode): Likewise.
2907 2009-08-12  Andrew Haley  <aph@redhat.com>
2909         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
2911 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2913         PR bootstrap/40103
2914         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
2916 2009-08-12  Richard Guenther  <rguenther@suse.de>
2918         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
2919         * gimplify.c (gimplify_modify_expr): Do not use
2920         lang_hooks.types_compatible_p.
2921         * tree-ssa.c (useless_type_conversion_p): For aggregates
2922         just return false if the canonical types differ.
2924 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2926         PR middle-end/40980
2927         * sese.c (convert_for_phi_arg): New.
2928         (add_guard_exit_phis): Use convert_for_phi_arg.
2930 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2932         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
2933         unknown subscript upper bounds.
2935 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2936             Pranav Garg  <pranav.garg2107@gmail.com>
2938         * graphite-interchange.c (gather_access_strides): Removed.
2939         (ppl_max_for_le): New.
2940         (build_linearized_memory_access): New.
2941         (memory_stride_in_loop): New.
2942         (pbb_interchange_profitable_p): Reimplemented.
2943         * graphite-ppl.h (ppl_new_id_map): New.
2944         (ppl_interchange): New.
2946 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2948         * graphite-interchange.c (compute_subscript): Removed.
2949         (compute_array_size_cstr): Removed.
2950         (compute_array_size_poly): Removed.
2951         (compute_array_size): Removed.
2952         (gather_access_strides_poly): Removed.
2953         (gather_access_strides): Empty.
2955 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2957         * graphite-dependences.c (dependence_polyhedron_1): Replace
2958         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
2959         (graphite_legal_transform_dr): Same.
2960         (graphite_carried_dependence_level_k): Same.
2961         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
2962         Initialize PDR_NB_SUBSCRIPTS.
2963         (print_pdr_access_layout): Replace pdr_nb_subscripts with
2964         PDR_NB_SUBSCRIPTS.
2965         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
2966         (PDR_NB_SUBSCRIPTS): New.
2967         (pdr_nb_subscripts): Removed.
2968         (pdr_dim): Simplified.
2969         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
2970         with PDR_NB_SUBSCRIPTS.
2972 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
2974         * graphite-interchange.c (compute_array_size): Remove use of
2975         PDR_DATA_CONTAINER.
2976         * graphite-poly.c (new_poly_dr): Remove argument data_container.
2977         Do not initialize PDR_DATA_CONTAINER.
2978         (print_pdr): Do not print PDR_DATA_CONTAINER.
2979         * graphite-poly.h (struct poly_dr): Remove data_container field.
2980         (PDR_DATA_CONTAINER): Removed.
2981         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
2982         PDR_DATA_CONTAINER.
2983         (build_poly_dr): Same.
2985 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
2986             Sebastian Pop  <sebastian.pop@amd.com>
2988         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
2989         copy of the dependence polyhedron.  Free the temporary objects.
2990         (graphite_carried_dependence_level_k): Free unused objects before
2991         returning.
2993         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
2994         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
2995         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
2996         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
2997         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
2999 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3001         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3002         Early return without analyzing the data dependences if no
3003         transform has been done.  Call restore_scattering if the transform
3004         is not legal.
3005         (graphite-interchange.c): Same.
3006         * graphite-poly.c (print_scattering_function): Test for
3007         PBB_TRANSFORMED.
3008         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3009         (apply_poly_transforms): Do not gcc_assert that
3010         the transform is legal.
3011         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
3012         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3013         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3014         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3015         * graphite-poly.h (struct poly_scattering): New.
3016         (struct poly_bb): Add original, transformed, and saved fields.
3017         Remove transformed_scattering, original_scattering,
3018         nb_local_variables and nb_scattering_transform fields.
3019         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3020         (poly_scattering_new): New.
3021         (poly_scattering_free): New.
3022         (poly_scattering_copy): New.
3023         (store_scattering_pbb): New.
3024         (store_scattering): New.
3025         (restore_scattering_pbb): New.
3026         (restore_scattering): New.
3027         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3028         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3030 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3032         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3033         (print_scop): Same.
3035 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3037         * Makefile.in (graphite.o): Depends on PREDICT_H.
3038         * graphite.c: Include predict.h.
3039         (graphite_finalize): Call tree_estimate_probability.
3040         * predict.c (predict_loops): Do not call scev_initialize and
3041         scev_finalize.
3042         (tree_estimate_probability_bb): New.
3043         (tree_estimate_probability): Do not initialize loops: move that
3044         code to the driver.  Call tree_estimate_probability_bb.
3045         (tree_estimate_probability_driver): New.
3046         (pass_profile): Use tree_estimate_probability_driver.
3047         * predict.h (tree_estimate_probability): Declared.
3049 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3051         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3052         * graphite-dependences.c (graphite_legal_transform): Add time to
3053         TV_GRAPHITE_DATA_DEPS.
3054         (dependency_between_pbbs_p): Same.
3055         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3057 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
3059         PR rtl-optimization/41033
3060         * alias.c (nonoverlapping_component_refs_p): Punt when strict
3061         aliasing is disabled.
3063 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
3065         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
3066         si_mask_operand, and_load_operand, low_bitmask_operand,
3067         and_reg_operand, and_operand): New predicates.
3068         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
3069         * config/mips/mips.c (and_operands_ok): New function.
3070         * config/mips/mips-protos.h (and_operands_ok): Declare it.
3071         * config/mips/mips.md (move_type): Add ext_ins and logical.
3072         (type): Handle them.
3073         (and<mode>3): Use and_reg_operand as the second operand's predicate.
3074         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
3075         shift_shift.  Remove commutative constraint modifier.
3076         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
3077         shift_shift.
3078         (*clear_upper32_dext): Remove define_insn_and_split.
3079         (*clear_upper32): Turn this define_insn_and_split ...
3080         (splitter for ANDing register with 0xffff_ffff): .. into this.
3082 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
3084         * combine.c (try_widen_shift_mode): Factor out code to check if an
3085         integer constant is a low-order bitmask from here ...
3086         * rtlanal.c (low_bitmask_len): ... to here.
3087         * rtl.h (low_bitmask_len): Declare.
3089 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
3091         PR target/8603
3092         * config/alpha/alpha.md (addsi3): Remove expander.
3093         (addsi3): Rename from *addsi3_internal insn pattern.
3094         (subsi3): Remove expander.
3095         (subsi3): Rename from *subsi3_internal insn pattern.
3097 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
3099         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
3100         FWRITE_UNLOCKED.
3102 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
3103             Eric Botcazou  <botcazou@adacore.com>
3104             Douglas B Rupp  <rupp@gnat.com>
3106         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
3107         that records that fit in 64 bits are returned by immediate value,
3108         as required by OpenVMS Calling Standard.
3109         (function_value): Adjust for above modification.
3110         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
3111         virtual_incoming_args_rtx as base object, not next_arg.
3112         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3114 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3116         * reload.c (find_reloads_subreg_address): Check the original
3117         req_equiv_mem address to detect the case where an address is
3118         not valid in the outer mode.
3120 2009-08-11  Richard Guenther  <rguenther@suse.de>
3122         PR bootstrap/40788
3123         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
3125 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
3127         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
3128         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
3130 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
3131             Douglas B Rupp  <rupp@gnat.com>
3133         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
3134         PT_STACK when frame_pointer_needed on OpenVMS.
3135         (alpha_pv_save_size, alpha_using_fp): Remove.
3136         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
3137         with proper processing for PT_NULL.
3138         (alpha_vms_initial_elimination_offset): New function. Support for
3139         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
3140         (alpha_sa_size): Force procedure type to PT_STACK when
3141         frame_pointer_needed on OpenVMS.
3142         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
3143         (alpha_using_fp): Likewise.
3144         (alpha_vms_can_eliminate): Add prototype.
3145         (alpha_vms_initial_elimination_offset): Likewise.
3146         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
3147         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
3149 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
3150             Douglas B Rupp  <rupp@gnat.com>
3152         * config/alpha/alpha.c (common_object_handler): New function.
3153         (vms_attribute_table): Declare a single attribute "common_object".
3154         (vms_output_aligned_decl_common): New global function.
3155         (SECTION_VMS_OVERLAY): Delete.
3156         (SECTION_VMS_GLOBAL): Likewise.
3157         (SECTION_VMS_INITIALIZE): Likewise.
3158         (vms_asm_named_section): Remove support for above flags.
3159         (vms_section_type_flags): Delete.
3160         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3161         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
3162         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3163         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
3165 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3167         PR target/41015
3168         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
3169         (sub_ddmmss): Likewise.
3171 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
3173         PR bootstrap/41018
3174         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
3175         year.
3177 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3179         PR target/37053
3180         * reload1.c (reload_as_needed): Use cancel_changes to completely
3181         undo a failed replacement attempt.
3183 2009-08-10  Richard Guenther  <rguenther@suse.de>
3185         PR middle-end/41006
3186         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
3187         (useless_type_conversion_p): ... here.  Require pointer targets
3188         to be compatible.
3190 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
3192         PR c++/40866
3193         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
3194         loose the original type of the statement list.
3196 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3198         * config/alpha/alpha.c: Include libfuncs.h
3199         (avms_asm_output_extern): New function.
3200         (alpha_init_libfuncs): Init some decc libfuncs.
3201         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
3202         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
3203         (DO_CRTL_NAMES): Define.
3204         (LIB_SPEC): Remove.
3205         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
3206         (LONG_TYPE_SIZE): Define.
3207         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
3208         (SUBTARGET_SWITCHES): Define malloc64 switch.
3209         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
3210         (MASK_RETURN_ADDR): Define.
3211         doc/invoke.texi (mmalloc64): Document switch.
3213 2009-08-09  Olivier Hainque  <hainque@adacore.com>
3214             Douglas B Rupp  <rupp@gnat.com>
3216         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
3217         uses_condition_handler.
3218         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
3219         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
3220         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
3221         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
3222         (code_for_builtin): New insn codes for the new alpha_builtins.
3223         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
3224         (alpha_sa_size): Account for uses_condition_handler.
3225         (alpha_expand_prologue): Likewise.
3226         (alpha_start_function): Likewise.
3227         (alpha_expand_epilogue): Likewise.
3228         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
3229         establish/revert expanders.
3230         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
3231         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
3232         New expander, resorting to the alpha.c associated function.
3233         (builtin_revert_vms_condition_handler): Likewise.
3234         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
3235         __gcc_shell_handler, the static VMS condition handler used as
3236         an indirection wrapper to the current dynamically established
3237         handler.
3238         * config/alpha/vms-unwind.h: Complete rewrite.
3239         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
3240         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
3242 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
3243             Douglas B Rupp  <rupp@gnat.com>
3245         * config/alpha/alpha.c (alpha_links): Add 'target' field.
3246         (alpha_need_linkage): Handle aliases.  Return function symbol.
3247         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
3248         Use ultimate alias target for the linkage name.
3249         * config/alpha/alpha.md (movmemdi): Use the symbol returned
3250         by alpha_need_linkage for the function symbol.
3251         (setmemdi): Likewise.
3253 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3255         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
3256         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
3257         (ASM_WEAKEN_LABEL): Define.
3258         (CRT_CALL_STATIC_FUNCTION): Define.
3259         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
3260         (ENDFILE_SPEC): Define.
3261         (INIT_SECTION_ASM_OP): Define.
3262         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
3263         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
3264         crtend.o crtendS.o.
3265         (MULTILIB_OSDIRNAMES): Define.
3266         (shlib_version): Define.
3267         (SHLIB_EXT): Define.
3268         (SHLIB_OBJS): Define.
3269         (SHLIB_NAME): Define.
3270         (SHLIB_MULTILIB): Define.
3271         (SHLIB_INSTALL): Define.
3272         (SHLIB_SYMVEC): Define.
3273         (SHLIB_SYMVECX2): Define.
3274         (SHLIB_LINK): Define.
3276 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3278         * config/alpha/alpha.c (alpha_initialize_trampoline):
3279         Initialize VMS trampoline IAW ABI for bounded procedure calls.
3280         (alpha_start_function): Emit transfer address on nested functions
3281         for VMS trampoline call.
3282         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
3283         since no longer used.
3284         * config/alpha/vms-tramp.asm: Remove.
3285         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
3286         since now only data initialized at runtime.
3288 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3290         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
3291         (LINK_GCC_C_SEQUENCE_SPEC): Define.
3292         (MD_EXEC_PREFIX): Remove, no longer used.
3293         (MD_STARTFILE_PREFIX): Likewise.
3294         (INCLUDE_DEFAULTS): Likewise.
3295         * config/alpha/t-vms:
3296         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
3298 2009-08-09  Richard Guenther  <rguenther@suse.de>
3300         PR tree-optimization/41016
3301         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
3302         (operand_precision): Remove.
3303         (integral_operand_p): Likewise.
3304         (recognize_single_bit_test): Adjust.
3306 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
3308         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
3309         operation overflows.  Likewise non-cast unary arithmetic.
3310         If one arm of a conditional expression is always taken,
3311         inhibit evaluation warnings for the other arm.  Likewise inhibit
3312         evaluation warnings for the second && or || operand if the first
3313         operand is enough to determine the result.
3314         * c-typeck.c (build_conditional_expr): Apply the same inhibition
3315         rules here.
3316         (build_binary_op): Prevent duplicate evaluation warnings.
3318 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
3320         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
3321         and destination have different modes, Use promote_mode to
3322         determine the signedness of the conversion.  Assert that the
3323         promoted source mode matches the destination mode.  Don't pass
3324         the destination and destination mode to expand_expr if the source
3325         mode is different.  Simplify conversion logic.
3327 2009-08-09  Ira Rosen  <irar@il.ibm.com>
3329         PR tree-optimization/41008
3330         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
3331         from condition only in case it's a comparison. Adjust checks.
3333 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
3335         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
3336         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
3337         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
3338         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
3339         (dump_cand): Handle them.
3340         (struct iv_cand): New members COST_STEP and AINC_USE.
3341         (stmt_after_increment): Likewise.
3342         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
3343         callers changed.  Use gimple_uid comparison instead of scanning.
3344         (add_candidate_1): When looking for identical candidates, take
3345         AINC_USE into account.  Set it for new candidates.
3346         (force_expr_to_var_cost): Cast target_spill_cost to int.
3347         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
3348         All callers changed.  Check for availability of autoinc addressing
3349         modes, both in general for a given mode, and in the specific use case.
3350         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
3351         changed.
3352         (get_computation_cost): Likewise.
3353         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
3354         add_autoinc_candidates): New static functions.
3355         (add_candidate): Call add_autoinc_candidates for candidates based on
3356         a USE_ADDRESS use.
3357         (find_iv_candidates): Call set_autoinc_for_original_candidates.
3358         (determine_use_iv_cost_address): If we have an autoinc candidate at
3359         the matching use, verify autoinc is possible and subtract the cost
3360         of the candidate's step from the cost.
3361         (determine_iv_cost): Record the cost of the increment in the COST_STEP
3362         member of the candidate.
3363         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
3364         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
3366 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3368         * config.build (ia64-hp-*vms*): New target.
3369         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3370         with ia64-hp-*vms*.
3371         * config.gcc (ia64-hp-*vms*): New target.
3372         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3373         with ia64-hp-*vms*.
3374         * config.host (ia64-hp-*vms*): New target.
3375         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3376         with ia64-hp-*vms*.
3378 2009-08-08  Richard Guenther  <rguenther@suse.de>
3380         PR tree-optimization/40991
3381         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
3383 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
3385         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
3386         mode check.  Do truncations in an integer mode.
3387         (force_to_mode): Handle subregs for all mode types.  Only do
3388         arithmetic simplifications on integer modes.
3390 2009-08-07  Richard Guenther  <rguenther@suse.de>
3392         PR tree-optimization/40999
3393         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
3394         (maybe_fold_reference): Lookup constant initializers.
3395         (fold_gimple_assign): Likewise.
3397 2009-08-07  Richard Guenther  <rguenther@suse.de>
3399         * tree-ssa.c (useless_type_conversion_p_1): Only for types
3400         that require structural equality defer to the langhook.
3402 2009-08-07  Martin Jambor  <mjambor@suse.cz>
3404         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
3405         comments.
3406         (struct ipa_pass_through_data): New type.
3407         (struct ipa_ancestor_jf_data): New type.
3408         (union jump_func_value): Removed field formal_id, added fields
3409         pass_through and ancestor.
3410         (struct ipa_param_call_note): Changed type of formal_id to int from
3411         unsigned.
3412         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
3413         operations jump functions and ancestor jump functions.
3414         (compute_complex_pass_through): New function.
3415         (compute_scalar_jump_functions): Call compute_complex_pass_through,
3416         reflect changes in the jump function strucutre.
3417         (update_jump_functions_after_inlining): Ignore complex pass-through
3418         and ancestor jump functions.
3419         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
3420         polynomial pass-through with operation jump functions.
3422 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
3424         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
3425         fde->dw_fde_begin as begin label instead of hot/cold label.
3426         Use LLSDAC label instead of LLSDA for second section lsda.
3427         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
3428         label instead of LLSDA if it is true.
3429         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
3430         callers.
3431         * except.c (add_call_site, dw2_size_of_call_site_table): Add
3432         SECTION argument.  Use it as index into crtl->eh.call_site_record
3433         array.
3434         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
3435         use it to determine how to print table entries instead of using
3436         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
3437         label instead of normal begin label as base.
3438         (sjlj_assign_call_site_values): Adjust add_call_site caller.
3439         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
3440         ensure no EH range spans between sections and that landing pads
3441         are always in the corresponding section.
3442         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
3443         for crtl->eh.call_site_record being an array rather than scalar.
3444         (output_one_function_exception_table): New function, copied
3445         from output_function_exception_table.  Adjust
3446         dw2_size_of_call_site_table, dw2_output_call_site_table
3447         callers.  For SECOND section use *C suffixed labels.
3448         (output_function_exception_table): Call
3449         output_one_function_exception_table and, when doing hot/cold
3450         partitioning, also another time for the second section.
3451         * opts.c: Include except.h.
3452         (decode_options): Allow -freorder-blocks-and-partition with
3453         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
3454         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
3455         * function.h (struct rtl_eh): Change call_site_record from
3456         scalar into array of 2 elements.
3458 2009-08-07  Martin Jambor  <mjambor@suse.cz>
3460         * ipa-prop.c (count_formal_params_1): New function.
3461         (ipa_get_vector_of_formal_parms): New function.
3462         (get_vector_of_formal_parm_types): New function.
3463         (ipa_modify_formal_parameters): New function.
3464         (ipa_modify_call_arguments): New function.
3465         (index_in_adjustments_multiple_times_p): New function.
3466         (ipa_combine_adjustments): New function.
3467         (ipa_dump_param_adjustments): New function.
3468         * ipa-prop.h (struct ipa_parm_adjustment): New type.
3469         (ipa_get_vector_of_formal_parms): Declare.
3470         (ipa_modify_formal_parameters): Declare.
3471         (ipa_modify_call_arguments): Declare.
3472         (ipa_combine_adjustments): Declare.
3473         (ipa_dump_param_adjustments): Declare.
3474         (build_ref_for_offset): Declare.
3475         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
3476         * tree-sra.c: Include ipa-prop.c.
3477         (build_ref_for_offset): Make public.
3479 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
3481         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
3483 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
3485         * gcc/doc/extend.texi (__builtin_extract_return_address)
3486         (__builtin_frob_return_address): Document.
3488 2009-08-06  Paul Brook  <paul@codesourcery.com>
3490         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
3491         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
3492         implementation on ARMv6-M.
3494 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3496         * doc/extend.texi (pcs): Document new attribute for ARM.
3498 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3500         * arm.c (pcs_attribute_args): Comment out unsupported attribute
3501         variants.
3503 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3505         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
3506         warning ().
3508 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3510         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
3512 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3514         Merge ARM/hard_vfp_branch to trunk.
3516         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
3518         * arm.c (libcall_eq): New function.
3519         (libcall_hash): New function.
3520         (add_libcall): New function.
3521         (arm_libcall_uses_aapcs_base): New function.
3522         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
3523         libcalls using the base PCS.
3524         (arm_init_cumulative_args): Likewise.
3526         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
3528         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
3529         Use base ABI for conversion libfuncs between HFmode and SFmode.
3531         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3533         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
3534         V4SImode as representatives of all 64-bit and 128-bit vector
3535         types.  Allow vector types without vector modes.
3536         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
3537         without vector modes like BLKmode.
3538         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
3539         BLKmode.  Avoid unsupported vector modes or TImode moves for
3540         non-TARGET_NEON.
3541         (aapcs_vfp_allocate_return_reg): Likewise.
3542         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
3543         V8QImode if TARGET_NEON || TARGET_IWMMXT.
3545         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3547         * config/arm/arm.c (arm_handle_pcs_attribute): New.
3548         (arm_get_pcs_model): Pass attribute arguments to
3549         arm_pcs_from_attribute.
3550         (arm_init_cumulative_args): Use base AAPCS for conversions from
3551         floating-point types to DImode.
3552         (arm_attribute_table): Add pcs attribute.
3553         (arm_handle_pcs_attribute): New.
3554         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
3555         conversions from floating-point types to DImode, also declare them
3556         to use base AAPCS and declare functions they call to use base
3557         AAPCS and their RTABI names.
3559         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3561         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
3562         -mfloat-abi=hard not being supported for VFP.
3564         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
3566         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
3567         SYMBOL_REF to hard_libcall_value.
3569         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
3570             Richard Earnshaw  <rearnsha@arm.com>
3572         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
3573         has been put on the stack, all remaining co-processory arguments for
3574         that co-processor also go on the stack.
3576         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
3578         * config/arm/arm.c (arm_return_in_memory): Handle returning
3579         vectors of suitable size in registers also for AAPCS case.
3581         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
3583         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
3585         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
3587         ARM Hard-VFP calling convention
3588         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
3589         * target.h (gcc_target): Add libcall_value to table of call hooks.
3590         * targhooks.h (default_libcall_value): Default implementation.
3591         * targhooks.c (default_libcall_value): Likewise.
3592         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
3593         * optabs.c (expand_unop): Use it.
3594         * expr.h (hard_libcall_value): Pass the function RTX through.
3595         * calls.c (emit_library_call_value_1): Update call to
3596         hard_libcall_value.
3597         * explow.c (hard_libcall_value): Use new target hook.
3598         * testsuite/lib/target-supports.exp
3599         (check_effective_target_arm_hard_vfp_ok): New hook.
3600         (check_effective_target_arm_neon_ok): Improve test for neon
3601         availability.
3602         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
3603         * config/arm/arm.c: Include cgraph.h
3604         (TARGET_FUNCTION_VALUE): Override default hook.
3605         (arm_pcs_default): New variable.
3606         (arm_override_options): Don't fault hard calling convention with VFP.
3607         Add support for AAPCS variants.
3608         (arm_function_value): Make static.  Handle AAPCS variants.
3609         (arm_libcall_value): New function.
3610         (arm_apply_result_size): Handle VFP registers in results.
3611         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
3612         conventions.
3613         (pcs_attribute_args): New variable.
3614         (arm_pcs_from_attribute): New function.
3615         (arm_get_pcs_model): New function.
3616         (aapcs_vfp_cum_init): New function.
3617         (aapcs_vfp_sub_candidate): New function.
3618         (aapcs_vfp_is_return_candidate): New function.
3619         (aapcs_vfp_is_call_candidate): New function.
3620         (aapcs_vfp_allocate): New function.
3621         (aapcs_vfp_allocate_return_reg): New function.
3622         (aapcs_vfp_advance): New function.
3623         (aapcs_cp_arg_layout): New variable.
3624         (aapcs_select_call_coproc): New function.
3625         (aapcs_select_return_coproc): New function.
3626         (aapcs_allocate_return_reg): New function.
3627         (aapcs_libcall_value): New function.
3628         (aapcs_layout_arg): New function.
3629         (arm_init_cumulative_args): Initialize AAPCS args data.
3630         (arm_function_arg): Handle AAPCS variants using new interface.
3631         (arm_arg_parital_bytes): Likewise.
3632         (arm_function_arg_advance): New function.
3633         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
3634         calling conventions.
3635         (arm_setup_incoming_varargs): Handle new AAPCS args data.
3636         * arm.h (NUM_VFP_ARG_REGS): Define.
3637         (LIBCALL_VALUE): Update.
3638         (FUNCTION_VALUE): Delete.
3639         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
3640         (arm_pcs): New enum.
3641         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
3642         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
3643         (FUNCTION_ARG_REGNO_P): Add VFP regs.
3644         * arm-protos.h (arm_function_arg_advance): Add.
3645         (aapcs_libcall_value): Add.
3646         (arm_function_value): Delete.
3648 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
3649             H.J. Lu  <hongjiu.lu@intel.com>
3651         PR target/40957
3652         * config/i386/i386.c (standard_sse_mode_p): Remove.
3653         (standard_sse_constant_p): Return 2 for integer mode
3654         vector_all_ones_operand when SSE2 is enabled.
3655         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
3656         (ix86_expand_vector_move): Do not check for negative values from
3657         standard_sse_constant_p.
3659 2009-08-06  Richard Guenther  <rguenther@suse.de>
3661         * tree-ssa.c (useless_type_conversion_p_1): Make function and
3662         array type comparisons frontend independent.
3663         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
3664         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
3665         out array reference lower bound and element size operands.
3666         (ao_ref_init_from_vn_reference): Properly compute the offset
3667         for ARRAY_RANGE_REF.
3668         (vn_reference_fold_indirect): Fill out array reference lower
3669         bound and element size operands.
3670         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
3671         a non gimple valued reference operand which can happen for
3672         array reference lower bound or element size.
3673         (create_component_ref_by_pieces_1): Properly generate the
3674         element size operand for array references.
3676 2009-08-06  Richard Guenther  <rguenther@suse.de>
3678         PR tree-optimization/40964
3679         * tree.c (iterative_hash_host_wide_int): Export.
3680         * tree.h (iterative_hash_host_wide_int): Declare.
3681         * tree-ssa-structalias.c (heapvar_map): New struct.
3682         (heapvar_map_eq): New function.
3683         (heapvar_map_hash): Likewise.
3684         (heapvar_lookup): Adjust.
3685         (heapvar_insert): Likewise.
3686         (make_constraint_from_heapvar): Allow multiple heap variables
3687         per decl at different offsets.
3688         (init_alias_heapvars): Adjust.
3690 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
3692         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
3693         * mips_output_sync_loop (mips_output_sync_loop): Only emit
3694         trailing sync if TARGET_SYNC_AFTER_SC.
3696 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
3698         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
3699         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
3700         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
3701         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
3702         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3703         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3704         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3705         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
3706         test_and_set_12): Rewrite calls to mips_output_sync_loop.
3707         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
3708         the prototype declaration match the definition.
3709         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
3710         instructions explicitly.  Add barrier_before and operands
3711         parameters.
3712         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
3713         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
3714         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
3715         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3716         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
3717         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
3719 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
3721         * tree-ssa-alias.c: Fix intervals to use [) syntax.
3723 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
3724             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
3726         PR target/40906
3727         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
3728         source operand.
3730 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
3732         PR rtl-optimization/40924
3733         * dse.c (canon_address): Before calling cselib_expand_value_rtx
3734         make sure canon_rtx (mem_address) isn't simpler than
3735         canon_rtx (expanded_mem_address).
3737 2009-08-05  Li Feng  <nemokingdom@gmail.com>
3739         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
3740         for each poly_bb_p.
3741         (build_scop_drs): Build alias set for each SCoP.
3743 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
3745         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
3746         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
3747         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
3748         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3749         (BASE_DRIVER_SELF_SPECS): Likewise.
3751 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
3753         * tree-ssa-alias.c: Fix some comment typos.
3755 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3757         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
3758         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
3760 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
3762         PR c/39902
3763         * simplify-rtx.c (simplify_binary_operation_1): Disable
3764         simplifications for decimal float operations.
3766 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
3768         PR middle-end/40943
3769         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
3770         operand of INDIRECT_REF.
3772 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
3774         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
3775         constants referencing TLS symbols.
3777 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3779         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
3780         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
3782 2009-08-03  Richard Guenther  <rguenther@suse.de>
3784         * tree.c (make_vector_type): Build a main variant first,
3785         get the canonical one and then build the variant.
3786         * tree-ssa.c (useless_type_conversion_p_1): Handle
3787         fixed-point types.
3788         (useless_type_conversion_p): Conversions to pointers to
3789         incomplete record types are useless.
3791 2009-08-03  Richard Guenther  <rguenther@suse.de>
3793         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
3794         file will be created.
3795         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
3796         * toplev.c (compile_file): Adjust comment.
3798 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3800         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
3801         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
3802         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3803         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
3804         (sh_promote_function_mode): Fix typo.
3806 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
3808         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
3810 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3812         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
3813         declaration arguments.
3815 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
3817         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
3818         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
3819         (ix86_split_ashl): Ditto.
3820         (ix86_expand_vector_init_one_nonzero): Ditto.
3821         (ix86_expand_vector_set): Ditto.
3822         (ix86_expand_reduc_v4sf): Ditto.
3824 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
3826         * explow.c (promote_function_mode): Remove assert.
3827         * config/sh/sh.c (sh_promote_function_mode): Declare.
3829 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3831         * config/pa/pa.c (pa_promote_function_mode): Declare.
3832         Change to static.  Fix promote_mode call.
3834         * gthr-dce.h (CONST_CAST2): Define if not defined.
3835         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
3837         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
3839 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
3841         * expr.c (store_constructor): Use promote_decl_mode.  Remove
3842         now write-only variable unsignedp.
3843         (expand_expr_real_1): Use promote_decl_mode.
3844         * expr.h (promote_function_mode, promote_decl_mode): New.
3845         (promote_mode): Remove last argument.
3846         * function.c (assign_temp): Drop last argument of promote_mode.
3847         (assign_parm_find_data_types): Use promote_function_mode.
3848         (assign_parm_setup_reg): Likewise.
3849         (expand_function_end): Use promote_function_mode.
3850         * calls.c (initialize_argument_information): Use promote_function_mode.
3851         (precompute_arguments): Use promote_mode instead of checking if
3852         only PROMOTE_FUNCTION_MODE is defined.
3853         (expand_call): When making sibcall decisions, use promote_function_mode.
3854         Below, remove an if for targetm.calls.promote_function_return and
3855         and use promote_function_mode.
3856         (emit_library_call_value_1): Use promote_function_mode, fix bug
3857         where promote_mode was passed FOR_CALL == 0 for a return value in an
3858         assertion.
3859         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
3860         * explow.c (promote_function_mode, promote_decl_mode): New.
3861         (promote_mode): Keep only the FOR_CALL == 0 case.
3862         * combine.c (setup_incoming_promotion): Remove test of
3863         promote_function_args.  Use promote_function_mode.
3864         * stmt.c (expand_value_return): Use promote_decl_mode.
3865         (expand_decl): Use promote_decl_mode.
3867         * expr.c (store_constructor): Use promote_decl_mode.  Remove
3868         now write-only variable unsignedp.
3869         (expand_expr_real_1): Use promote_decl_mode.
3870         * expr.h (promote_function_mode, promote_decl_mode): New.
3871         (promote_mode): Remove last argument.
3872         * function.c (assign_temp): Drop last argument of promote_mode.
3873         (assign_parm_find_data_types): Use promote_function_mode.
3874         (assign_parm_setup_reg): Likewise.
3875         (expand_function_end): Use promote_function_mode.
3876         * calls.c (initialize_argument_information): Use promote_function_mode.
3877         (precompute_arguments): Use promote_mode instead of checking if
3878         only PROMOTE_FUNCTION_MODE is defined.
3879         (expand_call): When making sibcall decisions, use promote_function_mode.
3880         Below, remove an if for targetm.calls.promote_function_return and
3881         and use promote_function_mode.
3882         (emit_library_call_value_1): Use promote_function_mode, fix bug
3883         where promote_mode was passed FOR_CALL == 0 for a return value in an
3884         assertion.
3885         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
3886         * explow.c (promote_function_mode, promote_decl_mode): New.
3887         (promote_mode): Keep only the FOR_CALL == 0 case.
3888         * combine.c (setup_incoming_promotion): Remove test of
3889         promote_function_args.  Use promote_function_mode.
3890         * stmt.c (expand_value_return): Use promote_decl_mode.
3891         (expand_decl): Use promote_decl_mode.
3893         * explow.c (promote_function_mode): Just call the target hook.
3894         * targhooks.c (default_promote_function_mode,
3895         default_promote_function_mode_always_promote): New.
3896         * targhooks.h (default_promote_function_mode,
3897         default_promote_function_mode_always_promote): Declare.
3898         * target.h (promote_function_args, promote_function_return): Remove.
3899         (promote_function_mode): New.
3900         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
3901         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3902         (TARGET_PROMOTE_FUNCTION_MODE): New.
3903         (TARGET_CALLS): Adjust.
3904         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
3905         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
3907         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
3908         * config/s390/s390.c (s390_promote_function_mode): ... here,
3909         with pointer handling.
3910         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3911         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3913         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
3914         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
3915         with pointer handling.
3916         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3917         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3919         * config/sh/sh-protos.h (sh_promote_function_mode): New.
3920         * config/sh/sh.c (sh_promote_function_mode): New.
3921         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3922         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3924         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
3925         * config/cris/cris.c (cris_promote_function_mode): ... here.
3926         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3927         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
3929         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
3930         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
3931         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3932         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
3934         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
3935         * config/arm/arm.c (arm_promote_function_mode): ... here, without
3936         complex type handling.
3937         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3938         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3940         * config/pa/pa.c (pa_promote_function_mode): New.
3941         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3942         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3944         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
3945         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
3946         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
3947         * config/xtensa/xtensa.c: Likewise.
3948         * config/stormy16/stormy16.c: Likewise.
3949         * config/iq2000/iq2000.c: Likewise.
3950         * config/rs6000/rs6000.c: Likewise.
3951         * config/picochip/picochip.c: Likewise.
3952         * config/arc/arc.c: Likewise.
3953         * config/mcore/mcore.c: Likewise.
3954         * config/score/score.c: Likewise.
3955         * config/mips/mips.c: Likewise.
3956         * config/bfin/bfin.c: Likewise.
3957         * config/ia64/ia64.c: Likewise (disabled though).
3959         * config/frv/frv.h: Remove pointless remark.
3961         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
3962         TARGET_PROMOTE_FUNCTION_ARGS,
3963         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
3964         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
3966 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3968         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
3969         -floop-parallelize-all.
3970         * toplev.c (process_options): Rename flag_graphite_force_parallel to
3971         flag_loop_parallelize_all.
3972         * tree-ssa-loop.c (gate_graphite_transforms): Same.
3973         * graphite.c (graphite_transform_loops): Same.
3974         * common.opt: Same.
3975         * graphite-poly.c (apply_poly_transforms): Same.
3977 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
3979         PR tree-optimization/40914
3980         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
3981         if set, then check the delta field of the PMF record.
3982         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
3983         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
3984         call is stored in the delta.
3986 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
3988         * config/mips/mips.md (*clear_upper32_dext): New pattern.
3990 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
3992         * config/i386/bsd.h (ASM_BYTE): New define.
3993         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
3994         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
3995         .byte.  Use fputs or putc instead of fprintf where appropriate.
3996         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
3997         fputs or putc instead of fprintf where appropriate.
3998         * config/i386/i386elf.h: Ditto.
3999         * config/i386/sysv4.h: Ditto.
4001         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
4002         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
4003         (*tls_global_dynamic_64): Ditto.
4005 2009-07-31  Christian Bruel  <christian.bruel@st.com>
4007         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4009 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4011         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
4012         Remove dead code for MINUS.
4014 2009-07-31  Anthony Green  <green@moxielogic.com>
4016         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
4017         $r12 in prologue.
4018         (moxie_expand_epilogue): Ditto for epilogue.
4019         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
4020         incoming arguments.
4021         (moxie_function_arg): Ditto.
4022         (moxie_pass_by_reference): Ditto.
4023         (moxie_arg_partial_bytes): Ditto.
4024         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
4025         (FUNCTION_ARG_ADVANCE) Ditto.
4026         (REG_PARM_STACK_SPACE) Ditto.
4027         (FUNCTION_ARG_REGNO_P) Dito.
4029         * config.gcc: Add moxie linux config support.
4030         * gcc/config/moxie/uclinux.h: New file.
4032 2009-07-31  DJ Delorie  <dj@redhat.com>
4034         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4035         (UNSPECV_SP_SWITCH_E): New.
4036         (sp_switch_1): Change to an unspec.
4037         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
4038         replace $r15.
4039         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
4040         reference the new stack's address
4042 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4044         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
4045         graphite-clast-to-gimple.o, graphite-dependences.o,
4046         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4047         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
4048         (graphite-blocking.o,
4049         graphite-clast-to-gimple.o, graphite-dependences.o,
4050         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4051         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
4052         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
4053         * cfgloop.h (struct loop): Add can_be_parallel field.
4054         * common.opt (fgraphite-identity): Moved up.
4055         (fgraphite-force-parallel): New flag.
4056         * graphite.c: Rewrite.
4057         * graphite.h: Rewrite.
4058         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
4059         after Graphite.
4060         * toplev.c (graphite_out_file): New file descriptor.
4061         (graphite_in_file): New.
4062         (process_options): flag_graphite_force_parallel cannot be used without
4063         Graphite.
4064         * tree-ssa-loop.c: Include toplev.h.
4065         (gate_graphite_transforms): Enable flag_graphite for
4066         flag_graphite_force_parallel.
4068 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4070         * ChangeLog.graphite: New.
4071         * graphite-blocking.c: New.
4072         * graphite-clast-to-gimple.c: New.
4073         * graphite-clast-to-gimple.h: New.
4074         * graphite-dependences.c: New.
4075         * graphite-dependences.h: New.
4076         * graphite-interchange.c: New.
4077         * graphite-poly.c: New.
4078         * graphite-poly.h: New.
4079         * graphite-ppl.c: New.
4080         * graphite-ppl.h: New.
4081         * graphite-scop-detection.c: New.
4082         * graphite-scop-detection.h: New.
4083         * graphite-sese-to-poly.c: New.
4084         * graphite-sese-to-poly.h: New.
4085         * sese.c: New.
4086         * sese.h: New.
4088 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4090         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4091         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
4093 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4095         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
4096         (scev_is_linear_expression): Return false if the evolution is not
4097         affine multivariate.
4099 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4101         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4102         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4104 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4106         * tree-data-ref.c (debug_data_references): New.
4107         (debug_data_reference): New.
4108         * tree-data-ref.h (debug_data_references): Declared.
4109         (debug_data_reference): Declared.
4111 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4113         * tree-data-ref.c (stmt_simple_memref_p: Removed.
4114         * tree-data-ref.h (scop_p): Removed.
4115         (struct data_reference): Remove field scop.
4116         (DR_SCOP): Removed.
4117         (stmt_simple_memref_p): Removed.
4119 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4121         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
4122         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
4123         basic block empty.
4125 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4127         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
4129 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4131         * doc/invoke.texi (-fgraphite-identity): Documented.
4133 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4135         * tree-scalar-evolution.c: Fix comment.
4136         (instantiate_scev_1): Return unknow from scev instantiation if the
4137         result is not above instantiate_below.
4139 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4141         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4142         static anymore.  Instantiate the symbols that may have been introduced
4143         by chrec_apply.
4144         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4145         Declared.
4147 2009-07-30  DJ Delorie  <dj@redhat.com>
4149         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
4150         .vliw directive to VLIW sections.
4152 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4154         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
4155         New variables.
4156         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
4157         (AUTOHEADER): New variable.
4158         ($(srcdir)/cstamp-h.in): Use it.
4160 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
4161             Pat Haugen  <pthaugen@us.ibm.com>
4162             Revital Eres <ERES@il.ibm.com>
4164         * config/rs6000/vector.md (VEC_F): Add VSX support.
4165         (VEC_A): Ditto.
4166         (VEC_N): Ditto.
4167         (mov<mode>): Ditto.
4168         (vector_load_<mode>): Ditto.
4169         (vector_store_<mode>): Ditto.
4170         (vector GPR move split): Ditto.
4171         (vec_reload_and_plus_<mptrsize>): Ditto.
4172         (vec_reload_and_reg_<mptrsize>): Ditto.
4173         (add<mode>3): Ditto.
4174         (sub<mode>3): Ditto.
4175         (mul<mode>3): Ditto.
4176         (neg<mode>2): Ditto.
4177         (abs<mode>2): Ditto.
4178         (smin<mode>3): Ditto.
4179         (smax<mode>3): Ditto.
4180         (vector_eq<mode>): Ditto.
4181         (vector_gt<mode>): Ditto.
4182         (vector_ge<mode>): Ditto.
4183         (vector_gtu<mode>): Ditto.
4184         (vector_select_<mode>_uns): Ditto.
4185         (vector_eq_<mode>_p): Ditto.
4186         (vector_gt_<mode>_p): Ditto.
4187         (vector_ge_<mode>_p): Ditto.
4188         (vector_gtu_<mode>_p): Ditto.
4189         (cr6_test_for_zero): Ditto.
4190         (cr6_test_for_zero_reverse): Ditto.
4191         (cr6_test_for_lt): Ditto.
4192         (cr6_test_for_lt_reverse): Ditto.
4193         (xor<mode>3): Ditto.
4194         (ior<mode>3): Ditto.
4195         (and<mode>3): Ditto.
4196         (one_cmpl<mode>2): Ditto.
4197         (nor<mode>2): Ditto.
4198         (andc<mode>2): Ditto.
4199         (float<VEC_int<mode>2): Ditto.
4200         (unsigned_float<VEC_int><mode>2): Ditto.
4201         (fix_trunc<mode><VEC_int>2): Ditto.
4202         (fixuns_trunc<mode><VEC_int>2): Ditto.
4203         (vec_init<mode>):
4204         (vec_set<mode>): Ditto.
4205         (vec_extract<mode>): Ditto.
4206         (vec_interleave_highv4sf): Ditto.
4207         (vec_interleave_lowv4sf): Ditto.
4208         (vec_realign_load_<mode>): Ditto.
4209         (vec_shl_<mode>): Ditto.
4210         (vec_shr_<mode>): Ditto.
4211         (div<mode>3): New patterns for VSX.
4212         (vec_interleave_highv2df): Ditto.
4213         (vec_interleave_lowv2df): Ditto.
4214         (vec_pack_trunc_v2df): Ditto.
4215         (vec_pack_sfix_trunc_v2df): Ditto.
4216         (vec_pack_ufix_trunc_v2df): Ditto.
4217         (vec_unpacks_hi_v4sf): Ditto.
4218         (vec_unpacks_lo_v4sf): Ditto.
4219         (vec_unpacks_float_hi_v4si): Ditto.
4220         (vec_unpacks_float_lo_v4si): Ditto.
4221         (vec_unpacku_float_hi_v4si): Ditto.
4222         (vec_unpacku_float_lo_v4si): Ditto.
4223         (movmisalign<mode>): Ditto.
4224         (vector_ceil<mode>2): New patterns for vectorizing math library.
4225         (vector_floor<mode>2): Ditto.
4226         (vector_btrunc<mode>2): Ditto.
4227         (vector_copysign<mode>3): Ditto.
4229         * config/rs6000/predicates.md (easy_vector_constant_msb): New
4230         predicate for setting the high bit in each word, used for copysign.
4232         * config/rs6000/ppc-asm.h (f19): Whitespace.
4233         (f32-f63): Define if VSX.
4234         (v0-v31): Define if Altivec.
4235         (vs0-vs63): Define if VSX.
4237         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
4239         * config/rs6000/power7.md: New file, provide tuning parameters for
4240         -mcpu=power7.
4242         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
4243         (rs6000_cpu_cpp_builtins): Ditto.
4244         (altivec_overloaded_builtins): Ditto.
4245         (altivec_resolve_overloaded_builtin): Ditto.
4247         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
4248         debug switch to disable vectorizing simple math builtin
4249         functions.
4251         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4252         Vectorize simple math builtin functions.
4253         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
4254         hook to vectorize math builtins.
4255         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
4256         (rs6000_builtin_conversion): Add VSX/power7 support.
4257         (rs6000_builtin_vec_perm): Ditto.
4258         (vsplits_constant): Add support for loading up a vector constant
4259         with just the high bit set in each part.
4260         (rs6000_expand_vector_init): Add VSX/power7 support.
4261         (rs6000_expand_vector_set): Ditto.
4262         (rs6000_expand_vector_extract): Ditto.
4263         (rs6000_emit_move): Ditto.
4264         (bdesc_3arg): Ditto.
4265         (bdesc_2arg): Ditto.
4266         (bdesc_1arg): Ditto.
4267         (rs6000_expand_ternop_builtin): Ditto.
4268         (altivec_expand_builtin): Ditto.
4269         (rs6000_expand_unop_builtin): Ditto.
4270         (rs6000_init_builtins): Ditto.
4271         (altivec_init_builtins): Ditto.
4272         (builtin_function_type): Ditto.
4273         (rs6000_common_init_builtins): Ditto.
4274         (rs6000_handle_altivec_attribute); Ditto.
4275         (rs6000_mangle_type): Ditto.
4276         (rs6000_vector_mode_supported_p): Ditto.
4277         (rs6000_mode_dependent_address): Altivec addresses with AND -16
4278         are mode dependent.
4280         * config/rs6000/vsx.md: New file for VSX support.
4282         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
4283         identifing values with just the most significant bit set.
4284         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
4285         vectorized builtins.
4287         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
4288         (UNSPEC_VRFIM): Delete.
4289         (splitter for loading up vector with most significant bit): New
4290         splitter for vectorizing copysign.
4291         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
4292         vectorizing simple math functions.
4293         (altivec_vrfip): Add support for vectorizing simple math functions.
4294         (altivec_vrfim): Ditto.
4295         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
4297         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
4298         (power7.md, vsx.md): Include for power7 support.
4299         (copysigndf3): Use VSX instructions if -mvsx.
4300         (negdf2_fpr): Ditto.
4301         (absdf2_fpr): Ditto.
4302         (nabsdf2_fpr): Ditto.
4303         (adddf3_fpr): Ditto.
4304         (subdf3_fpr): Ditto.
4305         (muldf3_fpr): Ditto.
4306         (divdf3_fpr): Ditto.
4307         (fix_truncdfdi2_fpr): Ditto.
4308         (cmpdf_internal1): Ditto.
4309         (fred, fred_fpr): Convert into expander/insn to add VSX support.
4310         (btruncdf2, btruncdf2_fpr): Ditto.
4311         (ceildf2, ceildf2_fpr): Ditto.
4312         (floordf2, floordf2_fpr): Ditto.
4313         (floatdidf2, floatdidf2_fpr): Ditto.
4314         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
4315         (fmsubdf4_fpr): Ditto.
4316         (fnmadddf4_fpr_1): Ditto.
4317         (fnmadddf4_fpr_2): Ditto.
4318         (fnmsubdf4_fpr_1): Ditto.
4319         (fnmsubdf4_fpr_2): Ditto.
4320         (fixuns_truncdfdi2): Add expander for VSX support.
4321         (fix_truncdfdi2): Ditto.
4322         (fix_truncdfsi2): Ditto.
4323         (ftruncdf2): Ditto.
4324         (btruncsf2): Whitespace.
4325         (movdf_hardfloat32): Add support for VSX registers.
4326         (movdf_softfloat32): Ditto.
4327         (movdf_hardfloat64): Ditto.
4328         (movdf_hardfloat64_mfpgpr): Ditto.
4329         (movdf_softfloat64): Ditto.
4330         (movti splitters): Add check for vector registers supporting
4331         TImode in the future.
4332         (bpermd): Add power7 bpermd instruction.
4334         * config/rs6000/altivec.h (vec_div): Define if VSX.
4335         (vec_mul): Ditto.
4336         (vec_msub): Ditto.
4337         (vec_nmadd): Ditto.
4338         (vec_nearbyint): Ditto.
4339         (vec_rint): Ditto.
4340         (vec_sqrt): Ditto.
4341         (all predicates): Use the generic builtin function, and not the V4SF
4342         specific function so that the predicates will work with VSX's V2DF.
4343         (vec_all_*): Ditto.
4344         (vec_any_*): Ditto.
4346         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
4347         Document new VSX functions and types.
4349         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
4350         switches.
4352         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
4353         "wa", and "j" constraints.  Modify "v" to talk about Altivec
4354         instead of just vector.
4356 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
4358         PR debug/26475
4359         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
4360         location for phi arguments.
4361         (rewrite_update_phi_arguments): Find locations for reaching defs.
4362         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
4363         Add location to add_phi_arg calls.
4364         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
4365         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
4366         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
4367         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
4368         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
4369         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
4370         * tree-phinodes.c (make_phi_node): Initialize location.
4371         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
4372         (add_phi_arg): Add location parameter.
4373         (remove_phi_arg_num): Move location when moving phi argument.
4374         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
4375         location.
4376         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
4377         slpeel_update_phi_nodes_for_guard1,
4378         slpeel_update_phi_nodes_for_guard2,
4379         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
4380         vect_loop_versioning): Set locations.
4381         * tree-parloops.c (create_phi_for_local_result,
4382         transform_to_exit_first_loop, create_parallel_loop): Add locations.
4383         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
4384         * tree-vect-loop.c (get_initial_def_for_induction,
4385         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
4386         locations.
4387         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
4388         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
4389         (gimple_phi_arg_set_location): New.  Set locus.
4390         (gimple_phi_arg_has_location): New.  Check for locus.
4391         (redirect_edge_var_map_location): New.  Return locus from var_map.
4392         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
4393         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
4394         combining PHI arguments.
4395         (cond_store_replacement): Set location.
4396         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
4397         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
4398         scop_add_exit_phis_edge): Add locations.
4399         * tree-cfgcleanup.c (remove_forwarder_block,
4400         remove_forwarder_block_with_phi): Add locations.
4401         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
4402         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
4403         locations.
4404         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
4405         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
4406         flush_pending_stmts): Add source location.
4407         * lambda-code.c (perfect_nestify): Maintain location stack with argument
4408         stack to preserve locations.
4409         * tree-vect-stmts.c (vectorizable_load): Add location.
4410         * tree-inline.c (copy_phis_for_bb): Copy locus.
4411         (setup_one_parameter): Add call locus to inlined parameter stmts.
4412         (initialize_inlined_parameters): Pass in call location as parameter
4413         assignment locus.
4414         (tree_function_versioning): Pass location to setup_one_parameter.
4415         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
4416         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
4417         copy and edge lists.
4418         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
4419         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
4420         locus parameter and override the stmt default if provided.
4421         (new_elim_graph, clear_elim_graph, delete_elim_graph,
4422         elim_graph_add_edge, elim_graph_remove_succ_edge,
4423         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
4424         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
4425         eliminate_phi):  Add locus info in elimination graph for each edge and
4426         value copy.
4427         (insert_backedge_copies): Copy locus if present.
4428         * tree-flow.h (struct _edge_var_map): Add locus field.
4429         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
4430         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
4431         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
4432         locations.
4433         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
4435 2009-07-30  Martin Jambor  <mjambor@suse.cz>
4437         PR tree-optimization/40570
4438         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
4439         use inlining loops.
4441 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
4443         * ssa-loop-manip.c: Include langhooks.h.
4444         (rewrite_phi_with_iv): New.
4445         (rewrite_all_phi_nodes_with_iv): New.
4446         (canonicalize_loop_ivs): Move here from tree-parloops.c.
4447         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
4448         * tree-parloops.c (loop_parallel_p): Move out all conditions
4449         except dependency check.
4450         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
4451         (gen_parallel_loop): Call canonicalize_loop_ivs without
4452         reduction_list argument.
4453         (build_new_reduction): New.
4454         (gather_scalar_reductions): New.
4455         (try_get_loop_niter): New.
4456         (try_create_reduction_list): New.
4457         (parallleize_loops): Change the parallel conditions check.
4458         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
4459         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
4461 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
4463         * opt-functions.awk (opt_args): Allow argument to be enclosed in
4464         curly braces.
4465         * doc/options.texi (Option properties):  Mention new quoting syntax.
4467 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4469         * config/alpha/alpha.c (alpha_start_function):
4470         Handle VMS_DEBUG_MAIN_POINTER
4471         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
4472         * doc/invoke.texi: Document -mdebug-main switch.
4474 2009-07-29  Richard Henderson  <rth@redhat.com>
4476         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
4477         (cgraph_create_edge_including_clones): Likewise.
4478         * tree-inline.c (copy_bb): Operate on the correct edges
4479         when updating the callgraph.
4481 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4483         * config/alpha/vms-cc.c: Deleted.
4484         * config/alpha/vms-ld.c: Deleted.
4485         * config/alpha/t-vms64: Moved to config/vms
4486         * config/alpha/vms-crt0-64.c: Moved to config/vms
4487         * config/alpha/vms-crt0.c: Moved to config/vms
4488         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
4489         * config/alpha/vms-psxcrt0.c: Moved to config/vms
4490         * config/alpha/xm-vms.h: Moved to config/vms
4491         * config/alpha/x-vms: Moved to config/vms
4492         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
4493         config/vms/t-vms.
4494         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
4495         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
4496         (version): Set.
4497         * config/vms/t-vms64: Moved here from config/alpha
4498         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
4499         (argc,argv,envp): Enforce 32bit malloc'ing.
4500         * config/vms/vms-psxcrt0-64.c: Likewise.
4501         * config/vms/vms-crt0.c: Moved here from config/alpha.
4502         * config/vms/vms-psxcrt0.c: Likewise.
4503         * config/vms/vms-crtl-64.h: New file.
4504         * config/vms/vms-crtl.h: New file.
4505         * config/vms/vms.opt: New file.
4506         * config/vms/xm-vms64.h: New file.
4507         * config/vms/xm-vms.h: Moved here from config/alpha.
4508         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
4509         Set.
4510         * config/vms/x-vms: Moved here from config/alpha.
4511         (version, VMS_EXTRA_PARTS): Moved to t-vms.
4512         (vms-ld.o, vms-cc.o): Removed.
4513         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
4515 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4517         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
4518         correct stack (obvious VMS fix).
4520 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4522         * dwarf2out.c (output_file_names): Output VMS style file name, size,
4523         date, version info if VMS_DEBUGGING_INFO defined.
4524         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
4525         size, date calculating code moved here.
4527 2009-07-29  Paul Brook  <paul@codesourcery.com>
4529         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
4530         do_push/do_pop.
4532 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
4534         PR target/40577
4535         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
4536         to DImode when generating insq_le insn.
4538 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
4540         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
4541         New macro set for VMS_DEBUGGGING_INFO.
4542         (AT_string_form): Use it.
4544 2009-07-28  DJ Delorie  <dj@redhat.com>
4546         * config/mep/mep.c (vtext_section): New.
4547         (vftext_section): New.
4548         (ftext_section): New.
4549         (mep_select_section): Add support for functions.
4550         (mep_unique_section): Likewise.
4551         (mep_asm_init_sections): Likewise.
4552         (mep_encode_section_info): Remove it from here.
4554         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
4556 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
4558         * tree.h (TREE_DEPRECATED): Document it is used for types too.
4559         (TYPE_VECTOR_OPAQUE): Use default_def_flag
4561 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
4563         * dwarf2out.c (output_file_names): Test new macro
4564         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
4565         (add_comp_dir_attribute): Likewise.
4567 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
4569         * config/i386/mingw-w64.h (LINK_SPEC): Add
4570         separating space between commands.
4572 2009-07-28  Jan Hubicka  <jh@suse.cz>
4574         PR tree-optimization/40759
4575         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
4576         for renaming.
4578 2009-07-27  DJ Delorie  <dj@redhat.com>
4580         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
4581         types are dword-aligned.
4582         (mep_expand_va_start): Likewise.
4584 2009-07-27  Olivier Hainque  <hainque@adacore.com>
4585             Douglas B Rupp  <rupp@gnat.com>
4587         * convert.c (convert_to_pointer): Don't assume the target
4588         pointer type is POINTER_SIZE long. Fetch its precision instead.
4590 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
4592         * system.h (fopen): Undefine if macro.
4594 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
4596         * dwarf2out.c (output_cfi_p): Removed.
4597         (output_cfis): New function.
4598         (output_fde): New function, split from output_call_frame_info.
4599         (output_call_frame_info): Use it.
4600         (dwarf2out_switch_text_section): Use output_cfis.
4602 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
4604         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
4605         TARGET_BI_ARCH is specified without enabling SJLJ.
4606         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
4607         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
4609 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
4611         * arm.md (negdi2): Use DImode if forcing a value into a register.
4613 2009-07-26  Ira Rosen  <irar@il.ibm.com>
4615         PR tree-optimization/40801
4616         * tree-vect-stmts.c (vectorizable_call): Get previous copy
4617         of vector operand from the previous copy of vector statement.
4618         Pass the correct definition type value to
4619         vect_get_vec_def_for_stmt_copy().
4621 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4623         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
4624         const char ** conversion.
4626 2009-07-25 David Daney <ddaney@caviumnetworks.com>
4628         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
4629         fancy_abort() if !ENABLE_ASSERT_CHECKING.
4630         (gcc_unreachable): Invoke __builtin_unreachable() if
4631         !ENABLE_ASSERT_CHECKING.
4633 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
4635         PR rtl-optimization/40445
4636         * emit-rtl.c (next_nonnote_insn_bb): New function.
4637         * rtl.h (next_nonnote_insn_bb): Declare new function.
4638         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
4639         with no successors that is the successor of the ENTRY_BLOCK.
4640         Continue from the top after removing an empty fallthrough block.
4641         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
4642         of next_nonnote_insn.
4644 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
4646         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
4648 2009-07-25  Martin Jambor  <mjambor@suse.cz>
4650         * c-common.c (c_common_attribute_table): New element for noclone.
4651         (handle_noclone_attribute): New function. Forward-declare.
4652         * tree-inline.c (tree_versionable_function_p): Check for noclone
4653         attribute.
4654         * doc/extend.texi (Labels as Values): Document need for noclone.
4655         (Function Attributes): Document noclone attribute.
4657 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
4659         PR rtl-optimization/34999
4660         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
4661         and dw_fde_switched_cold_to_hot fields.
4662         (output_cfi_p): New function.
4663         (output_call_frame_info): If fde->dw_fde_switched_sections,
4664         output 2 FDEs instead of one with corrupted header.
4665         (dwarf2out_do_cfi_startproc): New function.
4666         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
4667         and fde->dw_fde_switched_cold_to_hot.
4668         (dwarf2out_switch_text_section): Compute
4669         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
4670         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
4671         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
4672         Otherwise, compute fde->dw_fde_switch_cfi.
4674 2009-07-24  Cary Coutant  <ccoutant@google.com>
4676         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
4678 2009-07-24  Cary Coutant  <ccoutant@google.com>
4680         * cfghooks.c (split_block): Copy discriminator to new block.
4681         * tree-cfg.c (assign_discriminator): Check location of last
4682         instruction in block as well as first.
4684 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
4686         * config/i386/linux.c: Use fputs or putc instead of fprintf
4687         where appropriate.
4688         * config/i386/gas.h: Ditto.
4689         * config/i386/x86-64.h: Ditto.
4690         * config/i386/att.h: Ditto.
4692 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4694         * expmed.c (emit_store_flag): Use a recursive call to optimize the
4695         xor case.
4697 2009-07-24  Martin Jambor  <mjambor@suse.cz>
4699         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
4700         (ipa_push_func_to_list_1): Declare.
4701         (ipa_push_func_to_list): New function.
4703         * ipa-prop.c (ipa_push_func_to_list_1): New function.
4704         (ipa_init_func_list): Call ipa_push_func_to_list_1.
4705         (ipa_push_func_to_list): Removed.
4706         (ipa_pop_func_from_list): Clear node_enqueued flag.
4708 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4710         * config/s390/s390.c (override_options): Default
4711         max-unrolled-insns to 100 for z10 tuning.
4713 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
4715         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
4716         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
4717         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
4718         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
4719         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
4720         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
4721         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
4723 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
4725         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
4726         use default set in mingw32.h header.
4727         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
4728         64-bit /mingw/include path.
4729         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
4730         path.
4732 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
4734         PR rtl-optimization/40209
4735         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
4737 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
4739         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
4740         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
4741         with the rest of string where appropriate.  Use fputs or putc
4742         instead of fprintf where appropriate.
4744 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4745             Pat Haugen  <pthaugen@us.ibm.com>
4746             Revital Eres <ERES@il.ibm.com>
4748         * config/rs6000/vector.md: New file.  Move most of the vector
4749         expander support here from altivec.md to allow for the VSX vector
4750         unit in the future.  Add support for secondary_reload patterns.
4751         Rewrite the patterns for vector comparison, and vector comparison
4752         predicate instructions so that the RTL expresses the desired
4753         behavior, instead of using unspec.
4755         * config/rs6000/constraints.md ("f" constraint): Use
4756         rs6000_constraints to hold the precalculated register class.
4757         ("d" constraint): Ditto.
4758         ("wd" constraint): New constraint for VSX.
4759         ("wf" constraint): Ditto.
4760         ("ws" constraint): Ditto.
4761         ("wa" constraint): Ditto.
4762         ("wZ" constraint): Ditto.
4763         ("j" constraint): Ditto.
4765         * config/rs6000/predicates.md (vsx_register_operand): New
4766         predicate for VSX.
4767         (vfloat_operand): New predicate for vector.md.
4768         (vint_operand): Ditto.
4769         (vlogical_operand): Ditto.
4770         (easy_fp_constant): If VSX, 0.0 is an easy constant.
4771         (easy_vector_constant): Add VSX support.
4772         (altivec_indexed_or_indirect_operand): New predicate for
4773         recognizing Altivec style memory references with AND -16.
4775         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
4776         for vector secondary reload support.
4777         (rs6000_vector_reg_class): Delete, replacing it with
4778         rs6000_constraints.
4779         (rs6000_vsx_reg_class): Ditto.
4780         (rs6000_constraints): New array to hold the register classes of
4781         each of the register constraints that can vary at runtime.
4782         (builtin_mode_to_type): New static array for builtin function type
4783         creation.
4784         (builtin_hash_table): New static hash table for builtin function
4785         type creation.
4786         (TARGET_SECONDARY_RELOAD): Define target hook.
4787         (TARGET_IRA_COVER_CLASSES): Ditto.
4788         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
4789         registers are 128 bits if VSX memory reference instructions are used.
4790         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
4791         unit is being used.
4792         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
4793         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
4794         Print several of the scheduling related parameters.
4795         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
4796         rs6000_constraints instead of rs6000_vector_reg_class.  Move
4797         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
4798         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
4799         Altivec.  Add VSX support.  Setup for secondary reload support on
4800         Altivec/VSX registers.
4801         (rs6000_override_options): Make power7 set the scheduling groups
4802         like the power5.  Add support for new debug switches to override
4803         the scheduling defaults.  Temporarily disable -mcpu=power7 from
4804         setting -mvsx.  Add support for debug switches -malways-hint,
4805         -msched-groups, and -malign-branch-targets.
4806         (rs6000_buitlin_conversion): Add support for returning unsigned
4807         vector conversion functions to fix regressions due to stricter
4808         type checking.
4809         (rs6000_builtin_mul_widen_even): Ditto.
4810         (rs6000_builtin_mul_widen_odd): Ditto.
4811         (rs6000_builtin_vec_perm): Ditto.
4812         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
4813         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
4814         to zero a register.
4815         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
4816         generated upstream.
4817         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
4818         VSX types for bit operations.  Changes to accomidate vector.md.
4819         (bdesc_2arg): Ditto.
4820         (bdesc_1arg): Ditto.
4821         (struct builtin_description_predicates): Rewrite predicate
4822         handling so that RTL describes the operation, instead of passing
4823         the instruction to be used as a string argument.
4824         (bdesc_altivec_preds): Ditto.
4825         (altivec_expand_predicate_builtin): Ditto.
4826         (altivec_expand_builtin): Ditto.
4827         (rs6000_expand_ternop_builtin): Use a switch instead of an if
4828         statement for vsldoi support.
4829         (altivec_expand_ld_builtin): Change to use new names from vector.md.
4830         (altivec_expand_st_builtin): Ditto.
4831         (paired_expand_builtin): Whitespace changes.
4832         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
4833         builtin_mode_to_type table for secondary reload.  Call
4834         builtin_function_type to build random builtin functions.
4835         (altivec_init_builtins): Change to use builtin_function_type to
4836         create builtin function types dynamically as we need them.
4837         (builtin_hash_function): New support for hashing the tree types
4838         for builtin function as we need it, rather than trying to build
4839         all of the trees that we need.  Add initial preliminary VSX support.
4840         (builtin_function_type): Ditto.
4841         (builtin_function_eq): Ditto.
4842         (builtin_hash_struct): Ditto.
4843         (rs6000_init_builtins): Ditto.
4844         (rs6000_common_init_builtins): Ditto.
4845         (altivec_init_builtins): Ditto.
4846         (rs6000_common_init_builtins): Ditto.
4847         (enum reload_reg_type): New enum for simplifing reg classes.
4848         (rs6000_reload_register_type): Simplify register classes into GPR,
4849         Vector, and other registers.  Altivec and VSX addresses in reload.
4850         (rs6000_secondary_reload_inner): Ditto.
4851         (rs6000_ira_cover_classes): New target hook, that returns the
4852         appropriate cover classes, based on -mvsx being used or not.
4853         (rs6000_secondary_reload_class): Add VSX support.
4854         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
4855         (get_vsel_insn): Ditto.
4856         (rs6000_emit_vector_compare): Rewrite vector conditional support
4857         so that where we can, we use RTL operators, instead of blindly use
4858         UNSPEC.
4859         (rs6000_emit_vector_select): Ditto.
4860         (rs6000_emit_vector_cond_expr): Ditto.
4861         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
4862         (create_TOC_reference): Add -mdebug=addr support.
4863         (emit_frame_save): VSX loads/stores need register indexed addressing.
4865         * config/rs6000/rs6000.md: Include vector.md.
4867         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
4869         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4870         support for V2DI, V2DF in logical, permute, select operations.
4872         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
4873         switch for vsx/power7.
4874         (-mvsx-scalar-memory): Ditto.
4875         (-mvsx-align-128): Ditto.
4876         (-mallow-movmisalign): Ditto.
4877         (-mallow-df-permute): Ditto.
4878         (-msched-groups): Ditto.
4879         (-malways-hint): Ditto.
4880         (-malign-branch-targets): Ditto.
4882         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
4883         hook instead.
4884         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
4885         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
4886         (rs6000_vector_reg_class): Delete.
4887         (rs6000_vsx_reg_class): Ditto.
4888         (enum rs6000_reg_class_enum): New enum for the constraints that
4889         vary based on target switches.
4890         (rs6000_constraints): New array to hold the register class for all
4891         of the register constraints that vary based on the switches used.
4892         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
4893         (enum rs6000_builtins): Add unsigned varients for the builtin
4894         declarations returned by target hooks for expanding multiplies,
4895         select, and permute operations.  Add VSX builtins.
4896         (enum rs6000_builtin_type_index): Add entries for VSX.
4897         (V2DI_type_node): Ditto.
4898         (V2DF_type_node): Ditto.
4899         (unsigned_V2DI_type_node): Ditto.
4900         (bool_long_type_node): Ditto.
4901         (intDI_type_internal_node): Ditto.
4902         (uintDI_type_internal_node): Ditto.
4903         (double_type_internal_node): Ditto.
4905         * config/rs6000/altivec.md (whole file): Move all expanders to
4906         vector.md from altivec.md.  Rename insn matching functions to be
4907         altivec_foo.
4908         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
4909         (altivec_vcmp*): Ditto.
4910         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
4911         (VM): New iterator for moves that includes the VSX types.
4912         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
4913         (altivec_vperm_<mode>_uns): New, for unsigned types.
4914         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
4915         (altivec_eq<mode>): Ditto.
4916         (altivec_gt<mode>): Ditto.
4917         (altivec_gtu<mode>): Ditto.
4918         (altivec_eqv4sf): Ditto.
4919         (altivec_gev4sf): Ditto.
4920         (altivec_gtv4sf): Ditto.
4921         (altivec_vcmpbfp_p): Ditto.
4923 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
4925         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
4926         unsigned HWI.
4928 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
4930         PR target/40832
4931         * config/i386/i386.c (output_387_ffreep): Rewrite to use
4932         ASM_SHORT instead of .word.
4933         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
4934         instead of .word in asm template.
4936 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
4938         PR target/37488
4939         * ira-lives.c (bb_has_abnormal_call_pred): New function.
4940         (process_bb_node_lives): Use it.
4942         * ira.c (setup_cover_and_important_classes): Don't setup
4943         ira_important_class_nums.  Add cover classes to the end of
4944         important classes.
4945         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
4946         New.
4947         (find_reg_class_closure): Use reorder_important_classes.
4949         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
4951         * config/i386/i386.c (i386_ira_cover_classes): New function.
4952         (TARGET_IRA_COVER_CLASSES): Redefine.
4954         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
4955         importance of order of cover classes in the array.
4957 2009-07-22  Diego Novillo  <dnovillo@google.com>
4959         * tree-pass.h (TDF_EH): Define.
4960         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
4961         contains TDF_EH, print the EH region number holding GS.
4962         * tree-dump.c (dump_options): Add "eh".
4963         * doc/invoke.texi: Document it.
4965 2009-07-22  Doug Kwan  <dougkwan@google.com>
4967         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
4969 2009-07-22  Michael Matz  <matz@suse.de>
4971         PR tree-optimization/35229
4972         PR tree-optimization/39300
4974         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
4975         (inhibit_phi_insertion): New function.
4976         (insert_into_preds_of_block): Call it for REFERENCEs.
4977         (init_pre): Initialize and finalize scalar evolutions.
4978         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
4980 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
4982         * config/i386/predicates.md (zero_extended_scalar_load_operand):
4983         Use CONST_VECTOR_NUNITS to determine number of elements.
4985 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
4987         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
4988         (U, W): Constraints are now deprecated and will be removed if we
4989         run out of letters.
4990         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
4991         the file.
4992         ("prefetch"): Add the stcmh instruction for prefetching.
4993         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
4994         changes.
4995         (s390_short_displacement): Return always true if compiling for
4996         machines not providing the long displacement facility.
4997         (s390_mem_constraint): Support the new constraint letter Z.
4998         (s390_check_qrst_address): New function.
5000 2009-07-21  DJ Delorie  <dj@redhat.com>
5002         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
5003         alone too.
5005 2009-07-21  Jason Merrill  <jason@redhat.com>
5007         * c-common.c (max_tinst_depth): Increase default to 1024.
5009 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
5011         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
5012         (vec_unpacku_float_lo_v4si): Ditto.
5014 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
5016         PR target/40811
5017         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
5018         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
5019         (builtin_description): Add __builtin_ia32_cvtudq2ps.
5020         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
5022 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
5024         PR tree-optimization/40813
5025         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
5026         it.
5028 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
5030         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
5031         with a NOP_EXPR if needed.
5033 2009-07-21  Paul Brook <paul@codesourcery.com>
5035         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
5036         Terminate debug dump with newline.
5038 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5040         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
5041         Cast "1" to unsigned HOST_WIDE_INT.
5042         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
5043         deposit length to the maximum length - lsb.  Extend length if
5044         HOST_BITS_PER_WIDE_INT is 32.
5046 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
5048         * cgraph.h (constant_pool_htab): New function.
5049         (constant_descriptor_tree): Move from varasm.c.
5050         * varasm.c (constant_pool_htab): New function.
5051         (constant_descriptor_tree): Move to cgraph.h.
5053 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
5055         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
5057 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
5059         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
5060         $(VARRAY_H).
5062 2009-07-20  Xinliang David Li  <davidxl@google.com>
5064         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
5066 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
5068         * config/mips/mips.md (move_type): Add arith.
5069         (type): Handle arith.
5070         (zero_extendsidi2): Rename this into ...
5071         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
5072         (zero_extendsidi2): New expander.
5073         (*zero_extendsidi2_dext): New pattern.
5075 2009-07-20  Nick Clifton  <nickc@redhat.com>
5077         * config.gcc (mips64-*-*): Add definition of tm_defines in order
5078         to set MIPS_ABI_DEFAULT.
5079         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
5081 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
5083         * tree-object-size.c (addr_object_size): Handle unions with
5084         array in it as last field of structs in __bos (, 1) as __bos (, 0).
5086         PR tree-optimization/40792
5087         * tree.c (build_function_type_skip_args): Remove bogus assert.
5089 2009-07-20  Jan Hubicka  <jh@suse.cz>
5090             Martin Jambor  <mjambor@suse.cz>
5092         * cgraph.h (combined_args_to_skip): New field.
5093         * cgraph.c (cgraph_create_virtual_clone): Properly handle
5094         combined_args_to_skip and args_to_skip.
5095         * tree-inline.c (update_clone_info): New function.
5096         (tree_function_versioning): Call update_clone_info.
5097         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
5098         functions.
5099         (cgraph_materialize_all_clones): More extensive dumping, working
5100         with combined_args_to_skip rather than args_to_skip.
5102 2009-07-20  Ira Rosen  <irar@il.ibm.com>
5104         * tree-vectorizer.h (vectorizable_condition): Add parameters.
5105         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
5106         (get_initial_def_for_reduction): Likewise.
5107         (vectorizable_reduction): Skip the check of first operand in case
5108         of COND_EXPR. Add check that it is outer loop vectorization if
5109         nested cycle was detected. Call vectorizable_condition() for
5110         COND_EXPR. If reduction epilogue cannot be created do not fail for
5111         nested cycles (if it is not double reduction). Assert that there
5112         is only one type in the loop in case of COND_EXPR. Call
5113         vectorizable_condition() to vectorize COND_EXPR.
5114         * tree-vect-stmts.c (vectorizable_condition): Update comment.
5115         Add parameters. Allow nested cycles if called from
5116         vectorizable_reduction(). Use reduction vector variable if provided.
5117         (vect_analyze_stmt): Call vectorizable_reduction() before
5118         vectorizable_condition().
5119         (vect_transform_stmt): Update call to vectorizable_condition().
5121 2009-07-20  Christian Bruel  <christian.bruel@st.com>
5123         * config/sh/sh.opt (-mfmovd): Resurrect and document.
5124         * doc/invoke.texi (-mfmovd): Likewise.
5125         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
5127 2009-07-20  Jan Hubicka  <jh@suse.cz>
5129         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
5130         when handling SSA name.
5132 2009-07-19  Jan Hubicka  <jh@suse.cz>
5134         PR tree-optimization/40676
5135         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
5136         virtual PHIs in empty BBs.
5138 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5140         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
5141         re-expanded the compound use gen_lowpart instead to convert to the
5142         desired mode.
5144 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5146         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
5147         OUTER_CONST arguments.
5148         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
5149         the new wider mode will be masked off.
5150         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
5152 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5154         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
5155         high-order bits are zero.
5157 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5159         * combine.c (simplify_shift_const_1): Split code to determine
5160         shift_mode into ...
5161         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
5162         new bits shifted in are identical to the old sign bit.
5164 2009-07-18  Richard Guenther  <rguenther@suse.de>
5166         PR c/40787
5167         * gimplify.c (gimplify_call_expr): Reject code using results from
5168         functions returning void.
5170 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
5172         * doc/md.texi: Document the new PowerPC "es" constraint.
5173         Document that "m" can include automodified addresses on this target,
5174         and explain how %U must be used.  Extend the "Q" and "Z" documentation
5175         to suggest "es" as well as "m".
5176         * config/rs6000/constraints.md (es): New memory constraint.
5177         (Q, Z): Update strings to match new documentation.
5179 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
5181         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
5182         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
5183         * config/rs6000/predicates.md (volatile_mem_operand): Use
5184         offsettable_nonstrict_memref_p.
5185         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
5186         (*floatunssidf2_internal): Likewise.
5187         (*fix_truncdfsi2_internal): Likewise.
5188         (*fix_trunctfsi2_internal): Likewise.
5190 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
5192         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
5193         atmega32u2 devices.
5194         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5196 2009-07-17  Richard Guenther  <rguenther@suse.de>
5198         PR c/40401
5199         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
5200         (pass_warn_unused_result): Likewise.
5201         (TODO_set_props): Remove.
5202         * omp-low.c (diagnose_omp_structured_block_errors): Change to
5203         run as a pass.
5204         (pass_diagnose_omp_blocks): Define.
5205         * c-decl.c (pop_file_scope): Do not finalize the CU here.
5206         (c_gimple_diagnostics_recursively): Remove.
5207         (finish_function): Do not call it.
5208         (c_write_global_declarations): Continue after errors.
5209         Finalize the CU here.
5210         * c-gimplify.c (c_genericize): Do not gimplify here.
5211         * c-common.c (c_warn_unused_result): Move ...
5212         * tree-cfg.c (do_warn_unused_result): ... here.
5213         (run_warn_unused_result): New function.
5214         (gate_warn_unused_result): New function.
5215         (pass_warn_unused_result): New pass.
5216         * c-common.h (c_warn_unused_result): Remove.
5217         * flags.h (flag_warn_unused_result): Declare.
5218         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
5219         * opts.c (flag_warn_unused_result): Initialize to false.
5220         * toplev.c (compile_file): Add comment.
5221         * omp-low.c (create_omp_child_function): Do not register
5222         the function with the frontend.
5223         (diagnose_omp_structured_block_errors): Prepare to be
5224         called as optimization pass.
5225         (gate_diagnose_omp_blocks): New function.
5226         (pass_diagnose_omp_blocks): New pass.
5227         * cgraph.h (cgraph_optimize): Remove.
5228         (cgraph_analyze_function): Likewise.
5229         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
5230         * cgraphunit.c (cgraph_lower_function): Lower nested functions
5231         before their parents here.
5232         (cgraph_finalize_function): Not here.
5233         (cgraph_analyze_function): Gimplify functions here.
5234         (cgraph_finalize_compilation_unit): Continue after errors.
5235         Optimize the callgraph from here.
5236         (cgraph_optimize): Make static.
5237         * langhooks.c (write_global_declarations): Finalize the CU.
5238         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
5239         (gimplify_function_tree): Assert we gimplify only once.
5240         Set PROP_gimple_any property.
5241         * tree-nested.c (gimplify_all_functions): New function.
5242         (lower_nested_functions): Gimplify all nested functions.
5243         * gimple.h (diagnose_omp_structured_block_errors): Remove.
5244         * passes.c (init_optimization_passes): Add pass_warn_unused_result
5245         and pass_diagnose_omp_blocks after gimplification.  Do not
5246         set TODO_set_props on all_lowering_passes.
5247         (execute_one_pass): Do not handle TODO_set_props.
5248         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
5249         (gimplify.o): Add tree-pass.h dependency.
5250         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
5251         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
5252         (unsave_r): Likewise.
5253         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
5254         temporary variable.
5256 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
5258         * doc/service.texi (Service): Restore previously removed link,
5259         which isn't broken after all.
5261 2009-07-17  Richard Guenther  <rguenther@suse.de>
5263         PR tree-optimization/40321
5264         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
5265         PHI nodes to the maximal set.
5266         (make_values_for_phi): Add PHI arguments to the maximal set.
5267         (execute_pre): Dump PHI_GEN and the maximal set.
5269 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
5271         PR c++/40780
5272         * gimplify.c (gimplify_conversion): Don't change non-conversions into
5273         VIEW_CONVERT_EXPR.
5275 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5277         * doc/extend.texi (Nested Functions): Replace broken link with
5278         textual reference.
5279         * doc/service.texi (Service): Remove broken link.
5281 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
5283         PR bootstrap/40781
5284         * builtins.c (expand_builtin_memcmp): Use loc instead of
5285         EXPR_LOCATION (exp).
5286         (expand_builtin_strncmp): Likewise.
5288 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
5289             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5291         PR 40435
5292         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
5293         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
5294         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
5295         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
5296         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
5297         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
5298         tree-inline.c, c-common.c, c-common.h, gimple.c,
5299         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
5300         convert.c: Add location argument to fold_{unary,binary,ternary},
5301         fold_build[123], build_call_expr, build_size_arg,
5302         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
5303         fold_build1_initializer, fold_build2_initializer,
5304         fold_build3_initializer, fold_build_call_array,
5305         fold_build_call_array_initializer, fold_single_bit_test,
5306         omit_one_operand, omit_two_operands, invert_truthvalue,
5307         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
5308         combine_comparisons, fold_builtin_*, fold_call_expr,
5309         build_range_check, maybe_fold_offset_to_address, round_up,
5310         round_down.
5312 2009-07-16  Jason Merrill  <jason@redhat.com>
5314         PR libstdc++/37907
5315         * c-common.c (c_common_reswords): Add __is_standard_layout
5316         and __is_trivial.
5317         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
5318         * doc/implement-cxx.texi: New.
5319         * doc/gcc.texi: Include it.
5321 2009-07-16  DJ Delorie  <dj@redhat.com>
5323         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
5324         compares that may be indirectly affected by previous instructions.
5326 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5328         * builtins.c (do_mpc_arg2): New.
5329         (fold_builtin_2): Fold builtin cpow.
5330         * real.h (HAVE_mpc_pow): New.
5332 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
5334         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
5335         comparison to skip unprofitable schedule
5337 2009-07-16  Simon Baldwin  <simonb@google.com>
5339         * gcc.c (option_map): New flag -no-canonical-prefixes.
5340         * (display_help): Print help text for new flag.
5341         * (process_command): Move options translation and language specifics
5342         and handle new flag early.  Use it to set a function pointer to a
5343         prefix builder.  Replace make_relative_prefix calls with calls to
5344         the function pointed to.  Ignore new flag in regular options handling.
5345         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
5347 2009-07-15  DJ Delorie  <dj@redhat.com>
5349         * config/mep/mep.md (sibcall_internal): Change register to avoid
5350         argument registers.
5351         (sibcall_value_internal): Likewise.
5353 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5355         PR rtl-optimization/40710
5356         * resource.c (mark_target_live_regs): Reset DF problem to LR.
5358 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
5360         * config/mips/mips.md (*extenddi_truncate<mode>,
5361         *extendsi_truncate<mode>): Change type attribute to move_type
5362         with shift_shift.  Split out code handling exts from here ...
5363         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
5364         pattern.
5365         (*extendhi_truncateqi): Change type attribute to move_type with
5366         shift_shift.  Split out code handling exts from here ...
5367         (*extendhi_truncateqi_exts): ... to this new pattern.
5369 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
5371         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
5372         instead of "and" with inverted sign bit mask value.  Use
5373         "nonimmediate_operand" for operand 1 and operand 2 predicate.
5374         Allocate registers only for operand 4 and operand 5.
5376 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
5378         PR middle-end/40747
5379         * fold-const.c (fold_cond_expr_with_comparison): When folding
5380         < and <= to MIN, make sure the MIN uses the same type as the
5381         comparison's operands.
5383 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
5385         * arm.md (ior_xor): New code iterator.
5386         (split for ior/xor with shift and zero-extend): New split pattern.
5387         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
5389 2009-07-15  Richard Guenther  <rguenther@suse.de>
5391         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
5392         offset member.
5394 2009-07-15  Richard Guenther  <rguenther@suse.de>
5396         PR middle-end/40753
5397         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
5399 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5401         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
5402         handle 2.6.30 kernel.
5404 2009-07-15  DJ Delorie  <dj@redhat.com>
5406         * config/mep/mep.md (sibcall_internal): Change register to allow
5407         for 24-bit addresses.
5408         (sibcall_value_internal): Likewise.
5410 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5412         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
5413         that are enabled/disabled by the flags introduced by a previous patch.
5415 2009-07-14  DJ Delorie  <dj@redhat.com>
5417         * config/mep/mep.md (sibcall_internal): Include non-toggling
5418         non-jmp case.
5419         (sibcall_value_internal): Likewise.
5421 2009-07-14  Taras Glek  <tglek@mozilla.com>
5422             Rafael Espindola  <espindola@google.com>
5424         * doc/sourcebuild.texi: Document install-plugin target.
5425         * configure.ac: Added install-plugin target to language makefiles.
5426         * configure: Regenerate.
5427         * Makefile.in: (install-plugin): Install more headers,
5428         depend on lang.install-plugin.
5430 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5432         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
5433         translation.
5435 2009-07-14  DJ Delorie  <dj@redhat.com>
5437         * config/mep/mep.c (mep_vliw_jmp_match): New function.
5438         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
5439         * config/mep/mep.md (sibcall_internal): Change test from
5440         mep_vliw_mode_match to mep_vliw_jmp_match.
5441         (sibcall_value_internal): Likewise.
5443 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
5445         * config/i386/sse.md (copysign<mode>3): New expander.
5446         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
5447         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
5448         Use ix86_build_const_vector.
5449         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
5450         IX86_BUILTIN_CPYSGNPD.
5451         (builtin_description): Add __builtin_ia32_copysignps and
5452         __builtin_ia32_copysignpd.
5453         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
5454         and BUILT_IN_COPYSIGNF.
5456 2009-07-13  Jason Merrill  <jason@redhat.com>
5458         * builtins.c (can_trust_pointer_alignment): New fn.
5459         (get_pointer_alignment): Factor it out from here.
5460         * tree.h: Declare it.
5462 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
5464         * config/rs6000/predicates.md (offsettable_mem_operand): Test
5465         RTX_AUTOINC class.
5467 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
5469         PR debug/40705
5470         PR c++/403057
5471         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
5473 2009-07-14  Richard Guenther  <rguenther@suse.de>
5474             Andrey Belevantsev <abel@ispras.ru>
5476         PR middle-end/40745
5477         * cfgexpand.c (partition_stack_vars): Do not bother to update
5478         alias information when not optimizing.
5480 2009-07-14  Richard Guenther  <rguenther@suse.de>
5481             Andrey Belevantsev <abel@ispras.ru>
5483         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
5484         (pt_solution_set): Likewise.
5485         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
5486         * tree-ssa-structalias.c (pt_solution_set): New function.
5487         * final.c (rest_of_clean_state): Free SSA data structures.
5488         * print-rtl.c (print_decl_name): Remove.
5489         (print_mem_expr): Implement in terms of print_generic_expr.
5490         * alias.c (ao_ref_from_mem): New function.
5491         (rtx_refs_may_alias_p): Likewise.
5492         (true_dependence): Query alias-export info.
5493         (canon_true_dependence): Likewise.
5494         (write_dependence_p): Likewise.
5495         * tree-dfa.c (get_ref_base_and_extent): For void types leave
5496         size unknown.
5497         * emit-rtl.c (component_ref_for_mem_expr): Remove.
5498         (mem_expr_equal_p): Use operand_equal_p.
5499         (set_mem_attributes_minus_bitpos): Do not use
5500         component_ref_for_mem_expr.
5501         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
5502         (update_alias_info_with_stack_vars): Likewise.
5503         (partition_stack_vars): Call update_alias_info_with_stack_vars.
5504         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
5505         explicitly nor clear stmt operands.
5506         Free the decl-to-pointer map.
5507         * tree-optimize.c (execute_free_datastructures): Do not free
5508         SSA data structures here.
5509         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
5510         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
5511         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
5512         dependencies.
5513         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
5515 2009-07-13  DJ Delorie  <dj@redhat.com>
5517         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
5518         unrolling at the right iteration count.
5520         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
5521         calculations.
5523 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5525         * haifa-sched.c (rank_for_schedule): Introduced flags to
5526         enable/disable individual scheduling heuristics.
5527         * common.opt: Introduced flags to enable/disable individual
5528         heuristics in the scheduler.
5529         * doc/invoke.texi: Introduced flags to enable/disable individual
5530         heuristics in the scheduler.
5532 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
5534         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
5535         config/i386/mingw-tls.c.
5536         * config/i386/mingw-tls.c: Removed.
5538 2009-07-13  Ira Rosen  <irar@il.ibm.com>
5540         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
5541         checks access only relevant statements.
5542         (vectorizable_reduction): Likewise.
5544 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
5546         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
5547         just for 32-bit case.
5549 2009-07-12  Jan Hubicka  <jh@suse.cz>
5551         PR tree-optimization/40585
5552         * except.c (expand_resx_expr): When there already is resume
5553         instruction, produce linked list.
5554         (build_post_landing_pads): Assert that resume is empty.
5555         (connect_post_landing_pads): Handle resume lists.
5556         (dump_eh_tree): Dump resume list.
5558 2009-07-12  Ira Rosen  <irar@il.ibm.com>
5560         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
5561         with additional argument.
5562         * tree-vectorizer.h (enum vect_def_type): Add
5563         vect_double_reduction_def.
5564         (vect_is_simple_reduction): Add argument.
5565         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
5566         indentation.
5567         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
5568         vect_is_simple_reduction with additional argument.
5569         (vect_analyze_loop_operations): Handle exit phi nodes in case of
5570         double reduction.
5571         (reduction_code_for_scalar_code): Handle additional codes by
5572         returning ERROR_MARK for them. Fix comment and indentation.
5573         (vect_is_simple_reduction): Fix comment, add argument to specify
5574         double reduction. Detect double reduction.
5575         (get_initial_def_for_induction): Fix indentation.
5576         (get_initial_def_for_reduction): Fix comment and indentation.
5577         Handle double reduction. Create initial definitions that do not
5578         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
5579         (vect_create_epilog_for_reduction): Fix comment, add argument to
5580         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
5581         epilogue result extraction. Create double reduction phi node and
5582         replace relevant uses.
5583         (vectorizable_reduction): Call vect_is_simple_reduction with
5584         additional argument. Fix indentation. Update epilogue code treatment
5585         according to the changes in reduction_code_for_scalar_code. Check
5586         for double reduction. Call vect_create_epilog_for_reduction with
5587         additional argument.
5588         * tree-vect-stmts.c (process_use): Handle double reduction, update
5589         documentation.
5590         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
5591         (vect_get_vec_def_for_operand): Likewise.
5593 2009-07-12  Danny Smith  <dansmister@gmail.com>
5595         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
5596         dllexport if !TREE_PUBLIC.
5597         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
5599 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
5601         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
5602         (avr_extra_arch_macro) Remove declatation.
5603         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
5604         (avr_extra_arch_macro) Declare as static.
5605         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
5607 2009-07-11  Jan Hubicka  <jh@suse.cz>
5609         PR middle-end/48388
5610         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
5612 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
5614         PR debug/40713
5615         * dwarf2out.c (dw_fde_struct): Add in_std_section and
5616         cold_in_std_section bits.
5617         (dwarf2out_begin_prologue): Initialize them.
5618         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
5619         if already covered by text_section or cold_text_section range.
5621         PR rtl-optimization/40667
5622         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
5623         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
5624         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
5625         * config/i386/i386.c (ix86_minimum_alignment): New function.
5626         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
5627         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
5628         * emit-rtl.c (gen_reg_rtx): Likewise.
5629         * function.c (assign_parms): Likewise.  If nominal_type needs
5630         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
5631         rather than passed_type's alignment.
5633         PR target/40668
5634         * function.c (assign_parm_setup_stack): Adjust
5635         MEM_OFFSET (data->stack_parm) if promoted_mode is different
5636         from nominal_mode on big endian.
5638 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
5640         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
5642 2009-07-10  DJ Delorie  <dj@redhat.com>
5644         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
5646 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
5648         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
5649         attribute.
5650         (thumb2_cbnz): Likewise.
5652 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
5654         PR target/39079
5655         * config.gcc (supported_defaults): Add synci.
5656         (with_synci): Add validation.
5657         (all_defaults): Add synci.
5658         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
5659         ISA_HAS_SYNCI.
5660         (synci): Same.
5661         * config/mips/mips.opt (msynci): New option.
5662         * config/mips/mips.c (mips_override_options): Warn on use of
5663         -msynci for targets that do now support it.
5664         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5665         msynci.
5666         * gcc/doc/invoke.texi (-msynci): Document the new option.
5667         * doc/install.texi (--with-synci): Document the new option.
5669 2009-07-10  Richard Guenther  <rguenther@suse.de>
5671         PR tree-optimization/40496
5672         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
5673         the PHI result with a compatible type.
5675 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5677         PR 25509
5678         PR 40614
5679         * c.opt (Wunused-result): New.
5680         * doc/invoke.texi: Document it.
5681         * c-common.c (c_warn_unused_result): Use it.
5683 2009-07-09  DJ Delorie  <dj@redhat.com>
5685         * targhooks.c (default_target_can_inline_p): Rename from
5686         default_target_option_can_inline_p.
5687         * targhooks.h (default_target_can_inline_p): Likewise.
5688         * target-def.h (TARGET_CAN_INLINE_P): Rename from
5689         TARGET_OPTION_CAN_INLINE_P.
5690         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
5691         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
5692         (mep_target_can_inline_p): Rename from
5693         mep_target_option_can_inline_p.
5695         PR target/40626
5696         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
5697         registers used to pass vectors.
5699         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
5701 2009-07-09  Tom Tromey  <tromey@redhat.com>
5703         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
5704         * config/mmix/mmix.c: Include dwarf2.h.
5705         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
5706         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
5707         * config/sh/sh.c: Include dwarf2.h.
5708         * config/i386/i386.c: Include dwarf2.h.
5709         * Makefile.in (DWARF2_H): Remove 'elf'.
5710         * except.c: Include dwarf2.h.
5711         * unwind-dw2.c: Include dwarf2.h.
5712         * dwarf2out.c: Include dwarf2.h.
5713         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
5714         * unwind-dw2-fde.c: Include dwarf2.h.
5715         * dwarf2asm.c: Include dwarf2.h.
5717 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5719         * haifa-sched.c (insn_finishes_cycle_p): New static function.
5720         (max_issue): Use it.
5721         * sched-int.h (struct sched_info: insn_finishes_block_p): New
5722         scheduler hook.
5723         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
5724         (region_sched_info): Update.
5725         * sched-ebb.c (ebb_sched_info): Update.
5726         * modulo-sched.c (sms_sched_info): Update.
5727         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
5729 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5731         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
5733 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
5735         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
5737 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
5739         PR middle-end/40692
5740         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
5741         arg1 with arg01 if arg1 is already INTEGER_CST.
5743 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
5745         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
5746         Transform (and (truncate)) into (truncate (and)).
5748 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
5750         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
5751         creating LHS paradoxical subregs.  Fix surrounding returns to
5752         use NULL_RTX rather than 0.
5754 2009-07-08  DJ Delorie  <dj@redhat.com>
5756         * config/mep/mep.c: (mep_option_can_inline_p): New.
5757         (TARGET_OPTION_CAN_INLINE_P): Define.
5759 2009-07-08  Mark Wielaard  <mjw@redhat.com>
5761         PR debug/40659
5762         * dwarf2out.c (add_data_member_location_attribute): When we have
5763         only a constant offset don't emit a new location description using
5764         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
5765         dwarf_version > 2.
5767 2009-07-08  Richard Henderson  <rth@redhat.com>
5769         PR target/38900
5770         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
5771         (enum reg_class): Add CLOBBERED_REGS.
5772         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5773         * config/i386/i386.c (ix86_conditional_register_usage): Moved
5774         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
5775         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
5776         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
5777         force 64-bit sibcalls into R11.
5778         * config/i386/constraints.md (U): New constraint.
5779         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
5780         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
5781         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
5783 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
5785         * basic-block.h (dump_regset, debug_regset): Remove duplicate
5786         prototypes.
5787         * c-objc-common.h (c_initialize_diagnostics): Ditto.
5788         * ebitmap.h (dump_ebitmap): Ditto.
5789         * optabs.h (optab_libfunc): Ditto.
5790         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
5791         * tree-flow.h (vect_can_force_dr_alignment_p,
5792         get_vectype_for_scalar_type): Ditto.
5793         (vectorize_loops): Move prototype to ...
5794         * tree-vectorizer.h: ... here. Also, adjust comment.
5795         (vect_set_verbosity_level): Remove duplicate prototype.
5796         * tree-ssa-loop.c: Include tree-vectorizer.h.
5797         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
5799 2009-07-08  Nick Clifton  <nickc@redhat.com>
5801         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
5802         forward slash.
5804 2009-07-08  DJ Delorie  <dj@redhat.com>
5806         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
5807         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
5808         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
5809         written to.
5810         * config/mep/intrinsics.md: Regenerated.
5811         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
5812         registers when asm() or calls are detected.
5814 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5816         PR c++/31246
5817         * gimplify.c (gimplify_expr): Propagate no_warning flag when
5818         gimplifying.
5819         * gimple (gimple_build_call_from_tree): Likewise.
5820         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
5821         no_warning flag before warning.
5823 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5825         * tree.c (set_expr_locus): Remove.
5826         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
5827         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
5828         EXPR_LOCATION.
5829         * gimplify.c (internal_get_tmp_var): Likewise.
5830         (gimplify_call_expr): Likewise.
5831         (gimplify_one_sizepos): Likewise.
5833 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
5835         PR debug/40666
5836         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
5837         to variables for debugging purposes.
5839 2009-06-23  Mark Loeser  <mark@halcy0n.com>
5841         PR build/40010
5842         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
5844 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5846         * pretty-print.c (pp_base_format): Remove %J.
5847         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5848         gcc_cxxdiag_char_table): Likewise.
5849         (init_dynamic_diag_info): Likewise.
5851 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5853         * pretty-print.c (pp_base_format): Remove %H.
5854         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
5855         gcc_cxxdiag_char_table): Likewise.
5856         (init_dynamic_diag_info): Likewise.
5857         * config/mep/mep.c (mep_select_section): Likewise.
5859 2009-07-07  Duncan Sands  <baldrick@free.fr>
5861         * final.c (pass_clean_state): Give the pass a name.
5862         * passes.c (pass_rest_of_compilation): Likewise.
5863         * tree-optimize.c (pass_all_optimizations): Likewise.
5865 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5867         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
5868         an extra 'decl' for error_at.
5870 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
5872         PR middle-end/40669
5873         * tree-tailcall.c (adjust_return_value_with_ops,
5874         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
5875         if it has complex or vector type.
5877 2009-07-07  Olivier Hainque  <hainque@adacore.com>
5879         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
5880         pthread symbols.
5882 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
5884         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
5886 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5888         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
5889         * c-decl.c: Likewise.
5890         * function.c: Likewise.
5891         * varasm.c: Likewise.
5892         * tree-ssa.c: Likewise.
5893         * c-common.c: Likewise.
5894         * tree-cfg.c: Likewise.
5895         * config/spu/spu.c: Likewise.
5896         * config/ia64/ia64.c: Likewise.
5897         * config/v850/v850.c: Likewise.
5899 2009-07-06  DJ Delorie  <dj@redhat.com>
5901         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
5902         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
5903         unspecified accesses to control registers.
5904         * config/mep/intrinsics.md: Regenerate.
5905         * config/mep/intrinsics.h: Regenerate.
5906         * config/mep/mep-intrin.h: Regenerate.
5908 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5910         * c-lex.c: Replace %H by an explicit location. Update all calls.
5911         * c-common.c: Likewise.
5912         * c-decl.c: Likewise.
5913         * c-typeck.c: Likewise.
5914         * fold-const.c: Likewise.
5915         * gimplify.c: Likewise.
5916         * stmt.c: Likewise.
5917         * tree-cfg.c: Likewise.
5918         * tree-ssa-loop-niter.c: Likewise.
5919         * tree-vrp.c: Likewise.
5920         * value-prof.c: Likewise.
5922 2009-07-06  Diego Novillo  <dnovillo@google.com>
5924         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
5925         if it has one.  Handle cases where VAR does not have an
5926         annotation or cfun is NULL.
5928 2009-07-06  Diego Novillo  <dnovillo@google.com>
5930         * tree.c: Include debug.h.
5931         (initialize_tree_contains_struct): New.
5932         (init_ttree): Call it.
5933         (tree_node_structure_for_code): Factor out of ...
5934         (tree_node_structure): ... here.
5935         * treestruct.def (TS_PHI_NODE): Remove.
5936         (TS_GIMPLE_STATEMENT): Remove.
5938 2009-07-06  Diego Novillo  <dnovillo@google.com>
5940         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
5941         (debug_tree_chain): Handle cycles.
5943 2009-07-06  Nick Clifton  <nickc@redhat.com>
5944             DJ Delorie  <dj@redhat.com>
5946         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
5947         __FMOVD_ENABLED__ is defined.
5948         * config/sh/sh.h
5949         (TARGET_FMOVD): Provide a default definition.
5950         (MASK_FMOVD): Likewise.
5951         (TARGET_CPU_CPP_BUILTINS): Define
5952         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
5953         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
5954         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
5955         (split for DF load from memory into register): Also handle
5956         MEMs which consist of REG+DISP addressing.
5957         (split for DF store from register to memory): Likewise.
5958         (movsf_ie): Always use single fp_mode.
5959         * config/sh/sh.c (sh_override_options): Do not automatically
5960         enable TARGET_MOVD for the SH2A when supporting doubles - leave
5961         that to the -mfmovd command line switch.
5962         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
5963         (fldi_ok): Always allow.
5964         * config/sh/sh.opt (mfmovd): Remove this switch.
5965         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
5967 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
5968             Kaz Kojima  <kkojima@gcc.gnu.org>
5970         PR rtl-optimization/30807
5971         * postreload.c (reload_combine): For every new use of REG_SUM,
5972         record the use of BASE.
5974 2009-07-06  Jan Hubicka  <jh@suse.cz>
5976         * params.def: Revert my accidental commit at 2009-06-30.
5978 2009-07-04  Ian Lance Taylor  <iant@google.com>
5980         PR target/40636
5981         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
5982         EXPORTED_CONST.
5983         (mingw_format_attribute_overrides): Likewise.
5985 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
5987         PR debug/40596
5988         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
5989         don't check cfa.reg.  Instead of cfa.indirect use
5990         fde && fde->drap_reg != INVALID_REGNUM test.
5992 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
5994         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
5996 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
5998         PR target/40587
5999         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
6001 2009-07-03  Richard Guenther  <rguenther@suse.de>
6003         PR tree-optimization/40640
6004         * tree-switch-conversion.c (build_arrays): Perform arithmetic
6005         in original type.
6007 2009-07-03  Jan Hubicka  <jh@suse.cz>
6009         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
6010         for size, reduce amount of inlining.
6012 2009-07-03  Richard Guenther  <rguenther@suse.de>
6014         PR middle-end/34163
6015         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
6016         if t +- x is known to not overflow and the conversion widens the
6017         operation.
6018         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
6020 2009-07-03  Jan Hubicka  <jh@suse.cz>
6022         * ipa-pure-const.c (analyze): Update loop optimizer init.
6023         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
6024         try_remove_empty_loop, remove_empty_loops): Remove.
6025         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
6026         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
6027         to mark regular loops as neccesary.
6028         (degenerate_phi_p): New function.
6029         (propagate_necessity, remove_dead_phis): Use it.
6030         (forward_edge_to_pdom): Likewise.
6031         (eliminate_unnecessary_stmts): Take care to remove uses of results of
6032         virtual PHI nodes that became unreachable.
6033         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
6034         * tree-flow.h (remove_empty_loops): Remove.
6035         * passes.c (init_optimization_passes): Remove.
6037 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
6039         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
6040         can_create_pseudo_p.
6041         (*fix_trunc<mode>_i387_1): Ditto.
6042         (*floathi<mode>2_1): Ditto.
6043         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
6044         (*fistdi2_1): Ditto.
6045         (*fist<mode>2_1): Ditto.
6046         (frndintxf2_floor): Ditto.
6047         (*fist<mode>2_floor_1): Ditto.
6048         (frndintxf2_ceil): Ditto.
6049         (*fist<mode>2_ceil_1): Ditto.
6050         (frndintxf2_trunc): Ditto.
6051         (frndintxf2_mask_pm): Ditto.
6052         (fxam<mode>2_i387_with_temp): Ditto.
6053         * config/i386/sse.md (mulv16qi3): Ditto.
6054         (*sse2_mulv4si3): Ditto.
6055         (mulv2di3): Ditto.
6056         (sse4_2_pcmpestr): Ditto.
6057         (sse4_2_pcmpistr): Ditto.
6059 2009-07-03  Jan Hubicka  <jh@suse.cz>
6061         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
6062         (mark_stmt_necessary): Set it.
6063         (mark_operand_necessary): Set it.
6064         (mark_control_dependent_edges_necessary): Set it.
6065         (mark_virtual_phi_result_for_renaming): New function.
6066         (get_live_post_dom): New function.
6067         (forward_edge_to_pdom): New function.
6068         (remove_dead_stmt): Fix handling of control dependences.
6069         (tree_dce_init): Init new bitmap.
6070         (tree_dce_done): Free it.
6072 2009-07-02  Richard Guenther  <rguenther@suse.de>
6074         PR bootstrap/40617
6075         * tree-ssa-structalias.c (new_var_info): Initialize
6076         is_restrict_var.
6078 2009-07-02  Jan Hubicka  <jh@suse.cz>
6080         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
6081         local.
6083 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
6085         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
6086         instead of recomputing it.  Adjust calls.
6087         (emit_store_flag): Adjust recursive calls.
6089 2009-07-02  Richard Guenther  <rguenther@suse.de>
6091         * tree-ssa-live.c (remove_unused_locals): Do not remove
6092         heap variables.
6093         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
6094         of DECL_EXTERNAL for HEAP variables.
6095         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
6096         HEAP variables.  Do not adjust RESTRICT vars.
6097         (find_what_var_points_to): Nobody cares if something
6098         points to READONLY.
6100 2009-07-02  Ben Elliston  <bje@au.ibm.com>
6102         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
6103         pc_low and pc_high declarations to the top of the function.
6105 2009-07-01  DJ Delorie  <dj@redhat.com>
6107         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
6108         registers as fixed.
6109         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
6110         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
6111         unspecified accesses to control registers.
6112         * config/mep/intrinsics.md: Regenerate.
6113         * config/mep/intrinsics.h: Regenerate.
6114         * config/mep/mep-intrin.h: Regenerate.
6116 2009-07-01  Anthony Green  <green@moxielogic.com>
6118         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6119         instruction when possible.
6120         (moxie_expand_prologue): Ditto.  Also, save an instruction and
6121         some complexity by popping off of $r12 instead of $sp.
6122         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
6123         operands.
6125 2009-07-01  Richard Henderson  <rth@redhat.com>
6127         PR bootstrap/40347
6128         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
6129         contained no insns, reposition note before last insn.
6131 2009-07-01  Richard Henderson  <rth@redhat.com>
6133         PR debug/40431
6134         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
6135         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
6137 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6139         PR bootstrap/40558
6140         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
6141         darwin9 for printing reg addresses with %y.
6143 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
6145         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
6146         truncation from operands in binary operations.
6148 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
6150         Revert:
6151         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
6152         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
6153         subreg of op0 to the original op0.
6155         * expmed.c (store_bit_field_1): Use a temporary as the destination
6156         instead of a paradoxical subreg when we need to truncate the result.
6158 2009-07-01  DJ Delorie  <dj@redhat.com>
6160         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
6161         names to VLIW variants.
6162         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
6163         * config/mep/intrinsics.md: Regenerate.
6164         * config/mep/intrinsics.h: Regenerate.
6165         * config/mep/mep-intrin.h: Regenerate.
6167 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
6169         PR debug/40462
6170         * jump.c (returnjump_p): Revert last patch.
6171         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
6173 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6175         PR target/40575
6176         * pa.md (casesi32p): Use jump table label to determine the offset
6177         of the jump table.
6178         (casesi64p): Likewise.
6180         * pa.c (forward_branch_p): Return bool type.  Use instruction
6181         addresses when available.  Assert that INSN has a jump label.
6182         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
6183         have a jump label.
6185 2009-07-01  Richard Guenther  <rguenther@suse.de>
6187         PR tree-optimization/19831
6188         * tree-ssa-dce.c (propagate_necessity): Calls to functions
6189         that only act as barriers do not make any previous stores necessary.
6190         * tree-ssa-structalias.c (handle_lhs_call): Delay making
6191         HEAP variables global, do not add a constraint from nonlocal.
6192         (find_func_aliases): Handle escapes through return statements.
6193         (compute_points_to_sets): Make escaped HEAP variables global.
6195 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
6197         PR bootstrap/40597
6198         * expmed.c (emit_store_flag): Perform a conversion if necessary,
6199         after reducing a DImode cstore to SImode.
6201 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
6203         * expr.c (expand_expr_real_1): Reinstate fallthrough to
6204         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
6206 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
6208         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
6209         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
6210         to 0.
6211         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
6212         and umod_optab if TARGET_BSD_DIVMOD.
6213         * config/vax/lib1funcs.asm: New file.
6214         * config/vax/t-linux: New file.
6215         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
6217 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
6219         PR c++/40566
6220         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
6221         to type arguments that have void type.
6223         PR debug/40573
6224         * dwarf2out.c (gen_formal_parameter_die): Call
6225         equate_decl_number_to_die if node is different from origin.
6227 2009-06-30  Anthony Green  <green@moxielogic.com>
6229         Clean up moxie port for --enable-build-with-cxx.
6230         * config/moxie/moxie.c (moxie_function_value): First two
6231         parameters are const_tree, not tree.
6232         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
6233         (REG_CLASS_NAMES): Ditto.
6234         (REGNO_REG_CLASS): Ditto.
6235         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
6236         (moxie_function_value): Fix constyness of arguments.
6238 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6240         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
6241         finalize_size_functions before further processing.
6242         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
6243         (variable_size): Call self_referential_size on size expressions
6244         that contain a PLACEHOLDER_EXPR.
6245         (size_functions): New static variable.
6246         (copy_self_referential_tree_r): New static function.
6247         (self_referential_size): Likewise.
6248         (finalize_size_functions): New global function.
6249         * tree.c: Include tree-inline.h.
6250         (push_without_duplicates): New static function.
6251         (find_placeholder_in_expr): New global function.
6252         (substitute_in_expr) <tcc_declaration>: Return the replacement object
6253         on equality.
6254         <tcc_expression>: Likewise.
6255         <tcc_vl_exp>: If the replacement object is a constant, try to inline
6256         the call in the expression.
6257         * tree.h (finalize_size_functions): Declare.
6258         (find_placeholder_in_expr): Likewise.
6259         (FIND_PLACEHOLDER_IN_EXPR): New macro.
6260         (substitute_placeholder_in_expr): Update comment.
6261         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
6262         is true.
6263         (copy_tree_body_r): Likewise.
6264         (copy_tree_body): New static function.
6265         (maybe_inline_call_in_expr): New global function.
6266         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
6267         (maybe_inline_call_in_expr): Declare.
6268         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
6269         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
6270         GIMPLE_H.
6272 2009-06-30  Richard Guenther  <rguenther@suse.de>
6274         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
6275         continue walking.
6276         (propagate_necessity): Do not mark reaching defs of stores
6277         as necessary.
6279 2009-06-30  Jan Hubicka  <jh@suse.cz>
6281         * cfgloopanal.c (check_irred): Move into ...
6282         (mark_irreducible_loops): ... here; return true if ireducible
6283         loops was found.
6284         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
6285         (analyze_function): Try to prove loop finiteness.
6286         * cfgloop.h (mark_irreducible_loops): Update prototype.
6287         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
6289 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
6291         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
6293 2009-06-30  Ira Rosen  <irar@il.ibm.com>
6295         PR tree-optimization/40542
6296         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
6297         types.
6299 2009-06-30  Martin Jambor  <mjambor@suse.cz>
6301         PR tree-optimization/40582
6302         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
6303         than useless_type_conversion_p.
6304         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
6305         proper place.
6307 2009-06-30  Martin Jambor  <mjambor@suse.cz>
6309         PR middle-end/40554
6310         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
6312 2009-06-30  Richard Guenther  <rguenther@suse.de>
6314         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
6315         use ao_ref references.
6316         (walk_aliased_vdefs): Likewise.
6317         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
6318         * tree-ssa-dce.c (struct ref_data): Remove.
6319         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
6320         (mark_aliased_reaching_defs_necessary): Adjust.
6321         (mark_all_reaching_defs_necessary_1): Likewise.
6323 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
6325         PR boostrap/40597
6326         * expmed.c (emit_cstore): New name of emit_store_flag_1.
6327         (emit_store_flag_1): Extract from emit_store_flag, adjust
6328         calls to (what now is) emit_cstore.
6329         (emit_store_flag): Call emit_store_flag_1 and also use it
6330         for what used to be recursive calls.
6332 2009-06-30  Wei Guozhi  <carrot@google.com>
6334         PR/40416
6335         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
6336         if the target bb post dominates from bb.
6337         * config/i386/i386.c (memory_address_length): Check existence of base
6338         register before using it.
6340 2009-06-30  Nick Clifton  <nickc@redhat.com>
6341             DJ Delorie  <dj@redhat.com>
6343         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
6344         __FMOVD_ENABLED__ is defined.
6345         * config/sh/sh.h
6346         (TARGET_FMOVD): Provide a default definition.
6347         (MASK_FMOVD): Likewise.
6348         (TARGET_CPU_CPP_BUILTINS): Define
6349         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
6350         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
6351         two fmov instructions depending upon whether TARGET_FMOVD is
6352         enabled.
6353         (split for DF load from memory into register): Also handle
6354         MEMs which consist of REG+DISP addressing.
6355         (split for DF store from register to memory): Likewise.
6356         * config/sh/sh.opt (mfmovd): Remove this switch.
6357         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
6358         * config/sh/sh.c (sh_override_options): Do not automatically
6359         enable TARGET_MOVD for the SH2A when supporting doubles - leave
6360         that to the -mfmovd command line switch.
6362         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
6363         the SH4 and SH4A.
6364         (fldi_ok): Always allow.
6365         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
6367 2009-06-29  DJ Delorie  <dj@redhat.com>
6369         * doc/install.texi (mep-x-elf): Correct chip's full name.
6371 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6373         * doc/extend.texi: Fix typo.
6375 2009-06-29  Tom Tromey  <tromey@redhat.com>
6377         * dwarf2.h: Remove.
6378         * Makefile.in (DWARF2_H): New variable.
6379         (except.o): Use it.
6380         (dwarf2out.o): Likewise.
6381         (dwarf2asm.o): Likewise.
6382         * config/i386/t-i386: Use DWARF2_H.
6383         * except.c: Include elf/dwarf2.h.
6384         * unwind-dw2.c: Include elf/dwarf2.h.
6385         * dwarf2out.c: Include elf/dwarf2.h.
6386         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
6387         <dtprel>: New field.
6388         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
6389         (size_of_loc_descr): Likewise.
6390         (output_loc_operands_raw): Likewise.
6391         (output_loc_operands): Handle new dtprel field.
6392         (loc_checksum): Update.
6393         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
6394         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
6395         * unwind-dw2-fde.c: Include elf/dwarf2.h.
6396         * dwarf2asm.c: Include elf/dwarf2.h.
6397         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
6398         * config/mmix/mmix.c: Include elf/dwarf2.h.
6399         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
6400         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
6401         * config/sh/sh.c: Include elf/dwarf2.h.
6402         * config/i386/i386.c: Include elf/dwarf2.h.
6404 2009-06-29  DJ Delorie  <dj@redhat.com>
6406         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
6408         * doc/extend.texi: Add MeP attributes and pragmas.
6409         * doc/invoke.text: Add MeP Options.
6410         * doc/contrib.texi: Add MeP contribution.
6411         * doc/md.texi: Add MeP constraints.
6412         * doc/install.texi: Add MeP target.
6414 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
6416         * target.h (struct gcc_target): Add frame_pointer_required field.
6417         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
6418         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
6419         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
6420         hook.
6421         * reload1.c (update_eliminables): (Ditto.).
6422         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
6423         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
6424         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
6426         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
6428         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
6429         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6430         (arm_frame_pointer_required): New function.
6432         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
6433         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6434         (avr_frame_pointer_required_p): Declare as static.
6435         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
6437         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
6438         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6439         (bfin_frame_pointer_required): Make as static, change return type
6440         to bool.
6441         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
6443         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
6444         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6445         (cris_frame_pointer_required): New function.
6447         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
6449         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
6450         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6451         (fr30_frame_pointer_required): New function.
6453         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
6454         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6455         (frv_frame_pointer_required): Make as static, change return type
6456         to bool.
6457         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
6459         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
6460         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6461         (ix86_frame_pointer_required): Make as static, change return type to
6462         bool.
6463         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
6465         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
6466         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6468         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
6470         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
6472         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
6474         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
6475         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6476         (mips_frame_pointer_required): Make as static.
6477         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
6479         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
6480         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6481         (mmix_frame_pointer_required): Mew function.
6483         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
6484         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6486         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
6488         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
6490         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
6492         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
6493         (CAN_ELIMINATE): Redefine.
6494         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6495         (sparc_frame_pointer_required): New function.
6496         (sparc_can_eliminate): New function.
6497         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
6499         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
6500         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6502         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
6503         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6504         (xtensa_frame_pointer_required): Make as static, change return type
6505         to bool.
6506         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
6507         Remove.
6509 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
6511         * doc/plugins.texi: Document PLUGIN_START_UNIT.
6512         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
6513         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
6514         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
6515         (register_callback): Handle PLUGIN_START_UNIT.
6516         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
6518 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6520         * tree.c (process_call_operands): Propagate TREE_READONLY from the
6521         operands.
6522         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
6523         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
6525 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
6527         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
6528         move cost.
6530 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
6532         * doc/extend.texi (Additional Floating Types): __float128 is also
6533         supported on i386 targets.
6535 2009-06-29  Richard Guenther  <rguenther@suse.de>
6537         PR middle-end/14187
6538         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6539         flag.
6540         (pt_solutions_same_restrict_base): Declare.
6541         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
6542         flag.
6543         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
6544         (make_constraint_from, make_copy_constraint): Move earlier.
6545         (make_constraint_from_heapvar): New function.
6546         (make_constraint_from_restrict): Likewise.
6547         (handle_lhs_call): Use it.
6548         (find_func_aliases): Use it to track conversions to restrict
6549         qualified pointers.
6550         (struct fieldoff): Add only_restrict_pointers flag.
6551         (push_fields_onto_fieldstack): Initialize it.
6552         (create_variable_info_for): Track global restrict qualified pointers.
6553         (intra_create_variable_infos): Use make_constraint_from_heapvar.
6554         Track restrict qualified pointer arguments.
6555         (set_uids_in_ptset): Use varinfo is_global_var flag.
6556         (find_what_var_points_to): Set the vars_contains_restrict flag.
6557         Always create the points-to solution for sets including restrict tags.
6558         (pt_solutions_same_restrict_base): New function.
6559         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
6560         qualified pointers use pt_solutions_same_restrict_base as
6561         additional source for disambiguation.
6563 2009-06-29  Richard Guenther  <rguenther@suse.de>
6565         PR middle-end/38212
6566         * alias.c (find_base_decl): Remove.
6567         (get_deref_alias_set_1): Remove restrict handling.
6568         * c-common.c (c_apply_type_quals_to_decl): Do not set
6569         DECL_POINTER_ALIAS_SET.
6570         * gimplify.c (find_single_pointer_decl_1): Remove.
6571         (find_single_pointer_decl): Likewise.
6572         (internal_get_tmp_var): Remove restrict handling.
6573         (gimple_regimplify_operands): Likewise.
6574         * omp-low.c (expand_omp_atomic_pipeline): Do not set
6575         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
6576         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
6577         * tree.c (restrict_base_for_decl): Remove.
6578         (init_ttree): Do not allocate it.
6579         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
6580         LABEL_DECL_UID for label decls.
6581         (copy_node_stat): Do not copy restrict information.
6582         (decl_restrict_base_lookup): Remove.
6583         (decl_restrict_base_insert): Likewise.
6584         (print_restrict_base_statistics): Likewise.
6585         (dump_tree_statistics): Do not call print_restrict_base_statistics.
6586         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
6587         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
6588         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
6589         (LABEL_DECL_UID): Adjust.
6590         (DECL_BASED_ON_RESTRICT_P): Remove.
6591         (DECL_GET_RESTRICT_BASE): Likewise.
6592         (SET_DECL_RESTRICT_BASE): Likewise.
6593         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
6595         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
6596         instead of DECL_POINTER_ALIAS_SET.
6597         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6598         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6599         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6601 2009-06-29  Richard Guenther  <rguenther@suse.de>
6603         PR tree-optimization/40579
6604         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
6605         the IL to simplify has constants that overflowed.
6607 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
6609         PR tree-optimization/40550
6610         * tree-vect-generic.c (expand_vector_operations_1): Compute in
6611         vector_compute_type only when the size of vector_compute_type is
6612         less than the size of type.
6614 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
6616         * fold-const.c (contains_label_1): Fix comments.
6617         (contains_label_p): Do not walk trees multiple time.
6619 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6621         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
6622         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
6623         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
6624         ix86_fp_comparison_operator.
6625         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
6626         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
6627         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
6628         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
6629         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
6630         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
6631         (related splits): Change predicate to ix86_fp_comparison_operator.
6632         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
6633         instead of ix86_fp_comparison_codes.
6634         (ix86_trivial_fp_comparison_operator,
6635         ix86_fp_comparison_operator): New.
6636         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
6637         (ix86_expand_compare): Eliminate last two parameters.
6638         (ix86_fp_jump_nontrivial_p): Kill.
6639         * config/i386/i386.c (put_condition_code): Eliminate call to
6640         ix86_fp_comparison_codes and subsequent assertion.
6641         (ix86_fp_comparison_codes): Eliminate.
6642         (ix86_fp_swap_condition): New.
6643         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
6644         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
6645         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
6646         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
6647         and ix86_fp_swap_condition.
6648         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
6649         Use ix86_fp_comparison_strategy.
6650         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
6651         (ix86_fp_jump_nontrivial_p): Eliminate.
6652         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
6653         call to ix86_expand_compare.
6654         (ix86_split_fp_branch, ix86_expand_setcc,
6655         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
6656         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
6658 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6660         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
6661         related to jump_clobbers.
6662         * config/arm/arm.md (conds): Remove jump_clob case.
6663         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
6664         splits): Change comparison_operator to arm_comparison_operator.
6665         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
6666         Eliminate.
6668 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6670         * dojump.c (do_compare_rtx_and_jump): Try swapping the
6671         condition for floating point modes.
6672         * expmed.c (emit_store_flag_1): Move here a bigger part
6673         of emit_store_flag.
6674         (emit_store_flag): Try swapping the condition for floating point
6675         modes.
6676         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
6678 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6680         * expr.c (expand_expr_real_1): Just use do_store_flag.
6681         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
6682         emit_store_flag_force.
6683         * expmed.c (emit_store_flag_force): Copy here trick
6684         previously in expand_expr_real_1.  Try reversing the comparison.
6685         (emit_store_flag_1): Work if target is NULL.
6686         (emit_store_flag): Work if target is NULL, using the result mode
6687         from the comparison.  Use split_comparison, restructure final part
6688         to simplify conditionals.
6690 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6692         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
6693         * dojump.c (do_jump): Change handling of floating-point
6694         ops to use just do_compare_and_jump.
6695         (split_comparison): New.
6696         (do_compare_rtx_and_jump): Add here logic coming previously
6697         in do_jump, using split_comparison.
6699 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
6701         PR target/40489
6702         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
6704 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6706         * tree-ssa-alias.c: Fix unintentional commit.
6708 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6710         * passes.c (execute_one_pass): Fix unintentional commit.
6712 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6714         * df-problems.c (df_set_seen, df_unset_seen): Delete.
6715         (df_rd_local_compute, df_md_local_compute): Inline them.
6717         (df_md_scratch): New.
6718         (df_md_alloc, df_md_free): Allocate/free it.
6719         (df_md_local_compute): Only include live registers in init.
6720         (df_md_transfer_function): Prune the in-set computed by
6721         the confluence function, and the gen-set too.
6723 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6725         PR rtl-optimization/26854
6726         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
6727         * df-problems.c (df_rd_add_problem): Fix comment.
6728         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
6729         df_md_simulate_artificial_defs_at_top,
6730         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
6731         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
6732         df_md_transfer_function, df_md_init, df_md_confluence_0,
6733         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
6734         problem_MD, df_md_add_problem): New.
6735         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
6736         df_md_get_bb_info): New.
6737         (DF_LAST_PROBLEM_PLUS1): Adjust.
6739         * Makefile.in (fwprop.o): Include domwalk.h.
6740         * fwprop.c: Include domwalk.h.
6741         (reg_defs, reg_defs_stack): New.
6742         (bitmap_only_bit_between): Remove.
6743         (process_defs): New.
6744         (process_uses): Use reg_defs and local_md instead of
6745         bitmap_only_bit_between and local_rd.
6746         (single_def_use_enter_block): New, from build_single_def_use_links.
6747         (single_def_use_leave_block): New.
6748         (build_single_def_use_links): Remove code moved to
6749         single_def_use_enter_block, invoke domwalk.
6750         (use_killed_between): Adjust comment.
6752 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6754         * bitmap.h (bitmap_ior_and_into): New.
6755         * bitmap.c (bitmap_ior_and_into): New.
6757 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6759         * domwalk.h (struct dom_walk_data): Remove all callbacks except
6760         before_dom_children_before_stmts and after_dom_children_after_stmts.
6761         Rename the two remaining callbacks to just before_dom_children and
6762         after_dom_children. Remove other GIMPLE statement walking bits.
6763         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
6764         * graphite.c: Do not include domwalk.h.
6765         * tree-into-ssa.c (interesting_blocks): New global.
6766         (struct mark_def_sites_global_data): Remove it and names_to_rename.
6767         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
6768         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
6769         now that they're not domwalk callbacks.
6770         (rewrite_initialize_block): Rename to...
6771         (rewrite_enter_block): ... this, place after called functions.  Test
6772         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
6773         (rewrite_finalize_block): Rename to...
6774         (rewrite_leave_block): ... this, place after called functions.
6775         (rewrite_update_init_block): Rename to...
6776         (rewrite_update_enter_block): ... this, place after called functions.
6777         Test interesting_blocks, call rewrite_update_stmt and
6778         rewrite_update_phi_arguments.
6779         (rewrite_update_fini_block): Rename to...
6780         (rewrite_leave_block): ... this, place after called functions.
6781         (rewrite_blocks): Remove last argument, simplify initialization of
6782         walk_data.
6783         (mark_def_sites_initialize_block): Rename to...
6784         (mark_def_sites_block): ... this, call mark_def_sites.
6785         (mark_def_sites_blocks): Remove argument, simplify initialization of
6786         walk_data.
6787         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
6788         (update_ssa): Likewise.
6789         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
6790         callback.
6791         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
6792         (dom_opt_initialize_block): Rename to...
6793         (dom_opt_enter_block): ... this, place after called functions.  Walk
6794         statements here, inline propagate_to_outgoing_edges.
6795         (dom_opt_finalize_block): Rename to...
6796         (dom_opt_leave_block): ... this, place after called functions.
6797         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
6798         domwalk callback.
6799         (dse_enter_block, dse_record_phi): New.
6800         (dse_record_phis): Delete.
6801         (dse_finalize_block): Rename to...
6802         (dse_leave_block): ... this.
6803         (tree_ssa_dse): Simplify initialization of walk_data.
6804         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
6805         Adjust initialization of walk_data.
6806         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
6807         * tree-ssa-loop-phiopt.c (get_non_trapping):
6808         Adjust initialization of walk_data.
6809         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
6810         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
6811         it's not a domwalk callback.
6812         (uncprop_initialize_block): Rename to...
6813         (dse_enter_block): ... this, call uncprop_into_successor_phis.
6814         (dse_finalize_block): Rename to...
6815         (dse_leave_block): ... this.
6816         (tree_ssa_uncprop): Simplify initialization of walk_data.
6817         * Makefile.in: Adjust dependencies.
6819 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
6821         * arm.md (casesi): Fix test for Thumb1.
6822         (thumb1_casesi_internal_pic): Likewise.
6823         (thumb1_casesi_dispatch): Likewise.
6825 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
6827         * config/arm/arm-cores.def: Added core cortex-m0.
6828         * config/arm/arm-tune.md: Regenerated.
6829         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
6831 2009-06-26  DJ Delorie  <dj@redhat.com>
6833         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
6835         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
6836         the scheduler doesn't tag jump insns.
6838 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
6840         * c-decl.c (merge_decls): Re-indent.
6842 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
6844         PR c/39902
6845         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
6846         Special-case decimal float constants.
6848 2009-06-26  Richard Henderson  <rth@redhat.com>
6850         * function.h (struct function): Add cannot_be_copied_reason,
6851         and cannot_be_copied_set.
6852         * tree-inline.c (has_label_address_in_static_1): Rename from
6853         inline_forbidden_p_2; don't set inline_forbidden_reason here.
6854         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
6855         don't set inline_forbidden_reason.
6856         (copy_forbidden): New function, split out of inline_forbidden_p.
6857         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
6858         (inline_forbidden_p): Use copy_forbidden.
6859         (tree_versionable_function_p): Likewise.
6860         (inlinable_function_p): Merge into tree_inlinable_function_p.
6861         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
6862         * ipa-cp.c (ipcp_versionable_function_p): New function.
6863         (ipcp_cloning_candidate_p): Use it.
6864         (ipcp_node_modifiable_p): Likewise.
6866 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
6868         * builtins.c (expand_builtin_alloca): Handle builtin alloca
6869         that is marked not to be inlined. Remove flag_mudflap use.
6870         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
6871         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
6873 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
6875         PR bootstrap/40338
6876         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
6877         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
6879 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
6881         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
6882         shared libgcc.
6883         (__mingwthr_remove_key_dtor): Likewise.
6885 2009-06-26  Richard Guenther  <rguenther@suse.de>
6887         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
6889 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
6891         PR middle-end/40525
6892         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
6893         try the non-cond_exec path also.
6895 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6897         PR target/40468
6898         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
6899         (output_cbranch): Use new functions.
6900         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
6901         Likewise.
6903 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
6904             Pat Haugen  <pthaugen@us.ibm.com>
6905             Revital Eres <ERES@il.ibm.com>
6907         * config/rs6000/rs6000.c (print_operand): Correct lossage message
6908         for %c error.  Add %x support to print VSX registers as a unified
6909         register set, instead of separate float and altivec registers.
6910         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
6911         %y case, and add support for VSX pre-modify addresses.
6912         (output_toc): Add assert for CONST containing an integer constant
6913         in the PLUS case.
6914         (rs6000_adjust_cost): Add POWER7 support.
6915         (insn_must_be_first_in_group): Ditto.
6916         (insn_must_be_last_in_group): Ditto.
6917         (rs6000_emit_popcount): Ditto.
6918         (rs6000_vector_mode_supported_p): Ditto.
6920         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
6921         Change some of the functions called by macros to being called
6922         through a pointer, so debug functions can be inserted if
6923         -mdebug=addr or -mdebug=cost.
6924         (rs6000_preferred_reload_class_ptr): Ditto.
6925         (rs6000_secondary_reload_class_ptr): Ditto.
6926         (rs6000_secondary_memory_needed_ptr): Ditto.
6927         (rs6000_cannot_change_mode_class_ptr): Ditto.
6928         (rs6000_secondary_reload_inner): Ditto.
6929         (rs6000_legitimize_reload_address): Ditto.
6930         (rs6000_legitimize_reload_address_ptr): Ditto.
6931         (rs6000_mode_dependent_address): Ditto.
6932         (rs6000_mode_dependent_address_ptr): Ditto.
6934         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
6935         function to return true if the mode allows reg + integer
6936         addresses.
6937         (virtual_stack_registers_memory_p): New function to return true if
6938         the address refers to a virtual stack register.
6939         (rs6000_legitimate_offset_address_p): Move code to say whether a
6940         mode supports reg+int addressing to reg_offset_addressing_ok_p and
6941         call it.
6942         (rs6000_legitimate_address_p): Add checks for modes that only can
6943         do reg+reg addressing.  Start adding VSX support.
6944         (rs6000_legitimize_reload_address): Ditto.
6945         (rs6000_legitimize_address): Ditto.
6946         (rs6000_debug_legitimate_address_p): New debug functions for
6947         -mdebug=addr and -mdebug=cost.
6948         (rs6000_debug_rtx_costs): Ditto.
6949         (rs6000_debug_address_costs): Ditto.
6950         (rs6000_debug_adjust_cost): Ditto.
6951         (rs6000_debug_legitimize_address): Ditto.
6952         (rs6000_legitimize_reload_address_ptr): Point to call normal
6953         function or debug function.  Make functions called via pointer
6954         static.
6955         (rs6000_mode_dependent_address_ptr): Ditto.
6956         (rs6000_secondary_reload_class_ptr): Ditto.
6957         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
6958         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
6959         into a friendlier error.
6960         (rs6000_init_builtins): Add initial VSX support.
6961         (rs6000_adjust_cost): Fix some spacing issues.
6963         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
6964         (REG_CLASS_NAMES): Ditto.
6965         (REG_CLASS_CONTENTS): Ditto.
6966         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
6967         pointer, to add -mdebug=addr support.
6968         (CANNOT_CHANGE_MODE_CLASS): Ditto.
6969         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
6970         -mdebug=addr support.
6971         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
6972         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
6973         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
6975         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
6976         16-bit values.
6977         (bswapsi*): Set attribute types for load/store.  Add combiner
6978         patterns to eliminate zero extend on 64-bit.
6979         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
6980         stdbrx if the hardware supports those instructions.
6982 2009-06-25  Ian Lance Taylor  <iant@google.com>
6984         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
6985         (Link Options): Document -static-libstdc++.
6987 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6989         PR target/38731
6990         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
6991         DATA_ALIGNMENT instead.
6993 2009-06-25  Richard Guenther  <rguenther@suse.de>
6995         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
6996         indirect references against the callused/escaped solutions.
6997         (call_may_clobber_ref_p_1): Likewise.
6999 2009-06-25  Martin Jambor  <mjambor@suse.cz>
7001         PR tree-optimization/40493
7002         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
7003         (enum unscalarized_data_handling): New type.
7004         (handle_unscalarized_data_in_subtree): Return what has been done.
7005         (load_assign_lhs_subreplacements): Handle left flushes differently.
7006         (sra_modify_assign): Use unscalarized_data_handling, simplified
7007         condition determining whether to remove the statement.
7009 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
7011         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
7012         excerpt - @ should be doubled for texinfo.
7014 2009-06-24  Ian Lance Taylor  <iant@google.com>
7016         * config/arc/arc.c: Include "df.h".
7017         (arc_attribute_table): Make static.  Move higher in file.
7018         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
7019         (output_shift): Initialize n later to avoid warning.
7020         * config/arm/arm.c (arm_attribute_table): Make static.  Move
7021         higher in file.
7022         * config/avr/avr.c (avr_attribute_table): Make static.  Move
7023         higher in file.
7024         (reg_class_tab): Change array type from int to enum reg_class.
7025         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
7026         LABEL_REF.
7027         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
7028         (lshrhi3_out): Likewise.
7029         (class_likely_spilled_p): Change return type to bool.
7030         (avr_rtx_costs): Use local code variable with enum type.
7031         * config/avr/avr.md (movmemhi): Use add_reg_note.
7032         (andhi3, andsi3): Don't use AS2 with "and".
7033         (iorhi3, iorsi3): Don't use AS2 with "or".
7034         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
7035         * config/crx/crx.c: Include "df.h".
7036         (crx_attribute_table): Make static.
7037         * config/m32r/m32r.c: Include "df.h".
7038         (m32r_attribute_table): Make static.  Move higher in file.
7039         (pop): Use add_reg_note.
7040         (block_move_call): Change 0 to LCT_NORMAL in function call.
7041         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
7042         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
7043         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
7044         declare, not just when TREE_CODE is defined.
7045         * config/m68hc11/m68hc11.c: Include "expr.h".
7046         (m68hc11_attribute_table): Make static.  Move higher in file.
7047         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
7048         function call.
7049         (m68hc11_register_indirect_p): Likewise.
7050         (m68hc11_function_arg_padding): Change return type to enum
7051         direction.
7052         (emit_move_after_reload): Use add_reg_note.
7053         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
7054         (m68hc11_split_logical): Likewise.
7055         (m68hc11_rtx_costs): Add local code_and outer_code variables with
7056         enum type.
7057         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
7058         to VOIDmode in function call.
7059         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
7060         tree is defined.
7061         (m68hc11_split_logical): Update declaration.
7062         (m68hc11_function_arg_padding): Update declaration.
7063         * config/mcore/mcore.c (regno_reg_class): Change form array of int
7064         to array of enum reg_class.
7065         (mcore_attribute_table): Make static.  Move higher in file.
7066         (mcore_rtx_costs): Add cast to enum type.
7067         * config/mcore/mcore.h (regno_reg_class): Update declaration.
7068         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
7069         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
7070         in file.
7071         * config/sh/predicates.md (trapping_target_operand): Rename and to
7072         and_expr.
7073         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
7074         higher in file.
7075         * config/spu/spu.c (spu_attribute_table): Make static.  Move
7076         higher in file.
7077         * config/v850/v850.c (v850_attribute_table): Make static.  Move
7078         higher in file.
7079         (v850_rtx_costs): Use local code with enum type.
7080         (expand_epilogue): Add cast.
7081         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
7083 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
7085         PR target/40515
7086         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
7087         -m2a-single-only and -m2a-nofpu.
7088         * config/sh/sh.opt: Document m2a generates FPU code.
7090 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
7092         * defaults.h (CAN_ELIMINATE): Provide default.
7093         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7094         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
7095         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
7096         * config/spu/spu.h (CAN_ELIMINATE): Delete.
7097         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
7098         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
7099         * config/cris/cris.h (CAN_ELIMINATE): Delete.
7100         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
7101         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
7102         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
7104 2009-06-24  DJ Delorie  <dj@redhat.com>
7106         * mep-ext-cop.cpu: Fix copyright notice.
7107         * mep-default: Fix copyright notice.
7108         * mep-core: Fix copyright notice.
7109         * mep: Fix copyright notice.
7110         * mep-ivc2: Fix copyright notice.
7111         * mep-c5: Fix copyright notice.
7113 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
7115         * doc/contrib.texi (Contributors):
7117 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7119         PR middle-end/40501
7120         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
7121         src and dst operands if necessary.
7123 2009-06-23  DJ Delorie  <dj@redhat.com>
7125         Add MeP port.
7126         * config.gcc: Add mep support.
7127         * recog.c: Resurrect validate_replace_rtx_subexp().
7128         * recog.h: Likewise.
7129         * config/mep/: Add new port:
7130         * config/mep/constraints.md: New file.
7131         * config/mep/default.h: New file.
7132         * config/mep/intrinsics.h: New file.
7133         * config/mep/intrinsics.md: New file.
7134         * config/mep/ivc2-template.h: New file.
7135         * config/mep/mep-c5.cpu: New file.
7136         * config/mep/mep-core.cpu: New file.
7137         * config/mep/mep-default.cpu: New file.
7138         * config/mep/mep-ext-cop.cpu: New file.
7139         * config/mep/mep-intrin.h: New file.
7140         * config/mep/mep-ivc2.cpu: New file.
7141         * config/mep/mep-lib1.asm: New file.
7142         * config/mep/mep-lib2.c: New file.
7143         * config/mep/mep-pragma.c: New file.
7144         * config/mep/mep-protos.h: New file.
7145         * config/mep/mep-tramp.c: New file.
7146         * config/mep/mep.c: New file.
7147         * config/mep/mep.cpu: New file.
7148         * config/mep/mep.h: New file.
7149         * config/mep/mep.md: New file.
7150         * config/mep/mep.opt: New file.
7151         * config/mep/predicates.md: New file.
7152         * config/mep/t-mep: New file.
7154 2009-06-23  Ian Lance Taylor  <iant@google.com>
7156         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
7157         from loose_warn into c_loose_warn and from strict_warn into
7158         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
7159         --enable-build-with-cxx.  Set and substitute
7160         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
7161         * Makefile.in (CXXFLAGS): New variable.
7162         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
7163         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
7164         the default is the same as $(STRICT_WARN).
7165         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
7166         (CXX): New variable.
7167         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
7168         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
7169         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
7170         (HOST_LIBS): New variable.
7171         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
7172         (ALL_CXXFLAGS): New variable.
7173         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
7174         * doc/install.texi (Configuration): Document
7175         --enable-build-with-cxx, --with-stage1-ldflags,
7176         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
7177         * configure: Rebuild.
7179 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7181         * config/arm/arm.c (arm_override_options): Fix braces and formatting
7182         from previous commit.
7184 2009-06-23  Ian Lance Taylor  <iant@google.com>
7186         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
7188 2009-06-23  Ian Lance Taylor  <iant@google.com>
7190         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
7191         with ATTRIBUTE_UNUSED.
7193 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7194             Pat Haugen  <pthaugen@us.ibm.com>
7195             Revital Eres  <eres@il.ibm.com>
7197         * config.in (HAVE_AS_POPCNTD): Add default definition.
7198         (HAVE_AS_LWSYNC): Ditto.
7200         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
7201         release number.
7202         (gcc_cv_as_powerpc_cmpb): Ditto.
7203         (gcc_cv_as_powerpc_dfp): Ditto.
7204         (gcc_cv_as_powerpc_vsx): Ditto.
7205         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
7206         supporting the popcntd/lwsync instructions.
7207         (gcc_cv_as_powerpc_lwsync): Ditto.
7208         * configure: Regenerate.
7210         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
7211         -mcpu=native and -mcpu=power7.
7212         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
7214         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
7215         a variable instead of a mask to reduce the number of mask bits.
7216         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
7217         (-mbit-word): Ditto.
7218         (-mregnames): Ditto.
7219         * config/rs6000/rs6000.opt (-mupdate): Ditto.
7220         (-mfused-madd): Ditto.
7222         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
7223         2.06 instructions.
7224         (-mvsx): New switch for VSX instructions.
7225         (-misel): Move from a variable to a mask to allow it to be set by
7226         -mcpu=.
7228         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
7229         function declaration to an array declaration.
7230         (rs6000_hard_regno_nregs): New external array declaration.
7232         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
7233         files included by rs6000.md.
7235         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7236         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
7238         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
7239         a target mask.
7240         (rs6000_debug_reg): New -mdebug= variables.
7241         (rs6000_debug_addr): Ditto.
7242         (rs6000_debug_cost): Ditto.
7243         (rs6000_pmode): New variable to hold Pmode.
7244         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
7245         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
7246         calculated at compiler start.
7247         (rs6000_hard_regno_nregs): Change function to an array which holds
7248         HARD_REGNO_NREGS calculated at compiler start.
7249         (rs6000_explicit_options): Delete isel field.
7250         (rs6000_vector_unit): New array to hold which vector unit
7251         supports arithmetic options for a given type.
7252         (rs6000_vector_mem): New array to hold which vector unit supports
7253         memory reference operations for a given type.
7254         (rs6000_vector_align): New array to given the alignment of each
7255         vector type.
7256         (power7_cost): New basic costs for power7.
7257         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
7258         (rs6000_hard_regno_nregs_internal): New function, moved from
7259         HARD_REGNO_NREGS, to calculate the number of registers each hard
7260         register takes for each type.
7261         (rs6000_debug_reg_print): New function for -mdebug=reg support.
7262         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
7263         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
7264         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
7265         unit information here so it is calculated once at compiler startup
7266         time.
7267         (rs6000_override_options): Make -misel a target mask.  Add more
7268         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
7269         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
7270         -mdebug=cost.
7271         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
7272         (rs6000_handle_option): Move -misel from variable to target mask.
7273         (rs6000_builtin_mask_for_load): Add VSX support.
7274         (rs6000_conditional_register_usage): Ditto.
7275         (USE_ALTIVEC_FOR_ARG_P): Ditto.
7276         (function_arg_boundary): Ditto.
7277         (rs6000_expand_builtin): Ditto.
7278         (def_builtin): Make abort message a little friendlier.
7279         (rs6000_emit_int_cmove): Add support for 64-bit isel.
7281         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
7282         assembler support the popcntd instruction instead of a vsx
7283         instruction to enable power7 support.
7284         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
7285         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
7286         option to the assembler if -mcpu=native.
7287         (ASM_CPU_NATIVE_SPEC): Ditto.
7288         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
7289         ISA 2.06 features.
7290         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
7291         the lwsync instruction.
7292         (enum processor_type): Add PROCESSOR_POWER7.
7293         (rs6000_debug_reg): New -mdebug= options.
7294         (rs6000_debug_addr): Ditto.
7295         (rs6000_debug_cost): Ditto.
7296         (rs6000_isel): Delete.
7297         (enum rs6000_vector): New enum to say what vector unit we have.
7298         (VECTOR_UNIT_*): New macros to say which vector unit has
7299         arithmetic operations for a given type.
7300         (VECTOR_MEM_*): New macros to say which vector unit has memory
7301         operations for a given type.
7302         (TARGET_LDBRX): Whether the machine supports the ldbrx
7303         instruction.
7304         (TARGET_ISEL): Delete, -misel moved to be a mask.
7305         (TARGET_ISEL64): New macro for 64-bit isel support.
7306         (UNITS_PER_VSX_WORD): New macro.
7307         (POINTER_SIZE): Move to be an external variable, rather than
7308         calculating whether we are generating 32 ot 64-bit code.
7309         (Pmode): Ditto.
7310         (STACK_BOUNDARY): Add VSX support.
7311         (LOCAL_ALIGNMENT): Ditto.
7312         (SLOW_UNALIGNED_ACCESS): Ditto.
7313         (VSX_REGNO_P): New macro for VSX support.
7314         (VFLOAT_REGNO_P): Ditto.
7315         (VINT_REGNO_P): Ditto.
7316         (VLOGICAL_REGNO_P): Ditto.
7317         (VSX_VECTOR_MODE): Ditto.
7318         (VSX_SCALAR_MODE): Ditto.
7319         (VSX_MODE): Ditto.
7320         (VSX_MOVE_MODE): Ditto.
7321         (VSX_REG_CLASS_P): Ditto.
7322         (HARD_REGNO_NREGS): Instead of calling a function, use an array
7323         lookup.
7324         (UNITS_PER_SIMD_WORD): Add VSX support.
7325         (MODES_TIEABLE_P): Ditto.
7326         (STARTING_FRAME_OFFSET): Ditto.
7327         (STACK_DYNAMIC_OFFSET): Ditto.
7328         (EPILOGUE_USES): Ditto.
7329         (REGNO_REG_CLASS): Move to array lookup.
7330         (CLASS_MAX_NREGS): Ditto.
7331         (rs6000_vector_reg_class): Add declaration.
7332         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
7333         overlap with the floating point and Altivec registers.
7335         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
7337         * config/rs6000/driver-rs6000.c (asm_names): New static array to
7338         give the appropriate asm switches if -mcpu=native.
7339         (host_detect_local_cpu): Add support for "asm".
7340         (host_detect_local_cpu): Follow GNU code guidelines for name.
7342         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
7343         -mbit-word to a variable instead of being a target mask.
7345         * config/rs6000/sync.md (lwsync): If the assembler supports it,
7346         emit the lwsync instruction instead of emitting the instruction as
7347         an integer constant.
7349         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
7350         fixuns_trundfsi2, move expander into rs6000.md.
7352         * config/rs6000/rs6000.md (cpu): Add power7.
7353         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
7354         (logical predicate patterns): Change the single instruction
7355         primitives that set CR0 to be fast_compare instead of compare.
7356         (norsi*): Ditto.
7357         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
7358         (popcntddi2): Ditto.
7359         (popcount<mode>): Ditto.
7360         (floating multiply/add insns): Name the floating point
7361         multiply/add insns.
7362         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
7363         (isel_unsigned_<mode>): Ditto.
7364         (fixuns_trundfsi2): Move expander here from spe.md.
7365         (smindi3): Define if we have -misel on 64-bit systems.
7366         (smaxdi3): Ditto.
7367         (umindi3): Ditto.
7368         (umaxdi3): Ditto.
7370 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
7372         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
7373         extra_objs.
7374         * config/avr/avr.c (avr_current_device): New variable.
7375         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
7376         (avr_arch, mcu_type_s): Move to avr.h.
7377         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
7378         default_data_section_start fields.
7379         (avr_arch): Moved from avr.c.
7380         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
7381         library_name fields.
7382         (avr_current_device, avr_mcu_types, avr_arch_types,
7383         avr_device_to_arch, avr_device_to_data_start,
7384         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
7385         (EXTRA_SPEC_FUNCTIONS): Define.
7386         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
7387         options mapping. Use device_to_arch and device_to_data_start insted.
7388         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
7389         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
7390         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
7391         * config/avr/driver-avr.c: New file.
7392         * config/avr/avr-devices.c: New file.
7394 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
7396         * var-tracking.c (unshare_variable): Force initialized to
7397         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
7398         (set_variable_part): Likewise.
7399         (struct variable_union_info): Remove pos_src field.
7400         (vui_vec, vui_allocated): New variables.
7401         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
7402         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
7403         == 1 use a simpler sorting algorithm.  Compute pos field right
7404         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
7405         Avoid quadratic comparison if !flag_var_tracking_uninit.
7406         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
7407         unshare_variable unconditionally.
7408         (dataflow_set_different_2): Removed.
7409         (dataflow_set_different): Don't traverse second hash table.
7410         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
7411         unconditionally to var_reg_set or var_mem_set.
7412         (emit_notes_in_bb): Likewise.
7413         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
7414         unshare_variable.
7415         (emit_note_insn_var_location): Don't set initialized to
7416         VAR_INIT_STATUS_INITIALIZED early.
7417         (vt_finalize): Free vui_vec if needed, clear vui_vec and
7418         vui_allocated.
7419         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
7421         * tree-object-size.c (addr_object_size): Instead of checking
7422         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
7423         are no FIELD_DECLs following it.
7425 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
7427         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
7428         order to match bswaps with signed source operands.
7430 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7432         * sdbout.c (sdbout_one_type): Fix braces in switch.
7434 2009-06-23  Richard Guenther  <rguenther@suse.de>
7436         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
7437         member.
7438         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
7439         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
7440         var_callused, callused_tree, var_storedanything, storedanything_tree,
7441         var_integer, integer_tree): Remove global variables.
7442         (new_var_info): Do not pass new id, append the new var to the
7443         global variable vector.
7444         (do_ds_constraint): Use is_global_var member of the variable-info.
7445         (new_scalar_tmp_constraint_exp): Adjust.
7446         (create_function_info_for): Likewise.
7447         (create_variable_info_for): Likewise.
7448         (find_what_var_points_to): Remove dead code.
7449         (init_base_vars): Simplify.
7450         (compute_points_to_sets): Adjust.
7452 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
7454         * combine.c (try_combine): Dump information about the insns we're
7455         combining.
7457 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
7459         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
7460         check when calling force_to_mode on TRUNCATE's operand.
7462 2009-06-22  Ian Lance Taylor  <iant@google.com>
7464         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
7466 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
7468         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
7470 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7472         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
7473         override library linkage flags such as -static-libgcc or
7474         -shared-libgcc.
7476 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7478         * config/m68k/m68k-devices.def: Add line for MCF5221x.
7480 2009-06-22  Ian Lance Taylor  <iant@google.com>
7482         * config/linux.opt: Put mglibc ahead of muclibc.
7484         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
7485         for duplicate decls.
7487 2009-06-22  Matthias Klose  <doko@ubuntu.com>
7489         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
7491 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
7493         PR objc/28050
7494         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
7495         instead of NULL if a parser error occurs.
7497 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7499         * dwarf2out.c (dwarf2_debug_hooks): Initialize
7500         non-DWARF2_DEBUGGING_INFO version.
7502 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
7504         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
7505         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
7507         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
7508         (LIBGCC2_TF_CEXT): Define.
7509         (TF_SIZE): Define.
7511 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7513         PR target/40463
7514         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
7516 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7518         * config/arm/arm.c (arm_override_options): Disable
7519         -mcaller-super-interworking and -mcallee-super-interworking.
7520         * doc/invoke.texi (ARM Options): Document this.
7522 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
7524         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
7525         * config/arm/constraints.md (j): New constraint for movw operands.
7526         (N): Remove thumb2 meaning.
7527         * config/arm/arm.md (*arm_movw): Delete.
7528         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
7529         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
7530         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
7532 2009-06-22  Martin Jambor  <mjambor@suse.cz>
7534         PR tree-optimization/40492
7535         * tree-sra.c (sra_modify_assign): Pass zero offsets to
7536         build_ref_for_offset.
7538 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
7540         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
7541         JUMP_TABLE_DATA_P predicates where applicable.
7542         * auto-inc-dec.c: Ditto.
7543         * builtins.c: Ditto.
7544         * caller-save.c: Ditto.
7545         * calls.c: Ditto.
7546         * cfgcleanup.c: Ditto.
7547         * cfglayout.c: Ditto.
7548         * cfgrtl.c: Ditto.
7549         * combine.c: Ditto.
7550         * combine-stack-adj.c: Ditto.
7551         * cse.c: Ditto.
7552         * cselib.c: Ditto.
7553         * dbxout.c: Ditto.
7554         * df-scan.c: Ditto.
7555         * dse.c: Ditto.
7556         * dwarf2asm.c: Ditto.
7557         * dwarf2out.c: Ditto.
7558         * emit-rtl.c: Ditto.
7559         * except.c: Ditto.
7560         * explow.c: Ditto.
7561         * expmed.c: Ditto.
7562         * expr.c: Ditto.
7563         * final.c: Ditto.
7564         * function.c: Ditto.
7565         * fwprop.c: Ditto.
7566         * gcse.c: Ditto.
7567         * genpreds.c: Ditto.
7568         * genrecog.c: Ditto.
7569         * ifcvt.c: Ditto.
7570         * ira-costs.c: Ditto.
7571         * ira-lives.c: Ditto.
7572         * jump.c: Ditto.
7573         * loop-iv.c: Ditto.
7574         * lower-subreg.c: Ditto.
7575         * modulo-sched.c: Ditto.
7576         * optabs.c: Ditto.
7577         * postreload.c: Ditto.
7578         * print-rtl.c: Ditto.
7579         * recog.c: Ditto.
7580         * reginfo.c: Ditto.
7581         * regmove.c: Ditto.
7582         * reload1.c: Ditto.
7583         * reload.c: Ditto.
7584         * reorg.c: Ditto.
7585         * rtlanal.c: Ditto.
7586         * rtl.c: Ditto.
7587         * sched-vis.c: Ditto.
7588         * sdbout.c: Ditto.
7589         * sel-sched-ir.c: Ditto.
7590         * simplify-rtx.c: Ditto.
7591         * targhooks.c: Ditto.
7592         * var-tracking.c: Ditto.
7593         * vmsdbgout.c: Ditto.
7595 2009-06-22  Matthias Klose  <doko@ubuntu.com>
7597         * Makefile.in (install-plugin): Always use DESTDIR.
7599 2009-06-22  Olivier Hainque  <hainque@adacore.com>
7601         * config/pa/pa.c (output_call): Don't optimize post call jumps
7602         into return address adjustments if the call may throw.
7604 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
7606         * arm.c (thumb1_output_casesi): New function.
7607         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
7608         optimizing for size or PIC.
7609         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
7610         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
7611         (casesi): Handle Thumb-1 when optimizing for size or PIC.
7612         (thumb1_casesi_internal_pic): New expand rule.
7613         (thumb1_casesi_dispatch): New pattern.
7614         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
7615         thumb-1 mode.
7616         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
7617         in the text seciton when PIC or optimizing for size.
7618         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7619         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
7620         preservation properties of code.
7621         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
7622         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
7623         (__gnu_thumb1_case_si): New function.
7624         * t-arm (LIB1ASMSRC): Define here.
7625         (LIB1ASMFUNCS): Add some common functions.
7626         * t-arm-elf (LIB1ASMSRC): Delete.
7627         (LIB1ASMFUNCS): Append to existing set.
7628         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7629         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7630         * t-symbian (LIB1ASMFUNCS): Likewise.
7631         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7632         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7634 2009-06-21  Richard Guenther  <rguenther@suse.de>
7636         PR tree-optimization/38729
7637         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
7638         to loops with a single exit if -fno-expensive-optimizations.
7640 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
7642         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
7643         (dataflow_set): Change vars type from htab_t to shared_hash.
7644         (shared_hash_pool, empty_shared_hash): New variables.
7645         (vars_clear): Removed.
7646         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
7647         shared_hash_find_slot_unshare, shared_hash_find_slot,
7648         shared_hash_find_slot_noinsert, shared_hash_find): New
7649         static inlines.
7650         (shared_hash_unshare, shared_hash_destroy): New functions.
7651         (unshare_variable): Unshare set->vars if shared, use
7652         shared_hash_htab.
7653         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
7654         (get_init_value, find_src_set_src, dump_dataflow_set,
7655         clobber_variable_part, emit_notes_for_differences): Use
7656         shared_hash_htab.
7657         (dataflow_set_init): Remove second argument, set vars to
7658         empty_shared_hash instead of creating a new htab.
7659         (dataflow_set_clear): Call shared_hash_destroy and set vars
7660         to empty_shared_hash instead of calling vars_clear.
7661         (dataflow_set_copy): Don't call vars_copy, instead just share
7662         the src htab with dst.
7663         (variable_union): Use shared_hash_*, use initially NO_INSERT
7664         lookup if set->vars is shared.  Don't keep slot cleared before
7665         calling unshare_variable.  Unshare set->vars if needed.
7666         Even ->refcount == 1 vars must be unshared if set->vars is shared
7667         and var needs to be modified.
7668         (variable_canonicalize): New function.
7669         (dataflow_set_union): If dst->vars is empty, just share src->vars
7670         with dst->vars and traverse with variable_canonicalize to canonicalize
7671         and unshare what is needed.
7672         (dataflow_set_different): If old_set and new_set use the same shared
7673         htab, they aren't different.  If number of htab elements is different,
7674         htabs are different.  Use shared_hash_*.
7675         (dataflow_set_destroy): Call shared_hash_destroy instead of
7676         htab_delete.
7677         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
7678         second argument to dataflow_set_init.
7679         (vt_initialize): Likewise.  Initialize shared_hash_pool and
7680         empty_shared_hash, move bb in/out initialization afterwards.
7681         Use variable_htab_free instead of NULL as changed_variables del hook.
7682         (variable_was_changed): Change type of second argument to pointer to
7683         dataflow_set.  When inserting var into changed_variables, bump
7684         refcount.  Unshare set->vars if set is shared htab and slot needs to
7685         be cleared.
7686         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
7687         lookup if set->vars is shared.  Unshare set->vars if needed.
7688         Even ->refcount == 1 vars must be unshared if set->vars is shared
7689         and var needs to be modified.  Adjust variable_was_changed caller.
7690         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
7691         vars must be unshared if set->vars is shared and var needs to be
7692         modified.  Adjust variable_was_changed caller.
7693         (emit_note_insn_var_location): Don't pool_free var.
7694         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
7695         instead of 1.
7696         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
7697         free_alloc_pool on shared_hash_pool.
7699 2009-06-20  Anthony Green  <green@moxielogic.com>
7701         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
7702         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
7704 2009-06-20  Richard Guenther  <rguenther@suse.de>
7706         * tree-ssa-structalias.c (find_func_aliases): For memset use
7707         a constraint from NULL if we memset to zero.
7708         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
7709         we explicitly handle that do not read from memory.
7710         (call_may_clobber_ref_p_1): Properly handle builtins that may
7711         set errno.
7713 2009-06-20  Richard Guenther  <rguenther@suse.de>
7715         PR tree-optimization/40495
7716         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
7717         (new_scalar_tmp_constraint_exp): New function.
7718         (process_constraint): Do not create temporary decls.
7719         (process_all_all_constraints): Likewise.
7720         (handle_const_call): Likewise.
7721         (create_function_info_for): Do not set decl.
7723 2009-06-19  Ian Lance Taylor  <iant@google.com>
7725         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
7726         (rs6000_attribute_table): Make static; move before use.
7728 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
7730         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
7731         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
7732         Propagate the TREE_READONLY flag without overwriting it.
7733         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
7734         Propagate the TREE_READONLY flag onto the result.
7735         (process_call_operands): Move around.  Use correct constant value.
7737 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7739         PR target/40482
7740         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
7741         * config/arm/arm.md: Likewise.
7743 2009-06-19  Ian Lance Taylor  <iant@google.com>
7745         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
7746         to GIMPLE_ERROR_MARK.
7748         * c-typeck.c (build_conditional_expr): Add op1_original_type and
7749         op2_original_type parameters.  Warn about using different enum types.
7750         * c-parser.c (c_parser_conditional_expression): Pass original
7751         types to build_conditional_expr.
7752         * c-tree.h (build_conditional_expr): Update declaration.
7754 2009-06-19  Ian Lance Taylor  <iant@google.com>
7756         * config/i386/i386.c (ix86_function_specific_save): Test that
7757         fields match values, rather than testing the values are in a
7758         certain range.
7760 2009-06-19  Richard Guenther  <rguenther@suse.de>
7762         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7763         ADDR_EXPR pointers.
7764         (ptr_derefs_may_alias_p): Likewise.
7765         (ptr_deref_may_alias_ref_p_1): New function.
7766         (ptr_deref_may_alias_ref_p): Likewise.
7767         (ref_maybe_used_by_call_p_1): Handle builtins that are not
7768         covered by looking at the ESCAPED solution.
7769         (call_may_clobber_ref_p_1): Likewise.
7770         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
7771         Handle NULL_TREE offset.  Do not produce redundant constraints.
7772         (process_all_all_constraints): New helper function.
7773         (do_structure_copy): Use it.
7774         (handle_lhs_call): Likewise.
7775         (find_func_aliases): Handle some builtins with pointer arguments
7776         and/or return values explicitly.
7778 2009-06-19  Ian Lance Taylor  <iant@google.com>
7780         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
7782 2009-06-19  Ian Lance Taylor  <iant@google.com>
7784         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
7786 2009-06-19  Ian Lance Taylor  <iant@google.com>
7788         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
7789         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
7790         version.
7792         * c-decl.c (finish_decl): If -Wc++-compat, warn about
7793         uninitialized const.
7795 2009-06-19  Ian Lance Taylor  <iant@google.com>
7797         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
7798         all uses.
7800         * c-decl.c (in_struct, struct_types): Remove.
7801         (struct c_binding): Add in_struct field.
7802         (c_binding_ptr): Define type, along with VEC.
7803         (struct c_struct_parse_info): Define.
7804         (struct_parse_info): New static variable.
7805         (bind): Initialize in_struct field.
7806         (start_struct): Remove enclosing_in_struct and
7807         enclosing_struct_types parameters.  Add
7808         enclosing_struct_parse_info parameter.  Change all callers.  Set
7809         struct_parse_info rather than in_struct and struct_types.
7810         (grokfield): If -Wc++-compat and there is a symbol binding for the
7811         field name, set the in_struct flag and push it on the
7812         struct_parse_info->fields vector.
7813         (warn_cxx_compat_finish_struct): New static function.
7814         (finish_struct): Remove enclosing_in_struct and
7815         enclosing_struct_types parameters.  Add
7816         enclosing_struct_parse_info parameter.  Change all callers.  Don't
7817         set C_TYPE_DEFINED_IN_STRUCT here.  Call
7818         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
7819         parameter.  Only push on struct_types if warn_cxx_compat.
7820         (finish_enum): Only push on struct_types if warn_cxx_compat.
7821         (declspecs_add_type): Add loc parameter.  Change all callers.
7822         Change all error calls to error_at.  Pass loc, not input_location,
7823         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
7824         defined in a struct.  If -Wc++-compat and parsing a struct, record
7825         that a typedef name was used.
7826         * c-parser.c (c_parser_declspecs): Get location to pass to
7827         declspecs_add_type.
7828         (c_parser_struct_or_union_specifier): Update calls to start_struct
7829         and finish_struct.
7830         * c-tree.h (struct c_struct_parse_info): Declare.
7831         (finish_struct, start_struct): Update declarations.
7832         (declspecs_add_type): Update declaration.
7834 2009-06-19  Ian Lance Taylor  <iant@google.com>
7836         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
7837         variable with an anonymous type.
7839 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
7841         * see.c: Remove for real.
7843 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
7845         * optabs.h (enum optab_index): Add new OTI_significand.
7846         (significand_optab): Define corresponding macro.
7847         * optabs.c (init_optabs): Initialize significand_optab.
7848         * genopinit.c (optabs): Implement significand_optab using
7849         significand?f2 patterns.
7850         * builtins.c (expand_builtin_mathfn): Handle
7851         BUILT_IN_SIGNIFICAND{,F,L}.
7852         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
7853         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7855         * config/i386/i386.md (significandxf2, significand<mode>2): New
7856         expanders to implement significandf, significand and significandl
7857         built-ins as inline x87 intrinsics.
7859 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
7861         * config/avr/avr.c (avr_override_options): Remove setting value of
7862         PARAM_INLINE_CALL_COST.
7864 2009-06-18  Richard Henderson  <rth@redhat.com>
7866         PR 40488
7867         * tree-pass.h (TDF_ASMNAME): New.
7868         * tree-dump.c (dump_options): Add asmname.
7869         * doc/invoke.texi: Document it.
7871         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
7872         (dump_decl_name): ...here.
7873         (dump_function_name): New flags arg; mind TDF_ASMNAME.
7874         (dump_generic_node): Update dump_function_name calls.
7875         (print_call_name): New flags arg; update all dump calls.
7876         * diagnostic.h (print_call_name): Update.
7877         * gimple-pretty-print.c (dump_gimple_call): Update.
7879 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7881         PR target/40470
7882         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
7884 2009-06-18  Diego Novillo  <dnovillo@google.com>
7886         * doc/plugins.texi: Document plugin_is_GPL_compatible.
7887         * plugin.c (str_license): Declare.
7888         (try_init_one_plugin): Assert that the symbol
7889         'plugin_is_GPL_compatible' exists.
7891 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
7893         * see.c: Remove.
7894         * Makefile.in (OBJS-common): Remove see.o.
7895         (see.o): Remove.
7896         * common.opt (fsee): Mark as preserved for backward compatibility.
7897         * opts.c (common_handle_option): Add OPT_fsee to the backward
7898         compatibility section.
7899         * passes.c (init_optimization_passes, pass_see): Remove pass.
7900         * timevar.def (TV_SEE): Remove.
7901         * tree-pass.h (pass_see): Remove declaration.
7902         * doc/invoke.texi (-fsee): Remove documentation.
7904 2009-06-18  Martin Jambor  <mjambor@suse.cz>
7906         * tree-sra.c: Include statistics.h
7907         (sra_stats): New variable.
7908         (sra_initialize): Clear sra_stats.
7909         (create_access_replacement): Increment sra_stats.replacements.
7910         (get_access_replacement): Do not return twice.
7911         (analyze_all_variable_accesses): Increment statistics counter by the
7912         number of scalarized aggregates.
7913         (generate_subtree_copies): Increment sra_stats.subtree_copies.
7914         (sra_modify_expr): Increment sra_stats.exprs.
7915         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
7916         (sra_modify_assign): Increment sra_stats.exprs,
7917         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
7918         (perform_intra_sra): Update statistics counters.
7919         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
7921 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
7923         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
7924         (arm_scalar_mode_supported_p): New function.
7926 2009-06-18  Paul Brook  <paul@codesourcery.com>
7927             Sandra Loosemore  <sandra@codesourcery.com>
7929         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
7930         (__extendhfsf2, __truncsfhf2): Define.
7931         * config/arm/fp16.c: New file.
7932         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
7933         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
7935 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
7937         * doc/extend.texi (Half-Precision): New section.
7938         * doc/invoke.texi (Option Summary): List -mfp16-format.
7939         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
7940         * config/arm/arm.opt (mfp16-format=): New.
7941         * config/arm/arm.c: Include intl.h.
7942         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
7943         (TARGET_INVALID_RETURN_TYPE): Redefine.
7944         (TARGET_PROMOTED_TYPE): Redefine.
7945         (TARGET_CONVERT_TO_TYPE): Redefine.
7946         (arm_fp16_format): Define.
7947         (all_fpus): Add entry for neon-fp16.
7948         (fp_model_for_fpu): Likewise.
7949         (struct fp16_format): Declare.
7950         (all_fp16_formats): Define.
7951         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
7952         functions.
7953         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
7954         and no ldrh.
7955         (arm_legitimate_index_p): Treat HFmode like HImode.
7956         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
7957         (coproc_secondary_reload_class): Special-case HFmode.
7958         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
7959         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
7960         (arm_init_fp16_builtins): New.
7961         (arm_init_builtins): Call it.
7962         (arm_invalid_parameter_type): New.
7963         (arm_invalid_return_type): New.
7964         (arm_promoted_type): New.
7965         (arm_convert_to_type).
7966         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
7967         format.
7968         (arm_emit_fp16_const): New function.
7969         (arm_mangle_type): Mangle __fp16 as "Dh".
7970         * config/arm/arm.h (TARGET_VFPD32): Make it know about
7971         FPUTYPE_NEON_FP16.
7972         (TARGET_NEON_FP16): New.
7973         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
7974         (enum fputype): Add FPUTYPE_NEON_FP16.
7975         (enum arm_fp16_format_type): Declare.
7976         (arm_fp16_format): Declare.
7977         (LARGEST_EXPONENT_IS_NORMAL): Define.
7978         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
7979         * config/arm/arm-modes.def (HFmode): Define.
7980         * config/arm/vfp.md: (*movhf_vfp): New.
7981         (extendhfsf2): New.
7982         (truncsfhf2): New.
7983         * config/arm/arm.md: (fpu): Add neon_fp16.
7984         (floatsihf2, floatdihf2): New.
7985         (fix_trunchfsi2, fix_trunchfdi2): New.
7986         (truncdfhf2): New.
7987         (extendhfdf2): New.
7988         (movhf): New.
7989         (*arm32_movhf): New.
7990         (*thumb1_movhf): New.
7991         (consttable_2): Add check for HFmode constants.
7992         (consttable_4): Handle HFmode constants.
7994 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
7996         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
7998 2009-06-17  Olivier Hainque  <hainque@adacore.com>
8000         * collect2.c (main): Use CONST_CAST2 to perform char ** to
8001         const char ** conversion in AIX specific section.
8003 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
8005         * config/i386/i386.c (ix86_special_builtin_type): Remove
8006         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
8007         (bdesc_special_args): Updated.
8008         (ix86_init_mmx_sse_builtins): Likewise.
8009         (ix86_expand_special_args_builtin): Likewise.
8011 2009-06-17  Richard Henderson  <rth@redhat.com>
8013         * tree-pretty-print.c (maybe_dump_asm_name): New.
8014         (dump_decl_name): Use it.
8015         (PRINT_FUNCTION_NAME): Merge into...
8016         (dump_function_name): ... here.  Use maybe_dump_asm_name.
8018 2009-06-17  Cary Coutant  <ccoutant@google.com>
8020         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
8021         Change caller.
8022         * debug.c (struct gcc_debug_hooks): Change placeholder for
8023         source_line hook.
8024         (debug_nothing_int_charstar_int): Replaced by...
8025         (debug_nothing_int_charstar_int_bool): ...this.
8026         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
8027         source_line prototype.
8028         (debug_nothing_int_charstar_int): Replaced by...
8029         (debug_nothing_int_charstar_int_bool): ...this.
8030         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
8031         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
8032         Output is_stmt operand when necessary.
8033         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
8034         (notice_source_line): Add is_stmt parameter.
8035         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
8036         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
8037         Change callers.
8038         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
8039         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
8041 2009-06-17  Ian Lance Taylor  <iant@google.com>
8043         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
8044         Change all uses.
8045         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
8046         call uses.
8048 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
8050         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
8051         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
8052         tree_strip_sign_nop_conversions and
8053         tree_ssa_strip_useless_type_conversions rather than stripping
8054         the operations here.
8055         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
8056         Declare them.
8057         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
8058         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
8059         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
8060         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
8061         functions.
8063 2009-06-17  Michael Eager  <eager@eagercon.com>
8065         * config/rs6000/constraints.md (register_constraint "d"): New.
8066         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
8067         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8068         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
8069         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
8070         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8071         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
8072         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
8073         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
8074         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
8075         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
8076         __fctiwz): Same.
8077         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
8078         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
8079         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
8080         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
8081         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
8082         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
8083         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
8084         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
8085         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
8086         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
8087         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
8088         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
8089         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
8090         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
8092 2009-06-16  Ian Lance Taylor  <iant@google.com>
8094         * profile.c (total_num_never_executed): Don't define.
8095         (compute_branch_probabilities): Don't count or print
8096         num_never_executed.
8097         (init_branch_prob): Don't set total_num_never_executed.
8098         (end_branch_prob): Don't print total_num_never_executed.
8100 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
8102         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
8104 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
8106         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
8107         (nabstd2_fpr): Same.
8109 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
8111         * expr.c (expand_assignment): Change complex type check.
8113 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
8115         * doc/plugins.texi (Building GCC plugins): Added new section.
8117 2009-06-17  Ian Lance Taylor  <iant@google.com>
8119         * c-pch.c (get_ident): Don't set size of templ array.
8120         (pch_init): Don't set size of partial_pch array.
8122         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
8123         string constant to intialize an array whose size is the length of
8124         the string.
8126 2009-06-17  Richard Guenther  <rguenther@suse.de>
8128         PR tree-optimization/40389
8129         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
8130         to addressable types.
8131         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
8133 2009-06-17  Richard Guenther  <rguenther@suse.de>
8135         PR middle-end/40460
8136         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
8137         if there is no evolution of left in the loop bail out.
8138         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
8139         chrec_fold_multiply.
8141 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
8142             Janis Johnson  <janis187@us.ibm.com>
8144         PR target/39254
8145         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
8146         for the symbol ref of a constant that is the source of a move
8147         - nor for any other not-obvious-label-ref constants.
8149 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
8151         * plugin.c (position_pass): Skip newly inserted pass during list
8152         traversal to avoid repeated insertion.
8154 2009-06-16  Ian Lance Taylor  <iant@google.com>
8156         * vec.h (VEC_stack_alloc): Define different version if
8157         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
8158         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
8159         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
8160         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
8162 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
8164         * config.gcc (extra_headers): Add ia32intrin.h for x86.
8166         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
8167         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
8168         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
8169         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
8170         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
8171         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8172         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8173         (bdesc_special_args): Add __builtin_ia32_rdtsc and
8174         __builtin_ia32_rdtscp.
8175         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
8176         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
8177         and __builtin_ia32_rorhi.
8178         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
8179         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8180         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8181         (ix86_expand_args_builtin): Likewise.
8182         (ix86_expand_special_args_builtin): Likewise.
8184         * config/i386/i386.md (UNSPECV_RDTSCP): New.
8185         (UNSPECV_RDTSC): Likewise.
8186         (UNSPECV_RDPMC): Likewise.
8187         (*bsr): Renamed to ...
8188         (bsr): This
8189         (*bsr_rex64): Renamed to ...
8190         (bsr_rex64): This.
8191         (rdpmc): New.
8192         (*rdpmc): Likewise.
8193         (*rdpmc_rex64): Likewise.
8194         (rdtsc): Likewise.
8195         (*rdtsc): Likewise.
8196         (*rdtsc_rex64): Likewise.
8197         (rdtscp): Likewise.
8198         (*rdtscp): Likewise.
8199         (*rdtscp_rex64): Likewise.
8201         * config/i386/ia32intrin.h: New.
8203         * config/i386/x86intrin.h: Include <ia32intrin.h>.
8205 2009-06-16  Ian Lance Taylor  <iant@google.com>
8207         * ira-build.c (copy_info_to_removed_store_destinations):
8208         Initialize parent_a.
8210 2009-06-16  Ian Lance Taylor  <iant@google.com>
8212         * c-decl.c (grokdeclarator): Change size_varies to bool.
8214 2009-06-16  Ian Lance Taylor  <iant@google.com>
8216         * sel-sched.c: Make forward declarations of move_op_hooks and
8217         fur_hooks explicitly extern.
8219 2009-06-16  Ian Lance Taylor  <iant@google.com>
8221         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
8222         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
8224 2009-06-16  Ian Lance Taylor  <iant@google.com>
8226         * resource.c (mark_referenced_resources): Change
8227         include_delayed_effects parameter to bool.  Change all callers.
8228         (mark_end_of_function_resources): Likewise.
8229         * reorg.c (insn_references_resource_p): Likewise.
8230         (insn_sets_resource_p): Likewise.
8231         * resource.h (mark_referenced_resources): Update declaration.
8232         (mark_end_of_function_resources): Update declaration.
8234 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
8236         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
8238 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
8240         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
8241         GCC can bootstrap on AIX with GNU Binutils 2.20.
8243 2009-06-16  Ian Lance Taylor  <iant@google.com>
8245         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
8247 2009-06-16  Ian Lance Taylor  <iant@google.com>
8249         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
8250         inline, not extern inline.
8251         (exact_log2): Likewise.
8252         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
8253         test CLZ_HWI.
8254         (exact_log2): Likewise, but don't test CTZ_HWI.
8256 2009-06-16  Ian Lance Taylor  <iant@google.com>
8258         * bitmap.c (bitmap_clear): Don't declare as inline.
8259         * gimple.c (gimplify_assign): Likewise.
8260         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8261         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
8262         (sched_scan_info): Remove duplicate definition.
8264 2009-06-16  Ian Lance Taylor  <iant@google.com>
8266         * c-common.c (skip_evaluation): Don't define.
8267         (c_inhibit_evaluation_warnings): Define global variable.
8268         (overflow_warning): Check c_inhibit_evaluation_warnings rather
8269         than skip_evaluation.
8270         (convert_and_check, warn_for_div_by_zero): Likewise.
8271         * c-common.h (skip_evaluation): Don't declare.
8272         (c_inhibit_evaluation_warnings): Declare.
8273         * c-parser.c (c_parser_typeof_specifier): Set
8274         c_inhibit_evaluation_warnings rather than skip_evaluation.
8275         (c_parser_conditional_expression): Likewise.
8276         (c_parser_binary_expression): Likewise.
8277         (c_parser_sizeof_expression): Likewise.
8278         (c_parser_alignof_expression): Likewise.
8279         * c-typeck.c (build_indirect_ref): Check
8280         c_inhibit_evaluation_warnings rather than skip_evaluation.
8281         (build_conditional_expr, build_binary_op): Likewise.
8283 2009-06-16  Richard Guenther  <rguenther@suse.de>
8285         * tree-ssa-alias.c (is_escape_site): Remove.
8286         * tree-ssa-alias.h (enum escape_type): Remove.
8287         (is_escape_site): Likewise.
8288         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
8289         via casts and asms without deferring to is_escape_site.
8291 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
8293         PR middle-end/40446
8294         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
8295         use gen_lowpart if op0 has complex mode.
8297 2009-06-16  Richard Guenther  <rguenther@suse.de>
8299         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
8300         variables add them to ESCAPED.
8301         (find_func_aliases): Do not make all indirectly stored values escaped.
8303 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
8305         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
8306         make_decl_one_only.
8308 2009-06-16  Martin Jambor  <mjambor@suse.cz>
8310         PR tree-optimization/40432
8311         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
8312         check whether we need to force gimple register operand.
8314 2009-06-16  Martin Jambor  <mjambor@suse.cz>
8316         PR tree-optimization/40413
8317         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
8318         build_ref_for_offset.
8319         (propagate_subacesses_accross_link): Fix a typo in a comment.
8321 2009-06-16  Ira Rosen  <irar@il.ibm.com>
8323         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8324         with additional parameter.
8325         * tree-vectorizer.h (enum vect_def_type): Add new value
8326         vect_nested_cycle.
8327         (enum vect_relevant): Add comments.
8328         (vect_is_simple_reduction): Add new argument.
8329         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
8330         Detect nested cycles.
8331         (vect_is_simple_reduction): Update documentation, add an argument to
8332         distinguish inner-loop reduction from nested cycle, detect nested
8333         cycles, fix printings and indentation, don't swap operands in case
8334         of nested cycle.
8335         (get_initial_def_for_reduction): Handle subtraction.
8336         (vect_create_epilog_for_reduction): Add new argument to specify
8337         reduction variable.
8338         (vect_finalize_reduction): Handle subtraction, fix comments.
8339         (vectorizable_reduction): Handle nested cycles. In case of nested
8340         cycle keep track of the reduction variable position. Call
8341         vect_is_simple_reduction with additional parameter. Use original
8342         statement code in reduction epilogue for nested cycle. Call
8343         vect_create_epilog_for_reduction with additional parameter.
8344         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
8345         inner-loop vectorization.
8346         (vect_recog_widen_sum_pattern): Likewise.
8347         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
8348         and reductions.
8349         (vect_mark_stmts_to_be_vectorized): Likewise.
8350         (vect_get_vec_def_for_operand): Handle nested cycles.
8352 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8354         * doc/invoke.texi (Debugging Options): Fix option index entries
8355         for -fdump-statistics, -frandom-seed add entries for
8356         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
8357         (FRV Options): Fix entries for -mTLS, -mtls.
8358         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
8359         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
8360         (M68hc1x Options): Fix @itemx for -mnominmax.
8361         (MCore Options): Fix entry for -mno-lsim.
8362         (MMIX Options): Fix entry for -mabi=mmixware.
8363         (PDP-11 Options): Fix entry for -mbcopy-builtin.
8365 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
8367         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
8368         Mention the plugin mode of gengtype.
8369         * doc/gty.texi (Source Files Containing Type Information): Likewise.
8370         * gengtype.c: Updated copyright.
8371         (plugin_files, nb_plugin_files) Added new static variables.
8372         (measure_input_list) Care about plugin_files.
8373         (write_rtx_next): Added early return in plugin mode.
8374         (create_file): Updated copyright year in generated file. Added
8375         asserts.
8376         (oprintf): Added early return if NULL outf.
8377         (get_output_file_with_visibility): Care of plugin_files.
8378         (get_output_file_name): May return null.
8379         (write_local): Added early return.
8380         (put_mangled_filename): Ditto.
8381         (finish_root_table): Added check for base_files.
8382         (write_roots): Care about null when plugins.
8383         (main): Added plugin mode.
8385 2009-06-15  Ian Lance Taylor  <iant@google.com>
8387         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
8388         * gcov.c (read_count_file): Add braces around variables declared
8389         before label.
8391         * c.opt (Wjump-misses-init): New warning.
8392         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
8393         -Wall and -Wc++-compat if not already set.
8394         (c_common_post_options): Clear warn_jump_misses_init if it was not
8395         set.
8396         * c-decl.c (struct c_binding): Change type field to a union with
8397         new label field.  Make it the first field in the struct.  Update
8398         references to type to use u.type instead.
8399         (struct c_spot_bindings): Define.
8400         (struct c_goto_bindings): Define.
8401         (c_goto_bindings_p): Define, along with VECs.
8402         (struct c_label_vars): Define.
8403         (struct c_scope): Add has_label_bindings field.
8404         (bind_label, set_spot_bindings): New static functions.
8405         (decl_jump_unsafe, update_spot_bindings): New static functions.
8406         (update_label_decls): New static function.
8407         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
8408         Update binding u.label field to shadowed field.
8409         (c_binding_start_stmt_expr): New function.
8410         (c_binding_end_stmt_expr): New function.
8411         (pushdecl): Don't call c_begin_vm_scope.
8412         (make_label): Add defining and p_label_vars parameters.  Change
8413         all callers.
8414         (lookup_label): Correct test for whether a label has not yet been
8415         defined.  Call bind_label rather than bind.
8416         (warn_about_goto): New static function.
8417         (lookup_label_for_goto): New function.
8418         (declare_label): Call bind_label rather than bind.
8419         (check_earlier_gotos): New static function.
8420         (define_label): Don't give errors about jumping into statement
8421         expressions or scopes of variably modified types.  Call
8422         set_spot_bindings and check_earlier_gotos.  Call bind_label
8423         instead of bind.  Don't set label_context_stack_se or
8424         label_context_stack_vm.
8425         (c_get_switch_bindings): New function.
8426         (c_release_switch_bindings): New function.
8427         (c_check_switch_jump_warnings): New function.
8428         (start_function): Don't set label_context_stack_se or
8429         label_context_stack_vm.
8430         (finish_function): Likewise.
8431         * c-typeck.c (label_context_stack_se): Don't define.
8432         (label_context_stack_vm): Don't define.
8433         (c_finish_goto_label): Call lookup_label_for_goto rather than
8434         lookup_label.  Don't give errors about jumping into a statement
8435         expression or the scope of a variably modified type.  Don't set
8436         label_context_stack_se or label_context_stack_vm.
8437         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
8438         fields.  Add bindings field.
8439         (c_start_case): Don't set deleted fields.  Set bindings field.
8440         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
8441         or blocked_vm.  Call c_check_switch_jump_warnings.
8442         (c_finish_case): Don't test blocked_stmt_expr field.  Call
8443         c_release_switch_bindings.
8444         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
8445         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
8446         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
8447         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
8448         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
8449         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
8450         (c_begin_vm_scope, c_end_vm_scope): Don't define.
8451         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
8452         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
8453         (C_DECL_UNJUMPABLE_VM): Don't define.
8454         (C_DECL_UNDEFINABLE_VM): Don't define.
8455         (struct c_label_list): Don't define.
8456         (struct c_label_context_se): Don't define.
8457         (struct c_label_context_vm): Don't define.
8458         (struct c_spot_bindings): Declare.
8459         (c_bindings_start_stmt_expr): Declare.
8460         (c_bindings_end_stmt_expr): Declare.
8461         (lookup_label_for_goto): Declare.
8462         (c_get_switch_bindings, c_release_switch_bindings): Declare.
8463         (c_check_switch_jump_warnings): Declare.
8464         (label_context_stack_se, label_context_stack_vm): Don't declare.
8465         (c_finish_goto_label): Update declaration.
8466         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
8467         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
8468         (Warning Options): Document -Wjump-misses-init.
8470 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
8472         * tree-object-size.c (addr_object_size): Fix a pasto in the last
8473         change.
8475 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
8477         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
8479 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
8481         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
8483 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
8485         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
8487 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
8489         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
8490         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
8491         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
8492         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
8493         * dwarf2asm.c (dw2_force_const_mem): Update call to
8494         make_decl_one_only.
8495         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
8496         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
8497         * langhooks.c (lhd_comdat_group): Remove.
8498         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
8499         * tree.h (DECL_COMDAT_GROUP): New.
8500         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
8501         (tree_decl_with_vis): Add comdat_group. Remove one_only.
8502         (make_decl_one_only): Change signature.
8503         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
8504         make_decl_one_only.
8505         (make_decl_one_only): Change signature.
8506         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
8508 2009-06-15  Richard Guenther  <rguenther@suse.de>
8510         PR middle-end/40439
8511         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
8513 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8515         * tree-ssa-math-opts.c: Remove extra divide.
8517 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8519         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
8521 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8523         * passes.c: Add bswap pass.
8524         * tree-pass.h: Add pass_optimize_bswap declaration.
8525         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
8526         Include rtl.h, expr.h and optabs.h for optab_handler check.
8527         (struct symbolic_number, pass_optimize_bswap): New definition.
8528         (do_shift_rotate, verify_symbolic_number_p): New functions.
8529         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
8530         (gate_optimize_bswap): New function.
8531         * tree.c (widest_int_cst_value): New function.
8532         * tree.h (widest_int_cst_value): Prototype added.
8534 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
8536         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
8537         REG_EQUAL/REG_EQUIV notes.
8539 2009-06-14  Richard Guenther  <rguenther@suse.de>
8541         PR middle-end/40389
8542         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
8543         has its address taken if NRV was applied and it is addressable.
8544         * tree-ssa-structalias.c (get_constraint_for_address_of): New
8545         function split out from ...
8546         (get_constraint_for_1): ... here.
8547         (handle_rhs_call): Use it to mark the return slot escaped if
8548         it is addressable and NRV was applied.
8550 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
8552         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
8553         Change first argument type to location_t.
8554         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
8555         Do not set input_location.
8556         Use loc instead of input_location throughout.
8558 2009-06-13  Richard Guenther  <rguenther@suse.de>
8560         PR tree-optimization/40421
8561         * tree-predcom.c (should_unroll_loop_p): Remove.
8562         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
8564 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8566         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8567         Add location argument.
8569 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
8571         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
8572         build_decl.
8573         * config/s390/s390.c (s390_build_builtin_va_list): Same.
8574         (s390_gimplify_va_arg): Pass location to create_artificial_label.
8575         * config/spu/spu-protos.h: Add location to
8576         spu_resolve_overloaded_builtin.
8577         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
8578         spu_build_builtin_va_list.
8579         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
8580         argument.  Pass location to build_function_call_vec.
8581         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
8582         build_decl.
8583         (emit_fpu_switch): Same.
8584         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
8585         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
8586         to build_decl and create_artificial_label.
8587         (xtensa_gimplify_va_arg_expr): Same.
8588         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
8589         (xstormy16_gimplify_va_arg_expr): Same.
8590         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
8591         * config/arm/arm.c (arm_build_builtin_va_list): Same.
8592         * config/mips/mips.c (mips_build_builtin_va_list): Same.
8593         (mips16_build_function_stub): Same.
8594         (mips16_build_call_stub): Same.
8596 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
8598         PR target/40327
8599         * arm/constraints.md (Pa, Pb): New constraints.
8600         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
8601         split pattern to deal with them.
8603 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
8605         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
8606         fix index entry for -Xpreprocessor.
8608 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
8610         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8611         Add location argument to build_decl call.
8612         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
8613         (rs6000_init_builtins): Same.
8614         (spe_init_builtins): Same.
8615         (rs6000_gimplify_va_arg): Add location argument to
8616         create_artificial_label call.
8618 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
8620         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
8621         * combine-stack-adj.c (pass_stack_adjustments): Use it.
8622         * Makefile.in: Fix GGC dependency for gcse.o.
8624 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
8626         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
8627         * gimple-pretty-print.c (dump_gimple_stmt): Same.
8628         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
8629         created.
8630         * c-parser.c (c_parser_binary_expression): Use current column while
8631         building binary operations.
8632         * common.opt (fshow-column): Enable by default.
8633         * tree-vrp.c (check_array_ref): Use warning_at.
8634         (check_array_bounds): Use location from call back if expr has no
8635         location.
8636         * tree.h: Add location argument to maybe_fold_*.
8637         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
8638         (maybe_fold_offset_to_array_ref): Add location argument and use it.
8639         (maybe_fold_offset_to_component_ref): Same.
8640         (maybe_fold_offset_to_reference): Same.
8641         (maybe_fold_offset_to_address): Same.
8642         (maybe_fold_stmt_indirect): Same.
8643         (maybe_fold_stmt_addition): Same.
8644         (fold_stmt_r): Pass location to maybe_fold_*.
8645         (fold_gimple_assign): Same.
8646         * c-tree.h: Add location argument to finish_decl,
8647         default_function_array_conversion, store_init_value.
8648         * c-decl.c (define_label): Use error_at.
8649         (c_make_fname_decl): Pass location to finish_decl.
8650         (finish_decl): New location argument.
8651         (build_compound_literal): Pass location to store_init_value.
8652         (grokdeclarator): Pass location to finish_decl.
8653         (grokfield): Same.
8654         * c-typeck.c (array_to_pointer_conversion): New location argument.
8655         (function_to_pointer_conversion): Same.
8656         (default_function_array_conversion): Same.
8657         (parser_build_unary_op): Pass location to overflow_warning.
8658         (parser_build_binary_op): Same.  Use warning_at.
8659         (build_unary_op): Pass location to array_to_pointer_conversion.
8660         (build_c_cast): Pass location to digest_init.
8661         (build_modify_expr): New location argument.
8662         (convert_for_assignment): Same.
8663         (store_init_value): Same.
8664         (digest_init): Same.
8665         (output_init_element): Pass location to digest_init and
8666         array_to_pointer_conversion.
8667         (c_finish_return): Pass location to convert_for_assignment.
8668         * gimplify.c (gimplify_conversion): Pass location to
8669         maybe_fold_offset_to_address.
8670         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
8671         to maybe_fold_stmt_addition.
8672         * c-omp.c (c_finish_omp_atomic): Pass new location to
8673         build_modify_expr.
8674         (c_finish_omp_for): Same.
8675         * c-common.c (overflow_warning): New argument.
8676         * c-common.h: New argument to build_modify_expr, overflow_warning.
8677         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
8678         finish_decl.
8679         (c_parser_initializer): Pass location to
8680         default_function_array_conversion.
8681         (c_parser_initelt): Same.
8682         (c_parser_initval): Same.
8683         (c_parser_asm_operands): Same.
8684         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
8685         (c_parser_conditional_expression): Same.
8686         (c_parser_binary_expression): Add location info to stack.  Use it.
8687         (c_parser_unary_expression): Pass location to
8688         default_function_array_conversion, parser_build_unary_op,
8689         build_indirect_ref, c_parser_postfix_expression_after_primary.
8690         (c_parser_postfix_expression_after_primary): New location argument.
8691         Use it.
8692         (c_parser_expression_conv): Pass location to
8693         default_function_array_conversion.
8694         (c_parser_expr_list): Same.
8695         (c_parser_omp_atomic): Same.
8696         (c_parser_omp_for_loop): Same.
8697         * c-tree.h: (struct c_declarator): Add comment to id_loc.
8698         (build_array_declarator): New argument.
8699         * c-decl.c (build_array_declarator): Add location argument.
8700         (grokdeclarator): Set id_loc for cdk_array.
8701         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
8702         build_array_declarator.
8703         * tree.c (build_omp_clause): Add location argument.
8704         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
8705         (OMP_CLAUSE_LOCATION): New macro.
8706         (struct tree_omp_clause): Add location field.
8707         (build_omp_clause): Add argument.
8708         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
8709         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
8710         build_omp_clause.
8711         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
8712         (cp_parser_omp_clause_collapse): Same.
8713         (cp_parser_omp_clause_default): Same.
8714         (cp_parser_omp_clause_if): Same.
8715         (cp_parser_omp_clause_nowait): Same.
8716         (cp_parser_omp_clause_num_threads): Same.
8717         (cp_parser_omp_clause_ordered): Same.
8718         (cp_parser_omp_clause_schedule): Same.
8719         (cp_parser_omp_clause_untied): Same.
8720         (cp_parser_omp_for_loop): Same.
8721         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8722         * c-tree.h (c_start_case): Add location argument.
8723         (c_process_expr_stmt): Same.
8724         (c_finish_goto_*): Same.
8725         * tree-parloops.c (initialize_reductions): Pass location to
8726         build_omp_clause.
8727         (create_parallel_loop): Same.
8728         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
8729         (gfc_trans_omp_reduction_list): Same.
8730         (gfc_trans_omp_clauses): Same.
8731         (gfc_trans_omp_do): Same.
8732         * c-typeck.c (c_finish_goto_label): Same.
8733         (c_finish_goto_ptr): New location argument.
8734         (c_start_case): Same.
8735         (emit_side_effect_warnings): Same.
8736         (c_process_expr_stmt): Same.
8737         (c_finish_stmt_expr): Same.
8738         (c_finish_omp_clauses): Use error_at instead of error.
8739         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
8740         build_omp_clause.
8741         * c-omp.c (c_split_parallel_clauses): New location argument.
8742         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
8743         to build_omp_clause.
8744         (convert_local_reference_stmt): Same.
8745         (convert_gimple_call): Same.
8746         * c-common.h (c_split_parallel_clauses): New argument.
8747         * c-parser.c (c_parser_statement_after_labels): Pass location to
8748         c_finish_goto_label.
8749         (c_parser_switch_statement): Pass location to c_start_case.
8750         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
8751         and c_process_expr_stmt.
8752         (c_parser_omp_variable_list): Add location argument.
8753         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
8754         (c_parser_omp_clause_default): Same.
8755         (c_parser_omp_clause_if): Same.
8756         (c_parser_omp_clause_num_threads): Same.
8757         (-c_parser_omp_clause_ordered): Same.
8758         (c_parser_omp_clause_reduction): Pass location to
8759         c_parser_omp_variable_list.
8760         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
8761         (c_parser_omp_clause_untied): Same.
8762         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
8763         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8765         * c-tree.h (check_for_loop_decls, undeclared_variable,
8766         build_component_ref, build_array_ref, build_external_ref,
8767         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
8768         build_conditional_expr, build_compound_expr, c_cast_expr,
8769         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
8770         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
8771         argument.
8772         * c-semantics.c (build_stmt): Same.
8773         (build_case_label): Same.
8774         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
8775         (undeclared_variable): New argument.
8776         (make_label): Same.
8777         (lookup_label): Pass location on down.
8778         (define_label): Same.
8779         (finish_decl): Same.
8780         (build_compound_literal): Same.
8781         (finish_struct): Same.
8782         (finish_function): Do not set location here.
8783         (check_for_loop_decls): New argument.
8784         * tree.c (save_expr): Set location.
8785         (build_empty_stmt): New argument.
8786         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
8787         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
8788         * builtins.c (gimplify_va_arg_expr): Use locations.
8789         (expand_builtin_sync_operation): Same.
8790         * c-typeck.c (build_component_ref): New argument.
8791         (build_array_ref): Same.
8792         (build_external_ref): Same.
8793         (c_expr_sizeof_expr): Same.
8794         (c_expr_sizeof_type): Same.
8795         (parser_build_unary_op): Same.
8796         (build_conditional_expr): Same.
8797         (build_compound_expr): Pass location on down.
8798         (build_compound_expr): New argument.
8799         (build_c_cast): Same.
8800         (c_cast_expr): Same.
8801         (build_asm_expr): Same.
8802         (c_finish_return): Same.
8803         (c_process_expr_stmt): Pass location on down.
8804         (c_finish_stmt_expr): New argument.
8805         (push_clenaup): Same.
8806         (c_finish_omp_parallel): Same.
8807         (c_finish_omp_task): Same.
8808         * gimplify.c (gimplify_call_expr): Pass location on down.
8809         * c-omp.c (c_finish_omp_master): New argument.
8810         (c_finish_omp_critical): Same.
8811         (c_finish_omp_ordered): Same.
8812         (c_finish_omp_barrier): Same.
8813         (-c_finish_omp_taskwait): Same.
8814         (c_finish_omp_atomic): Same.
8815         (c_finish_omp_flush): Same.
8816         * tree-inline.c (copy_tree_body_r): Pass location on down.
8817         (inline_forbidden_p): Remove use of input_location.
8818         * c-gimplify.c (c_build_bind_expr): New argument.
8819         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
8820         (c_sizeof_or_alignof_type): New argument.
8821         (c_alignof_expr): Same.
8822         (build_va_arg): Same.
8823         (c_add_case_label): Same.
8824         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
8825         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
8826         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
8827         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
8828         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
8829         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
8830         New argument.
8831         * stub-objc.c (objc_build_selector_expr): Same.
8832         (objc_build_throw_stmt): Same.
8833         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
8834         (c_parser_initelt): Same.
8835         (c_parser_compound_statement): Same.
8836         (c_parser_compound_statement_nostart): Same.
8837         (c_parser_label): Same.
8838         (c_parser_statement_after_labels): Same.
8839         (c_parser_if_body): Same.
8840         (c_parser_else_body): Same.
8841         (c_parser_if_statement): Same.
8842         (c_parser_switch_statement): Same.
8843         (c_parser_while_statement): Same.
8844         (c_parser_do_statement): Same.
8845         (c_parser_for_statement): Same.
8846         (c_parser_asm_statement): Same.
8847         (c_parser_conditional_expression): Same.
8848         (c_parser_binary_expression): Same.
8849         (c_parser_cast_expression): Same.
8850         (c_parser_unary_expression): Same.
8851         (c_parser_sizeof_expression): Same.
8852         (c_parser_alignof_expression): Same.
8853         (c_parser_postfix_expression): Same.
8854         (c_parser_expression): Same.
8855         (c_parser_objc_receiver): Same.
8856         (c_parser_omp_variable_list): Same.
8857         (c_parser_omp_structured_block): Same.
8858         (c_parser_omp_atomic): New argument.
8859         (c_parser_omp_barrier): Same.
8860         (c_parser_omp_critical): Same.
8861         (c_parser_omp_flush): Pass location on down.
8862         (c_parser_omp_for_loop): New argument.
8863         (c_parser_omp_for): Same.
8864         (c_parser_omp_master): Same.
8865         (c_parser_omp_ordered): Same.
8866         (c_parser_omp_sections_scope): Same.
8867         (c_parser_omp_sections): Same.
8868         (c_parser_omp_parallel): Same.
8869         (c_parser_omp_single): Same.
8870         (c_parser_omp_task): Same.
8871         (c_parser_omp_taskwait): Pass location on down.
8872         (c_parser_omp_construct): Same.
8873         (c_parser_omp_threadprivate): Same.
8874         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
8875         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
8876         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
8877         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
8878         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
8879         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
8880         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
8881         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
8882         config/i386/i386.c, stmt.c:
8883         Add location argument to the following function definitions and/or
8884         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
8885         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
8886         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
8887         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
8888         do_case, c_finish_bc_stmt, build_compound_literal,
8889         build_function_call.
8890         * c-decl.c (build_compound_literal): Add location argument.
8891         Make all diagnostic calls use location.
8892         (start_struct): Same.
8893         (finish_struct): Same.
8894         (start_enum): Same.
8895         (build_enumerator): Same.
8896         (start_function): Same.
8897         (grokdeclarator): Make all diagnostic calls use location.
8898         (store_parm_decls_oldstyle): Same.
8899         * c-typeck.c (build_function_call): Add location argument.
8900         Make all diagnostic calls use location.
8901         (do_case): Same.
8902         (c_finish_bc_stmt): Same.
8903         * tree-nested.c (get_trampoline_type): Add argument.
8904         Pass location to build_decl.
8905         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
8906         * rtl.h (RTL_LOCATION): New.
8907         * c-common.c (c_add_case_label): Add location argument.
8908         Make all diagnostic calls use location.
8909         * c-common.h: Add location argument to make_fname_decl, do_case,
8910         c_add_case_label, build_function_call, resolve_overloaded_builtin.
8911         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
8912         Set it appropriately for every case.  Pass enum_loc to start_enum
8913         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
8914         parser_xref_tag.
8915         (c_parser_struct_or_union_specifier): Save location.  Use it for
8916         start_struct, finish_struct, and parser_xref_tag.
8918 2009-06-12  Ian Lance Taylor  <iant@google.com>
8920         * fold-const.c (fold_unary): Rename local variable and to and_expr.
8922         * c-opts.c (c_common_handle_option): For -Wc++-compat set
8923         cpp_opts->warn_cxx_operator_names.
8925 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8927         PR tree-opt/38865
8928         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
8929         is returns NULL and OP is a VCE, look through the VCE.
8931 2009-06-12  Ian Lance Taylor  <iant@google.com>
8933         PR bootstrap/40430
8934         * collect2.c (main): Use CONST_CAST2 in code inside #if
8935         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
8937 2009-06-12  Joey Ye  <joey.ye@intel.com>
8939         PR middle-end/39146
8940         * cfgexpand.c (get_decl_align_unit): Update
8941         max_used_stack_slot_alignment with align instead of
8942         stack_alignment_needed.
8944         * function.c (assign_stack_local_1): Update
8945         max_used_stack_slot_alignment with alignment_in_bits instead
8946         of stack_alignment_needed.
8947         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
8948         here.
8950 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
8952         * dwarf2out.c (last_var_location_insn): New variable.
8953         (dwarf2out_end_epilogue): Clear last_var_location_insn.
8954         (dwarf2out_var_location): Don't record anything after last real
8955         insn.  Only change labels if there were any real instructions
8956         in between last note and this one, or if changed sections.
8958 2009-06-11  Richard Henderson  <rth@redhat.com>
8960         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
8961         note when storing the frame pointer in a register.
8962         (FRP): Don't redefine to nothing for epilogue.
8963         (alpha_expand_epilogue): Mark register and sp restores.
8964         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
8966         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
8967         when gen_lowpart is needed.
8969 2009-06-11  Richard Henderson  <rth@redhat.com>
8971         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
8973         * dwarf2out.c (need_data_align_sf_opcode): New.
8974         (div_data_align): Move earlier.
8975         (def_cfa_1, reg_save): Use it.
8977 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
8979         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
8980         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
8981         (ix86_handle_option): Handle OPT_mcrc32.
8982         (ix86_target_string): Add -mcrc32.
8983         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
8985         * config/i386/i386.h (TARGET_CRC32): New.
8987         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
8988         (sse4_2_crc32di): Likewise.
8990         * config/i386/i386.opt (mcrc32): New.
8992         * doc/invoke.texi: Document -mcrc32.
8994 2009-06-11  Richard Henderson  <rth@redhat.com>
8996         * common.opt (gdwarf-): Accept a version number.
8997         * doc/invoke.texi (gdwarf-): Update docs.
8998         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
8999         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
9000         version level, and record it.
9002         * dwarf2.h (DW_CIE_VERSION): Remove.
9003         * dwarf2out.c (DWARF_VERSION): Remove.
9004         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
9005         (output_call_frame_info): Use CIE version 3 for dwarf3,
9006         or if the return register column is out of range for version 1.
9007         (dwarf_stack_op_name): Add all dwarf3 values.
9008         (DEBUG_PUBTYPES_SECTION): New.
9009         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
9010         encoding change for dwarf3.
9011         (output_die) [dw_val_class_die_ref]: Likewise.
9012         (output_compilation_unit_header): Emit correct version for dwarf3.
9013         (output_line_info): Likewise.
9014         (output_pubnames): Update for DWARF_VERSION removal.
9015         (output_aranges): Likewise.
9016         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
9017         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
9018         (dwarf2out_finish): Likewise.
9020 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
9022         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
9023         in r148403.
9025 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
9027         PR c/39252
9028         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
9029         * builtins.c (expand_builtin_unreachable): New function.
9030         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
9031         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
9032         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
9033         successors.
9034         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
9035         searching for missing barriers.
9037 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9039         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
9040         when -fprofile-generate* was passed.
9041         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
9043 2009-06-11  Anthony Green  <green@moxielogic.com>
9045         * config/moxie/moxie.md: Define length attribute for all instructions.
9046         (rCC): Define.
9047         (*b<cond:code>): Support limited branch ranges for new PC-relative
9048         branch instructions.
9049         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
9051 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
9053         * config/i386/i386.c (min_insn_size): Use get_attr_length
9054         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
9055         For __asm return 0.
9057         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
9058         instead of emit_insn_before.
9060 2009-06-10  Ian Lance Taylor  <iant@google.com>
9062         PR bootstrap/40408
9063         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
9064         GIMPLE_SWITCH.
9066 2009-06-10  Revital Eres  <eres@il.ibm.com>
9068         * passes.c (init_optimization_passes): Reschedule
9069         predictive-commoning pass before complete unroll pass.
9071 2009-06-10  Martin Jambor  <mjambor@suse.cz>
9073         * cgraph.c (cgraph_node_can_be_local_p): New function.
9074         (cgraph_make_node_local): New function.
9075         * cgraph.h (cgraph_node_can_be_local_p): Declare.
9076         (cgraph_make_node_local): Declare.
9078 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
9080         * tree.h (tree_base): Add packed_flag and user_align fields.
9081         Decrease size of spare field.
9082         (TYPE_USER_ALIGN): Use user_align from tree_base.
9083         (DECL_USER_ALIGN): Likewise.
9084         (TYPE_PACKED): Use packed_flag from tree_base.
9085         (DECL_PACKED): Likewise.
9086         (tree_type): Delete packed_flag and user_align fields.  Widen
9087         precision field.  Widen mode field and shuffle fields to align
9088         mode on an 8-bit boundary.
9089         (tree_decl_common): Delete decl_flag_1 and user_align fields.
9090         Renumber decl_flag_* fields.  Fix comments.  Widen
9091         decl_common_unused field.
9092         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
9093         (DECL_EXTERNAL): Likewise.
9094         (DECL_BIT_FIELD): Likewise.
9095         (DECL_NONADDRESSABLE_P): Likewise.
9096         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
9097         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
9099 2009-06-10  Ian Lance Taylor  <iant@google.com>
9101         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
9102         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
9103         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
9104         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
9105         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
9106         DEF_VEC_ALLOC_FUNC_P.
9107         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
9108         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
9109         DEF_VEC_ALLOC_FUNC_O.
9110         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
9111         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
9112         DEF_VEC_ALLOC_FUNC_I.
9113         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
9114         (vec_stack_p_reserve_exact_1): Declare.
9115         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
9116         (vec_stack_free): Declare.
9117         (VEC_stack_alloc): Define.
9118         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
9119         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
9120         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
9121         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
9122         for void_p.
9123         (stack_vecs): New static variable.
9124         (vec_stack_p_reserve_exact_1): New function.
9125         (vec_stack_o_reserve_1): New static function.
9126         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
9127         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
9128         (vec_stack_free): New function.
9129         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
9130         (VEC_df_ref_stack_alloc): Define.
9131         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
9132         DEF_VEC_ALLOC_P_STACK.
9133         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
9134         (struct df_collection_rec): Change _vec fields to VEC.  Remove
9135         _use fields.
9136         (df_free_collection_rec): Adjust for new fields.
9137         (df_insn_rescan): Use new df_collection_rec fields.
9138         (df_notes_rescan, df_canonize_collection_rec): Likewise.
9139         (df_ref_create_structure, df_ref_record): Likewise.
9140         (df_get_conditional_uses, df_get_call_refs): Likewise.
9141         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
9142         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
9143         (df_record_exit_block_uses, df_bb_verify): Likewise.
9144         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
9145         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
9146         Remove count parameter.  Change return type to void.  Change all
9147         callers.
9148         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
9149         Remove count parameter.  Change return type to void.  Change all
9150         callers.
9151         (df_install_refs): Change old_vec parameter to VEC.  Remove count
9152         parameter.  Change all callers.
9153         (df_install_mws): Change old_vec parameter to VEC.  Remove count
9154         parameter.  Change all callers.
9155         (df_refs_verify): Change new_rec parameter to VEC.  Change call
9156         callers.
9157         (df_mws_verify): Likewise.
9159 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
9161         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
9163 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9165         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
9167 2009-06-10  Anthony Green  <green@moxielogic.com>
9169         * config/moxie/crti.asm: New file.
9170         * config/moxie/crtn.asm: New file.
9171         * config/moxie/moxie.c: New file.
9172         * config/moxie/moxie.h: New file.
9173         * config/moxie/sfp-machine.h: New file.
9174         * config/moxie/moxie-protos.h: New file.
9175         * config/moxie/t-moxie: Created.
9176         * config/moxie/t-moxie-softfp: Created.
9177         * config/moxie/moxie.md: Created.
9178         * config/moxie/constraints.md: Created.
9179         * config.gcc: Add moxie support.
9180         * doc/md.texi (Machine Constraints): Add moxie constraints.
9181         * doc/contrib.texi (Contributors): Mention moxie port.
9182         * doc/install.texi (Specific): Mention the moxie port.
9184 2009-06-09  Ian Lance Taylor  <iant@google.com>
9186         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
9187         compiling with C++.
9188         * optabs.c (optab_table): Only use designated initializers if
9189         HAVE_DESIGNATED_INITIALIZERS is defined.
9190         (convert_optab_table): Likewise.
9191         (init_optabs): Always call init_insn_codes if
9192         HAVE_DESIGNATED_INITIALIZERS is not defined.
9194 2009-06-09  Ian Lance Taylor  <iant@google.com>
9196         * targhooks.c (default_builtin_vectorized_function): Change fn
9197         parameter to unsigned int.
9198         (default_builtin_vectorized_conversion): Change code parameter to
9199         unsigned int.
9200         (default_builtin_reciprocal): Change fn parameter to unsigned int.
9201         * targhooks.h: Update declarations.
9202         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
9203         parameter to unsigned int.
9205         * c-typeck.c (comptypes_check_enum_int): New static function.
9206         (comptypes_internal): Add enum_and_int_p parameter.  Change all
9207         callers.
9208         (comp_target_types): Add location parameter.  Change all callers.
9209         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
9210         Change all callers.
9211         (function_types_compatible_p, type_lists_compatible_p): Likewise.
9212         (build_conditional_expr): Add colon_loc parameter.  Change all
9213         callers.
9214         (convert_for_assignment): Add location parameter.  Change all callers.
9215         * c-parser.c (c_parser_conditional_expression): Pass location of
9216         colon to build_conditional_expr.
9217         * c-tree.h (build_conditional_expr): Update declaration.
9219 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9221         * graphite.c: Revert previous patch.
9223 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9225         PR bootstrap/40103
9226         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9228 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9230         * tree-ssa-loop-prefetch.c
9231         (loop_prefetch_arrays): Fixed a portability problem in printf format
9232         string.
9234 2009-06-09  Martin Jambor  <mjambor@suse.cz>
9236         PR tree-optimization/40351
9237         * tree-sra.c (propagate_subacesses_accross_link): Check that a
9238         refrence to a potential artifical subaccess can be constructed.
9240 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9242         * config/sh/sh-protos.h (sh_optimization_options): Declare.
9243         (sh_override_options): Likewise.
9244         * config/sh/sh.c: Include params.h.
9245         (sh_optimization_options): New.
9246         (sh_override_options): Likewise.
9247         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
9248         (OVERRIDE_OPTIONS): Use sh_override_options.
9250 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
9252         * dwarf2out.c (emit_cfa_remember): New variable.
9253         (add_fde_cfi): If emit_cfa_remember, recurse to add
9254         DW_CFA_remember_state first.
9255         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
9256         instead just set emit_cfa_remember.
9258 2009-06-08  Jan Hubicka  <jh@suse.cz>
9260         PR debug/40126
9261         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
9263 2009-06-08  Jan Hubicka  <jh@suse.cz>
9265         PR middle-end/39834
9266         * cgraphunit.c (save_inline_function_body): Do not copy transform
9267         hooks for saved inline bodies.
9268         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
9269         for given function.
9271 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
9273         * jump.c (returnjump_p): Handle delayed branches.  Add missing
9274         function comment.
9276 2009-06-08  Jan Hubicka  <jh@suse.cz>
9278         PR middle-end/40102
9279         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
9280         original node might've been modified.
9281         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
9283 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
9285         * tree-object-size.c (addr_object_size): Add OSI argument.
9286         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
9287         (compute_builtin_object_size, expr_object_size): Adjust callers.
9288         (plus_stmt_object_size): Call addr_object_size instead of
9289         compute_builtin_object_size.
9291 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9292             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9294         * tree-ssa-loop-prefetch.c
9295         (gather_memory_references): Introduced a counter for the number of
9296         memory references.
9297         (anything_to_prefetch_p): Introduced a counter for the number of
9298         prefetches.
9299         (is_loop_prefetching_profitable): New function with a cost model
9300         for prefetching.
9301         (loop_prefetch_arrays): Use the new cost model to determine if
9302         prefetching is profitable.
9303         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
9304         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9305         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
9306         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9307         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
9308         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9310 2009-06-08  Michael Matz  <matz@suse.de>
9312         PR debug/40012
9313         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
9314         partitions use the same.
9315         (expand_one_var): Deal with DECL_RTL sometimes begin set also
9316         for basevars of SSA_NAMEs.
9317         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
9318         to not expand them twice.
9319         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
9320         multiple places.
9322 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
9324         * common.opt (fcompare-debug=, fcompare-debug-second): New.
9325         (fdump-final-insns=, gtoggle): New.
9326         * doc/invoke.texi: Document them.
9327         * final.c (rest_of_clean_state): Dump final insn stream.
9328         * gcc.c (invoke_as): Hook in -fcompare-debug.
9329         (static_spec_functions): Add compare-debug-dump-opt,
9330         compare-debug-self-opt and compare-debug-auxbase-opt.
9331         (compare_debug, compare_debug_second, compare_debug_opt): New.
9332         (switches_debug_check, n_switches_debug_check): New.
9333         (debug_auxbase_opt, debug_check_temp_file): New.
9334         (process_command): Handle -fno-compare-debug, -fcompare-debug and
9335         -fcompare-debug=*.
9336         (do_self_spec): Handle arguments after switches.
9337         (do_spec_1): Add .gk extension to temp file basenames for compare.
9338         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
9339         (cc1_options): Use it instead of normal auxbase computation for
9340         the second compare-debug compilation.
9341         (compare_files): New.
9342         (main): Set up and implement compare debug mode.
9343         (compare_debug_dump_opt_spec_function): New.
9344         (compare_debug_self_opt_spec_function): New.
9345         (compare_debug_auxbase_opt_spec_function): New.
9346         * toplev.c (process_options): Handle flag_gtoggle,
9347         flag_dump_final_insns.
9348         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
9349         during -fcompare-debug-second compilation.
9351 2009-06-07  Ian Lance Taylor  <iant@google.com>
9353         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
9354         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
9356         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
9357         with no default node.  Change warning with %H to warning_at.
9358         Don't clear warn_switch around case checking.
9359         * doc/invoke.texi (Warning Options): Clarify distinction between
9360         -Wswitch and -Wswitch-enum.
9362 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9364         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
9366 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9368         * gbl-ctors.h: Add header guard.
9370 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9372         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
9373         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
9374         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
9375         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
9376         prototypes for removed functions.
9377         (expressions_equal_p): Move to ...
9378         * tree-ssa-sccvn.h: ... here and ...
9379         * matrix-reorg.c: ... adjust includes.
9381 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9383         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
9385 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9387         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
9388         (finish_function): Remove erroneous whitespace.
9390 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9392         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
9393         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
9395 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9397         * errors.c (internal_error): Commentary typo fix.
9398         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
9399         * tree-ssa-pre.c: Ditto.
9401 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9403         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
9404         them is supposed to hold actual statements.
9406 2009-06-06  Ian Lance Taylor  <iant@google.com>
9408         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
9409         empty statements can now have attributes.
9411 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
9413         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
9414         * config/mips/mips.md: Ditto.
9416 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
9418         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
9419         _RELOCATABLE.
9420         (__eabi_uconvert): Likewise.
9422 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
9424         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
9425         CFI_* definitions with IN_GCC.
9427 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
9429         * xcoffout.h (xcoffout_source_line): Update prototype.
9431 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9433         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
9434         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
9436 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
9438         PR middle-end/40340
9439         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
9440         inlined_function_outer_scope_p blocks for artificial inlines
9441         even at -g0/-g1.
9442         * tree.c (tree_nonartificial_location): Rewrite using
9443         block_nonartificial_location.
9445 2009-06-05  Revital Eres  <eres@il.ibm.com>
9446             Leehod Baruch  <leehod@il.ibm.com>
9448         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
9449         (expand_expr_real_1): Remove comment.
9450         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9451         Vectorize misaligned access when the target supports it.
9452         (vect_supportable_dr_alignment): Check for unaligned access support.
9453         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
9454         and remove asset.
9456 2009-06-05  Julian Brown  <julian@codesourcery.com>
9458         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
9459         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
9461 2009-06-05  Richard Guenther  <rguenther@suse.de>
9463         PR bootstrap/40350
9464         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
9465         as possibly unused.
9467 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
9469         * config/s390/s390.c (global_not_special_regno_p): New static inline.
9470         (save_gprs): Don't tell unwinder when a global register is saved.
9471         (s390_emit_epilogue): Emit needed epilogue unwind info.
9473 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
9475         * dwarf2out.c (deferred_asm_name): New.
9476         (add_name_and_src_coords_attributes): Defer creation of
9477         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
9478         computed yet.
9479         (move_linkage_attr): New.
9480         (dwarf2out_finish): Revisit deferrals and emit attributes at the
9481         right place.
9483 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
9485         * tree-nested.c (finalize_nesting_tree_1): Declare the
9486         frame_decl in the binding tree.
9488 2009-06-04  Cary Coutant  <ccoutant@google.com>
9490         * basic-block.h (struct basic_block_def): Add discriminator field.
9491         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
9492         callers.
9493         * debug.c (do_nothing_debug_hooks): Add additional entry.
9494         (debug_nothing_int_charstar_int): New function.
9495         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
9496         (debug_nothing_int_charstar_int): New declaration.
9497         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
9498         discriminator value in .loc directive.
9499         * final.c (last_discriminator): New variable.
9500         (discriminator): New variable.
9501         (final_start_function): Initialize above variables, pass current
9502         discriminator to debug hook.
9503         (notice_source_line): Check for discriminator change.
9504         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
9505         * sdbout.c (sdbout_source_line): New parameter.
9506         * tree-cfg.c (struct locus_discrim_map): New structure type.
9507         (discriminator_per_locus): New hash table.
9508         (build_gimple_cfg): Allocate and free discriminator hash table.
9509         (make_edges): Call assign_discriminator.
9510         (locus_map_hash): New function.
9511         (locus_map_eq): New function.
9512         (next_discriminator_for_locus): New function.
9513         (same_line_p): New function.
9514         (assign_discriminator): New function.
9515         (make_cond_expr_edges): Call assign_discriminator.
9516         (make_gimple_switch_edges): Likewise.
9517         (first_non_label_stmt): New function.
9518         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
9519         all callers.
9520         * xcoffout.c (xcoffout_source_line): Add new parameter.
9522         * configure.ac (gcc_cv_as_discriminator): New configury check for
9523         gas support for discriminator.
9524         * configure: Regenerate.
9525         * config.in: Regenerate.
9527 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9529         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
9530         val after checking for integers.
9532 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
9534         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
9535         X64_REGPARM_MAX.
9536         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
9537         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
9538         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
9539         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
9540         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
9541         X64_SSE_REGPARM_MAX.
9542         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
9543         X64_SSE_REGPARM_MAX.
9545 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9547         * gcc.c (report_times_to_file): New.
9548         (execute): Implement it.
9549         (process_command): Support -time=.
9550         * doc/invoke.texi: Document it.
9552 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9554         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
9555         that have value exprs.
9557 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9559         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
9560         declarations for constants until...
9561         (dw2_output_indirect_constant_1): ... this point.
9563 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
9565         PR target/10242
9566         * arm.md (arm_addsi3): Don't try to split an add with an
9567         eliminable register until after reload has completed.
9569 2009-06-03  Ian Lance Taylor  <iant@google.com>
9571         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
9572         * genattrtab.c (write_length_unit_log): Likewise.
9573         * genchecksum.c (dosum): Likewise.
9574         * gengtype.c (write_rtx_next): Likewise.
9575         (finish_root_table, write_roots): Likewise.
9576         * gimple.c (gimple_ops_offset_): Likewise.
9577         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
9578         * config/arc/arc.c (arc_attribute_table): Likewise.
9579         * config/arm/arm.c (arm_attribute_table): Likewise.
9580         * config/avr/avr.c (avr_attribute_table): Likewise.
9581         * config/crx/crx.c (crx_attribute_table): Likewise.
9582         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
9583         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
9584         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
9585         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
9586         * config/sh/sh.c (sh_attribute_table): Likewise.
9587         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
9588         * config/spu/spu.c (spu_attribute_table): Likewise.
9589         * config/v850/v850.c (v850_attribute_table): Likewise.
9591         * config/alpha/alpha.c (vms_attribute_table): Make static.
9592         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
9593         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
9594         * config/mips/mips.c (mips_attribute_table): Likewise.
9596         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
9597         $(SYSTEM_H).
9598         (cc1-checksum.o): Likewise.
9600 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
9602         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
9604 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
9606         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
9607         insn if it is changing sp.  Use gen_add3_insn instead of
9608         conditionally gen_addsi3 and gen_adddi3.
9609         (offset_below_red_zone_p): New static inline function.
9610         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
9611         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
9612         * config/rs6000/ppc-asm.h: Include auto-host.h.
9613         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
9614         CFI_RESTORE): Define.
9615         * config/rs6000/crtresxgpr.asm: Add unwind info.
9616         * config/rs6000/crtresxfpr.asm: Likewise.
9617         * config/rs6000/crtresgpr.asm: Likewise.
9618         * config/rs6000/crtresfpr.asm: Likewise.
9619         * config/rs6000/crtsavgpr.asm: Likewise.
9620         * config/rs6000/crtsavfpr.asm: Likewise.
9622         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
9623         argument of DWARF2_FRAME_REG_OUT macros.
9625 2009-06-03  Julian Brown  <julian@codesourcery.com>
9627         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
9628         words or less (including TImode) in core registers.
9630 2009-06-03  Richard Guenther  <rguenther@suse.de>
9632         PR middle-end/40328
9633         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
9635 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
9637         * statistics.c (statistics_counter_event): Do not record event
9638         in pass dump if its number == -1.
9639         (curr_statistics_hash): Add assert that we never get passes
9640         with static number == -1.
9642 2009-06-03  Richard Guenther  <rguenther@suse.de>
9643             Andrey Belevantsev  <abel@ispras.ru>
9645         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
9646         non-BLKmode arrays addressable.
9648 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
9650         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
9651         * config/m68k/m68k.h: ... here.
9652         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
9653         m68k and fido.
9655 2009-06-03  Martin Jambor  <mjambor@suse.cz>
9657         PR tree-optimization/40323
9658         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
9659         assignment.
9661 2009-06-03  Richard Guenther  <rguenther@suse.de>
9663         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9664         consistently.
9666 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
9668         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
9669         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
9670         JUMP_TABLE_DATA_P where applicable.
9671         * config/sh/sh.c: Ditto.
9672         * config/sh/sh.h: Ditto.
9673         * config/sh/sh.md: Ditto.
9674         * config/sh/symbian.c: Ditto.
9676 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
9678         * config/i386/driver-i386.c (describe_cache): Optimize
9679         concatenation of strings.  Use snprintf instead of sprintf.
9680         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
9681         target when not compiling with GCC.
9683 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
9685         * config/sh/sh.c: Revert last change.
9686         (sh_expand_epilogue): Emit a blockage insn before the frame
9687         pointer adjustment unconditionally.
9689 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9691         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
9692         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
9693         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
9694         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
9695         to COLLECT_GCC_OPTIONS.
9697 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9699         * collect2.c (target_system_root): New variable.
9700         (main): Handle --sysroot=.
9701         (ignore_library): Strip the sysroot from the library path.
9703 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9705         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
9706         (collect2.o): Depend on collect2-aix.h.
9707         (collect2-aix.o): New rule.
9708         * collect2-aix.h: New file.
9709         * collect2-aix.c: Likewise.
9710         * collect2.c: Include collect2-aix.h.  Don't undefine
9711         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
9712         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
9713         Use TARGET_AIX_VERSION instead of _AIX51.
9714         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
9715         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
9716         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
9717         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
9718         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
9720 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9722         * collect2.c (ignore_library): Avoid premature post-increment
9723         and null deference.
9725 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9727         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
9728         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
9729         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
9730         CROSS_DIRECTORY_STRUCTURE too.
9731         (LINK_LIBG_SPEC): Likewise.
9732         (LIB_SPEC): Add %R to sysroot paths.
9733         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
9734         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
9735         * config/rs6000/aix51.h: As for aix43.h.
9736         * config/rs6000/aix52.h: Likewise.
9737         * config/rs6000/aix53.h: Likewise.
9738         * config/rs6000/aix61.h: Likewise.
9739         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
9740         to the beginning of sysroot paths.
9742 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9744         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
9745         INSN_LISTs that are out of the REG_NOTE range.
9747 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9749         * loop-unroll.c (struct iv_to_split): Add pointer to next.
9750         (struct var_to_expand): Likewise.
9751         (struct opt_info): Add head and tail for linked lists of the above.
9752         (analyze_insn_to_expand_var): Initialize next.
9753         (analyze_iv_to_split_insn): Likewise.
9754         (analyze_insns_in_loop): Create linked lists.
9755         (allocate_basic_variable): Simplify for use without hash table.
9756         (insert_var_expansion_initialization): Likewise, make it type-safer.
9757         (combine_var_copies_in_loop_exit): Likewise.
9758         (apply_opt_in_copies): Walk lists rather than hash tables.
9759         (release_var_copies): Simplified and inlined by hand into...
9760         (free_opt_info): ... this function.
9762 2009-06-02  Richard Guenther  <rguenther@suse.de>
9764         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9765         for field decls.
9767 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9769         * cfgexpand.c (gimple_expand_cfg): Discard the source location
9770         only for builtins that are not overridden.
9772 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9774         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
9775         label string.
9777 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9779         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
9781 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9783         * combine.c (move_deaths): Compare LUIDs within the same BB only.
9785 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9787         * common.opt (fdump-unnumbered-links): New.
9788         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
9789         * print-rtl.c (flag_dump_unnumbered_links): New.
9790         (print_rtx): Test it.
9792 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
9794         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
9795         push/pop multiple to 8-byte alignment.
9797 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
9799         * config/i386/i386.c (queued_cfa_restores): New static variable.
9800         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
9801         functions.
9802         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
9803         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
9804         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
9805         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
9806         note unconditionally.
9807         (ix86_emit_restore_regs_using_mov): Likewise.
9808         (ix86_emit_restore_sse_regs_using_mov): Likewise.
9809         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
9810         it through to ix86_emit_restore_reg_using_pop.
9811         (ix86_emit_leave): Add RED_OFFSET argument.  Call
9812         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
9813         instead of adding REG_CFA_OFFSET note unconditionally.
9814         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
9815         the above functions.  Call ix86_add_queued_cfa_restore_notes when
9816         needed.
9818         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
9819         force output of the label even for dwarf2out_do_cfi_asm.
9820         (add_fde_cfi): If -g2 and above and cfi might change CFA,
9821         force creation of CFI label and chain DW_CFA_set_loc jumping to it
9822         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
9823         caller.
9824         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
9825         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
9826         dwarf2out_cfi_label callers.
9827         * tree.h (dwarf2out_cfi_label): Adjust prototype.
9828         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
9829         Adjust dwarf2out_cfi_label callers.
9830         * config/vax/vax.c (vax_output_function_prologue): Likewise.
9832         * config/i386/i386.h (struct machine_cfa_state,
9833         struct machine_function): Guard with ifndef USED_FOR_TARGET
9834         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
9836         PR other/40024
9837         * emutls.c (__emutls_get_address): Change arr->size to mean number
9838         of allocated arr->data entries instead of # of slots + 1.
9840         PR middle-end/40316
9841         * recog.c (peep2_reinit_state): New function.
9842         (peephole2_init_state): Use it at the end of a basic block and also
9843         when seeing a RTX_FRAME_RELATED_P insn.
9845 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
9847         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
9848         fixuns_truncrfdi2): New.
9849         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
9850         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
9851         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
9852         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
9853         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
9854         *recip_approx): Remove.
9855         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
9856         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
9857         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
9858         move to div.md.
9859         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
9860         setf_exp_rf): New.
9862 2009-06-01  Ian Lance Taylor  <iant@google.com>
9864         * attribs.c (register_attribute): Use CONST_CAST.
9865         * collect2.c (main): Use CONST_CAST2.
9866         (scan_prog_file): Likewise.
9867         * gcc.c (process_command, main): Likewise.
9868         * toplev.c (toplev_main): Likewise.
9870         * c-typeck.c (handle_warn_cast_qual): New static function,
9871         partially broken out of build_c_cast.
9872         (build_c_cast): Call handle_warn_cast_qual.
9873         * doc/invoke.texi (Warning Options): Document new effect of
9874         -Wcast-qual.
9876 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
9878         * diagnostic.c (diagnostic_build_prefix): Always print columns.
9879         (diagnostic_report_current_module): Print columns.
9880         * common.opt (flag_show_column): Enable by default.
9882 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
9884         * alias.c (find_base_term): Check for NULL term before returning.
9886 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
9888         Revert due to PR40320:
9889         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
9890         * calls.c (emit_library_call_value_1): Don't force_operand for move
9891         and push insns.
9893 2009-06-01  Olivier Hainque  <hainque@adacore.com>
9894             Eric Botcazou  <ebotcazou@adacore.com>
9896         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
9897         to be processed as a bitfield for constructor output purposes.
9898         * output.h (initializer_constant_valid_for_bitfield_p): Declare
9899         new function.
9900         * varasm.c (oc_local_state): New type, output_constructor
9901         local state to support communication with helpers.
9902         (oc_outer_state): New type, output_constructor outer state of
9903         relevance in recursive calls.
9904         (output_constructor_array_range): New output_constructor helper,
9905         extracted code for an array range element.
9906         (output_constructor_regular_field): New output_constructor helper,
9907         extracted code for an element that is not a bitfield.
9908         (output_constructor_bitfield): New output_constructor helper,
9909         extracted code for a bitfield element.  Accept an OUTER state
9910         argument for recursive processing.  Recurse on record or array
9911         CONSTRUCTOR values, possibly past noop conversions.
9912         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
9913         VALUE is a valid constant-valued expression for use in a static
9914         bit-field initializer.
9915         (output_constructor): Rework to use helpers.  Accept and honor an
9916         OUTER state argument for recursive calls.  Return total size.  Be
9917         prepared for nested constructors initializing bitfields.
9918         (output_constant): Feed OUTER in calls to output_constructor.
9920 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
9922         * calls.c (emit_library_call_value_1): Don't force_operand for move
9923         and push insns.
9925 2009-06-01  Nick Clifton  <nickc@redhat.com>
9927         * doc/invoke.texi (IA-64 Options): Fix typo.
9929 2009-06-01  Ira Rosen  <irar@il.ibm.com>
9931         PR tree-optimization/39129
9932         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
9933         printed message.
9934         (vect_do_peeling_for_loop_bound): Use
9935         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
9936         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
9937         (vect_loop_versioning): Likewise.
9938         (vect_create_cond_for_alias_checks): Fix indentation.
9939         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
9940         macros.
9941         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
9942         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
9943         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
9944         "control flow in loop".
9945         (vect_estimate_min_profitable_iters): Use
9946         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
9947         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
9948         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9949         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
9950         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
9951         statement belongs to a group of strided accesses with the exact code
9952         check.
9953         (vectorizable_load): Likewise.
9954         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
9955         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
9957 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
9959         * config/freebsd-stdint.h: New file.
9960         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
9961         Add freebsd-stdint.h to tm_file.
9963 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
9965         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
9966         (thumb2_extendhidi2): Likewise.
9968 2009-05-31  Ian Lance Taylor  <iant@google.com>
9970         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
9972 2009-05-31  Ian Lance Taylor  <iant@google.com>
9974         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
9975         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
9976         (ipa-reference.o): Depend upon gt-ipa-reference.h.
9978 2009-05-31  Jason Merrill  <jason@redhat.com>
9980         * tree-pretty-print.c (print_call_name): Take the callee, not the
9981         call itself.  Make non-static.  Use dump_function_name for functions.
9982         (dump_generic_node): Adjust.
9983         * diagnostic.h: Declare print_call_name.
9984         * gimple-pretty-print.c (dump_gimple_call): Use it.
9986 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9988         * config/sh/sh.md (ashldi3_std): New define_expand.
9989         (ashldi3): Use it.
9991 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9993         PR target/40313
9994         * config/sh/sh.c: Include debug.h.
9995         (sh_expand_epilogue): Emit a blockage insn before the frame
9996         pointer adjustment also when dwarf2out_do_frame returns true.
9998 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
10000         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
10001         (thumb2_extendqidi2): New pattern.
10003 2009-05-31  Ira Rosen  <irar@il.ibm.com>
10005         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
10006         mark phis for renaming.
10007         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
10008         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
10009         Call mark_sym_for_renaming.
10010         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
10011         * tree-vect-loop.c (vect_transform_loop): Remove
10012         vect_memsyms_to_rename initialization and a call to
10013         mark_set_for_renaming.
10015 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
10017         PR middle-end/40304
10018         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
10019         frame related even if !set_cfa && style < 0.
10021 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
10023         * config/i386/mingw-tls.c: New file.
10024         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
10025         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
10026         defining _WIN32 but not __CYGWIN__.
10028 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10030         * configure.ac: Add MPC support.
10032         * config.in, configure: Regenerate.
10034 2009-05-29  Richard Henderson  <rth@redhat.com>
10036         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
10037         NOTE_INSN_BASIC_BLOCK.
10038         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
10039         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
10040         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
10041         to be deleted.
10042         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
10043         add in_use field.
10044         (add_cfi): Disable check redefining cfa away from drap.
10045         (lookup_cfa_1): Add remember argument; handle remember/restore.
10046         (lookup_cfa): Pass remember argument.
10047         (cfa_remember): New.
10048         (compute_barrier_args_size_1): Remove sibcall check.
10049         (dwarf2out_frame_debug_def_cfa): New.
10050         (dwarf2out_frame_debug_adjust_cfa): New.
10051         (dwarf2out_frame_debug_cfa_offset): New.
10052         (dwarf2out_frame_debug_cfa_register): New.
10053         (dwarf2out_frame_debug_cfa_restore): New.
10054         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
10055         (dwarf2out_begin_epilogue): New.
10056         (dwarf2out_frame_debug_restore_state): New.
10057         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
10058         DW_CFA_restore_state.
10059         (output_cfi_directive): Likewise.
10060         (convert_cfa_to_fb_loc_list): Likewise.
10061         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
10062         * dwarf2out.h: Update.
10063         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
10064         (copy_insn_1): Early out for null.
10065         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
10066         and dwarf2out_frame_debug_restore_state.
10067         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
10068         (prologue_insn_hash, epilogue_insn_hash): New.
10069         (free_after_compilation): Adjust freeing accordingly.
10070         (record_insns): Create hash table if needed; push insns into
10071         hash instead of array.
10072         (maybe_copy_epilogue_insn): New.
10073         (contains): Search hash table instead of array.
10074         (sibcall_epilogue_contains): Remove.
10075         (thread_prologue_and_epilogue_insns): Split eh_return insns
10076         and mark them as epilogues.
10077         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
10078         scanning in terms of basic blocks.
10079         * insn-notes.def (CFA_RESTORE_STATE): New.
10080         * jump.c (returnjump_p_1): Accept EH_RETURN.
10081         (eh_returnjump_p_1, eh_returnjump_p): New.
10082         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
10083         CFA_REGISTER, CFA_RESTORE): New.
10084         * rtl.def (EH_RETURN): New.
10085         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
10087         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
10088         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
10090         * config/i386/i386.c (gen_push): Update cfa state.
10091         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
10092         add a CFA_ADJUST_CFA note.
10093         (ix86_dwarf_handle_frame_unspec): Remove.
10094         (ix86_expand_prologue): Update cfa state.
10095         (ix86_emit_restore_reg_using_pop): New.
10096         (ix86_emit_restore_regs_using_pop): New.
10097         (ix86_emit_leave): New.
10098         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
10099         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
10100         * config/i386/i386.h (struct machine_cfa_state): New.
10101         (ix86_cfa_state): New.
10102         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
10103         (eh_return_internal): Merge from eh_return_<mode>,
10104         use eh_return rtx, split w/ epilogue.
10106 2009-05-29  Ian Lance Taylor  <iant@google.com>
10108         * builtins.c (validate_gimple_arglist): Don't use va_arg with
10109         enum type.
10110         * calls.c (emit_library_call_value_1): Likewise.
10112         * c-typeck.c (c_build_va_arg): New function.
10113         * c-tree.h (c_build_va_arg): Declare.
10114         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
10115         instead of build_va_arg.
10117 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
10119         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
10120         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
10121         (ptr_difference_cost): Use affine combinations to compute it.
10122         (difference_cost): Likewise.
10123         (get_computation_cost_at): Compute more accurate cost for addresses
10124         if the ratio is a multiplier allowed in addresses.
10125         For non-addresses, consider that an additional offset or symbol is
10126         added only once.
10128 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10130         * config/i386/i386.c (ix86_decompose_address): Avoid useless
10131         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
10133         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
10134         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
10135         (prefix_rex): For UNIT_MMX don't imply the prefix by default
10136         if MODE_DI.
10137         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
10138         to 1 for TYPE_SSE{IADD1,CVT1}.
10139         (prefix_vex_imm8): Removed.
10140         (length_vex): Only pass 1 as second argument to
10141         ix86_attr_length_vex_default if prefix_extra is 0.
10142         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
10143         (length): For prefix vex computation use length_immediate
10144         attribute instead of prefix_vex_imm8.
10145         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
10146         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
10147         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
10148         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
10149         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
10150         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
10151         a space in between the operands.
10152         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
10153         if one operand is 0xff and the other one si, di, bp or sp.
10154         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
10155         other one si, di, bp or sp.
10156         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
10157         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
10158         type and mode attributes.
10159         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
10160         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
10161         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
10162         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
10163         prefix_data16 attribute iff MODE_DF.
10164         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
10165         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
10166         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
10167         constm128_operand in length_immediate computation.
10168         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
10169         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
10170         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
10171         length_immediate attribute to 1.
10172         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
10173         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
10174         for certain alternatives.
10175         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
10176         prefix_data16 attribute if MODE_V1DF.
10177         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
10178         length_immediate to 1.
10179         (set_got_rex64, set_rip_rex64): Remove length attribute, set
10180         length_address to 4, set mode attribute to MODE_DI.
10181         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
10182         (fxam<mode>2_i387): Set length attribute to 4.
10183         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
10184         *prefetch_3dnow_rex): Override length_address attribute.
10185         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
10186         attributes.
10187         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
10188         (constm128_operand): Removed.
10189         * config/i386/i386.c (memory_address_length): For
10190         disp && !index && !base in 64-bit mode account for SIB byte if
10191         print_operand_address can't optimize disp32 into disp32(%rip)
10192         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
10193         for fs: or gs: segment.
10194         (ix86_attr_length_immediate_default): When checking if shortform
10195         is possible, truncate immediate to the length of the non-shortened
10196         immediate.
10197         (ix86_attr_length_address_default): Ignore MEM_P operands
10198         with X constraint.
10199         (ix86_attr_length_vex_default): Only check for DImode on
10200         GENERAL_REG_P operands.
10201         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
10202         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
10203         (sse_cvttps2pi): Clear prefix_rep attribute.
10204         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
10205         attribute.
10206         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
10207         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
10208         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
10209         iff operand 2 is const_int_operand.
10210         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
10211         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
10212         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
10213         instead of vex.
10214         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
10215         prefix_data16.
10216         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
10217         prefix_data16 attribute for movlpd and movhpd instructions.
10218         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
10219         length_immediate for shufpd instruction.
10220         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
10221         (avx_cmpp<avxmodesuffixf2c><mode>3,
10222         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
10223         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
10224         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
10225         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
10226         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
10227         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
10228         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
10229         prefix_data16 attribute for the first alternative to 1.
10230         (*avx_loadlps): Override length_immediate for the first alternative.
10231         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
10232         attributes for second alternative.
10233         (*vec_concatv2sf_sse4_1): Override length_immediate and
10234         prefix_data16 attributes for second alternative.
10235         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
10236         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
10237         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
10238         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
10239         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
10240         prefix_data16 and length_immediate to 1.
10241         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
10242         to 1.
10243         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
10244         prefix_extra attribute for variants that don't have 0f prefix alone.
10245         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
10246         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
10247         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
10248         *sse4_1_pextrd): Set length_immediate to 1.
10249         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
10250         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
10251         to 1.
10252         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
10253         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
10254         length_immediate to 1 for second alternative.
10255         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
10256         prefix_extra and length_immediate attributes for the first
10257         alternative.
10258         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
10259         first alternative.
10260         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
10261         to 1 for the first and third alternative.
10262         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
10263         alternative.
10264         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
10265         attribute.
10266         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
10267         attribute to 0.
10268         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
10269         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
10270         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
10271         *avx_psign<mode>3): Set prefix_extra attribute to 1.
10272         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
10273         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
10274         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
10275         ssse3_psign<mode>3): Override prefix_rex attribute.
10276         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
10277         (ssse3_palignrti): Override length_immediate to 1.
10278         (ssse3_palignrdi): Override length_immediate to 1, override
10279         prefix_rex attribute.
10280         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
10281         (sse4a_extrqi): Override length_immediate to 2.
10282         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
10283         (sse4a_insertq): Override prefix_data16 to 0.
10284         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
10285         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
10286         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
10287         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
10288         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
10289         and length_immediate to 1.
10290         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
10291         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
10292         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
10293         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
10294         and length_immediate to 1.
10295         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
10296         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
10297         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
10298         avx_ptest256): Override prefix_extra to 1.
10299         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
10300         Override prefix_data16 and length_immediate to 1.
10301         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
10302         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
10303         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
10304         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
10305         prefix_data16 to 0 and prefix_extra to 2.
10306         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
10307         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
10308         attribute.
10309         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
10310         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
10311         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
10312         and prefix_extra to 2.
10313         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
10314         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
10315         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
10316         avx_vpermilvar<mode>3,
10317         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
10318         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
10319         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
10320         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
10321         Override prefix_extra to 1.
10322         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
10323         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
10324         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
10325         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
10326         prefix_extra and length_immediate to 1.
10327         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
10328         modrm to 0.
10329         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
10330         to 1 for the first alternative.
10331         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
10332         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
10333         cases.
10334         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
10335         *movv2sf_internal_avx, *movv2sf_internal): Override
10336         prefix_rep attribute for certain alternatives.
10337         (*mov<mode>_internal): Override prefix_rep or prefix_data16
10338         attributes for certain alternatives.
10339         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
10340         attributes for certain alternatives.
10341         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
10342         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
10343         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
10344         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
10345         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
10346         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
10347         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
10348         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
10349         length_immediate to 1 if operand 2 is const_int_operand.
10350         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
10351         *vec_extractv2si_1): Set length_immediate attribute to 1.
10352         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
10353         using old 3DNOW insn rather than SSE/3DNOW_A.
10354         (mmx_emms, mmx_femms): Clear modrm attribute.
10356 2009-05-29  Martin Jambor  <mjambor@suse.cz>
10358         * tree-sra.c:  New implementation of SRA.
10360         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
10361         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
10362         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
10363         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
10364         (SRA_MAX_STRUCTURE_COUNT): Removed.
10365         (SRA_FIELD_STRUCTURE_RATIO): Removed.
10366         * doc/invoke.texi (sra-max-structure-size): Removed.
10367         (sra-field-structure-ratio): Removed.
10369 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10371         PR middle-end/40291
10372         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
10373         before expansion.
10375 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
10377         PR rtl-optimization/40101
10378         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
10379         seqno.  Adjust comment.
10380         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
10381         inserting bookkeeping before a jump, the jump is not scheduled.
10382         When no positive seqno found, provide a value.  Add comment.
10384 2009-05-29  Richard Guenther  <rguenther@suse.de>
10386         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
10387         short-cutting on the first component.
10389 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10391         PR middle-end/39958
10392         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
10393         for trees other than decls/types.
10395 2009-05-29  Richard Guenther  <rguenther@suse.de>
10397         * tree-ssa-operands.c (get_expr_operands): Do not handle
10398         INDIRECT_REFs in the handled-component case.  Remove
10399         unused get_ref_base_and_extent case.
10400         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
10401         tree_low_cst and host_integerp where possible.
10402         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
10403         codes for equivalence.
10404         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
10406 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
10408         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
10409         to tmake_file for i[34567]86-*-cygwin*.
10411 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10413         PR target/40017
10414         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
10415         (altivec_categorize_keyword, init_vector_keywords,
10416         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
10417         similar to bool.
10419 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
10421         * tree.c (handle_dll_attribute): Check if node is
10422         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
10424 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
10426         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
10427         component.
10428         (thumb2_zero_extendqidi2): Likewise.
10430 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10432         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
10433         instead of gen_movrt.
10434         * config/sh/sh.md (movrt): Remove.
10436 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
10438         * doc/invoke.texi (IA-64 Options):
10439         Add -msdata, -mfused-madd, -mno-inline-float-divide,
10440         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
10441         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
10442         -msched-prefer-non-control-spec-insns,
10443         -msched-stop-bits-after-every-cycle,
10444         -msched-count-spec-in-critical-path,
10445         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
10446         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
10447         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
10448         and -msched-spec-verbose.
10450 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
10452         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
10453         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
10454         error if used.
10455         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
10457 2009-05-28  Richard Guenther  <rguenther@suse.de>
10459         * tree-ssa-alias.c (ao_ref_init): New function.
10460         (ao_ref_base): Likewise.
10461         (ao_ref_base_alias_set): Likewise.
10462         (ao_ref_alias_set): Likewise.
10463         (refs_may_alias_p_1): Change signature.
10464         (refs_may_alias_p): Adjust.
10465         (refs_anti_dependent_p): Likewise.
10466         (refs_output_dependent_p): Likewise.
10467         (call_may_clobber_ref_p_1): Change signature.
10468         (call_may_clobber_ref_p): Adjust.
10469         (stmt_may_clobber_ref_p_1): New function split out from ...
10470         (stmt_may_clobber_ref_p): ... here.
10471         (maybe_skip_until): Adjust signature.
10472         (get_continuation_for_phi): Likewise.
10473         (walk_non_aliased_vuses): Likewise.
10474         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
10475         (ao_ref_init): Declare.
10476         (ao_ref_base): Likewise.
10477         (ao_ref_alias_set): Likewise.
10478         (stmt_may_clobber_ref_p_1): Likewise.
10479         (walk_non_aliased_vuses): Adjust.
10480         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
10481         (get_ref_from_reference_ops): remove.
10482         (vn_reference_lookup_2): Adjust signature.
10483         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
10484         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
10485         (vn_reference_lookup): Adjust.
10486         (vn_reference_insert): Likewise.
10487         (vn_reference_insert_pieces): Adjust signature.
10488         (visit_reference_op_call): Adjust.
10489         * tree-ssa-pre.c (get_expr_type): Simplify.
10490         (phi_translate_1): Adjust.
10491         (compute_avail): Likewise.
10492         (translate_vuse_through_block): Do not re-build trees.
10493         (value_dies_in_block_x): Likewise.
10494         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
10495         fields.
10496         (vn_reference_lookup_pieces): Adjust declaration.
10497         (vn_reference_insert_pieces): Likewise.
10499 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
10501         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
10502         with checking disabled.
10504 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
10506         PR target/37216
10508         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
10509         macro definition for support of three-operand format aligned
10510         .comm directive in assembler on cygwin/pe/mingw target OS.
10511         * configure:  Regenerate.
10512         * config.h:  Regenerate.
10514         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
10515         aligned form of .comm directive if -mpe-aligned-commons is in effect.
10516         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
10518         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
10519         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
10521 2009-05-28  Ira Rosen  <irar@il.ibm.com>
10523         PR tree-optimization/40254
10524         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
10525         in analysis of basic blocks.
10527 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
10529         PR middle-end/33699
10530         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
10531         * target-def.h (TARGET_CONST_ANCHOR): New macro.
10532         (TARGET_INITIALIZER): Use it.
10533         * cse.c (CHEAPER): Move it up to the other macros.
10534         (insert): Rename this ...
10535         (insert_with_costs): ... to this.  Add cost parameters.  Update
10536         function comment.
10537         (insert): New function.  Call insert_with_costs.
10538         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
10539         find_reg_offset_for_const, try_const_anchors): New functions.
10540         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
10541         when using a const-anchor.  Call insert_const_anchors.
10542         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
10543         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
10545 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
10547         * tree-inline.c (remap_decls): Enable nonlocalized variables
10548         when not optimizing.
10550 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
10552         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
10553         Simplify other tests involving optimize.
10555 2009-05-27  Tom Tromey  <tromey@redhat.com>
10557         * unwind-dw2.c (_Unwind_DebugHook): New function.
10558         (uw_install_context): Call _Unwind_DebugHook.
10560 2009-05-27  Tom Tromey  <tromey@redhat.com>
10562         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
10564 2009-05-27  Ian Lance Taylor  <iant@google.com>
10566         * Makefile.in (LINKER, LINKER_FLAGS): Define.
10567         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
10568         (ALL_LINKERFLAGS): Define.
10569         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
10570         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10571         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
10572         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10573         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
10574         $(LINKER_FOR_BUILD).
10575         (build/gcov-iov$(build_exeext)): Likewise.
10577 2009-05-27  Julian Brown  <julian@codesourcery.com>
10579         * gcse.c (target.h): Include.
10580         (can_assign_to_reg_without_clobbers_p): Check that the target allows
10581         copy of argument to a pseudo register.
10583 2009-05-27  Diego Novillo  <dnovillo@google.com>
10585         * tree-ssa-live.c (dump_scope_block): Document arguments.
10586         (dump_scope_blocks): Document.
10587         (debug_scope_blocks): New.
10588         * tree-flow.h (debug_scope_blocks): Declare.
10590 2009-05-21  Denis Chertykov  <denisc@overta.ru>
10592         * doc/contrib.texi (Contributors): Add myself to the list.
10594 2009-05-27  Olivier Hainque  <hainque@adacore.com>
10596         * expr.c (target_align): New function.  Alignment the TARGET of an
10597         assignment may be assume to have.
10598         (highest_pow2_factor_for_target): Use it instead of relying on
10599         immediate tree attributes of TARGET, not necessarily honored when
10600         intermediate bitfields are involved.
10602 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
10604         PR target/40266
10605         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10606         AVX, SSE4, AES, PCLMUL and POPCNT.
10608 2009-05-27  Diego Novillo  <dnovillo@google.com>
10610         * tree-pretty-print.c (dump_location): New.
10611         (dump_generic_node): Call it.
10612         Factor code to handle BLOCK nodes ...
10613         (dump_block_node): ... here.
10615 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
10617         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
10618         with it.
10619         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
10620         included.
10621         * gcc-plugin.h: Include config.h and system.h.
10622         (IN_GCC): Define if not defined.
10624 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
10626         PR middle-end/40249
10627         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
10628         with -fno-inline.
10630 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
10632         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
10633         applicable.
10634         * config/m32r/m32r.h: Ditto.
10635         * config/m32r/m32r.md: Ditto.
10636         * config/m32r/predicates.md: Ditto.
10638 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
10640         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
10642 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
10644         * doc/plugins.texi
10645         (Loading plugins): typo.
10646         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
10647         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10648         (Interacting with the GCC Garbage Collector): Added new section.
10649         (Giving information about a plugin): Added new section for
10650         PLUGIN_INFO.
10651         * ggc.h (ggc_register_root_tab): Added declaration.
10652         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
10653         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
10654         (register_callback): Improved comment in declaration.
10655         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
10656         (extra_root_vec) Added static variable for dynamic roots registration.
10657         (ggc_register_root_tab) Added new routine.
10658         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
10659         PLUGIN_GGC_MARKING event.
10660         * ggc-zone.c: Include plugin.h.
10661         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10662         * ggc-page.c: Include plugin.h.
10663         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10664         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
10665         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
10666         (register_callback): check lack of callbacks for
10667         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
10668         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
10669         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
10670         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10671         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
10672         dependency on plugin.h.
10673         (plugin.o): Added dependency on ggc.h...
10675 2009-05-26  Richard Guenther  <rguenther@suse.de>
10677         PR middle-end/40248
10678         Revert
10679         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
10680         with mismatched comparison modes.
10682         * expr.c (expand_expr_real_1): Expand the operand of a
10683         VIEW_CONVERT_EXPR in its natural mode.
10685 2009-05-26  Ian Lance Taylor  <iant@google.com>
10687         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
10688         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
10689         (ALL_COMPILERFLAGS): Define.
10690         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
10691         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10692         (collect2$(exeext), collect2.o): Likewise.
10693         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
10694         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
10695         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
10696         (libbackend.o, intl.o, cppdefault.o): Likewise.
10697         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10698         (build/%.o): Use $(COMPILER_FOR_BUILD).
10699         (build/gen%$(build_exeext)): Likewise.
10700         (build/gcov-iov$(build_exeext)): LIkewise.
10701         * config/t-darwin (darwin.o): Use $(COMPILER).
10702         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
10703         * config/t-sol2 (sol2-c.o): Likewise.
10704         (sol2.o): Likewise.
10705         * config/t-vxworks (vxworks.o): Likewise.
10706         * config/x-darwin (host-darwin.o): Likewise.
10707         * config/x-hpux (host-hpux.o): Likewise.
10708         * config/x-linux (host-linux.o): Likewise.
10709         * config/x-solaris (host-solaris.o): Likewise.
10710         * config/alpha/x-alpha (driver-alpha.o): Likewise.
10711         * config/arm/t-arm (arm-c.o): Likewise.
10712         * config/arm/t-pe (pe.o): Likewise.
10713         * config/arm/t-wince-pe (pe.o): Likewise.
10714         * config/i386/t-cygming (winnt.o): Likewise.
10715         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
10716         * config/i386/t-cygwin (cygwin1.o): Likewise.
10717         (cygwin2.o): Likewise.
10718         * config/i386/t-i386 (i386-c.o): Likewise.
10719         * config/i386/t-interix (winnt.o): Likewise.
10720         * config/i386/t-netware (netware.o): Likewise.
10721         * config/i386/t-nwld (nwld.o): Likewise.
10722         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10723         * config/i386/x-i386 (driver-i386.o): Likewise.
10724         * config/i386/x-cygwin (host-cygwin.o): Likewise.
10725         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
10726         * config/ia64/t-ia64 (ia64-c.o): Likewise.
10727         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
10728         * config/mips/x-native (driver-native.o): Likewise.
10729         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
10730         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10731         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10732         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
10733         * config/score/t-score-elf (score7.o): Likewise.
10734         (score3.o): Likewise.
10735         * config/sh/t-sh (sh-c.o): Likewise.
10736         * config/sh/t-symbian (sh-c.o): Likewise.
10737         (symbian.o): Likewise.
10738         * config/spu/t-spu-elf (spu-c.o): Likewise.
10739         * config/v850/t-v850 (v850-c.o): Likewise.
10740         * config/v850/t-v850e (v850-c.o): Likewise.
10742 2009-05-26  Richard Guenther  <rguenther@suse.de>
10744         PR tree-optimization/40122
10745         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
10746         VECTOR_CSTs if possible.
10747         (fold_gimple_assign): Likewise.
10749 2009-05-26  Richard Guenther  <rguenther@suse.de>
10751         PR middle-end/40252
10752         * fold-const.c (fold_binary): Use the correct types for building
10753         rotates.
10755 2009-05-26  Richard Guenther  <rguenther@suse.de>
10757         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
10758         redundant calls to merge_alias_info.
10759         (bump_vector_ptr): Likewise.
10760         * tree-ssa-copy.c (merge_alias_info): Remove.
10761         (replace_exp_1): Remove call to merge_alias_info.
10762         (propagate_tree_value): Likewise.
10763         (fini_copy_prop): Propagate points-to info.
10764         * tree-flow.h (merge_alias_info): Remove.
10766 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
10768         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
10770 2009-05-25  Jan Hubicka  <jh@suse.cz>
10772         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
10773         * cgraph.h (struct inline_summary): New filed self_wize,
10774         size_inlining_benefit, self_time and time_inlining_benefit.
10775         (struct cgraph_global_info): Replace insns by time ans size fields.
10776         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
10777         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
10778         (ipcp_update_callgraph): Do not touch function bodies.
10779         * ipa-inline.c: Include except.h
10780         (MAX_TIME): New constant.
10781         (overall_insns): Remove.
10782         (leaf_node_p): New.
10783         (overall_size, max_benefit): New static variables.
10784         (cgraph_estimate_time_after_inlining): New function.
10785         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
10786         (cgraph_clone_inlined_nodes): Update size.
10787         (cgraph_mark_inline_edge): Update size.
10788         (cgraph_estimate_growth): Use size info.
10789         (cgraph_check_inline_limits): Check size.
10790         (cgraph_default_inline_p): Likewise.
10791         (cgraph_edge_badness): Compute badness based on benefit and size cost.
10792         (cgraph_decide_recursive_inlining): Check size.
10793         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
10794         and times.
10795         (cgraph_decide_inlining): Likewise.
10796         (cgraph_decide_inlining_incrementally): Likewise; honor
10797         PARAM_EARLY_INLINING_INSNS.
10798         (likely_eliminated_by_inlining_p): New predicate.
10799         (estimate_function_body_sizes): New function.
10800         (compute_inline_parameters): Use it.
10801         * except.c (must_not_throw_labels): New function.
10802         * except.h (must_not_throw_labels): Declare.
10803         * tree-inline.c (init_inline_once): Kill inlining_weigths
10804         * tree-ssa-structalias.c: Avoid uninitialized warning.
10805         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
10806         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
10807         (PARAM_INLINE_CALL_COST): Remove.
10808         (PARAM_EARLY_INLINING_INSNS): New.
10810 2009-05-25  Richard Guenther  <rguenther@suse.de>
10812         PR tree-optimization/36327
10813         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
10814         callback for reference translation or lookup at the point of may-defs.
10815         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
10816         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
10817         for union COMPONENT_REFs.
10818         (vn_reference_lookup_3): New callback.  Lookup from memset
10819         and CONSTRUCTOR assignment, translate through struct copies.
10820         (vn_reference_lookup_pieces): Make sure to not free the
10821         passed operands array.  Adjust walk_non_aliased_vuses call.
10822         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
10823         make sure we do not leak memory.
10825 2009-05-25  Richard Guenther  <rguenther@suse.de>
10827         * tree-ssa-alias.h (dump_points_to_solution): Declare.
10828         * tree-inline.c (expand_call_inline): Reset the escaped and
10829         callused solutions.
10830         * tree-ssa-structalias.c (pass_build_ealias): New.
10831         * tree-pass.h (pass_build_ealias): Declare.
10832         * passes.c (init_optimization_passes): Add PTA during
10833         early optimizations.
10834         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
10835         and CALLUSED solutions.
10836         (dump_points_to_solution): New function, split out from ...
10837         (dump_points_to_info_for): ... here.
10838         * tree-parloops.c (parallelize_loops): Reset the escaped and
10839         callused solutions.
10841 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10843         PR bootstrap/40027
10844         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
10845         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
10847 2009-05-25  Ira Rosen  <irar@il.ibm.com>
10849         PR tree-optimization/40238
10850         * tree-vect-stmts.c (vect_init_vector): Insert initialization
10851         statements after basic block's labels.
10852         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
10853         to free the allocated memory.
10855 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10857         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
10858         return address with a USE.
10860 2009-05-24  Richard Guenther  <rguenther@suse.de>
10862         PR middle-end/40233
10863         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
10864         array type from the main variant of the inner type.
10866 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10868         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
10869         definition to bool (from int) to un-break build.
10870         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
10872 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
10874         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
10875         discard_stmt_changes): Delete.
10876         * tree-ssa-operands.c (scb_stack): Delete.
10877         (init_ssa_operands): Do not initialize it.
10878         (fini_ssa_operands): Do not free it.
10879         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
10881         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
10882         update_stmt, remove the others.  Fix comments.
10883         * tree-dfa.c (optimize_stack_restore): Likewise.
10884         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
10885         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
10886         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
10887         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
10888         Likewise.
10889         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
10890         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
10891         (dom_opt_finalize_block): Likewise, adjusting access to
10892         stmts_to_rescan.
10893         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
10894         (stmts_to_rescan): Change item type to gimple.
10895         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
10897 2009-05-24  Ira Rosen  <irar@il.ibm.com>
10899         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
10900         * tree-pass.h (pass_slp_vectorize): New pass.
10901         * params.h (SLP_MAX_INSNS_IN_BB): Define.
10902         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
10903         * tree-vectorizer.c (timevar.h): Include.
10904         (user_vect_verbosity_level): Declare.
10905         (vect_location): Fix comment.
10906         (vect_set_verbosity_level): Update user_vect_verbosity_level
10907         instead of vect_verbosity_level.
10908         (vect_set_dump_settings): Add an argument. Ignore user defined
10909         verbosity if dump flags require higher level of verbosity. Print to
10910         stderr only for loop vectorization.
10911         (vectorize_loops): Update call to vect_set_dump_settings.
10912         (execute_vect_slp): New function.
10913         (gate_vect_slp): Likewise.
10914         (struct gimple_opt_pass pass_slp_vectorize): New.
10915         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
10916         access its members.
10917         (vec_info_for_bb): New function.
10918         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
10919         (VECTORIZATION_ENABLED): New macro.
10920         (SLP_ENABLED, SLP_DISABLED): Likewise.
10921         (vect_is_simple_use): Add bb_vec_info argument.
10922         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
10923         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
10924         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
10925         vect_schedule_slp, vect_analyze_slp): Likewise.
10926         (vect_analyze_stmt): Add slp_tree argument.
10927         (find_bb_location): Declare.
10928         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
10929         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
10930         (vect_analyze_loop_operations, vect_analyze_loop,
10931         get_initial_def_for_induction, vect_create_epilog_for_reduction,
10932         vect_finalize_reduction, vectorizable_reduction,
10933         vectorizable_live_operation, vect_transform_loop): Likewise.
10934         * tree-data-ref.c (dr_analyze_innermost): Update comment,
10935         skip evolution analysis if analyzing a basic block.
10936         (dr_analyze_indices): Likewise.
10937         (initialize_data_dependence_relation): Skip the test whether the
10938         object is invariant for basic blocks.
10939         (compute_all_dependences): Skip dependence analysis for data
10940         references in basic blocks.
10941         (find_data_references_in_stmt): Don't fail in case of invariant
10942         access in basic block.
10943         (find_data_references_in_bb): New function.
10944         (find_data_references_in_loop): Move code to
10945         find_data_references_in_bb and add a call to it.
10946         (compute_data_dependences_for_bb): New function.
10947         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
10948         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
10949         that STEP is 0.
10950         (vect_analyze_data_ref_dependence): Check for interleaving in case of
10951         unknown dependence in basic block and fail in case of dependence in
10952         basic block.
10953         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
10954         dependence instances from either loop or basic block vectorization
10955         info.
10956         (vect_compute_data_ref_alignment): Check if it is loop vectorization
10957         before calling nested_in_vect_loop_p.
10958         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
10959         dependence instances from either loop or basic block vectorization
10960         info.
10961         (vect_verify_datarefs_alignment): Likewise.
10962         (vect_enhance_data_refs_alignment): Adjust function calls.
10963         (vect_analyze_data_refs_alignment): Likewise.
10964         (vect_analyze_group_access): Fix printing. Skip different checks if
10965         DR_STEP is 0. Keep strided stores either in loop or basic block
10966         vectorization data structure. Fix indentation.
10967         (vect_analyze_data_ref_access): Fix comments, allow zero step in
10968         basic blocks.
10969         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
10970         dependence instances from either loop or basic block vectorization
10971         info.
10972         (vect_analyze_data_refs): Update comment. Call
10973         compute_data_dependences_for_bb to analyze basic blocks.
10974         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
10975         case of loop vectorization. In case of basic block vectorization use
10976         data-ref itself as a base.
10977         (vect_create_data_ref_ptr): In case of basic block vectorization:
10978         don't advance the pointer, add new statements before the current
10979         statement.  Adjust function calls.
10980         (vect_supportable_dr_alignment): Support only aligned accesses in
10981         basic block vectorization.
10982         * common.opt (ftree-slp-vectorize): New flag.
10983         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
10984         (vect_pattern_recog_1): Likewise.
10985         * tree-vect-stmts.c (process_use): Likewise.
10986         (vect_init_vector): Add new statements in the beginning of the basic
10987         block in case of basic block SLP.
10988         (vect_get_vec_def_for_operand): Adjust function calls.
10989         (vect_finish_stmt_generation): Likewise.
10990         (vectorizable_call): Add assert that it is loop vectorization, adjust
10991         function calls.
10992         (vectorizable_conversion, vectorizable_assignment): Likewise.
10993         (vectorizable_operation): In case of basic block SLP, take
10994         vectorization factor from statement's type and skip the relevance
10995         check. Adjust function calls.
10996         (vectorizable_type_demotion): Add assert that it is loop
10997         vectorization, adjust function calls.
10998         (vectorizable_type_promotion): Likewise.
10999         (vectorizable_store): Check for outer loop only in case of loop
11000         vectorization. Adjust function calls. For basic blocks, skip the
11001         relevance check and don't advance pointers.
11002         (vectorizable_load): Likewise.
11003         (vectorizable_condition): Add assert that it is loop vectorization,
11004         adjust function calls.
11005         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
11006         that it is not reduction, get vector type, call only supported
11007         functions, skip loop specific parts.
11008         (vect_transform_stmt): Check for outer loop only in case of loop
11009         vectorization.
11010         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
11011         (vect_is_simple_use): Fix comment, add new argument, fix conditions
11012         for external definition.
11013         * passes.c (pass_slp_vectorize): New pass.
11014         * tree-vect-slp.c (find_bb_location): New function.
11015         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
11016         check for patterns only in loops.
11017         (vect_build_slp_tree): Add argument, adjust function calls, fail in
11018         case of multiple types in basic block SLP.
11019         (vect_mark_slp_stmts_relevant): New function.
11020         (vect_supported_load_permutation_p): Fix comment.
11021         (vect_analyze_slp_instance): Add argument. In case of basic block
11022         SLP, take vectorization factor from statement's type, check that
11023         unrolling factor is 1. Adjust function call. Save SLP instance in
11024         either loop or basic block vectorization structure. Return FALSE,
11025         if SLP failed.
11026         (vect_analyze_slp): Add argument. Get strided stores groups from
11027         either loop or basic block vectorization structure. Return FALSE
11028         if basic block SLP failed.
11029         (new_bb_vec_info): New function.
11030         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
11031         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
11032         (vect_schedule_slp): Add argument. Get SLP instances from either
11033         loop or basic block vectorization structure. Set vectorization factor
11034         to be 1 for basic block SLP.
11035         (vect_slp_transform_bb): New function.
11036         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
11038 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
11040         * final.c (shorten_branches): Do not align labels for jump tables.
11041         (final_scan_insn): Use JUMP_TABLE_DATA_P.
11043 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
11045         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
11046         Remove outdated reference to flow.c and fix nits.
11047         * doc/gccint.texi: Tweak RTL description.
11048         * doc/rtl.texi: Likewise.
11050 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
11052         * config/avr/avr.c: Change my email address.
11053         * config/avr/avr.h: Likewise.
11054         * config/avr/avr.md: Likewise.
11055         * config/avr/avr-protos.h: Likewise.
11056         * config/avr/libgcc.S: Likewise.
11058 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
11060         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
11061         (spu_split_load, spu_split_store): Change return type to int.
11062         (spu_split_convert): Declare.
11063         * config/spu/predicates.md (spu_mem_operand): Remove.
11064         (spu_mov_operand): Update.
11065         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
11066         * config/spu/spu.c (regno_aligned_for_load): Remove.
11067         (reg_aligned_for_addr, spu_expand_load): Define.
11068         (spu_expand_extv): Reimplement and handle MEM.
11069         (spu_expand_insv): Handle MEM.
11070         (spu_sched_reorder): Handle insn's with length 0.
11071         (spu_legitimate_address_p): Reimplement.
11072         (store_with_one_insn_p): Return TRUE for any mode with size
11073         larger than 16 bytes.
11074         (address_needs_split): Define.
11075         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
11076         operands.
11077         (spu_convert_move): Define.
11078         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
11079         (spu_split_store): Change all MEM's to TImode.
11080         (spu_init_expanders): Preallocate registers that correspond to
11081         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
11082         mark_reg_pointer.
11083         (spu_split_convert): Define.
11084         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
11085         (_move<mode>, _movdi, _movti): Update predicate and condition.
11086         (load, store): Change to define_split.
11087         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
11088         extend<mode>ti2.
11089         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
11090         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
11091         define_insn_and_split of lshr<mode>3.
11092         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
11093         (<v>ashr<mode>3_imm): Define.
11094         (extv, extzv, insv): Allow MEM operands.
11095         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
11096         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
11097         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
11098         (_spu_convert2): Change to define_insn_and_split and remove the
11099         corresponding define_peephole2.
11100         (stack_protect_set, stack_protect_test, stack_protect_test_si):
11101         Change predicates to memory_operand.
11103 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
11105         * config/arm/thumb2.md: Add 16-bit multiply instructions.
11107 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11109         PR tree-optimization/40219
11110         * tree.c (iterative_hash_expr): Make sure the builtin function is
11111         a normal builtin function and not a front end or back end builtin
11112         before indexing into the built_in_decls array.
11114 2009-05-22  Richard Guenther  <rguenther@suse.de>
11116         PR middle-end/38964
11117         * alias.c (write_dependence_p): Do not use TBAA for answering
11118         anti-dependence or output-dependence.
11119         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
11120         (emit_pointer_definition): Remove.
11121         (emit_alias_warning): Likewise.
11122         (find_what_var_points_to): Remove TBAA pruning code.
11123         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
11124         violations.
11125         (compute_points_to_sets): Remove code computing the set of
11126         dereferenced pointers.
11127         * tree-data-ref.c (dr_may_alias_p): Properly use the split
11128         oracle for querying anti and output dependencies.
11129         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
11130         if TBAA may be applied.
11131         (refs_anti_dependent_p): New function.
11132         (refs_output_dependent_p): Likewise.
11133         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
11134         (refs_output_dependent_p): Likewise.
11135         * doc/tree-ssa.texi (Memory model): New section.
11136         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11137         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11138         * cfgexpand.c (expand_gimple_basic_block): Do not handle
11139         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
11140         * expr.c (expand_expr_real_1): Likewise.
11141         * gimple-low.c (lower_stmt): Likewise.
11142         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
11143         (dump_gimple_cdt): Remove.
11144         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11145         (gimple_size): Likewise.
11146         (walk_gimple_op): Likewise.
11147         (is_gimple_stmt): Likewise.
11148         (walk_stmt_load_store_addr_ops): Likewise.
11149         (gimple_build_cdt): Remove.
11150         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11151         * gimple.h (gimple_cdt_new_type): Remove.
11152         (gimple_cdt_new_type_ptr): Likewise.
11153         (gimple_cdt_set_new_type): Likewise.
11154         (gimple_cdt_location): Likewise.
11155         (gimple_cdt_location_ptr): Likewise.
11156         (gimple_cdt_set_location): Likewise.
11157         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11158         * tree-cfg.c (remove_useless_stmts_1): Do not handle
11159         GIMPLE_CHANGE_DYNAMIC_TYPE.
11160         (verify_types_in_gimple_stmt): Likewise.
11161         * tree-inline.c (estimate_num_insns): Likewise.
11162         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
11163         (copy_decl_to_var): Likewise.
11164         (copy_result_decl_to_var): Likewise.
11165         * tree-pretty-print.c (dump_generic_node): Do not handle
11166         CHANGE_DYNAMIC_TYPE_EXPR.
11167         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11168         * tree-ssa-operands.c (get_expr_operands): Likewise.
11169         * tree-ssa-structalias.c (struct variable_info): Remove
11170         no_tbaa_pruning member.
11171         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
11172         (unify_nodes): Do not copy it.
11173         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11174         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
11175         (set_uids_in_ptset): Do not check it.
11176         (find_what_var_points_to): Likewise.
11177         (compute_tbaa_pruning): Remove.
11178         (compute_points_to_sets): Do not call it.
11179         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11180         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11181         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
11182         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
11183         (DECL_NO_TBAA_P): Likewise.
11184         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
11185         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
11186         (expand_omp_atomic_pipeline): Do not set it.
11187         * print-tree.c (print_node): Do not dump it.
11188         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
11189         redundant check.
11191 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
11193         PR target/39856
11194         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
11195         for clobber.
11197 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
11199         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
11200         non-external.
11202 2009-05-22  Ben Elliston  <bje@au.ibm.com>
11204         * Makefile.in (bversion.h, s-bversion): New targets.
11205         (TOPLEV_H): Add bversion.h.
11206         * toplev.h: Include "bversion.h".
11207         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
11208         the __format__ attribute only if compiling with the same version
11209         of GCC as the sources (the "build version").
11211 2009-05-22  Ben Elliston  <bje@au.ibm.com>
11213         * c-format.c (handle_format_attribute): Fix comment typo.
11215 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
11217         PR target/37846
11218         * config/ia64/ia64.opt (mfused-madd): New.
11219         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
11220         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
11221         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
11222         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
11223         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
11224         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
11225         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
11226         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
11227         instruction if !TARGET_FUSED_MADD.
11228         (fpma, fpms): Remove colon from name.
11230 2009-05-22  Richard Guenther  <rguenther@suse.de>
11232         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
11233         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
11234         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11235         TARGET_MEM_REF.
11236         (create_expression_by_pieces): Only convert if necessary.
11237         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
11238         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
11240 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
11242         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
11243         regular pattern from a template and rename it ...
11244         (*extzv_truncsi_exts): ... to this.
11246 2009-05-21  Richard Guenther  <rguenther@suse.de>
11248         * cgraph.h (struct cgraph_node): Remove inline_decl member.
11249         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
11250         (cgraph_default_inline_p): Likewise.
11251         (cgraph_decide_inlining_incrementally): Likewise.
11253 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11254             Uros Bizjak  <ubizjak@gmail.com>
11256         * config/i386/cpuid.h (bit_MOVBE): New.
11258         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
11260         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
11261         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
11262         (ix86_handle_option): Handle OPT_mmovbe.
11263         (ix86_target_string): Add -mmovbe.
11264         (pta_flags): Add PTA_MOVBE.
11265         (processor_alias_table): Add PTA_MOVBE to "atom".
11266         (override_options): Handle PTA_MOVBE.
11268         * config/i386/i386.h (TARGET_MOVBE): New.
11270         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
11271         (*bswapsi_movbe): New.
11272         (*bswapdi_movbe): Likewise.
11273         (bswapdi2): Renamed to ...
11274         (*bswapdi_1): This.
11275         (bswapdi2): New expander.
11277         * config/i386/i386.opt (mmovbe): New.
11279         * doc/invoke.texi: Document -mmovbe.
11281 2009-05-21  Taras Glek  <tglek@mozilla.com>
11283         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
11284         * gcc-plugin.h (plugin_init): Updated signature.
11285         * gcc-plugin.h (plugin_name_args): Moved to this header.
11286         * doc/plugins.texi (plugin_init): Updated documention to reflect
11287         API change.
11288         * doc/plugins.texi (plugin_name_args): Added to documention.
11290 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
11292         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
11293         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
11295 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
11297         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
11298         JUMP_TABLE_DATA_P predicates where applicable.
11299         * config/i386/predicates.md: Ditto.
11300         * config/i386/sse.md: Ditto.
11302 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
11304         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
11305         operand2 -128 override length_immediate attribute to 1.
11306         * config/i386/predicates.md (constm128_operand): New predicate.
11308         * config/i386/i386.c (memory_address_length): Handle %r12
11309         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
11310         also check REGNO.
11311         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
11312         mode look through optional ZERO_EXTEND and SUBREG.
11313         * config/i386/i386.md (R12_REG): New define_constant.
11314         (prefix_data16): For sse unit set also for MODE_TI insns.
11315         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
11316         insns set if operand 1 is ext_QIreg_operand.
11317         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
11318         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
11319         immediate.
11320         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
11321         mode from MODE_DI to MODE_SI.
11322         (movdi_1_rex64): Override modrm and length_immediate attributes
11323         only for movabs (TYPE_IMOV, alternative 2).
11324         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
11325         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11326         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11327         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11328         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
11329         prefix_rex attribute if DImode.
11330         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
11331         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
11332         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
11333         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
11334         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
11335         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
11336         Likewise.  For TYPE_IMOV clear length_immediate attribute.
11337         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
11338         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
11339         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
11340         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
11341         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
11342         or one operand TYPE_ISHIFT.
11343         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
11344         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
11345         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
11346         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
11347         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
11348         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
11349         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
11350         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
11351         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
11352         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
11353         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
11354         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
11355         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
11356         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
11357         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
11358         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
11359         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
11360         set mode attribute, don't override length attribute.
11361         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
11362         to 1.
11363         (return_internal_long): Set length attribute to 2 instead of 1.
11364         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
11365         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
11366         prefix_rex attribute.
11367         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
11368         New predicates.
11369         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
11371 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11373         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
11375 2009-05-20  Ian Lance Taylor  <iant@google.com>
11377         * tree.c (build_tree_list_vec_stat): New function.
11378         (ctor_to_vec): New function.
11379         (build_nt_call_vec): New function.
11380         (build_call_array): Change args to be a const pointer.
11381         (build_call_vec): New function.
11382         * tree.h (build_nt_call_vec): Declare.
11383         (build_tree_list_vec_stat): Declare.
11384         (build_tree_list_vec): Define.
11385         (build_call_array): Update declaration.
11386         (build_call_vec): Declare.
11387         (ctor_to_vec): Declare.
11388         * c-common.c (tree_vector_cache): New static variable.
11389         (make_tree_vector): New function.
11390         (release_tree_vector): New function.
11391         (make_tree_vector_single): New function.
11392         (make_tree_vector_copy): New function.
11393         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
11394         (make_tree_vector_single, make_tree_vector_copy): Declare.
11395         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
11396         (c_parser_expr_list): Don't manage cache here, instead call
11397         make_tree_vector.
11398         (c_parser_release_expr_list): Remove static function.
11399         (c_parser_vec_to_tree_list): Remove static function.
11400         (c_parser_attributes): Call build_tree_list_vec instead of
11401         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
11402         c_parser_release_expr_list.
11403         (c_parser_postfix_expression_after_primary): Likewise.
11404         (c_parser_objc_keywordexpr): Likewise.
11406 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
11408         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
11409         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
11410         TARGET_CONVERT_TO_TYPE.
11411         * hooks.c (hook_tree_const_tree_null): Define.
11412         * hooks.h (hook_tree_const_tree_null): Declare.
11413         * target.h (struct gcc_target):  Add invalid_parameter_type,
11414         invalid_return_type, promoted_type, and convert_to_type fields.
11415         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
11416         (TARGET_INVALID_RETURN_TYPE): Define.
11417         (TARGET_PROMOTED_TYPE): Define.
11418         (TARGET_CONVERT_TO_TYPE): Define.
11419         (TARGET_INITIALIZER): Update for new fields.
11420         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
11421         (grokparms): Check targetm.invalid_parameter_type.
11422         * c-typeck.c (default_conversion): Check targetm.promoted_type.
11423         * c-convert.c (convert): Check targetm.convert_to_type.
11425 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
11427         * config/mips/mips.md (*extenddi_truncate<mode>,
11428         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
11429         defintions.
11430         (*extendhi_truncateqi): New define_insn_and_sptit.
11432 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
11434         PR middle-end/40204
11435         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
11436         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
11438 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11440         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
11441         the operand of VIEW_CONVERT_EXPR.
11443 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
11445         * config/i386/driver-i386.c (host_detect_local_cpu): Check
11446         extended family and model for Intel processors.  Support Intel Atom.
11448 2009-05-20  Olivier Hainque  <hainque@adacore.com>
11450         * gstab.h (stab_code_type): Define, to be used instead of the
11451         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
11452         notice.
11453         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
11454         occurrences by stab_code_type.
11455         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
11457 2009-05-20  Martin Jambor  <mjambor@suse.cz>
11459         * tree-flow.h (insert_edge_copies_seq): Undeclare.
11460         (sra_insert_before): Likewise.
11461         (sra_insert_after): Likewise.
11462         (sra_init_cache): Likewise.
11463         (sra_type_can_be_decomposed_p): Likewise.
11464         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
11465         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
11466         (sra_insert_before): Likewise.
11467         (sra_insert_after): Likewise.
11468         (sra_init_cache): Likewise.
11469         (insert_edge_copies_seq): Made static and moved upwards.
11471         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
11472         case.
11474         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
11476         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
11477         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
11478         simple copies.
11480 2009-05-20  Richard Guenther  <rguenther@suse.de>
11482         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
11483         with mismatched comparison modes.
11485 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11487         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
11488         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
11489         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
11490         with shifts for Thumb2.
11491         (orsi_notsi): New for orn.
11492         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
11493         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
11494         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
11495         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
11496         Don't invert remainder for IOR.
11498 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
11500         PR tree-optimization/40087
11501         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
11502         number_of_iterations_ne): Rename never_infinite argument.
11503         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
11504         number_of_iterations_le): Handle pointer-type ivs when
11505         exit_must_be_taken is false.
11506         (number_of_iterations_cond):  Do not always assume that
11507         exit_must_be_taken if the control variable is a pointer.
11509 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11511         * c-typeck.c (build_binary_op): Allow % on integal vectors.
11512         * doc/extend.texi (Vector Extension): Document that % is allowed too.
11514 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11516         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
11517         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
11519 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11521         PR c/40172
11522         * c.opt (Wlogical-op): Disabled by default.
11523         * c-opt (c_common_post_options): Do not enable Wlogical-op with
11524         Wextra.
11525         * doc/invoke.texi (Wlogical-op): Likewise.
11527 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11529         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
11530         into CASE_CONVERT.
11531         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
11532         Propagate the type of the first operand.
11533         <ASSERT_EXPR>: Simplify.
11534         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
11535         Rewrite using the RHS code as discriminant.
11536         <NOP_EXPR>: Turn into CASE_CONVERT.
11537         <PLUS_EXPR>: Propagate the type of the first operand.
11539 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
11541         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
11542         (ia64_dconst_0_375): New.
11543         * config/ia64/ia64.c (ia64_override_options): Remove
11544         -minline-sqrt-min-latency warning.
11545         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
11546         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
11547         * config/ia64/ia64.md (*sqrt_approx): Remove.
11548         (sqrtsf2): Remove #if 0.
11549         (sqrtsf2_internal_thr): Rewrite and move to div.md.
11550         (sqrtdf): Remove assert.
11551         (sqrtdf2_internal_thr): Rewrite and move to div.md.
11552         (sqrtxf2): Remove #if 0.
11553         (sqrtxf2_internal_thr): Rewrite and move to div.md.
11554         * div.md (sqrt_approx_rf): New.
11555         (sqrtsf2_internal_thr): New implementation.
11556         (sqrtsf2_internal_lat): New.
11557         (sqrtdf2_internal_thr: New implementation.
11558         (sqrtxf2_internal): New implementation.
11560 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
11561             Hans-Peter Nilsson  <hp@axis.com>
11563         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
11564         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
11565         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
11566         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
11567         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
11568         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
11569         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
11570         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
11571         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
11572         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
11573         * c-common.c: ...from here.
11575 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11577         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
11579 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11581         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
11583 2009-05-19  Ben Elliston  <bje@au.ibm.com>
11585         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
11586         assignments with memcpy calls.
11587         (add_fdes): Likewise.
11588         (binary_search_unencoded_fdes): Likewise.
11589         (linear_search_fdes): Eliminate type puns.
11591 2009-05-19  Richard Guenther  <rguenther@suse.de>
11593         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
11594         not falsely claim to have propagated into all uses.
11596 2009-05-19  Ben Elliston  <bje@au.ibm.com>
11598         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
11599         version to v3.0.
11601 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11603         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
11604         * config/sh/sh.c (sh_legitimate_address_p): Make static.
11605         (TARGET_LEGITIMATE_ADDRESS_P): New.
11606         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
11607         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
11609 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
11611         PR debug/40109
11612         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
11613         child of the containing namespace's DIE.
11615 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
11617         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
11618         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
11619         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
11620         extend patterns.
11622 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11624         PR target/39942
11625         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
11626         gen_align with gen_pad.
11627         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
11628         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
11630         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
11631         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11633         * config/i386/i386.md (align): Renamed to ...
11634         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
11635         ASM_OUTPUT_MAX_SKIP_PAD.
11637 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
11639         * config.gcc: Fix variable syntax.
11641         PR target/39531
11642         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
11643         before calling exact_log2.
11644         (output_iorsi3): Likewise.
11645         (output_xorsi3): Likewise.
11647 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11649         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
11650         for the none zero constant operand except for EQ and NE
11651         comprisons even when the first operand is R0.
11653 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
11655         * config/s390/2064.md: Remove trailing whitespaces.
11656         * config/s390/2084.md: Likewise.
11657         * config/s390/constraints.md: Likewise.
11658         * config/s390/fixdfdi.h: Likewise.
11659         * config/s390/libgcc-glibc.ver: Likewise.
11660         * config/s390/s390-modes.def: Likewise.
11661         * config/s390/s390-protos.h: Likewise.
11662         * config/s390/s390.c: Likewise.
11663         * config/s390/s390.h: Likewise.
11664         * config/s390/s390.md: Likewise.
11665         * config/s390/tpf-unwind.h: Likewise.
11667 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11669         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
11671 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11673         M68K TLS support.
11674         * configure.ac (m68k-*-*): Check if binutils support TLS.
11675         * configure: Regenerate.
11676         * config/m68k/predicates.md (symbolic_operand): Extend comment.
11677         * config/m68k/constraints.md (Cu): New constraint.
11678         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
11679         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
11680         (movsi): Handle TLS symbols.
11681         (addsi3_5200): Handle XTLS symbols, indent.
11682         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
11683         (m68k_tls_reference_p): Declare.
11684         (m68k_legitimize_address): Declare.
11685         (m68k_unwrap_symbol): Declare.
11686         * config/m68k/m68k.opt (mxtls): New option.
11687         * config/m68k/m68k.c (ggc.h): Include.
11688         (m68k_output_dwarf_dtprel): Implement hook.
11689         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
11690         (m68k_expand_prologue): Load GOT pointer when function needs it.
11691         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
11692         (m68k_legitimate_constant_address_p): Same.
11693         (m68k_decompose_address): Handle TLS references.
11694         (m68k_get_gp): New static function.
11695         (enum m68k_reloc): New contants.
11696         (TLS_RELOC_P): New macro.
11697         (m68k_wrap_symbol): New static function.
11698         (m68k_unwrap_symbol): New function.
11699         (m68k_final_prescan_insn_1): New static function.
11700         (m68k_final_prescan_insn): New function.
11701         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
11702         functions.
11703         (legitimize_pic_address): Handle TLS references..
11704         (m68k_tls_get_addr, m68k_get_tls_get_addr)
11705         (m68k_libcall_value_in_a0_p)
11706         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
11707         (m68k_call_m68k_read_tp): Helper variables and functions for ...
11708         (m68k_legitimize_tls_address): Handle TLS references.
11709         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
11710         New functions.
11711         (m68k_legitimize_address): Handle TLS symbols.
11712         (m68k_get_reloc_decoration): New static function.
11713         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
11714         UNSPEC_RELOC32.
11715         (m68k_output_dwarf_dtprel): Implement hook.
11716         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
11717         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
11718         m68k_call_* routines.
11719         (sched_attr_op_type): Handle TLS symbols.
11720         (gt-m68k.h): Include.
11721         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
11722         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
11724 2009-05-18  Martin Jambor  <mjambor@suse.cz>
11726         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
11727         (visit_store_addr_for_mod_analysis): New function.
11728         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
11729         (determine_cst_member_ptr): Use gimple_assign_single_p.
11730         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
11731         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
11732         operands.  Don't check number of operands of a NOP_EXPR.
11734 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
11736         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
11738 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11740         PR c/40172
11741         * c-common.c (warn_logical_operator): Don't warn if one of
11742         expression isn't always true or false.
11744 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
11746         * config/i386/biarch32.h: New file.
11747         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
11749 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
11751         * config/mips/mips.md (*zero_extend<mode>_trunchi,
11752         *zero_extend<mode>_truncqi): Merge these into ...
11753         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
11754         Name the pattern following this as *zero_extendhi_truncqi.
11756 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
11758         PR middle-end/39301
11759         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
11760         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
11761         (output_info): Make field HOST_WIDEST_INT.
11762         (print_statistics): Use HOST_WIDEST_INT_PRINT.
11763         (dump_bitmat_statistics): Same.
11765 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
11767         * config.gcc (use_gcc_stdint):  Set to wrap.
11768         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11769         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
11770         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11771         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11772         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11773         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11774         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11775         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11777 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
11779         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
11780         tune_64.
11781         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
11782         Move definitions earlier.
11783         (OPT_ARCH64, OPT_ARCH32): Define.
11784         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
11785         and tune_64.
11787 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
11789         PR target/40153
11790         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
11791         implies.
11793 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
11795         * arm.md (movdi2): Copy non-reg values to DImode registers.
11797 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
11799         PR target/39942
11800         * final.c (label_to_max_skip): New function.
11801         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
11802         CODE_LABEL_NUMBER <= max_labelno.
11803         * output.h (label_to_max_skip): New prototype.
11804         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
11805         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
11806         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
11807         Handle CODE_LABELs with >= 16 byte alignment or with
11808         max_skip == (1 << align) - 1.
11809         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
11810         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
11812         PR target/39942
11813         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
11814         .p2align 3 if MAX_SKIP is smaller than 7.
11815         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11817 2009-05-15  Ian Lance Taylor  <iant@google.com>
11819         * alias.c (struct alias_set_entry_d): Rename from struct
11820         alias_set_entry.  Change all uses.
11821         * except.c (struct call_site_record_d): Rename from struct
11822         call_site_record.  Change all uses.
11823         * except.h (struct eh_region_d): Rename from struct eh_region.
11824         Change all uses.
11825         * gcse.c (struct hash_table_d): Rename from struct hash_table.
11826         Change all uses.
11827         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
11828         ivtype_map_elt.  Change all uses.
11829         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
11830         Change all uses.
11831         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
11832         * graphite.h (struct name_tree_d): Rename from struct name_tree.
11833         Change all uses.
11834         (struct sese_d): Rename from struct sese.  Change all uses.
11835         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
11836         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
11837         * optabs.h (struct optab_d): Rename from struct optab.  Change all
11838         uses.
11839         (struct convert_optab_d): Rename from struct convert_optab.
11840         Change all uses.
11841         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
11842         ipa_opt_pass.  Change all uses.
11843         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
11844         all uses.
11846         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
11847         defined as a typedef.
11848         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
11849         defined as a tag.
11851 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11853         PR 16302
11854         * fold-const.c (make_range,build_range_check,merge_ranges): Move
11855         declaration to...
11856         (merge_ranges): Returns bool.
11857         * tree.h (make_range): .. to here.
11858         (build_range_check): Likewise.
11859         (merge_ranges): Likewise. Renamed from merge_ranges.
11860         * c-typeck.c (parser_build_binary_op): Update calls to
11861         warn_logical_operator.
11862         * c-common.c (warn_logical_operator): Add new warning.
11863         * c-common.h (warn_logical_operator): Update declaration.
11865 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11867         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
11869 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11871         * doc/install.texi: Document MPC requirements, flags etc.
11873         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
11874         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
11875         Evaluate constant arguments.
11876         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
11877         (fold_builtin_1): Likewise, also evaluate constant arguments.
11878         Remove superfluous break.
11879         (do_mpc_ckconv): New.
11880         * real.h: Include mpc.h.
11881         * toplev.c (print_version): Output MPC version info if available.
11883 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
11885         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
11887 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
11889         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
11890         only once.
11892 2009-05-15  Jan Hubicka  <jh@suse.cz>
11894         * doc/invoke.texi (max-early-inliner-iterations): New flag.
11895         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
11896         (try_inline): Fix return value.
11897         (cgraph_decide_inlining_incrementally): Honor new value.
11898         (cgraph_early_inlining): Handle indirect inlining.
11899         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
11901 2009-05-15  Jan Hubicka  <jh@suse.cz>
11903         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
11904         * cgraphunit.c (cgraph_finalize_function): Set it.
11905         (cgraph_expand_function): Use it.
11907 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
11909         * real.c (encode_ieee_half): Define.
11910         (decode_ieee_half): Define.
11911         (ieee_half_format): Define.
11912         (arm_half_format): Define.
11913         * real.h (ieee_half_format): Declare.
11914         (arm_half_format): Declare.
11916 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
11918         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
11919         swapped, and reversed optabs exist before trying to use them.
11921 2009-05-15  Paul Brook  <paul@codesourcery.com>
11922             Sandra Loosemore  <sandra@codesourcery.com>
11924         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
11925         loads.  Allow PRE_DEC.
11926         (output_move_neon): Handle PRE_DEC.
11927         (arm_print_operand): Add 'A' for neon structure loads.
11928         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
11929         * config/arm/neon.md (neon_mov): Update comment.
11930         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
11931         calls.
11932         (Um): New constraint.
11934 2009-05-15  Jan Hubicka  <jh@suse.cz>
11936         Revert the following patch until testsuite fallout is fixed:
11937         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
11938         * cgraph.h (struct inline_summary): New filed self_wize,
11939         size_inlining_benefit, self_time and time_inlining_benefit.
11940         (struct cgraph_global_info): Replace insns by time ans size fields.
11941         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
11942         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
11943         (ipcp_update_callgraph): Do not touch function bodies.
11944         * ipa-inline.c: Include except.h
11945         (MAX_TIME): New constant.
11946         (overall_insns): Remove
11947         (overall_size, max_benefit): New static variables.
11948         (cgraph_estimate_time_after_inlining): New function.
11949         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
11950         (cgraph_clone_inlined_nodes): Update size.
11951         (cgraph_mark_inline_edge): Update size.
11952         (cgraph_estimate_growth): Use size info.
11953         (cgraph_check_inline_limits): Check size.
11954         (cgraph_default_inline_p): Likewise.
11955         (cgraph_edge_badness): Compute badness based on benefit and size cost.
11956         (cgraph_decide_recursive_inlining): Check size.
11957         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
11958         and times.
11959         (cgraph_decide_inlining): Likewise.
11960         (cgraph_decide_inlining_incrementally): Likewise; honor
11961         PARAM_EARLY_INLINING_INSNS.
11962         (likely_eliminated_by_inlining_p): New predicate.
11963         (estimate_function_body_sizes): New function.
11964         (compute_inline_parameters): Use it.
11965         * except.c (must_not_throw_labels): New function.
11966         * except.h (must_not_throw_labels): Declare.
11967         * tree-inline.c (init_inline_once): Kill inlining_weigths
11968         * tree-ssa-structalias.c: Avoid uninitialized warning.
11969         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
11970         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
11971         (PARAM_INLINE_CALL_COST): Remove.
11972         (PARAM_EARLY_INLINING_INSNS): New.
11974 2009-05-15  Richard Guenther  <rguenther@suse.de>
11976         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
11977         not TODO_update_ssa.
11979 2009-05-15  Richard Guenther  <rguenther@suse.de>
11981         PR tree-optimization/39999
11982         * gimple.h (gimple_expr_type): Use the expression type looking
11983         through useless conversions.
11984         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
11985         (vn_nary_op_insert_stmt): Likewise.
11986         (simplify_binary_expression): Likewise.
11988 2009-05-15  Richard Guenther  <rguenther@suse.de>
11990         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
11991         New options, enabled by default.
11992         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
11993         Document.
11994         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
11995         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
11996         * tree-ssa-structalias.c (gate_tree_pta): New function.
11997         (pass_build_alias): Use it.
11999 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
12001         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12002         recurse on an invariant address if a conversion from a pointer
12003         type to a wider integer type is involved.
12005 2009-05-15  Jan Hubicka  <jh@suse.cz>
12007         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12008         * cgraph.h (struct inline_summary): New filed self_wize,
12009         size_inlining_benefit, self_time and time_inlining_benefit.
12010         (struct cgraph_global_info): Replace insns by time ans size fields.
12011         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12012         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12013         (ipcp_update_callgraph): Do not touch function bodies.
12014         * ipa-inline.c: Include except.h
12015         (MAX_TIME): New constant.
12016         (overall_insns): Remove
12017         (overall_size, max_benefit): New static variables.
12018         (cgraph_estimate_time_after_inlining): New function.
12019         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12020         (cgraph_clone_inlined_nodes): Update size.
12021         (cgraph_mark_inline_edge): Update size.
12022         (cgraph_estimate_growth): Use size info.
12023         (cgraph_check_inline_limits): Check size.
12024         (cgraph_default_inline_p): Likewise.
12025         (cgraph_edge_badness): Compute badness based on benefit and size cost.
12026         (cgraph_decide_recursive_inlining): Check size.
12027         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12028         and times.
12029         (cgraph_decide_inlining): Likewise.
12030         (cgraph_decide_inlining_incrementally): Likewise; honor
12031         PARAM_EARLY_INLINING_INSNS.
12032         (likely_eliminated_by_inlining_p): New predicate.
12033         (estimate_function_body_sizes): New function.
12034         (compute_inline_parameters): Use it.
12035         * except.c (must_not_throw_labels): New function.
12036         * except.h (must_not_throw_labels): Declare.
12037         * tree-inline.c (init_inline_once): Kill inlining_weigths
12038         * tree-ssa-structalias.c: Avoid uninitialized warning.
12039         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12040         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12041         (PARAM_INLINE_CALL_COST): Remove.
12042         (PARAM_EARLY_INLINING_INSNS): New.
12043         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
12044         (inline-call-cost): Remove.
12045         (early-inlining-insns): New.
12047 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
12049         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
12050         for bounds.
12051         (print_int_cst_bounds_in_octal_p): Likewise.
12052         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
12053         with subtypes.
12054         * dwarf2out.c (base_type_die): Likewise.
12055         (is_subrange_type): Delete.
12056         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
12057         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
12058         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
12059         if the destination type is boolean.
12060         (build_range_check): Do not special-case subtypes.
12061         (fold_sign_changed_comparison): Likewise.
12062         (fold_unary): Likewise.
12063         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
12064         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
12065         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
12066         * tree.c (subrange_type_for_debug_p): New predicate based on the
12067         former is_subrange_type.
12068         * tree.h (subrange_type_for_debug_p): Declare.
12069         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
12070         (convert_affine_scev): Remove call to above function.
12071         (chrec_convert_aggressive): Likewise.
12072         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
12073         false for conversions involving subtypes.
12074         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
12075         (vrp_val_min): Likewise.
12076         (needs_overflow_infinity): Likewise.
12077         (extract_range_from_unary_expr): Likewise.
12079 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
12081         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
12082         * config/frv/frv.c: Likewise.
12083         * config/s390/s390.c: Likewise.
12084         * config/sparc/sparc.h: Likewise.
12085         * config/i386/i386.h: Likewise.
12086         * config/i386/i386.c: Likewise.
12087         * config/crx/crx.c: Likewise.
12088         * config/m68hc11/m68hc11.h: Likewise.
12089         * config/iq2000/iq2000.c: Likewise.
12090         * config/mn10300/mn10300.h: Likewise.
12091         * config/mn10300/mn10300.c: Likewise.
12092         * config/m68k/m68k.c: Likewise.
12093         * config/rs6000/rs6000.c: Likewise.
12094         * config/rs6000/xcoff.h: Likewise.
12095         * config/rs6000/linux64.h: Likewise.
12096         * config/rs6000/sysv4.h: Likewise.
12097         * config/score/score3.c: Likewise.
12098         * config/score/score7.c: Likewise.
12099         * config/score/score.c: Likewise.
12100         * config/arm/arm.md: Likewise.
12101         * config/mips/mips.c: Likewise.
12102         * config/mips/mips.md: Likewise.
12103         * config/bfin/bfin.h: Likewise.
12104         * config/pa/pa.c: Likewise.
12105         * config/pa/constraints.md: Likewise.
12107         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
12108         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
12109         * config/pdp11/pdp11.h: Use memory_address_p instead.
12111 2009-05-14  Ian Lance Taylor  <iant@google.com>
12113         * passes.c (finish_optimization_passes): Change i to int.
12114         * plugin.c (plugins_active_p): Change event to int.
12115         (dump_active_plugins): Likewise.
12116         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
12117         Add cast.
12118         * tree.c (tree_range_check_failed): Change c to unsigned int.
12119         (omp_clause_range_check_failed): Likewise.
12120         (build_common_builtin_nodes): Change mode to int.  Add cast.
12121         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
12122         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
12124         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
12125         ++ or -- with a variable of enum type.
12127 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12129         PR driver/40144
12130         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
12132 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12134         * store-motion.c: Do not include params.h
12135         * Makefile.in: Fix dependencies for various files.
12137 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12139         * auto-inc-dec.c: Fix pass description, remove apparent
12140         accidental duplication.
12142 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12144         PR middle-end/40147
12145         * ipa-utils.h (memory_identifier_string): Moved to ...
12146         * tree.h (memory_identifier_string): Here.  Add GTY(()).
12148 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
12150         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
12151         in the former documentation of...
12152         (GO_IF_LEGITIMATE_ADDRESS): ... this.
12153         * ira-conflicts.c (get_dup_num): Use address_operand.
12154         * targhooks.c (default_legitimate_address_p): New.
12155         * targhooks.h (default_legitimate_address_p): New.
12156         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
12157         Call hook.
12158         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
12159         * target.h (struct target): Add legitimate_address_p.
12160         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
12161         (TARGET_INITIALIZER): Include it.
12163         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12164         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
12165         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
12166         (TARGET_LEGITIMATE_ADDRESS_P): New.
12168         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12169         (REG_OK_STRICT_P): Delete.
12170         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
12171         (frv_legitimate_address_p_1): ... this.
12172         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
12173         (frv_legitimate_address_p_1): ... the renamed old
12174         frv_legitimate_address_p.
12175         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
12176         (TARGET_LEGITIMATE_ADDRESS_P): New.
12178         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12179         * config/s390/s390-protos.h (legitimate_address_p): Remove.
12180         * config/s390/s390.c (legitimate_address_p): Rename to...
12181         (s390_legitimate_address_p): ... this, make static.
12182         (legitimize_address): Adjust call.
12183         (TARGET_LEGITIMATE_ADDRESS_P): New.
12184         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
12186         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12187         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
12188         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
12189         (TARGET_LEGITIMATE_ADDRESS_P): New.
12191         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12192         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
12193         * config/spu/spu.c (spu_legitimate_address): Rename to...
12194         (spu_legitimate_address_p): ... this, make static.
12195         (TARGET_LEGITIMATE_ADDRESS_P): New.
12197         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12198         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
12199         * config/sparc/sparc.c (legitimate_address_p): Rename to...
12200         (sparc_legitimate_address_p): ... this, make static and return bool.
12201         (legitimize_address): Adjust call.
12202         (TARGET_LEGITIMATE_ADDRESS_P): New.
12204         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12205         * config/i386/i386-protos.h (legitimate_address_p): Remove.
12206         * config/i386/i386.c (legitimate_address_p): Rename to...
12207         (ix86_legitimate_address_p): ... this, make static.
12208         (constant_address_p): Move after it, adjust call.
12209         (TARGET_LEGITIMATE_ADDRESS_P): New.
12211         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12212         * config/avr/avr-protos.h (legitimate_address_p): Remove.
12213         * config/avr/avr.c (legitimate_address_p): Rename to...
12214         (avr_legitimate_address_p): ... this, make static.
12215         (legitimize_address): Adjust call.
12216         (TARGET_LEGITIMATE_ADDRESS_P): New.
12218         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12219         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
12220         * config/crx/crx.c (crx_legitimate_address_p): Make static.
12221         (TARGET_LEGITIMATE_ADDRESS_P): New.
12223         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12224         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
12225         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
12226         (TARGET_LEGITIMATE_ADDRESS_P): New.
12228         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12229         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
12230         Remove.
12231         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12232         Make static.
12233         (TARGET_LEGITIMATE_ADDRESS_P): New.
12235         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12236         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
12237         Remove.
12238         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
12239         Rename to...
12240         (m68hc11_legitimate_address_p): ... this, make static.
12241         (go_if_legitimate_address_internal): Rename to...
12242         (m68hc11_legitimate_address_p_1): ... this.
12243         (legitimize_address): Adjust call.
12244         (TARGET_LEGITIMATE_ADDRESS_P): New.
12246         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12247         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
12248         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
12249         (TARGET_LEGITIMATE_ADDRESS_P): New.
12251         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12252         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
12253         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
12254         (mn10300_legitimate_address_p): ... this, make static.
12255         (TARGET_LEGITIMATE_ADDRESS_P): New.
12257         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12258         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
12259         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
12260         (TARGET_LEGITIMATE_ADDRESS_P): New.
12262         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12263         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
12264         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
12265         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12266         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
12267         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
12268         (rs6000_legitimate_address_p): ... this, make static.
12269         (TARGET_LEGITIMATE_ADDRESS_P): New.
12270         (REG_MODE_OK_FOR_BASE_P): Delete.
12271         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
12273         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12274         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
12275         Delete.
12276         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
12277         static, adjust types.
12278         (TARGET_LEGITIMATE_ADDRESS_P): New.
12280         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12281         * config/score/score.c (score_address_p): Rename to...
12282         (score_legitimate_address_p): ... this.
12283         (TARGET_LEGITIMATE_ADDRESS_P): New.
12284         * config/score/score3.c (score3_address_p): Rename to...
12285         (score3_legitimate_address_p): ... this.
12286         * config/score/score7.c (score7_address_p): Rename to...
12287         (score7_legitimate_address_p): ... this.
12289         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
12290         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
12291         GO_IF_LEGITIMATE_ADDRESS): Delete.
12292         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
12293         thumb2_legitimate_address_p): Delete.
12294         (arm_legitimate_address_p): Rename to...
12295         (arm_legitimate_address_outer_p): ... this.
12296         * config/arm/constraints.md ("Uq"): Adjust call.
12297         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
12298         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
12299         to...
12300         (arm_legitimate_address_outer_p): ... this.
12301         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
12302         static.
12303         (TARGET_LEGITIMATE_ADDRESS_P): New.
12305         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12306         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
12307         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
12308         (TARGET_LEGITIMATE_ADDRESS_P): New.
12310         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12311         * config/vax/vax-protos.h (legitimate_address_p): Remove.
12312         * config/vax/vax.c (legitimate_address_p): Rename to...
12313         (vax_legitimate_address_p): ... this, make static.
12314         (TARGET_LEGITIMATE_ADDRESS_P): New.
12316         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12317         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
12318         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
12319         (TARGET_LEGITIMATE_ADDRESS_P): New.
12321         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12322         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
12323         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
12324         (mmix_legitimate_address_p): ... this, make static.
12325         (TARGET_LEGITIMATE_ADDRESS_P): New.
12327         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12328         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
12329         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
12330         (TARGET_LEGITIMATE_ADDRESS_P): New.
12332 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
12334         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
12335         of MODE_COMPLEX_INT.
12337 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12339         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
12340         LCT_NORMAL in function call.
12341         * mips-tdump.c (print_file_desc): Add cast to enum type.
12342         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
12343         (mark_stabs): Add casts to enum types.
12344         (parse_stabs_common): Add casts to enum types.
12346 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
12348         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
12349         Check for invalid values of LETTER.
12351 2009-05-13  Taras Glek  <tglek@mozilla.com>
12353         * attribs.c (register_attribute): moved out attribute registration
12354         into register_attribute.
12355         * doc/plugins.texi: Documented register_attribute and
12356         PLUGIN_ATTRIBUTES.
12357         * gcc-plugin.h: Added forward decl for register_attribute.
12358         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
12359         * plugin.c (register_callback, invoke_plugin_callbacks): Added
12360         PLUGIN_ATTRIBUTES boilerplate.
12362 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
12364         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
12365         values even in sentinel and empty entries.
12366         (ms_printf_flag_specs):  Likewise.
12367         (ms_scanf_flag_specs):  Likewise.
12368         (ms_strftime_flag_specs):  Likewise.
12369         (ms_print_char_table):  Likewise.
12370         (ms_scan_char_table):  Likewise.
12371         (ms_time_char_table):  Likewise.
12373 2009-05-13  Doug Kwan  <dougkwan@google.com>
12375         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
12377 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
12379         * config/mips/mips.md (store): Add attributes for QI and HI.
12380         Update comment.
12381         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
12382         (truncdi<mode>2): ... this new pattern.
12384 2009-05-13  Brad Hards  <bradh@kde.org>
12386         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
12388 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
12389             Ben Elliston <bje@au.ibm.com>
12391         PR middle-end/40035
12392         * dse.c (check_mem_read_rtx): Guard against width == -1.
12394 2009-05-13  Michael Matz  <matz@suse.de>
12396         PR middle-end/39976
12397         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
12398         (trivially_conflicts_p): New function.
12399         (insert_backedge_copies): Use it.
12401 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
12403         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
12404         (handle_stdc_pragma): Use new enum constant names.
12405         (handle_pragma_float_const_decimal64): Ditto.
12407 2009-05-13  Ian Lance Taylor  <iant@google.com>
12409         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
12410         tree.def.
12412 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
12414         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
12415         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
12416         multilibs.
12417         * config/m68k/m68k.h (FL_UCLINUX): Define.
12419 2009-05-13  Jan Hubicka  <jh@suse.cz>
12421         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
12423 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12425         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
12426         unless -fschedule-insns is specified.
12428 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12430         PR target/39561
12431         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
12432         TARGET_EXPAND_CBRANCHDI4.
12433         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
12434         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
12435         (cmpeqdi): Fix comment.
12437 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12439         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
12440         (sh_legitimate_address_p): Likewise.
12441         * config/sh/sh.c (sh_legitimate_index_p): New.
12442         (sh_legitimate_address_p): Likewise.
12443         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
12444         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
12445         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
12446         (MAYBE_BASE_REGISTER_RTX_P): New macro.
12447         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
12448         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
12449         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
12450         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
12451         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
12453 2009-05-12  Jan Hubicka  <jh@suse.cz>
12455         * tree-inline.c (estimate_operator_cost): Add operands;
12456         when division happens by constant, it is cheap.
12457         (estimate_num_insns): Loads and stores are not having cost of 0;
12458         EH magic stuff is cheap; when computing runtime cost of switch,
12459         use log2 base of amount of its cases; builtin_expect has cost of 0;
12460         compute cost for moving return value of call.
12461         (init_inline_once): Initialize time_based flags.
12462         * tree-inline.h (eni_weights_d): Add time_based flag.
12464 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12466         * df-core.c: Update head documentation.
12468 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12470         PR bootstrap/40118
12471         * rs6000.c (rs6000_generate_compare): Use op1b instead of
12472         shadowing exisiting variable op1.
12474 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
12476         PR target/37179
12477         * config/i386/driver-i386.c (processor_signatures): New enum.
12478         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
12479         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
12480         processor signature to detect geode processor.
12482 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12484         Revert:
12486         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12488         * optabs.c (prepare_cmp_insn): Temporarily disable test that
12489         causes spurious differences between trunk and cond-optab branch.
12491 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12493         * dojump.c (compare_from_rtx): Delete.
12494         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
12495         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
12496         if the comparison does not satisfy the predicate; test predicates for
12497         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
12498         further if one existing pattern fails.
12499         * expr.h (compare_from_rtx): Delete.
12500         (prepare_operand): Declare it.
12501         * optabs.c: Change "lib call" to "libcall" throughout.
12502         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
12503         HAVE_conditional_trap, emit_cmp_insn): Delete.
12504         (can_compare_p): Delete cmp_optab case.
12505         (prepare_float_lib_cmp): Return an rtx and a machine mode.
12506         Accept other parameters by value.
12507         (prepare_operand): Make non-static.
12508         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
12509         other parameters by value.  Try to widen operands here based on
12510         an optab_methods argument and looking at cbranch_optab.
12511         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
12512         loop.  Use cbranch_optab directly.
12513         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
12514         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
12515         assertion.
12516         (emit_conditional_move, emit_conditional_add): Inline what's needed
12517         of compare_from_rtx, using new prepare_cmp_insn for the rest.
12518         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
12519         with COMPARE.  Move cmov_optab and cstore_optab above
12520         with cbranch_optab, move cmp_optab down with ucmp_optab,
12521         remove tst_otpab.  Do not initialize trap_rtx.
12522         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
12523         for trap code.  Do not check HAVE_conditional_trap.  Use
12524         prepare_cmp_insn.  Accept no predicate for operand 3.
12525         * optabs.h (OTI_cmp): Mark as used only for libcalls.
12526         (OTI_ctrap, ctrap_optab): New.
12527         (tst_optab): Delete.
12528         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
12529         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
12530         with lookup of ctrap_optab.
12531         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
12532         Delete.
12533         (ctrap_optab): New.
12535         * combine.c (combine_simplify_rtx, simplify_set): Do not
12536         special case comparing against zero for cc0 machines.
12537         * simplify-rtx.c (simplify_binary_operation_1): Never remove
12538         COMPARE on cc0 machines.
12539         (simplify_relational_operation): Return a new expression when
12540         a COMPARE could be removed.
12541         * final.c (final_scan_insn): Compare cc_status values
12542         against LHS of a (compare FOO (const_int 0)) cc0 source.
12543         Also check if cc_status.value is the full compare.
12545         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
12546         (cstoreMM4): Document.
12547         (conditional_trap): Document ctrapMM4 instead.
12548         (sync_compare_and_swapMM): Refer to cbranchcc4.
12549         (Dependent Patterns): Eliminate obsolete information referring to
12550         the old jump optimization phase.
12551         (Canonicalization): Include cbranchcc4 case, omit canonicalization
12552         of compares with 0 on cc0 machines.
12553         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
12554         avoiding references to cc0.  Remove text about storing operands
12555         in cmpMM.
12556         * doc/tm.texi (Condition Codes): Include blurb on different
12557         condition code representations, separate into subsections for
12558         CC0, MODE_CC and conditional execution.
12560         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
12561         alpha_emit_setcc): Accept operands and a machine mode.
12562         * config/alpha/alpha.c (alpha_emit_conditional_branch):
12563         Get code/op0/op1 from operands, use machine mode argument
12564         instead of alpha_compare.fp_p.  Emit the branch here.
12565         (alpha_emit_setcc): Likewise, and return boolean.
12566         (alpha_emit_conditional_move): Likewise.  Assert that
12567         cmp_op_mode == cmp_mode, and simplify accordingly.
12568         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
12569         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
12570         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
12571         Delete.
12572         (stack probe test): Use cbranchdi4.
12573         * config/alpha/predicates.md (alpha_cbranch_operator): New.
12575         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
12576         * config/arc/arc.h (movsicc, movsfcc): Use it.
12577         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
12578         (cbranchsi4, cstoresi4): New.
12579         (cmpsi, bCC and sCC expanders): Remove.
12581         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
12582         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
12583         * config/arm/predicates.md (arm_comparison_operator): Only include
12584         floating-point operators if there is a hardware floating-point unit.
12585         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
12586         deferring to cbranch_cc and cstore_cc respectively.
12587         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
12588         cbranch_cc, cstore_cc): New.
12589         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
12590         arm_compare_op1.
12591         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
12593         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
12594         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
12595         as an argument.
12596         (adjust_insn_length): Adjust calls.
12597         (avr_reorg): Handle (compare (foo) (const_int 0)).
12598         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
12599         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
12600         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
12601         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
12602         (bCC): Remove.
12603         (cbranchqi4, cbranchhi4, cbranchsi4): New.
12604         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
12606         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
12607         (cbranchsi4, cstorebi4, cstoresi4): New.
12608         (movbisi): This insn is duplicate, split it to zero_extend.
12609         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
12610         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
12611         (bfin_optimize_loop): Use cbranch expander.
12612         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
12613         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
12614         (bfin_bimode_comparison_operator): ... this.
12615         (bfin_direct_comparison_operator): New.
12617         * config/cris/cris.c (cris_normal_notice_update_cc): Look
12618         inside (compare FOO (const_int 0)).
12619         (cris_rtx_costs): Handle ZERO_EXTRACT.
12620         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
12621         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
12622         (*tstdi_v32): Delete.
12623         (*cmpdi_non_v32): Add M alternative for operand 1.
12624         (cmpsi, cmp<mode>): Make private.
12625         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
12626         with COMPARE.
12627         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
12629         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
12630         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
12631         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
12632         (cc_reg_operand): New.
12633         (any_cond): Delete.
12634         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
12635         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
12636         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
12637         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
12638         crx_expand_scond): Delete.
12640         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
12641         (cbranchsi4): New.
12642         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
12643         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
12645         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
12646         cstoresi4, cstoresf4, cstoredf4): New.
12647         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
12648         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12649         Receive the entire operands array.
12650         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
12651         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
12652         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12653         Get test/op0/op1 from the operands array.
12654         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
12656         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
12657         (h8300_expand_store): New.
12658         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
12659         (const_int 0)).
12660         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
12661         (h8300_expand_store): New.
12662         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
12663         or do not try to produce (set (cc0) REG).
12664         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
12665         change a compare into a move to a scratch register.  Disable some
12666         peepholes when comparing with zero.
12667         (tstsi, tsthi, tstsi, cmpqi): Make private.
12668         (cmphi): Delete.
12669         (bCC, sCC): Delete.
12670         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
12671         cstoresi4): New.
12673         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
12674         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
12675         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
12676         (ix86_emit_i387_log1p): Use cbranchxf2.
12677         (ix86_expand_setcc): Return void.
12678         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
12679         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
12680         cmp<MODEF>, cmpcc): Remove.
12681         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
12682         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
12683         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
12684         (sCC and bCC expanders): Remove.
12685         (stack_protect_test): Use cbranchcc4.
12687         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
12688         Delete.
12689         (ia64_expand_compare): Accept three rtx by reference and return void.
12690         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
12691         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
12692         from *expr.  Update *expr with the BImode comparison to do.
12693         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
12694         cmptf, bCC, sCC, conditional_trap): Delete.
12695         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
12696         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
12697         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
12698         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
12699         * config/ia64/predicates.md (ia64_cbranch_operator): New.
12701         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
12702         type of last argument.
12703         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
12704         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
12705         use machine mode argument instead of branch_type.  Remove dead
12706         code for floating-point comparisons.
12707         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
12708         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
12709         Remove.
12710         (cbranchsi4, cstoresi4): New.
12711         * config/iq2000/predicates.md (reg_or_const_operand): New.
12713         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
12714         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
12715         (b<code>_op): Rewrite to...
12716         (bcc_op): ... this, using match_operator.
12717         (s<code>_op): Rewrite to...
12718         (scc_op): ... this, using match_operator.
12719         (s<code>_24_op): Rewrite to...
12720         (scc_op_24): ... this, using match_operator.
12721         (s<code>_<mode>): Rewrite to...
12722         (cstore<mode>4): ... this, using match_operator.
12723         (s<code>_<mode>_24): Rewrite to...
12724         (cstore<mode>4_24): ... this, using match_operator.
12725         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
12726         m32c_unpend_compare, m32c_expand_scc): Delete.
12727         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
12728         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
12729         (m32c_expand_movcc): Change NE to EQ if necessary.
12730         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
12732         * config/m32r/m32r-protos.h (gen_cond_store): New.
12733         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
12734         (gen_cond_store): New, from sCC patterns.
12735         (m32r_expand_block_move): Use cbranchsi4.
12736         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
12737         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
12738         (cbranchsi4, cstoresi4): New.
12740         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
12741         Delete.
12742         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
12743         (m68hc11_notice_update_cc): Look into a compare with 0.
12744         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
12745         Delete.
12746         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
12747         cmphi, cmpqi, bCC): Delete.
12748         (cbranchsi4, cbranchhi4, cbranchqi4): New.
12749         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
12750         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
12751         sets with COMPARE.
12753         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
12754         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
12755         * config/m68k/constraints.md (H): New.
12756         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
12757         the define_insn below.
12758         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
12759         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
12760         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
12761         patterns): Wrap RHS with COMPARE.
12762         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
12763         (*cmpdi_internal): Name this pattern.
12764         (cmpdi): Change to define_insn.
12765         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
12766         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
12767         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
12768         predicate.
12769         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
12770         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
12771         (conditional_trap): Change to...
12772         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
12773         (*conditional_trap): Use the ordered_comparison_operator and
12774         const1_operand predicates.
12775         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
12776         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
12777         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
12778         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
12780         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
12781         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
12782         (mcore_gen_compare): New.
12783         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
12784         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
12785         (mcore_gen_compare): ... this.
12786         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
12787         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
12788         (stack probe pattern): Use cbranchsi4.
12790         * config/mips/predicates.md (mips_cstore_operator): New.
12791         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
12792         * config/mips/mips.md (any_cond): Delete.
12793         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
12794         always succeed.
12795         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
12796         fixuns_truncsfdi2): Use cbranch patterns.
12797         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
12798         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
12799         Adjust call to mips_expand_conditional_branch.
12800         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
12801         cstore<GPR:mode>4.
12802         * config/mips/mips-protos.h (mips_expand_conditional_branch,
12803         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
12804         * config/mips/mips.c (cmp_operands): Delete.
12805         (mips_emit_compare): Get comparison operands from *op0/*op1.
12806         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
12807         that it succeeds.  Use op0/op1 instead of cmp_operands.
12808         (mips_expand_conditional_branch, mips_expand_conditional_move,
12809         mips_expand_conditional_trap): Likewise.
12810         (mips_block_move_loop): Use cbranch patterns.
12811         * config/mips/mips.h (cmp_operands): Delete.
12813         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
12814         (mmix_gen_compare_reg): Just return a register in the right CC mode.
12815         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
12816         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
12817         (*cmpcc_folded): Rename to...
12818         (*cmpdi_folded): this.
12819         (*cmpcc): Rename to...
12820         (*cmps): ... this.
12821         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
12822         (bCC): Remove.
12823         (cbranchdi4): New.
12824         (cbranchdf4): New.  Handle invalid comparisons here.
12825         * config/mmix/predicates.md (float_comparison_operator): New.
12827         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
12828         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
12829         * config/mn10300/mn10300.md (tst): Delete.
12830         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
12831         Name these patterns and wrap RHS in a compare.
12832         (*cmpsi): Make this pattern private.  Include tst.
12833         (*cmpsf): Make this pattern private.
12834         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
12835         (compare with zero peepholes): Likewise.
12836         (bCC): Remove.
12837         (cbranchsi4, cbranchsf4): New.
12838         (casesi): Use cbranchsi4.
12840         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
12841         hppa_branch_type): Delete.
12842         (return_addr_rtx): Use cbranchsi4.
12843         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
12844         Emit CCFPmode comparison here.
12845         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
12846         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
12847         hppa_branch_type): Delete.
12848         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
12849         (movsicc, movdicc): Remove references to hppa_compare_op0,
12850         hppa_compare_op1 and compare_from_rtx.
12851         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
12852         (casesi): Use cbranchsi4.
12854         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
12855         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
12856         * config/pdp11/pdp11.md (register_or_const0_operand): New.
12857         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
12858         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
12859         (bCC): Delete.
12860         (cbranchdf4, cbranchhi4, cbranchqi4): New.
12861         (*branch, *branch_inverted): New.
12863         * config/picochip/picochip.md (cbranchhi4): Use
12864         ordered_comparison_operator.
12865         (cmphi, bCC): Remove.
12867         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
12868         (trap_comparison_operator): Delete.
12869         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
12870         rs6000_emit_cbranch): Accept mode and operands.
12871         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
12872         rs6000_compare_fp_p): Delete.
12873         (rs6000_generate_compare): Accept mode and comparison.  Extract code
12874         and op0/op1 from there.  Replace references to rs6000_compare_op0
12875         and rs6000_compare_op1.
12876         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
12877         extract result from passed operands.
12878         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
12879         extract loc from passed operands.
12880         (rs6000_emit_cmove): Likewise.
12881         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
12882         rs6000_compare_fp_p): Delete.
12883         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
12884         (cbranch<GPR>4, cbranch<FP>4): New.
12885         (cstore<mode>4): New.  Consolidate here all choices about when to use
12886         portable or specialized sCC sequences.
12887         (stack_protect_test): Use cbranchsi4.
12888         (conditional_trap): Replace with ctrap<GPR>4.
12889         (conditional trap insn): Replace trap_comparison_operator with
12890         ordered_comparison_operator.
12892         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
12893         (s390_emit_prologue): Use ctrap.
12894         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
12895         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
12896         New predicates replacing...
12897         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
12898         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
12899         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
12900         (add<mode>cc): Do not use s390_compare_op0/op1.
12901         (s<code>): Change to...
12902         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
12903         (seq): Change to...
12904         (cstorecc4): ... this.  Handle EQ or NE equally.
12905         (*sne): Un-privatize for use in cstorecc4.
12906         (b<code>): Change to...
12907         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
12908         (conditional_trap): Replace with...
12909         (ctrap<GPR>4, ctrap<FP>4): ... these.
12910         (stack_protect): Use cbranchcc4.
12912         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
12913         * config/score/score-protos.h (score_gen_cmp): Delete.
12914         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
12915         (score_block_move-loop): Use cbranchsi4.
12916         * config/score/score.md (cbranchsi4): New.
12917         (cmpsi, bCC): Delete.
12918         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
12919         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
12920         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
12921         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
12922         * config/score/score3.h (score3_gen_cmp): Delete.
12923         * config/score/score7.h (score7_gen_cmp): Delete.
12925         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
12926         (sh_emit_scc_to_t): ... this.  Return void.
12927         (from_compare): Rename to...
12928         (sh_emit_compare_and_branch): ... this.
12929         (sh_emit_compare_and_set): New.
12930         (sh_expand_t_scc): Accept operands.
12931         * config/sh/predicates.md (sh_float_comparison_operator): New.
12932         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
12933         (prepare_scc_operands): Rename to...
12934         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
12935         arguments.
12936         (sh_emit_cheap_store_flag): New.
12937         (sh_emit_set_t_insn): New.
12938         (from_compare): Rename to...
12939         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
12940         handling of TARGET_SH2E floating point to avoid recursive call.
12941         Generate branch here.
12942         (sh_emit_compare_and_set): New.
12943         (sh_expand_t_scc): Get op0/op1 from arguments.
12944         (sh_emit_cheap_store_flag): New.
12945         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
12946         cases.
12947         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
12948         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
12949         (movsicc, movdicc): Do nothing when it recreated operands from
12950         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
12951         prepare_scc_operands (now sh_emit_scc_to_t).
12952         (udivdi3): Use cstoresi4.
12953         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
12954         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
12955         (cbranchint4_media, cbranchfp4_media): New.
12956         (casesi): Use cbranchdi4.
12957         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
12958         Delete.
12959         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
12960         (movnegt): Remove second operand.
12961         (cbranchsf4, cbranchdf4): New.
12962         (stack_protect): Use cbranchdi4/cbranchsi4.
12964         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
12965         (gen_compare_reg): Accept comparison, extract part of it to...
12966         (gen_compare_reg_1): ... this.
12967         (gen_compare_operator): Delete.
12968         (gen_v9_scc): Accept separate destination, comparison code and arms.
12969         Do not use sparc_compare_op0/sparc_compare_op1.
12970         (emit_scc_insn, emit_conditional_branch_insn): New.
12971         (emit_v9_brxx): Make static.  Remove useless assertion.
12972         (sparc_emit_float_lib_cmp): Return RTL instead of calling
12973         emit_cmp_insn.
12974         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
12975         * config/sparc/sparc-protos.h (gen_compare_reg,
12976         sparc_emit_float_lib_cmp): Adjust prototype.
12977         (emit_scc_insn, emit_conditional_branch_insn): New.
12978         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
12979         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
12980         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
12981         iterators to the top.
12982         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
12983         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
12984         snedi_special_trunc): Delete.
12985         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
12986         and snedi_special_trunc.
12987         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
12988         cbranchdi4, cbranch<F:mode>4): New.
12989         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
12990         here.  Use gen_compare_reg instead of gen_compare_operator.
12991         (conditional_trap): Replace with...
12992         (ctrapsi4, ctrapdi4): ... this.
12993         (stack_protect_test): Use cbranchcc4.
12995         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
12996         argument to rtx.
12997         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
12998         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
12999         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
13000         from operands[0] or operands[3] depending on is_set.
13001         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
13002         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
13003         cmpdf, bCC), sCC: Remove.
13004         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
13005         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
13006         cstoredf4): New.
13007         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
13008         spu_emit_branch_or_set.
13010         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
13011         Add two arguments.
13012         * config/stormy16/stormy16.h (xstormy16_compare_op0,
13013         xstormy16_compare_op1): Delete.
13014         * config/stormy16/stormy16.c (xstormy16_compare_op0,
13015         xstormy16_compare_op1): Delete.
13016         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
13017         Adjust calls.
13018         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
13019         (cmphi, cmpsi, bCC): Remove.
13021         * config/v850/v850.md (tstsi, cmpsi): Fold into...
13022         (*cmpsi): ... this one.
13023         (cbranchsi4, cstoresi4): New.
13024         (bCC expanders): Delete.
13025         (sCC insns): Fold into...
13026         (*setcc): ... this one.
13027         (casesi): Do not use gen_cmpsi and gen_bgtu.
13028         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
13029         (movsicc): Simplify.
13030         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
13032         * config/vax/vax-protos.h (cond_name): New.
13033         (vax_output_conditional_branch): Remove.
13034         * config/vax/vax.c (cond_name): New.
13035         (vax_output_conditional_branch): Remove.
13036         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
13037         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
13038         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
13039         (bit<VAXint>): Wrap source with (compare).
13040         (b<code> and following unnamed pattern): Rename to *branch and
13041         *branch_reversed.  Change macroization to match_operator.
13042         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
13044         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
13045         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
13046         Change last argument to machine_mode.
13047         (xtensa_expand_scc): Add machine_mode argument.
13048         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
13049         (gen_conditional_move, xtensa_expand_conditional_branch,
13050         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
13051         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
13052         Adjust operand numbers.
13053         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
13054         Delete.
13055         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
13056         (cmpsi, cmpsf, b<code>, s<code>): Delete.
13057         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
13059 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
13061         * optabs.c (prepare_cmp_insn): Temporarily disable test that
13062         causes spurious differences between trunk and cond-optab branch.
13064 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
13066         PR target/37137
13067         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
13069 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
13071         * tree.c (iterative_hash_pointer): Delete.
13072         (iterative_hash_expr): Short-circuit handling of NULL pointer.
13073         Hash UIDs and versions of SSA names.  Don't special-case built-in
13074         function declarations.
13076 2009-05-11  Ian Lance Taylor  <iant@google.com>
13078         PR bootstrap/40103
13079         * graphite.c: Force -Wc++-compat to only be a warning before
13080         #including "cloog/cloog.h".
13082 2009-05-11  Martin Jambor  <mjambor@suse.cz>
13084         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
13086 2009-05-11  Jan Hubicka  <jh@suse.cz>
13088         * tree-ssa-loop-ivcanon.c: Include target.h
13089         (struct loop_size): new structure.
13090         (constant_after_peeling): New predicate.
13091         (tree_estimate_loop_size): New function.
13092         (estimated_unrolled_size): Rewrite for new estimates.
13093         (try_unroll_loop_completely): Use new estimates.
13094         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
13096 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13098         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
13099         libcpp interface change.
13100         (spu_macro_to_expand): Likewise.
13102 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
13104         PR tree-optimization/40026
13105         * gimplify.c (gimplify_init_constructor): Change initial conditional
13106         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
13107         optimize_compound_literals_in_ctor.
13109 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
13111         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
13112         New devices.
13113         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
13115 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13117         * tree-vect-data-refs.c (vect_analyze_group_access): Use
13118         HOST_WIDE_INT for gap.
13120 2009-05-11  Ira Rosen  <irar@il.ibm.com>
13122         PR tree-optimization/40074
13123         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
13124         account in group size and step comparison.
13126 2009-05-11  Richard Guenther  <rguenther@suse.de>
13128         * passes.c (init_optimization_passes): Strip now incorrect comment.
13129         (execute_function_todo): Do not set PROP_alias.
13130         * tree-pass.h (PROP_alias): Remove.
13131         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
13132         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
13133         * tree-nrv.c (pass_return_slot): Likewise.
13134         * tree-object-size.c (pass_object_sizes): Likewise.
13135         * tree-ssa-dom.c (pass_dominator): Likewise.
13136         (pass_phi_only_cprop): Likewise.
13137         * tree-ssa-dse.c (pass_dse): Likewise.
13138         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
13139         (pass_cselim): Likewise.
13140         * tree-ssa-pre.c (pass_pre): Likewise.
13141         (pass_fre): Likewise.
13142         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13143         * tree-ssa-sink.c (pass_sink_code): Likewise.
13144         * tree-stdarg.c (pass_stdarg): Likewise.
13145         * tree-tailcall.c (pass_tail_calls): Likewise.
13146         * tree-vrp.c (pass_vrp): Likewise.
13148 2009-05-10  Ian Lance Taylor  <iant@google.com>
13150         * basic-block.h (enum profile_status): Break out of struct
13151         control_flow_graph.
13152         * cgraph.h (struct inline_summary): Break out of struct
13153         cgraph_local_info.
13154         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
13155         of struct cgraph_order_sort.
13156         * combine.c (enum undo_kind): New enum, broken out of struct undo.
13157         * cse.c (struct branch_path): Break out of struct
13158         cse_basic_block_data.
13159         * except.h (enum eh_region_type): Break out of struct eh_region.
13160         * gcc.c (enum add_del): Break out of struct modify_target.
13161         * genrecog.c (enum decision_type): Break out of struct decision_test.
13162         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
13163         ggc_pch_data.
13164         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
13165         * regmove.c (enum match_use): New enum, broken out of struct match.
13166         * sched-int.h (enum post_call_group): New enum, broken out of
13167         struct deps.
13168         (struct deps_reg): Break out of struct deps.
13169         * target.h (struct asm_int_op): Break out of struct gcc_target.
13170         * tree-eh.c (struct goto_queue_node): Break out of struct
13171         leh_tf_state.
13172         * tree-inline.h (enum copy_body_cge_which): Break out of
13173         copy_body_data.
13174         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
13176         * c-decl.c (in_struct, struct_types): New static variables.
13177         (pushtag): Add loc parameter.  Change all callers.
13178         (lookup_tag): Add ploc parameter.  Change all callers.
13179         (check_compound_literal_type): New function.
13180         (parser_xref_tag): Add loc parameter.  Change all callers.  If
13181         -Wc++-compat, warn about struct/union/enum types defined within a
13182         struct or union.
13183         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
13184         and loc parameters.  Change all callers.  Change error calls to
13185         error_at, using loc.  For a redefinition, if the location of the
13186         original definition is known, report it.  Set in_struct and
13187         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
13188         (finish_struct): Add new parameters enclosing_in_struct and
13189         enclosing_struct_types.  Change all callers.  Set
13190         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
13191         in the struct.  If in a struct, add this struct to struct_types.
13192         (start_enum): Add loc parameter.  Change all callers.  Use
13193         error_at for errors, using loc.  For a redefinition, if the
13194         location of the original definition is known, report it.  If in a
13195         struct, add this enum type to struct_types.  If -Wc++-compat warn
13196         if in sizeof, typeof, or alignof.
13197         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
13198         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
13199         (c_parser_enum_specifier): Get enum location for start_enum.
13200         (c_parser_struct_or_union_specifier): Get struct location for
13201         start_struct.  Save in_struct and struct_types status between
13202         start_struct and finish_struct.
13203         (c_parser_cast_expression): Get location of cast.
13204         (c_parser_alignof_expression): Get location of type.
13205         (c_parser_postfix_expression): Likewise.
13206         (c_parser_postfix_expression_after_paren_type): Add type_loc
13207         parameter.  Change all callers.  Call check_compound_literal_type.
13208         Use type_loc for error about variable size type.
13209         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
13210         of an enum constant from an enum type defined in a struct or union.
13211         (c_cast_expr): Add loc parameter.  Change all callers.  If
13212         -Wc++-compat, warn about defining a type in a cast.
13213         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
13214         (start_enum, start_struct, finish_struct): Update declarations.
13215         (parser_xref_tag, c_cast_expr): Update declarations.
13216         (check_compound_literal_type): Declare.
13218 2009-05-11  Ben Elliston  <bje@au.ibm.com>
13220         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
13221         for recent libcpp interface change.
13222         (rs6000_macro_to_expand): Likewise.
13224 2009-05-10  Michael Matz  <matz@suse.de>
13226         PR target/40031
13227         * config/arm/arm.c (require_pic_register): Emit on entry edge,
13228         not at entry of function.
13230 2009-05-10  Richard Guenther  <rguenther@suse.de>
13232         PR tree-optimization/40081
13233         Revert
13234         * tree-sra.c (instantiate_element): Instantiate scalar replacements
13235         using the main variant of the element type.  Do not fiddle with
13236         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13238         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
13239         structs with volatile fields.
13241 2009-05-10  Jan Hubicka  <jh@suse.cz>
13243         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
13244         (estimate_move_cost): Assert that it does not get called for
13245         VOID_TYPE_P.
13246         (estimate_num_insns): Skip VOID types in argument handling.
13247         (optimize_inline_calls): Delete unreachable blocks and verify that
13248         callgraph is valid.
13250 2009-05-10  Jan Hubicka  <jh@suse.cz>
13252         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
13253         * cgraph.c (cgraph_mark_address_taken_node): New function.
13254         (dump_cgraph_node): Dump new flag.
13255         * cgraph.h (struct cgraph_node): Add address_taken.
13256         (cgraph_mark_address_taken_node): New function.
13257         * ipa.c (cgraph_postorder): Prioritize functions with address taken
13258         since new direct calls can be born.
13260 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13262         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
13263         tok->val.node.node.
13265 2009-05-10  Jan Hubicka  <jh@suse.cz>
13267         PR middle-end/40084
13268         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
13269         argument; rewrite.
13270         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
13271         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
13272         * tree-inline.c (copy_bb): Set frequency correctly.
13273         (fold_marked_statements): Update call to
13274         cgraph_update_edges_for_call_stmt.
13276 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13278         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
13279         identifiers in diagnostics.
13280         * config/arm/arm.c (arm_handle_fndecl_attribute,
13281         arm_handle_isr_attribute): Likewise.
13282         * config/avr/avr.c (avr_handle_progmem_attribute,
13283         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
13284         * config/bfin/bfin.c (handle_int_attribute,
13285         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
13286         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
13287         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
13288         Likewise.
13289         * config/darwin.c (darwin_handle_kext_attribute,
13290         darwin_handle_weak_import_attribute): Likewise.
13291         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
13292         h8300_handle_eightbit_data_attribute,
13293         h8300_handle_tiny_data_attribute): Likewise.
13294         * config/i386/i386.c (ix86_handle_cconv_attribute,
13295         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
13296         * config/i386/winnt.c (ix86_handle_shared_attribute,
13297         ix86_handle_selectany_attribute): Likewise.
13298         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
13299         * config/m32c/m32c.c (function_vector_handler): Likewise.
13300         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
13301         m68hc11_handle_fntype_attribute): Likewise.
13302         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
13303         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
13304         * config/mips/mips.c (mips_insert_attributes,
13305         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
13306         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
13307         rs6000_handle_struct_attribute): Likewise.
13308         * config/sh/sh.c (sh_insert_attributes,
13309         sh_handle_resbank_handler_attribute,
13310         sh_handle_interrupt_handler_attribute,
13311         sh2a_handle_function_vector_handler_attribute,
13312         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
13313         Likewise.
13314         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
13315         * config/spu/spu.c (spu_handle_fndecl_attribute,
13316         spu_handle_vector_attribute): Likewise.
13317         * config/stormy16/stormy16.c
13318         (xstormy16_handle_interrupt_attribute): Likewise.
13319         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
13320         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
13322 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13324         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
13325         (pp_translate_identifiers): New.
13326         (pp_identifier): Only conditionally translate identifier to locale
13327         character set.
13328         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
13329         (pp_base_tree_identifier): Only conditionally translate identifier
13330         to locale character set.
13331         * c-pretty-print.c (M_): Define.
13332         (pp_c_type_specifier, pp_c_primary_expression): Mark English
13333         fragments for conditional translation with M_.
13334         * tree-pretty-print.c (maybe_init_pretty_print): Disable
13335         identifier translation.
13337 2009-05-10  Richard Guenther  <rguenther@suse.de>
13339         PR tree-optimization/40081
13340         * tree-sra.c (instantiate_element): Instantiate scalar replacements
13341         using the main variant of the element type.  Do not fiddle with
13342         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13344 2009-05-09  Jan Hubicka  <jh@suse.cz>
13346         PR middle-end/40080
13347         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
13348         indirect calls; verify cgraph afterwards.
13350 2009-05-09  Jan Hubicka  <jh@suse.cz>
13352         PR bootstrap/40082
13353         * ipa.c (update_inlined_to_pointer): New function.
13354         (cgraph_remove_unreachable_nodes): Use it.
13356 2009-05-09  Jan Hubicka  <jh@suse.cz>
13358         * tree-eh.c (struct leh_state): Remove prev_try.
13359         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
13360         not track prev_try.
13361         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
13362         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
13363         remove_eh_handler_and_replace, foreach_reachable_handler,
13364         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
13365         * except.h (struct eh_region): Remove eh_region_u_cleanup.
13366         (gen_eh_region_cleanup): Update prototype.
13368 2009-05-09  Jan Hubicka  <jh@suse.cz>
13370         PR middle-end/40043
13371         * except.c (copy_eh_region): Always set prev_try.
13372         (redirect_eh_edge_to_label): Find outer try.
13373         (foreach_reachable_handler): When looking for prev try
13374         handle case where previous try is not going to be taken.
13376 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13378         PR tree-optimization/40049
13379         * tree-vect-stmts.c (vectorizable_operation): If the machine has
13380         only vector/vector shifts, convert the type of the constant to the
13381         appropriate type to avoid building incorrect trees, which
13382         eventually have problems with garbage collection.
13384 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
13386         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
13387         -1 for complex floating-point types if honoring signed zeros.
13389 2009-05-08  Jan Hubicka  <jh@suse.cz>
13391         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
13392         argument; handle correctly when profile is absent.
13393         (build_cgraph_edges): Update.
13394         (rebuild_cgraph_edges): Update.
13395         * cgraph.c: Do not include varray.h.
13396         (cgraph_set_call_stmt_including_clones): New function.
13397         (cgraph_create_edge_including_clones): Likewise
13398         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
13399         (cgraph_update_edges_for_call_stmt): Handle clones.
13400         (cgraph_remove_node): Handle clone tree.
13401         (cgraph_remove_node_and_inline_clones): New function.
13402         (dump_cgraph_node): Dump clone tree.
13403         (cgraph_clone_node): Handle clone tree.
13404         (clone_function_name): Bring here from tree-inline.c.
13405         (cgraph_create_virtual_clone): New function.
13406         * cgraph.h (ipa_replace_map): Move here from ipa.h.
13407         (cgraph_clone_info): New function.
13408         (strut cgraph_node): Add clone_info and new clone tree pointers.
13409         (cgraph_remove_node_and_inline_clones,
13410         cgraph_set_call_stmt_including_clones,
13411         cgraph_create_edge_including_clones,
13412         cgraph_create_virtual_clone): Declare.
13413         (cgraph_function_versioning): Use VEC argument.
13414         (compute_call_stmt_bb_frequency): Update prototype.
13415         (cgraph_materialize_all_clones): New function.
13416         * ipa-cp.c (ipcp_update_cloned_node): Remove.
13417         (ipcp_create_replace_map): Update to VECtors.
13418         (ipcp_update_callgraph): Use virtual clones.
13419         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
13420         (ipcp_update_profiling): Do not update local profiling.
13421         (ipcp_insert_stage): Use VECtors and virtual clones.
13422         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
13423         (clone_of_p): New function.
13424         (cgraph_preserve_function_body_p): Use clone tree.
13425         (cgraph_optimize): Materialize clones.
13426         (cgraph_function_versioning): Update for VECtors.
13427         (save_inline_function_body): Use clone tree.
13428         (cgraph_materialize_clone): New function.
13429         (cgraph_materialize_all_clones): Likewise.
13430         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
13431         * ipa.c: Include gimple.h.
13432         (cgraph_remove_unreachable_nodes): Use clone tree.
13433         * ipa-prop.c (ipa_note_param_call): Update call to
13434         compute_call_stmt_bb_frequencycall.
13435         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
13436         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
13437         (copy_bb): Handle updating of clone tree; add new edge when new call
13438         appears.
13439         (expand_call_inline): Be strict about every call having edge.
13440         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
13441         (delete_unreachable_blocks_update_callgraph): New function.
13442         (tree_function_versioning): Use VECtors; always remove unreachable
13443         blocks and fold conditionals.
13444         * tree-inline.h: Do not include varray.h.
13445         (tree_function_versioning): Remove.
13446         * Makefile.in (GTFILES): Remove tree-inline.c
13447         * passes.c (do_per_function): Do only functions having body.
13448         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
13449         tree.
13451 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13452             Andrew Morrow  <acm@google.com>
13454         PR c/36892
13455         * c-common.c (c_common_attribute_table): Permit deprecated
13456         attribute to take an optional argument.
13457         (handle_deprecated_attribute): If the optional argument to
13458         __attribute__((deprecated)) is not a string ignore the attribute
13459         and emit a warning.
13461         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
13462         * c-typeck.c (build_component_ref): Likewise.
13463         (build_external_ref): Likewise.
13465         * toplev.c (warn_deprecated_use): Add an attribute argument.
13466         Emit the message associated with __attribute__((deprecated)).
13468         * toplev.h (warn_deprecated_use): Updated.
13470         * doc/extend.texi: Document new optional parameter to
13471         __attribute__((deprecated))
13473 2009-05-08  Michael Eager <eager@eagercon.com>
13475         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
13476         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
13478 2009-05-08  Richard Guenther  <rguenther@suse.de>
13480         PR tree-optimization/40062
13481         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
13482         Avoid exponential behavior.
13484 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13486         PR rtl-optimization/33928
13487         PR 26854
13488         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
13489         process_uses, build_single_def_use_links): New.
13490         (update_df): Update use_def_ref.
13491         (forward_propagate_into): Use get_def_for_use instead of use-def
13492         chains.
13493         (fwprop_init): Call build_single_def_use_links and let it initialize
13494         dataflow.
13495         (fwprop_done): Free use_def_ref.
13496         (fwprop_addr): Eliminate duplicate call to df_set_flags.
13497         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
13498         df_rd_simulate_one_insn): New.
13499         (df_rd_bb_local_compute_process_def): Update head comment.
13500         (df_chain_create_bb): Use the new RD simulation functions.
13501         * df.h (df_rd_simulate_artificial_defs_at_top,
13502         df_rd_simulate_one_insn): New.
13503         * opts.c (decode_options): Enable fwprop at -O1.
13504         * doc/invoke.texi (-fforward-propagate): Document this.
13506 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
13508         PR c/24581
13509         * c-typeck.c (build_binary_op): Handle arithmetic between one real
13510         and one complex operand specially.
13511         * tree-complex.c (some_nonzerop): Do not identify a real value as
13512         zero if flag_signed_zeros.
13514 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13516         PR rtl-optimization/33928
13517         * loop-invariant.c (record_use): Fix && vs. || mishap.
13519 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13521         PR rtl-optimization/33928
13522         * loop-invariant.c (struct use): Add addr_use_p.
13523         (struct def): Add n_addr_uses.
13524         (struct invariant): Add cheap_address.
13525         (create_new_invariant): Set cheap_address.
13526         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
13527         (record_uses): Pass df_ref to record_use.
13528         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
13529         used only as such.
13531 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13533         * config/sh/sh.c: Do not include c-pragma.h.
13535 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13537         * config/spu/spu.c: Remove include of c-common.h.
13539 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
13541         PR c/39037
13542         * c-common.h (mark_valid_location_for_stdc_pragma,
13543         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
13544         clear_float_const_decimal64, float_const_decimal64_p): New.
13545         * c.opt (Wunsuffixed-float-constants): New.
13546         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
13547         unsuffixed float constant, handle new warning.
13548         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
13549         * c-decl.c (c_scope): New flag float_const_decimal64.
13550         (set_float_const_decimal64, clear_float_const_decimal64,
13551         float_const_decimal64_p): New.
13552         (push_scope): Set new flag.
13553         * c-parser.c (c_parser_translation_unit): Mark when it's valid
13554         to use STDC pragmas.
13555         (c_parser_external_declaration): Ditto.
13556         (c_parser_compound_statement_nostart): Ditto.
13557         * c-pragma.c (valid_location_for_stdc_pragma,
13558         mark_valid_location_for_stdc_pragma,
13559         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
13560         handle_pragma_float_const_decimal64): New.
13561         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
13562         * cp/semantics.c (valid_location_for_stdc_pragma_p,
13563         set_float_const_decimal64, clear_float_const_decimal64,
13564         float_const_decimal64_p): New dummy functions.
13565         * doc/extend.texi (Decimal Float): Remove statement that the
13566         pragma, and suffix for double constants, are not supported.
13567         * doc/invoke.texi (Warning Options): List new option.
13568         (-Wunsuffixed-float-constants): New.
13570 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
13572         * config/i386/i386.c: Do not include c-common.h.
13574 2009-05-07  Mark Heffernan  <meheff@google.com>
13576         * doc/invoke.texi (Debugging Options): Document change of debugging
13577         dump location.
13578         * opts.c (decode_options): Make dump_base_name relative to
13579         aux_base_name directory.
13581 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
13583         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
13584         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
13586 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
13588         * Makefile.in (install-plugin): Simplify a bit.
13590 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
13592         * Makefile.in (OBJS-common): Add regcprop.o.
13593         (regcprop.o): New.
13594         * timevar.def (TV_CPROP_REGISTERS): New.
13595         * regrename.c (regrename_optimize): Return 0.
13596         (rest_of_handle_regrename): Delete.
13597         (pass_rename_registers): Point to regrename_optimize.
13598         (struct value_data_entry, struct value_data,
13599         kill_value_one_regno, kill_value_regno, kill_value,
13600         set_value_regno, init_value_data, kill_clobbered_value,
13601         kill_set_value, kill_autoinc_value, copy_value,
13602         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
13603         replace_oldest_value_reg, replace_oldest_value_addr,
13604         replace_oldest_value_mem, copyprop_hardreg_forward_1,
13605         debug_value_data, validate_value_data): Move...
13606         * regcprop.c: ... here.
13607         (rest_of_handle_cprop): Delete.
13608         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
13610 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
13612         PR middle-end/40057
13613         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
13614         GEN_INT for 1 << bitnum.
13615         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
13616         build_int_cst_type.
13618 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
13620         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
13621         Remove wrong description of "nand" operation.
13623 2009-05-06  Richard Guenther  <rguenther@suse.de>
13624             Adam Nemet  <anemet@caviumnetworks.com>
13626         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
13627         comment.  Add that if LHS is not a gimple register, then RHS1 has
13628         to be a single object (GIMPLE_SINGLE_RHS).
13630 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
13632         * expr.c (get_def_for_expr): Move it up in the file.
13633         (store_field): When expanding a bit-field store, look at the
13634         defining gimple stmt for the masking conversion.
13636 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
13638         PR middle-end/39986
13639         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
13640         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
13641         32-bit memcpy into long.
13643 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
13645         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
13646         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
13647         new_reg_loc_descr.
13648         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
13649         instead of appending DW_OP_deref*.
13651 2009-05-06  Michael Matz  <matz@suse.de>
13653         PR middle-end/40021
13654         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
13655         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
13657 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
13659         * Makefile.in (install-plugin): Fix srcdir handling.
13661 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
13663         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
13664         when processing for not_regs_needed bitmap.
13665         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
13666         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
13667         handling it for rhs.
13669 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13671         * config/i386/i386.md (unnamed inc/dec peephole): Use
13672         optimize_insn_for_size_p instead of optimize_size.
13673         * config/i386/predicates.md (incdec_operand): Likewise.
13674         (aligned_operand): Likewise.
13675         * config/i386/sse.md (divv8sf3): Likewise.
13676         (sqrtv8sf2): Likewise.
13678 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13680         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
13682         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
13684 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13686         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
13687         ssemodesuffixf2c with avxmodesuffixf2c.
13689 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
13691         PR c/40032
13692         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
13694 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
13696         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
13697         (struct tree_base): Adjust spacing for 8 bit boundaries.
13698         (struct tree_decl_common): Add decl_by_reference_flag bit.
13699         (DECL_BY_REFERENCE): Adjust.
13700         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
13701         print DECL_BY_REFERENCE bit.
13702         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
13703         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
13704         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
13705         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
13706         unconditionally.
13708         PR middle-end/39666
13709         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
13710         range of the type, but default label is missing, add it with one
13711         of the existing labels instead of adding a new label for it.
13713 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
13715         * dwarf.h: Remove.
13717 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
13719         * Makefile.in (enable_plugin, plugin_includedir): New.
13720         (install): Depend on install-plugin.
13721         (PLUGIN_HEADERS): New.
13722         (install-plugin): New.
13723         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
13725 2009-05-05  Richard Guenther  <rguenther@suse.de>
13727         PR tree-optimization/40022
13728         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
13729         the only vuse.
13730         (phivn_valid_p): Fix tuplification error, simplify.
13731         (phiprop_insert_phi): Add dumps.
13732         (propagate_with_phi): Simplify.
13734 2009-05-05  Richard Guenther  <rguenther@suse.de>
13736         PR middle-end/40023
13737         * builtins.c (gimplify_va_arg_expr): Properly build the address.
13739 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
13741         * tree.h (strip_float_extensions): Remove duplicate declaration.
13742         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
13743         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
13744         block_ultimate_origin): Rearrange the declarations line to match the
13745         comment that indicates the .c file which the functions are defined.
13746         (dwarf2out_*, set_decl_rtl): Add comment.
13747         (get_base_address): Adjust comment.
13748         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
13749         declarations line and add comment.
13750         (is_builtin_name): Add blank after function name, for clarity.
13752 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
13754         * attribs.c (decl_attributes): Use %qE for identifiers in
13755         diagnostics.
13756         * cgraphunit.c (verify_cgraph_node): Translate function names to
13757         locale character set in diagnostics.
13758         * coverage.c (get_coverage_counts): Use %qE for identifiers in
13759         diagnostics.
13760         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
13761         Document that functions are named in UTF-8.
13762         * expr.c (expand_expr_real_1): Translate function names to locale
13763         character set in diagnostics.
13764         * gimplify.c (omp_notice_variable, omp_is_private,
13765         gimplify_scan_omp_clauses): Use %qE for identifiers in
13766         diagnostics.
13767         * langhooks.c (lhd_print_error_function): Translate function names
13768         to locale character set.
13769         * langhooks.h (decl_printable_name): Document that return value is
13770         in internal character set.
13771         * stmt.c: Include pretty-print.h
13772         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
13773         diagnostics.
13774         (resolve_operand_name_1): Translate named operand name to locale
13775         character set.
13776         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
13777         diagnostics.
13778         * toplev.c (announce_function): Translate function names to locale
13779         character set.
13780         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
13781         (default_tree_printer): Use pp_identifier or translate identifiers
13782         to locale character set.  Mark "<anonymous>" for translation.
13783         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
13784         for identifiers in diagnostics.
13785         * tree.c (handle_dll_attribute): Use %qE for identifiers in
13786         diagnostics.
13787         * varasm.c (output_constructor): Use %qE for identifiers in
13788         diagnostics.
13790 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
13792         * configure.ac: use ` ` instead of $()
13793         * configure: Regenerate.
13795 2009-05-05  Ben Elliston  <bje@au.ibm.com>
13797         * config/pa/linux-atomic.c: Eliminate conditional include of
13798         errno.h on non-LP64 systems to simplify build requirements.
13800 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
13802         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
13803         diagnostics.
13804         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
13805         and pass value to identifier_to_locale.
13806         (warn_variable_length_array): Make name a tree.
13807         (grokdeclarator): Separate diagnostic texts for named and unnamed
13808         declarators.  Use %qE for named declarators.
13809         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
13810         diagnostics.
13811         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
13812         identifiers in diagnostics.
13813         * c-typeck.c (push_member_name, start_init): Pass identifiers to
13814         identifier_to_locale.  Mark "anonymous" strings for translation.
13816 2009-05-04  Michael Eager <eager@eagercon.com>
13818         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
13819         address for DImode/DFmode only if double-precision FP regs.
13821 2009-05-04  Michael Eager <eager@eagercon.com>
13823         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
13824         TARGET_SINGLE_FLOAT check.
13826 2009-05-04  Michael Eager <eager@eagercon.com>
13828         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
13830 2009-05-04  Michael Eager <eager@eagercon.com>
13832         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
13833         * config/rs6000/t-xilinx: New
13835 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
13837         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
13838         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
13839         * gcc/explow.c (memory_address): Use target hook.
13840         * gcc/targhooks.c (default_legitimize_address): New.
13841         * gcc/targhooks.h (default_legitimize_address): New.
13842         * gcc/target.h (legitimize_address): New.
13843         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
13844         (TARGET_INITIALIZER): Include it.
13845         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
13847         * config/bfin/bfin-protos.h (legitimize_address): Remove.
13848         * config/bfin/bfin.c (legitimize_address): Remove.
13849         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
13850         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
13851         Remove.
13852         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
13853         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
13855         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
13856         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
13857         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
13858         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
13859         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
13860         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
13861         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
13862         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
13863         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
13864         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
13865         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
13866         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
13867         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
13868         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
13869         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
13870         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
13871         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
13872         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
13873         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
13874         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
13875         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
13876         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
13877         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
13879         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
13880         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
13881         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
13882         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
13883         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
13884         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
13885         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
13886         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
13887         (thumb_legitimize_address): Delete.
13888         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
13889         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
13890         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
13891         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
13892         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
13893         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
13894         Delete.
13895         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
13896         Delete.
13898         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
13899         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
13900         * config/m32r/m32r.c (m32r_legitimize_address): New.
13901         * config/m68k/m68k.c (m68k_legitimize_address): New.
13902         * config/score/score.c (score_legitimize_address): Standardize.
13903         * config/score/score3.c (score3_legitimize_address): Standardize.
13904         * config/score/score3.h (score3_legitimize_address): Adjust.
13905         * config/score/score7.c (score7_legitimize_address): Standardize.
13906         * config/score/score7.h (score7_legitimize_address): Adjust.
13907         * config/sh/sh.c (sh_legitimize_address): New.
13908         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
13910         * gcc/config/s390/s390.c (legitimize_address): Rename to...
13911         (s390_legitimize_address): ... this.
13912         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
13913         (sparc_legitimize_address): ... this.
13914         * gcc/config/i386/i386.c (legitimize_address): Rename to...
13915         (ix86_legitimize_address): ... this.
13916         * gcc/config/avr/avr.c (legitimize_address): Rename to...
13917         (avr_legitimize_address): ... this.
13918         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
13919         (mn10300_legitimize_address): ... this.
13920         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
13921         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
13922         (alpha_expand_mov): Adjust call.
13924         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
13925         * config/spu/spu.c (spu_legitimize_address): Likewise.
13926         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
13927         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
13929 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
13931         * intl.c (locale_encoding, locale_utf8): New.
13932         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
13933         * intl.h (locale_encoding, locale_utf8): Declare.
13934         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
13935         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
13936         New.
13937         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
13938         argument.
13939         (pp_tree_identifier): Define to call pp_base_tree_identifier.
13940         (pp_base_tree_identifier): Declare as function.
13941         (identifier_to_locale): Declare.
13942         * Makefile.in (pretty-print.o): Update dependencies.
13943         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
13945 2009-05-04  Richard Guenther  <rguenther@suse.de>
13947         PR middle-end/40015
13948         * builtins.c (fold_builtin_memory_op): Do not decay to element
13949         type if the size matches the whole array.
13951 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
13953         * expmed.c (synth_mult): When trying out a shift, pass the result
13954         of a signed shift.
13956 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
13958         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
13959         (shiftsub1_cost): New.
13960         (init_expmed): Compute shiftsub1_cost.
13961         (synth_mult): Optimize multiplications by constants of the form
13962         -(2^^m-1) for some constant positive integer m.
13964 2009-05-03  Richard Guenther  <rguenther@suse.de>
13966         PR c/39983
13967         * c-typeck.c (array_to_pointer_conversion): Do not built
13968         ADDR_EXPRs of arrays of pointer-to-element type.
13969         * c-gimplify.c (c_gimplify_expr): Revert change fixing
13970         up wrong ADDR_EXPRs after-the-fact.
13971         * c-common.c (strict_aliasing_warning): Strip pointer
13972         conversions for obtaining the original type.
13973         * builtins.c (fold_builtin_memset): Handle array types.
13974         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
13975         and array types
13977 2009-05-03  Richard Guenther  <rguenther@suse.de>
13979         PR middle-end/23329
13980         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
13981         Do not lose casts from array types with unknown extent to array
13982         types with known extent.
13983         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
13984         alias set compatibility.
13986 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13988         * flags.h (extra_warnings): Delete.
13989         * toplev.c (process_options): Handle Wuninitialized here.
13990         * opts.c (extra_warnings): Delete.
13991         (set_Wextra): Delete.
13992         (common_handle_option): -Wextra can be handled automatically.
13993         * c-opts.c (c_common_handle_option): Delete obsolete code.
13994         (c_common_post_options): Simplify comment.
13995         * common.opt (W): Add Var.
13996         (Wextra): Add Var.
13997         (Wuninitialized): Initialize to -1.
13999 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
14000             Richard Guenther  <rguenther@suse.de>
14002         * expr.c (get_def_for_expr): New function.
14003         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
14004         SSA rather than trees.
14005         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
14006         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
14008 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
14010         * c-common.c (reswords): Add _Imaginary.
14011         * c-common.c (enum rid): Add RID_IMAGINARY.
14013 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
14015         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
14016         Patch by Richard Guenther.
14018 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
14020         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
14021         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
14022         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
14023         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
14024         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
14025         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
14026         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
14027         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
14028         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
14029         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
14030         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
14031         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
14032         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
14033         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
14034         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
14035         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
14036         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
14037         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
14039 2009-05-02  Richard Guenther  <rguenther@suse.de>
14041         PR tree-optimization/39940
14042         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
14043         doing so.
14045 2009-05-02  Richard Guenther  <rguenther@suse.de>
14047         PR middle-end/40001
14048         * tree-ssa.c (execute_update_addresses_taken): Properly check
14049         if we can mark a variable DECL_GIMPLE_REG_P.
14050         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
14051         back to the end of the function.
14052         (is_gimple_reg_type): Remove complex type special casing.
14053         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
14054         if not optimizing.
14056 2009-05-02  Ben Elliston  <bje@au.ibm.com>
14058         * doc/collect2.texi (Collect2): Document search path behaviour
14059         when configured with --with-ld.
14061 2009-05-02  Jan Hubicka  <jh@suse.cz>
14063         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
14064         parameter; update callers.
14065         (coalesce_cost_edge): EH edges are costier because they needs
14066         splitting even if not critical and even more costier when there are
14067         multiple EH predecestors.
14069 2009-05-02  Jan Hubicka  <jh@suse.cz>
14071         * except.c (remove_eh_handler_and_replace): Handle updating after
14072         removing TRY blocks.
14074 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
14076         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
14078 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
14080         * varasm.c: Do not include c-pragma.h.
14081         * attribs.c: Do not incude c-common.h.
14083 2009-05-01  Michael Matz  <matz@suse.de>
14085         * calls.c (initialize_argument_information): Handle SSA names like
14086         decls with a non MEM_P DECL_RTL.
14088 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
14090         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
14091         * ipa-utils.c: Likewise.
14092         * ipa-type-escape.c: Likewise.
14093         * cgraphunit.c Do not include c-common.h.
14094         * ipa-pure-const.c: Likewise.
14095         * tree-if-conv.c: Likewise.
14096         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
14097         * ipa-struct-reorg.c: Likewise.
14098         * tree-nomudflap.c: Likewise.
14099         * tree-ssa-structalias.c: Likewise.
14101 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
14103         * store-motion.c: Many cleanups to make this pass a first-class
14104         citizen instead of an appendix to gcse load motion.  Add TODO list
14105         to make this pass faster/cleaner/better.
14107         (struct ls_expr): Post gcse.c-split cleanups.
14108         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
14109         "stores" field to "avail_stores".
14110         (pre_ldst_mems): Rename to store_motion_mems.
14111         (pre_ldst_table): Rename to store_motion_mems_table.
14112         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
14113         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
14114         (ldst_entry): Rename to st_expr_entry, update users.
14115         (free_ldst_entry): Rename to free_st_expr_entry, update users.
14116         (free_ldst_mems): Rename to free_store_motion_mems, update users.
14117         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
14118         update caller.
14119         (first_ls_expr): Rename to first_st_expr, update users.
14120         (next_ls_expr): Rename to next_st_expr, update users.
14121         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
14122         fields properly for store motion instead of names inherited from load
14123         motion in gcse.c.
14124         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
14125         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
14126         are done with it.
14128         (ae_kill): Rename to st_kill, update users.
14129         (ae_gen): Rename to st_avloc, update users.
14130         (transp): Rename to st_transp, update users.
14131         (pre_insert_map): Rename to st_insert_map, update users.
14132         (pre_delete_map): Rename to st_delete_map, update users.
14133         (insert_store, build_store_vectors, free_store_memory,
14134         one_store_motion_pass): Update for abovementioned changes.
14136         (gcse_subst_count, gcse_create_count): Remove.
14137         (one_store_motion_pass): New statistics counters "n_stores_deleted"
14138         and "n_stores_created", local variables.
14140         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
14141         use for_each_rtx.
14143         (regvec, compute_store_table_current_insn): Remove.
14144         (reg_set_info, reg_clear_last_set): Remove.
14145         (compute_store_table): Use DF caches instead of local dataflow
14146         solvers.
14148 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
14150         * c-objc-common.c (c_tree_printer): Print identifiers with
14151         pp_identifier, not pp_string.  Mark "({anonymous})" for
14152         translation.
14153         * c-pretty-print.c (pp_c_ws_string): New.
14154         (pp_c_cv_qualifier, pp_c_type_specifier,
14155         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
14156         pp_c_storage_class_specifier, pp_c_function_specifier,
14157         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
14158         pp_c_primary_expression, pp_c_postfix_expression,
14159         pp_c_unary_expression, pp_c_shift_expression,
14160         pp_c_relational_expression, pp_c_equality_expression,
14161         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
14162         use pp_string and pp_c_ws_string in place of pp_identifier and
14163         pp_c_identifier for non-identifiers.  Mark English strings for
14164         translation.
14165         * c-pretty-print.h (pp_c_ws_string): Declare.
14167 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14168             Roland McGrath <roland@redhat.com>
14170         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
14171         (ENABLE_LD_BUILDID): New configuration option.
14172         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
14173         (LINK_BUILDID_SPEC): New macro.
14174         (init_spec): If defined, prepend it between LINK_EH_SPEC and
14175         link_spec.
14176         * doc/install.texi: Document --enable-linker-build-id option.
14177         * configure: Rebuild.
14178         * config.in: Rebuild.
14180 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
14182         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
14183         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
14184         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
14185         MIPS_GP_SAVE_AREA_SIZE.
14186         * config/mips/mips.c (struct mips_frame_info): Update comment
14187         before arg_pointer_offset and hard_frame_pointer_offset.
14188         (mips_compute_frame_info): Update diagram before function: to
14189         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
14190         indicate the position of frame_pointer_rtx with -fstack-protector and
14191         to show args_size.  Don't allocate cprestore area for leaf functions
14192         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
14193         cprestore_size.
14194         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
14196 2009-04-30  Michael Matz  <matz@suse.de>
14198         PR tree-optimization/39955
14199         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
14201 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14203         * ira.c (setup_cover_and_important_classes):  Use safe macro
14204         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
14205         directly.
14206         * genpreds.c (write_tm_preds_h):  Output suitable definition of
14207         REG_CLASS_FOR_CONSTRAINT.
14209 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
14211         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
14212         instead of an int.
14213         * bitmap.c (bitmap_descriptor): Likewise.
14214         * ggc-common.c (loc_descriptor): Likewise.
14215         * varray.c (varray_descriptor): Likewise.
14216         * vec.c (vec_descriptor): Likewise.
14218 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
14220         * Makefile.in (dce.o): Add $(EXCEPT_H).
14221         * dce.c: Include except.h and delete redundant vector definitions.
14222         (deletable_insn_p): Return false for non-call insns that can throw
14223         if DF is running.
14225 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14227         * gcse.c (ae_gen): Remove.
14228         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
14229         and make non-static function to make it available in store-motion.c.
14230         Update call sites with search-and-replace.
14231         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
14232         extract_mentioned_regs, extract_mentioned_regs_helper,
14233         find_moveable_store, compute_store_table, load_kills_store, find_loads,
14234         store_killed_in_insn, store_killed_after, store_killed_before,
14235         build_store_vectors, insert_insn_start_basic_block, insert-store,
14236         remove_reachable_equiv_notes, replace_store_insn, delete_store,
14237         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
14238         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
14239         * store-motion.c: ...new file.  Also copy data structures from gcse.c
14240         and clean up to remove parts not used by store motion.
14241         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
14242         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
14244 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14246         PR target/38571
14247         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
14248         when optimizing for size.
14250 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
14252         * gcse.c (gcse_constant_p): Fix typo in last change.
14254 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
14256         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
14258 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
14260         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
14262 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
14264         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
14265         CONST_HIGH_PART result.
14267 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
14269         * config/avr/avr.c (initial_elimination_offset): Rename to
14270         avr_initial_elimination_offset.
14271         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
14272         change return type to bool.
14273         (avr_can_eliminate): New function.
14274         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
14275         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
14276         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
14277         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
14278         avr_initial_elimination_offset.
14279         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
14280         (avr_initial_elimination_offset): Define.
14282 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
14283             Steven Bosscher  <steven@gcc.gnu.org>
14285         PR rtl-optimization/39938
14286         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
14287         * cfgrtl.c: Include insn-attr.h.
14288         (rest_of_pass_free_cfg): New function.
14289         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
14290         * resource.c (init_resource_info): Remove call to df_analyze.
14292 2009-04-29  Richard Guenther  <rguenther@suse.de>
14294         PR target/39943
14295         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
14296         allow conversion to signed integers.
14298 2009-04-29  Richard Guenther  <rguenther@suse.de>
14300         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
14301         shifts of floating point vectors if the shift amount is
14302         a constant multiple of the element size.
14304 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
14305             Michael Matz  <matz@suse.de>
14307         PR middle-end/39927
14308         PR bootstrap/39929
14309         * tree-outof-ssa.c (emit_partition_copy): New function.
14310         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14311         insert_part_to_rtx_on_edge): Perform the partition base var
14312         copy using emit_partition_copy.
14313         (insert_value_copy_on_edge): Convert constants to the right mode.
14314         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
14315         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
14317 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14319         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
14320         scan backwards to try to find a constant to initialize it.
14322         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
14323         insn before the loop_end instruction, don't look past labels.
14325 2009-04-29  Richard Guenther  <rguenther@suse.de>
14327         PR middle-end/39937
14328         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
14329         loose type conversions.
14330         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
14331         stmts only if there are no uses of its definition.
14333 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14335         * config/bfin/bfin.h (splitting_loops): Declare.
14336         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
14337         Reorder bit definitions to be ascending.
14338         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
14339         * config/bfin/bfin.c (splitting_loops): New variable.
14340         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
14341         (struct loop_info): Remove members INIT and LOOP_INIT.
14342         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
14343         the LSETUP sequence.  Allow LC to be loaded from any register, but
14344         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
14345         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
14346         set to 1.
14347         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
14348         of reload_completed.
14350         From Jie Zhang:
14351         * config/bfin/bfin.md (movsi_insn): Refine constraints.
14353 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
14355         * Makefile.in (PLUGIN_VERSION_H): New.
14356         (OBJS-common): Remove plugin-version.o.
14357         (plugin.o): Depend on (PLUGIN_VERSION_H).
14358         (plugin-version.o): Remove.
14359         * configure: Regenerate
14360         * configure.ac: Create plugin-version.h.
14361         * gcc-plugin.h (plugin_gcc_version): Remove.
14362         (plugin_default_version_check): Change signature.
14363         * plugin-version.c: Remove.
14364         * plugin.c: Include plugin-version.h.
14365         (str_plugin_gcc_version_name): Remove.
14366         (try_init_one_plugin): Pass gcc version to plugin_init.
14367         (plugin_default_version_check): Both gcc and plugin versions are now
14368         arguments.
14370 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14372         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
14373         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
14374         Remove special case testing for last insn of inner loops. Don't fail
14375         if the loop ends with a jump, emit an extra nop instead.
14377         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
14378         DREGS rather than comparing directly.  Remove code that tries to
14379         account for latencies.
14381 2009-04-29  Richard Guenther  <rguenther@suse.de>
14383         PR tree-optimization/39941
14384         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
14385         eliminating an indirect call.
14387 2009-04-29  Richard Guenther  <rguenther@suse.de>
14389         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
14390         parameter.  Allow invariants as base if !require_lvalue.
14391         (verify_gimple_assign_single): Adjust.
14393 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14395         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
14396         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
14397         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
14398         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
14399         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
14400         a VEC_SELECT.
14401         * config/bfin/bfin.c (bfin_expand_builtin,
14402         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
14404 2009-04-28  Richard Guenther  <rguenther@suse.de>
14406         * tree-vect-loop.c (get_initial_def_for_induction): Use
14407         correct types for pointer increment.
14409 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14411         * toplev.c (print_version): Update GMP version string calculation.
14413 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14415         PR rtl-optimization/39938
14416         * resource.c (init_resource_info): Add call to df_analyze.
14418 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14420         * config/alpha/alpha.md (usegp): Cast the result of
14421         alpha_find_lo_sum_using_gp to enum attr_usegp.
14422         * config/alpha/alpha.c (override_options): Remove end-of-structure
14423         marker element from cpu_table.  Use array size of cpu_table to handle
14424         -mcpu and -mtune options.
14425         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
14427 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
14429         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
14430         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
14431         tune_32 and tune_64.
14432         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
14433         support on PowerPC.
14434         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
14435         * config/rs6000/option-defaults.h: ... here.  New file.
14436         (OPT_64, OPT_32): Define.
14437         (MASK_64BIT): Define to 0 if not already defined.
14438         (OPT_ARCH64, OPT_ARCH32): Define.
14439         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
14440         and tune_64.
14442 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14444         * config/arm/arm.c (arm_override_options): Emit error on using
14445         fpa with AAPCS.
14447 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14449         PR rtl-optimization/39914
14450         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
14451         registers for allocnos created from user-defined variables only
14452         when not optimizing.
14454 2009-04-28  Richard Guenther  <rguenther@suse.de>
14456         PR middle-end/39937
14457         * fold-const.c (fold_binary): Use distribute_real_division only
14458         on float types.
14460 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
14462         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
14463         add hpux-stdint.h to tm_file.
14464         (hppa[12]*-*-hpux11*): Ditto.
14465         (ia64*-*-hpux*): Ditto.
14466         * config/hpux-stdint.h: New.
14467         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
14468         __STDC_EXT__ for all compiles.
14469         * config/pa/pa-hpux.h: Ditto.
14470         * config/pa/pa-hpux10.h: Ditto.
14471         * config/pa/pa-hpux11.h: Ditto.
14473 2009-04-28  Catherine Moore  <clm@codesourcery.com>
14475         * debug.h (set_name): Add comment.
14477 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
14479         PR target/39929
14480         * config/darwin.c (machopic_gen_offset): Check
14481         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
14482         * config/arm/arm.c (require_pic_register): Likewise.
14484 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
14486         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
14487         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
14488         m32c_promote_prototypes): Delete.
14490 2009-04-28  Michael Matz  <matz@suse.de>
14492         PR middle-end/39922
14493         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
14494         constants.
14496 2009-04-28  Richard Guenther  <rguenther@suse.de>
14498         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
14500 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14502         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
14503         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
14504         * config/arm/arm-tune.md: Regenerate.
14506 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
14508         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
14509         block if there are complex incoming edges.
14510         (sel_merge_blocks): Remove useless assert.
14511         (sel_redirect_edge_and_branch): Check that edge was redirected.
14512         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
14513         (sel_find_rgns): Delete declaration.
14514         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
14515         the region when it is not a preheader.
14517 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14519         PR c/39323
14520         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
14522 2009-04-28  Richard Guenther  <rguenther@suse.de>
14524         * tree.h (SSA_NAME_VALUE): Remove.
14525         (struct tree_ssa_name): Remove value_handle member.
14526         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
14527         array for jump threading.
14528         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
14529         SSA_NAME_VALUEs.
14530         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
14531         * tree-flow.h (threadedge_initialize_values): Declare.
14532         (threadedge_finalize_values): Likewise.
14533         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
14534         (SSA_NAME_VALUE): Define.
14535         (threadedge_initialize_values): New function.
14536         (threadedge_finalize_values): Likewise.
14537         * tree-ssa-dom.c (ssa_name_values): New global variable.
14538         (SSA_NAME_VALUE): Define.
14539         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
14541 2009-04-28  Ira Rosen  <irar@il.ibm.com>
14543         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
14544         Use REPORT_VECTORIZED_LOCATIONS instead
14545         REPORT_VECTORIZED_LOOPS.
14546         * tree-vectorizer.c (vect_verbosity_level): Make static.
14547         (vect_loop_location): Rename to vect_location.
14548         (vect_set_verbosity_level): Update comment.
14549         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
14550         and vect_location.
14551         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
14552         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
14553         instead REPORT_UNVECTORIZED_LOOPS.
14554         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
14555         and vect_loop_def to vect_external_def and vect_internal_def.
14556         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
14557         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
14558         REPORT_UNVECTORIZED_LOCATIONS.
14559         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
14560         and vect_used_in_loop and to vect_unused_in_scope and
14561         vect_used_in_scope.
14562         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
14563         (vect_verbosity_level): Remove declaration.
14564         (vect_analyze_operations): Likewise.
14565         (vect_analyze_stmt): Declare.
14566         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
14567         REPORT_UNVECTORIZED_LOCATIONS.
14568         (vect_get_loop_niters): Fix indentation.
14569         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
14570         (vect_analyze_loop_operations): New function.
14571         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
14572         vect_analyze_operations.
14573         (vect_is_simple_reduction): Use new names.
14574         (vectorizable_live_operation, vect_transform_loop): Likewise.
14575         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
14576         to specify whether the data references can be a part of interleaving
14577         chain.
14578         (vect_analyze_data_ref_dependence): Use new names.
14579         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
14580         (vect_create_addr_base_for_vector_ref): Remove redundant code.
14581         * tree-vect-patterns.c (widened_name_p): Use new names.
14582         (vect_recog_dot_prod_pattern): Likewise.
14583         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
14584         (process_use, vect_mark_stmts_to_be_vectorized,
14585         vect_model_simple_cost, vect_model_store_cost,
14586         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
14587         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
14588         vectorizable_operation, vectorizable_type_demotion,
14589         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
14590         vectorizable_condition): Likewise.
14591         (vect_analyze_operations): Split into vect_analyze_loop_operations
14592         and ...
14593         (vect_analyze_stmt): ... new function.
14594         (new_stmt_vec_info): Use new names.
14595         (vect_is_simple_use): Use new names and fix comment.
14596         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
14597         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
14599 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14601         PR target/39911
14602         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
14603         and integer modes for x87 operands.  Do not ICE for unsupported size,
14604         generate error instead.  Generate error for unsupported operand types.
14605         ['z']: Do not handle HImode memory operands specially.  Warning
14606         for floating-point operands.  Fallthru to 'Z' for unsupported operand
14607         types.  Do not ICE for unsupported size, generate error instead.
14608         (output_387_binary_op): Use %Z to output operands.
14609         (output_fp_compare): Ditto.
14610         (output_387_reg_move): Ditto.
14612 2009-04-28  Ben Elliston  <bje@au.ibm.com>
14614         PR c++/35652
14615         Revert:
14617         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14619         * builtins.c (c_strlen): Do not warn here.
14620         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
14621         * c-common.c (pointer_int_sum): Take an explicit location.
14622         Warn about offsets out of bounds.
14623         * c-common.h (pointer_int_sum): Adjust declaration.
14625 2009-04-27  Ian Lance Taylor  <iant@google.com>
14627         * collect2.c (is_ctor_dtor): Change type of ret field in struct
14628         names to symkind.
14629         * dce.c (run_fast_df_dce): Change type of old_flags to int.
14630         * df-core.c (df_set_flags): Change return type to int.  Change
14631         type of old_flags to int.
14632         (df_clear_flags): Likewise.
14633         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
14634         (df_get_conditional_uses): Likewise.
14635         * df.h (df_set_flags, df_clear_flags): Update declarations.
14636         * dwarf2out.c (struct indirect_string_node): Change type of form
14637         field to enum dwarf_form.
14638         (AT_string_form): Change return type to enum dwarf_form.
14639         * fixed-value.c (fixed_compare): Add cast to enum type.
14640         * fwprop.c (update_df): Change 0 to VOIDmode.
14641         * gensupport.c: Change 0 to UNKNOWN.
14642         * gimple.h (gimple_cond_code): Add cast to enum type.
14643         * haifa-sched.c (reemit_notes): Add cast to enum type.
14644         * hooks.c (hook_int_void_no_regs): Remove function.
14645         * hooks.h (hook_int_void_no_regs): Remove declaration.
14646         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
14647         * predict.c (combine_predictions_for_insn): Add casts to enum type.
14648         * real.c (real_arithmetic): Add cast to enum type.
14649         (real_compare): Likewise.
14650         * target.h (struct gcc_target): Change return type of
14651         branch_target_register_class to enum reg_class.
14652         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
14653         default_branch_target_register_class.
14654         * targhooks.c (default_branch_target_register_class): New function.
14655         * targhooks.h (default_branch_target_register_class): Declare.
14656         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
14657         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
14658         cast to int.
14659         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
14660         ERROR_MARK.
14661         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
14662         vect_uninitialized_def.  Change 0 to ERROR_MARK.
14663         * tree-vect-stmts.c (supportable_widening_operation): Don't
14664         initialize icode1 and icode2.
14665         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
14666         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
14667         and to STD_C89.
14668         (cmn_err_flag_specs): Change 0 to STD_C89.
14669         (cmn_err_char_table): Likewise.
14670         * config/arm/arm.c (get_arm_condition_code): Change type of code
14671         to enum arm_cond_code.
14672         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
14673         (IWMMXT_BUILTIN2): Likewise.
14674         (neon_builtin_type_bits): Don't define typedef.
14675         (neon_builtin_datum): Change type of bits field to int.
14676         (arm_expand_neon_args): Add cast to enum type.
14677         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
14678         TLS_MODEL_NONE.
14679         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
14680         casts to enum type.
14681         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
14682         MIPS_FP_COND_f.
14683         * config/mips/mips.md (jal_macro): Return enum constant.
14684         (single_insn): Likewise.
14685         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
14686         CODE_FOR_nothing.
14687         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14688         casts to enum type.
14689         * config/s390/s390.c (s390_tune_flags): Change type to int.
14690         (s390_arch_flags): Likewise.
14691         (s390_handle_arch_option): Change flags field of struct pta to int.
14692         * config/s390/s390.h (s390_tune_flags): Update declaration.
14693         (s390_arch_flags): Likewise.
14694         * config/sh/sh.c (prepare_move_operands): Compare
14695         tls_symbolic_operand result with enum constant.
14696         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
14697         (sh_expand_prologue): Add cast to enum type.
14698         (sh_expand_epilogue): Likewise.
14699         (tls_symbolic_operand): Change return type to enum tls_model.
14700         (fpscr_set_from_mem): Add cast to enum type.
14701         (legitimize_pic_address): Compare tls_symbolic_operand result with
14702         enum constant.
14703         (sh_target_reg_class): Change return type to enum reg_class.
14704         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
14705         PROCESSOR_xxx.
14706         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
14707         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
14708         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
14709         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
14710         (delayed_branch, tls_call_delay): Likewise.
14711         (eligible_for_sibcall_delay): Likewise.
14712         (eligible_for_return_delay): Likewise.
14713         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
14714         (spu_expand_builtin_1): Likewise.
14716         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
14717         for all types of conversions.
14718         (output_init_element): Issue -Wc++-compat warning if needed when
14719         initializing a bitfield with enum type.
14720         * c-parser.c (c_parser_expression): Set original_type to
14721         original_type of right hand operand of comma operator.
14723 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14725         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
14726         grammar nits.
14727         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
14728         * doc/cpp.texi (Standard Predefined Macros)
14729         (Implementation-defined behavior): Likewise.
14730         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
14731         * doc/gimple.texi (GIMPLE Exception Handling)
14732         (@code{GIMPLE_ASSIGN}): Likewise.
14733         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
14734         * doc/invoke.texi (Warning Options, Optimize Options)
14735         (AVR Options, Darwin Options): Likewise.
14736         (Optimize Options): Reformulate -fwhole-program description.
14737         * doc/loop.texi (Lambda): Likewise.
14738         * doc/md.texi (Output Template, Define Constraints)
14739         (Standard Names, Insn Splitting): Likewise.
14740         * doc/options.texi (Option properties): Likewise.
14741         * doc/passes.texi (Tree-SSA passes): Likewise.
14742         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
14743         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
14744         (File Names and DBX): Likewise.
14745         * doc/trouble.texi (Incompatibilities): Likewise.
14747 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14749         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
14750         instruction is correct.
14752 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14754         Allow non-constant arguments to conversion intrinsics.
14755         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
14756         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
14757         * spu.c (print_operand): Handle 'v' and 'w'.
14758         (exp2_immediate_p, spu_gen_exp2): Define.
14759         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
14760         spu_convtf_1): Update parameter descriptions.
14761         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
14762         * constraints.md ('v', 'w'): New.
14763         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
14764         Remove.
14765         (i2f, I2F): New define_mode_attr.
14766         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
14767         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
14768         fixuns_truncv4sfv4si2):  Update to use mode attribute.
14769         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
14770         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
14771         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
14772         patterns for combine.
14774 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
14776         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
14777         (cprop, hoist, pre, store_motion): New debug counters.
14778         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
14779         is not an RTL pass anymore.
14780         (pass_profiling): Remove extern decl for pass removed in 2005.
14781         (pass_gcse, pass_jump_bypass): Remove.
14782         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
14783         to 0 for clean state.
14784         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
14785         * cse.c (gate_handle_cse_after_global_opts,
14786         rest_of_handle_cse_after_global_opts): New functions.
14787         (pass_cse_after_global_opts): New pass, does local CSE.
14788         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
14789         (TV_CPROP): New timevar.
14790         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
14791         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
14792         (gcse_main, recompute_all_luids): Remove.
14793         (compute_hash_table_work): Call max_reg_num instead of reading
14794         max_gcse_regno.
14795         (cprop_jump): Don't set run_jump_opt_after_gcse.
14796         (constprop_register): Always allow to alter jumps.
14797         (cprop_insn): Likewise.
14798         (do_local_cprop): Likewise.
14799         (local_cprop_pass): Likewise.  Return non-zero if something changed.
14800         (cprop): Remove function, fold interesting bits into one_cprop_pass.
14801         (find_implicit_sets): Add note about missed optimization opportunity.
14802         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
14803         pass_rtl_cprop execute function.
14804         Don't bother tracking the pass number, each pass gets its own dumpfile
14805         now anyway.
14806         Always allow to alter jumpsand bypass jumps.
14807         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
14808         will just find no suitable set.
14809         (pre_edge_insert): Fix dumping, this function is for PRE only.
14810         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
14811         pass_rtl_pre execute function.
14812         (hoist_code): Return non-zero if something changed.  Keep track of
14813         substitutions and insertions for statistics gathering similar to PRE.
14814         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
14815         called from the pass_rtl_hoist execute function.  Show pass statistics.
14816         (compute_store_table): Use max_reg_num directly instead of using the
14817         formerly global max_gcse_regno.
14818         (build_store_vectors): Likewise.
14819         (replace_store_insn): Fix dumping.
14820         (store_motion): Rename to ...
14821         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
14822         pass, called from the pass_rtl_store_motion execute function.  Keep
14823         track of substitutions and insertions for statistics gathering similar
14824         to PRE.
14825         (bypass_jumps): Remove, fold interesting bits into ...
14826         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
14827         from the pass_rtl_cprop execute function.
14828         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
14829         pass_jump_bypass): Remove.
14830         (gate_handle_gcse, rest_of_handle_gcse): Remove.
14831         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
14832         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
14833         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
14834         (gate_rtl_store_motion, execute_rtl_store_motion,
14835         pass_rtl_store_motion): New.
14836         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
14837         make it clear that -fcse-skip-blocks is a no-op for backward compat.
14838         * passes.c (init_optimization_passes): Remove pass_gcse and
14839         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
14840         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
14841         instead of pass_jump_bypass.
14843 2009-04-27  Richard Guenther  <rguenther@suse.de>
14845         PR middle-end/39928
14846         * gimplify.c (gimplify_expr): If we are required to create
14847         a temporary make sure it ends up as register.
14849 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
14851         PR target/39903
14852         * config/i386/i386.c (construct_container): Don't call
14853         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
14854         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
14856 2009-04-27  Michael Matz  <matz@suse.de>
14858         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
14859         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
14860         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
14861         (dump_replaceable_exprs): Take a bitmap.
14862         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
14863         array.
14864         (expand_gimple_basic_block): Likewise.
14865         * tree-ssa-ter.c (struct temp_expr_table_d): Make
14866         replaceable_expressions member a bitmap.
14867         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
14868         (mark_replaceable): Likewise.
14869         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
14870         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
14872 2009-04-27  Richard Guenther  <rguenther@suse.de>
14874         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
14875         (verify_stmts): Dispatch to gimple/type verification code.
14876         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
14877         issue with call argument types.
14879 2009-04-27  Michael Matz  <matz@suse.de>
14881         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
14882         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
14883         to above.
14885 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
14886             Eric Botcazou  <ebotcazou@adacore.com>
14888         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
14889         a label's basic block.
14890         (mark_target_live_regs): Tidy and rework obsolete comments.
14891         Change back DF problem to LIVE.  If a label starts a basic block,
14892         assume that all registers that used to be live then still are.
14893         (init_resource_info): If a label starts a basic block, set its
14894         BLOCK_FOR_INSN accordingly.
14895         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
14897 2009-04-27  Richard Guenther  <rguenther@suse.de>
14899         * tree-flow-inline.h (function_ann): Remove.
14900         (get_function_ann): Likewise.
14901         * tree-dfa.c (create_function_ann): Remove.
14902         * tree-flow.h (struct static_var_ann_d): Remove.
14903         (struct function_ann_d): Likewise.
14904         (union tree_ann_d): Remove fdecl member.
14905         (function_ann_t): Remove.
14906         (function_ann, get_function_ann, create_function_ann): Remove
14907         declarations.
14909 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
14911         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
14913 2009-04-27  Jan Hubicka  <jh@suse.cz>
14915         * ipa-pure-const.c (struct funct_state_d): New fields
14916         state_previously_known, looping_previously_known; remove
14917         state_set_in_source.
14918         (analyze_function): Use new fields.
14919         (propagate): Avoid assumption that state_set_in_source imply
14920         nonlooping.
14922         * tree-ssa-loop-niter.c (finite_loop_p): New function.
14923         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
14924         * cfgloop.h (finite_loop_p): Declare.
14926 2009-04-26  Michael Matz  <matz@suse.de>
14928         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
14930 2009-04-26  Michael Matz  <matz@suse.de>
14932         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
14933         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
14934         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
14935         pass_mark_used_blocks): Remove.
14936         * tree-optimize.c (pass_free_datastructures,
14937         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
14938         * passes.c (init_optimization_passes): Don't call
14939         pass_mark_used_blocks, remove dead code.
14941 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
14943         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
14944         * tree-ssa-live.h (register_ssa_partition): Likewise.
14946 2009-04-26  Michael Matz  <matz@suse.de>
14948         Expand from SSA.
14949         * builtins.c (fold_builtin_next_arg): Handle SSA names.
14950         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
14951         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
14952         SSA names.
14953         (compare_pairs): Swap cost comparison.
14954         (coalesce_ssa_name): Don't use change_partition_var.
14955         * tree-nrv.c (struct nrv_data): Add modified member.
14956         (finalize_nrv_r): Set it.
14957         (tree_nrv): Use it to update statements.
14958         (pass_nrv): Require PROP_ssa.
14959         * tree-mudflap.c (mf_decl_cache_locals,
14960         mf_build_check_statement_for): Use make_rename_temp.
14961         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
14962         * alias.c (find_base_decl): Handle SSA names.
14963         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
14964         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
14965         * rtl.h (set_reg_attrs_for_parm): Declare.
14966         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
14967         to "optimized", remove unused locals at finish.
14968         (execute_free_datastructures): Make global, call
14969         delete_tree_cfg_annotations.
14970         (execute_free_cfg_annotations): Don't call
14971         delete_tree_cfg_annotations.
14973         * ssaexpand.h: New file.
14974         * expr.c (toplevel): Include ssaexpand.h.
14975         (expand_assignment): Handle SSA names the same as register variables.
14976         (expand_expr_real_1): Expand SSA names.
14977         * cfgexpand.c (toplevel): Include ssaexpand.h.
14978         (SA): New global variable.
14979         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
14980         (SSAVAR): New macro.
14981         (set_rtl): New helper function.
14982         (add_stack_var): Deal with SSA names, use set_rtl.
14983         (expand_one_stack_var_at): Likewise.
14984         (expand_one_stack_var): Deal with SSA names.
14985         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
14986         before unique numbers.
14987         (expand_stack_vars): Use set_rtl.
14988         (expand_one_var): Accept SSA names, add asserts for them, feed them
14989         to above subroutines.
14990         (expand_used_vars): Expand all partitions (without default defs),
14991         then only the local decls (ignoring those expanded already).
14992         (expand_gimple_cond): Remove edges when jumpif() expands an
14993         unconditional jump.
14994         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
14995         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
14996         SSA name.
14997         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
14998         members of SA; deal with PARM_DECL partitions here; expand
14999         all PHI nodes, free tree datastructures and SA.  Commit instructions
15000         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
15001         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
15002         info and statements at start, collect garbage at finish.
15003         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
15004         (VAR_ANN_PARTITION) Remove.
15005         (change_partition_var): Don't declare.
15006         (partition_to_var): Always return SSA names.
15007         (var_to_partition): Only accept SSA names.
15008         (register_ssa_partition): Only check argument.
15009         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
15010         member.
15011         (delete_var_map): Don't free it.
15012         (var_union): Only accept SSA names, simplify.
15013         (partition_view_init): Mark only useful SSA names as used.
15014         (partition_view_fini): Only deal with SSA names.
15015         (change_partition_var): Remove.
15016         (dump_var_map): Use ssa_name instead of partition_to_var member.
15017         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
15018         basic blocks.
15019         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
15020         (struct _elim_graph): New member const_dests; nodes member vector of
15021         ints.
15022         (set_location_for_edge): New static helper.
15023         (create_temp): Remove.
15024         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
15025         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
15026         (new_elim_graph): Allocate const_dests member.
15027         (clean_elim_graph): Truncate const_dests member.
15028         (delete_elim_graph): Free const_dests member.
15029         (elim_graph_size): Adapt to new type of nodes member.
15030         (elim_graph_add_node): Likewise.
15031         (eliminate_name): Likewise.
15032         (eliminate_build): Don't take basic block argument, deal only with
15033         partition numbers, not variables.
15034         (get_temp_reg): New static helper.
15035         (elim_create): Use it, deal with RTL temporaries instead of trees.
15036         (eliminate_phi): Adjust all calls to new signature.
15037         (assign_vars, replace_use_variable, replace_def_variable): Remove.
15038         (rewrite_trees): Only do checking.
15039         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
15040         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
15041         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
15042         contains_tree_r, MAX_STMTS_IN_LATCH,
15043         process_single_block_loop_latch, analyze_edges_for_bb,
15044         perform_edge_inserts): Remove.
15045         (expand_phi_nodes): New global function.
15046         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
15047         functions, initialize new parameter, remember partitions having a
15048         default def.
15049         (finish_out_of_ssa): New global function.
15050         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
15051         don't reset in_ssa_p here, don't disable TER when mudflap.
15052         (pass_del_ssa): Remove.
15053         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
15054         partition members.
15055         (execute_free_datastructures): Declare.
15056         * Makefile.in (SSAEXPAND_H): New variable.
15057         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
15058         * basic-block.h (commit_one_edge_insertion): Declare.
15059         * passes.c (init_optimization_passes): Move pass_nrv and
15060         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
15061         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
15062         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
15063         (redirect_branch_edge): Deal with super block when expanding, split
15064         out jump patching itself into ...
15065         (patch_jump_insn): ... here, new static helper.
15067 2009-04-26  Michael Matz  <matz@suse.de>
15069         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
15070         beyond num_ssa_names.
15071         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
15072         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
15074 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
15076         PR inline-asm/39543
15077         * fwprop.c (forward_propagate_asm): New function.
15078         (forward_propagate_and_simplify): Propagate also into __asm, if it
15079         doesn't increase the number of referenced registers.
15081         PR c/39889
15082         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
15084 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
15086         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
15087         note_nonlocal_vla_type for nonlocal VLAs.
15088         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
15089         contains_remapped_vars, remap_vla_decls): New functions.
15090         (convert_nonlocal_reference_stmt): If not optimizing, call
15091         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
15092         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
15093         if it wasn't found in var_map.
15094         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
15095         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
15096         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
15097         declare_vars.
15098         * gimplify.c (nonlocal_vlas): New variable.
15099         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
15100         referenced VLAs.
15101         (gimplify_body): Create and destroy nonlocal_vlas.
15103         * dwarf2out.c (loc_descr_plus_const): New function.
15104         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
15105         mem_loc_descriptor, loc_descriptor_from_tree_1,
15106         descr_info_loc, gen_variable_die): Use it.
15108         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
15109         !TREE_STATIC VAR_DECLs.
15110         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
15111         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
15112         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
15113         DECL_BY_REFERENCE is valid.
15114         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
15115         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
15116         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
15117         Copy DECL_BY_REFERENCE.
15118         (struct nesting_copy_body_data): New type.
15119         (nesting_copy_decl): New function.
15120         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
15121         if they have variable length.
15123 2009-04-26  Michael Matz  <matz@suse.de>
15125         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
15126         mark new temporaries for renaming.
15128 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
15130         PR c/39581
15131         * c-decl.c (global_bindings_p): Return negative value.
15132         (c_variable_size): New.  Based on variable_size from
15133         stor-layout.c.
15134         (grokdeclarator): Call c_variable_size not variable_size.
15136 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
15138         * config/i386/i386.c (print_operand) ['z']: Fix typo.
15140 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
15142         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
15143         Redefine it to just use mingw/include.
15144         (ASM_SPEC): Rules for -m32 and -m64.
15145         (LINK_SPEC): Use Likewise.
15146         (SPEC_32): New define.
15147         (SPEC_64): Likewise.
15148         (SUB_LINK_SPEC): Likewise.
15149         (MULTILIB_DEFAULTS): New define.
15150         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
15151         Add multilib options.
15152         (MULTILIB_DIRNAMES): Likewise.
15153         (MULTILIB_OSDIRNAMES): Likewise.
15154         (LIBGCC): Likewise.
15155         (INSTALL_LIBGCC): Likewise.
15157 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
15159         PR c/39556
15160         * c-tree.h (enum c_inline_static_type): New.
15161         (record_inline_static): Declare.
15162         * c-decl.c (struct c_inline_static, c_inline_statics,
15163         record_inline_static, check_inline_statics): New.
15164         (pop_file_scope): Call check_inline_statics.
15165         (start_decl): Call record_inline_static instead of pedwarning
15166         directly for static in inline function.
15167         * c-typeck.c (build_external_ref): Call record_inline_static
15168         instead of pedwarning directly for static referenced in inline
15169         function.
15171 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
15173         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
15174         not new but only being rescanned.
15175         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
15176         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
15177         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
15178         record_set_info, compute_set, grealloc): Remove.
15179         (recompute_all_luids): New function.
15180         (gcse_main): Don't compute sets, and don't do related memory
15181         allocations/free-ing.  If something changed before the end of the
15182         pass, update LUIDs using recompute_all_luids.
15183         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
15184         (free_gcse_mem): Don't free it either.
15185         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
15186         Use the df insn LUIDs.
15187         (load_killed_in_block): Likewise.
15188         (compute_hash_table_work): Don't compute reg_set_in_block.
15189         (compute_transp): Use DF_REG_DEF_CHAINs.
15190         (local_cprop_pass): Don't use compute_sets and related functions.
15191         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
15192         Use get_max_uid() instead of max_cuid.
15193         (insert_insn_end_basic_block, pre_insert_copy_insn,
15194         update_ld_motion_stores): Don't try to
15195         keep reg_set tables up to date.
15196         (pre_insert_copies): Use df insn LUIDs.
15197         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
15198         (reg_set_info): Don't use extra bitmap argument.
15199         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
15200         information to compute regs_set_in_block.
15201         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
15202         (bypass_jumps): Don't use compute_sets and friends.
15204 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15206         PR testsuite/39710
15207         * opts.c (undocumented_msg): Do not leave blank even with
15208         ENABLE_CHECKING.
15210 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15212         * c-decl.c (build_enumerator): Allow values folding to integer
15213         constants but not integer constant expressions with a pedwarn if
15214         pedantic.
15216 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15218         PR c/39582
15219         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
15220         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
15221         type is an integer constant.
15223 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
15225         PR target/39897
15226         * config/i386/i386.c (print_operand) ['z']: Revert handling of
15227         HImode operands.
15229 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15231         PR c/39564
15232         * c-decl.c (grokdeclarator): Diagnose declarations of functions
15233         with variably modified return type and no storage class
15234         specifiers, except for the case of nested functions.  Distinguish
15235         extern declarations of functions with variably modified return
15236         types from those of objects with variably modified types.
15238 2009-04-25  Jan Hubicka  <jh@suse.cz>
15240         * tree.c (list_equal_p): New function.
15241         * tree.h (list_equal_p): Declare.
15242         * coretypes.h (edge_def, edge, const_edge, basic_block_def
15243         basic_block_def, basic_block, const_basic_block): New.
15244         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
15245         (redirect_eh_edge): New function.
15246         (make_eh_edge_update_phi): EH edges are not abnormal.
15247         * except.c: Include tree-flow.h.
15248         (list_match): New function.
15249         (eh_region_replaceable_by_p): New function.
15250         (replace_region): New function.
15251         (hash_type_list): New function.
15252         (hash_eh_region): New function.
15253         (eh_regions_equal_p): New function.
15254         (merge_peers): New function.
15255         (remove_unreachable_regions): Verify EH tree when checking;
15256         merge peers.
15257         (copy_eh_region_1): New function.
15258         (copy_eh_region): New function.
15259         (push_reachable_handler): New function.
15260         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
15261         regions without label but with live RESX.
15262         * except.h (redirect_eh_edge_to_label): New.
15263         * tree-flow.h (redirect_eh_edge): New.
15264         * coretypes.h (edge_def, edge, const_edge, basic_block_def
15265         basic_block_def, basic_block, const_basic_block): Remove.
15266         * Makefile.in (except.o): Add dependency on tree-flow.h
15267         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
15268         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
15269         Remove.
15271 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
15273         PR bootstrap/39645
15274         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
15275         on the destination of memcpy.
15277 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
15279         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
15280         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
15281         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
15283 2009-04-25  Jan Hubicka  <jh@suse.cz>
15285         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
15286         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
15287         to be reached by different label than left.
15288         (update_eh_edges): Update comment; remove edge_to_remove if possible
15289         and return true if suceeded.
15290         (cleanup_empty_eh): Accept sharing map; handle shared regions.
15291         (cleanup_eh): Compute sharing map.
15292         * except.c (remove_eh_handler_and_replace): Add argument if we should
15293         update regions.
15294         (remove_unreachable_regions): Update for label sharing.
15295         (label_to_region_map): Likewise.
15296         (get_next_region_sharing_label): New function.
15297         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
15298         prev_try pointers.
15299         (remove_eh_handler): Update.
15300         (remove_eh_region_and_replace_by_outer_of): New function.
15301         * except.h (struct eh_region): Add next_region_sharing_label.
15302         (remove_eh_region_and_replace_by_outer_of,
15303         get_next_region_sharing_label): Declare.
15304         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
15306 2009-04-25  Jan Hubicka  <jh@suse.cz>
15308         * tree-cfg.c (split_critical_edges): Split also edges where we can't
15309         insert code even if they are not critical.
15311 2009-04-25  Jan Hubicka  <jh@suse.cz>
15313         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15314         (gimple_can_remove_branch_p): EH edges won't remove branch by
15315         redirection.
15316         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
15317         updating of non-abnormal EH edges.
15318         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15319         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
15320         (split_critical_edges): Split also edges where emitting code on them
15321         will lead to splitting later.
15323 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
15324             H.J. Lu  <hongjiu.lu@intel.com>
15326         PR target/39590
15327         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
15328         the configured assembler supports fildq and fistpq mnemonics.
15329         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
15330         * configure: Regenerated.
15331         * config.in: Ditto.
15333         * config/i386/i386.c (print_operand): Handle 'Z'.
15334         ['z']: Remove handling of special fild/fist suffixes.
15335         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
15336         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
15337         suffix of fild insn.
15338         (*floatsi<mode>2_vector_mixed): Ditto.
15339         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
15340         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
15341         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15342         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
15343         * config/i386/gas.h (GAS_MNEMONICS): Remove.
15345 2009-04-25  Ben Elliston  <bje@au.ibm.com>
15347         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
15348         the source of a set operation.
15350 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
15352         * target.h (struct gcc_target): Add case_values_threshold field.
15353         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
15354         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
15355         * targhooks.c (default_case_values_threshold): New function.
15356         * targhooks.h (default_case_values_threshold): Declare function.
15357         * stmt.c (expand_case): Use case_values_threshold target hook.
15358         * expr.h (case_values_threshold): Remove declartation.
15359         * expr.c (case_values_threshold): Remove function.
15360         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
15362         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
15363         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15364         (avr_case_values_threshold): Declare as static.
15365         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
15367         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
15368         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15369         (mn10300_case_values_threshold): New function.
15371 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
15373         * ira.c (setup_cover_and_important_classes): Add enum cast.
15375 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15377         * genpreds.c (write_enum_constraint_num): Output definition of
15378         CONSTRAINT_NUM_DEFINED_P macro.
15379         * ira.c (setup_cover_and_important_classes): Use
15380         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
15382 2009-04-24  DJ Delorie  <dj@redhat.com>
15384         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
15385         __SH2A_SINGLE_ONLY__ also.
15387 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
15389         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
15390         (movdf_internal): Ditto.
15391         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
15392         SFmode and DFmode constants.
15393         (ia64_print_operand): Add 'G' format for printing
15394         floating point constants.
15396 2009-04-24  Richard Guenther  <rguenther@suse.de>
15398         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
15399         from unsigned additions.
15401 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
15403         * c-typeck.c (set_init_index): Allow array designators that are
15404         not integer constant expressions with a pedwarn if pedantic.
15406 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
15408         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
15409         zero if no overlap in nonzero bits between the operands.
15411 2009-04-24  Ian Lance Taylor  <iant@google.com>
15413         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
15414         (record_dead_and_set_regs): Likewise.
15415         * df.h (struct df_mw_hardreg): Change flags field to int.
15416         (struct df_base_ref): Likewise.
15417         (struct df): Change changeable_flags field to int.
15418         * df-scan.c (df_defs_record): Change clobber_flags to int.
15419         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
15420         constants rather than #define macros.
15421         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
15422         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
15423         (enum dwarf_calling_convention): Likewise.
15424         (enum dwarf_line_number_x_ops): Likewise.
15425         (enum dwarf_call_frame_info): Likewise.
15426         (enum dwarf_source_language): Likewise.
15427         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
15428         (add_calling_convention_attribute): Likewise.
15429         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
15430         (combine_comparisons): Change compcode to int.  Add cast to enum type.
15431         * genrecog.c (maybe_both_true_2): Change c to int.
15432         (write_switch): Likewise.  Add cast to enum type.
15433         * gimplify.c (gimplify_omp_for): Handle return values from
15434         gimplify_expr using MIN rather than bitwise or.
15435         (gimplify_expr): Add cast to enum type.
15436         * ipa-prop.c (update_jump_functions_after_inlining): Change
15437         IPA_BOTTOM to IPA_JF_UNKNOWN.
15438         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
15439         Add casts to enum type.
15440         (setup_cover_and_important_classes): Change cl to int.  Add casts
15441         to enum type.
15442         (setup_class_translate): Change cl and mode to int.
15443         (ira_init_once): Change mode to int.
15444         (free_register_move_costs): Likewise.
15445         (setup_prohibited_mode_move_regs): Add casts to enum type.
15446         * langhooks.c (add_builtin_function_common): Rework assertion that
15447         value fits bitfield.
15448         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
15449         * omega.c (omega_do_elimination): Avoid math on enum types.
15450         * optabs.c (expand_vec_shift_expr): Remove casts to int.
15451         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
15452         int local to handle integral_argment value.
15453         * regmove.c (try_auto_increment): Change PUT_MODE to
15454         PUT_REG_NOTE_KIND.
15455         * reload.c (push_secondary_reload): Add casts to enum type.
15456         (secondary_reload_class, find_valid_class): Likewise.
15457         * reload1.c (emit_input_reload_insns): Likewise.
15458         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
15459         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
15460         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
15461         constant.
15462         * tree.c (build_common_builtin_nodes): Add casts to enum type.
15463         * tree-complex.c (complex_lattice_t): Typedef to int rather than
15464         enum type.
15465         (expand_complex_libcall): Add casts to enum type.
15466         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
15467         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
15468         with ERROR_MARK, not NUM_TREE_CODES.
15469         (vect_create_epilog_for_reduction): Likewise.
15470         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
15471         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
15472         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
15473         enum machine_mode.
15474         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
15475         vect_unused_in_loop.  Change 0 to loop_vect.
15476         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
15477         * var-tracking.c (get_init_value): Change return type to enum
15478         var_init_status.
15479         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
15480         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
15481         arm_fp_model.
15482         (arm_override_options): Add casts to enum type.
15483         (arm_emit_tls_decoration): Likewise.
15484         * config/i386/i386.c (ix86_function_specific_restore): Add casts
15485         to enum type.
15486         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
15487         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
15488         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
15489         enum type.
15490         * config/s390/s390.c (code_for_builtin_64): Change to array of
15491         enum insn_code.
15492         (code_for_builtin_31): Likewise.
15493         (s390_expand_builtin): Change code_for_builtin to enum insn_code
15494         const *.
15495         * config/sparc/sparc.c (sparc_override_options): Change value
15496         field in struct code_model to enum cmodel.  In initializer change
15497         0 to NULL and add cast to enum type.
15499         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
15500         Change all callers.  Issue a -Wc++-compat warning using
15501         lhs_origtype if necessary.
15502         (convert_for_assignment): Issue -Wc++-compat warnings about
15503         invalid conversions to enum type on assignment.
15504         * c-common.h (build_modify_expr): Update declaration.
15506 2009-04-24  Nick Clifton  <nickc@redhat.com>
15508         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
15509         (function_arg_advance): Likewise.
15510         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
15511         5th alternative.
15513 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15515         * config/s390/constraints.md ('I', 'J'): Fix condition.
15517 2009-04-24  Diego Novillo  <dnovillo@google.com>
15519         * gengtype-parse.c (parse_error): Add newline after message.
15521 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
15523         * config/i386/sse.md (avxmodesuffixs): Removed.
15524         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
15525         (*avx_pinsr<ssevecsize>): This.
15527 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
15529         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
15530         follow chains of regs with a single definition, and allow expressions
15531         that are function_invariant_p.
15532         (simple_rhs_p): Allow expressions that are function_invariant_p.
15534 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
15536         PR middle-end/39867
15537         * fold-const.c (fold_cond_expr_with_comparison): When folding
15538         > and >= to MAX, make sure the MAX uses the same type as the
15539         comparison's operands.
15541 2009-04-24  Nick Clifton  <nickc@redhat.com>
15543         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
15544         addressing for DImode accesses.
15545         (frv_print_operand_address): Handle PLUS case.
15546         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
15548 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
15550         PR rtl-optimization/39794
15551         * alias.c (canon_true_dependence): Add x_addr argument.
15552         * rtl.h (canon_true_dependence): Adjust prototype.
15553         * cse.c (check_dependence): Adjust canon_true_dependence callers.
15554         * cselib.c (cselib_invalidate_mem): Likewise.
15555         * gcse.c (compute_transp): Likewise.
15556         * dse.c (scan_reads_nospill): Likewise.
15557         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
15558         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
15559         canon_base_addr of the group, plus optional offset.
15560         (struct group_info): Rename canon_base_mem to
15561         canon_base_addr.
15562         (get_group_info): Set canon_base_addr to canon_rtx of base, not
15563         canon_rtx of base_mem.
15565 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
15567         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15568         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
15570 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15572         * config/spu/spu-builtins.h: Delete file.
15574         * config/spu/spu.h (enum spu_builtin_type): Move here from
15575         spu-builtins.h.
15576         (struct spu_builtin_description): Likewise.  Add GTY marker.
15577         Do not use enum spu_function_code or enum insn_code.
15578         (spu_builtins): Add extern declaration.
15580         * config/spu/spu.c: Do not include "spu-builtins.h".
15581         (enum spu_function_code, enum spu_builtin_type_index,
15582         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
15583         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
15584         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
15585         unsigned_V2DI_type_node): Move here from spu-builtins.h.
15586         (spu_builtin_types): Make static.  Add GTY marker.
15587         (spu_builtins): Add extern declaration with GTY marker.
15588         Include "gt-spu.h".
15590         * config/spu/spu-c.c: Do not include "spu-builtins.h".
15591         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
15592         Check programmatically whether all parameters are scalar.
15594         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
15596 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
15598         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
15599         assignment from the constructor either if the target is volatile.
15601 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
15603         * config/arm/arm.md (insv): Do not share operands[0].
15605 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
15607         * config/vxlib-tls.c (active_tls_threads): Delete.
15608         (delete_hook_installed): New.
15609         (tls_delete_hook): Don't delete the delete hook.
15610         (tls_destructor): Delete it here.
15611         (__gthread_set_specific): Adjust installing the delete hook.
15612         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
15613         __gthread_leave_tsd_dtor_context.
15615 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
15617         * c-format.c (gcc_tdiag_char_table): Add support for %E.
15619 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
15621         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
15622         enum type.
15623         (alpha_rtx_costs): Ditto.
15624         (emit_unlikely_jump): Use add_reg_note.
15625         (emit_frame_store_1): Ditto.
15626         (alpha_expand_prologue): Ditto.
15627         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
15628         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
15630 2009-04-23  Nick Clifton  <nickc@redhat.com>
15632         * config/v850/v850.md (epilogue): Remove suppressed code.
15633         (return): Rename to return_simple and remove test of frame size.
15634         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
15635         to gen_return_simple.
15637 2009-04-22  Jing Yu  <jingyu@google.com>
15639         PR testsuite/39781
15640         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
15642 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15644         PR C/31499
15645         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
15646         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
15647         value is a VECTOR_CST, the element type is the element type of the
15648         vector.
15650 2009-04-22  DJ Delorie  <dj@redhat.com>
15652         * config/m32c/m32c.h: Update GTY annotations to new syntax.
15654 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
15656         * alias.c (find_base_term): Move around LO_SUM case, so that
15657         CONST falls through into PLUS/MINUS handling.
15659         PR c/39855
15660         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
15661         into 0, use omit_one_operand.
15663 2009-04-23  Ben Elliston  <bje@au.ibm.com>
15665         * config/rs6000/linux-unwind.h (get_regs): Remove type
15666         puns. Change the type of `pc' to an array of unsigned ints and
15667         update all users.  Constify frame24.
15669 2009-04-22  DJ Delorie  <dj@redhat.com>
15671         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
15672         declarations before code.
15673         (current_function_special_page_vector): Likewise.
15674         (m32c_expand_insv): Silence a warning.
15676 2009-04-21  Taras Glek  <tglek@mozilla.com>
15678         * alias.c: Update GTY annotations to new syntax.
15679         * basic-block.h: Likewise.
15680         * bitmap.h: Likewise.
15681         * c-common.h: Likewise.
15682         * c-decl.c: Likewise.
15683         * c-parser.c: Likewise.
15684         * c-pragma.c: Likewise.
15685         * c-tree.h: Likewise.
15686         * cfgloop.h: Likewise.
15687         * cgraph.h: Likewise.
15688         * config/alpha/alpha.c: Likewise.
15689         * config/arm/arm.h: Likewise.
15690         * config/avr/avr.h: Likewise.
15691         * config/bfin/bfin.c: Likewise.
15692         * config/cris/cris.c: Likewise.
15693         * config/darwin.c: Likewise.
15694         * config/frv/frv.c: Likewise.
15695         * config/i386/i386.c: Likewise.
15696         * config/i386/i386.h: Likewise.
15697         * config/i386/winnt.c: Likewise.
15698         * config/ia64/ia64.h: Likewise.
15699         * config/iq2000/iq2000.c: Likewise.
15700         * config/mips/mips.c: Likewise.
15701         * config/mmix/mmix.h: Likewise.
15702         * config/pa/pa.c: Likewise.
15703         * config/pa/pa.h: Likewise.
15704         * config/rs6000/rs6000.c: Likewise.
15705         * config/s390/s390.c: Likewise.
15706         * config/sparc/sparc.c: Likewise.
15707         * config/xtensa/xtensa.c: Likewise.
15708         * cselib.h: Likewise.
15709         * dbxout.c: Likewise.
15710         * dwarf2out.c: Likewise.
15711         * except.c: Likewise.
15712         * except.h: Likewise.
15713         * fixed-value.h: Likewise.
15714         * function.c: Likewise.
15715         * function.h: Likewise.
15716         * gimple.h: Likewise.
15717         * integrate.c: Likewise.
15718         * optabs.c: Likewise.
15719         * output.h: Likewise.
15720         * real.h: Likewise.
15721         * rtl.h: Likewise.
15722         * stringpool.c: Likewise.
15723         * tree-data-ref.c: Likewise.
15724         * tree-flow.h: Likewise.
15725         * tree-scalar-evolution.c: Likewise.
15726         * tree-ssa-address.c: Likewise.
15727         * tree-ssa-alias.h: Likewise.
15728         * tree-ssa-operands.h: Likewise.
15729         * tree.c: Likewise.
15730         * tree.h: Likewise.
15731         * varasm.c: Likewise.
15732         * varray.h: Likewise.
15733         * vec.h: Likewise.
15734         * coretypes.h: Do not define GTY macro if it is already defined.
15735         * doc/gty.texi: Update GTY documentation to new syntax.
15736         * gengtype-lex.l: Enforce attribute-like syntax for GTY
15737         annotations on structs.
15738         * gengtype-parse.c: Likewise.
15740 2009-04-22  Mark Heffernan  <meheff@google.com>
15742         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
15744 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
15746         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
15747         where appropriate.
15749 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
15751         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
15752         the same as a PLUS without a shift.  Increase the cost of a
15753         CONST_INT in MULT.
15755 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15757         * Makefile.in: Update dependencies.
15758         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
15759         * errors.h: Remove bogus comment about compatibility.
15760         (warning): Update declaration.
15761         * genautomata.c: Update all calls to warning.
15762         * gimple.c: Do not include errors.h. Include toplev.h.
15763         * tree-ssa-structalias.c: Do not include errors.h.
15764         * omega.c: Likewise.
15765         * tree-ssa-reassoc.c: Likewise.
15766         * config/spu/spu-c.c: Likewise.
15767         * config/spu/t-spu-elf: Update dependencies.
15769 2009-04-22  Richard Guenther  <rguenther@suse.de>
15771         PR tree-optimization/39824
15772         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
15773         make sure the types are compatible.
15775 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15777         PR c++/14875
15778         * c-common.c (c_parse_error): Take a token_flags parameter.
15779         Use token_type for the token type instead.
15780         Pass token_flags to cpp_type2name.
15781         * c-common.h (c_parse_error): Update declaration.
15782         * c-parser.c (c_parser_error): Pass 0 as token flags.
15784 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
15786         PR rtl-optimization/39580
15787         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
15789 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15791         * function.c (expand_function_end): Do not emit a jump to the "naked"
15792         return label for fall-through returns.
15793         * except.c (sjlj_emit_function_exit): Always place the call to the
15794         unregister function at the location installed by expand_function_end.
15796 2009-04-22  Richard Guenther  <rguenther@suse.de>
15798         PR tree-optimization/39845
15799         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
15800         (gen_inbound_check): Likewise.
15802 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
15804         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
15805         padding for PPC.
15806         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
15807         * config/vxlib.c (__gthread_once): Add race guard for PPC.
15809 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
15811         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
15812         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
15813         shift counts to avoid out-of-bounds array accesses.
15815 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
15817         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
15818         (Pmode): Move above.
15820 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
15822         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
15823         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
15824         GET_CODE macro.  Use IN_RANGE macro where appropriate.
15825         * config/alpha/alpha.h: Ditto.
15826         * config/alpha/alpha.md: Ditto.
15827         * config/alpha/constraints.md: Ditto.
15828         * config/alpha/predicates.md: Ditto.
15830 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
15832         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
15833         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15834         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15835         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15836         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15837         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15838         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15839         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15840         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15841         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15842         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15843         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15844         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15845         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15846         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15847         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15848         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15849         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15850         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15851         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15852         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15853         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15854         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15855         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15856         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15857         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15858         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15860 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15862         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
15863         references from comments.
15864         * cfgbuild.c: (count_basic_blocks): Delete.
15865         (find_basic_blocks_1): Delete.
15866         (find_basic_blocks): Delete.
15867         * except.c (finish_eh_generation): Make static.  Move comment from
15868         except.h here.  Remove find_basic_blocks references from comments.
15869         * except.h (finish_eh_generation): Delete.
15870         * basic-block.h (find_basic_blocks): Delete.
15871         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
15873 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
15875         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
15876         (sdbout_parms):  Likewise.
15878 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
15880         * config/sh/sh.c (prepare_cbranch_operands): Use
15881         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
15882         (expand_cbranchdi4): Likewise.
15883         (from_compare): Add cast to enum type.
15884         (expand_cbranchsi4): Use add_reg_note.
15885         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
15886         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
15887         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
15888         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
15889         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
15890         instead of CODE_FOR_nothing.
15891         (cbranchdi4): Likewise.  Fix the order of arguments for
15892         gen_rtx_fmt_ee.
15893         (push_fpscr): Use add_reg_note.
15894         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
15895         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
15897 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
15899         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
15900         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
15901         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
15902         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
15903         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
15904         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
15905         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
15906         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
15907         config/alpha/x-vms, config/arc/t-arc,
15908         config/arm/README-interworking, config/arm/arm-c.c,
15909         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
15910         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
15911         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
15912         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
15913         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
15914         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
15915         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
15916         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
15917         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
15918         config/cris/t-elfmulti, config/crx/t-crx,
15919         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
15920         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
15921         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
15922         config/h8300/t-h8300, config/i386/athlon.md,
15923         config/i386/darwin-libgcc.10.4.ver,
15924         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
15925         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
15926         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
15927         config/i386/t-linux64, config/i386/t-nwld,
15928         config/i386/t-rtems-i386, config/i386/t-sol2-10,
15929         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
15930         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
15931         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
15932         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
15933         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
15934         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
15935         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
15936         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
15937         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
15938         config/m68k/t-uclinux, config/mcore/t-mcore,
15939         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
15940         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
15941         config/mips/crtn.asm, config/mips/irix-crti.asm,
15942         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
15943         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
15944         config/mips/mips-fixed.md, config/mips/sb1.md,
15945         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
15946         config/mips/t-iris6, config/mips/t-isa3264,
15947         config/mips/t-libgcc-mips16, config/mips/t-linux64,
15948         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
15949         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
15950         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
15951         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
15952         config/mn10300/t-linux, config/mn10300/t-mn10300,
15953         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
15954         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
15955         config/picochip/libgccExtras/clzsi2.asm,
15956         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
15957         config/rs6000/darwin-libgcc.10.4.ver,
15958         config/rs6000/darwin-libgcc.10.5.ver,
15959         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
15960         config/rs6000/t-aix43, config/rs6000/t-aix52,
15961         config/rs6000/t-darwin, config/rs6000/t-fprules,
15962         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
15963         config/rs6000/t-lynx, config/rs6000/t-netbsd,
15964         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
15965         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
15966         config/rs6000/t-rtems, config/rs6000/t-spe,
15967         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
15968         config/score/t-score-elf, config/sh/divcost-analysis,
15969         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
15970         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
15971         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
15972         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
15973         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
15974         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
15975         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
15976         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
15977         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
15978         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
15979         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
15980         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
15981         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
15982         limitx.h, version.c, xcoff.h: Add copyright and license notices.
15983         * config/h8300/genmova.sh: Include copyright and license notices
15984         in generated output.
15985         * config/h8300/mova.md: Regenerate.
15986         * doc/install.texi2html: Include word "Copyright" in copyright
15987         notice and use name "Free Software Foundation, Inc.".
15988         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
15989         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
15990         ChangeLog-2007, ChangeLog-2008: Correct dates.
15992 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
15994         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
15995         NE_EXPR operations as well.
15996         * c-parser.c (c_parser_condition): Do not set location information on
15997         the condition.
15998         (c_parser_conditional_expression): Likewise.
15999         (c_parser_binary_expression): Set location information on operators.
16000         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
16001         TRUTH_NOT_EXPR has been folded.
16002         * fold-const.c (fold_truth_not_expr): Copy location information from
16003         the incoming expression to the outgoing one.
16004         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
16005         recursive calls on the LHS of the operator but pass that of the
16006         operator to recursive calls on the RHS of the operator.  Set it
16007         on the COND_EXPR.
16008         (shortcut_cond_expr): Set the locus of the operator on the second
16009         COND_EXPR and that of the expression on the first in degenerate cases.
16010         Pass the locus of the expression to calls to shortcut_cond_r.
16011         Set the locus of the 'then' block on the associated jump, if any.
16012         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
16013         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
16014         expression to call to gimplify_boolean_expr.
16016 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
16018         * config.gcc: Add additional configuration for
16019         i686-w64-mingw* and x86_64-w64-mingw* triplet.
16020         * config/i386/mingw-w64.h: New mingw-w64 specific header.
16021         (CPP_SPEC): Redefine for allowing -municode option.
16022         (STARTFILE_SPEC): Likewise.
16023         * config/i386/t-mingw-w64: New.
16024         * config/i386/mingw-w64.opt: New.
16025         (municode): Add new target option.
16026         * doc/invoke.texi (municode): Add documentation for new option.
16028 2009-04-21  Ian Lance Taylor  <iant@google.com>
16030         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16031         Correct test for number of arguments.
16032         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16034 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
16036         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
16037         argument of emit_library_call.
16039 2009-04-21  Richard Guenther  <rguenther@suse.de>
16041         PR middle-end/39829
16042         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
16043         inside VIEW_CONVERT_EXPRs.
16045 2009-04-21  Martin Jambor  <mjambor@suse.cz>
16047         * tree-switch-conversion.c (build_constructors): Split a long line.
16048         (constructor_contains_same_values_p): New function.
16049         (build_one_array): Create assigns of constants if possible, do not
16050         call mark_sym_for_renaming, call update_stmt.
16051         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
16052         make_rename_temp.  Do not call mark_symbols_for_renaming, call
16053         update_stmt.
16054         (gen_def_assigns): Do not call mark_symbols_for_renaming or
16055         find_new_referenced_vars, call update_stmt.
16056         (gen_inbound_check): Use create_tmp_var and create ssa names manually
16057         instead of calling make_rename_temp.  Do not call
16058         find_new_referenced_vars or mark_symbols_for_renaming, call
16059         update_stmt.
16061 2009-04-21  Richard Guenther  <rguenther@suse.de>
16063         PR tree-optimization/39827
16064         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
16065         (tree_ssa_phiprop): Pass the correct array size.
16067 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
16069         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
16071 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16073         PR 16202
16074         * c-typeck.c (lvalue_p): Move declaration ...
16075         * c-common.h (lvalue_p): ... to here.
16076         * c-common.c (candidate_equal_p): New.
16077         (add_tlist): Use it.
16078         (merge_tlist): Use it.
16079         (warn_for_collisions_1): Likewise.
16080         (warning_candidate_p): Accept more candidates.
16081         (verify_tree): A warning candidate can be an expression. Use
16082         candidate_equal_p.
16084 2009-04-21  Ben Elliston  <bje@au.ibm.com>
16086         PR target/5267
16087         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
16088         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
16089         options.  Remove -mcall-solaris documentation.
16091 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16093         PR c++/13358
16094         * doc/invoke.texi (-Wlong-long): Update description.
16095         * c-lex (interpret_integer): Only warn if there was no previous
16096         overflow and -Wlong-long is enabled.
16097         * c-decl.c (declspecs_add_type): Drop redundant flags.
16098         * c.opt (Wlong-long): Init to -1.
16099         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
16100         and front-end warn_long_long. Wlong-long only depends on other
16101         flags if it is uninitialized.
16102         * c-parser.c (disable_extension_diagnostics): warn_long_long is
16103         the same for CPP and FE.
16104         (restore_extension_diagnostics): Likewise.
16106 2009-04-20  Ian Lance Taylor  <iant@google.com>
16108         Fix enum conversions which are invalid in C++:
16109         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
16110         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
16111         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
16112         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
16113         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
16114         (dbxout_parms): Likewise.
16115         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
16116         (df_clear_flags): Likewise.
16117         * df-problems.c (df_rd_bb_local_compute_process_def): Change
16118         top_flag parameter to int.
16119         (df_chain_create_bb_process_use): Likewise.
16120         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
16121         Remove cast.
16122         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
16123         (df_ref_create_structure, df_def_record_1): Likewise.
16124         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
16125         (df_notes_rescan): Change 0 to VOIDmode in function call.
16126         (df_get_call_refs, df_insn_refs_collect): Likewise.
16127         (df_bb_regs_collect): Likewise.
16128         (df_entry_block_defs_collect): Likewise.
16129         (df_exit_block_uses_collect): Likewise.
16130         * df.h: Update declarations.
16131         * double-int.c (double_int_divmod): Add cast to enum type.
16132         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
16133         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
16134         (based_loc_descr): Likewise.
16135         (loc_descriptor_from_tree_1): Change first_op and second_op to
16136         enum dwarf_location_atom.  Add cast to enum type.
16137         * expmed.c (init_expmed): Change 0 to SET in function call.
16138         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
16139         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
16140         (do_store_flag): Likewise.
16141         * fixed-value.h (struct fixed_value): Change mode to enum
16142         machine_mode.
16143         * function.c (assign_parms): Change 0 to VOIDmode in function call.
16144         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
16145         function call.
16146         (insert_insn_decl, insert_decl, insert_state): Likewise.
16147         (automata_list_finish): Likewise.
16148         * genrecog.c (process_define_predicate): Add cast to enum type.
16149         * gensupport.c (init_predicate_table): Add cast to enum type.
16150         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
16151         function call.
16152         (gimple_build_call_1, gimple_build_label): Likewise.
16153         (gimple_build_goto, gimple_build_asm_1): Likewise.
16154         (gimple_build_switch_1, gimple_build_cdt): Likewise.
16155         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
16156         (enum fallback): Rename from enum fallback_t.
16157         (fallback_t): Typedef as int.
16158         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
16159         GSI_SAME_STMT in function call.
16160         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
16161         enum type.
16162         (setup_reg_class_relations): Likewise.
16163         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
16164         (setup_prohibited_class_mode_regs): Add cast to enum type.
16165         (setup_prohibited_mode_move_regs): Likewise.
16166         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
16167         (record_address_regs): Change i to enum reg_class.
16168         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
16169         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
16170         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
16171         (GET_MODE_2XWIDER_MODE): Likewise.
16172         (GET_CLASS_NARROWEST_MODE): Likewise.
16173         * omp-low.c (expand_omp_for): Add cast to enum type.
16174         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
16175         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
16176         * postreload.c (reload_cse_simplify_operands): Change rclass local
16177         to enum reg_class.
16178         * predict.c (combine_predictions_for_insn): Change best_predictor
16179         and predictor to enum br_predictor.
16180         (combine_predictions_for_bb): Likewise.
16181         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
16182         use SET_PREDICT_EXPR_OUTCOME.
16183         * real.c (real_arithmetic): Change icode to code in function call.
16184         * reginfo.c (init_move_cost): Add casts to enum type.
16185         (init_reg_sets_1, init_fake_stack_mems): Likewise.
16186         * regmove.c (regclass_compatible_p): Change class0 and class1 to
16187         enum reg_class.
16188         * reload.c (find_valid_class): Add casts to enum type.
16189         (push_reload): Change 0 to NO_REGS in function call.
16190         (find_reloads): Change this_alternative to array of enum
16191         reg_class.  Remove some now-unnecessary casts.
16192         (make_memloc): Change 0 to VOIDmode in function call.
16193         * reload1.c (reload): Change 0 to VOIDmode in function call.
16194         (eliminate_regs_1, elimination_effects): Likewise.
16195         (eliminate_regs_in_insn): Likewise.
16196         (emit_input_reload_insns): Add cast to enum type.
16197         (delete_output_reload): Change 0 to VOIDmode in function call.
16198         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
16199         to enum type in function call.
16200         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
16201         (SET_PREDICT_EXPR_OUTCOME): Define.
16202         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
16203         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
16204         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
16205         (dump_function): Likewise.
16206         * tree-dump.h: Update declarations.
16207         * tree-pass.h: Update declarations.
16208         * varasm.c (assemble_integer): Change mclass to enum mode_class.
16209         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
16210         enum type.
16211         (arm_rtx_costs_1): Correct parenthesization.
16212         (arm_rtx_costs): Add casts to enum type.
16213         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
16214         (vfp_emit_fstmd): Use add_rg_note.
16215         (emit_multi_reg_push, emit_sfm): Likewise.
16216         (thumb_set_frame_pointer): Likewise.
16217         (arm_expand_prologue): Likewise.
16218         (arm_regno_class): Change return type to enum reg_class.
16219         (thumb1_expand_prologue): Use add_reg_note.
16220         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
16221         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
16222         in function call.
16223         * config/arm/gentune.sh: Add cast to enum type.
16224         * config/arm/arm-tune.md: Rebuild.
16225         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
16226         (ix86_split_fp_branch, predict_jump): Likewise.
16227         (ix86_expand_multi_arg_builtin): Change sub_code from enum
16228         insn_code to enum rtx_code.
16229         (ix86_builtin_vectorized_function): Add cast to enum type.
16230         * config/i386/i386.md (truncdfsf2): Change slot to enum
16231         ix86_stack_slot.
16232         (truncxf<mode>2, isinf<mode>2): Likewise.
16233         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
16234         enum type.
16235         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
16236         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
16237         (insert_bundle_state): Change 1 to INSERT in function call.
16238         (ia64_add_bundle_selector_before): Likewise.
16239         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
16240         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
16241         (restore_stack_nonlocal): Likewise.
16242         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
16243         function call.
16244         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
16245         function call.
16246         (mips_rtx_costs): Likewise.
16247         (mips_override_options): Add casts to enum type.
16248         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
16249         in function call.
16250         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
16251         (store_reg, set_reg_plus_d): Likewise.
16252         (hppa_expand_prologue, hppa_profile_hook): Likewise.
16253         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
16254         cast to enum type.
16255         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
16256         function call.
16257         (emit_unlikely_jump): Use add_reg_note.
16258         (rs6000_emit_allocate_stack): Likewise.
16259         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
16260         (output_toc): Change 1 to INSERT in function call.
16261         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
16262         (rs6000_initialize_trampoline): Likewise.
16263         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
16264         function call.
16265         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
16266         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
16267         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
16268         (save_gprs): Use add_reg_note.
16269         (s390_emit_prologue): Likewise.
16270         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
16271         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
16272         (sparc_fold_builtin): Add cast to enum type.
16273         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
16274         enum insn_code.
16275         (spu_expand_prologue): Use add_reg_note.
16276         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
16278 2009-04-20  Ian Lance Taylor  <iant@google.com>
16280         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
16281         (c_parser_postfix_expression_after_primary): Get VEC for list of
16282         arguments.  Get original types of arguments.  Call
16283         build_function_call_vec.
16284         (cached_expr_list_1, cached_expr_list_2): New static variables.
16285         (c_parser_expr_list): Change return type to VEC *.  Add
16286         p_orig_types parameter.  Change all callers.
16287         (c_parser_release_expr): New static function.
16288         (c_parser_vec_to_tree_list): New static function.
16289         * c-typeck.c (build_function_call): Rewrite to build a VEC and
16290         call build_function_call_vec.
16291         (build_function_call_vec): New function, based on old
16292         build_function_call.
16293         (convert_arguments): Remove nargs and argarray parameters.  Change
16294         values to a VEC.  Add origtypes parameter.
16295         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
16296         (convert_for_assignment): Add origtype parameter.  Change all
16297         callers.  If warn_cxx_compat, check for conversion to an enum
16298         type when calling a function.
16299         (store_init_value): Add origtype parameter.  Change all callers.
16300         (digest_init): Likewise.
16301         (struct init_node): Add origtype field.
16302         (add_pending_init): Add origtype parameter.  Change all callers.
16303         (output_init_element): Likewise.
16304         (output_pending_init_elements): Pass origtype from init_node to
16305         output_init_element.
16306         (process_init_element): Pass origtype from c_expr to
16307         output_init_element.
16308         (c_finish_return): Add origtype parameter.  Change all callers.
16309         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
16310         caller.
16311         (sync_resolve_params): Likewise.
16312         (sync_resolve_return): Change params to first_param.  Change caller.
16313         (resolve_overloaded_builtins): Change params to VEC *.  Change
16314         callers.  Save first parameter around call to build_function_call_vec.
16315         * c-decl.c (finish_decl): Add origtype parameter.  Change all
16316         callers.  Call build_function_call_vec rather than
16317         build_function_call for cleanup.
16318         * c-tree.h: Update declarations.
16319         * c-common.h: Update declarations.
16320         * stub-objc.c (objc_rewrite_function_call): Change parameter from
16321         params to first_param.
16322         * target.h (struct gcc_target): Change resolve_overloaded_builtin
16323         params parameter from tree to void *.
16324         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16325         Change arglist parameter to have type void *, and to be a pointer
16326         to a VEC.
16327         * config/rs6000/rs6000-protos.h
16328         (altivec_resolve_overloaded_builtin): Update declaration.
16329         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
16330         fnargs parameter to have type void *, and to be a pointer to a
16331         VEC.  Call build_function_call_vec instead of
16332         build_function_call.
16333         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
16335 2009-04-20  Joey Ye  <joey.ye@intel.com>
16336             Xuepeng Guo  <xuepeng.guo@intel.com>
16337             H.J. Lu  <hongjiu.lu@intel.com>
16339         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
16341         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
16342         (IX86_LEA_PRIORITY): Likewise.
16343         (distance_non_agu_define): New function.
16344         (distance_agu_use): Likewise.
16345         (ix86_lea_for_add_ok): Likewise.
16346         (ix86_dep_by_shift_count): Likewise.
16348         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
16349         should split for LEA.
16351         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
16352         function.
16353         (ix86_dep_by_shift_count): Likewise.
16355 2009-04-20  Richard Guenther  <rguenther@suse.de>
16357         * expr.c (handled_component_p): Move ...
16358         * tree.h (handled_component_p): ... here.
16359         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
16360         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
16361         and REALPART_EXPR to be in one group.
16363 2009-04-20  Richard Guenther  <rguenther@suse.de>
16365         * basic-block.h (get_all_dominated_blocks): Declare.
16366         * dominance.c (get_all_dominated_blocks): New function.
16367         * tree-cfg.c (get_all_dominated_blocks): Remove.
16368         (remove_edge_and_dominated_blocks): Adjust.
16369         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
16370         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
16371         instead of recursing.
16373 2009-04-20  Doug Kwan  <dougkwan@google.com>
16375         * cgraph.h (cgraph_node_ptr): New type for vector functions.
16376         (struct cgraph_node_set_def): New type.
16377         (cgraph_node_set) New type. Also declare vector functions.
16378         (struct cgraph_node_set_element_def): New type.
16379         (cgraph_node_set_element): Ditto.
16380         (cgraph_node_set_iterator): New iterator type.
16381         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
16382         cgraph_node_set_remove, dump_cgraph_node_set,
16383         debug_cgraph_node_set): New prototypes.
16384         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
16385         cgraph_node_set_size): New inlines.
16386         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
16387         including cgraph.h.
16388         (struct ipa_opt_pass): Add struct cgraph_node_set_def
16389         argument to function 'write_summary'.
16390         * ipa.c: Include ggc.h.
16391         (hash_cgraph_node_set_element,
16392         eq_cgraph_node_set_element, cgraph_node_set_new,
16393         cgraph_node_set_add, cgraph_node_set_remove,
16394         cgraph_node_set_find, dump_cgraph_node_set,
16395         debug_cgraph_node_set): New functions.
16396         * Makefile.in (ipa.o): Add dependency on GGC_H.
16398 2009-04-20  Ira Rosen  <irar@il.ibm.com>
16400         PR tree-optimization/39675
16401         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
16402         check of the return code of vect_schedule_slp. Check that
16403         stmt_vec_info still exists for the statement, before checking its
16404         vectorization type.
16406 2009-04-20  Michael Matz  <matz@suse.de>
16408         * Makefile.in (generated_files): Take out $(simple_generated_c).
16410 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
16412         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
16413         (UINTPTR_TYPE):  Likewise.
16415 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16417         PR c/37481
16418         * c-typeck.c (digest_init): Check for initializing an array with a
16419         string literal.
16421 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16423         PR c/19771
16424         * c-semantics.c (pop_stmt_list): Propagate
16425         STATEMENT_LIST_HAS_LABEL to parent statement list.
16427 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
16429         * config/mips/mips.h (mips_tune_attr): New macro.
16430         * config/mips/mips.md (cpu): Use it.
16432 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16434         PR c/38243
16435         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
16436         declaring a tag.
16438 2009-04-19  Diego Novillo  <dnovillo@google.com>
16440         * toplev.c (compile_file): Move call to coverage_finish ...
16441         * cgraphunit.c (ipa_passes): ... here.
16442         Call cgraph_process_new_functions.
16443         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
16444         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
16446 2009-04-19  Jan Hubicka  <jh@suse.cz>
16448         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
16449         cfun.
16450         (dump_cgraph_node): Dump can throw external flag.
16451         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
16453 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16455         PR c/32061
16456         PR c++/36954
16457         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
16458         * common.opt (Wlogical-op): Move from here...
16459         * c.opt (Wlogical-op): ... to here.
16460         * c-typeck.c (parser_build_binary_op): Update call to
16461         warn_logical_operator.
16462         * c-opts.c (c_common_post_options): Enable warn_logical_op with
16463         extra_warnings.
16464         * c-common.c (warn_logical_op): Update.
16465         * c-common.h (warn_logical_op): Update declaration.
16467 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16469         * tree.c (protected_set_expr_location): Fix formatting.
16471 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16473         PR c/27676
16474         * c-typeck.c (readonly_warning): new.
16475         (build_unary_op, build_modify_expr): Use readonly_warning for
16476         storing into something readonly but not const-qualified.
16478 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16480         PR c/22367
16481         * c-typeck.c (build_unary_op): Check for taking address of
16482         expression of type void.
16484 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16486         PR c/35210
16487         * c-typeck.c (build_function_call): Check for calling a function
16488         with qualified void return types.  Call require_complete_type when
16489         generating a trap.
16491 2009-04-18  Jan Hubicka  <jh@suse.cz>
16493         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
16494         Set nothrow flag.
16495         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
16496         can_throw_external flag.
16497         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
16498         * ipa-pure-const.c (ignore_edge): New function.
16499         (propagate): Compute order for NOTHROW computation; set NOTHROWs
16500         only over can_throw_external edges.
16501         (local_pure_const): Add nothrow flag.
16502         * ipa-utils.c (searchc): Add ignore_edge callback.
16503         (ipa_utils_reduced_inorder): Add ignore_edge callback.
16504         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
16505         (set_nothrow_function_flags): Update cgraph.
16506         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
16508 2009-04-18  Richard Guenther  <rguenther@suse.de>
16510         PR middle-end/39804
16511         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
16512         (fold_stmt): ... this and ...
16513         (fold_stmt_inplace): ... this.
16514         (fold_stmt_1): Fold references in calls and asms.
16515         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
16517 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16519         * tree-vrp.c (ssa_name_nonzero_p): Remove.
16520         * tree.h: Remove the prototype for ssa_name_nonzero_p.
16522 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16524         * tree.c (function_args_count): Remove.
16525         * tree.h: Remove the prototype for function_args_count.
16527 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16529         * tree-iterator.c (expr_only): Remove.
16530         * tree.h: Remove the prototype for expr_only.
16532 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16534         * reginfo.c (cannot_change_mode_set_regs): Remove.
16535         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
16537 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
16539         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
16540         whether operands 0 and 1 overlaps.
16542 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16544         PR middle-end/36902
16545         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
16546         pointer. Use warning_at instead of warning.
16547         (search_for_addr_array): Likewise.
16548         (check_array_bounds): Likewise.
16549         (check_all_array_refs): Check that the incoming edge is not in the
16550         list of edges to be removed.
16551         (check_all_array_refs): Avoid the temporal pointer.
16552         (vrp_visit_cond_stmt): Fix typo.
16553         (simplify_switch_using_ranges): Handle the case where the switch
16554         index is an integer constant.
16556 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
16558         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
16560 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16562         * doc/extend.texi, doc/invoke.texi: Fix typos.
16564 2009-04-17  Cary Coutant  <ccoutant@google.com>
16566         * tree-flow-inline.h (get_lineno): Fix inverted test.
16568 2009-04-17  Diego Novillo  <dnovillo@google.com>
16570         * tree-ssa-pre.c (create_expression_by_pieces): Remove
16571         assertion for AVAIL_OUT.
16573 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
16575         PR target/38627
16576         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
16577         * config/sh/linux-atomic.asm: Likewise.
16579 2009-04-17  Diego Novillo  <dnovillo@google.com>
16581         * except.c (debug_eh_tree): New.
16582         (struct eh_region, struct eh_status): Move ...
16583         * except.h: ... here.
16584         (add_type_for_runtime): Declare extern.
16585         (lookup_type_for_runtime): Likewise.
16586         (debug_eh_tree): Declare.
16587         * Makefile.in (GTFILES): List except.h before except.c
16589 2009-04-17  Diego Novillo  <dnovillo@google.com>
16591         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
16592         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16593         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
16594         (find_vars_r): ... here.
16595         * tree-flow.h (find_referenced_vars_in): Declare.
16596         * tree-ssa-pre.c (create_expression_by_pieces): Assert
16597         that AVAIL_OUT exists for BLOCK.
16598         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
16599         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
16600         (tree-parloops.o): Likewise.
16602 2009-04-17  Simon Baldwin  <simonb@google.com>
16604         * toplev.c (default_tree_printer): Add handling for %E format.
16606 2009-04-17  Diego Novillo  <dnovillo@google.com>
16608         * tree-pretty-print.c (dump_generic_node): Add break after
16609         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
16610         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
16611         FUNCTION_TYPE together.  Call print_struct_decl when printing
16612         structures and TDF_SLIM is not given.
16613         (print_struct_decl): Fix logic for detecting recursion.
16615 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
16617         PR 31567
16618         * gcc.c (create_at_file): New.
16619         (compile_input_file_p): New.
16620         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
16621         * main.c (main): Update call to toplev_main.
16622         * toplev.c (toplev_main): Change signature. Call expandargv.
16623         * toplev.h (toplev_main): Change signature.
16625 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16627         * dwarf2out.c (field_byte_offset): Use the type size as the field size
16628         if the latter is not constant.
16630 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
16632         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
16634 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16636         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
16637         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
16639 2009-04-17  Richard Guenther  <rguenther@suse.de>
16641         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16642         Handle component references view-converting an invariant address.
16644 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
16646         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
16647         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
16648         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
16649         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
16650         Use @deftypevr rather than @deftypevar.
16652 2009-04-17  Richard Guenther  <rguenther@suse.de>
16654         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
16655         (get_prop_source_stmt): Likewise.
16656         (can_propagate_from): Likewise.
16658 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
16660         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
16661         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
16662         (--with-multilib-list): Add default value.
16663         * configure: Regenerate.
16664         * Makefile.in (TM_ENDIAN_CONFIG): Define.
16665         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
16666         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
16667         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
16668         Don't add default cpu to multilib list unnecessarily, but do enable
16669         the relevant compiler option..
16670         Add support for --with-multilib-list=<blank> and
16671         --with-multilib-list=!<somelib> to supress unwanted multilibs.
16672         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
16673         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
16674         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
16675         TM_MULTILIB_CONFIG.
16676         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
16677         (MULTILIB_OSDIRNAMES): New variable.
16678         * config/sh/t-1e: Delete file.
16679         * config/sh/t-mlib-sh1: Delete file.
16680         * config/sh/t-mlib-sh2: Delete file.
16681         * config/sh/t-mlib-sh2a: Delete file.
16682         * config/sh/t-mlib-sh2a-nofpu: Delete file.
16683         * config/sh/t-mlib-sh2a-single: Delete file.
16684         * config/sh/t-mlib-sh2a-single-only: Delete file.
16685         * config/sh/t-mlib-sh2e: Delete file.
16686         * config/sh/t-mlib-sh3e: Delete file.
16687         * config/sh/t-mlib-sh4: Delete file.
16688         * config/sh/t-mlib-sh4-nofpu: Delete file.
16689         * config/sh/t-mlib-sh4-single: Delete file.
16690         * config/sh/t-mlib-sh4-single-only: Delete file.
16691         * config/sh/t-mlib-sh4a: Delete file.
16692         * config/sh/t-mlib-sh4a-nofpu: Delete file.
16693         * config/sh/t-mlib-sh4a-single: Delete file.
16694         * config/sh/t-mlib-sh4a-single-only: Delete file.
16695         * config/sh/t-mlib-sh4al: Delete file.
16696         * config/sh/t-mlib-sh5-32media: Delete file.
16697         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
16698         * config/sh/t-mlib-sh5-64media: Delete file.
16699         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
16700         * config/sh/t-mlib-sh5-compact: Delete file.
16701         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
16702         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
16703         * doc/install.texi (Options specification): Add
16704         --with-multilib-list and --with-endian.
16706 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
16708         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
16709         REVISION_c.
16710         (OBJS-common): Add plugin-version.o.
16711         (plugin-version.o): New.
16712         * gcc-plugin.h (plugin_gcc_version): New.
16713         (plugin_default_version_check): New.
16714         (plugin_init_func, plugin_init): Add version argument.
16715         * plugin-version.c: New.
16716         * plugin.c (str_plugin_gcc_version_name): New.
16717         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
16718         pass it to the init function.
16719         (plugin_default_version_check): New.
16721 2009-04-17  Richard Guenther  <rguenther@suse.de>
16723         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
16724         for decl-vs-decl disambiguation.
16726 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16728         * config/s390/s390.h (s390_tune_attr): New macro definition.
16729         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
16731 2009-04-17  Richard Guenther  <rguenther@suse.de>
16733         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
16734         (fold_stmt_r): Likewise.
16735         (maybe_fold_reference): New function.
16736         (fold_gimple_assign): Handle cases fold_stmt_r did.
16737         (fold_stmt): Do not use fold_stmt_r.
16738         (fold_stmt_inplace): Likewise.
16740 2009-04-17  Richard Guenther  <rguenther@suse.de>
16742         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
16743         (record_equivalences_from_stmt): Remove useless checks and
16744         simplifications.
16745         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
16746         the type is already suitable.
16748 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
16750         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
16752 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
16754         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
16755         (CMPtype): Define as __gcc_CMPtype.
16757 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
16759         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
16760         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
16762 2009-04-17  Richard Guenther  <rguenther@suse.de>
16764         PR tree-optimization/39746
16765         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
16766         special-casing for builtins and static variable use/def.
16767         (call_may_clobber_ref_p_1): Likewise.
16769 2009-04-16  Ian Lance Taylor  <iant@google.com>
16771         * df.h: Include "timevar.h".
16772         (struct df_problem): Change tv_id field to timevar_id_t.
16773         * tree-pass.h: Include "timevar.h".
16774         (struct opt_pass): Change tv_id field to timevar_id_t.
16775         * timevar.h (timevar_id_t): Define TV_NONE.
16776         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
16777         TV_NONE rather than tv_id != 0.
16778         (execute_one_pass): Likewise.
16779         * Makefile.in (DF_H): Add $(TIMEVAR_H).
16780         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
16781         dependencies to $(TREE_PASS_H).
16782         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
16783         to TV_NONE.
16784         (pass_branch_target_load_optimize2): Likewise.
16785         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
16786         (pass_outof_cfg_layout_mode): Likewise.
16787         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
16788         (pass_rebuild_cgraph_edges): Likewise.
16789         (pass_remove_cgraph_callee_edges): Likewise.
16790         * df-core.c (pass_df_initialize_opt): Likewise.
16791         (pass_df_initialize_no_opt): Likewise.
16792         (pass_df_finish): Likewise.
16793         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
16794         * except.c (pass_set_nothrow_function_flags): Likewise.
16795         (pass_convert_to_eh_region_ranges): Likewise.
16796         * final.c (pass_compute_alignments): Likewise.
16797         * function.c (pass_instantiate_virtual_regs): Likewise.
16798         (pass_init_function): Likewise.
16799         (pass_leaf_regs): Likewise.
16800         (pass_match_asm_constraints): Likewise.
16801         * gimple-low.c (pass_lower_cf): Likewise.
16802         (pass_mark_used_blocks): Likewise.
16803         * init-regs.c (pass_initialize_regs): Likewise.
16804         * integrate.c (pass_initial_value_sets): Likewise.
16805         * ira.c (pass_ira): Likewise.
16806         * jump.c (pass_cleanup_barriers): Likewise.
16807         * omp-low.c (pass_expand_omp): Likewise.
16808         (pass_lower_omp): Likewise.
16809         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
16810         * recog.c (pass_split_all_insns): Likewise.
16811         (pass_split_after_reload): Likewise.
16812         (pass_split_before_regstack): Likewise.
16813         (pass_split_before_sched2): Likewise.
16814         (pass_split_for_shorten_branches): Likewise.
16815         * reginfo.c (pass_reginfo_init): Likewise.
16816         (pass_subregs_of_mode_init): Likewise.
16817         (pass_subregs_of_mode_finish): Likewise.
16818         * passes.c (pass_postreload): Likewise.
16819         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
16820         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
16821         (pass_warn_function_return): Likewise.
16822         (pass_warn_function_noreturn): Likewise.
16823         * tree-complex.c (pass_lower_complex): Likewise.
16824         (pass_lower_complex_O0): Likewise.
16825         * tree-if-conv.c (pass_if_conversion): Likewise.
16826         * tree-into-ssa.c (pass_build_ssa): Likewise.
16827         * tree-mudflap.c (pass_mudflap_1): Likewise.
16828         (pass_mudflap_2): Likewise.
16829         * tree-nomudflap.c (pass_mudflap_1): Likewise.
16830         (pass_mudflap_2): Likewise.
16831         * tree-nrv.c (pass_return_slot): Likewise.
16832         * tree-object-size.c (pass_object_sizes): Likewise.
16833         * tree-optimize.c (pass_all_optimizations): Likewise.
16834         (pass_early_local_passes): Likewise.
16835         (pass_all_early_optimizations): Likewise.
16836         (pass_cleanup_cfg): Likewise.
16837         (pass_cleanup_cfg_post_optimizing): Likewise.
16838         (pass_free_datastructures): Likewise.
16839         (pass_free_cfg_annotations): Likewise.
16840         (pass_fixup_cfg): Likewise.
16841         (pass_init_datastructures): Likewise.
16842         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
16843         (pass_late_warn_uninitialized): Likewise.
16844         (pass_update_address_taken): Likewise.
16845         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
16846         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
16847         (pass_cse_sincos): Likewise.
16848         (pass_convert_to_rsqrt): Likewise.
16849         * tree-ssa-structalias.c (pass_build_alias): Likewise.
16850         * tree-stdarg.c (pass_stdarg): Likewise.
16851         * tree-tailcall.c (pass_tail_recursion): Likewise.
16852         (pass_tail_calls): Likewise.
16853         * tree-vect-generic.c (pass_lower_vector): Likewise.
16854         (pass_lower_vector_ssa): Likewise.
16855         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
16857 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
16859         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
16860         XLR entry.
16861         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
16862         Handle -march=xlr.
16863         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
16864         logical and signext.
16866 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
16868         PR target/39767
16869         * config/sh/predicates.md (arith_operand): Check if the operand
16870         of TRUNCATE is a REG.
16872 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16874         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
16875         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
16877 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16879         * tree-iterator.c (tsi_split_statement_list_after,
16880         tsi_split_statement_list_before): Remove.
16881         * tree-iterator.h: Remove the prototypes for
16882         tsi_split_statement_list_after and tsi_split_statement_list_before.
16884 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16886         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
16887         * tree-ssa-propagate.h: Remove the prototype for
16888         stmt_makes_single_load.
16890 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16892         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
16893         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
16895 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16897         * tree-iterator.c (EXPR_LAST_BODY): Remove.
16899 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16901         * except.c (eh_region_outer_p): Remove.
16902         * except.h: Remove the prototype for eh_region_outer_p.
16904 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
16906         * function.c (current_function_assembler_name): Remove.
16907         * function.h: Remove the prototype for
16908         current_function_assembler_name.
16910 2009-04-16  Ian Lance Taylor  <iant@google.com>
16912         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
16913         (add_reg_note): Call alloc_reg_note.
16914         * rtl.h (alloc_reg_note): Declare.
16915         * combine.c (try_combine): Use alloc_reg_note.
16916         (recog_for_combine, move_deaths): Likewise.
16917         (distribute_notes): Use alloc_reg_note and add_reg_note.
16918         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
16919         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
16920         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
16922 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
16924         PR rtl-optimization/39762
16925         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
16926         ira_may_move_out_cost): Add comments about way of their usage.
16927         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
16929         * ira-conflicts.c (process_regs_for_copy): Use function
16930         ira_get_register_move_cost instead of global
16931         ira_register_move_cost.
16933         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
16934         color_pass, move_spill_restore, update_curr_costs): Ditto.
16936         * ira-lives.c (process_single_reg_class_operands): Ditto.
16938         * ira-emit.c (emit_move_list): Ditto.
16940         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
16941         (record_reg_classes): Ditto.  Use functions
16942         ira_get_register_move_cost and ira_get_may_move_cost instead of
16943         global vars ira_register_move_cost, ira_may_move_out_cost and
16944         ira_may_move_in_cost.
16945         (record_address_regs): Don't call ira_init_register_move_cost.
16946         Use function ira_get_may_move_cost instead of global
16947         ira_may_move_in_cost.
16948         (process_bb_node_for_hard_reg_moves): Use function
16949         ira_get_register_move_cost instead of global ira_register_move_cost.
16950         (ira_costs): Don't call ira_init_register_move_cost.
16952 2009-04-16  Richard Guenther  <rguenther@suse.de>
16954         * tree-cfg.c (verify_gimple_assign_binary):
16955         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
16956         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
16957         (create_general_new_stmt): Note that this function is broken.
16959 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
16961         * common.opt (fhelp): Add Var(help_flag).
16962         * gcc-plugin.h (plugin_info): Add help.
16963         * plugin.c (plugin_name_args): Add help.
16964         (register_plugin_info): Set plugin->help.
16965         (print_help_one_plugin): New.
16966         (print_plugins_help): New.
16967         * plugin.h (print_plugins_help): New.
16968         * toplev.c (toplev_main): Call print_plugins_help if needed.
16970 2009-04-16  Richard Guenther  <rguenther@suse.de>
16972         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
16973         (gimple_ior_addresses_taken_1): New function.
16974         (gimple_ior_addresses_taken): Likewise.
16975         * gimple.h (struct gimple_statement_with_ops_base): Remove
16976         addresses_taken member.
16977         (gimple_ior_addresses_taken): Declare.
16978         (gimple_addresses_taken, gimple_addresses_taken_ptr,
16979         gimple_set_addresses_taken): Remove.
16980         * ipa-reference.c (mark_address): New function.
16981         (scan_stmt_for_static_refs): Use it for marking addresses taken.
16982         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
16983         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
16984         (gimple_add_to_addresses_taken): Remove.
16985         (get_tmr_operands): Call mark_address_taken.
16986         (get_asm_expr_operands): Likewise.
16987         (get_expr_operands): Likewise.
16988         (build_ssa_operands): Do not clear the addresses_taken bitmap.
16989         (free_stmt_operands): Do not free it.
16990         * tree-ssa.c (delete_tree_ssa): Likewise.
16991         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
16993 2009-04-16  Richard Guenther  <rguenther@suse.de>
16995         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
16996         (walk_stmt_load_store_ops): Likewise.
16997         * gimple.c (get_base_loadstore): New function.
16998         (walk_stmt_load_store_addr_ops): Likewise.
16999         (walk_stmt_load_store_ops): Likewise.
17000         * ipa-pure-const.c (check_op): Simplify.
17001         (check_load, check_store): New functions.
17002         (check_stmt): Use walk_stmt_load_store_ops.
17003         * ipa-reference.c (mark_load): Adjust signature.
17004         (mark_store): Likewise.
17005         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
17007 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
17009         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
17010         (plugin_info): New.
17011         * opts.c (common_handle_option): Don't call print_version.
17012         * plugin.c (plugin_name_args): Add version.
17013         (register_plugin_info): New.
17014         (register_callback): Handle PLUGIN_INFO.
17015         (try_init_one_plugin): New.
17016         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
17017         if failed to init.
17018         (finalize_one_plugin): New.
17019         (finalize_plugins): New.
17020         (print_one_plugin): New.
17021         (print_plugins_versions): New.
17022         * plugin.h (print_plugins_versions): New.
17023         (finalize_plugins): New.
17024         * toplev.c (compile_file): Don't call initialize_plugins.
17025         (print_version): Call print_plugins_versions.
17026         (toplev_main): Call initialize_plugins. Print version if needed.
17027         Call finalize_plugins.
17029 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
17031         * common.opt (fversion): New.
17032         * gcc.c (print_version): New.
17033         (process_command): Don't print the version. Just set print_version.
17034         (main): Print version. Call subprocesses if print_version and
17035         verbose_flag are set.
17036         * opts.c (common_handle_option): Handle OPT_fversion.
17038 2009-04-16  Richard Guenther  <rguenther@suse.de>
17039             Ira Rosen  <irar@il.ibm.com>
17041         PR tree-optimization/39698
17042         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
17043         type of the reduction variable.  Only generate the def if
17044         it is needed.
17046         * omp-low.c (expand_omp_for_generic): When converting to a pointer
17047         make sure to first convert to an integer of the same precision.
17048         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
17049         the type of the evolution correctly in computing the new
17050         induction variable base.
17052 2009-04-16  Richard Guenther  <rguenther@suse.de>
17054         PR middle-end/39625
17055         * tree-cfg.c (make_blocks): Split statements with to-be
17056         abnormal SSA names on the lhs.
17058 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
17060         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
17061         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
17062         * c-typeck.c (really_start_incremental_init): Likewise.
17063         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
17064         (TARGET_INITIALIZER): Remove it.
17065         * target.h (struct target): Remove vector_opaque_p.
17066         * tree.c (build_opaque_vector_type): New.
17067         * tree.h (TYPE_VECTOR_OPAQUE): New.
17068         (build_opaque_vector_type): Declare.
17069         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
17070         * config/rs6000/rs6000.c (build_opaque_vector_type,
17071         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
17072         (rs6000_init_builtins): Use build_opaque_vector_type for
17073         opaque_V4SI_type_node.
17075 2009-04-15  Catherine Moore  <clm@codesourcery.com>
17077         * debug.h (set_name):  Declare.
17078         * dwarf2out.c (dwarf2out_set_name): Declare.
17079         (dwarf2_debug_hooks): Add set_name.
17080         (find_AT_string): New.
17081         (add_AT_string): Call find_AT_string.
17082         (dwarf2out_set_name): New.
17083         * cp/decl.c (grokdeclarator): Call set_name.
17084         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
17085         * debug.c (do_nothing_debug_hooks):  Likewise.
17086         * dbxout.c (dbx_debug_hooks): Likewise.
17087         * sdbout.c (sdb_debug_hooks): Likewise.
17089 2009-04-15  Michael Eager  <eager@eagercon.com>
17091         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
17092         reg for single-precision FPU.
17093         * config/rs6000/rs6000.md (movsi_internal1): Only for
17094         !TARGET_SINGLE_FPU.
17095         (movsi_internal1_single): New. Add pattern to move SI values to/from
17096         single-precision FP regs.
17098 2009-04-15  Richard Guenther  <rguenther@suse.de>
17100         * omp-low.c (lower_rec_input_clauses): Build correct address
17101         expressions.
17102         (expand_omp_for_generic): Fix multiplication type.
17103         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
17104         (generate_memset_zero): Fix types.
17105         * tree-profile.c (prepare_instrumented_value): Correctly
17106         widen a pointer.
17108 2009-04-15  Ian Lance Taylor  <iant@google.com>
17110         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
17111         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
17112         for -Wall and for -Wc++-compat.
17113         (c_common_post_options): For C++, set warn_enum_compare if not
17114         already set.
17115         * c-tree.h (struct c_expr): Add field original_type.
17116         (build_external_ref): Update declaration.
17117         * c-parser.c (c_parser_braced_init): Set original_type.
17118         (c_parser_initelt): Likewise.
17119         (c_parser_expr_no_commas): Likewise.
17120         (c_parser_conditional_expression): Likewise.
17121         (c_parser_cast_expression): Likewise.
17122         (c_parser_unary_expression): Likewise.  Pull setting of
17123         original_code to top of function.
17124         (c_parser_sizeof_expression): Set original_type.
17125         (c_parser_alignof_expression): Likewise.
17126         (c_parser_postfix_expression): Likewise.  Pull setting of
17127         original_code to top of function.
17128         (c_parser_postfix_expression_after_paren_type): Set original_type.
17129         (c_parser_postfix_expression_after_primary): Likewise.
17130         (c_parser_expression): Likewise.
17131         * c-typeck.c (build_external_ref): Add type parameter.  Change all
17132         callers.
17133         (c_expr_sizeof_expr): Set original_type field.
17134         (parser_build_unary_op): Likewise.
17135         (parser_build_binary_op): Likewise.  Optionally warn about
17136         comparisons of enums of different types.
17137         (digest_init): Set original_type field.
17138         (really_start_incremental_init): Likewise.
17139         (push_init_level, pop_init_level): Likewise.
17140         * doc/invoke.texi (Warning Options): -Wenum-compare now
17141         supported in C.
17143 2009-04-15  Richard Guenther  <rguenther@suse.de>
17145         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
17146         out a necessary conversion.
17147         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
17148         names we didn't value number.
17149         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
17151 2009-04-15  Richard Guenther  <rguenther@suse.de>
17153         PR tree-optimization/39764
17154         * tree-ssa-ccp.c (get_value): Canonicalize value with
17155         canonicalize_float_value.
17157 2009-04-15  Jan Hubicka  <jh@suse.cz>
17159         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
17160         Wrong version of patch.
17162 2009-04-15  Jan Hubicka  <jh@suse.cz>
17164         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
17166 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
17168         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
17169         our distinct integral and vector types.
17171 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
17173         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
17174         * init.c (build_vtbl_address): Remove call to assemble_external.
17176 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
17178         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
17179         output for other floating point modes.
17181 2009-04-14  Diego Novillo  <dnovillo@google.com>
17183         * diagnostic.c (diagnostic_report_diagnostic): Do not
17184         warn about loaded plugins for DK_ERROR and DK_WARNING.
17185         * c-decl.c (declspecs_add_type): Move call to
17186         invoke_plugin_callbacks ...
17187         * c-parser.c (c_parser_declspecs): ... here.
17188         * plugin.c (dump_active_plugins): Tidy output.
17190 2009-04-14  Diego Novillo  <dnovillo@google.com>
17191             Le-Chun Wu  <lcwu@google.com>
17193         * configure.ac: Add --enable-plugin support.
17194         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
17195         * Makefile.in (PLUGIN_H): Define.
17196         Export ENABLE_PLUGIN and GMPINC to site.exp.
17197         Add PLUGINLIBS to link command.
17198         Add/modify dependencies for plugin.o and files including plugin.h.
17199         (plugin.o): New.
17200         * config.in: Regenerate.
17202         * opts.c (common_handle_option): Handle OPT_fplugin_ and
17203         OPT_fplugin_arg_.
17205 2009-04-14  Le-Chun Wu  <lcwu@google.com>
17207         * tree-pass.h (register_one_dump_file): Add a prototype for
17208         register_one_dump_file.
17209         * toplev.c (compile_file): Call initialize_plugins.
17210         (do_compile): Call invoke_plugin_callbacks.
17211         (toplev_main): Call invoke_plugin_callbacks.
17212         * common.opt: Add -fplugin= and -fplugin-arg-.
17213         * gcc-plugin.h: New public header file for plugins to include.
17214         * plugin.c: New source file.
17215         * plugin.h: New internal header file.
17216         * passes.c (register_one_dump_file): Make it external.
17218         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
17220 2009-04-14  Diego Novillo  <dnovillo@google.com>
17222         * doc/plugins.texi: New.
17223         * doc/gccint.texi: Add reference to Plugins chapter.
17224         * doc/invoke.texi: Document -fplugin and -fplugin-arg
17225         * diagnostic.c (diagnostic_report_diagnostic): Warn about
17226         loaded plugins, if any.
17227         * timevar.def (TV_PLUGIN_INIT): Define.
17228         (TV_PLUGIN_RUN): Define.
17229         * plugin.c: Include timevar.h
17230         (plugins_active_p): New.
17231         (dump_active_plugins): New.
17232         (debug_active_plugins): New.
17234 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
17236         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
17237         library paths.
17238         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
17240 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
17242         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
17243         the same as a minus without a shift.
17245 2009-04-14  Nick Clifton  <nickc@redhat.com>
17247         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
17248         comparisons with small integers will always produce a short
17249         branch.
17251 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
17253         Merge:
17254         2008-12-19  Diego Novillo  <dnovillo@google.com>
17256         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
17258 2009-04-14  Richard Guenther  <rguenther@suse.de>
17260         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
17261         verification.
17262         (verify_gimple_assign_binary): Likewise.  Handle shifts and
17263         rotates correctly.
17264         (verify_gimple_phi): Print the mismatched argument position.
17265         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
17266         Fix types.
17267         (vect_update_init_of_dr): Likewise.
17268         * matrix-reorg.c (transform_access_sites): Do what the
17269         comment suggests.
17270         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
17272 2009-04-13  Michael Eager  <eager@eagercon.com>
17274         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
17275         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
17276         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
17277         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
17278         remove duplicate config
17280 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
17282         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
17283         file_name:line_number type locator of the call site.
17285 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17287         * genautomata.c: Put blank after comma.
17288         (automaton_decls): New.
17289         (struct unit_usage): Add comments to member next.
17290         (store_alt_unit_usage): Keep the list ordered.
17291         (unit_present_on_list_p, equal_alternatives_p): New.
17292         (check_regexp_units_distribution): Check units distribution
17293         correctness correctly.
17294         (main): Don't write automata if error is found.  Return correct
17295         exit code.
17297         * config/m68k/cf.md (cfv4_ds): Remove.
17298         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
17299         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
17301         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
17302         power4-load-ext, power4-store, power4-store-update,
17303         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
17304         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
17305         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
17306         power4-sqrt, power4-isync): Modify reservation to make correct
17307         unit distribution to automata.
17309         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
17310         power5-store-update, power5-two, power5-three, power5-lmul,
17311         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
17313 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
17315         * except.c (pass_set_nothrow_function_flags): Set name and add
17316         TODO_dump_func.
17317         (set_nothrow_function_flags): Mention in the dump file when
17318         changing a function to nothrow.
17320 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
17322         PR/39066
17323         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
17324         instead of unsigned long.
17326 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17328         * config/arm/arm.c (return_used_this_function): Remove.
17329         (arm_output_function_prologue): Remove use of
17330         return_used_this_function.
17331         (output_return_instruction): Replace use of
17332         return_used_this_function
17333         by cfun->machine->return_used_this_function.
17334         (arm_output_epilogue): Likewise.
17335         (arm_output_function_epilogue): Likewise.
17336         (thumb_unexpanded_epilogue): Likewise.
17337         * config/arm/arm.h (struct machine_function):
17338         New member return_used_this_function.
17340 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
17342         * doc/install.texi: Correct description of default directory for
17343         --with-gxx-include-dir.
17345 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17347         * fold-const.c (build_range_check): Properly deal with enumeral and
17348         boolean base types.
17350 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
17352         * doc/invoke.texi (max_gcse_passes): Remove documentation.
17353         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
17354         * params.h (MAX_GCSE_PASSES): Remove.
17355         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
17356         in sequence.  Remove ability to run multiple passes.
17357         (bypass_jumps): Report run as third CPROP pass.
17359 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
17361         PR middle-end/39651
17362         * except.c (can_throw_external): Look at each insn in a SEQUENCE
17363         when deciding whether the whole SEQUENCE can throw.
17365 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
17367         PR target/39740
17368         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
17369         offseted label references.
17371 2009-04-11  Jan Hubicka  <jh@suse.cz>
17373         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
17375 2009-04-11  Richard Guenther  <rguenther@suse.de>
17377         PR middle-end/39732
17378         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
17379         return variables as TREE_ADDRESSABLE.
17381 2009-04-11  Richard Guenther  <rguenther@suse.de>
17383         PR tree-optimization/39713
17384         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
17385         reference trees have SSA_NAME operands.
17387 2009-04-11  Richard Guenther  <rguenther@suse.de>
17389         PR c/39712
17390         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
17391         address expressions.
17393 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17395         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
17396         match changes in Cygwin 1.7
17397         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
17398         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
17400 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
17402         PR tree-optimization/39701
17403         * doc/invoke.texi (Optimization Options): Document change in
17404         meaning and initialization of -fdelete-null-pointer-checks.
17406 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17408         PR middle-end/39701
17409         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
17411         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
17412         here.
17414         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
17416 2009-04-10  Chao-ying Fu  <fu@mips.com>
17418         * doc/tm.texi (Instruction Output): Document
17419         TARGET_ASM_FINAL_POSTSCAN_INSN.
17420         * target.h (final_postscan_insn): New field in asm_out.
17421         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17422         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
17423         * final.c (final_scan_insn): Call
17424         targetm.asm_out.final_postscan_insn after outputting
17425         an asm macro and a normal instruction.
17427         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
17428         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
17429         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
17430         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
17431         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17433 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
17435         PR middle-end/39701
17436         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
17437         variables as non-NULL even with -fdelete-null-pointer-checks.
17439 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17441         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
17443 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
17445         PR target/39678
17446         * config/i386/i386.c (classify_argument): Handle SCmode with
17447         (bit_offset % 64) != 0.
17449 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
17451         * doc/invoke.texi (Optimize Options): Add cross-reference to
17452         -Q --help=optimizers examples.
17454 2009-04-10  Ben Elliston  <bje@au.ibm.com>
17456         PR target/36800
17457         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
17458         regalign for the reg == fpr and TDmode case.
17460 2009-04-09  David Ayers  <ayers@fsfe.org>
17462         PR objc/29200
17463         * objc/objc-act.c (warn_with_method): Remove helper function.
17464         (check_duplicates): Call warning and inform directly.
17465         (really_start_method): Likewise.
17467 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
17469         * expmed.c (expand_divmod): Always use a comparison for a division
17470         by a large unsigned integer.
17472         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
17473         for things others than variables or functions as nonzero.
17475 2009-04-09  Nick Clifton  <nickc@redhat.com>
17477         * unwind-compat.c: Change copyright header to refer to version
17478         3 of the GNU General Public License with version 3.1 of the
17479         GCC Runtime Library Exception and to point readers at the
17480         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
17481         * config/alpha/crtfastmath.c: Likewise.
17482         * config/alpha/linux-unwind.h: Likewise.
17483         * config/alpha/qrnnd.asm: Likewise.
17484         * config/alpha/vms-crt0-64.c: Likewise.
17485         * config/alpha/vms-crt0.c: Likewise.
17486         * config/alpha/vms-dwarf2.asm: Likewise.
17487         * config/alpha/vms-dwarf2eh.asm: Likewise.
17488         * config/alpha/vms-psxcrt0-64.c: Likewise.
17489         * config/alpha/vms-psxcrt0.c: Likewise.
17490         * config/alpha/vms_tramp.asm: Likewise.
17491         * config/arc/initfini.c: Likewise.
17492         * config/arc/lib1funcs.asm: Likewise.
17493         * config/arm/bpabi-v6m.S: Likewise.
17494         * config/arm/bpabi.S: Likewise.
17495         * config/arm/bpabi.c: Likewise.
17496         * config/arm/crti.asm: Likewise.
17497         * config/arm/crtn.asm: Likewise.
17498         * config/arm/ieee754-df.S: Likewise.
17499         * config/arm/ieee754-sf.S: Likewise.
17500         * config/arm/lib1funcs.asm: Likewise.
17501         * config/arm/libunwind.S: Likewise.
17502         * config/arm/linux-atomic.c: Likewise.
17503         * config/arm/mmintrin.h: Likewise.
17504         * config/arm/pr-support.c: Likewise.
17505         * config/arm/unaligned-funcs.c: Likewise.
17506         * config/arm/unwind-arm.c: Likewise.
17507         * config/arm/unwind-arm.h: Likewise.
17508         * config/avr/libgcc.S: Likewise.
17509         * config/bfin/crti.s: Likewise.
17510         * config/bfin/crtlibid.s: Likewise.
17511         * config/bfin/crtn.s: Likewise.
17512         * config/bfin/lib1funcs.asm: Likewise.
17513         * config/bfin/linux-unwind.h: Likewise.
17514         * config/cris/arit.c: Likewise.
17515         * config/cris/cris_abi_symbol.c: Likewise.
17516         * config/darwin-64.c: Likewise.
17517         * config/darwin-crt2.c: Likewise.
17518         * config/darwin-crt3.c: Likewise.
17519         * config/darwin.h: Likewise.
17520         * config/dbxelf.h: Likewise.
17521         * config/dfp-bit.c: Likewise.
17522         * config/dfp-bit.h: Likewise.
17523         * config/elfos.h: Likewise.
17524         * config/fixed-bit.c: Likewise.
17525         * config/fixed-bit.h: Likewise.
17526         * config/fp-bit.c: Likewise.
17527         * config/fp-bit.h: Likewise.
17528         * config/fr30/crti.asm: Likewise.
17529         * config/fr30/crtn.asm: Likewise.
17530         * config/fr30/lib1funcs.asm: Likewise.
17531         * config/freebsd-spec.h: Likewise.
17532         * config/frv/cmovd.c: Likewise.
17533         * config/frv/cmovh.c: Likewise.
17534         * config/frv/cmovw.c: Likewise.
17535         * config/frv/frvbegin.c: Likewise.
17536         * config/frv/frvend.c: Likewise.
17537         * config/frv/lib1funcs.asm: Likewise.
17538         * config/glibc-stdint.h: Likewise.
17539         * config/h8300/clzhi2.c: Likewise.
17540         * config/h8300/crti.asm: Likewise.
17541         * config/h8300/crtn.asm: Likewise.
17542         * config/h8300/ctzhi2.c: Likewise.
17543         * config/h8300/fixunssfsi.c: Likewise.
17544         * config/h8300/lib1funcs.asm: Likewise.
17545         * config/h8300/parityhi2.c: Likewise.
17546         * config/h8300/popcounthi2.c: Likewise.
17547         * config/i386/ammintrin.h: Likewise.
17548         * config/i386/att.h: Likewise.
17549         * config/i386/avxintrin.h: Likewise.
17550         * config/i386/biarch64.h: Likewise.
17551         * config/i386/bmmintrin.h: Likewise.
17552         * config/i386/cpuid.h: Likewise.
17553         * config/i386/cross-stdarg.h: Likewise.
17554         * config/i386/crtfastmath.c: Likewise.
17555         * config/i386/crtprec.c: Likewise.
17556         * config/i386/cygming-crtbegin.c: Likewise.
17557         * config/i386/cygming-crtend.c: Likewise.
17558         * config/i386/cygwin.asm: Likewise.
17559         * config/i386/emmintrin.h: Likewise.
17560         * config/i386/gmm_malloc.h: Likewise.
17561         * config/i386/gthr-win32.c: Likewise.
17562         * config/i386/i386.h: Likewise.
17563         * config/i386/immintrin.h: Likewise.
17564         * config/i386/linux-unwind.h: Likewise.
17565         * config/i386/linux64.h: Likewise.
17566         * config/i386/mm3dnow.h: Likewise.
17567         * config/i386/mmintrin-common.h: Likewise.
17568         * config/i386/mmintrin.h: Likewise.
17569         * config/i386/nmmintrin.h: Likewise.
17570         * config/i386/pmm_malloc.h: Likewise.
17571         * config/i386/pmmintrin.h: Likewise.
17572         * config/i386/smmintrin.h: Likewise.
17573         * config/i386/sol2-c1.asm: Likewise.
17574         * config/i386/sol2-ci.asm: Likewise.
17575         * config/i386/sol2-cn.asm: Likewise.
17576         * config/i386/sol2-gc1.asm: Likewise.
17577         * config/i386/tmmintrin.h: Likewise.
17578         * config/i386/unix.h: Likewise.
17579         * config/i386/w32-unwind.h: Likewise.
17580         * config/i386/wmmintrin.h: Likewise.
17581         * config/i386/x86-64.h: Likewise.
17582         * config/i386/x86intrin.h: Likewise.
17583         * config/i386/xmmintrin.h: Likewise.
17584         * config/ia64/crtbegin.asm: Likewise.
17585         * config/ia64/crtend.asm: Likewise.
17586         * config/ia64/crtfastmath.c: Likewise.
17587         * config/ia64/crti.asm: Likewise.
17588         * config/ia64/crtn.asm: Likewise.
17589         * config/ia64/fde-glibc.c: Likewise.
17590         * config/ia64/lib1funcs.asm: Likewise.
17591         * config/ia64/linux-unwind.h: Likewise.
17592         * config/ia64/quadlib.c: Likewise.
17593         * config/ia64/unwind-ia64.c: Likewise.
17594         * config/linux.h: Likewise.
17595         * config/m32c/m32c-lib1.S: Likewise.
17596         * config/m32c/m32c-lib2-trapv.c: Likewise.
17597         * config/m32c/m32c-lib2.c: Likewise.
17598         * config/m32r/initfini.c: Likewise.
17599         * config/m68hc11/larith.asm: Likewise.
17600         * config/m68hc11/m68hc11-crt0.S: Likewise.
17601         * config/m68k/cf.md: Likewise.
17602         * config/m68k/crti.s: Likewise.
17603         * config/m68k/crtn.s: Likewise.
17604         * config/m68k/lb1sf68.asm: Likewise.
17605         * config/m68k/linux-unwind.h: Likewise.
17606         * config/mcore/crti.asm: Likewise.
17607         * config/mcore/crtn.asm: Likewise.
17608         * config/mcore/lib1.asm: Likewise.
17609         * config/mips/linux-unwind.h: Likewise.
17610         * config/mips/loongson.h: Likewise.
17611         * config/mips/mips16.S: Likewise.
17612         * config/mmix/crti.asm: Likewise.
17613         * config/mmix/crtn.asm: Likewise.
17614         * config/pa/fptr.c: Likewise.
17615         * config/pa/hpux-unwind.h: Likewise.
17616         * config/pa/lib2funcs.asm: Likewise.
17617         * config/pa/linux-atomic.c: Likewise.
17618         * config/pa/linux-unwind.h: Likewise.
17619         * config/pa/milli64.S: Likewise.
17620         * config/pa/quadlib.c: Likewise.
17621         * config/pa/stublib.c: Likewise.
17622         * config/picochip/libgccExtras/adddi3.asm: Likewise.
17623         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
17624         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
17625         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
17626         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
17627         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
17628         * config/picochip/libgccExtras/divmod15.asm: Likewise.
17629         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
17630         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
17631         * config/picochip/libgccExtras/longjmp.asm: Likewise.
17632         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
17633         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
17634         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
17635         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
17636         * config/picochip/libgccExtras/setjmp.asm: Likewise.
17637         * config/picochip/libgccExtras/subdi3.asm: Likewise.
17638         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
17639         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
17640         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
17641         * config/rs6000/750cl.h: Likewise.
17642         * config/rs6000/altivec.h: Likewise.
17643         * config/rs6000/biarch64.h: Likewise.
17644         * config/rs6000/crtresfpr.asm: Likewise.
17645         * config/rs6000/crtresgpr.asm: Likewise.
17646         * config/rs6000/crtresxfpr.asm: Likewise.
17647         * config/rs6000/crtresxgpr.asm: Likewise.
17648         * config/rs6000/crtsavfpr.asm: Likewise.
17649         * config/rs6000/crtsavgpr.asm: Likewise.
17650         * config/rs6000/darwin-asm.h: Likewise.
17651         * config/rs6000/darwin-fallback.c: Likewise.
17652         * config/rs6000/darwin-fpsave.asm: Likewise.
17653         * config/rs6000/darwin-ldouble.c: Likewise.
17654         * config/rs6000/darwin-tramp.asm: Likewise.
17655         * config/rs6000/darwin-unwind.h: Likewise.
17656         * config/rs6000/darwin-vecsave.asm: Likewise.
17657         * config/rs6000/darwin-world.asm: Likewise.
17658         * config/rs6000/e500crtres32gpr.asm: Likewise.
17659         * config/rs6000/e500crtres64gpr.asm: Likewise.
17660         * config/rs6000/e500crtres64gprctr.asm: Likewise.
17661         * config/rs6000/e500crtrest32gpr.asm: Likewise.
17662         * config/rs6000/e500crtrest64gpr.asm: Likewise.
17663         * config/rs6000/e500crtresx32gpr.asm: Likewise.
17664         * config/rs6000/e500crtresx64gpr.asm: Likewise.
17665         * config/rs6000/e500crtsav32gpr.asm: Likewise.
17666         * config/rs6000/e500crtsav64gpr.asm: Likewise.
17667         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17668         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
17669         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
17670         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
17671         * config/rs6000/eabi-ci.asm: Likewise.
17672         * config/rs6000/eabi-cn.asm: Likewise.
17673         * config/rs6000/eabi.asm: Likewise.
17674         * config/rs6000/linux-unwind.h: Likewise.
17675         * config/rs6000/linux64.h: Likewise.
17676         * config/rs6000/paired.h: Likewise.
17677         * config/rs6000/paired.md: Likewise.
17678         * config/rs6000/ppc64-fp.c: Likewise.
17679         * config/rs6000/ppu_intrinsics.h: Likewise.
17680         * config/rs6000/rs6000.h: Likewise.
17681         * config/rs6000/si2vmx.h: Likewise.
17682         * config/rs6000/sol-ci.asm: Likewise.
17683         * config/rs6000/sol-cn.asm: Likewise.
17684         * config/rs6000/spe.h: Likewise.
17685         * config/rs6000/spu2vmx.h: Likewise.
17686         * config/rs6000/sysv4.h: Likewise.
17687         * config/rs6000/tramp.asm: Likewise.
17688         * config/rs6000/vec_types.h: Likewise.
17689         * config/s390/linux-unwind.h: Likewise.
17690         * config/s390/tpf-unwind.h: Likewise.
17691         * config/score/crti.asm: Likewise.
17692         * config/score/crtn.asm: Likewise.
17693         * config/sh/crt1.asm: Likewise.
17694         * config/sh/crti.asm: Likewise.
17695         * config/sh/crtn.asm: Likewise.
17696         * config/sh/divtab-sh4-300.c: Likewise.
17697         * config/sh/divtab-sh4.c: Likewise.
17698         * config/sh/divtab.c: Likewise.
17699         * config/sh/lib1funcs-4-300.asm: Likewise.
17700         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
17701         * config/sh/lib1funcs.asm: Likewise.
17702         * config/sh/lib1funcs.h: Likewise.
17703         * config/sh/linux-atomic.asm: Likewise.
17704         * config/sh/linux-unwind.h: Likewise.
17705         * config/sh/shmedia.h: Likewise.
17706         * config/sh/sshmedia.h: Likewise.
17707         * config/sh/ushmedia.h: Likewise.
17708         * config/sparc/crtfastmath.c: Likewise.
17709         * config/sparc/linux-unwind.h: Likewise.
17710         * config/sparc/sol2-c1.asm: Likewise.
17711         * config/sparc/sol2-ci.asm: Likewise.
17712         * config/sparc/sol2-cn.asm: Likewise.
17713         * config/spu/divmodti4.c: Likewise.
17714         * config/spu/divv2df3.c: Likewise.
17715         * config/spu/float_disf.c: Likewise.
17716         * config/spu/float_unsdidf.c: Likewise.
17717         * config/spu/float_unsdisf.c: Likewise.
17718         * config/spu/float_unssidf.c: Likewise.
17719         * config/spu/mfc_multi_tag_release.c: Likewise.
17720         * config/spu/mfc_multi_tag_reserve.c: Likewise.
17721         * config/spu/mfc_tag_release.c: Likewise.
17722         * config/spu/mfc_tag_reserve.c: Likewise.
17723         * config/spu/mfc_tag_table.c: Likewise.
17724         * config/spu/multi3.c: Likewise.
17725         * config/spu/spu_internals.h: Likewise.
17726         * config/spu/spu_intrinsics.h: Likewise.
17727         * config/spu/spu_mfcio.h: Likewise.
17728         * config/spu/vec_types.h: Likewise.
17729         * config/spu/vmx2spu.h: Likewise.
17730         * config/stormy16/stormy16-lib2.c: Likewise.
17731         * config/svr4.h: Likewise.
17732         * config/sync.c: Likewise.
17733         * config/v850/lib1funcs.asm: Likewise.
17734         * config/vxlib-tls.c: Likewise.
17735         * config/vxlib.c: Likewise.
17736         * config/vxworks-dummy.h: Likewise.
17737         * config/xtensa/crti.asm: Likewise.
17738         * config/xtensa/crtn.asm: Likewise.
17739         * config/xtensa/ieee754-df.S: Likewise.
17740         * config/xtensa/ieee754-sf.S: Likewise.
17741         * config/xtensa/lib1funcs.asm: Likewise.
17742         * config/xtensa/lib2funcs.S: Likewise.
17743         * config/xtensa/linux-unwind.h: Likewise.
17744         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17745         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
17746         * coretypes.h: Likewise.
17747         * crtstuff.c: Likewise.
17748         * defaults.h: Likewise.
17749         * dwarf2.h: Likewise.
17750         * emutls.c: Likewise.
17751         * gbl-ctors.h: Likewise.
17752         * gcov-io.h: Likewise.
17753         * ginclude/float.h: Likewise.
17754         * ginclude/iso646.h: Likewise.
17755         * ginclude/stdarg.h: Likewise.
17756         * ginclude/stdbool.h: Likewise.
17757         * ginclude/stddef.h: Likewise.
17758         * ginclude/stdfix.h: Likewise.
17759         * ginclude/stdint-gcc.h: Likewise.
17760         * ginclude/tgmath.h: Likewise.
17761         * gthr-aix.h: Likewise.
17762         * gthr-dce.h: Likewise.
17763         * gthr-gnat.c: Likewise.
17764         * gthr-gnat.h: Likewise.
17765         * gthr-lynx.h: Likewise.
17766         * gthr-mipssde.h: Likewise.
17767         * gthr-nks.h: Likewise.
17768         * gthr-posix.c: Likewise.
17769         * gthr-posix.h: Likewise.
17770         * gthr-posix95.h: Likewise.
17771         * gthr-rtems.h: Likewise.
17772         * gthr-single.h: Likewise.
17773         * gthr-solaris.h: Likewise.
17774         * gthr-tpf.h: Likewise.
17775         * gthr-vxworks.h: Likewise.
17776         * gthr-win32.h: Likewise.
17777         * gthr.h: Likewise.
17778         * libgcc2.c: Likewise.
17779         * libgcc2.h: Likewise.
17780         * libgcov.c: Likewise.
17781         * tsystem.h: Likewise.
17782         * typeclass.h: Likewise.
17783         * unwind-c.c: Likewise.
17784         * unwind-compat.h: Likewise.
17785         * unwind-dw2-fde-compat.c: Likewise.
17786         * unwind-dw2-fde-darwin.c: Likewise.
17787         * unwind-dw2-fde-glibc.c: Likewise.
17788         * unwind-dw2-fde.c: Likewise.
17789         * unwind-dw2-fde.h: Likewise.
17790         * unwind-dw2.c: Likewise.
17791         * unwind-dw2.h: Likewise.
17792         * unwind-generic.h: Likewise.
17793         * unwind-pe.h: Likewise.
17794         * unwind-sjlj.c: Likewise.
17795         * unwind.inc: Likewise.
17796         * config/arm/neon-gen.ml: Change generated copyright header to
17797         refer to version 3 of the GNU General Public License with
17798         version 3.1 of the GCC Runtime Library Exception and to point
17799         readers at the COPYING3 and COPYING3.RUNTIME files and the
17800         FSF's license web page.
17801         * config/arm/arm_neon.h: Regenerate.
17803 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
17805         * config/cris/cris.md: Change copyright header to refer to version
17806         3 of the GNU General Public License.
17807         * doc/install.texi2html: Change copyright header to refer to version
17808         3 of the GNU General Public License and to point readers at the
17809         COPYING3 file and the FSF's license web page.
17810         * config/vax/linux.h: Likewise.
17812 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
17814         * config/i386/i386.md (cmpcc): New.
17815         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
17816         (sync_compare_and_swap_cc*): Delete.
17818         * config/s390/s390.c (s390_compare_emitted): Remove.
17819         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
17820         s390_compare_emitted used to be handled.  Assert that modes match.
17821         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
17822         refer to sync_compare_and_swap_ccsi.
17823         * config/s390/s390.h (s390_compare_emitted): Remove.
17824         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
17825         instead of s390_compare_emitted.
17826         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
17827         instead of s390_compare_emitted.
17828         * config/s390/s390.md (cmpcc): New.
17829         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
17830         CC_REGNUM, do not pretend it's set.
17831         (sync_compare_and_swap_cc*): Delete.
17832         * config/s390/predicates.md (cc_reg_operand): New.
17834         * expr.c (sync_compare_and_swap_cc): Delete.
17835         * optabs.h (sync_compare_and_swap_cc): Delete.
17836         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
17837         is being used with can_compare_p.
17838         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
17839         (find_cc_set): New.
17840         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
17841         look for a MODE_CC set instead.  Use emit_store_flag.
17842         (expand_compare_and_swap_loop): Likewise, with some additional
17843         complication to avoid a force_reg when useless.  Use
17844         emit_cmp_and_jump_insns.
17845         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
17846         * doc/md.texi (sync_compare_and_swap_cc): Merge with
17847         sync_compare_and_swap documentation.
17849 2009-04-09  Jan Hubicka  <jh@suse.cz>
17851         * except.c (find_prev_try): Break out from ....
17852         (duplicate_eh_regions): ... here; properly update prev_try pointers
17853         when duplication part of tree.
17854         (dump_eh_tree): Improve dumping.
17855         (verify_eh_region): New.
17856         (verify_eh_tree): Use it.
17858 2009-04-06  Richard Guenther  <rguenther@suse.de>
17860         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
17861         &ARRAY addresses by adjusting their types and prepending
17862         a conversion.
17863         * tree-cfg.c (verify_gimple_assign_single): Verify that
17864         addresses are correct.
17866 2009-04-09  Richard Guenther  <rguenther@suse.de>
17868         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
17869         indices into an array reference if possible.
17870         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
17871         Fold POINTER_PLUS_EXPR statements with invariant address.
17873 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
17875         PR target/39634
17876         * config.gcc (powerpc64-*-linux*): Always build biarch.
17878 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
17880         PR c/39613
17881         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
17882         it and pedwarn if this results in an INTEGER_CST.
17884 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17886         * doc/install.texi: Update minimum GMP version.  Remove obsolete
17887         text in MPFR section.
17889 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
17891         * dwarf2out.c (class_scope_p): New static inline.
17892         (class_or_namespace_scope_p): Use it.
17893         (gen_variable_die): Use DW_TAG_member tag for static data member
17894         declarations instead of DW_TAG_variable.
17896         PR middle-end/39573
17897         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
17898         variables.
17900 2009-04-08  Richard Guenther  <rguenther@suse.de>
17902         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
17903         valueize random data.
17905 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
17907         * config.gcc (aix tm_file):  Add aix-stdint.h.
17908         (aix tm clause use_gcc_stdint):  Set to wrap.
17909         * config/rs6000/aix-stdint.h:  New file.
17911 2009-04-08  Richard Guenther  <rguenther@suse.de>
17913         PR middle-end/36291
17914         * tree-dfa.c (add_referenced_var): Do not recurse into
17915         global initializers.
17916         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
17917         exposed variables.
17918         (fold_const_aggregate_ref): Likewise.
17920 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
17922         * recog.c (ordered_comparison_operator): New.
17923         * gensupport.c (std_preds): Add it.
17924         * doc/md.texi (Machine-Independent Predicates): Document it.
17926 2009-04-08  Jan Hubicka  <jh@suse.cz>
17928         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
17929         * function.h (rtl_eh): Remove exception_handler_label_map.
17930         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
17931         remove_exception_handler_label, for_each_eh_label_1): Remove.
17932         (rtl_remove_unreachable_regions): Remove.
17933         (convert_from_eh_region_ranges): Do not remove unreachable regions.
17934         (find_exception_handler_labels): Don't build the hashtable.
17935         (maybe_remove_eh_handler): Remove.
17936         (for_each_eh_label): Rewrite to walk the tree.
17937         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
17938         * except.h (maybe_remove_eh_handler): Remove.
17939         * passes.c (init_optimization_passes): Schedule second EH cleanup
17940         before out-of-ssa.
17941         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
17942         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
17944 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
17946         * genoutput.c (validate_optab_operands): New.
17947         (gen_insn, gen_expand): Call it.
17949         * genflags.c (gen_insn): Detect misused iterators.
17950         (main): Pass line_no to gen_insn, exit with status 1 on error.
17952         * genextract.c (line_no): Make global.
17953         (VEC_safe_set_locstr): Change assertion to error message.
17954         (main): Exit with status 1 on error.
17956 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
17958         PR c/39614
17959         PR c/39673
17960         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
17961         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
17962         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
17963         * c-convert.c (convert): Do not call fold on results of conversion
17964         functions when the result is a C_MAYBE_CONST_EXPR.
17965         * c-parser.c (c_parser_postfix_expression): Do not fold condition
17966         of __builtin_choose_expr.
17967         * c-typeck.c (remove_c_maybe_const_expr): New.
17968         (build_unary_op, build_conditional_expr, build_compound_expr,
17969         build_binary_op, c_objc_common_truthvalue_conversion): Call
17970         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
17971         integer operands.
17973 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
17975         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
17976         CODE to produce a new one. Add a prototype to use fold_convert_const
17978 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
17980         PR bootstrap/39660
17981         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
17982         mix declarations and code.
17984 2009-04-08  Ben Elliston  <bje@au.ibm.com>
17986         * gcc.c: Replace `CC' with `GCC' throughout.
17988 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
17990         * doc/invoke.texi: Document Atom support.
17992 2009-04-07  Jason Merrill  <jason@redhat.com>
17994         PR c++/25185
17995         * c-common.h, c-common.c: Add flag_pretty_templates.
17996         * c-opts.c (c_common_handle_option): Set it.
17997         * c.opt: Add -fno-pretty-templates.
17998         * doc/invoke.texi (C++ Dialect Options): Likewise.
18000 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
18002         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
18003         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
18004         (ia64_expand_builtin): Likewise.
18006 2009-04-07  Martin Jambor  <mjambor@suse.cz>
18008         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
18009         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
18010         ADDR_EXPRS are include too.
18012 2009-04-07  Richard Guenther  <rguenther@suse.de>
18014         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
18015         decls are only used if passes as parameters or if they are
18016         local statics and the call is not to a builtin.
18017         (call_may_clobber_ref_p_1): Likewise.
18019 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18021         * expr.c (do_store_flag): Remove last argument.  Simplify code
18022         to avoid duplication of tests already done by can_compare_p.
18023         (expand_expr_real_1): Adjust caller.
18025 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18027         * optabs.c (can_compare_p): Test the predicate of a
18028         cbranch and cstore pattern.
18030 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18032         * expr.c (convert_move): Use emit_store_flag instead of
18033         "emulating" it.
18035 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18037         * config/i386/i386.c (ix86_compare_emitted): Remove.
18038         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
18039         ix86_compare_op0 like ix86_compare_emitted used to be handled.
18040         * config/i386/i386.h (ix86_compare_emitted): Remove.
18041         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
18042         instead of ix86_compare_emitted.
18043         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
18045 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
18047         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
18048         Add t-sysroot-suffix to tmake_file.
18049         * config/print-sysroot-suffix.sh: New file.
18050         * config/t-sysroot-suffix: New file.
18052 2009-04-07  Ben Elliston  <bje@au.ibm.com>
18054         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
18055         as the latter produces a warning when the target does not support
18056         infinity.
18058 2009-04-07  Ben Elliston  <bje@au.ibm.com>
18060         * dfp.c: Replace type punning assignments with memcpy throughout.
18061         * Makefile.in (dfp.o-warn): Remove.
18063 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
18065         PR target/39634
18066         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
18067         Include soft-fp/t-softfp after rs6000/t-linux64.
18069 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18071         * stor-layout.c (set_sizetype): Use the full precision of their
18072         machine mode for bitsize types.
18074 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18076         * config/i386/i386.md: Revert 2 accidental checkins.
18078 2009-04-06  Joey Ye  <joey.ye@intel.com>
18079             Xuepeng Guo  <xuepeng.guo@intel.com>
18080             H.J. Lu  <hongjiu.lu@intel.com>
18082         Atom pipeline model, tuning and insn selection.
18083         * config.gcc (atom): Add atom config options and target.
18085         * config/i386/atom.md: New.
18087         * config/i386/i386.c (atom_cost): New cost.
18088         (m_ATOM): New macro flag.
18089         (initial_ix86_tune_features): Set m_ATOM.
18090         (x86_accumulate_outgoing_args): Likewise.
18091         (x86_arch_always_fancy_math_387): Likewise.
18092         (processor_target): Add Atom cost.
18093         (cpu_names): Add Atom cpu name.
18094         (override_options): Set Atom ISA.
18095         (ix86_issue_rate): New case PROCESSOR_ATOM.
18096         (ix86_adjust_cost): Likewise.
18098         * config/i386/i386.h (TARGET_ATOM): New target macro.
18099         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
18100         (TARGET_OPT_AGU): New target option.
18101         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
18102         (processor_type): Add PROCESSOR_ATOM.
18104         * config/i386/i386.md (cpu): Add new value "atom".
18105         (use_carry, movu): New attr.
18106         (atom.md): Include atom.md.
18107         (adddi3_carry_rex64): Set attr "use_carry".
18108         (addqi3_carry): Likewise.
18109         (addhi3_carry): Likewise.
18110         (addsi3_carry): Likewise.
18111         (*addsi3_carry_zext): Likewise.
18112         (subdi3_carry_rex64): Likewise.
18113         (subqi3_carry): Likewise.
18114         (subhi3_carry): Likewise.
18115         (subsi3_carry): Likewise.
18116         (x86_movdicc_0_m1_rex64): Likewise.
18117         (*x86_movdicc_0_m1_se): Likewise.
18118         (x86_movsicc_0_m1): Likewise.
18119         (*x86_movsicc_0_m1_se): Likewise.
18120         (*adddi_1_rex64): Emit add insn as much as possible.
18121         (*addsi_1): Likewise.
18122         (return_internal): Set atom_unit.
18123         (return_internal_long): Likewise.
18124         (return_pop_internal): Likewise.
18125         (*rcpsf2_sse): Set atom_sse_attr attr.
18126         (*qrt<mode>2_sse): Likewise.
18127         (*prefetch_sse): Likewise.
18129         * config/i386/i386-c.c (ix86_target_macros_internal): New case
18130         PROCESSOR_ATOM.
18131         (ix86_target_macros_internal): Likewise.
18133         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
18134         (*prefetch_sse_rex): Likewise.
18135         (sse_rcpv4sf2): Likewise.
18136         (sse_vmrcpv4sf2): Likewise.
18137         (sse_sqrtv4sf2): Likewise.
18138         (<sse>_vmsqrt<mode>2): Likewise.
18139         (sse_ldmxcsr): Likewise.
18140         (sse_stmxcsr): Likewise.
18141         (*sse_sfence): Likewise.
18142         (sse2_clflush): Likewise.
18143         (*sse2_mfence): Likewise.
18144         (*sse2_lfence): Likewise.
18145         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
18146         (<sse>_movup<ssemodesuffixf2c>): Likewise.
18147         (avx_movdqu<avxmodesuffix>): Likewise.
18148         (avx_lddqu<avxmodesuffix>): Likewise.
18149         (sse2_movntv2di): Change attr "type" to "ssemov".
18150         (sse2_movntsi): Likewise.
18151         (rsqrtv8sf2): Change attr "type" to "sseadd".
18152         (sse3_addsubv2df3): Set attr "atom_unit".
18153         (sse3_h<plusminus_insn>v4sf3): Likewise.
18154         (*sse2_pmaddwd): Likewise.
18155         (*vec_extractv2di_1_rex64): Likewise.
18156         (*vec_extractv2di_1_avx): Likewise.
18157         (sse2_psadbw): Likewise.
18158         (ssse3_phaddwv8hi3): Likewise.
18159         (ssse3_phaddwv4hi3): Likewise.
18160         (ssse3_phadddv4si3): Likewise.
18161         (ssse3_phadddv2si3): Likewise.
18162         (ssse3_phaddswv8hi3): Likewise.
18163         (ssse3_phaddswv4hi3): Likewise.
18164         (ssse3_phsubwv8hi3): Likewise.
18165         (ssse3_phsubwv4hi3): Likewise.
18166         (ssse3_phsubdv4si3): Likewise.
18167         (ssse3_phsubdv2si3): Likewise.
18168         (ssse3_phsubswv8hi3): Likewise.
18169         (ssse3_phsubswv4hi3): Likewise.
18170         (ssse3_pmaddubsw128): Likewise.
18171         (sse3_pmaddubsw: Likewise.
18172         (ssse3_palignrti): Likewise.
18173         (ssse3_palignrdi): Likewise.
18175 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
18177         * doc/install.texi (Specific): Fix two cross-references to MinGW.
18179 2009-04-06  Richard Guenther  <rguenther@suse.de>
18181         PR tree-optimization/28868
18182         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
18183         of which PHI results we inserted.
18184         (insert_into_preds_of_block): Record inserted PHIs.
18185         (eliminate): Eliminate redundant PHI nodes.
18186         (init_pre): Init inserted_phi_names.
18188 2009-04-06  Richard Guenther  <rguenther@suse.de>
18190         PR tree-optimization/39643
18191         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
18192         IMAGPART_EXPRs of complex constants.
18193         (execute_fold_all_builtins): If we folded a call queue
18194         TODO_update_address_taken.
18196 2009-04-06  Jan Hubicka  <jh@suse.cz>
18198         PR middle-end/39659
18199         * except.c (remove_unreachable_regions): Propagate may_contain_throw
18200         flag.
18202 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
18204         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
18205         delay slot.
18206         (ic_invalidate_array): Likewise.
18208 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
18210         * calls.c (emit_library_call_value_1): Fix a problem with parameter
18211         alignment for library calls.
18213 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
18215         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
18216         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
18217         * config/i386/mingw-stdint.h:  New file.
18219 2009-04-05  Richard Guenther  <rguenther@suse.de>
18221         PR tree-optimization/39648
18222         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
18223         our &A vs. &A[0] IL deficiencies.
18225 2009-04-04  Jan Hubicka  <jh@suse.cz>
18227         * except.c (sjlj_find_directly_reachable_regions): Be ready for
18228         removed toplevel regions.
18229         (sjlj_mark_call_sites): Likewise.
18231 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
18233         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
18234         (cygwin tm clause use_gcc_stdint):  Set to wrap.
18235         * config/i386/cygwin-stdint.h:  New file.
18237 2009-04-04  Richard Guenther  <rguenther@suse.de>
18239         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
18240         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
18241         single-argument PHIs if we are in loop-closed SSA form.
18242         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
18243         for the pre-condition.
18244         (slpeel_tree_peel_loop_to_edge): Likewise.
18245         (vect_build_loop_niters): Take an optional sequence to append stmts.
18246         (vect_generate_tmps_on_preheader): Likewise.
18247         (vect_do_peeling_for_loop_bound): Take extra guards for the
18248         pre-condition.
18249         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
18250         the cost model check.
18251         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
18252         guards if we are going to peel.  Do not apply versioning in that case.
18253         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
18254         (vect_do_peeling_for_loop_bound): Likewise.
18255         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
18256         loop bound only record extra pre-conditions, do not apply loop
18257         versioning.
18259 2009-04-04  Richard Guenther  <rguenther@suse.de>
18261         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
18262         renaming code.
18264 2009-04-04  Jan Hubicka  <jh@suse.cz>
18266         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18267         last_basic_block for size of bb->index indexed array.
18268         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
18269         compute_out, link_btr_uses, build_btr_def_use_webs,
18270         build_btr_def_use_webs, migrate_btr_defs): Likewise.
18272 2009-04-04  Jan Hubicka  <jh@suse.cz>
18274         * except.c (remove_eh_handler_and_replace): Break out from ...
18275         (remove_eh_handler): ... here.
18276         (bring_to_root): New function.
18277         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
18278         handled ones, bring others to root of tree.
18280 2009-04-04  Jan Hubicka  <jh@suse.cz>
18282         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
18283         (all_phis_safe_to_merge): New function.
18284         (update_info): New structure.
18285         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
18286         (cleanup_empty_eh): Update SSA if possible.
18288 2009-04-04  Richard Guenther  <rguenther@suse.de>
18290         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
18291         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
18292         (append_vuse): Likewise.
18294 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
18296         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
18297         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
18298         instead of REG_UNSAVED for DW_CFA_undefined.
18299         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
18300         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
18301         outermost frame.
18303 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
18305         PR target/39501
18306         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
18307         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
18308         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
18310 2009-04-04  Richard Guenther  <rguenther@suse.de>
18312         PR tree-optimization/8781
18313         PR tree-optimization/37892
18314         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
18315         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
18316         (valueize_refs): Call it for *& valueizations.
18317         (shared_reference_ops_from_ref): Rename to ...
18318         (valueize_shared_reference_ops_from_ref): ... this and valueize.
18319         (shared_reference_ops_from_call): Rename to ...
18320         (valueize_shared_reference_ops_from_call): ... this and valueize.
18321         (vn_reference_lookup): Update.
18322         (visit_reference_op_call): Likewise.
18323         * tree-ssa-pre.c (phi_translate_1): Fold *&.
18324         (eliminate): Value-replace the call address in call statements.
18326 2009-04-04  Richard Guenther  <rguenther@suse.de>
18328         PR tree-optimization/39636
18329         * tree-ssa-forwprop.c
18330         (forward_propagate_addr_into_variable_array_index): Check for
18331         GIMPLE_ASSIGN before accessing the rhs code.
18333 2009-04-03  Jason Merrill  <jason@redhat.com>
18335         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
18337 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
18339         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
18340         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
18341         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
18342         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
18343         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
18344         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
18345         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
18346         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
18347         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
18348         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
18349         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
18350         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
18351         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
18352         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
18353         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
18354         Use fr_reg_or_fp01_operand instead of fr_register_operand
18356         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
18357         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
18358         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
18360 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
18362         PR rtl-optimization/39607
18363         PR rtl-optimization/39631
18365         Revert:
18367         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
18368         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
18369         instead of DF_LR_OUT.
18370         * ira-lives.c (process_bb_node_lives): Ditto.
18371         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
18372         instead of DF_LR_{OUT,IN}.
18373         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
18374         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
18376 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
18378         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
18379         (execute_lower_omp): Always run but take the short way out if -fopenmp
18380         is not given.
18381         (gate_lower_omp): Remove, forcing the pass manager to always run the
18382         pass and always set PROP_gimple_lomp.
18383         (pass_lower_omp): Remove gate function.
18384         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
18385         PROP_trees.  Instead, require it.
18386         * ipa-cp.c (pass_ipa_cp): Likewise.
18387         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
18388         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
18389         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
18390         and PROP_gimple_leh.
18392 2009-04-03  Richard Guenther  <rguenther@suse.de>
18394         PR middle-end/13146
18395         PR tree-optimization/23940
18396         PR tree-optimization/33237
18397         PR middle-end/33974
18398         PR middle-end/34093
18399         PR tree-optimization/36201
18400         PR tree-optimization/36230
18401         PR tree-optimization/38049
18402         PR tree-optimization/38207
18403         PR tree-optimization/38230
18404         PR tree-optimization/38301
18405         PR tree-optimization/38585
18406         PR middle-end/38895
18407         PR tree-optimization/38985
18408         PR tree-optimization/39299
18409         * tree-ssa-structalias.h: Remove.
18410         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
18411         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
18412         (struct vuse_element_d): Remove.
18413         (struct vuse_vec_d): Likewise.
18414         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
18415         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
18416         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
18417         VUSE_ELEMENT_VAR): Likewise.
18418         (struct voptype_d): Likewise.
18419         (NUM_VOP_FREE_BUCKETS): Likewise.
18420         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
18421         (struct stmt_operands_d): Remove.
18422         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
18423         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
18424         VDEF_NUM, VDEF_VECT): Likewise.
18425         (copy_virtual_operands): Remove.
18426         (operand_build_cmp): Likewise.
18427         (create_ssa_artificial_load_stmt): Likewise.
18428         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
18429         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
18430         vuse_index and mayuse_index members.  Pack and move done and iter_type
18431         members to the front.
18432         (SSA_OP_VMAYUSE): Remove.
18433         (SSA_OP_VIRTUAL_USES): Adjust.
18434         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
18435         (unlink_stmt_vdef): Declare.
18436         (add_to_addressable_set): Remove.
18437         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
18438         (vrp_visit_stmt): Likewise.
18439         * doc/tree-ssa.texi (Alias analysis): Update.
18440         * doc/invoke.texi (max-aliased-vops): Remove docs.
18441         (avg-aliased-vops): Likewise.
18442         * tree-into-ssa.c (syms_to_rename): Remove.
18443         (need_to_update_vops_p): Likewise.
18444         (need_to_initialize_update_ssa_p): Rename to ...
18445         (update_ssa_initialized_fn): ... this.  Track function we are
18446         initialized for.
18447         (symbol_marked_for_renaming): Simplify.
18448         (add_new_name_mapping): Do not set need_to_update_vops_p.
18449         (dump_currdefs): Use SYMS_TO_RENAME.
18450         (rewrite_update_stmt): Always walk all uses/defs.
18451         (dump_update_ssa): Adjust.
18452         (init_update_ssa): Take function argument.  Track what we are
18453         initialized for.
18454         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
18455         (create_new_def_for): Initialize for cfun, assert we are initialized
18456         for cfun.
18457         (mark_sym_for_renaming): Simplify.
18458         (mark_set_for_renaming): Do not initialize update-ssa.
18459         (need_ssa_update_p): Simplify.  Take function argument.
18460         (name_mappings_registered_p): Assert we ask for the correct function.
18461         (name_registered_for_update_p): Likewise.
18462         (ssa_names_to_replace): Likewise.
18463         (release_ssa_name_after_update_ssa): Likewise.
18464         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
18465         (dump_decl_set): Do not print a newline.
18466         (debug_decl_set): Do it here.
18467         (dump_update_ssa): And here.
18468         * tree-ssa-loop-im.c (move_computations): Adjust.
18469         (movement_possibility): Likewise.
18470         (determine_max_movement): Likewise.
18471         (gather_mem_refs_stmt): Likewise.
18472         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
18473         or NAME_MEMORY_TAG.
18474         * tree-complex.c (update_all_vops): Remove.
18475         (expand_complex_move): Adjust.
18476         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
18477         Simplify test for memory referencing statement.  Exclude
18478         non-invariant ADDR_EXPRs.
18479         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
18480         * tree-loop-distribution.c (generate_memset_zero): Adjust.
18481         (rdg_flag_uses): Likewise.
18482         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
18483         related code.
18484         (tree_optimize_tail_calls_1): Also split the
18485         edge from the entry block if we have degenerate PHI nodes in
18486         the first basic block.
18487         * tree.c (init_ttree): Remove memory-tag related code.
18488         (tree_code_size): Likewise.
18489         (tree_node_structure): Likewise.
18490         (build7_stat): Re-write to be build6_stat.
18491         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
18492         (SSA_VAR_P): Adjust.
18493         (struct tree_memory_tag): Remove.
18494         (struct tree_memory_partition_tag): Likewise.
18495         (union tree_node): Adjust.
18496         (build7): Re-write to be build6.
18497         * tree-pass.h (pass_reset_cc_flags): Remove.
18498         (TODO_update_address_taken): New flag.
18499         (pass_simple_dse): Remove.
18500         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
18501         * params.h (MAX_ALIASED_VOPS): Remove.
18502         (AVG_ALIASED_VOPS): Likewise.
18503         * omp-low.c (expand_omp_taskreg): Update SSA form.
18504         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
18505         aliases the lhs in a copy stmt.
18506         * tree-ssa-dse.c (struct address_walk_data): Remove.
18507         (memory_ssa_name_same): Likewise.
18508         (memory_address_same): Likewise.
18509         (get_kill_of_stmt_lhs): Likewise.
18510         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
18511         unused stores.  Look through PHI nodes into post-dominated regions.
18512         (dse_optimize_stmt): Simplify.  Properly remove stores.
18513         (tree_ssa_dse): Compute dominators.
18514         (execute_simple_dse): Remove.
18515         (pass_simple_dse): Likewise.
18516         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
18517         gimple_loaded_syms and gimple_stored_syms computation.
18518         * toplev.c (dump_memory_report): Dump alias and pta stats.
18519         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
18520         (vn_reference_eq): Likewise.
18521         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
18522         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
18523         valueize_vuses): Remove.
18524         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
18525         (get_def_ref_stmt_vuse): ... this.
18526         (vn_reference_lookup_2): New function.
18527         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
18528         walking equivalent vuses.  Simplify.
18529         (vn_reference_lookup): Likewise.
18530         (vn_reference_insert): Likewise.
18531         (vn_reference_insert_pieces): Likewise.
18532         (visit_reference_op_call): Simplify.
18533         (visit_reference_op_load): Likewise.
18534         (visit_reference_op_store): Likewise.
18535         (init_scc_vn): Remove shared_lookup_vuses initialization.
18536         (free_scc_vn): Remove shared_lookup_vuses freeing.
18537         (sort_vuses, sort_vuses_heap): Remove.
18538         (get_ref_from_reference_ops): Export.
18539         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
18540         vector with single vuse pointer.
18541         (vn_reference_lookup_pieces, vn_reference_lookup,
18542         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
18543         (shared_vuses_from_stmt): Remove.
18544         (get_ref_from_reference_ops): Declare.
18545         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
18546         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18547         memory-tag related code.
18548         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
18549         (likely_value): Add comment, skip static-chain of call statements.
18550         (surely_varying_stmt_p): Adjust.
18551         (gimplify_and_update_call_from_tree): Likewise.
18552         (execute_fold_all_builtins): Do not rebuild alias info.
18553         (gimplify_and_update_call_from_tree): Properly update VOPs.
18554         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
18555         (copy_ref_info): Remove memory-tag related code.
18556         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
18557         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
18558         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
18559         computation.
18560         * tree-ssa-dom.c (gimple_p): Remove typedef.
18561         (eliminate_redundant_computations): Adjust.
18562         (record_equivalences_from_stmt): Likewise.
18563         (avail_expr_hash): Likewise.
18564         (avail_expr_eq): Likewise.
18565         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
18566         (stmt_makes_single_load): Likewise.
18567         (stmt_makes_single_store): Likewise.
18568         * tree-ssa-alias.c: Rewrite completely.
18569         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
18570         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
18571         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
18572         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
18573         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
18574         Remove public functions.
18575         (pass_reset_cc_flags): Remove.
18576         (pass_build_alias): Move ...
18577         * tree-ssa-structalias.c (pass_build_alias): ... here.
18578         * tree-ssa-alias.c (may_be_aliased): Move ...
18579         * tree-flow-inline.h (may_be_aliased): ... here.
18580         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
18581         count_uses_and_derefs): Move ...
18582         * gimple.c: ... here.
18583         * gimple.h (count_uses_and_derefs): Declare.
18584         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
18585         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
18586         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
18587         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
18588         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
18589         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
18590         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
18591         New functions.
18592         * tree-dfa.c (refs_may_alias_p): Move ...
18593         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
18594         * tree-ssa-alias.h: New file.
18595         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
18596         (statement_sink_location): Likewise.
18597         * opts.c (decode_options): Do not adjust max-aliased-vops or
18598         avg-aliased-vops values.
18599         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
18600         (TV_CALL_CLOBBER): Likewise.
18601         (TV_FLOW_SENSITIVE): Likewise.
18602         (TV_FLOW_INSENSITIVE): Likewise.
18603         (TV_MEMORY_PARTITIONING): Likewise.
18604         (TV_ALIAS_STMT_WALK): New timevar.
18605         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
18606         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
18607         (get_address_description): Remove memory-tag related code.
18608         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
18609         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
18610         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
18611         and immediate uses in statements.  Document.
18612         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
18613         (dump_symbols): Remove.
18614         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
18615         * alias.c (get_deref_alias_set): New function split out from ...
18616         (get_alias_set): ... here.
18617         * alias.h (get_deref_alias_set): Declare.
18618         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
18619         type parameter.  Remove restrict pointer handling.  Create a
18620         ref-all pointer in case type-based alias sets do not conflict.
18621         (vect_analyze_data_refs): Remove SMT related code.
18622         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
18623         (vectorizable_load): Likewise.
18624         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
18625         (DR_SYMBOL_TAG, DR_VOPS): Remove.
18626         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
18627         Ignore vops and SMTs.
18628         (dr_analyze_alias): Likewise..
18629         (free_data_ref): Likewise.
18630         (create_data_ref): Likewise.
18631         (analyze_all_data_dependences): Likewise.
18632         (get_references_in_stmt): Adjust.
18633         * tree-flow-inline.h (gimple_aliases_computed_p,
18634         gimple_addressable_vars, gimple_call_clobbered_vars,
18635         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
18636         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
18637         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
18638         gimple_mem_ref_stats): Remove.
18639         (gimple_vop): New function.
18640         (op_iter_next_use): Remove vuses and mayuses cases.
18641         (op_iter_next_def): Remove vdefs case.
18642         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
18643         (clear_and_done_ssa_iter): Do not set removed fields.
18644         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
18645         Assert we are not iterating over vuses or vdefs if not also
18646         iterating over uses or defs.
18647         (op_iter_init_use): Likewise.
18648         (op_iter_init_def): Likewise.
18649         (op_iter_next_vdef): Remove.
18650         (op_iter_next_mustdef): Likewise.
18651         (op_iter_init_vdef): Likewise.
18652         (compare_ssa_operands_equal): Likewise.
18653         (link_use_stmts_after): Handle vuse operand.
18654         (is_call_used): Use is_call_clobbered.
18655         (is_call_clobbered): Global variables are always call clobbered,
18656         query the call-clobbers bitmap.
18657         (mark_call_clobbered): Ignore global variables.
18658         (clear_call_clobbered): Likewise.
18659         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
18660         virtual operands sanity check.
18661         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
18662         Remove.
18663         (TARGET_MEM_REF): Remove TMR_TAG operand.
18664         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
18665         Remove call-clobber related code.
18666         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
18667         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
18668         partitions or escape reason.
18669         (get_single_def_stmt, get_single_def_stmt_from_phi,
18670         get_single_def_stmt_with_phi): Remove.
18671         (dump_referenced_vars): Tidy.
18672         (get_ref_base_and_extent): Allow bare decls.
18673         (collect_dfa_stats): Adjust.
18674         * graphite.c (rename_variables_in_stmt): Adjust.
18675         (graphite_copy_stmts_from_block): Likewise.
18676         (translate_clast): Likewise.
18677         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
18678         (EXPR_DIES): New.
18679         (translate_vuse_through_block): Use the oracle.
18680         (phi_translate_1): Adjust.
18681         (value_dies_in_block_x): Use the oracle.  Cache the outcome
18682         in EXPR_DIES.
18683         (valid_in_sets): Check if the VUSE for
18684         a REFERENCE is available.
18685         (eliminate): Do not remove stmts during elimination,
18686         instead queue and remove them afterwards.
18687         (do_pre): Do not rebuild alias info.
18688         (pass_pre): Run TODO_rebuild_alias before PRE.
18689         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
18690         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
18691         (mark_all_v_defs_stmt): Remove.
18692         (mark_all_v_defs_seq): Adjust.
18693         (sra_replace): Likewise.
18694         (scalarize_use): Likewise.
18695         (scalarize_copy): Likewise.
18696         (scalarize_init): Likewise.
18697         (scalarize_ldst): Likewise.
18698         (todoflags): Remove.
18699         (tree_sra): Do not rebuild alias info.
18700         (tree_sra_early): Adjust.
18701         (pass_sra): Run TODO_update_address_taken before SRA.
18702         * tree-predcom.c (set_alias_info): Remove.
18703         (prepare_initializers_chain): Do not call it.
18704         (mark_virtual_ops_for_renaming): Adjust.
18705         (mark_virtual_ops_for_renaming_list): Remove.
18706         (initialize_root_vars): Adjust.
18707         (initialize_root_vars_lm): Likewise.
18708         (prepare_initializers_chain): Likewise.
18709         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
18710         (may_propagate_copy_into_stmt): Likewise.
18711         (merge_alias_info): Do nothing for now.
18712         (propagate_tree_value_into_stmt): Adjust.
18713         (stmt_may_generate_copy): Likewise.
18714         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
18715         not mark symbols for renaming.
18716         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
18717         with the same statement, make sure to update the new pointed-to one.
18718         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
18719         call statements, do not mark symbols for renaming.
18720         (mark_operand_necessary): Dump something.
18721         (ref_may_be_aliased): New function.
18722         (mark_aliased_reaching_defs_necessary_1): New helper function.
18723         (mark_aliased_reaching_defs_necessary): Likewise.
18724         (mark_all_reaching_defs_necessary_1): Likewise.
18725         (mark_all_reaching_defs_necessary): Likewise.
18726         (propagate_necessity): Do not process virtual PHIs.  For
18727         non-aliased loads mark all reaching definitions as necessary.
18728         For aliased loads and stores mark the immediate dominating
18729         aliased clobbers as necessary.
18730         (visited): New global static.
18731         (perform_tree_ssa_dce): Free visited bitmap after propagating
18732         necessity.
18733         (remove_dead_phis): Perform simple dead virtual PHI removal.
18734         (remove_dead_stmt): Properly unlink virtual operands when
18735         removing stores.
18736         (eliminate_unnecessary_stmts): Schedule PHI removal after
18737         stmt removal.
18738         * tree-ssa-ter.c (is_replaceable_p): Adjust.
18739         (process_replaceable): Likewise.
18740         (find_replaceable_in_bb): Likewise.
18741         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
18742         based on the single gimple vop.
18743         (verify_flow_insensitive_alias_info): Remove.
18744         (verify_flow_sensitive_alias_info): Likewise.
18745         (verify_call_clobbering): Likewise.
18746         (verify_memory_partitions): Likewise.
18747         (verify_alias_info): Likewise.
18748         (verify_ssa): Adjust..
18749         (execute_update_addresses_taken): Export.  Update SSA
18750         manually.  Optimize only when optimizing.  Use a local bitmap.
18751         (pass_update_address_taken): Remove TODO_update_ssa, add
18752         TODO_dump_func.
18753         (pass_update_address_taken): Just use TODO_update_address_taken.
18754         (init_tree_ssa): Do not initialize addressable_vars.
18755         (verify_ssa): Verify new VUSE / VDEF properties.
18756         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
18757         Do not call verify_alias_info.
18758         (delete_tree_ssa): Clear the VUSE, VDEF operands.
18759         Do not free the loaded and stored syms bitmaps.  Reset the escaped
18760         and callused solutions.  Do not free addressable_vars.
18761         Remove memory-tag related code.
18762         (warn_uninitialized_var): Aliases are always available.
18763         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
18764         * lambda-code.c (can_put_in_inner_loop): Adjust.
18765         (can_put_after_inner_loop): Likewise.
18766         (perfect_nestify): Likewise.
18767         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
18768         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
18769         (vectorizable_conversion): Do not mark symbols for renaming.
18770         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
18771         (expand_call_inline): Unlink the calls virtual operands before
18772         replacing it.
18773         (tree_function_versioning): Do not call update_ssa if we are not
18774         updating clones.  Simplify.
18775         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
18776         (propagate_with_phi): Likewise..
18777         * tree-outof-ssa.c (create_temp): Remove memory tag and call
18778         clobber code.  Assert we are not aliased or global.
18779         * tree-flow.h: Include tree-ssa-alias.h
18780         (enum escape_type): Remove.
18781         (struct mem_sym_stats_d): Likewise.
18782         (struct mem_ref_stats_d): Likewise.
18783         (struct gimple_df): Add vop member.  Remove global_var,
18784         call_clobbered_vars, call_used_vars, addressable_vars,
18785         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
18786         escaped and callused members.
18787         (struct ptr_info_def): Remove all members, add points-to solution
18788         member pt.
18789         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
18790         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
18791         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
18792         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
18793         (tree-ssa-alias.o): Likewise.
18794         (toplev.o): Add tree-ssa-alias.h
18795         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
18796         * gimple.c (gimple_set_bb): Fix off-by-one error.
18797         (is_gimple_reg): Do not handle memory tags.
18798         (gimple_copy): Also copy virtual operands.
18799         Delay updating the statement.  Do not reset loaded and stored syms.
18800         (gimple_set_stored_syms): Remove.
18801         (gimple_set_loaded_syms): Likewise.
18802         (gimple_call_copy_skip_args): Copy the virtual operands
18803         and mark the new statement modified.
18804         * tree-ssa-structalias.c (may_alias_p): Remove.
18805         (set_uids_in_ptset): Take the alias set to prune with as
18806         parameter.  Fold in the alias test of may_alias_p.
18807         (compute_points_to_sets): Compute whether a ptr is dereferenced
18808         in a local sbitmap.
18809         (process_constraint): Deal with &ANYTHING on the lhs, reject all
18810         other ADDRESSOF constraints on the lhs.
18811         (get_constraint_for_component_ref): Assert that we don't get
18812         ADDRESSOF constraints from the base of the reference.
18813         Properly generate UNKNOWN_OFFSET for DEREF if needed.
18814         (struct variable_info): Remove collapsed_to member.
18815         (get_varinfo_fc): Remove.
18816         (new_var_info): Do not set collapsed_to.
18817         (dump_constraint): Do not follow cycles.
18818         (dump_constraint_graph): Likewise.
18819         (build_pred_graph): Likewise.
18820         (build_succ_graph): Likewise.
18821         (rewrite_constraints): Likewise.
18822         (do_simple_structure_copy): Remove.
18823         (do_rhs_deref_structure_copy): Remove.
18824         (do_lhs_deref_structure_copy): Remove.
18825         (collapse_rest_of_var): Remove.
18826         (do_structure_copy): Re-implement.
18827         (pta_stats): New global variable.
18828         (dump_pta_stats): New function.
18829         (struct constraint_expr): Make offset signed.
18830         (UNKNOWN_OFFSET): Define special value.
18831         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
18832         (solution_set_expand): New helper function split out from ...
18833         (do_sd_constraint): ... here.
18834         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
18835         (do_ds_constraint): Likewise.
18836         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
18837         and CALLUSED = *CALLUSED.
18838         (set_union_with_increment): Make inc argument signed.
18839         (type_safe): Remove.
18840         (get_constraint_for_ptr_offset): Handle unknown and negative
18841         constant offsets.
18842         (first_vi_for_offset): Handle offsets before start.  Bail
18843         out early for offsets beyond the variable extent.
18844         (first_or_preceding_vi_for_offset): New function.
18845         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
18846         Together with ESCAPED = *ESCAPED this properly computes reachability.
18847         (find_what_var_points_to): New function.
18848         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
18849         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
18850         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
18851         pt_solutions_intersect): New functions.
18852         (compute_call_used_vars): Remove.
18853         (compute_may_aliases): New main entry into PTA computation.
18854         * gimple.h (gimple_p): New typedef.
18855         (struct gimple_statement_base): Remove references_memory_p.
18856         (struct gimple_statement_with_memory_ops_base): Remove
18857         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
18858         members.
18859         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
18860         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
18861         gimple_set_references_memory): Remove.
18862         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
18863         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
18864         New functions.
18865         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
18866         (verify_expr): Allow RESULT_DECL.
18867         (gimple_duplicate_bb): Do not copy virtual operands.
18868         (gimple_duplicate_sese_region): Adjust.
18869         (gimple_duplicate_sese_tail): Likewise.
18870         (mark_virtual_ops_in_region): Remove.
18871         (move_sese_region_to_fn): Do not call it.
18872         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
18873         and pass_simple_dse.
18874         (execute_function_todo): Handle TODO_update_address_taken,
18875         call execute_update_addresses_taken for TODO_rebuild_alias.
18876         (execute_todo): Adjust.
18877         (execute_one_pass): Init dump files early.
18878         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
18879         call-clobbered.
18880         (create_general_new_stmt): Clear vops.
18881         * tree-ssa-reassoc.c (get_rank): Adjust.
18882         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
18883         symbols for renaming.
18884         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
18885         (PARAM_AVG_ALIASED_VOPS): Likewise.
18886         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
18887         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
18888         * tree-ssa-operands.c: Simplify for new virtual operand representation.
18889         (operand_build_cmp, copy_virtual_operands,
18890         create_ssa_artificial_load_stmt, add_to_addressable_set,
18891         gimple_add_to_addresses_taken): Remove public functions.
18892         (unlink_stmt_vdef): New function.
18894 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
18896         * config.gcc (powerpc-*-linux*): Merge variants.
18898 2009-04-02  Chao-ying Fu  <fu@mips.com>
18899             James Grosbach  <james.grosbach@microchip.com>
18901         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
18902         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
18903         cop0_sp_offset.
18904         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
18905         keep_interrupts_masked_p, use_debug_exception_return_p.
18906         (mips_attribute_table): Add interrupt, use_shadow_register_set,
18907         keep_interrupts_masked, use_debug_exception_return.
18908         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
18909         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
18910         New functions.
18911         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
18912         (mips_print_operand): Process COP0 registers to print $0 .. $31
18913         correctly for GAS to process.
18914         (mips_interrupt_extra_call_saved_reg_p): New function.
18915         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
18916         extra registers.
18917         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
18918         (mips_compute_frame_info): Add supports for interrupt context that
18919         includes doubleword accumulators and COP0 registers.
18920         (mips_for_each_saved_acc): New function.
18921         (mips_for_each_saved_gpr_and_fpr): Change the function name from
18922         mips_for_each_saved_reg.
18923         (mips_save_reg): Save accumulators.
18924         (mips_kernel_reg_p): A new for_each_rtx callback.
18925         (mips_expand_prologue): Support interrupt handlers.
18926         (mips_restore_reg): Restore accumulators.
18927         (mips_expand_epilogue): Support interrupt handlers.
18928         (mips_can_use_return_insn): Return false for interrupt handlers.
18929         (mips_epilogue_uses): New function.
18930         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
18931         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
18932         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
18933         cop0_move): New instructions.
18934         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
18935         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
18936         defines.
18937         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
18938         New defines.
18939         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
18940         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
18941         interrupt handlers, we use K0 as the temporary register.
18942         (EPILOGUE_USES): Change to a function call.
18943         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
18944         handlers, we use K0 as the temporary register.
18946         * doc/extend.texi (Function Attributes): Document interrupt,
18947         use_shadow_register_set, keep_interrupts_masked,
18948         use_debug_exception_return for MIPS attributes.
18950 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
18952         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
18953         Remove a number of t-files from tmake_file.
18954         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
18955         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
18956         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18957         target_prototype, not TARGET_PROTOTYPE.
18958         (LINK_OS_GNU_SPEC): Define.
18959         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
18960         and darwin-ldoubdle.c.
18962 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18964         PR driver/39293
18965         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
18966         (cpp_options): Ditto.
18967         (default_compilers): Ditto.
18968         (display_help): Ditto.
18969         (process_command): Ditto.
18970         (do_spec_1): Ditto.
18971         (set_input): Use lbasename instead of duplicate code.
18972         (save_temps_prefix): New static for -save-temps=obj.
18973         (save_temps_length): Ditto.
18975         * doc/invoke.texi (-save-temps=obj): Document new variant to
18976         -save-temps switch.
18978 2009-04-02  Jeff Law  <law@redhat.com>
18980         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
18981         variable.
18983 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
18985         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
18986         * configure: Regenerated.
18988 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
18990         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
18991         share the argument list.
18993 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
18995         Merge
18997         2009-02-12  Diego Novillo  <dnovillo@google.com>
18999         * varpool.c (debug_varpool): New.
19000         * cgraph.h (debug_varpool): Declare.
19002 2009-04-02  Jan Hubicka  <jh@suse.cz>
19004         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
19005         pass.
19007 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19009         * config/i386/i386.c (ix86_abi): Move initialization to ...
19010         (override_options): Here.
19012 2009-04-02  Christian Bruel  <christian.bruel@st.com>
19014         * config/sh/sh.c (sh_dwarf_register_span): New function.
19015         (TARGET_DWARF_REGISTER_SPAN): Define.
19016         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
19018 2009-04-02  Ira Rosen  <irar@il.ibm.com>
19020         PR tree-optimization/39595
19021         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
19022         interleaved loads group is not  greater than the SLP group size.
19024 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
19026         * builtins.c (is_builtin_name): New.
19027         (called_as_built_in): Use is_builtin_name.
19028         * tree.h (is_builtin_name): New.
19029         * varasm.c (incorporeal_function_p): Use is_builtin_name
19031 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
19033         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
19035 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
19037         PR c++/26693
19038         * c-decl.c (clone_underlying_type): Move this ...
19039         * c-common.c (set_underlying_type): ... here.
19040         Also, make sure the function properly sets TYPE_STUB_DECL() on
19041         the newly created typedef variant type.
19042         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
19043         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
19044         points.
19046 2009-04-02  Richard Guenther  <rguenther@suse.de>
19048         PR tree-optimization/37221
19049         * tree-flow.h (degenerate_phi_result): Declare.
19050         * tree-ssa-dom.c (degenerate_phi_result): Export.
19051         * tree-scalar-evolution.c (analyze_initial_condition): If
19052         the initial condition is defined by a degenerate PHI node
19053         use the degenerate value.
19055 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
19057         PR rtl-optimization/39588
19058         * combine.c (merge_outer_ops): Do not set the constant when this
19059         is not necessary.
19060         (simplify_shift_const_1): Do not modify it either in this case.
19062 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
19064         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
19065         tuning is deprecated if -mtune value is set to an Itanium1 variant.
19067 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
19069         PR c/29027
19070         * c-lex.c (interpret_float): Default (no suffix) is double.
19072 2009-04-1  Xinliang David Li  <davidxl@google.com>
19074         * config/i386/i386.c (legitimate_constant_p): Recognize
19075         all one vector constant.
19077 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19079         * config/vax/vax.c: Add #includes to silence warnings.
19080         Change #include order to silence two warnings.
19082 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19084         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
19085         (ASM_SPEC): Pass -k to the assembler for PIC code.
19087 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19089         * config.gcc: Add vax-*-linux* to the switch.
19090         * config/vax/linux.h: New file. (TARGET_VERSION,
19091         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
19093 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19095         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
19096         Use predicate macros instead of GET_CODE() == foo.
19097         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
19098         ashlsi3, rotrsi3, <unnamed>): Likewise.
19100 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19102         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
19103         jbbccihi, jbbccisi): Remova trailing whitespace.
19104         * config/vax/constraints.md: Likewise.
19105         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
19106         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
19107         * config/vax/predicates.md: Likewise.
19108         * config/vax/vax.c (print_operand_address, vax_output_int_move,
19109         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
19110         * config/vax/vax.h: Likewise.
19111         * config/vax/vax.md (nonlocal_goto): Likewise.
19113 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19115         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
19116         (indirectable_address_p, adjacent_operands_p): Add spaces around
19117         braces.
19118         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
19120 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19122         * config/vax/vax.c (legitimate_constant_address_p,
19123         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
19124         index_term_p, reg_plus_index_p, legitimate_address_p,
19125         vax_mode_dependent_address_p): Update comments to match functions
19126         modified by the recent int->bool conversion.
19128 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19130         * config/vax/builtins.md: Update copyright message.
19131         * config/vax/constraints.md: Likewise.
19132         * config/vax/netbsd-elf.h: Likewise.
19133         * config/vax/predicates.md: Likewise.
19134         * config/vax/vax-protos.h: Likewise.
19135         * config/vax/vax.c: Likewise.
19136         * config/vax/vax.h: Likewise.
19137         * config/vax/vax.md: Likewise.
19138         * config/vax/vax.opt: Likewise.
19140 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19142         * config/vax/builtins.md (ffssi2, ffssi2_internal,
19143         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
19144         * config/vax/constraints.md (B, R): Likewise.
19145         * config/vax/predicates.md (external_memory_operand,
19146         nonimmediate_addsub_di_operand): Likewise.
19147         * config/vax/vax.c (vax_output_int_add): Likewise.
19148         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
19149         untyped_call): Likewise.
19151 2009-04-01  Matt Thomas  <matt@3am-software.com>
19153         * config/vax/predicates.md: New file.
19154         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
19155         external_const_operand, nonsymbolic_operand, external_memory_operand,
19156         indirect_memory_operand, indexed_memory_operand,
19157         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
19158         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
19159         predicate.
19160         * config/vax/constraints.md: New file.
19161         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
19162         New constraint.
19163         * config/vax/builtins.md: New file.
19164         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
19165         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
19166         jbbccisi): Define.
19167         * config/vax/vax.opt (mqmath): Add option.
19168         * config/vax/vax.md (isfx): Extend with DI.
19169         (VAXintQH, VAXintQHSD): Define.
19170         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
19171         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
19172         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
19173         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
19174         (movdi): Update constraints and use vax_output_int_move().
19175         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
19176         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
19177         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
19178         nonlocal_goto): New.
19179         (mov<mode>): Extend accepted operand types.
19180         (subdi3_old): Rename from subdi3, change update constraints and use
19181         a new implementation.
19182         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
19183         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
19184         MOVE_RATIO, CLEAR_RATIO): Define.
19185         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
19186         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
19187         (PRINT_OPERAND): Redefine using a function instead of inlined code.
19188         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
19189         (split_quadword_operands): Make static and really allow variable
19190         splitting.
19191         (print_operand_address): Update for PIC generation.
19192         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
19193         indexable_address_p, fixup_mathdi_operand,
19194         vax_expand_addsub_di_operands, adjacent_operands_p): New.
19195         (vax_float_literal, legitimate_constant_p,
19196         indirectable_constant_address_p, index_term_p,
19197         reg_plus_index_p): Return bool instead of int.
19198         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
19199         where needed.
19200         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
19201         generation.
19202         (vax_output_conditional_branch): Indent.
19203         (legitimate_constant_address_p, indirectable_constant_address_p,
19204         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
19205         vax_mode_dependent_address_p): Return bool instead of int, update for
19206         PIC generation.
19207         * config/vax/vax-protos.h (legitimate_constant_address_p,
19208         legitimate_constant_p, legitimate_address_p,
19209         vax_mode_dependent_address_p): Change declaration to bool.
19210         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
19211         vax_expand_addsub_di_operands, vax_output_int_subtract,
19212         vax_output_movmemsi): Declare.
19213         (split_quadword_operands, vax_float_literal): Delete declaration.
19214         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
19215         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
19216         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
19217         ASM_OUTPUT_DWARF_PCREL): Define.
19218         (ASM_SPEC): Change definition to allow PIC generation.
19220 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
19222         * doc/sourcebuild.texi: Update front-end requirements.
19224 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19226         PR target/39226
19227         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
19228         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
19229         (booldi3_internal3): Use boolean_or_operator instead of
19230         boolean_operator.
19232 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
19234         PR c/39605
19235         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
19236         declarator whose size is not an integer constant expression but
19237         folds to an integer constant, then treat it as a constant
19238         subsequently.
19240 2009-04-01  Richard Guenther  <rguenther@suse.de>
19242         * fold-const.c (fold_plusminus_mult_expr): Do not fold
19243         i * 4 + 2 to (i * 2 + 1) * 2.
19245 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19247         PR c/37772
19248         * c-parser.c (c_parser_asm_statement): Skip until close paren and
19249         return if c_parser_asm_string_literal returned NULL.
19251 2009-04-01  Nick Clifton  <nickc@redhat.com>
19253         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
19254         already defined.
19255         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
19256         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
19257         other typedefs to avoid conflicts with libgcc2.c.  Define labels
19258         to gain 16-bit bit-manipulation functions from libgcc2.c and then
19259         include it.
19260         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
19261         to gain 16-bit trapping arithmetic functions from libgcc2.c and
19262         then include it.
19264 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
19266         * varasm.c (default_function_rodata_section): Declare DOT as
19267         const char*.
19269 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
19270             Andrey Galkin  <agalkin@hypercom.com>
19272         PR/39492
19273         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19274         Make object_name unique for each process.
19276 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19278         PR other/39591
19279         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
19280         addressable variables in the parallel that could go out of scope while
19281         running queued tasks.
19283 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
19285         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
19286         (CASE_VALUES_THRESHOLD): Redefine.
19287         * config/avr/avr.c (avr_override_options): Remove initialization of
19288         avr_case_values_threshold variable.
19289         (avr_case_values_threshold): Remove variable. Add new function.
19290         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
19291         * config/avr/avr.opt (mno-tablejump): Remove option.
19292         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
19294 2009-04-01  DJ Delorie  <dj@redhat.com>
19296         * varasm.c (default_function_rodata_section): Don't assume
19297         anything about where the first '.' in the section name is.
19299 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
19301         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
19302         rs6000_emit_stack_tie.
19304 2009-03-31  Ian Lance Taylor  <iant@google.com>
19306         * tree-eh.c (tree_remove_unreachable_handlers): Compare
19307         gimple_code with GIMPLE_RESX, not RESX.
19309 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19311         * c-common.c (c_get_ident): New.
19312         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
19314 2009-04-01  Ben Elliston  <bje@au.ibm.com>
19316         * config/rs6000/sysv4.opt (msdata): Improve option description.
19318 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
19320         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
19321         (divdf3_internal_lat): Remove.
19322         (divxf3_internal_lat): Remove.
19323         (divxf3_internal_thr): Remove.
19324         (divxf): Use divxf3_internal.
19325         * config/ia64/div.md (divsf3_internal_lat): New.
19326         (divdf3_internal_lat): New.
19327         (divxf3_internal): New.
19329 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19331         PR c/448
19332         * Makefile.in (USE_GCC_STDINT): Define.
19333         (stmp-int-hdrs): Install stdint.h if applicable.
19334         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
19335         if known.
19336         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
19337         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
19338         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19339         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19340         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19341         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19342         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19343         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19344         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19345         (c_common_nodes_and_builtins): Initialize
19346         underlying_wchar_type_node.  Do not initialize
19347         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
19348         nodes for new types.
19349         (c_stddef_cpp_builtins): Define macros for new types.
19350         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
19351         Remove.
19352         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
19353         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
19354         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
19355         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
19356         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
19357         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
19358         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
19359         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
19360         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
19361         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
19362         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
19363         int16_type_node, int32_type_node, int64_type_node,
19364         uint8_type_node, uint16_type_node, c_uint32_type_node,
19365         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
19366         int_least32_type_node, int_least64_type_node,
19367         uint_least8_type_node, uint_least16_type_node,
19368         uint_least32_type_node, uint_least64_type_node,
19369         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
19370         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
19371         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
19372         uintptr_type_node): Define.
19373         * c-cppbuiltin.c (builtin_define_constants,
19374         builtin_define_type_minmax): New.
19375         (builtin_define_stdint_macros): Define more macros.
19376         (c_cpp_builtins): Define more limit macros.
19377         (type_suffix): New.
19378         (builtin_define_type_max): Define in terms of
19379         builtin_define_type_minmax.  Remove is_long parameter.  All
19380         callers changed.
19381         * config.gcc (use_gcc_stdint): Define.
19382         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
19383         Add newlib-stdint.h for generic targets.
19384         * config/glibc-stdint.h, config/newlib-stdint.h,
19385         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
19386         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
19387         * config/score/score.h (UINTPTR_TYPE): Define.
19388         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
19389         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
19390         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19391         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19392         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19393         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19394         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19395         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19396         * config/spu/spu.h (STDINT_LONG32): Define.
19397         * configure.ac (use_gcc_stdint): Substitute.
19398         * configure: Regenerate.
19399         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
19400         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
19401         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
19402         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
19403         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
19404         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
19405         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
19406         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
19407         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
19408         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
19409         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
19410         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
19411         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
19412         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
19413         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
19414         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
19415         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
19416         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
19417         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
19418         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
19419         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
19420         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
19421         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19422         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19423         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19424         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19425         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19426         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19427         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
19429 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
19431         * loop-iv.c (suitable_set_for_replacement): Renamed from
19432         simplify_using_assignment; changed to return bool and to accept new
19433         args DEST and SRC.  Return true iff we find a source/destination pair
19434         that can be used to make a replacement, and fill SRC and DEST if so.
19435         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
19436         changed.
19437         (simplify_using_initial_values): Deal with altered regs here and track
19438         more precisely the effect they have on the validity of our expression.
19440         * loop-iv.c (simplify_using_condition): A condition of the form
19441         (EQ REG CONST) can be used to simply make a substitution.
19442         (simplify_using_initial_values): Keep track of conditions we have seen
19443         and keep using them to simplify new expressions, while applying the
19444         same substitutions to them as to the expression.
19446         * simplify-rtx.c (simplify_relational_operation_1): Simplify
19447         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
19448         GEU/LTU reversed.
19450         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
19451         changed.  Use this when trying to improve the upper bound.
19452         Generate the comparison by using simplify_gen_relational.
19454         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
19456         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
19457         functions.
19458         (simplify_using_assignment, simplify_using_initial_values): Call
19459         replace_in_expr to make replacements.  Call replace_single_def_regs
19460         once on the initial version of the expression.
19462 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19464         PR target/27237
19465         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
19467 2009-03-31  Richard Guenther  <rguenther@suse.de>
19469         PR middle-end/31029
19470         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
19471         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
19473 2009-03-31  Richard Guenther  <rguenther@suse.de>
19475         * tree.h (div_if_zero_remainder): Declare.
19476         * fold-const.c (div_if_zero_remainder): Export.
19477         * tree-ssa-forwprop.c
19478         (forward_propagate_addr_into_variable_array_index): Handle
19479         constant array index addition outside of the variable index.
19481 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19483         PR target/39592
19484         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
19485         define_splits, floatunssi<mode>2): Require x87 conversions from
19486         DImode to be permitted.
19488 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19490         PR preprocessor/15638
19491         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
19493 2009-03-31  Richard Guenther  <rguenther@suse.de>
19495         PR middle-end/23401
19496         PR middle-end/27810
19497         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
19498         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
19499         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
19500         a separate statement.
19501         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
19502         (lookup_tmp_var): Likewise.
19503         (is_gimple_formal_tmp_or_call_rhs): Remove.
19504         (is_gimple_reg_or_call_rhs): Rename to ...
19505         (is_gimple_reg_rhs_or_call): ... this.
19506         (is_gimple_mem_or_call_rhs): Rename to ...
19507         (is_gimple_mem_rhs_or_call): ... this.
19508         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
19509         DECL_GIMPLE_REG_P only if is_formal is true.
19510         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
19511         for non-proper post-modify expression gimplification.
19512         (gimplify_self_mod_expr): For post-modify expressions gimplify
19513         the lvalue to a minimal lvalue.
19514         (rhs_predicate_for): Remove formal temp case.
19515         (gimplify_modify_expr_rhs): Likewise.
19516         (gimplify_addr_expr): Use is_gimple_reg.
19517         (gimplify_expr): Remove formal temp cases.
19518         (gimple_regimplify_operands): Likewise.
19519         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
19520         and FILTER_EXPR like constants.
19521         * gimple.c (walk_gimple_op): Fix val_only initialization, use
19522         is_gimple_reg.
19523         (is_gimple_formal_tmp_rhs): Remove.
19524         (is_gimple_reg_rhs): Remove special casing.
19525         (is_gimple_mem_rhs): Fix.
19526         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
19527         (is_gimple_formal_tmp_var): Remove.
19528         (is_gimple_formal_tmp_reg): Likewise.
19529         (is_gimple_min_lval): Allow invariant component ref parts.
19530         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
19531         is_gimple_formal_tmp_reg): Remove declarations.
19532         * tree-cfg.c (verify_expr): Verify that variables with address
19533         taken do not have DECL_GIMPLE_REG_P set.
19534         * tree-mudflap.c (mf_build_check_statement_for): Use
19535         force_gimple_operand instead of gimplify_expr.
19537 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
19539         * modulo-sched.c (sms_schedule_by_order): Pass the actual
19540         schedulable rows to compute_split_row.
19542 2009-03-31  Ben Elliston  <bje@au.ibm.com>
19544         PR target/31635
19545         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
19546         OPT_mvrsave.
19548 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
19550         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
19551         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
19552         * configure: Regenerate.
19553         * config.in: Regenerate.
19554         * config/rs6000/rs6000.opt (mtls-markers): Add.
19555         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
19556         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
19557         (tls_ld_aix, tls_ld_sysv): Likewise.
19558         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
19559         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
19561 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
19563         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
19565 2009-03-30  Jan Hubicka  <jh@suse.cz>
19567         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
19568         out of RESX.
19569         (tree_remove_unreachable_handlers): Cleanup EH predecestor
19570         detection and label handling.
19572 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19574         * ira-int.h (ira_allocno): Rename left_conflicts_num to
19575         left_conflicts_size.
19576         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
19577         ALLOCNO_LEFT_CONFLICTS_SIZE.
19579         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
19580         remove_allocno_from_bucket_and_push,
19581         allocno_spill_priority_compare, push_allocnos_to_stack,
19582         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19583         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
19584         (setup_allocno_left_conflicts_num): Ditto.  Rename to
19585         setup_allocno_left_conflicts_size.
19586         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19587         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
19588         setup_allocno_left_conflicts_size instead of
19589         setup_allocno_left_conflicts_num.
19591         * ira-build.c (ira_create_allocno): Use
19592         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
19593         ALLOCNO_LEFT_CONFLICTS_NUM.
19595 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19597         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
19598         instead of DF_LR_OUT.
19600         * ira-lives.c (process_bb_node_lives): Ditto.
19602         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
19603         instead of DF_LR_{OUT,IN}.
19605         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
19607         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
19609 2009-03-30  Jan Hubicka  <jh@suse.cz>
19611         * except.c (label_to_region_map): Fix thinko.
19613 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
19615         PR middle-end/38237
19616         * tree.h (tree_find_value): New declaration.
19617         * tree.c (tree_find_value): New function.
19618         * varasm.c (assemble_external): Avoid duplicate entries on lists.
19620 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
19622         PR debug/39563
19623         * c-decl.c (struct c_binding): Add locus field.
19624         (bind): Add locus argument, set locus field from it.
19625         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
19626         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
19627         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
19628         implicitly_declare, undeclared_variable, lookup_label,
19629         declare_label, c_make_fname_decl, c_builtin_function,
19630         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
19631         bind callers.
19633 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19635         PR target/38781
19636         * config/i386/i386.c (classify_argument): Check total size of
19637         structure.
19639 2009-03-30  Martin Jambor  <mjambor@suse.cz>
19641         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
19642         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
19643         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
19644         respectively.
19646         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
19647         seen_variable_array_ref while also traversing a union.
19649         * tree-inline.c (optimize_inline_calls): Do not call
19650         cgraph_node_remove_callees.
19651         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
19652         (pass_remove_cgraph_callee_edges): New variable.
19653         * passes.c (init_optimization_passes): Add
19654         pass_remove_cgraph_callee_edges after early inlining and before all
19655         late intraprocedural passes.
19657         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
19659 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19661         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
19662         Fix typos in names.
19664 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19666         * combine.c (simplify_comparison): Use have_insn_for.
19667         * dojump.c (do_jump): Likewise.
19669 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19671         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
19672         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
19673         sparc_compare_op0 like sparc_compare_emitted used to be handled.
19674         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
19675         instead of sparc_compare_emitted.
19676         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
19677         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
19678         instead of sparc_compare_emitted.
19680 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19682         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
19683         enter/exit cfglayout mode.
19684         (pass_partition_block): Require it.
19685         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
19686         (combine_instructions): Track basic blocks instead of labels.
19687         (update_cfg_for_uncondjump): New.
19688         (try_combine): Use it.  Update jumps after rescanning.
19689         (pass_combine): Require PROP_cfglayout.
19690         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
19692 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19694         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
19695         Provide/destroy PROP_cfglayout respectively.
19696         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
19697         * tree-pass.h (PROP_cfglayout): New.
19699 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19701         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
19702         fold_convert_const_fixed_from_fixed,
19703         fold_convert_const_fixed_from_int,
19704         fold_convert_const_fixed_from_real, fold_negate_const): Do not
19705         set TREE_CONSTANT_OVERFLOW.
19706         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
19707         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
19709 2009-03-30  Ira Rosen  <irar@il.ibm.com>
19711         * tree-vect-loop-manip.c: New file.
19712         * tree-vectorizer.c: Update documentation and included files.
19713         (vect_loop_location): Make extern.
19714         (rename_use_op): Move to tree-vect-loop-manip.c
19715         (rename_variables_in_bb, rename_variables_in_loop,
19716         slpeel_update_phis_for_duplicate_loop,
19717         slpeel_update_phi_nodes_for_guard1,
19718         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
19719         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
19720         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
19721         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
19722         find_loop_location): Likewise.
19723         (new_stmt_vec_info): Move to tree-vect-stmts.c.
19724         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
19725         get_vectype_for_scalar_type, vect_is_simple_use,
19726         supportable_widening_operation, supportable_narrowing_operation):
19727         Likewise.
19728         (bb_in_loop_p): Move to tree-vect-loop.c.
19729         (new_loop_vec_info, destroy_loop_vec_info,
19730         reduction_code_for_scalar_code, report_vect_op,
19731         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
19732         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
19733         (vect_supportable_dr_alignment): Likewise.
19734         * tree-vectorizer.h (tree-data-ref.h): Include.
19735         (vect_loop_location): Declare.
19736         Reorganize function declarations according to the new file structure.
19737         * tree-vect-loop.c: New file.
19738         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
19739         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
19740         * tree-vect-data-refs.c: New file.
19741         * tree-vect-patterns.c (timevar.h): Don't include.
19742         * tree-vect-stmts.c: New file.
19743         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
19744         tree-vect-slp.c, tree-vect-loop.c.
19745         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
19746         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
19747         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
19748         (tree-vect-analyze.o): Remove.
19749         (tree-vect-transform.o): Likewise.
19750         (tree-vect-data-refs.o): Add rule.
19751         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
19752         tree-vect-slp.o): Likewise.
19753         (tree-vect-patterns.o): Remove redundant dependencies.
19754         (tree-vectorizer.o): Likewise.
19755         * tree-vect-slp.c: New file.
19757 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19759         * optc-gen.awk: Warn if an option flag has multiple different
19760         help strings.
19762 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19764         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
19765         -floop-block): Document dependences on PPL, CLooG and Graphite.
19767 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
19769         PR rtl-optimization/323
19770         * c-common.c (c_fully_fold, convert_and_check,
19771         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
19772         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
19773         * c-common.def (EXCESS_PRECISION_EXPR): New.
19774         * c-cppbuiltin.c (builtin_define_float_constants): Define
19775         constants with enough digits for long double.
19776         * c-lex.c (interpret_float): Interpret constant with excess
19777         precision where appropriate.
19778         * c-opts.c (c_common_post_options): Set
19779         flag_excess_precision_cmdline.  Give an error for
19780         -fexcess-precision=standard for C++ for processors where the
19781         option is significant.
19782         * c-parser.c (c_parser_conditional_expression): Handle excess
19783         precision in condition.
19784         * c-typeck.c (convert_arguments): Handle arguments with excess
19785         precision.
19786         (build_unary_op): Move excess precision outside operation.
19787         (build_conditional_expr): Likewise.
19788         (build_compound_expr): Likewise.
19789         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
19790         (build_modify_expr): Handle excess precision in RHS.
19791         (convert_for_assignment): Handle excess precision in converted
19792         value.
19793         (digest_init, output_init_element, process_init_element): Handle
19794         excess precision in initializer.
19795         (c_finish_return): Handle excess precision in return value.
19796         (build_binary_op): Handle excess precision in operands and add
19797         excess precision as needed for operation.
19798         * common.opt (-fexcess-precision=): New option.
19799         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
19800         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
19801         For standard excess precision, output explicit conversion to and
19802         truncation from XFmode.
19803         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
19804         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
19805         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
19806         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
19807         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
19808         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
19809         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
19810         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
19811         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
19812         define_splits, sqrt<mode>2): Disable where appropriate for
19813         standard excess precision.
19814         * convert.c (convert_to_real): Do not shorten arithmetic to type
19815         for which excess precision would be used.
19816         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
19817         * doc/invoke.texi (-fexcess-precision=): Document option.
19818         (-mfpmath=): Correct index entry.
19819         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
19820         flag_excess_precision): New.
19821         * langhooks.c (lhd_post_options): Set
19822         flag_excess_precision_cmdline.
19823         * opts.c (common_handle_option): Handle -fexcess-precision=.
19824         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
19825         init_excess_precision): New.
19826         (lang_dependent_init_target): Call init_excess_precision.
19827         * tree.c (excess_precision_type): New.
19828         * tree.h (excess_precision_type): Declare.
19830 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
19832         PR c/35235
19833         * c-typeck.c (build_component_ref): Do not copy qualifiers from
19834         non-lvalue to component.
19836 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
19838         PR preprocessor/34695
19839         * Makefile.in (c-opts.o): Depend on c-tree.h.
19840         * c-common.c: Move down include of diagnostic.h.
19841         (done_lexing, c_cpp_error): New.
19842         * c-common.h (done_lexing): Declare.
19843         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
19844         (parse_in).
19845         * c-opts.c: Include c-tree.h.
19846         (c_common_init_options): Set preprocessor error callback.
19847         (c_common_handle_option): Do not set preprocessor
19848         inhibit_warnings, warnings_are_errors, warn_system_headers,
19849         pedantic_errors or inhibit_warnings flags.
19850         (c_common_post_options): Do not check cpp_errors (parse_in).
19851         (c_common_finish): Do not output dependencies if there were
19852         errors.  Do not check return value of cpp_finish.
19853         * c-ppoutput.c (pp_file_change): Set input_location.
19854         * c-tree.h (c_cpp_error): Declare.
19855         * diagnostic.c (diagnostic_set_info_translated): Also initialize
19856         override_column.
19857         (diagnostic_build_prefix): Check override_column.
19858         * diagnostic.h (diagnostic_info): Add override_column field.
19859         (diagnostic_override_column): Define.
19861 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
19863         * c-common.c (c_expand_expr, c_staticp): Remove.
19864         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
19865         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
19866         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
19867         * c-gimplify.c (gimplify_compound_literal_expr,
19868         optimize_compound_literals_in_ctor): Remove.
19869         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
19870         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
19871         * c-semantics.c (emit_local_var): Remove.
19873         * langhooks-def.h (lhd_expand_expr): Remove.
19874         * langhooks.c (lhd_expand_expr): Remove.
19875         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
19877         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
19878         handling from c-semantics.c; don't call into langhook.
19879         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
19880         * gimplify.c (gimplify_compound_literal_expr,
19881         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
19882         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
19883         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
19884         as was done in c-gimplify.c.
19885         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
19886         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
19887         Move from c-common.h.
19888         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
19890         * tree.c (staticp): Do not call langhook.
19891         * langhooks.c (lhd_staticp): Delete.
19892         * langhooks-def.h (lhd_staticp): Delete prototype.
19893         (LANG_HOOKS_STATICP): Delete.
19894         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
19896         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
19897         instead of DECL_STMTs.
19899 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
19901         PR c/456
19902         PR c/5675
19903         PR c/19976
19904         PR c/29116
19905         PR c/31871
19906         PR c/35198
19907         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
19908         void_type_node.
19909         (fold_call_expr): Return a NOP_EXPR from folding rather than the
19910         contained expression.
19911         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
19912         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
19913         conditional expressions for C.
19914         (decl_constant_value_for_optimization): Move from
19915         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
19916         whether optimizing and that the expression is a VAR_DECL not of
19917         array type instead of doing such checks in the caller.  Do not
19918         check pedantic.  Call gcc_unreachable for C++.
19919         * c-common.def (C_MAYBE_CONST_EXPR): New.
19920         * c-common.h (c_fully_fold, c_save_expr,
19921         decl_constant_value_for_optimization): New prototypes.
19922         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
19923         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
19924         EXPR_INT_CONST_OPERANDS): Define.
19925         * c-convert.c (convert): Strip nops from expression.
19926         * c-decl.c (groktypename): Take extra parameters expr and
19927         expr_const_operands.  Update call to grokdeclarator.
19928         (start_decl): Update call to grokdeclarator.  Add statement for
19929         expressions used in type of decl.
19930         (grokparm): Update call to grokdeclarator.
19931         (push_parm_decl): Update call to grokdeclarator.
19932         (build_compound_literal): Add parameter non_const and build a
19933         C_MAYBE_COSNT_EXPR if applicable.
19934         (grokdeclarator): Take extra parameters expr and
19935         expr_const_operands.  Track expressions used in declaration
19936         specifiers and declarators.  Fold array sizes and track whether
19937         they are constant expressions and whether they are integer
19938         constant expressions.
19939         (parser_xref_tag): Set expr and expr_const_operands fields in
19940         return value.
19941         (grokfield): Update call to grokdeclarator.
19942         (start_function): Update call to grokdeclarator.
19943         (build_null_declspecs): Set expr and expr_const_operands fields in
19944         return value.
19945         (declspecs_add_type): Handle expressions in typeof specifiers.
19946         * c-parser.c (c_parser_declspecs): Set expr and
19947         expr_const_operands fields for declaration specifiers.
19948         (c_parser_enum_specifier): Likewise.
19949         (c_parser_struct_or_union_specifier): Likewise.
19950         (c_parser_typeof_specifier): Likewise.  Update call to
19951         groktypename.  Fold expression as needed.  Return expressions with
19952         type instead of adding statements.
19953         (c_parser_attributes): Update calls to c_parser_expr_list.
19954         (c_parser_statement_after_labels): Fold expression before passing
19955         to objc_build_throw_stmt.
19956         (c_parser_condition): Fold expression.
19957         (c_parser_asm_operands): Fold expression.
19958         (c_parser_conditional_expression): Use c_save_expr.  Update call
19959         to build_conditional_expr.
19960         (c_parser_alignof_expression): Update call to groktypename.
19961         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
19962         original_code.  Fold expression argument of va_arg.  Create
19963         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
19964         argument to va_arg.  Update calls to groktypename.  Fold array
19965         index for offsetof.  Verify that first argument to
19966         __builtin_choose_expr has integer type.
19967         (c_parser_postfix_expression_after_paren_type): Update calls to
19968         groktypename and build_compound_literal.  Handle expressions with
19969         side effects in type name.
19970         (c_parser_postfix_expression_after_primary): Update call to
19971         c_parser_expr_list.  Set original_code for calls to
19972         __builtin_constant_p.
19973         (c_parser_expr_list): Take extra parameter fold_p.  Fold
19974         expressions if requested.
19975         (c_parser_objc_type_name): Update call to groktypename.
19976         (c_parser_objc_synchronized_statement): Fold expression.
19977         (c_parser_objc_receiver): Fold expression.
19978         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
19979         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
19980         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
19981         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
19982         (struct c_typespec): Add elements expr and expr_const_operands.
19983         (struct c_declspecs): Add elements expr and expr_const_operands.
19984         (groktypename, build_conditional_expr, build_compound_literal):
19985         Update prototypes.
19986         (in_late_binary_op): Declare.
19987         * c-typeck.c (note_integer_operands): New function.
19988         (in_late_binary_op): New variable.
19989         (decl_constant_value_for_broken_optimization): Move to c-common.c
19990         and rename to decl_constant_value_for_optimization.
19991         (default_function_array_conversion): Do not strip nops.
19992         (default_conversion): Do not call
19993         decl_constant_value_for_broken_optimization.
19994         (build_array_ref): Do not fold result.
19995         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
19996         result when operand is a VLA.
19997         (c_expr_sizeof_type): Update call to groktypename.  Handle
19998         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
19999         result when operand names a VLA type.
20000         (build_function_call): Update call to build_compound_literal.
20001         Only fold result for calls to __builtin_* functions.  Strip
20002         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
20003         the function designator.
20004         (convert_arguments): Fold arguments.  Update call to
20005         convert_for_assignment.
20006         (build_unary_op): Handle increment and decrement of
20007         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
20008         decrement earlier.  Fold operand of increment and decrement.
20009         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
20010         built for integer operand.  Wrap returns that are INTEGER_CSTs
20011         without being integer constant expressions or that have integer
20012         constant operands without being INTEGER_CSTs.
20013         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
20014         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
20015         result is an integer constant expression or can be used in
20016         unevaluated parts of one and avoid folding and wrap as
20017         appropriate.  Fold operands before possibly doing -Wsign-compare
20018         warnings.
20019         (build_compound_expr): Wrap result for C99 if operands can be used
20020         in integer constant expressions.
20021         (build_c_cast): Update call to digest_init.  Do not ignore
20022         overflow from casting floating-point constants to integers.  Wrap
20023         results that could be confused with integer constant expressions,
20024         null pointer constants or floating-point constants.
20025         (c_cast_expr): Update call to groktypename.  Handle expressions
20026         included in type name.
20027         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
20028         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
20029         Update calls to convert_for_assignment.
20030         (convert_for_assignment): Take new parameter
20031         null_pointer_constant.  Do not strip nops or call
20032         decl_constant_value_for_broken_optimization.  Set
20033         in_late_binary_op for conversions to boolean.
20034         (store_init_value): Update call to digest_init.
20035         (digest_init): Take new parameter null_pointer_constant.  Do not
20036         call decl_constant_value_for_broken_optimization.  pedwarn for
20037         initializers not constant expressions.  Update calls to
20038         convert_for_assignment.
20039         (constructor_nonconst): New.
20040         (struct constructor_stack): Add nonconst element.
20041         (really_start_incremental_init, push_init_level, pop_init_level):
20042         Handle constructor_nonconst and nonconst element.
20043         (set_init_index): Call constant_expression_warning for array
20044         designators.
20045         (output_init_element): Fold value.  Set constructor_nonconst as
20046         applicable.  pedwarn for initializers not constant expressions.
20047         Update call to digest_init.  Call constant_expression_warning
20048         where constant initializers are required.
20049         (process_init_element): Use c_save_expr.
20050         (c_finish_goto_ptr): Fold expression.
20051         (c_finish_return): Fold return value.  Update call to
20052         convert_for_assignment.
20053         (c_start_case): Fold switch expression.
20054         (c_process_expr_stmt): Fold expression.
20055         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
20056         ensure statement expression is not evaluated in constant expression.
20057         (build_binary_op): Track whether results are integer constant
20058         expressions or may occur in such, disable folding and wrap results
20059         as applicable.  Fold operands for -Wsign-compare warnings unless
20060         in_late_binary_op.
20061         (c_objc_common_truthvalue_conversion): Handle results folded to
20062         integer constants that are not integer constant expressions.
20063         * doc/extend.texi: Document when typeof operands are evaluated,
20064         that condition of __builtin_choose_expr is an integer constant
20065         expression, and more about use of __builtin_constant_p in
20066         initializers.
20068 2009-03-29  Richard Guenther  <rguenther@suse.de>
20070         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
20071         propagate addresses of array references.
20073 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
20075         * regmove.c (perhaps_ends_bb_p): Remove.
20076         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
20077         from INSN and check that the main loop stays within that basic block.
20078         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
20079         (regmove_forward_pass): Split out from regmove_optimize.  Use
20080         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
20081         (regmove_backward_pass): Split out from regmove_optimize.  Use
20082         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
20083         (regmove_optimize): Simplify.
20085 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
20087         PR target/39545
20088         * config/i386/i386.c (classify_argument): Ignore flexible array
20089         member in struct and warn ABI change.
20091 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
20093         * config/i386/i386-protos.h (ix86_agi_dependent): New.
20095         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
20096         (ix86_adjust_cost): Updated.
20098 2009-03-29  Jan Hubicka  <jh@suse.cz>
20100         PR middle-end/28850
20101         * tree-pass.h (pass_cleanup_eh): New function.
20102         (remove_unreachable_regions): Break code handling RTL
20103         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
20104         that can not be reached by runtime.
20105         (can_be_reached_by_runtime): New function.
20106         (label_to_region_map): New function.
20107         (num_eh_regions): New function.
20108         (rtl_remove_unreachable_regions): New function.
20109         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
20110         (remove_eh_region): New function.
20111         * except.h: Include sbitmap and vecprim.
20112         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
20113         num_eh_regions): Declare.
20114         * passes.c (init_optimization_passes): Schedule cleanup_eh.
20115         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
20116         * tree-eh.c (tree_remove_unreachable_handlers): New function.
20117         (tree_empty_eh_handler_p): New function.
20118         (cleanup_empty_eh): New function.
20119         (cleanup_eh): New function.
20120         (pass_cleanup_eh): New function.
20122 2009-03-29  Jan Hubicka  <jh@suse.cz>
20124         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
20125         for removed regions.
20127 2009-03-29  Jan Hubicka  <jh@suse.cz>
20129         * except.c (dump_eh_tree): Dump all datastructures.
20131 2009-03-29  Jan Hubicka  <jh@suse.cz>
20133         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
20134         (duplicate_eh_regions_1): Likewise.
20135         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
20136         vector; call EH verification.
20137         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20138         Be ready for region being removed.
20140 2009-03-29  Jan Hubicka  <jh@suse.cz>
20142         * bitmap.c (bitmap_last_set_bit): New function.
20143         * bitmap.h (bitmap_last_set_bit): Declare.
20145 2009-03-29  David Ayers  <ayers@fsfe.org>
20147         PR objc/27377
20148         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
20149         by calling objc_compare_types and surpress warnings about
20150         incompatible C pointers that are compatible ObjC pointers.
20152 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
20154         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
20155         call initialize_inline_failed.
20156         (initialize_inline_failed): Move it from here ...
20157         * cgraph.c (initialize_inline_failed): ... to here.
20158         (cgraph_create_edge): Call initialize_inline_failed rather than
20159         setting inline_failed directly.
20161 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20163         PR target/32542
20164         * sysv4.opt (msdata): Improve comment.
20165         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
20166         * sysv4.h (SVR4_ASM_SPEC): Likewise.
20168 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20170         PR target/30451
20171         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
20172         load and store attributes.
20174 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20176         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
20177         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
20178         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
20179         * doc/extend.texi (X86 Built-in Functions): Add index entries for
20180         __builtin_infq and __builtin_huge_valq.
20182 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
20184         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
20185         atmega8m1 devices.
20186         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20187         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
20189 2009-03-28  Xinliang David Li  <davidxl@google.com>
20191         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
20192         (do_dbg_cnt): New function.
20194 2009-03-28  Jan Hubicka  <jh@suse.cz>
20196         Merge from pretty-ipa:
20198         2009-03-27  Jan Hubicka  <jh@suse.cz>
20200         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20201         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
20202         * passes.c (function_called_by_processed_nodes_p): New.
20203         * ipa-pure-const.c (check_call): Fix handling of operands.
20204         (analyze_function): Dump debug output for skipped bodies.
20205         (local_pure_const): Use function_called_by_processed_nodes_p.
20206         * dwarf2out.c (reference_to_unused): Use output.
20207         * passes.c (do_per_function_toporder): Likewise.
20209         2008-11-12  Jan Hubicka  <jh@suse.cz>
20211         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
20212         * ipa-pure-const.c (funct_state_d): Add can throw field; make
20213         state_set_in_source enum
20214         (check_decl): Ignore memory tags; do not set fake looping flags;
20215         dump diagnostics.
20216         (check_operand, check_tree, check_rhs_var, check_lhs_var,
20217         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
20218         (check_call, analyze_function): Rewrite.
20219         (check_stmt): New.
20220         (add_new_function): Update call of analyze_function.
20221         (generate_summary): Add call of analyze_function.
20222         (propagate): Propagate can_throw; handle state_set_in_source correctly.
20223         (local_pure_const): New function.
20224         (pass_local_pure_const): New pass.
20225         * ipa-inline.c (inline_transform): Set after_inlining.
20226         * tree-eh.c (stmt_can_throw_external): New.
20227         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
20228         work with aliasing built.
20229         * tree-flow.h (stmt_can_throw_external): New.
20230         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
20231         and local pure/const pass in early and late optimization queue.
20233 2009-03-28  Martin Jambor  <mjambor@suse.cz>
20235         * fold-const.c (get_pointer_modulus_and_residue): New parameter
20236         allow_func_align.
20237         (fold_binary): Allow function decl aligment consideration is the
20238         second argument is integer constant one.
20239         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
20240         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
20241         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
20243 2009-03-28  Jan Hubicka  <jh@suse.cz>
20245         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
20246         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
20247         * function.h (rtl_data): Add nothrow flag.
20248         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
20249         set DECL_NOTHROW for AVAILABLE functions.
20251 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
20253         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
20254         following vector keyword has expansion starting with pixel or bool
20255         keyword, expand vector to __vector and pixel or bool to __pixel or
20256         __bool.
20258         PR c++/39554
20259         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
20260         warn_if_disallowed_function_p): Removed.
20261         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
20262         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
20263         warning_if_disallowed_function_p.
20264         * flags.h (warn_if_disallowed_function_p,
20265         warn_disallowed_functions): Removed.
20266         * common.opt (Wdisallowed-function-list=): Removed.
20267         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
20269 2009-03-28  Richard Guenther  <rguenther@suse.de>
20271         PR tree-optimization/38723
20272         * tree-ssa-pre.c (compute_avail): Add all default definitions to
20273         the entry block.
20275 2009-03-28  Jan Hubicka  <jh@suse.cz>
20277         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
20278         test introduced by my previous patch.
20280 2009-03-28  Richard Guenther  <rguenther@suse.de>
20282         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
20283         the PHIs value undefined.
20285 2009-03-28  Jan Hubicka  <jh@suse.cz>
20287         * tree-pass.h (pass_fixup_cfg): New pass.
20288         * ipa-inline.c (inline_transform): Set
20289         always_inline_functions_inlined/after_inlining.
20290         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
20291         (pass_fixup_cfg): New pass.
20292         * passes.c (init_optimization_passes): Add fixup_cfg.
20294 2009-03-28  Richard Guenther  <rguenther@suse.de>
20296         PR tree-optimization/38458
20297         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
20298         argument use the arguments copy-of value.
20300 2009-03-28  Richard Guenther  <rguenther@suse.de>
20302         PR tree-optimization/38180
20303         * tree-ssa-ccp.c (get_default_value): Simplify.
20304         (likely_value): Likewise.
20305         (surely_varying_stmt_p): Properly handle VOP case.
20306         (ccp_initialize): Likewise.
20307         (ccp_fold): Handle propagating through *&.
20308         (fold_const_aggregate_ref): Also handle decls.
20310 2009-03-28  Jan Hubicka  <jh@suse.cz>
20312         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20313         * cgraph.h (cgraph_node): Likewise.
20314         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
20315         (cgraph_reset_node): Use process flag.
20316         (cgraph_mark_functions_to_output): Likewise.
20317         (cgraph_expand_function): Likewise.
20318         (cgraph_expand_all_functions): Likewise.
20319         (cgraph_output_in_order): Likewise.
20320         * dwarf2out.c (reference_to_unused): Likewise.
20321         * passes.c do_per_function_toporder): Likewise.
20323 2009-03-28  Jan Hubicka  <jh@suse.cz>
20325         Bring from lto-branch:
20327         2008-09-03  Doug Kwan  <dougkwan@google.com>
20329         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
20330         enums instead of reason strings.
20331         * cgraph.c (cgraph_create_edge): Same.
20332         (cgraph_inline_failed_string): New function.
20333         * cgraph.h (cgraph_inline_failed_t): New enum type.
20334         (cgraph_inline_failed_string): New prototype.
20335         (struct cgraph_edge): Change type of INLINED_FAILED from constant
20336         char pointer to cgraph_inline_failed_t.
20337         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
20338         (cgraph_default_inline_p): Ditto.
20339         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
20340         to cgraph_inline_failed_t pointer.
20341         * cif-code.def: New file.
20342         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
20343         reason string.
20344         (cgraph_check_inline_limits): Change type of REASON to pointer to
20345         cgraph_inline_failed_t.  Replace reason strings with enums.
20346         (cgraph_default_inline_p): Ditto.
20347         (cgraph_recursive_inlining_p): Ditto.
20348         (update_caller_keys): Change type of FAILED_REASON to
20349         cgraph_inline_failed_t.
20350         (cgraph_set_inline_failed): Change type of REASON to pointer to
20351         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
20352         convert enums to strings for text output.
20353         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
20354         to be of type cgraph_inline_failed_t.  Replace reason strings with
20355         enums.  Call cgraph_inline_failed_string to covert enums
20356         to strings for text output.
20357         (cgraph_decide_inlining): Replace reason strings with enums.
20358         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
20359         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
20360         for text output.
20361         * tree-inline.c (expand_call_inline): Change type of REASON
20362         to cgraph_inline_failed_t.  Replace reason strings with enums.
20363         Call cgraph_inline_failed_string for text output.
20364         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
20365         (cgraph.o): Ditto.
20367 2009-03-28  Jan Hubicka  <jh@suse.cz>
20369         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
20370         cgraph_clone_node): Remove master clone handling.
20371         (cgraph_is_master_clone, cgraph_master_clone): Remove.
20372         * cgraph.h (master_clone): Remove.
20373         (cgraph_is_master_clone, cgraph_master_clone): Remove.
20374         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
20375         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
20377 2009-03-28  Jan Hubicka  <jh@suse.cz>
20379         * cgraph.c (cgraph_function_body_availability): Functions declared
20380         inline are always safe to assume that it is not going to be replaced.
20382 2009-03-28  Richard Guenther  <rguenther@suse.de>
20384         PR tree-optimization/38513
20385         * tree-ssa-pre.c (eliminate): Remove redundant stores.
20386         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
20387         EXC_PTR_EXPR and FILTER_EXPR.
20388         (get_ref_from_reference_ops): Likewise.
20390 2009-03-28  Richard Guenther  <rguenther@suse.de>
20392         PR tree-optimization/38968
20393         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
20394         Use FLOOR_MOD_EXPR to compute misalignment.
20396 2009-03-28  Richard Guenther  <rguenther@suse.de>
20398         PR tree-optimization/37795
20399         * tree.h (combine_comparisons): Declare.
20400         * fold-const.c (combine_comparisons): Export.
20401         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
20402         comparisons.
20403         (ifcombine_iforif): Use combine_comparisons.
20405 2009-03-28  Jan Hubicka  <jh@suse.cz>
20407         * tree-eh.c (inlinable_call_p): New function.
20408         (make_eh_edges): Use it.
20409         (verify_eh_edges): Use it.
20410         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
20411         * except.c (reachable_next_level): Add inlinable_function argument
20412         (sjlj_find_directly_reachable_regions): Update.
20413         (add_reachable_handler): Do not set saw_any_handlers.
20414         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
20415         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20416         Add new inlinable call parameter.
20417         (can_throw_internal, can_throw_external): Update.
20418         * except.h (can_throw_internal_1, can_throw_external_1,
20419         foreach_reachable_handler): Update declaration.
20421 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
20423         * config/arm/t-arm-coff, config/h8300/coff.h,
20424         config/i386/i386-aout.h, config/i386/i386-coff.h,
20425         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
20426         config/pdp11/2bsd.h, config/rs6000/aix41.h,
20427         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
20428         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
20429         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
20430         sys-types.h: Remove.
20431         * Makefile.in: Remove protoize and fixproto support and references
20432         in comments.
20433         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
20434         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
20435         Remove.
20436         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
20437         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
20438         unprotoize$(exeext).
20439         (rest.encap): Don't depend on $(STMP_FIXPROTO)
20440         (.PHONY): Don't depend on proto.
20441         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
20442         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
20443         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
20444         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
20445         build/gen-protos.o, build/scan.o, xsys-protos.h,
20446         build/fix-header$(build_exeext), build/fix-header.o,
20447         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
20448         stmp-install-fixproto): Remove.
20449         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
20450         SYSCALLS.c or fixproto files.
20451         (install-common): Don't install protoize.
20452         (install-headers-tar, install-headers-cpio, install-headers-cp):
20453         Don't depend on $(STMP_FIXPROTO).
20454         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
20455         install fixproto files or write out fixproto settings.
20456         (uninstall): Don't uninstall protoize.
20457         * config.gcc (use_fixproto): Remove.
20458         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
20459         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
20460         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
20461         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
20462         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
20463         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
20464         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
20465         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
20466         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
20467         * config/t-vxworks (STMP_FIXPROTO): Remove.
20468         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
20469         STMP_FIXPROTO): Remove.
20470         * config.in, configure: Regenerate.
20471         * crtstuff.c (gid_t, uid_t): Don't undefine.
20472         * doc/install.texi: Change m68k-coff to m68k-elf in example.
20473         (arm-*-coff, arm-*-aout: Remove target entries.
20474         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
20475         Remove mention of AIX 4.1.
20476         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
20477         * doc/invoke.texi (Running Protoize): Remove.
20478         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
20479         (Protoize Caveats): Remove.
20480         * tsystem.h: Update comments on headers assumed to exist.
20482 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
20484         * genautomata.c: Add a new year to the copyright.  Add a new
20485         reference.
20486         (struct insn_reserv_decl): Add comments for member bypass_list.
20487         (find_bypass): Remove.
20488         (insert_bypass): New.
20489         (process_decls): Use insert_bypass.
20490         (output_internal_insn_latency_func): Output all bypasses with the
20491         same input insn in one switch case.
20493         * rtl.def (define_bypass): Describe bypass choice.
20494         * doc/md.texi (define_bypass): Ditto.
20496 2009-03-27  Richard Guenther  <rguenther@suse.de>
20498         * gimplify.c (mark_addressable): Export.
20499         * tree-flow.h (mark_addressable): Declare.
20500         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
20501         * tree-ssa.c (verify_phi_args): Verify that address taken
20502         variables have TREE_ADDRESSABLE set.
20504 2009-03-27  Richard Guenther  <rguenther@suse.de>
20506         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
20507         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
20508         Do not mark decls TREE_ADDRESSABLE.
20509         (build_fold_addr_expr): Adjust.
20510         (fold_addr_expr): Remove.
20511         (fold_unary): Use build_fold_addr_expr.
20512         (fold_comparison): Likewise.
20513         (split_address_to_core_and_offset): Likewise.
20514         * coverage.c (tree_coverage_counter_addr): Mark the array decl
20515         TREE_ADDRESSABLE.
20516         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
20517         (gimplify_modify_expr_to_memcpy): Mark source and destination
20518         addressable.
20519         * omp-low.c (create_omp_child_function): Mark the object decl
20520         TREE_ADDRESSABLE.
20521         (lower_rec_input_clauses): Mark the var we take the address of
20522         TREE_ADDRESSABLE.
20523         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
20525 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20527         PR middle-end/39315
20528         * cfgexpand.c (expand_one_stack_var_at): Change alignment
20529         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
20531 2009-03-27  Richard Guenther  <rguenther@suse.de>
20533         PR tree-optimization/39120
20534         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
20535         constraints.
20536         (handle_lhs_call): Process return constraints.  Add escape
20537         constraints if necessary.
20538         (handle_const_call): Fill out return constraints.  Make nested
20539         case more precise.  Avoid consttmp if possible.
20540         (handle_pure_call): Fill out return constraints.  Avoid
20541         callused if possible.
20542         (find_func_aliases): Simplify call handling.
20544 2009-03-27  Richard Guenther  <rguenther@suse.de>
20546         PR tree-optimization/39120
20547         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
20548         as a representative.
20549         (solve_graph): Do propagate CALLUSED.
20550         (handle_pure_call): Use a scalar constraint from CALLUSED for
20551         the return value.
20552         (find_what_p_points_to): CALLUSED shall not appear in poins-to
20553         solutions.
20555 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20557         PR c/39323
20558         * c-common.c (handle_aligned_attribute): Properly check alignment
20559         overflow.  Use (1U << i) instead of (1 << i).
20561         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
20563         * expr.h (get_mem_align_offset): Updated.
20565         * tree.h (tree_decl_common): Change align to "unsigned int" and
20566         move it before pointer_alias_set.
20568 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20569             Jakub Jelinek  <jakub@redhat.com>
20571         PR target/38034
20572         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
20573         gr_register_operand with gr_reg_or_0_operand.
20574         (cmpxchg_rel_di): Likewise.
20575         (sync_lock_test_and_set<mode>): Likewise.
20577 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20579         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
20580         (true_regnum): Likewise.
20582         * rtlanal.c (subreg_info): Moved to ...
20583         * rtl.h (subreg_info): Here.  New.
20584         (subreg_get_info): New.
20586         * rtlanal.c (subreg_get_info): Make it extern.
20588 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20590         PR target/39472
20591         * config/i386/i386.c (ix86_abi): New.
20592         (override_options): Handle -mabi=.
20593         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
20594         (ix86_call_abi_override): Likewise.
20595         (init_cumulative_args): Likewise.
20596         (function_arg_advance): Likewise.
20597         (function_arg_64): Likewise.
20598         (function_arg): Likewise.
20599         (ix86_pass_by_reference): Likewise.
20600         (ix86_function_value_regno_p): Likewise.
20601         (ix86_build_builtin_va_list_abi): Likewise.
20602         (setup_incoming_varargs_64): Likewise.
20603         (is_va_list_char_pointer): Likewise.
20604         (ix86_init_machine_status): Likewise.
20605         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
20606         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
20607         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
20608         (ix86_function_abi): Make it static and return enum calling_abi.
20609         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
20610         with ix86_abi.
20611         (ix86_fn_abi_va_list): Updated.
20613         * config/i386/i386.h (ix86_abi): New.
20614         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
20615         (CONDITIONAL_REGISTER_USAGE): Likewise.
20616         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
20617         (machine_function): Likewise.
20619         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
20620         with ix86_abi.
20621         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
20622         (STACK_BOUNDARY): Likewise.
20623         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
20625         * config/i386/i386.opt (mabi=): New.
20627         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
20628         return enum calling_abi.
20629         (ix86_function_type_abi): Likewise.
20630         (ix86_function_abi): Removed.
20632         * doc/invoke.texi: Document -mabi= option for x86.
20634 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20636         * builtins.c (real_dconstp): Delete.
20637         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
20639 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
20640             Jakub Jelinek  <jakub@redhat.com>
20642         PR debug/37959
20643         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
20644         (gen_subprogram_die): When a function is explicit, generate the
20645         DW_AT_explicit attribute.
20646         * langhooks.h (struct lang_hooks_for_decls): Add
20647         function_decl_explicit_p langhook.
20648         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
20649         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
20651 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
20653         * builtins.c (fold_builtin_memory_op): Optimize memmove
20654         into memcpy if we can prove source and destination don't overlap.
20656         * tree-inline.c: Include gt-tree-inline.h.
20657         (clone_fn_id_num): New variable.
20658         (clone_function_name): New function.
20659         (tree_function_versioning): Use it.
20660         * Makefile.in (GTFILES): Add tree-inline.c.
20662 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
20664         * BASE-VER: Change to 4.5.0.
20666 2009-03-27  Xinliang David Li  <davidxl@google.com>
20668         PR tree-optimization/39557
20669         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
20671 2009-03-27  Xinliang David Li  <davidxl@google.com>
20673         PR tree-optimization/39548
20674         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
20675         candidate check.
20677 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20679         * c-common.c (pointer_int_sum): Use %wd on return from
20680         tree_low_cst.
20682 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20684         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
20685         on return from tree_low_cst.
20687 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20689         PR c++/36799
20690         * ginclude/stdarg.h (va_copy): Define also for
20691         __GXX_EXPERIMENTAL_CXX0X__.
20693 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20695         PR c++/35652
20696         * builtins.h (c_strlen): Do not warn here.
20697         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
20698         * c-common.c (pointer_int_sum): Take an explicit location.
20699         Warn about offsets out of bounds.
20700         * c-common.h (pointer_int_sum): Adjust declaration.
20702 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20704         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
20705         markup glitch.
20707 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
20709         PR c++/39554
20710         * opts.c (warn_if_disallowed_function_p): Don't assume
20711         get_callee_fndecl must return non-NULL.
20713 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
20715         PR rtl-optimization/39522
20716         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
20717         when reg_reloaded_valid is set.
20719 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20721         * config/spu/divv2df3.c: New file.
20722         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
20723         (DPBIT_FUNCS): Filter out _div_df.
20725 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
20727         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
20728         a jump insn, count that jump in the distance to the loop start.
20730 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
20732         PR target/39523
20733         * config/sh/sh.c (calc_live_regs): Fix condition for global
20734         registers except PIC_OFFSET_TABLE_REGNUM.
20736 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
20738         PR/39518
20739         * doc/invoke.texi (-mconsole): New.
20740         (-mcygwin): New.
20741         (-mno-cygwin): New.
20742         (-mdll): New.
20743         (-mnop-fun-dllimport): New.
20744         (-mthread): New.
20745         (-mwin32): New.
20746         (-mwindows): New.
20747         (sub section "i386 and x86-64 Windows Options"): New.
20749 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
20751         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
20752         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
20754 2009-03-25  Richard Guenther  <rguenther@suse.de>
20756         PR middle-end/39497
20757         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
20758         of -Wno-error.
20760 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
20762         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
20763         neither of haifa/selective schedulers are working.
20765 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20767         * doc/invoke.texi (Debugging Options): Fix description of
20768         -fno-merge-debug-strings.
20770 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
20772         * config/cris/libgcc.ver: New version-script.
20773         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
20775         * configure.ac <GAS features, nop mnemonic>: Add pattern
20776         crisv32-*-* for "nop".
20777         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
20778         * configure: Regenerate.
20780 2009-03-24  Ira Rosen  <irar@il.ibm.com>
20782         PR tree-optimization/39529
20783         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
20784         mark_sym_for_renaming for the tag copied to the new vector
20785         pointer.
20787 2009-03-24  Arthur Loiret  <aloiret@debian.org>
20789         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
20790         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
20791         EXTRA_SPEC_FUNCTIONS.
20792         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
20793         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
20794         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
20795         -march and -mtune options.
20797 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
20799         * config/m68k/t-rtems: Add m5329 multilib.
20801 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
20802             Jakub Jelinek  <jakub@redhat.com>
20804         PR debug/39524
20805         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
20806         nodes.
20808 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
20810         PR c/39495
20811         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
20812         instead of c_parser_expression_conv, if original_code isn't one of the
20813         4 allowed comparison codes, fail.
20815 2009-03-23  Richard Guenther  <rguenther@suse.de>
20817         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
20818         * tree.h (struct tree_type): Likewise.
20819         * reload.h (struct insn_chain): Likewise.
20820         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
20821         * function.h (struct function): Likewise.
20822         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
20824 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
20826         PR tree-optimization/39516
20827         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
20829 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
20831         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
20832         should be set true if BITS_PER_WORD of target is bigger than 32
20834 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
20836         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
20837         Translate -B-options to -rpath-link.  Correct existing
20838         rpath-link and conditionalize on !nostdlib.
20840 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20842         * doc/extend.texi (Function Attributes, Variable Attributes):
20843         Fix typos.
20844         * doc/invoke.texi (Debugging Options, Optimize Options)
20845         (i386 and x86-64 Options, MCore Options): Likewise.
20847 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
20849         PR debug/37890
20850         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
20851         it for block local namespace aliases.
20852         (gen_decl_die): Pass context_die to gen_namespace_die.
20854 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
20856         PR c/39495
20857         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
20858         minimum or maximum value.
20860 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
20862         * reginfo.c (globalize_reg): Recompute derived reg sets.
20864 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
20866         PR target/39063
20867         * libgcc2.c (mprotect): Do not use signed arguments for
20868         VirtualProtect, use DWORD arguments.  Also fix the 'may
20869         be used uninitialized' warning for the np variable.
20871 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
20873         PR target/39496
20874         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
20875         functions using regparm calling conventions when not optimizing.
20876         (ix86_function_sseregparm): Similarly for sseregparm calling
20877         conventions.
20879 2009-03-19  Li Feng  <nemokingdom@gmail.com>
20881         PR middle-end/39500
20882         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
20883         dependence if the first conflict is after niter iterations.
20885 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
20887         PR middle-end/38609
20888         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
20889         functions with dynamic stack-pointer adjustments.
20891 2009-03-19  Ben Elliston  <bje@au.ibm.com>
20893         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
20894         option; change to -msdata=data.
20896 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20898         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
20899         and -fopenmp.
20901 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
20903         PR target/35180
20904         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
20906 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
20908         * doc/invoke.texi (Code Gen Options): Expand discussion of
20909         -fno-common.
20911 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
20913         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
20914         * matrix-reorg.c (struct matrix_info): Likewise.
20915         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
20916         * rtl.h (struct mem_attrs): Likewise.
20917         * df.h (struct df): Likewise.
20918         * tree-data-ref.h (struct data_dependence_relation): Likewise.
20919         * ira-int.h (struct ira_allocno): Likewise.
20920         * df-scan.c (struct df_collection_rec): Likewise.
20921         * ira.c (struct equivalence): Likewise.
20922         * function.c (struct temp_slot): Likewise.
20923         * cfgloop.h (struct loop): Likewise.
20925         PR debug/39485
20926         * function.c (use_register_for_decl): When not optimizing, disregard
20927         register keyword for variables with types containing methods.
20929 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
20931         PR middle-end/39447
20932         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
20933         (is_simple_operand): Call contains_component_ref_p before calling data
20934         reference analysis that would fail on COMPONENT_REFs.
20936         * tree-vrp.c (search_for_addr_array): Fix formatting.
20938 2009-03-18  Richard Guenther  <rguenther@suse.de>
20940         * tree-vect-transform.c (vect_loop_versioning): Fold the
20941         generated comparisons.
20942         * tree-vectorizer.c (set_prologue_iterations): Likewise.
20943         (slpeel_tree_peel_loop_to_edge): Likewise.
20945 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20947         PR middle-end/37805
20948         * opts.c (print_specific_help): In addition to `undocumented',
20949         accept `separate' and `joined' flags if passed alone.  Describe
20950         output by the first matched one of those.
20951         (common_handle_option): Skip over empty strings.
20952         * gcc.c (display_help): Fix help string for `--help='.
20953         * doc/invoke.texi (Option Summary, Overall Options): With
20954         `--help=', classes and qualifiers can both be repeated, but
20955         only the latter can be negated.  One should not pass only
20956         negated qualifiers.  Fix markup and examples.
20958         Revert
20959         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
20960         PR middle-end/37805
20961         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
20962         and -fhelp=separate.
20964 2009-03-17  Jing Yu  <jingyu@google.com>
20966         PR middle-end/39378
20967         * function.h (struct rtl_data): Move is_thunk from here...
20968         (struct function): ...to here.
20969         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
20970         * varasm.c (assemble_start_function): Change is_thunk from crtl to
20971         cfun.
20972         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
20973         cfun.
20974         (alpha_does_function_need_gp, alpha_start_function): Likewise.
20975         (alpha_output_function_end_prologue): Likewise.
20976         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
20977         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
20978         (rs6000_output_function_epilogue): Likewise.
20979         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
20981 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
20983         PR target/39482
20984         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
20985         from different units in a single alternative.
20986         (*truncdfsf_i387): Ditto.
20987         (*truncxfsf2_mixed): Ditto.
20988         (*truncxfdf2_mixed): Ditto.
20990 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
20992         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
20993         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
20995         PR debug/39474
20996         * tree-ssa-live.c (remove_unused_locals): Don't remove local
20997         unused non-artificial variables when not optimizing.
20999         PR debug/39471
21000         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
21001         DW_TAG_imported_module even if decl is IMPORTED_DECL with
21002         NAMESPACE_DECL in its DECL_INITIAL.
21004         PR middle-end/39443
21005         * optabs.c (set_user_assembler_libfunc): New function.
21006         * expr.h (set_user_assembler_libfunc): New prototype.
21007         * c-common.c: Include libfuncs.h.
21008         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
21009         for memcmp, memset, memcpy, memmove and abort.
21010         * Makefile.in (c-common.o): Depend on libfuncs.h.
21012         PR debug/39412
21013         * dwarf2out.c (gen_inlined_enumeration_type_die,
21014         gen_inlined_structure_type_die, gen_inlined_union_type_die,
21015         gen_tagged_type_instantiation_die): Removed.
21016         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
21017         do nothing.
21019 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
21021         PR testsuite/38526
21022         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
21023         its use.
21024         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
21025         (check-parallel-%): Ditto.
21026         (check-consistency): Ditto.
21028 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
21030         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
21031         local variable rhs by NULL_TREE.
21033 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21035         PR target/39477
21036         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21038 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21040         PR target/39476
21041         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
21043 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21045         PR target/39473
21046         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
21047         for ms->sysv ABI calls only in 64bit mode.
21049         * config/i386/i386.md (untyped_call): Support 32bit.
21051 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21053         * doc/extend.texi: Replace x86_65 with x86_64.
21055 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
21057         PR tree-optimization/39455
21058         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
21059         mismatches for POINTER_TYPE_P (type).
21060         (number_of_iterations_le): Likewise.
21062 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
21064         * config/picochip/picochip.c: Removed profiling support.
21065         * config/picochip/picochip.md: Removed profiling instruction.
21066         * config/picochip/picochip.h: Removed profiling builtin.
21068 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
21070         * doc/install.texi (--with-host-libstdcxx): Document.
21072 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
21074         PR target/34299
21075         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
21076         generate a warning if the function name does not begin with
21077         "__vector" and the function has either the 'signal' or 'interrupt'
21078         attribute, from here to ...
21079         (avr_declare_function_name): ...here. New function.
21080         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
21081         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
21083 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
21085         PR bootstrap/39454
21086         * cse.c (fold_rtx): Don't modify original const_arg1 when
21087         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
21088         separate variable instead.
21089         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
21090         from out of range shift counts.
21091         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
21093 2009-03-13  Catherine Moore  <clm@codesourcery.com>
21095         * config/i386/x-mingw32 (host-mingw32.o): Replace
21096         diagnostic.h with $(DIAGNOSTIC_H).
21098 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
21100         PR target/39431
21101         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
21102         predicate.
21103         * config/i386/sync.md (sync_compare_and_swap<mode>,
21104         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
21105         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
21106         into a register.
21107         (sync_double_compare_and_swapdi_pic,
21108         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
21109         cmpxchg8b_pic_memory_operand instead of just memory_operand.
21111 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21113         PR target/39445
21114         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
21116 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21118         PR target/39327
21119         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21120         (avx_addsubv4df3): Likewise.
21121         (*avx_addsubv4sf3): Likewise.
21122         (sse3_addsubv4sf3): Likewise.
21124 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21126         PR target/38824
21127         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
21129 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
21131         PR debug/39432
21132         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
21133         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21134         registers for allocnos created from user-defined variables.
21136 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21138         PR target/39181
21139         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
21140         of non-integer mode as well.
21142 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
21144         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
21145         for functions for which the parameter types are unknown.
21147 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
21149         PR target/39137
21150         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
21151         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
21152         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
21153         * config/i386/i386.c (ix86_local_alignment): For
21154         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
21155         long long variables on the stack to avoid dynamic realignment.
21156         Allow the first argument to be a decl rather than type.
21157         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
21159 2009-03-11  Nick Clifton  <nickc@redhat.com>
21161         PR target/5362
21162         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
21163         options.
21164         Add description to mno-lsim option.
21165         * config/mcore/mcore.h: Remove comment about deprecated m4align
21166         option.
21167         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
21168         * doc/invoke.texi: Add description of mno-lsim and
21169         mstack-increment options.
21171         * config/fr30/fr30.opt: Document the -mno-lsim option.
21172         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
21173         and -mno-lsim options.
21175 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21177         * fold-const.c (fold_comparison): Only call fold_inf_compare
21178         if the mode supports infinities.
21180 2009-03-11  Jason Merrill  <jason@redhat.com>
21182         PR debug/39086
21183         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
21184         end already did.  Notice GIMPLE_CALL modifications of the result.
21185         Don't copy debug information from an ignored decl or a decl from
21186         another function.
21188 2009-03-10  Richard Guenther  <rguenther@suse.de>
21189             Nathan Froyd  <froydnj@codesourcery.com>
21191         PR middle-end/37850
21192         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
21193         (__divMODE3): Likewise.
21195 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
21197         PR tree-optimization/39394
21198         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
21199         DECL_SIZE_UNIT of variable length FIELD_DECLs.
21201 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21203         * recog.c (verfiy_changes): Disallow renaming of hard regs in
21204         inline asms for register asm ("") declarations.
21206 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
21208         * fold-const.c (fold_unary): Fix comment.
21210 2009-03-07  Jan Hubicka  <jh@suse.cz>
21212         PR target/39361
21213         * tree-inline.c (setup_one_parameter): Do replacement of const
21214         argument by constant in SSA form.
21216 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21218         PR middle-end/38028
21219         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
21220         determine alignment passed to assign_stack_local.
21221         (assign_parms_unsplit_complex): Likewise.
21222         * except.c (sjlj_build_landing_pads): Likewise.
21224 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
21226         PR middle-end/39360
21227         * tree-flow.h (add_referenced_var): Return bool instead of void.
21228         * tree-dfa.c (add_referenced_var): Return result of
21229         referenced_var_check_and_insert call.
21230         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
21231         of referenced_var_check_and_insert.
21233         PR debug/39372
21234         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
21235         (gen_variable_die): Emit DW_AT_location on abstract static variable's
21236         DIE, don't emit it if abstract origin already has it.
21237         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
21238         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
21240 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21242         * genpreds.c (needs_variable): Fix parentheses at variable name
21243         detection.
21244         (write_tm_constrs_h): Indent generated code.
21246 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21248         * doc/extend.texi (Function Attributes): Add documentation
21249         for isr attributes.
21251 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
21253         PR debug/39387
21254         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
21255         take locus from its DECL_SOURCE_LOCATION instead of input_location.
21257 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
21259         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
21260         the loop as bad.
21262 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
21264         PR debug/39379
21265         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
21266         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
21268 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
21270         * config/i386/i386.md (R8_REG, R9_REG): New constants.
21271         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
21272         constants instead of magic numbers.
21273         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
21274         (QI_REG_P): Ditto.
21275         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
21276         (x86_64_ms_abi_int_parameter_registers): Ditto.
21277         (x86_64_int_return_registers): Ditto.
21278         (ix86_maybe_switch_abi): Ditto.
21279         (ix86_expand_call): Ditto for clobbered_registers array.
21280         (ix86_hard_regno_mode_ok): Ditto.
21281         (x86_extended_QIreg_mentioned_p): Ditto.
21283 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
21285         PR tree-optimization/39349
21286         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
21288         * combine.c (gen_lowpart_for_combine): Use omode when generating
21289         clobber.
21291 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
21293         PR rtl-optimization/39235
21294         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
21296 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
21298         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
21300 2009-03-04  Richard Guenther  <rguenther@suse.de>
21302         PR tree-optimization/39362
21303         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
21304         that occur in abnormal PHIs should be varying.
21306 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
21308         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
21309         Extend comments.
21310         (simple_iv):  Take loop as an argument instead of statement.
21311         * tree-scalar-evolution.h (simple_iv): Declaration changed.
21312         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
21313         to simple_iv.
21314         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
21315         Ditto.
21316         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
21317         * matrix-reorg.c (analyze_transpose): Ditto.
21318         * tree-data-ref.c (dr_analyze_innermost): Ditto.
21319         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
21320         * tree-predcom.c (ref_at_iteration): Ditto.
21321         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
21323 2009-03-04  Richard Guenther  <rguenther@suse.de>
21325         PR tree-optimization/39358
21326         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
21327         escaped_id and callused_id.
21328         (solve_graph): Likewise.
21330 2009-03-04  Richard Guenther  <rguenther@suse.de>
21332         PR tree-optimization/39339
21333         * tree-sra.c (try_instantiate_multiple_fields): Make it
21334         no longer ICE on the above.
21336 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
21338         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
21339         that fits within Pmode.
21341 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
21343         PR middle-end/10109
21344         * tm.texi (LIBCALL_VALUE): Update description.
21346 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
21348         PR middle-end/34443
21349         * doc/extend.texi (section): Update description.
21351 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21353         PR middle-end/39345
21354         * tree-inline.c (remapped_type): New.
21355         (can_be_nonlocal): Call remapped_type instead of remap_type.
21357 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
21359         PR fortran/39354
21360         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
21361         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
21363 2009-03-03  Richard Guenther  <rguenther@suse.de>
21365         PR middle-end/39272
21366         * tree.c (tree_nonartificial_location): New function.
21367         * tree.h (tree_nonartificial_location): Declare.
21368         * builtins.c (expand_builtin_memory_chk): Provide location
21369         of the call location for artificial function pieces.
21370         (maybe_emit_chk_warning): Likewise.
21371         (maybe_emit_sprintf_chk_warning): Likewise.
21372         (maybe_emit_free_warning): Likewise.
21373         * expr.c (expand_expr_real_1): Likewise.
21375 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
21377         PR tree-optimization/39343
21378         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
21379         COMPONENT_REF t has ARRAY_TYPE.
21381 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21383         PR middle-end/39335
21384         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
21385         when the type precision of the induction variable should be
21386         larger than the type precision of nit.
21387         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
21388         * graphite.c (graphite_loop_normal_form): Same.
21389         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
21391 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
21393         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
21394         (*call_1_rex64_ms_sysv): Use named constants instead of magic
21395         numbers to describe clobbered registers.
21396         (*call_value_0_rex64_ms_sysv): Ditto.
21397         * config/i386/mmx.md (mmx_emms): Ditto.
21398         (mmx_femms): Ditto.
21400 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
21402         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
21403         of ABI_64.
21405 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21407         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
21408         (spu_section_type_flags): New function.
21410 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
21412         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
21413         reg_class_contents of FLOAT_REGS into a temporary.
21415 2009-03-02  Richard Guenther  <rguenther@suse.de>
21416             Ira Rosen  <irar@il.ibm.com>
21418         PR tree-optimization/39318
21419         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
21420         information to the vectorized statement.
21422 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
21424         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
21425         variable.  Use defined names instead of magic constants for REX SSE
21426         registers.
21428 2009-03-01  Richard Guenther  <rguenther@suse.de>
21430         PR tree-optimization/39331
21431         * omp-low.c (lower_send_shared_vars): Do not receive new
21432         values for the reference of DECL_BY_REFERENCE parms or results.
21434 2009-03-01  Jan Hubicka  <jh@suse.cz>
21436         PR debug/39267
21437         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
21438         BLOCK_NONLOCALIZED_VAR): New macros.
21439         (tree_block): Add nonlocalized_vars.
21440         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
21441         gen_decl_die): Add origin argument.  Allow generation of die with
21442         origin at hand only.
21443         (gen_member_die, gen_type_die_with_usage, force_decl_die,
21444         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
21445         of gen_*.
21446         (gen_block_die): Fix checking for unused blocks.
21447         (process_scope_var): Break out from .... ; work with origins only.
21448         (decls_for_scope) ... here; process nonlocalized list.
21449         (dwarf2out_ignore_block): Look for nonlocalized vars.
21450         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
21451         vars.
21452         (dump_scope_block): Dump them.
21453         * tree-inline.c (remap_decls): Handle nonlocalized vars.
21454         (remap_block): Likewise.
21455         (can_be_nonlocal): New predicate.
21456         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
21458 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21460         * configure: Regenerate.
21462 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21464         * optc-gen.awk: No need to duplicate option flags twice.
21465         Reuse help texts for duplicate options which do not have any.
21467         * gcc.c (display_help): Document --version.
21469         * gcc.c (main): If print_help_list and verbose_flag, ensure
21470         driver output comes before subprocess output.
21472         * optc-gen.awk: Assign all remaining fields to help string,
21473         space-separated, for multi-line help in *.opt.
21475         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
21476         -Wno-pedantic-ms-format is for MinGW targets only.
21478         * doc/options.texi (Option file format): Fix bad indentation,
21479         restoring dropped sentence.
21481 2009-02-28  Jan Hubicka  <jh@suse.cz>
21483         * tree-inline.c (tree_function_versioning): Output debug info.
21485 2009-02-28  Jan Hubicka  <jh@suse.cz>
21487         PR debug/39267
21488         * tree-inline.c (setup_one_parameter): Do not copy propagate
21489         arguments when not optimizing.
21491 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21493         PR target/39327
21494         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21495         (avx_addsubv4df3): Likewise.
21496         (*avx_addsubv4sf3): Likewise.
21497         (sse3_addsubv4sf3): Likewise.
21498         (*avx_addsubv2df3): Likewise.
21499         (sse3_addsubv2df3): Likewise.
21500         (avx_unpckhps256): Correct item selectors.
21501         (avx_unpcklps256): Likewise.
21502         (avx_unpckhpd256): Likewise.
21503         (avx_unpcklpd256): Likewise.
21505 2009-02-28  Jan Hubicka  <jh@suse.cz>
21507         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
21508         static vars.
21509         (copy_arguments_for_versioning): If var is declared don't declare it.
21510         (tree_function_versioning): First setup substitutions and then copy
21511         args.
21513 2009-02-27  Jan Hubicka  <jh@suse.cz>
21515         PR debug/39267
21516         * cgraph.h (varpool_output_debug_info): Remove.
21517         * cgraphunit.c (varpool_output_debug_info): Remove.
21518         * dwarf2out.c (deferred_locations_struct): New struct
21519         (deferred_locations): New type.
21520         (deferred_locations_list): New static var.
21521         (deffer_location): New function.
21522         (gen_variable_die): Use it.
21523         (decls_for_scope): Output info on local static vars.
21524         (dwarf2out_finish): Process deferred locations.
21525         * varpool.c (varpool_output_debug_info): Remove.
21527 2009-02-27  Jan Hubicka  <jh@suse.cz>
21529         PR debug/39267
21530         * tree.h (TREE_PROTECTED): Fix comment.
21531         (BLOCK_HANDLER_BLOCK): Remove.
21532         (struct tree_block): Remove handler_block add body_block.
21533         (inlined_function_outer_scope_p): New.
21534         (is_body_block): Remove.
21535         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
21536         * dwarf2out.c (is_inlined_entry_point): Remove.
21537         (add_high_low_attributes): Use inlined_function_outer_scope_p.
21538         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
21539         code.
21540         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
21541         * gimplify.c (gimplify_expr): Gimplify body blocks.
21542         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
21543         block with multiple subblocks.
21544         (dump_scope_block): Prettier output; dump more flags and info.
21545         (dump_scope_blocks): New.
21546         (remove_unused_locals): Use dump_scope_blocks.
21547         * tree-flow.h (dump_scope_blocks): Declare.
21548         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
21549         * stmt.c (is_body_block): Remove.
21550         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
21551         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
21553 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
21555         PR middle-end/39308
21556         * graphite.c (graphite_loop_normal_form): Do not call
21557         number_of_iterations_exit from a gcc_assert.
21559 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21561         * config/s390/s390.c (s390_swap_cmp): Look for conditional
21562         jumps if COND is NULL.
21563         (find_cond_jump): New function.
21564         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
21565         * config/s390/s390.md: Remove z10_cobra attribute value.
21567 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
21569         * config/alpha/alpha.h (alpha_expand_mov): Return false if
21570         force_const_mem returns NULL_RTX.
21572 2009-02-26  Jan Hubicka  <jh@suse.cz>
21574         PR debug/39267
21575         * cgraph.h (varpool_output_debug_info): Remove.
21576         * cgraphunit.c (varpool_output_debug_info): Remove.
21577         * dwarf2out.c (deferred_locations_struct): New struct
21578         (deferred_locations): New type.
21579         (deferred_locations_list): New static var.
21580         (deffer_location): New function.
21581         (gen_variable_die): Use it.
21582         (decls_for_scope): Output info on local static vars.
21583         (dwarf2out_finish): Process deferred locations.
21584         * varpool.c (varpool_output_debug_info): Remove.
21586 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21588         PR rtl-optimization/39241
21589         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
21590         to subreg_offset_representable_p.
21592 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
21594         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
21595         execute function prototype.  Get f and nregs from max_reg_num
21596         and get_insns.  Remove the first backward pass as it's dead,
21597         guard the forward pass by flag_expensive_optimizations.
21598         (rest_of_handle_regmove): Delete.
21599         (pass_regmove): Replace it with regmove_optimize.
21601 2009-02-25  Martin Jambor  <mjambor@suse.cz>
21603         PR tree-optimization/39259
21604         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
21605         calls_alloca function flags.
21606         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
21607         calls are detected.
21609 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
21611         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
21612         flags_set_1_rtx, flags_set_1_set): Delete.
21613         (regmove_optimize): Do not call mark_flags_life_zones.
21615 2009-02-24  Julian Brown  <julian@codesourcery.com>
21617         PR target/35965
21618         * config/arm/arm.c (require_pic_register): Only set
21619         cfun->machine->pic_reg once per function.
21621 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
21623         * doc/invoke.texi (Link Options): Document an easier way to pass
21624         options that take arguments to the GNU linker using -Xlinker and -Wl.
21626 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
21628         PR target/33785
21629         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
21631 2009-02-24  Richard Guenther  <rguenther@suse.de>
21633         PR debug/39285
21634         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
21636 2009-02-24  Richard Guenther  <rguenther@suse.de>
21637             Zdenek Dvorak  <ook@ucw.cz>
21639         PR tree-optimization/39233
21640         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
21641         from converting them to a generic type.
21643 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
21645         PR tree-optimization/39260
21646         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
21647         contains a condition with a real type.
21648         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
21650 2009-02-23  Jason Merrill  <jason@redhat.com>
21652         PR c++/38880
21653         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
21654         narrowing_initializer_constant_valid_p.
21655         (narrowing_initializer_constant_valid_p): Don't return
21656         null_pointer_node for adding a pointer to itself.
21658 2009-02-23  Jan Hubicka  <jh@suse.cz>
21660         PR c/12245
21661         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
21662         resizing.
21664 2009-02-23  Jan Hubicka  <jh@suse.cz>
21666         PR tree-optimization/37709
21667         * tree.c (block_ultimate_origin): Move here from dwarf2out.
21668         * tree.h (block_ultimate_origin): Declare.
21669         * dwarf2out.c (block_ultimate_origin): Move to tree.c
21670         * tree-ssa-live.c (remove_unused_scope_block_p):
21671         Eliminate blocks containig no instructions nor live variables nor
21672         nested blocks.
21673         (dump_scope_block): New function.
21674         (remove_unused_locals): Enable removal of dead blocks by default;
21675         enable dumping at TDF_DETAILS.
21677 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21679         * config/i386/i386.c (classify_argument): Don't allow COImode
21680         and OImode.
21681         (function_arg_advance_32): Don't allow OImode.
21682         (function_arg_32): Likewise.
21683         (function_value_32): Likewise.
21684         (return_in_memory_32): Likewise.
21685         (function_arg_64): Remove OImode comment.
21687 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21689         PR target/39261
21690         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
21691         ix86_expand_vector_set for V4DImode in 64bit mode only.
21692         (ix86_expand_vector_init_one_var): Likewise.
21694 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
21696         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
21698 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
21700         PR bootstrap/39257
21701         * loop-iv.c: Revert last change.
21702         * emit-rtl.c: Likewise.
21704 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21706         PR target/39256
21707         * config/i386/i386.c (type_natural_mode): Remove an extra
21708         space in the warning message.
21709         (function_value_32): Handle 32-byte vector modes.
21710         (return_in_memory_32): Likewise.
21712 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
21714         * loop-iv.c (truncate_value): New function.
21715         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
21716         of lowpart_subreg.
21717         (lowpart_subreg): Move to...
21718         * emit-rtl.c: ...here.
21720 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
21722         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
21723         accidental and undocumented change at revision 140860.
21725 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
21727         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
21728         take gimple_seq * arguments.
21729         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
21730         types_compatible_p langhook.
21732 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
21733             Joseph Myers  <joseph@codesourcery.com>
21735         * config/arm/arm.c (arm_builtin_va_list): New function.
21736         (arm_expand_builtin_va_start): Likewise.
21737         (arm_gimplify_va_arg_expr): Likewise.
21738         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
21739         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
21740         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
21741         (va_list_type): New variable.
21742         (arm_mangle_type): Mangle va_list_type appropriately.
21744 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
21746         PR middle-end/39157
21747         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
21748         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
21749         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
21750         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
21751         parameter to 1000 for -O1 by default.
21752         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
21753         parameter.
21754         * loop-invariant.c: Include params.h.
21755         (move_loop_invariants): Don't call move_single_loop_invariants on
21756         very large loops.
21758 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
21760         * calls.c (emit_library_call_value_1): Use slot_offset instead of
21761         offset when calculating bounds for indexing stack_usage_map.  Fixes
21762         a buffer overflow with certain target setups.
21764 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
21766         PR target/39240
21767         * calls.c (expand_call): Clear try_tail_call if caller and callee
21768         disagree in promotion of function return value.
21770 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
21772         PR target/39175
21773         * c-common.c (c_determine_visibility): If visibility changed and
21774         DECL_RTL has been already set, call make_decl_rtl to update symbol
21775         flags.
21777 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
21779         PR c++/39188
21780         * varasm.c (assemble_variable): Don't check DECL_NAME when
21781         globalizing a variable.
21783 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
21785         PR c/38483
21786         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
21787         expression before any __builtin_trap call.
21788         * c-typeck.c (build_function_call): Convert and check function
21789         arguments before generating a call to a trap.  Evaluate the
21790         function arguments before the trap.
21792 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
21794         PR target/39228
21795         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
21796         (UNSPEC_FXAM_MEM): New unspec.
21797         (fxam<mode>2_i387_with_temp): New insn and split pattern.
21798         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
21799         memory using fxam<mode>2_i387_with_temp to remove excess precision.
21801 2009-02-19  Richard Guenther  <rguenther@suse.de>
21803         PR tree-optimization/39207
21804         PR tree-optimization/39074
21805         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
21806         storedanything_tree): New.
21807         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
21808         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
21809         (build_succ_graph): Add edges from STOREDANYTHING to all
21810         non-direct nodes.
21811         (init_base_vars): Initialize STOREDANYTHING.
21812         (compute_points_to_sets): Free substitution info after
21813         building the succ graph.
21814         (ipa_pta_execute): Likewise.
21816         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
21817         field.
21818         (do_ds_constraint): Do not add to special var or non-pointer
21819         field solutions.
21820         (type_could_have_pointers): Split out from ...
21821         (could_have_pointers): ... here.  For arrays use the element type.
21822         (create_variable_info_for): Initialize may_have_pointers.
21823         (new_var_info): Likewise.
21824         (handle_lhs_call): Make the HEAP variable unknown-sized.
21825         (intra_create_variable_infos): Use a type with pointers for
21826         PARM_NOALIAS, make it unknown-sized.
21828 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21830         PR target/39224
21831         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
21833 2009-02-18  Jason Merrill  <jason@redhat.com>
21835         PR target/39179
21836         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
21837         value if DECL_EXTERNAL.
21838         * tree-sra.c (sra_walk_gimple_assign): Likewise.
21839         * target.h (gcc_target::binds_local_p): Clarify "module".
21840         * tree.h (TREE_PUBLIC): Clarify "module".
21842 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
21844         PR target/38891
21845         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
21846         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
21848 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
21850         PR target/39082
21851         * c.opt (Wabi): Support C and ObjC.
21852         (Wpsabi): New.
21854         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
21856         * config/i386/i386.c (classify_argument): Warn once about the ABI
21857         change when passing union with long double.
21859         * doc/invoke.texi: Update -Wabi for warning psABI changes.
21861 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
21863         PR c/35447
21864         * c-parser.c (c_parser_compound_statement): Always enter and leave
21865         a scope.
21867 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21869         PR target/34587
21870         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
21872 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
21874         PR tree-optimization/36922
21875         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
21876         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
21877         Likewise.
21879 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
21881         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
21882         to 0 for EABI64.
21884 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
21886         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
21888 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
21890         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
21891         tree sharing.
21893 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
21894             Richard Sandiford  <rdsandiford@googlemail.com>
21896         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
21897         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
21898         (loongson_biadd): ...this.
21900 2009-02-17  Richard Guenther  <rguenther@suse.de>
21902         PR tree-optimization/39202
21903         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
21904         a var make sure to follow existing collapses.
21906 2009-02-17  Richard Guenther  <rguenther@suse.de>
21908         PR middle-end/39214
21909         * langhooks.c (lhd_print_error_function): Check for NULL block.
21911 2009-02-17  Richard Guenther  <rguenther@suse.de>
21913         PR tree-optimization/39204
21914         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
21915         of the PHI arg.
21917 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
21919         * config/soft-fp/double.h: Update from glibc CVS.
21921 2009-02-17  Richard Guenther  <rguenther@suse.de>
21923         PR tree-optimization/39207
21924         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
21925         strict-aliasing warnings for pointers pointing to NULL.
21927 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
21929         PR c/35446
21930         * c-parser.c (c_parser_braced_init): Call pop_init_level when
21931         skipping until next close brace.
21933 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
21935         PR target/37049
21936         * config/i386/i386.c (ix86_expand_push): Set memory alignment
21937         to function argument boundary.
21939 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
21941         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
21942         in the lea_add. Reload eventually constraints it properly.
21943         * config/picochip/constraints.md: Remove the target constraint
21944         "b", since it is not needed anymore.
21946 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
21948         * gthr-dce.h: Uglify function parameter and local variable names.
21949         * gthr-gnat.h: Likewise.
21950         * gthr-mipssde.h: Likewise.
21951         * gthr-nks.h: Likewise.
21952         * gthr-posix95.h: Likewise.
21953         * gthr-posix.h: Likewise.
21954         * gthr-rtems.h: Likewise.
21955         * gthr-single.h: Likewise.
21956         * gthr-solaris.h: Likewise.
21957         * gthr-tpf.h: Likewise.
21958         * gthr-vxworks.h: Likewise.
21959         * gthr-win32.h: Likewise.
21961 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
21963         PR target/39196
21964         * config/i386/i386.md: Restrict the new peephole2 to move
21965         between MMX/SSE registers.
21967 2009-02-15  Richard Guenther  <rguenther@suse.de>
21969         Revert
21970         2009-02-13  Richard Guenther  <rguenther@suse.de>
21972         * configure.ac: Enable LFS.
21973         * configure: Re-generate.
21974         * config.in: Likewise.
21976 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21978         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
21979         spu_srqwbyte, spu_srqwbytebc): Define.
21980         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
21981         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
21982         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
21983         "shrqby_<mode>"): New insn-and-split patterns.
21984         * config/spu/spu.c (expand_builtin_args): Determine and return
21985         number of operands using spu_builtin_description data.
21986         (spu_expand_builtin_1): Use it.
21988 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
21990         PR target/38056
21991         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
21992         TARGET_CONST_GP.
21994 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
21996         PR target/39149
21997         * config/i386/i386.c (override_options): Correct warning
21998         messages for -malign-loops, -malign-jumps and -malign-functions.
22000 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22002         PR target/39152
22003         * config/i386/i386.md: Restrict the new peephole2 to move
22004         between the general purpose registers.
22006 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22008         PR target/39162
22009         * config/i386/i386.c (type_natural_mode): Add a new argument.
22010         Return the original mode and warn ABI change if vector size is 32byte.
22011         (function_arg_advance): Updated.
22012         (function_arg): Likewise.
22013         (ix86_function_value): Likewise.
22014         (ix86_return_in_memory): Likewise.
22015         (ix86_sol10_return_in_memory): Likewise.
22016         (ix86_gimplify_va_arg): Likewise.
22017         (function_arg_32): Don't warn ABX ABI change here.
22018         (function_arg_64): Likewise.
22020 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
22022         * loop-iv.c (implies_p): In the final case, test that operands 0
22023         of the two comparisons match.
22025         * config/bfin/bfin.c (find_prev_insn_start): New function.
22026         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
22027         (find_next_insn_start): Move.
22029 2009-02-13  Richard Guenther  <rguenther@suse.de>
22031         * configure.ac: Enable LFS.
22032         * configure: Re-generate.
22033         * config.in: Likewise.
22035 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
22037         PR c/35444
22038         * c-parser.c (c_parser_parms_list_declarator): Discard pending
22039         sizes on syntax error after some arguments have been parsed.
22041 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
22043         * doc/invoke.texi (-fira): Remove.
22045 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22047         * caller-save.c: Replace regclass.c with reginfo.c in comments.
22048         * recog.c: Likewise.
22049         * rtl.h: Likewise.
22051 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
22053         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
22054         (umul_ppmm): Likewise.
22055         (count_leading_zeros): Likewise.
22056         (count_trailing_zeros): Likewise.
22057         (UMUL_TIME): Likewise.
22059 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22061         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
22062         soft-fp/t-softfp to tmake_file.
22064         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
22065         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
22066         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
22067         IA64_BUILTIN_INFQ]: New.
22068         (ia64_init_builtins): Initialize __builtin_infq,
22069         __builtin_fabsq and __builtin_copysignq if not HPUX.
22070         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
22071         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
22073         * config/ia64/lib1funcs.asm (__divtf3): Define only if
22074         SHARED is defined.
22075         (__fixtfti): Likewise.
22076         (__fixunstfti): Likewise.
22077         (__floattitf): Likewise.
22079         * config/ia64/libgcc-glibc.ver: New.
22080         * config/ia64/t-fprules-softfp: Likewise.
22081         * config/ia64/sfp-machine.h: Likewise.
22083         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
22084         (LIBGCC2_TF_CEXT): Likewise.
22085         (TF_SIZE): Likewise.
22086         (TARGET_INIT_LIBFUNCS): Likewise.
22088         * config/ia64/t-glibc (SHLINB_MAPFILES):
22089         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
22091 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22093         * config/i386/i386.c (construct_container): Rewrite processing
22094         BLKmode with X86_64_SSE_CLASS.
22096 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
22098         PR target/39152
22099         * config/i386/i386.md: Replace simplify_replace_rtx with
22100         replace_rtx in the new peephole2.
22102 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
22104         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
22105         loop unrolling do not happen at -O2.
22107 2009-02-12  Michael Matz  <matz@suse.de>
22109         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
22111 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
22113         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
22114         for -g3.
22116 2009-02-12  Ben Elliston  <bje@au.ibm.com>
22118         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
22119         patterns when updating the back chain.  Missed in the 2009-02-10
22120         change.
22122 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
22124         * doc/extend.texi (Decimal Floating Types): Update identifier of
22125         draft TR and list of missing support.
22127 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
22129         PR middle-end/39154
22130         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
22131         bit to variable length decl's flags, add it also to its
22132         pointer replacement variable.
22134 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
22135             Jakub Jelinek  <jakub@redhat.com>
22137         PR target/39118
22138         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
22139         (memory_blockage): New expander.
22140         (*memory_blockage): New insn pattern.
22141         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
22142         instead of general blockage at the end of function prologue when
22143         frame pointer is used to access red zone area.  Do not emit blockage
22144         when profiling, it is emitted in generic code.
22145         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
22146         function epilogue when frame pointer is used to access red zone area.
22148 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
22150         PR target/38824
22151         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
22152         by arithmetic with memory operands.
22153         * config/i386/predicates.md (commutative_operator): New.
22155 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
22157         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
22158         bulleted lists.
22160 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22162         * alias.h (record_alias_subset): Declare.
22163         * alias.c (record_alias_subset): Make global.
22165 2009-02-10  Nick Clifton  <nickc@redhat.com>
22167         * tree-parloops.c: Change license to GPLv3.
22168         * ipa-struct-reorg.c: Change license to GPLv3.
22169         * ipa-struct-reorg.h: Change license to GPLv3.
22171 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
22173         PR c/39084
22174         * c-decl.c (start_struct): Return NULL on error.
22176 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
22178         PR middle-end/39124
22179         * cfgloopmanip.c (remove_path): Call remove_bbs after
22180         cancel_loop_tree, not before it.
22182         PR target/39139
22183         * function.h (struct function): Add has_local_explicit_reg_vars bit.
22184         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
22185         VAR_DECLs were seen.
22186         * tree-ssa-live.c (remove_unused_locals): Recompute
22187         cfun->has_local_explicit_reg_vars.
22188         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
22189         copies or clearings if cfun->has_local_explicit_reg_vars.
22191 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
22193         PR target/39118
22194         * config/i386/i386.c (expand_prologue): Emit blockage at the end
22195         of function prologue when frame pointer is used to access
22196         red zone area.
22198 2009-02-10  Richard Guenther  <rguenther@suse.de>
22200         PR middle-end/39127
22201         * gimplify.c (gimple_regimplify_operands): Always look if
22202         we need to create a temporary.
22204 2009-02-10  Richard Guenther  <rguenther@suse.de>
22206         PR tree-optimization/39132
22207         * tree-loop-distribution.c (todo): New global var.
22208         (generate_memset_zero): Trigger TODO_rebuild_alias.
22209         (tree_loop_distribution): Return todo.
22211 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
22213         PR target/39119
22214         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
22215         (x86_64_reg_class_name): Removed.
22216         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
22217         first one isn't X86_64_SSE_CLASS or any other ones aren't
22218         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
22219         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
22220         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
22221         and 3 X86_64_SSEUP_CLASS.
22222         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
22223         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
22225 2009-02-10  Ben Elliston  <bje@au.ibm.com>
22227         * config/rs6000/rs6000.md (allocate_stack): Always use an update
22228         form instruction to update the stack back chain word, even if the
22229         user has disabled the generation of update instructions.
22230         (movdi_<mode>_update_stack): New.
22231         (movsi_update_stack): Likewise.
22232         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
22233         always use an update form instruction to update the stack back
22234         chain word.
22236 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
22238         PR middle-end/38953
22239         * graphite.c (if_region_set_false_region): After moving a region in
22240         the false branch of a condition, remove the empty dummy basic block.
22241         (gloog): Remove wrong fix for PR38953.
22243 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22245         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
22246         generation due to implicit sign extension.
22248 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22250         PR middle-end/38981
22251         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
22252         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
22254 2009-02-09  Richard Guenther  <rguenther@suse.de>
22256         PR middle-end/35202
22257         * convert.c (convert_to_real): Disable (float)fn((double)x)
22258         to fnf(x) conversion if errno differences may occur and
22259         -fmath-errno is set.
22261 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
22263         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
22264         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
22265         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
22267 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
22269         PR c/35434
22270         * c-common.c (handle_alias_attribute): Disallow attribute for
22271         anything not a FUNCTION_DECL or VAR_DECL.
22273 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
22275         PR c/39035
22276         * real.c (do_compare): Special-case compare of zero against
22277         decimal float value.
22279 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
22281         PR c/36432
22282         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
22283         as indicating flexible array members unless the field itself is
22284         being declarared as the incomplete array.
22286 2009-02-06  Jan Hubicka  <jh@suse.cz>
22288         PR tree-optimization/38844
22289         * ipa-inline.c (try_inline): Stop inlining recursion when edge
22290         is already inlined.
22292 2009-02-06  Richard Guenther  <rguenther@suse.de>
22294         PR middle-end/38977
22295         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
22296         fork because we may expand it as __gcov_fork.
22298 2009-02-06  Nick Clifton  <nickc@redhat.com>
22300         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
22302 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
22304         PR tree-optimization/35659
22305         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
22306         vn_phi_eq): Shortcut if hashcode does not match.
22307         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
22308         NULL operands.
22309         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
22310         and avoid iterative_hash_expr.
22311         (FOR_EACH_VALUE_ID_IN_SET): New.
22312         (value_id_compare): Remove.
22313         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
22314         sort expressions by value id.
22316 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
22318         PR target/38991
22319         * config/sh/predicates.md (general_movsrc_operand): Don't check
22320         the subreg of system registers here.
22322 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
22324         PR c++/39106
22325         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
22326         on the copied decl.
22328 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
22330         PR rtl-optimization/39110
22331         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
22332         addresses, not aligned ones.
22334 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
22335             Richard Guenther  <rguenther@suse.de>
22337         PR tree-optimization/39100
22338         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
22339         comment says and add edges.
22341 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
22343         PR c/35435
22344         * c-common.c (handle_tls_model_attribute): Ignore attribute for
22345         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
22347 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
22349         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
22350         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
22351         register_bb_in_sese, new_sese, free_sese): Moved.
22352         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
22353         outermost_loop_in_scop, build_scop_iteration_domain,
22354         expand_scalar_variables_ssa_name, get_vdef_before_scop,
22355         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
22356         Use loop_in_sese_p instead of loop_in_scop_p.
22357         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
22358         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
22359         (scopdet_basic_block_info): Fix bug in scop detection.
22360         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
22361         eq_loop_to_cloog_loop): Remove.
22362         (nb_loops_around_loop_in_scop, nb_loop
22363         ref_nb_loops): Moved here...
22364         * graphite.h (ref_nb_loops): ... from here.
22365         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
22366         (loop_domain_dim, loop_iteration_vector_dim): Remove.
22367         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
22368         * testsuite/gcc.dg/graphite/scop-19.c: New
22370 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
22371             Hans-Peter Nilsson  <hp@axis.com>
22373         PR rtl-optimization/37889
22374         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
22375         Move offset handling from PLUS to before the switch.  Use new
22376         arguments when considering SYMBOL_REFs too.
22377         (rtx_addr_can_trap_p): Pass dummy offset and size.
22378         (enum may_trap_p_flags): Remove.
22379         (may_trap_p_1): Pass size from MEM_SIZE.
22381         PR rtl-optimization/38921
22382         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
22383         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
22384         * rtlanal.c (may_trap_after_code_motion_p): Delete.
22385         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
22387 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
22389         AVX Programming Reference (January, 2009)
22390         * config/i386/sse.md (*vpclmulqdq): New.
22392 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
22394         PR tree-optimization/38977
22395         PR gcov-profile/38292
22396         * calls.c (special_function_p): Disregard __builtin_ prefix.
22398 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
22400         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
22401         non-indexable addresses even before reload.
22403 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
22405         PR c/29129
22406         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
22407         as having variable size.  Do not give an error for unnamed
22408         parameters with [*] declarators.  Give a warning for type names
22409         with [*] declarators and mark them as variable size.
22410         * c-parser.c (c_parser_sizeof_expression): Do not give an error
22411         for sizeof applied to [*] type names.
22413 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22415         PR C++/36607
22416         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
22418 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
22420         * gcc.c (process_command): Update copyright notice dates.
22421         * gcov.c (print_version): Likewise.
22422         * gcov-dump.c (print_version): Likewise.
22423         * mips-tfile.c (main): Likewise.
22424         * mips-tdump.c (main): Likewise.
22426 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
22428         PR c/35433
22429         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
22430         for composite type involving a zero-length array type.
22432 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
22434         PR target/35318
22435         * function.c (match_asm_constraints_1): Skip over
22436         initial optional % in the constraint.
22438         PR inline-asm/39059
22439         * c-parser.c (c_parser_postfix_expression): If fixed point is not
22440         supported, don't accept FIXED_CSTs.
22441         * c-decl.c (finish_declspecs): Error if fixed point is not supported
22442         and _Sat is used without _Fract/_Accum.  Set specs->type to
22443         integer_type_node for cts_fract/cts_accum if fixed point is not
22444         supported.
22446 2009-02-02  Catherine Moore  <clm@codesourcery.com>
22448         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
22450 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
22452         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
22453         (ABI_HAS_64BIT_SYMBOLS): Use it.
22454         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
22456 2009-02-02  Paul Brook  <paul@codesourcery.com>
22458         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
22460 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
22462         PR inline-asm/39058
22463         * recog.h (asm_operand_ok): Add constraints argument.
22464         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
22465         recurse on matching constraint.
22466         (check_asm_operands): Pass constraints as 3rd argument to
22467         asm_operand_ok.  Don't look up matching constraint here.
22468         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
22469         to asm_operand_ok.
22471 2009-02-02  Ben Elliston  <bje@au.ibm.com>
22473         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
22474         TARGET_NARROW_VOLATILE_BITFIELD macro names.
22476 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22478         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
22479         information.  Remove some obsolete information.  Reorganize.
22481         * config/pa/fptr.c: Revert license to GPL 2.
22482         * config/pa/milli64.S: Likewise.
22484 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
22486         PR target/38904
22487         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
22488         LIBRARY name in, instead of hard-coding it.
22489         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
22490         extra target make frag to tmake_files according to EH model.
22491         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
22492         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
22493         frags that define makefile variable EH_MODEL appropriately.
22494         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
22495         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
22496         to "-sjlj" according to type of EH configured.
22497         (LIBGCC_SONAME):  Concatenate it to shared library base name.
22498         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
22499         to "_sjlj" according to type of EH configured.
22500         (LIBGCC_SONAME):  Concatenate it to shared library base name.
22501         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
22502         (SHLIB_LINK):  Add missing semicolon to if-else construct.
22503         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
22504         string value of "pe_dll" command-line option.
22505         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
22506         (SHLIB_SONAME):  Use it when overriding t-cygming default.
22507         (SHLIB_IMPLIB):  Override t-cygming default.
22508         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
22509         string value of "pe_dll" command-line option.
22511 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
22513         PR target/38952
22514         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
22515         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
22517 2009-01-31  Richard Guenther  <rguenther@suse.de>
22519         PR tree-optimization/38937
22520         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
22521         computing the transitive closure.
22523 2009-01-30  Richard Guenther  <rguenther@suse.de>
22525         PR tree-optimization/39041
22526         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22527         Propagate variable indices only if the types match for this stmt.
22529 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
22531         PR target/39013
22532         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
22533         inline but never defined.
22535 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
22537         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
22538         (*insv_h_di_reg_extimm): New insn.
22539         (*insv_l<mode>_reg_extimm): New insn.
22541 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
22543         * config/picochip/picochip.c (flag_conserve_stack): set
22544         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
22545         fconserve-stack. Reduce call-overhead used by inliner.
22547 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
22549         PR/38157
22550         * common.opt (flag_conserve_stack): Initialised to zero.
22552 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
22554         PR/39002
22555         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
22556         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
22557         method.
22559 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22561         * ira-color.c (allocno_reload_assign): Update comments.
22562         * regmove.c (regmove_optimize): Likewise.
22564         * ra.h: Removed.
22566 2009-01-29  Robert Millan  <rmh@aybabtu.com>
22568         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
22569         * config/i386/kopensolaris-gnu.h: New file.  Undefine
22570         `MD_UNWIND_SUPPORT'.
22571         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
22573 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
22575         PR tree-optimization/39007
22576         * tree-loop-distribution.c (generate_builtin): Use
22577         recompute_dominator to compute the immediate dominator of the
22578         basic block just after the loop.
22580 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22582         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
22583         (ASM_OUTPUT_DWARF_PCREL): Define.
22585 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22587         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
22588         * doc/passes.texi: Remove entries about regclass, local-alloc, and
22589         global.  Modify entries about regmove and IRA.
22591         * ra-conflict.c: Remove the file.
22593         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
22595         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
22596         (pass_regclass_init): Rename to pass_reginfo_init.
22598         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
22600         * toplev.h (flag_ira): Remove.
22602         * caller-save.c (setup_save_areas): Remove flag_ira.
22604         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
22606         * global.c: Remove the file.
22608         * opts.c (decode_options): Remove flag_ira.
22610         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
22612         * regmove.c: Modify file description.
22613         (find_use_as_address, try_auto_increment): Define them only if
22614         AUTO_INC_DEC is defined.
22615         (replacement_quality, replace_in_call_usage, fixup_match_1,
22616         stable_and_no_regs_but_for_p): Remove.
22617         (reg_set_in_bb): Make it static.
22618         (regmove_optimize): Remove flag_ira and code which worked for
22619         !flag_ira.
22621         * local-alloc.c: Remove the file.
22623         * common.opt (fira): Remove.
22625         * ira.c: Include except.h.
22626         (eliminable_regset): Move from global.c.
22627         (mark_elimination): Ditto.  Remove flag_ira.
22628         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
22629         equiv_mem_modified, validate_equiv_mem_from_store,
22630         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
22631         contains_replace_regs, memref_referenced_p, memref_used_between_p,
22632         no_equiv, recorded_label_ref): Move from local-alloc.c.
22633         (update_equiv_regs): Ditto.  Make it static.
22634         (print_insn_chain, print_insn_chains): Move it from global.c.
22635         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
22636         (build_insn_chain): Ditto.  Make it static.
22637         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
22638         Rename to init_live_subregs.
22639         (gate_ira): Remove flag_ira.
22641         * regclass.c: Rename reginfo.c.  Change file description.
22642         (FORBIDDEN_INC_DEC_CLASSES): Remove.
22643         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
22644         (init_reg_sets_1): Remove code for evaluation of
22645         reg_class_superclasses and losing_caller_save_reg_set.
22646         (init_regs): Remove init_reg_autoinc.
22647         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
22648         ok_for_base_p_nonstrict): Remove.
22649         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
22650         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
22651         corresponding entries.
22652         (dump_regclass, record_operand_costs, scan_one_insn,
22653         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
22654         record_address_regs, auto_inc_dec_reg_p): Remove.
22655         (gt-regclass.h): Rename to gt-reginfo.h.
22657         * rtl.h (dump_global_regs, retry_global_alloc,
22658         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
22660         * Makefile.in (RA_H): Remove.
22661         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
22662         Rename regclass.o to reginfo.o.
22663         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
22664         gt-reginfo.h.
22665         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
22666         (GTFILES): Rename regclass.c to reginfo.c.
22668         * passes.c (init_optimization_passes): Remove pass_local_alloc and
22669         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
22671         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
22672         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
22673         Remove flag_ira.
22674         (finish_spills): Ditto.  Remove code for !flag_ira.
22676 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
22678         PR middle-end/35854
22679         * doc/invoke.texi (rtl debug options): Complete rewrite.
22680         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
22681         to auto_inc_dec".
22682         * mode-switching.c (pass_mode_switching): Rename pass from
22683         "mode-sw" to "mode_sw".
22684         * except.c (pass_convert_to_eh_ranges): Rename pass from
22685         "eh-ranges" to "eh_ranges".
22686         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
22687         to "subreg1".
22690 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
22691             Alexander Monakov  <amonakov@ispras.ru>
22693         PR middle-end/38857
22694         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
22695         register.
22696         (move_exprs_to_boundary): Change return type and pass through
22697         should_move from move_op.  Relax assert.  Update usage ...
22698         (schedule_expr_on_boundary): ... here.  Use should_move instead of
22699         cant_move.
22700         (move_op_orig_expr_found): Indicate that insn was disconnected from
22701         stream.
22702         (code_motion_process_successors): Do not call after_merge_succs
22703         callback if original expression was not found when traversing any of
22704         the branches.
22705         (code_motion_path_driver): Change return type.  Update prototype.
22706         (move_op): Update comment.  Add a new parameter (should_move).  Update
22707         prototype.  Set *should_move based on indication provided by
22708         move_op_orig_expr_found.
22710 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22712         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
22713         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
22714         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
22715         * config/rs6000/rs6000.c (rs6000_override_options): Default
22716         avoid-indexed-addresses on for Power6, off for everything else.
22717         (avoiding_indexed_address_p): New function.
22718         (rs6000_legitimize_address): Use it.
22719         (rs6000_legitimate_address): Likewise.
22720         * config/rs6000/rs6000.md (movXX_updateX): Likewise
22722 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
22724         PR tree-optimization/38997
22725         * tree-loop-distribution.c (generate_memset_zero): Use
22726         POINTER_PLUS_EXPR for a pointer addition.
22728 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
22730         * config/s390/s390.md (bswap<mode>2): New pattern added.
22732 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22734         * config/s390/s390.md (*tls_load_31): Added type attribute.
22736 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22738         * config/s390/s390.md: Fix a few comments.
22740 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22742         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
22743         (*tm<mode>_full): Fixed z10prop attribute.
22744         (*tst<mode>_extimm): Fixed z10prop attribute.
22745         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
22746         (*tstqiCCT_cconly): Fixed z10prop attribute.
22747         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
22748         (*movsi_larl): Fixed z10prop attribute.
22749         (*movsi_zarch): Fixed z10prop attribute.
22750         (*movsi_eas): Fixed z10prop attribute.
22751         (*movhi): Fixed z10prop attribute.
22752         (*movqi): Fixed z10prop attribute.
22753         (*movstrictqi): Fixed z10prop attribute.
22754         (*mov<mode>): Fixed z10prop attribute.
22755         (*movcc): Fixed z10prop attribute.
22756         (*sethighpartdi_64): Fixed z10prop attribute.
22757         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
22758         (*negdi2_sign_cc): Fixed z10prop attribute.
22759         (*negdi2_sign): Fixed z10prop attribute.
22760         (*absdi2_sign_cc): Fixed z10prop attribute.
22761         (*absdi2_sign): Fixed z10prop attribute.
22762         (*negabsdi2_sign_cc): Fixed z10prop attribute.
22763         (*negabsdi2_sign): Fixed z10prop attribute.
22764         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
22765         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
22766         (doloop_si64): Fixed z10prop attribute.
22767         (doloop_si31): Fixed z10prop attribute.
22768         (doloop_long): Fixed z10prop attribute.
22769         (indirect_jump): Fixed z10prop attribute.
22770         (nop): Fixed z10prop attribute.
22771         (main_base_64): Fixed z10prop attribute.
22772         (reload_base_64): Fixed z10prop attribute.
22774 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
22776         PR rtl-optimization/38740
22777         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
22778         if !optimize.
22779         * config/mips/mips.c (mips_reorg): Likewise.
22781 2009-01-28  Richard Guenther  <rguenther@suse.de>
22783         PR tree-optimization/38926
22784         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
22785         with the correct value id to a value.
22786         (do_regular_insertion): Use the value number of edoubleprime
22787         for the value number of the expr.
22789         Revert
22790         2008-08-21  Richard Guenther  <rguenther@suse.de>
22792         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
22793         a PHI ask VN if it is already available.
22794         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
22795         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
22797 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
22799         PR middle-end/38934
22800         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
22801         set to varying whenever max has TREE_OVERFLOW set, similarly
22802         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
22804 2009-01-28  Richard Guenther  <rguenther@suse.de>
22806         PR middle-end/38908
22807         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
22808         uninitialized aggregate uses in call arguments.
22810 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
22812         PR tree-optimization/38984
22813         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
22814         the nothing_id variable if -fno-delete-null-pointer-checks.
22816 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
22818         PR target/38988
22819         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
22820         (set_got_offset_rex64): Ditto.
22822 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
22824         PR target/38941
22825         * doc/extend.texi: Improve local variable with asm reg.
22827 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
22829         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
22830         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
22831         was not supplied then set warn_packed_bitfield_compat to the
22832         default value of 1.
22833         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
22834         against 1.
22836 2009-01-27  Richard Guenther  <rguenther@suse.de>
22838         PR tree-optimization/38503
22839         * cfgexpand.c (expand_gimple_basic_block): Ignore
22840         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
22841         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
22842         variables that cannot have TBAA applied.
22843         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
22844         statements.
22846 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
22848         PR middle-end/38969
22849         * calls.c (initialize_argument_information): Do not wrap complex
22850         arguments in SAVE_EXPR.
22852 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
22854         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
22855         (INSTALL_LIBGCC): Revert typo commit.
22857 2009-01-26  Richard Guenther  <rguenther@suse.de>
22859         PR tree-optimization/38745
22860         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
22861         from special handling.
22863 2009-01-26  Richard Guenther  <rguenther@suse.de>
22865         PR tree-optimization/38745
22866         * tree-ssa.c (execute_update_addresses_taken): Do not include
22867         variables that cannot possibly be a register in not_reg_needs.
22868         Do not clear TREE_ADDRESSABLE on vars that may not become
22869         registers.
22870         * tree-ssa.c (update_alias_info_1): Include those in the set
22871         of addressable vars.
22873 2009-01-26  Richard Guenther  <rguenther@suse.de>
22875         PR middle-end/38851
22876         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
22877         * tree-ssa-dse.c: Include langhooks.h
22878         (execute_simple_dse): Remove stores with zero size.
22880 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
22882         PR c/38957
22883         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
22884         as PLUS_EXPR.
22886 2009-01-24  Julian Brown  <julian@codesourcery.com>
22888         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
22889         config/arm/linux-atomic.c.
22890         * config/arm/linux-atomic.c: New.
22892 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
22894         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
22895         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
22896         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
22898 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22900         PR c/38938
22901         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
22902         properly.
22904 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
22906         PR tree-optimization/38953
22907         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
22908         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
22909         (gloog): Split the exit of the scop when the scop exit is a loop exit.
22910         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
22911         changed the CFG.
22913 2009-01-24  Paul Brook  <paul@codesourcery.com>
22915         * config/arm/neon.md (neon_type): Move to arm.md.
22916         (neon_mov<VSTRUCT>): Add neon_type attribute.
22917         * config/arm/arm.md (neon_type): Move to here.
22918         (conds): Add "unconditioal" and use as default for NEON insns.
22920 2009-01-24  Ben Elliston  <bje@au.ibm.com>
22922         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
22923         void *' warning from -Wc++-compat.
22924         * Makefile.in (dominance.o-warn): Remove.
22926 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
22928         PR tree-optimization/38932
22929         * fold-const.c (fold_unary_ignore_overflow): New.
22930         * tree.h (fold_unary_ignore_overflow): Declare.
22931         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
22932         * tree-ssa-sccvn.c (visit_reference_op_load,
22933         simplify_unary_expression): Likewise.
22935 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
22937         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
22938         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
22939         regardless of their type.
22940         * c-common.c (handle_packed_attribute): Don't ignore packed on
22941         bitfields.
22942         * c.opt (Wpacked-bitfield-compat): New warning option.
22943         * stor-layout.c (place_field): Warn if offset of a field changed.
22944         * doc/extend.texi (packed): Mention the ABI change.
22945         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
22946         (Warning Options): Add it to the list.
22948 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
22950         * c-opts.c (c_common_post_options): Fix a typo in comments.
22952 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
22954         PR middle-end/38615
22955         * gimplify.c (gimplify_init_constructor): Fix promotion of const
22956         variables to static.
22957         * doc/invoke.texi (-fmerge-all-constants): Update description.
22959 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
22961         PR target/38931
22962         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
22963         (*movdi_1_rex64): Use type "mmx" for alternative 5.
22965 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
22967         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
22968         a word boundary.
22969         (LOCAL_ALIGNMENT): Similarly.
22971 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
22972             Joseph Myers  <joseph@codesourcery.com>
22974         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
22975         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
22976         * config/arm/arm-tune.md: Regenerate.
22977         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
22978         -march=iwmmxt2.
22980 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
22982         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
22983         version number to five.
22985 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
22987         PR c++/38930
22988         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
22989         * c-common.c (set_underlying_type): Likewise.
22990         (is_typedef_decl ): Likewise
22991         * tree.h: Likewise
22992         (set_underlying_type): Likewise.
22993         (is_typedef_type): Likewise.
22995 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
22997         PR middle-end/38587
22998         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
22999         crossing setjmps.
23001 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
23003         PR bootstrap/37660
23004         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
23005         (LIBGCC_SPEC):  Don't define.
23006         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
23008 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
23010         PR rtl-optimization/38879
23011         * alias.c (base_alias_check): Unaligned access via AND address can
23012         alias all surrounding object types except those with sizes equal
23013         or wider than the size of unaligned access.
23015 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
23017         PR c++/26693
23018         * c-decl.c (clone_underlying_type): Move this ...
23019         * c-common.c (set_underlying_type): ... here.
23020         Also, make sure the function properly sets TYPE_STUB_DECL() on
23021         the newly created typedef variant type.
23022         (is_typedef_decl ): New entry point.
23023         * tree.h: Added a new member member_types_needing_access_check to
23024         struct tree_decl_non_common.
23025         (set_underlying_type): New entry point.
23026         (is_typedef_type): Likewise.
23028 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
23030         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
23031         Check whether two instructions have memory references that
23032         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
23033         are helper functions for traversing.
23034         * alias.h (insn_alias_sets_confilict_p): New prototypes.
23035         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
23036         not to draw dependency edge for instructions with non-conflicting
23037         alias sets.
23039 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
23041         PR other/38758
23042         * longlong.h: Update copyright years.  Use soft-fp license notice.
23043         Sync __clz_tab declaration with glibc.
23045 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
23047         PR target/30687
23048         * doc/extend.texi (syscall_linkage): New.
23049         (version_id): Modify.
23051 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23052             Richard Guenther  <rguenther@suse.de>
23054         PR tree-optimization/38747
23055         PR tree-optimization/38748
23056         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
23057         conversion if the base address is an indirect reference and the
23058         aliasing sets could cause issues.
23060 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
23062         * common.opt (fgraphite, fgraphite-identity): Add comment for
23063         explaining why these options are not documented.
23065 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
23067         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
23068         gimple_call_lhs is NULL.
23070 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23072         PR target/38868
23073         * emit-rtl.c (adjust_address_1): Make sure memref is never
23074         overwritten.
23076 2009-01-20  Ben Elliston  <bje@au.ibm.com>
23078         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23079         const qualifier from arg parameter. Remove unnecessary cast to char *.
23080         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23081         const qualifier from arg 2.
23083 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23085         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
23087 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
23089         PR c/38869
23090         * rtl.h (reinit_regs): New prototype.
23091         * regclass.c: Include ira.h.
23092         (reinit_regs): New.
23093         * Makefile.in (regclass.o): Add ira.h.
23094         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
23096 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
23098         PR target/38736
23099         * c-common.c (handle_aligned_attribute): Use
23100         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
23101         default alignment value.
23103         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
23105         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
23106         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
23108         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
23109         __BIGGEST_ALIGNMENT__.
23111         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
23113 2009-01-18  Richard Guenther  <rguenther@suse.de>
23115         PR tree-optimization/38819
23116         * tree-flow.h (operation_could_trap_helper_p): Declare.
23117         * tree-eh.c (operation_could_trap_helper_p): Export.
23118         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
23119         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
23120         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
23121         are about to insert a possibly trapping instruction and fail
23122         in this case.
23124 2009-01-18  Andreas Schwab  <schwab@suse.de>
23126         * doc/install.texi (Configuration): Remove obsolete paragraph
23127         about use of --with-gnu-ld with --with-gnu-as.
23129 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
23131         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
23132         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
23133         Follow spelling conventions.
23135 2009-01-18  Ben Elliston  <bje@au.ibm.com>
23137         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
23138         C++ warning about implicit conversion from void * to struct
23139         bitmap_head_def *.
23140         (bitmap_obstack_free): Likewise for bitmap_element *.
23141         * Makefile.in (bitmap.o-warn): Remove.
23143 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23145         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
23147 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
23148             Tobias Grosser  <tobi.grosser@amd.com>
23150         * graphite.c (graphite_trans_scop_block): Do not block single
23151         nested loops.
23153 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
23155         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
23156         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
23157         test with assertion.
23159 2009-01-16  Richard Guenther  <rguenther@suse.de>
23161         PR tree-optimization/38835
23162         PR middle-end/36227
23163         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
23164         and INT + PTR -> (INT)(PTR p+ INT) folding.
23165         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
23167 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
23169         PR target/38554
23170         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
23171         the subreg from a lowpart subreg if it is also casting the value.
23173 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23174             Tobias Grosser  <tobi.grosser@amd.com>
23176         * graphite.c (compare_prefix_loops): New.
23177         (build_scop_canonical_schedules): Rewritten.
23178         (graphite_transform_loops): Move build_scop_canonical_schedules
23179         after build_scop_iteration_domain.
23181 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23182             Tobias Grosser  <tobi.grosser@amd.com>
23184         * graphite.c (add_conditions_to_domain): Add the loops to
23185         the dimension of the iteration domain.  Do copy the domain
23186         only when it exists.
23187         (build_scop_conditions_1): Do not call add_conditions_to_domain.
23188         (add_conditions_to_constraints): New.
23189         (can_generate_code_stmt, can_generate_code): Removed.
23190         (gloog): Do not call can_generate_code.
23191         (graphite_transform_loops): Call add_conditions_to_constraints
23192         after building the iteration domain.
23194 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
23196         PR tree-optimization/38789
23197         * tree-ssa-threadedge.c
23198         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
23199         __builtin_constant_p.
23201 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
23203         * dce.c (delete_unmarked_insns): Reversed the order that insns are
23204         examined before deleting them.
23206 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
23208         * function.c (aggregate_value_p): Correctly extract the function
23209         type from CALL_EXPR_FN lookup.
23211 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
23213         * config/picochip/picochip.c (picochip_override_options): Revert
23214         CFI asm flag disable commited previously.
23216 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
23217             Tobias Grosser  <tobi.grosser@amd.com>
23218             Jan Sjodin  <jan.sjodin@amd.com>
23220         * graphite.c (scan_tree_for_params): On substractions negate
23221         all the coefficients of the term.
23222         (clast_to_gcc_expression_red): New.  Handle reduction expressions
23223         of more than two operands.
23224         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
23225         (get_vdef_before_scop): Handle also the case of default definitions.
23227 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
23229         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
23230         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
23231         Also use them when walking CALL_INSN_FUNCTION_USAGE.
23233 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
23234             Joey Ye  <joey.ye@intel.com>
23236         PR middle-end/37843
23237         * cfgexpand.c (expand_stack_alignment): Don't update stack
23238         boundary nor check incoming stack boundary here.
23239         (gimple_expand_cfg): Update stack boundary and check incoming
23240         stack boundary here.
23242 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
23244         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
23246 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
23248         PR rtl-optimization/38245
23249         * calls.c (expand_call): Add stack arguments to
23250         CALL_INSN_FUNCTION_USAGE even for pure calls (when
23251         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
23252         in regs and partially in memory or BLKmode arguments.
23253         (emit_library_call_value_1): Add stack arguments to
23254         CALL_INSN_FUNCTION_USAGE even for pure calls (when
23255         ACCUMULATE_OUTGOING_ARGS).
23256         * dce.c: Include tm_p.h.
23257         (find_call_stack_args): New function.
23258         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
23259         argument.
23260         (mark_insn): Call find_call_stack_args for CALL_Ps.
23261         (prescan_insns_for_dce): Walk insns backwards in bb rather than
23262         forwards.  Allocate and free arg_stores bitmap if needed, pass it
23263         down to deletable_insn_p, don't mark stores set in arg_stores
23264         bitmap, clear the bitmap at the beginning of each bb.
23265         * Makefile.in (dce.o): Depend on $(TM_P_H).
23267 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
23269         PR target/22599
23270         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
23271         to make sure the insn is a conditional test (bug 22599).  Reformat a
23272         few long lines.
23274 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
23276         PR middle-end/38431
23277         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
23278         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
23279         (gloog): Do not call cleanup_tree_cfg.
23280         (graphite_transform_loops): Call cleanup_tree_cfg after all
23281         scops have been code generated.
23283 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
23284         * doc/gty.texi (Invoking the garbage collector): Added new node
23285         and section documenting ggc_collect.
23287 2009-01-14  Richard Guenther  <rguenther@suse.de>
23289         PR tree-optimization/38826
23290         PR middle-end/38477
23291         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
23292         initialization notes only if we actually emitted a warning.
23293         (intra_create_variable_infos): Add constraints for a result decl
23294         that is passed by hidden reference.
23295         (build_pred_graph): Mark all related variables non-direct on
23296         address-taking.
23298 2009-01-14  Nick Clifton  <nickc@redhat.com>
23300         * ira-conflicts.c: Include addresses.h for the definition of
23301         base_reg_class.
23302         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
23303         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
23305 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
23307         PR target/38811
23308         * Makefile.in (ira-lives.o): Add except.h.
23310         * ira-lives.c: Include except.h.
23311         (process_bb_node_lives): Process can_throw_internal.
23313 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
23315         PR rtl-optimization/38774
23316         * combine.c (simplify_set): When undoing cc_use change, don't do
23317         PUT_CODE on the newly created comparison, but instead put back the
23318         old comparison.
23320 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
23322         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
23323         values.  Remove duplicate arm8 entry.
23325 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
23327         PR tree-optimization/38786
23328         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
23329         the SSA_NAME case of expand_scalar_variables_expr.
23330         Set the type of an expression to the type of its assign statement.
23331         (expand_scalar_variables_expr): Also gather the scalar computation
23332         used to index the memory access.  Do not pass loop_p.
23333         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
23334         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
23335         the gimple_stmt_iterator where it inserts new code.
23336         Do not pass loop_p.
23337         (copy_bb_and_scalar_dependences): Do not pass loop_p.
23338         (translate_clast): Update call to copy_bb_and_scalar_dependences.
23340 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
23342         * graphite.h (debug_value): Removed.
23343         * graphite.c (debug_value): Removed.
23345 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
23347         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
23348         ldrd/strd with two 32-bit instructions.
23350 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
23352         * config/arm/arm.c (struct processors): Pass for speed down into
23353         cost helper functions.
23354         (const_ok_for_op): Handle COMPARE and inequality nodes.
23355         (arm_rtx_costs_1): Rewrite.
23356         (arm_size_rtx_costs): Update prototype.
23357         (arm_rtx_costs): Pass speed down to helper functions.
23358         (arm_slowmul_rtx_costs): Rework cost calculations.
23359         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
23360         (arm_9e_rtx_costs): Likewise.
23362 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
23364         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
23365         relocations of local symbols wider than UNITS_PER_WORD are not valid.
23366         (alpha_legitimize_address): Do not split local symbols wider than
23367         UNITS_PER_WORD into HIGH/LO_SUM parts.
23369 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
23371         PR bootstrap/38580
23372         * gcc.c (process_command): Replace call to execvp with calls
23373         to pex_one and exit.
23375 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
23377         PR target/29141
23378         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
23379         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
23380         variant for devices with 3-byte PC.
23381         (__tablejump_elpm__): New.
23383 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
23385         PR c/32041
23386         * c-parser.c (c_parser_postfix_expression): Allow `->' in
23387         offsetof member-designator, handle it as `[0].'.
23389 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23391         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
23392         function when not using named sections on targets with named sections
23393         if branch distance is less than 262132.
23395 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
23397         * combine.c (combine_instructions):  Recompute
23398         optimize_this_for_speed_p  for each BB in the main combine loop.
23400 2009-01-12  Tomas Bily  <tbily@suse.cz>
23402         PR middlend/38385
23403         * tree-loop-distribution.c (prop_phis): New function.
23404         (generate_builtin): Call prop_phis.
23405         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
23407 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
23409         PR tree-optimization/38807
23410         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
23411         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
23413 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
23415         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
23416         subreg of op0 to the original op0.
23418 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
23420         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
23422 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
23424         PR debug/7055
23425         * mips-tfile.c (parse_def): Fix parsing of def strings
23426         starting with digits.
23428 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
23430         PR target/38695
23431         * config/arm/arm.c (arm_is_long_call_p): Don't call
23432         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
23434 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
23436         * regrename.c (regrename_optimize): Fix dumping.
23437         (find_oldest_value_reg): Preserve REG_POINTER.
23438         (copy_hardreg_forward_1): Likewise.
23440 2009-01-09  Diego Novillo  <dnovillo@google.com>
23442         * gimple.h (struct gimple_statement_base) <uid>: Document
23443         the restrictions on its use.
23444         (gimple_uid): Tidy.
23445         (gimple_set_uid): Tidy.
23447 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23449         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
23450         zero guard even if align_bytes != 0 and count is smaller than
23451         size_needed.
23453 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
23455         PR rtl-optimization/38495
23456         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
23457         (add_range_and_copies_from_move_list): Print all added ranges.
23458         Add ranges to memory optimized destination.
23460 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23462         PR target/38686
23463         PR target/38708
23464         * config/i386/i386.c (override_options): Reject
23465         -mstringop-strategy=rep_8byte with -m32.
23466         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
23467         to 1.  Do count comparison against epilogue_size_needed at compile
23468         time even when count_exp was constant forced into register.  For
23469         size_needed don't jump to epilogue, instead just avoid aligning
23470         and invoke the body algorithm.  If need_zero_guard, add zero guard
23471         even if count is non-zero, but smaller than size_needed + number of
23472         bytes that could be stored for alignment.
23473         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
23474         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
23475         but smaller than size_needed + number of bytes that could be stored
23476         for alignment.  Compare size_needed with epilogue_size_needed instead
23477         of desired_align - align, don't adjust size_needed, pass
23478         epilogue_size_needed to the epilogue expanders.
23480         PR c/35742
23481         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
23483 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23485         * pa.c (last_address): Change to unsigned.
23486         (update_total_code_bytes): Change argument to unsigned.  Don't
23487         check if insn addresses are set.
23488         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
23489         addresses are not set.
23490         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
23492 2009-01-09  Nick Clifton  <nickc@redhat.com>
23494         * config/sh/symbian.c: Replace uses of DECL_INLINE with
23495         DECL_DECLARED_INLINE_P.
23497 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23499         PR middle-end/38347
23500         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
23501         GET_MODE (op0) in operand_subword_force calls.
23503         PR middle-end/38771
23504         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
23505         fold_convert arg0 operands to TREE_TYPE (op0) first.
23507 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
23509         * params.def (ira-max-conflict-table-size): Decrease default value
23510         to 1000.
23512 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
23514         PR tree-optimization/37031
23515         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
23516         on parameter_set.
23517         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
23518         allocate it using gc instead of heap, use VEC_quick_push instead of
23519         VEC_safe_push.
23520         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
23521         instead of heap, use VEC_quick_push instead of VEC_safe_push.
23522         * tree-data-ref.h (struct access_matrix): Change matrix to gc
23523         allocated vector from heap allocated.
23524         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
23525         * tree-loop-linear.c (linear_transform_loops): Allocate nest
23526         vector only after perfect_loop_nest_depth call.
23528 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
23529             Jan Sjodin  <jan.sjodin@amd.com>
23531         PR tree-optimization/38559
23532         * graphite.c (debug_value, copy_constraint,
23533         swap_constraint_variables, scale_constraint_variable, ): New.
23534         (get_lower_bound, get_upper_bound): Removed.
23535         (graphite_trans_bb_strip_mine): Clean up this code that works
23536         only for constant number of iterations.  Fully copy upper and
23537         lower bound constraints, not only the constant part of them.
23538         * graphite.h (debug_value): Declared.
23540 2009-01-08  Ira Rosen  <irar@il.ibm.com>
23542         PR tree-optimization/37194
23543         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
23544         Don't add the cost of cost model guard in prologue to scalar
23545         outside cost in case of known number of iterations.
23547 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
23548             Alan Modra  <amodra@bigpond.net.au>
23550         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
23551         non-word-aligned REG+CONST addressing.
23553 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
23555         PR target/38706
23556         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
23557         free_after_compilation when outputting a thunk.
23558         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
23559         Do not call free_after_compilation here.
23561 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
23563         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
23564         (ix86_valid_target_attribute_inner_p): Ditto.
23566 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
23568         PR tree-optimization/38492
23569         PR tree-optimization/38498
23570         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
23571         * tree-chrec.h (scev_is_linear_expression): Declared.
23572         * graphite.c (graphite_cannot_represent_loop_niter): New.
23573         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
23574         (graphite_loop_normal_form): Use gcc_assert.
23575         (scan_tree_for_params): Use CASE_CONVERT.
23576         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
23577         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
23578         Use gcc_assert.  Discard scops that contain unhandled cases.
23579         (build_scop_conditions): Return a boolean status for unhandled cases.
23580         (strip_mine_profitable_p): Print the loop number, not its depth.
23581         (is_interchange_valid): Pass the depth of the loop nest, don't
23582         recompute it wrongly.
23583         (graphite_trans_bb_block): Same.
23584         (graphite_trans_bb_block): Print tentative of loop blocking.
23585         (graphite_trans_scop_block): Do not print that the loop has been
23586         blocked.
23587         (graphite_transform_loops): Do not handle scops that contain condition
23588         scalar phi nodes.
23590 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
23592         AVX Programming Reference (December, 2008)
23593         * config/i386/avxintrin.h (_mm256_stream_si256): New.
23594         (_mm256_stream_pd): Likewise.
23595         (_mm256_stream_ps): Likewise.
23597         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
23598         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
23599         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
23600         (bdesc_special_args): Add __builtin_ia32_movntdq256,
23601         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
23602         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
23603         (ix86_expand_special_args_builtin): Likewise.
23605         * config/i386/sse.md (AVXMODEDI): New.
23606         (avx_movnt<mode>): Likewise.
23607         (avx_movnt<mode>): Likewise.
23608         (<sse>_movnt<mode>): Remove AVX support.
23609         (sse2_movntv2di): Likewise.
23611 2009-01-07  Richard Guenther  <rguenther@suse.de>
23613         PR middle-end/38751
23614         * fold-const.c (extract_muldiv): Remove obsolete comment.
23615         (fold_plusminus_mult_expr): Undo MINUS_EXPR
23616         to PLUS_EXPR canonicalization for the canonicalization.
23618 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
23620         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
23621         hosted cross-compilers generating less efficient code.
23623 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23625         * function.h (rtl_data): Add a dbr_scheduled_p field.
23626         * reorg.c (dbr_schedule): Set it.
23627         (gate_handle_delay_slots): Check it.
23628         * config/mips/mips.c (mips_base_delayed_branch): Delete.
23629         (mips_reorg): Check flag_delayed_branch instead of
23630         mips_base_delayed_branch.
23631         (mips_override_options): Don't set mips_base_delayed_branch
23632         or flag_delayed_branch.
23634 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23636         PR rtl-optimization/38426.
23637         * ira.c (ira): Set current_function_is_leaf earlier.
23639 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
23641         PR rtl-optimization/38722
23642         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
23643         too early, only set a flag and modify after last possible
23644         undo_all point.
23646 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
23648         PR c/34252
23649         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
23650         * real.c (decimal_single_format): Correct values of emin and emax.
23651         (decimal_double_format): Ditto.
23652         (decimal_quad_format): Ditto.
23653         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
23654         computation of DECnn_MIN and DECnn_MAX for corrected values of
23655         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
23656         __DECnn_MIN__, and adjust its computation for the corrected value
23657         of emin.
23659 2009-01-06  Jan Hubicka  <jh@suse.cz>
23661         PR target/38744
23662         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
23664 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
23666         * doc/contrib.texi (Contributors): Slightly adjust the end note.
23667         Add Robert Clark to the list of testers.
23669 2009-01-06  Jan Hubicka  <jh@suse.cz>
23670             Kai Tietz  <kai.tietz@onevision.com>
23672         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
23673         * config/i386/i386.c (ix86_expand_call): Add clobbers.
23675 2009-01-06  Jan Hubicka  <jh@suse.cz>
23676             Kai Tietz  <kai.tietz@onevision.com>
23678         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
23679         for w64 ABI.
23680         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
23681         (ix86_nsaved_regs): Count only general purpose regs.
23682         (ix86_nsaved_sseregs): New.
23683         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
23684         to 16 for w64; compute padding and size of sse reg save area.
23685         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
23686         general purpose regs.
23687         (ix86_emit_save_sse_regs_using_mov): New.
23688         (ix86_expand_prologue): Save SSE regs if needed.
23689         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
23690         (ix86_emit_restore_sse_regs_using_mov): New.
23691         (ix86_expand_epilogue): Save SSE regs if needed.
23693 2009-01-06  Jan Hubicka  <jh@suse.cz>
23694             Kai Tietz  <kai.tietz@onevision.com>
23696         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
23697         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
23698         functions when accumulate outgoing args is off.
23700 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
23702         PR bootstrap/38742
23703         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
23704         before using pseudos_have_intersected_live_ranges_p.
23706         * ira-int.h (ira_assert): Always define.
23708 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
23710         AVX Programming Reference (December, 2008)
23711         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
23712         (_mm256_permute2_pd): Likewise.
23713         (_mm_permute2_ps): Likewise.
23714         (_mm256_permute2_ps): Likewise.
23715         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
23716         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
23718         * config/i386/i386.c (ix86_builtins): Remove
23719         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
23720         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
23721         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
23722         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
23723         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
23724         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
23725         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
23726         __builtin_ia32_vpermil2ps256.
23727         (ix86_init_mmx_sse_builtins): Updated.
23728         (ix86_expand_args_builtin): Likewise.
23730 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23732         * pa.c (output_call): Relocate non-jump insns in the delay slot of
23733         long absolute calls when generating PA 2.0 code.
23735 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
23737         PR rtl-optimization/38583
23738         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
23740         * params.def (ira-max-conflict-table-size): New.
23742         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
23744         * ira.h (ira_conflicts_p): New external definition.
23746         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
23747         table.  Report this.  Return result of building.
23748         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
23749         building conflict table.
23751         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
23752         (ira_color): Use ira_conflicts_p.
23754         * global.c: Include ira.h.
23755         (pseudo_for_reload_consideration_p, build_insn_chain): Use
23756         ira_conflicts_p.
23758         * Makefile.in (global.o): Add ira.h.
23760         * ira-build.c (mark_all_loops_for_removal,
23761         propagate_some_info_from_allocno): New.
23762         (remove_unnecessary_allocnos): Call
23763         propagate_some_info_from_allocno.
23764         (remove_low_level_allocnos): New.
23765         (remove_unnecessary_regions): Add parameter.  Call
23766         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
23767         parameter to remove_unnecessary_regions.
23768         (ira_build): Remove all regions but root if the conflict table was
23769         not built.  Update conflict hard regs for allocnos crossing calls.
23771         * ira.c (ira_conflicts_p): New global.
23772         (ira): Define and use ira_conflicts_p.
23774         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
23775         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
23776         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
23778 2009-01-06  Ben Elliston  <bje@au.ibm.com>
23780         * gengtype-lex.l (YY_NO_INPUT): Define.
23782 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23784         PR c/34911
23785         * c-common.c (handle_vector_size_attribute): Also reject
23786         BOOLEAN_TYPE types.
23788 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
23790         PR tree-optimization/38492
23791         * graphite.c (rename_map_elt, debug_rename_elt,
23792         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
23793         rename_map_elt_info, eq_rename_map_elts,
23794         get_new_name_from_old_name, bb_in_sese_p): Moved around.
23795         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
23796         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
23797         (sese_build_livein_liveouts): New.
23798         (new_sese, free_sese): New.
23799         (new_scop): Call new_sese.
23800         (free_scop): Call free_sese.
23801         (rename_variables_from_edge, rename_phis_end_scop): Removed.
23802         (register_old_new_names): Renamed register_old_and_new_names.
23803         (register_scop_liveout_renames, add_loop_exit_phis,
23804         insert_loop_close_phis, struct igp,
23805         default_liveout_before_guard, add_guard_exit_phis,
23806         insert_guard_phis, copy_renames): New.
23807         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
23808         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
23809         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
23810         (scop_adjust_phis_for_liveouts): New.
23811         (gloog): Call scop_adjust_phis_for_liveouts.
23813         * graphite.h (struct sese): Documented.  Added fields liveout,
23814         num_ver and livein.
23815         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
23816         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
23817         (struct scop): Added field liveout_renames.
23818         (SCOP_LIVEOUT_RENAMES): New.
23820 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23822         PR tree-optimization/38510
23823         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
23824         (translate_clast): Call recompute_all_dominators before
23825         graphite_verify.
23826         (gloog): Call recompute_all_dominators before graphite_verify.
23828 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23829             Jan Sjodin  <jan.sjodin@amd.com>
23831         PR tree-optimization/38500
23832         * graphite.c (create_sese_edges): Call fix_loop_structure after
23833         splitting blocks.
23835 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
23837         * config.gcc: Add m32r*-*-rtems*.
23838         * config/m32r/rtems.h: New file.
23840 2009-01-05  Ben Elliston  <bje@au.ibm.com>
23842         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
23843         (.po.pox): Likewise.
23844         (po/gcc.pot): Likewise.
23846 2009-01-04  David S. Miller  <davem@davemloft.net>
23848         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
23849         (STARTING_FRAME_OFFSET): Always set to zero.
23851 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
23853         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
23854         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
23855         fixed-point types, and vectors of the same.
23857 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
23859         * config/mips/sync.md (*mb_barrier): Rename to...
23860         (*memory_barrier): ...this.
23862 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
23864         * doc/extend.texi (Function Attributes): Move @cindex after @item
23865         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
23866         and put in alphabetical order. Fix 'target' name and put in order.
23867         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
23868         typos.
23870 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
23872         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
23873         (memory_barrier): Expand as unspec instead of unspec_volatile.
23874         Remove mem:BLK from insn operands.  Use Pmode scratch register.
23875         (*memory_barrier): Define as unspec instead of unspec_volatile.
23876         Use (match_dup 0) as input operand.
23878         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
23879         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
23880         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
23881         scratch register.  Remove operand 1.
23882         (*stbar): Define as unspec instead of unspec_volatile.
23883         Use (match_dup 0) as input operand, remove (const_int 8).
23884         (*membar): Define as unspec instead of unspec_volatile.
23885         Use (match_dup 0) as input operand, remove input operand 2.
23887         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
23888         (memory_barrier): Expand as unspec instead of unspec_volatile.
23889         Remove mem:BLK from insn operands.  Use Pmode scratch register.
23890         (*memory_barrier): Define as unspec instead of unspec_volatile.
23891         Use (match_dup 0) as input operand.
23893         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
23894         Remove mem:BLK from insn operands.  Use Pmode scratch register.
23895         Set volatile flag on operand 0.
23896         (*memory_barrier): New insn pattern.
23898         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
23899         insn operands.
23900         (*memory_barrier): Use (match_dup 0) as input operand.
23902         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
23903         Remove mem:BLK from insn operands.  Use Pmode scratch register.
23904         Set volatile flag on operand 0.
23905         (*mb_internal): New insn pattern.
23907         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
23909 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
23911         PR middle-end/38586
23912         * function.c (struct temp_slot): Move to the section of the file
23913         that deals with temp slots.  Remove field 'address'.
23914         (temp_slot_address_table): New hash table of address -> temp slot.
23915         (struct temp_slot_address_entry): New struct, items for the table.
23916         (temp_slot_address_compute_hash, temp_slot_address_hash,
23917         temp_slot_address_eq, insert_temp_slot_address): Support functions
23918         for the new table.
23919         (find_temp_slot_from_address): Rewrite to use the new hash table.
23920         (remove_unused_temp_slot_addresses): Remove addresses of temp
23921         slots that have been made available.
23922         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
23923         worker function for remove_unused_temp_slot_addresses.
23924         (assign_stack_temp_for_type): Don't clear the temp slot address list.
23925         Add the temp slot address to the address -> temp slot map.
23926         (update_temp_slot_address): Update via insert_temp_slot_address.
23927         (free_temp_slots): Call remove_unused_temp_slot_addresses.
23928         (pop_temp_slots): Likewise.
23929         (init_temp_slots): Allocate the address -> temp slot map, or empty
23930         the map if it is already allocated.
23931         (prepare_function_start): Initialize temp slot processing.
23933 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
23935         PR middle-end/38584
23936         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
23937         Calculate the size of all stack vars assuming no packing of stack
23938         vars will happen, replacing a quadratic algorithm with a linear one.
23940 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
23942         PR target/38707
23943         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
23944         can't be used.
23946 2009-01-03  Diego Novillo  <dnovillo@google.com>
23948         * doc/contrib.texi: Update contributions.
23950 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
23952         PR c++/38705
23953         * builtins.c (fold_builtin_memory_op): Give up if either operand
23954         is volatile.  Set srctype or desttype to non-qualified version
23955         of the other type.
23957         PR c/38700
23958         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
23959         and FUNCTION_DECLs.
23961 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
23963         PR rtl-optimization/35805
23964         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
23965         problem if fast dce is able to remove any instructions.
23966         * dce.c (dce_process_block): Fix dump message.
23968 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
23970         PR 33649
23971         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
23973 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
23975         PR middle-end/38690
23976         * tree-flow.h (op_code_prio, op_prio): New prototypes.
23977         * tree-pretty-print.c (op_code_prio): New function.
23978         (op_prio): No longer static.  Use op_code_prio.
23979         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
23980         Use op_prio and op_code_prio to determine if () should be
23981         printed around operand(s) or not.
23983         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
23984         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
23985         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
23986         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
23987         pp_character instead of pp_string for single letter printing.
23989 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
23991         * doc/extend.texi: Fix '#pragma GCC option' typo.
23993 2009-01-02  Richard Guenther  <rguenther@suse.de>
23995         * doc/install.texi (--enable-checking): Mention different
23996         default for stage1.
23997         (--enable-stage1-checking): Document.
23999 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
24001         PR middle-end/30142
24002         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
24003         case to be an error.
24005 2009-01-02  Ben Elliston  <bje@au.ibm.com>
24007         * config/fp-bit.h (pack_d): Constify argument.
24008         * config/fp-bit.c (makenan): Constify return type. Remove casts.
24009         (isnan): Constify argument.
24010         (isinf): Likewise.
24011         (iszero): Likewise.
24012         (pack_d): Likewise.
24013         (_fpadd_parts): Constify return type.
24014         (_fpmul_parts): Likewise.
24015         (_fpdiv_parts): Likewise.
24017 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
24019         PR c/36489
24020         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
24021         warn about overwriting initializer with side-effects or
24022         -Woverride-init if !IMPLICIT.
24023         (output_init_element): Likewise.  Pass IMPLICIT down to
24024         add_pending_init.
24025         (process_init_element): Add IMPLICIT argument.  Pass it down
24026         to output_init_element.
24027         (push_init_element, pop_init_level, set_designator): Adjust
24028         process_init_element callers.
24029         (set_nonincremental_init, set_nonincremental_init_from_string):
24030         Adjust add_pending_init callers.
24031         (output_pending_init_elements): Adjust output_init_element callers.
24032         * c-tree.h (process_init_element): Adjust prototype.
24033         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
24034         process_init_element callers.
24037 Copyright (C) 2009 Free Software Foundation, Inc.
24039 Copying and distribution of this file, with or without modification,
24040 are permitted in any medium without royalty provided the copyright
24041 notice and this notice are preserved.